ode-explorer 1.0.0-dev.202306051744

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,250 @@
1
+ var xE=Object.defineProperty;var CE=(e,t,n)=>t in e?xE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t,n)=>(CE(e,typeof t!="symbol"?t+"":t,n),n);(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 SE="modulepreload",bE=function(e){return"/"+e},Dp={},He=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=bE(s),s in Dp)return;Dp[s]=!0;const o=s.endsWith(".css"),l=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}"]${l}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":SE,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())};var De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var G1={exports:{}},rl={},Z1={exports:{}},te={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var to=Symbol.for("react.element"),_E=Symbol.for("react.portal"),AE=Symbol.for("react.fragment"),kE=Symbol.for("react.strict_mode"),RE=Symbol.for("react.profiler"),OE=Symbol.for("react.provider"),PE=Symbol.for("react.context"),FE=Symbol.for("react.forward_ref"),TE=Symbol.for("react.suspense"),DE=Symbol.for("react.memo"),NE=Symbol.for("react.lazy"),Np=Symbol.iterator;function ME(e){return e===null||typeof e!="object"?null:(e=Np&&e[Np]||e["@@iterator"],typeof e=="function"?e:null)}var K1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X1=Object.assign,J1={};function Oi(e,t,n){this.props=e,this.context=t,this.refs=J1,this.updater=n||K1}Oi.prototype.isReactComponent={};Oi.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")};Oi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function em(){}em.prototype=Oi.prototype;function Od(e,t,n){this.props=e,this.context=t,this.refs=J1,this.updater=n||K1}var Pd=Od.prototype=new em;Pd.constructor=Od;X1(Pd,Oi.prototype);Pd.isPureReactComponent=!0;var Mp=Array.isArray,tm=Object.prototype.hasOwnProperty,Fd={current:null},nm={key:!0,ref:!0,__self:!0,__source:!0};function rm(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)tm.call(t,r)&&!nm.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:to,type:e,key:s,ref:o,props:i,_owner:Fd.current}}function $E(e,t){return{$$typeof:to,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Td(e){return typeof e=="object"&&e!==null&&e.$$typeof===to}function IE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $p=/\/+/g;function Yl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?IE(""+e.key):t.toString(36)}function Zo(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 to:case _E:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Yl(o,0):r,Mp(i)?(n="",e!=null&&(n=e.replace($p,"$&/")+"/"),Zo(i,t,n,"",function(u){return u})):i!=null&&(Td(i)&&(i=$E(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace($p,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Mp(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+Yl(s,l);o+=Zo(s,t,n,a,i)}else if(a=ME(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+Yl(s,l++),o+=Zo(s,t,n,a,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 So(e,t,n){if(e==null)return e;var r=[],i=0;return Zo(e,r,"","",function(s){return t.call(n,s,i++)}),r}function LE(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 Qe={current:null},Ko={transition:null},jE={ReactCurrentDispatcher:Qe,ReactCurrentBatchConfig:Ko,ReactCurrentOwner:Fd};te.Children={map:So,forEach:function(e,t,n){So(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return So(e,function(){t++}),t},toArray:function(e){return So(e,function(t){return t})||[]},only:function(e){if(!Td(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=Oi;te.Fragment=AE;te.Profiler=RE;te.PureComponent=Od;te.StrictMode=kE;te.Suspense=TE;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jE;te.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=X1({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Fd.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)tm.call(t,a)&&!nm.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:to,type:e.type,key:i,ref:s,props:r,_owner:o}};te.createContext=function(e){return e={$$typeof:PE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:OE,_context:e},e.Consumer=e};te.createElement=rm;te.createFactory=function(e){var t=rm.bind(null,e);return t.type=e,t};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:FE,render:e}};te.isValidElement=Td;te.lazy=function(e){return{$$typeof:NE,_payload:{_status:-1,_result:e},_init:LE}};te.memo=function(e,t){return{$$typeof:DE,type:e,compare:t===void 0?null:t}};te.startTransition=function(e){var t=Ko.transition;Ko.transition={};try{e()}finally{Ko.transition=t}};te.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};te.useCallback=function(e,t){return Qe.current.useCallback(e,t)};te.useContext=function(e){return Qe.current.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e){return Qe.current.useDeferredValue(e)};te.useEffect=function(e,t){return Qe.current.useEffect(e,t)};te.useId=function(){return Qe.current.useId()};te.useImperativeHandle=function(e,t,n){return Qe.current.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return Qe.current.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return Qe.current.useLayoutEffect(e,t)};te.useMemo=function(e,t){return Qe.current.useMemo(e,t)};te.useReducer=function(e,t,n){return Qe.current.useReducer(e,t,n)};te.useRef=function(e){return Qe.current.useRef(e)};te.useState=function(e){return Qe.current.useState(e)};te.useSyncExternalStore=function(e,t,n){return Qe.current.useSyncExternalStore(e,t,n)};te.useTransition=function(){return Qe.current.useTransition()};te.version="18.2.0";Z1.exports=te;var C=Z1.exports;const p=Ri(C);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var BE=C,UE=Symbol.for("react.element"),zE=Symbol.for("react.fragment"),HE=Object.prototype.hasOwnProperty,VE=BE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,qE={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)HE.call(t,r)&&!qE.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:UE,type:e,key:s,ref:o,props:i,_owner:VE.current}}rl.Fragment=zE;rl.jsx=im;rl.jsxs=im;G1.exports=rl;var N=G1.exports,WE=Object.defineProperty,QE=(e,t,n)=>t in e?WE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L=(e,t,n)=>(QE(e,typeof t!="symbol"?t+"":t,n),n);const Se={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"},gr={EXPLORER:"explorer",PORTAL:"portal",BLOG:"blog",EXERCIZER:"exercizer",TIMELINE:"timeline",CAS:"cas",VIDEO:"video"};/*! *****************************************************************************
18
+ Copyright (c) Microsoft Corporation.
19
+
20
+ Permission to use, copy, modify, and/or distribute this software for any
21
+ purpose with or without fee is hereby granted.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
24
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
25
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
26
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29
+ PERFORMANCE OF THIS SOFTWARE.
30
+ ***************************************************************************** */var Ju=function(e,t){return Ju=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Ju(e,t)};function xe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ju(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function ec(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(l){o={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function Wn(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function ft(e){return typeof e=="function"}function Pr(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Gl=Pr(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
31
+ `+t.map(function(n,r){return r+1+") "+n.toString()}).join(`
32
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function Ea(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var vn=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var t,n,r,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var l=ec(o),a=l.next();!a.done;a=l.next()){var u=a.value;u.remove(this)}}catch(y){t={error:y}}finally{try{a&&!a.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(ft(c))try{c()}catch(y){s=y instanceof Gl?y.errors:[y]}var d=this._teardowns;if(d){this._teardowns=null;try{for(var f=ec(d),h=f.next();!h.done;h=f.next()){var m=h.value;try{Ip(m)}catch(y){s=s??[],y instanceof Gl?s=Wn(Wn([],qn(s)),qn(y.errors)):s.push(y)}}}catch(y){r={error:y}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}if(s)throw new Gl(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Ip(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=(n=this._teardowns)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Ea(n,t)},e.prototype.remove=function(t){var n=this._teardowns;n&&Ea(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),sm=vn.EMPTY;function om(e){return e instanceof vn||e&&"closed"in e&&ft(e.remove)&&ft(e.add)&&ft(e.unsubscribe)}function Ip(e){ft(e)?e():e.unsubscribe()}var Fr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},am={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,Wn([],qn(e)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function YE(e){am.setTimeout(function(){var t=Fr.onUnhandledError;if(t)t(e);else throw e})}function wa(){}var GE=function(){return Dd("C",void 0,void 0)}();function ZE(e){return Dd("E",void 0,e)}function KE(e){return Dd("N",e,void 0)}function Dd(e,t,n){return{kind:e,value:t,error:n}}var dr=null;function Xo(e){if(Fr.useDeprecatedSynchronousErrorHandling){var t=!dr;if(t&&(dr={errorThrown:!1,error:null}),e(),t){var n=dr,r=n.errorThrown,i=n.error;if(dr=null,r)throw i}}else e()}function XE(e){Fr.useDeprecatedSynchronousErrorHandling&&dr&&(dr.errorThrown=!0,dr.error=e)}var Nd=function(e){xe(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,om(n)&&n.add(r)):r.destination=JE,r}return t.create=function(n,r,i){return new lm(n,r,i)},t.prototype.next=function(n){this.isStopped?Kl(KE(n),this):this._next(n)},t.prototype.error=function(n){this.isStopped?Kl(ZE(n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?Kl(GE,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(vn),lm=function(e){xe(t,e);function t(n,r,i){var s=e.call(this)||this,o;if(ft(n))o=n;else if(n){o=n.next,r=n.error,i=n.complete;var l;s&&Fr.useDeprecatedNextContext?(l=Object.create(n),l.unsubscribe=function(){return s.unsubscribe()}):l=n,o=o==null?void 0:o.bind(l),r=r==null?void 0:r.bind(l),i=i==null?void 0:i.bind(l)}return s.destination={next:o?Zl(o):wa,error:Zl(r??um),complete:i?Zl(i):wa},s}return t}(Nd);function Zl(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{e.apply(void 0,Wn([],qn(n)))}catch(i){Fr.useDeprecatedSynchronousErrorHandling?XE(i):YE(i)}}}function um(e){throw e}function Kl(e,t){var n=Fr.onStoppedNotification;n&&am.setTimeout(function(){return n(e,t)})}var JE={closed:!0,next:wa,error:um,complete:wa},ew=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function tw(e){return e}function nw(e){return e.length===0?tw:e.length===1?e[0]:function(t){return e.reduce(function(n,r){return r(n)},t)}}var xr=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,s=iw(t)?t:new lm(t,n,r);return Xo(function(){var o=i,l=o.operator,a=o.source;s.add(l?l.call(s,a):a?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Lp(n),new n(function(i,s){var o;o=r.subscribe(function(l){try{t(l)}catch(a){s(a),o==null||o.unsubscribe()}},s,i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[ew]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return nw(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Lp(t),new t(function(r,i){var s;n.subscribe(function(o){return s=o},function(o){return i(o)},function(){return r(s)})})},e.create=function(t){return new e(t)},e}();function Lp(e){var t;return(t=e??Fr.Promise)!==null&&t!==void 0?t:Promise}function rw(e){return e&&ft(e.next)&&ft(e.error)&&ft(e.complete)}function iw(e){return e&&e instanceof Nd||rw(e)&&om(e)}function cm(e){return ft(e==null?void 0:e.lift)}function dm(e){return function(t){if(cm(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var il=function(e){xe(t,e);function t(n,r,i,s,o){var l=e.call(this,n)||this;return l.onFinalize=o,l._next=r?function(a){try{r(a)}catch(u){n.error(u)}}:e.prototype._next,l._error=s?function(a){try{s(a)}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n,r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))},t}(Nd);function sw(){return dm(function(e,t){var n=null;e._refCount++;var r=new il(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){n=null;return}var i=e._connection,s=n;n=null,i&&(!s||i===s)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}(function(e){xe(t,e);function t(n,r){var i=e.call(this)||this;return i.source=n,i.subjectFactory=r,i._subject=null,i._refCount=0,i._connection=null,cm(n)&&(i.lift=n.lift),i}return t.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},t.prototype.getSubject=function(){var n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var n=this._connection;this._subject=this._connection=null,n==null||n.unsubscribe()},t.prototype.connect=function(){var n=this,r=this._connection;if(!r){r=this._connection=new vn;var i=this.getSubject();r.add(this.source.subscribe(new il(i,void 0,function(){n._teardown(),i.complete()},function(s){n._teardown(),i.error(s)},function(){return n._teardown()}))),r.closed&&(this._connection=null,r=vn.EMPTY)}return r},t.prototype.refCount=function(){return sw()(this)},t})(xr);var tc={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=t(function(i){n=void 0,e(i)});return new vn(function(){return n==null?void 0:n(r)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tc.delegate;return((n==null?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,Wn([],qn(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return cancelAnimationFrame.apply(void 0,Wn([],qn(e)))},delegate:void 0},ow=Pr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Tr=function(e){xe(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new jp(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new ow},t.prototype.next=function(n){var r=this;Xo(function(){var i,s;if(r._throwIfClosed(),!r.isStopped){var o=r.observers.slice();try{for(var l=ec(o),a=l.next();!a.done;a=l.next()){var u=a.value;u.next(n)}}catch(c){i={error:c}}finally{try{a&&!a.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;Xo(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;Xo(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=r.hasError,s=r.isStopped,o=r.observers;return i||s?sm:(o.push(n),new vn(function(){return Ea(o,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,s=r.thrownError,o=r.isStopped;i?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new xr;return n.source=this,n},t.create=function(n,r){return new jp(n,r)},t}(xr),jp=function(e){xe(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:sm},t}(Tr);(function(e){xe(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,s=n._value;if(r)throw i;return this._throwIfClosed(),s},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t})(Tr);var Md={now:function(){return(Md.delegate||Date).now()},delegate:void 0};(function(e){xe(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=Md);var s=e.call(this)||this;return s._bufferSize=n,s._windowTime=r,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,n),s._windowTime=Math.max(1,r),s}return t.prototype.next=function(n){var r=this,i=r.isStopped,s=r._buffer,o=r._infiniteTimeWindow,l=r._timestampProvider,a=r._windowTime;i||(s.push(n),!o&&s.push(l.now()+a)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,s=i._infiniteTimeWindow,o=i._buffer,l=o.slice(),a=0;a<l.length&&!n.closed;a+=s?1:2)n.next(l[a]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,s=n._buffer,o=n._infiniteTimeWindow,l=(o?1:2)*r;if(r<1/0&&l<s.length&&s.splice(0,s.length-l),!o){for(var a=i.now(),u=0,c=1;c<s.length&&s[c]<=a;c+=2)u=c;u&&s.splice(0,u+1)}},t})(Tr);(function(e){xe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._value=null,n._hasValue=!1,n._isComplete=!1,n}return t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,s=r._hasValue,o=r._value,l=r.thrownError,a=r.isStopped,u=r._isComplete;i?n.error(l):(a||u)&&(s&&n.next(o),n.complete())},t.prototype.next=function(n){this.isStopped||(this._value=n,this._hasValue=!0)},t.prototype.complete=function(){var n=this,r=n._hasValue,i=n._value,s=n._isComplete;s||(this._isComplete=!0,r&&e.prototype.next.call(this,i),e.prototype.complete.call(this))},t})(Tr);var aw=function(e){xe(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return this},t}(vn),nc={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nc.delegate;return((n==null?void 0:n.setInterval)||setInterval).apply(void 0,Wn([],qn(e)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},no=function(e){xe(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.pending=!1,i}return t.prototype.schedule=function(n,r){if(r===void 0&&(r=0),this.closed)return this;this.state=n;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,r)),this.pending=!0,this.delay=r,this.id=this.id||this.requestAsyncId(s,this.id,r),this},t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),nc.setInterval(n.flush.bind(n,this),i)},t.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;nc.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(n,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var i=!1,s;try{this.work(n)}catch(o){i=!0,s=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),s},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,i=n.scheduler,s=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ea(s,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(aw),lw=1,Xl,rc={};function Bp(e){return e in rc?(delete rc[e],!0):!1}var fm={setImmediate:function(e){var t=lw++;return rc[t]=!0,Xl||(Xl=Promise.resolve()),Xl.then(function(){return Bp(t)&&e()}),t},clearImmediate:function(e){Bp(e)}},uw=fm.setImmediate,cw=fm.clearImmediate,ic={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ic.delegate;return((n==null?void 0:n.setImmediate)||uw).apply(void 0,Wn([],qn(e)))},clearImmediate:function(e){return cw(e)},delegate:void 0},dw=function(e){xe(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=ic.setImmediate(n.flush.bind(n,void 0))))},t.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&i>0||i==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,i);n.actions.length===0&&(ic.clearImmediate(r),n._scheduled=void 0)},t}(no),Up=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=Md.now,e}(),ro=function(e){xe(t,e);function t(n,r){r===void 0&&(r=Up.now);var i=e.call(this,n,r)||this;return i.actions=[],i._active=!1,i._scheduled=void 0,i}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},t}(Up),fw=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0,this._scheduled=void 0;var r=this.actions,i,s=-1;n=n||r.shift();var o=r.length;do if(i=n.execute(n.state,n.delay))break;while(++s<o&&(n=r.shift()));if(this._active=!1,i){for(;++s<o&&(n=r.shift());)n.unsubscribe();throw i}},t}(ro);new fw(dw);new ro(no);var pw=function(e){xe(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return t.prototype.schedule=function(n,r){return r===void 0&&(r=0),r>0?e.prototype.schedule.call(this,n,r):(this.delay=r,this.state=n,this.scheduler.flush(this),this)},t.prototype.execute=function(n,r){return r>0||this.closed?e.prototype.execute.call(this,n,r):this._execute(n,r)},t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!=null&&i>0||i==null&&this.delay>0?e.prototype.requestAsyncId.call(this,n,r,i):n.flush(this)},t}(no),hw=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ro);new hw(pw);var mw=function(e){xe(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=tc.requestAnimationFrame(function(){return n.flush(void 0)})))},t.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&i>0||i==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,i);n.actions.length===0&&(tc.cancelAnimationFrame(r),n._scheduled=void 0)},t}(no),vw=function(e){xe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0,this._scheduled=void 0;var r=this.actions,i,s=-1;n=n||r.shift();var o=r.length;do if(i=n.execute(n.state,n.delay))break;while(++s<o&&(n=r.shift()));if(this._active=!1,i){for(;++s<o&&(n=r.shift());)n.unsubscribe();throw i}},t}(ro);new vw(mw);(function(e){xe(t,e);function t(n,r){n===void 0&&(n=gw),r===void 0&&(r=1/0);var i=e.call(this,n,function(){return i.frame})||this;return i.maxFrames=r,i.frame=0,i.index=-1,i}return t.prototype.flush=function(){for(var n=this,r=n.actions,i=n.maxFrames,s,o;(o=r[0])&&o.delay<=i&&(r.shift(),this.frame=o.delay,!(s=o.execute(o.state,o.delay))););if(s){for(;o=r.shift();)o.unsubscribe();throw s}},t.frameTimeFactor=10,t})(ro);var gw=function(e){xe(t,e);function t(n,r,i){i===void 0&&(i=n.index+=1);var s=e.call(this,n,r)||this;return s.scheduler=n,s.work=r,s.index=i,s.active=!0,s.index=n.index=i,s}return t.prototype.schedule=function(n,r){if(r===void 0&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}else return vn.EMPTY},t.prototype.requestAsyncId=function(n,r,i){i===void 0&&(i=0),this.delay=n.frame+i;var s=n.actions;return s.push(this),s.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(n,r,i){},t.prototype._execute=function(n,r){if(this.active===!0)return e.prototype._execute.call(this,n,r)},t.sortActions=function(n,r){return n.delay===r.delay?n.index===r.index?0:n.index>r.index?1:-1:n.delay>r.delay?1:-1},t}(no),yw=new xr(function(e){return e.complete()});function pm(e,t){return new xr(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Ew(e){return new xr(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function ww(e,t){return t?pm(e,t):Ew(e)}function xw(e){return e&&ft(e.schedule)}function Cw(e){return e[e.length-1]}function Sw(e){return xw(Cw(e))?e.pop():void 0}function bw(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Sw(e);return n?pm(e,n):ww(e)}function _w(e,t){var n=ft(e)?e:function(){return e},r=function(i){return i.error(n())};return new xr(t?function(i){return t.schedule(r,0,i)}:r)}var zp;(function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"})(zp||(zp={}));(function(){function e(t,n,r){this.kind=t,this.value=n,this.error=r,this.hasValue=t==="N"}return e.prototype.observe=function(t){return Aw(this,t)},e.prototype.do=function(t,n,r){var i=this,s=i.kind,o=i.value,l=i.error;return s==="N"?t==null?void 0:t(o):s==="E"?n==null?void 0:n(l):r==null?void 0:r()},e.prototype.accept=function(t,n,r){var i;return ft((i=t)===null||i===void 0?void 0:i.next)?this.observe(t):this.do(t,n,r)},e.prototype.toObservable=function(){var t=this,n=t.kind,r=t.value,i=t.error,s=n==="N"?bw(r):n==="E"?_w(function(){return i}):n==="C"?yw:0;if(!s)throw new TypeError("Unexpected notification kind "+n);return s},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e})();function Aw(e,t){var n,r,i,s=e,o=s.kind,l=s.value,a=s.error;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(n=t.next)===null||n===void 0||n.call(t,l):o==="E"?(r=t.error)===null||r===void 0||r.call(t,a):(i=t.complete)===null||i===void 0||i.call(t)}Pr(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});Pr(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}});Pr(function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}});Pr(function(e){return function(t){e(this),this.name="SequenceError",this.message=t}});Pr(function(e){return function(t){t===void 0&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function kw(e,t){return dm(function(n,r){var i=0;n.subscribe(new il(r,function(s){return e.call(t,s,i++)&&r.next(s)}))})}(function(e){xe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.activeGroups=0,n.teardownAttempted=!1,n}return t.prototype.unsubscribe=function(){this.teardownAttempted=!0,this.activeGroups===0&&e.prototype.unsubscribe.call(this)},t})(il);class Rw{constructor(){L(this,"agents",{}),L(this,"comm",new Tr)}setAgentFor(t,n,r){let i=this.getActionMapping(t);i[n]=r}getAgentFor(t,n){return this.getActionMapping(t)[n]}publish(t,n,r){return Promise.resolve().then(()=>{var i;return(i=this.getAgentFor(t,n))!=null?i:hm.requestAgentFor(t,n)}).then(i=>{const s=i.activate(t,n,r);return this.comm.next({res:t,action:n,input:r,output:s}),s})}subscribe(t,n){return this.comm.asObservable().pipe(kw(r=>r.res===t&&r.action===n))}getActionMapping(t){let n=this.agents[t];if(typeof n>"u"){n={};for(let r of Object.values(Y))n[r]=null;this.agents[t]=n}return n}}class $d{static get instance(){return this._instance=this._instance||new Rw}}L($d,"_instance");const ge=class{constructor(t){L(this,"managedResource"),L(this,"handlerFor",{comment:ge.defaultHandler,copy:ge.defaultHandler,create:ge.defaultHandler,delete:ge.defaultHandler,export:ge.defaultHandler,initialize:ge.defaultHandler,manage:ge.defaultHandler,properties:ge.defaultHandler,move:ge.defaultHandler,open:ge.defaultHandler,print:ge.defaultHandler,publish:ge.defaultHandler,search:ge.defaultHandler,share:ge.defaultHandler,distribute:ge.defaultHandler,pages_list:ge.defaultHandler,register:ge.defaultHandler,trash:ge.defaultHandler,publish_moodle:ge.defaultHandler,restore:ge.defaultHandler}),this.managedResource=t,this.initialize()}initialize(){for(let t in Object.values(Y))this.handlerFor[t]=ge.defaultHandler;this.registerHandlers()}setHandler(t,n){$d.instance.setAgentFor(this.managedResource,t,this),this.handlerFor[t]=n}getHandler(t){return this.handlerFor[t]}activate(t,n,r){return Promise.resolve().then(()=>this.getHandler(n).bind(this)(r))}};let Id=ge;L(Id,"defaultHandler",function(e){throw new Error(Se.NOT_SUPPORTED)});console.log("Blog agent loading....");class Ow extends Id{constructor(){super(at.BLOG),L(this,"ctx",null),L(this,"http",Rm.instance().newHttpInstance()),L(this,"checkHttpResponse",t=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return t}),this.registerHandlers(),console.log("Blog agent initialized!")}registerHandlers(){this.setHandler(Y.OPEN,this.openBlog),this.setHandler(Y.CREATE,this.createBlog),this.setHandler(Y.MANAGE,this.onManage),this.setHandler(Y.UPD_PROPS,this.onUpdateProps),this.setHandler(Y.PRINT,this.onPrint),this.setHandler(Y.PUBLISH,this.onPublish)}onPrint(t){window.open(`/blog/print/blog#/print/${t.resourceId}?comments=${t.withComments||!0}`,"_blank")}openBlog(t){window.open(`/blog#/view/${t.resourceId}`,"_self")}createBlog(t){window.open("/blog#/edit/new","_self")}onManage(t){const n={genericProps:[{key:ii.TITLE},{key:ii.IMAGE},{key:ii.URL}]};return Promise.resolve().then(()=>n)}onUpdateProps(t){const n={resources:t.resources};return alert("TODO: update properties"),Promise.resolve().then(()=>n)}async onPublish(t){const n=new FormData;return n.append("title",t.title),n.append("cover",t.cover),n.append("coverName",t.cover.name),n.append("coverType",t.cover.type),n.append("teacherAvatar",t.teacherAvatar),n.append("teacherAvatarName",t.teacherAvatar.name||`teacherAvatar_${t.userId}`),n.append("teacherAvatarType",t.teacherAvatar.type),n.append("language",t.language),t.activityType.forEach(r=>{n.append("activityType[]",r)}),t.subjectArea.forEach(r=>{n.append("subjectArea[]",r)}),t.age.forEach(r=>{n.append("age[]",r.toString())}),n.append("description",t.description),t.keyWords.split(",").forEach(r=>{n.append("keyWords[]",r.trim())}),n.append("licence",t.licence),n.append("pdfUri",`${window.location.origin}/blog/print/blog#/print/${t.resourceId}`),n.append("application",t.application?t.application:""),n.append("resourceId",t.resourceId),n.append("teacherSchool",t.userStructureName),this.http.post("/appregistry/library/resource",n,{headers:{"Content-Type":"multipart/form-data"}}).then(this.checkHttpResponse)}}const Pw=()=>new Ow;class Fw extends Id{constructor(){super(at.FOLDER),L(this,"ctx",null),L(this,"http",Rm.instance().newHttpInstance({paramsSerializer:function(t){return Object.entries(t).map(n=>n[1]instanceof Array?n[1].map(r=>`${n[0]}=${encodeURIComponent(r)}`).join("&"):["string","number","boolean"].indexOf(typeof n[1])>=0?`${n[0]}=${encodeURIComponent(n[1])}`:"").join("&")}})),L(this,"checkHttpResponse",t=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return t}),this.registerHandlers()}registerHandlers(){this.setHandler(Y.INITIALIZE,this.createContext),this.setHandler(Y.SEARCH,this.searchContext),this.setHandler(Y.CREATE,this.createFolder),this.setHandler(Y.OPEN,this.listSubfolders),this.setHandler(Y.MOVE,this.moveToFolder),this.setHandler(Y.DELETE,this.deleteFolders),this.setHandler(Y.TRASH,this.trashFolders),this.setHandler(Y.MANAGE,this.onManage),this.setHandler(Y.UPD_PROPS,this.updateFolder)}createContext(t){return this.http.get("/explorer/context",{queryParams:this.toQueryParams(t)}).then(this.checkHttpResponse)}searchContext(t){return this.http.get("/explorer/resources",{queryParams:this.toQueryParams(t)}).then(this.checkHttpResponse)}createFolder(t){return this.http.post("/explorer/folders",this.createFolderToBodyParams(t)).then(this.checkHttpResponse)}updateFolder(t){return this.http.put(`/explorer/folders/${t.folderId}`,this.createFolderToBodyParams(t)).then(this.checkHttpResponse)}moveToFolder(t){return this.http.post(`/explorer/folders/${t.folderId}/move`,this.moveToBodyParams(t)).then(this.checkHttpResponse)}listSubfolders(t){return this.http.get(`/explorer/folders/${t}/move`).then(this.checkHttpResponse)}deleteFolders(t){return this.http.deleteJson("/explorer",t).then(this.checkHttpResponse)}trashFolders({trash:t,resourceType:n,...r}){return this.http.putJson(`/explorer/${t?"trash":"restore"}`,r).then(this.checkHttpResponse)}onManage(t){const n={genericProps:[{key:ii.TITLE},{key:ii.IMAGE},{key:ii.URL}]};return Promise.resolve().then(()=>n)}toQueryParams(t){let n={application:t.app,start_idx:t.pagination.startIdx,page_size:t.pagination.pageSize,resource_type:t.types};return t.orders&&(n.order_by=Object.entries(t.orders).map(r=>`${r[0]}:${r[1]}`)),t.filters&&Object.assign(n,t.filters),typeof t.search=="string"&&(n.search=t.search),n}createFolderToBodyParams(t){return{application:t.app,resourceType:t.type,parentId:t.parentId,name:t.name}}moveToBodyParams(t){return{application:t.application,resourceType:this.managedResource,resourceIds:t.resourceIds,folderIds:t.folderIds}}}const Tw=()=>new Fw;class Dw{load(t){let n=Iw[t];if(typeof n!="string")throw new Error(`The resource type ${t} is not supported yet.`);switch(n){case gr.EXPLORER:Tw();break;case gr.BLOG:Pw();break;default:throw new Error(`The resource type ${t} is not supported yet.`)}return Promise.resolve()}}class Nw{constructor(t,n){L(this,"searchParameters"),L(this,"context"),L(this,"bus"),L(this,"latestResults",new Tr),this.context=null,this.bus=$w.instance().getBus(),this.searchParameters={types:t,app:n,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 t=this.duplicateSearchParameters();return Promise.resolve().then(()=>this.bus.publish(at.FOLDER,Y.INITIALIZE,t)).then(n=>{if(this.context=n,!this.context)throw new Error(Se.UNKNOWN);return this.latestResults.next({input:t,output:this.context}),this.context})}getResources(){const t=this.duplicateSearchParameters();return this.bus.publish(at.FOLDER,Y.SEARCH,t).then(n=>{let r=n;if(!r)throw new Error(Se.UNKNOWN);return this.latestResults.next({input:t,output:r}),r})}getSubFolders(t){throw new Error("Method not implemented.")}createFolder(t,n,r){const i={app:this.searchParameters.app,name:r,parentId:n,type:t};return this.bus.publish(at.FOLDER,Y.CREATE,i).then(s=>{let o=s;if(!o)throw new Error(Se.UNKNOWN);return o})}updateFolder(t,n,r,i){const s={folderId:t,app:this.searchParameters.app,name:i,parentId:r,type:n};return this.bus.publish(at.FOLDER,Y.UPD_PROPS,s).then(o=>{let l=o;if(!l)throw new Error(Se.UNKNOWN);return l})}copy(t,n,r){const i={application:this.searchParameters.app,folderId:t,resourceIds:n,folderIds:r};return this.bus.publish(at.FOLDER,Y.COPY,i).then(s=>{})}move(t,n,r){const i={application:this.searchParameters.app,folderId:t,resourceIds:n,folderIds:r};return this.bus.publish(at.FOLDER,Y.MOVE,i).then(s=>{})}delete(t,n){const r={application:this.searchParameters.app,resourceType:this.searchParameters.types[0],resourceIds:t,folderIds:n};return this.bus.publish(at.FOLDER,Y.DELETE,r).then(i=>{})}trash(t,n,r){const i={trash:t,application:this.searchParameters.app,resourceType:this.searchParameters.types[0],resourceIds:n,folderIds:r};return this.bus.publish(at.FOLDER,Y.TRASH,i).then(s=>{})}manageProperties(t,n){const r={resources:n};return this.bus.publish(t,Y.MANAGE,r).then(i=>{let s=i;if(!s)throw new Error(Se.UNKNOWN);return s})}updateProperties(t,n,r){const i={resources:n,props:r};return this.bus.publish(t,Y.UPD_PROPS,i).then(s=>{let o=s;if(!o)throw new Error(Se.UNKNOWN);return o})}publish(t,n){return this.bus.publish(t,Y.PUBLISH,n).then(r=>{let i=r;if(!i)throw new Error(Se.UNKNOWN);return i})}}class Mw{constructor(){L(this,"_agentLoader")}get agentLoader(){return this._agentLoader||(this._agentLoader=new Dw),this._agentLoader}setAgentLoader(t){t&&(this._agentLoader=t)}requestAgentFor(t,n){return this.agentLoader.load(t).then(()=>{let r=this.getBus().getAgentFor(t,n);if(!r)throw new Error(Se.AGENT_NOT_FOUND);return r})}createContext(t,n){return new Nw(t,n)}getBus(){return $d.instance}}const hm=new Mw;class $w{static instance(){return hm}}const at={FOLDER:"folder",BLOG:"blog",EXERCISE:"exercise"},Iw={folder:gr.EXPLORER,blog:gr.BLOG,exercise:gr.EXERCIZER},Y={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"},ut={BIN:"bin",DEFAULT:"default"},ii={TITLE:"title",IMAGE:"image",COLOR:"color",DESCRIPTION:"description",URL:"url"},bo={SESSION_READY:"sessionReady",LANG_READY:"langReady",SKIN_READY:"skinReady",OVERRIDE_READY:"overrideReady"};let bs=class{constructor(){L(this,"_resolution"),L(this,"_rejection"),L(this,"_promise",new Promise((t,n)=>{this._resolution=t,this._rejection=n}))}get promise(){return this._promise}resolve(t){this._resolution&&this._resolution(t)}reject(t){this._rejection&&this._rejection(t)}};class Lw{constructor(){L(this,"promises",{}),L(this,"subject",new Tr)}asyncData(t){return typeof this.promises[t]>"u"&&(this.promises[t]=new bs),this.promises[t]}onSessionReady(){return this.asyncData(bo.SESSION_READY)}onLangReady(){return this.asyncData(bo.LANG_READY)}onSkinReady(){return this.asyncData(bo.SKIN_READY)}onOverridesReady(){return this.asyncData(bo.OVERRIDE_READY)}promisify(){return new bs}events(){return this.subject}}const Ne=new Lw,jw={WIDGETS:"widgets",EXPLORER:"explorer"},Bw={USERPREF_CHANGED:"userprefChanged",SEARCH_RESULTED:"searchResulted"};function Uw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mm={exports:{}},Ld={exports:{}},vm=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},zw=vm,Dr=Object.prototype.toString;function jd(e){return Dr.call(e)==="[object Array]"}function sc(e){return typeof e>"u"}function Hw(e){return e!==null&&!sc(e)&&e.constructor!==null&&!sc(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Vw(e){return Dr.call(e)==="[object ArrayBuffer]"}function qw(e){return typeof FormData<"u"&&e instanceof FormData}function Ww(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Qw(e){return typeof e=="string"}function Yw(e){return typeof e=="number"}function gm(e){return e!==null&&typeof e=="object"}function Jo(e){if(Dr.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Gw(e){return Dr.call(e)==="[object Date]"}function Zw(e){return Dr.call(e)==="[object File]"}function Kw(e){return Dr.call(e)==="[object Blob]"}function ym(e){return Dr.call(e)==="[object Function]"}function Xw(e){return gm(e)&&ym(e.pipe)}function Jw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function e4(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function t4(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Bd(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),jd(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function oc(){var e={};function t(i,s){Jo(e[s])&&Jo(i)?e[s]=oc(e[s],i):Jo(i)?e[s]=oc({},i):jd(i)?e[s]=i.slice():e[s]=i}for(var n=0,r=arguments.length;n<r;n++)Bd(arguments[n],t);return e}function n4(e,t,n){return Bd(t,function(r,i){n&&typeof r=="function"?e[i]=zw(r,n):e[i]=r}),e}function r4(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var gt={isArray:jd,isArrayBuffer:Vw,isBuffer:Hw,isFormData:qw,isArrayBufferView:Ww,isString:Qw,isNumber:Yw,isObject:gm,isPlainObject:Jo,isUndefined:sc,isDate:Gw,isFile:Zw,isBlob:Kw,isFunction:ym,isStream:Xw,isURLSearchParams:Jw,isStandardBrowserEnv:t4,forEach:Bd,merge:oc,extend:n4,trim:e4,stripBOM:r4},jr=gt;function Hp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Em=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(jr.isURLSearchParams(t))r=t.toString();else{var i=[];jr.forEach(t,function(o,l){o===null||typeof o>"u"||(jr.isArray(o)?l=l+"[]":o=[o],jr.forEach(o,function(a){jr.isDate(a)?a=a.toISOString():jr.isObject(a)&&(a=JSON.stringify(a)),i.push(Hp(l)+"="+Hp(a))}))}),r=i.join("&")}if(r){var s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e},i4=gt;function sl(){this.handlers=[]}sl.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1};sl.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};sl.prototype.forEach=function(e){i4.forEach(this.handlers,function(t){t!==null&&e(t)})};var s4=sl,o4=gt,a4=function(e,t,n){return o4.forEach(n,function(r){e=r(e,t)}),e},Vp,qp;function wm(){return qp||(qp=1,Vp=function(e){return!!(e&&e.__CANCEL__)}),Vp}var l4=gt,u4=function(e,t){l4.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})},Wp,Qp;function c4(){return Qp||(Qp=1,Wp=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,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}),Wp}var Jl,Yp;function xm(){if(Yp)return Jl;Yp=1;var e=c4();return Jl=function(t,n,r,i,s){var o=new Error(t);return e(o,n,r,i,s)},Jl}var eu,Gp;function d4(){if(Gp)return eu;Gp=1;var e=xm();return eu=function(t,n,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):n(e("Request failed with status code "+r.status,r.config,null,r.request,r))},eu}var tu,Zp;function f4(){if(Zp)return tu;Zp=1;var e=gt;return tu=e.isStandardBrowserEnv()?function(){return{write:function(t,n,r,i,s,o){var l=[];l.push(t+"="+encodeURIComponent(n)),e.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),e.isString(i)&&l.push("path="+i),e.isString(s)&&l.push("domain="+s),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(t){var n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),tu}var Kp,Xp;function p4(){return Xp||(Xp=1,Kp=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}),Kp}var Jp,eh;function h4(){return eh||(eh=1,Jp=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}),Jp}var nu,th;function m4(){if(th)return nu;th=1;var e=p4(),t=h4();return nu=function(n,r){return n&&!e(r)?t(n,r):r},nu}var ru,nh;function v4(){if(nh)return ru;nh=1;var e=gt,t=["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 ru=function(n){var r={},i,s,o;return n&&e.forEach(n.split(`
33
+ `),function(l){if(o=l.indexOf(":"),i=e.trim(l.substr(0,o)).toLowerCase(),s=e.trim(l.substr(o+1)),i){if(r[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?r[i]=(r[i]?r[i]:[]).concat([s]):r[i]=r[i]?r[i]+", "+s:s}}),r},ru}var iu,rh;function g4(){if(rh)return iu;rh=1;var e=gt;return iu=e.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(s){var o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){var o=e.isString(s)?i(s):s;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}(),iu}var su,ih;function y4(){if(ih)return su;ih=1;var e=gt,t=d4(),n=f4(),r=Em,i=m4(),s=v4(),o=g4(),l=xm();return su=function(a){return new Promise(function(u,c){var d=a.data,f=a.headers;e.isFormData(d)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(a.auth){var m=a.auth.username||"",y=a.auth.password?unescape(encodeURIComponent(a.auth.password)):"";f.Authorization="Basic "+btoa(m+":"+y)}var x=i(a.baseURL,a.url);if(h.open(a.method.toUpperCase(),r(x,a.params,a.paramsSerializer),!0),h.timeout=a.timeout,h.onreadystatechange=function(){if(!(!h||h.readyState!==4)&&!(h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0))){var v="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,E=!a.responseType||a.responseType==="text"?h.responseText:h.response,w={data:E,status:h.status,statusText:h.statusText,headers:v,config:a,request:h};t(u,c,w),h=null}},h.onabort=function(){!h||(c(l("Request aborted",a,"ECONNABORTED",h)),h=null)},h.onerror=function(){c(l("Network Error",a,null,h)),h=null},h.ontimeout=function(){var v="timeout of "+a.timeout+"ms exceeded";a.timeoutErrorMessage&&(v=a.timeoutErrorMessage),c(l(v,a,"ECONNABORTED",h)),h=null},e.isStandardBrowserEnv()){var g=(a.withCredentials||o(x))&&a.xsrfCookieName?n.read(a.xsrfCookieName):void 0;g&&(f[a.xsrfHeaderName]=g)}if("setRequestHeader"in h&&e.forEach(f,function(v,E){typeof d>"u"&&E.toLowerCase()==="content-type"?delete f[E]:h.setRequestHeader(E,v)}),e.isUndefined(a.withCredentials)||(h.withCredentials=!!a.withCredentials),a.responseType)try{h.responseType=a.responseType}catch(v){if(a.responseType!=="json")throw v}typeof a.onDownloadProgress=="function"&&h.addEventListener("progress",a.onDownloadProgress),typeof a.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",a.onUploadProgress),a.cancelToken&&a.cancelToken.promise.then(function(v){!h||(h.abort(),c(v),h=null)}),d||(d=null),h.send(d)})},su}var Ze=gt,sh=u4,E4={"Content-Type":"application/x-www-form-urlencoded"};function oh(e,t){!Ze.isUndefined(e)&&Ze.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function w4(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=y4()),e}var ol={adapter:w4(),transformRequest:[function(e,t){return sh(t,"Accept"),sh(t,"Content-Type"),Ze.isFormData(e)||Ze.isArrayBuffer(e)||Ze.isBuffer(e)||Ze.isStream(e)||Ze.isFile(e)||Ze.isBlob(e)?e:Ze.isArrayBufferView(e)?e.buffer:Ze.isURLSearchParams(e)?(oh(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Ze.isObject(e)?(oh(t,"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}};ol.headers={common:{Accept:"application/json, text/plain, */*"}};Ze.forEach(["delete","get","head"],function(e){ol.headers[e]={}});Ze.forEach(["post","put","patch"],function(e){ol.headers[e]=Ze.merge(E4)});var Cm=ol,ah=gt,ou=a4,x4=wm(),C4=Cm;function au(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var S4=function(e){au(e),e.headers=e.headers||{},e.data=ou(e.data,e.headers,e.transformRequest),e.headers=ah.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ah.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]});var t=e.adapter||C4.adapter;return t(e).then(function(n){return au(e),n.data=ou(n.data,n.headers,e.transformResponse),n},function(n){return x4(n)||(au(e),n&&n.response&&(n.response.data=ou(n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})},Le=gt,Sm=function(e,t){t=t||{};var n={},r=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function l(d,f){return Le.isPlainObject(d)&&Le.isPlainObject(f)?Le.merge(d,f):Le.isPlainObject(f)?Le.merge({},f):Le.isArray(f)?f.slice():f}function a(d){Le.isUndefined(t[d])?Le.isUndefined(e[d])||(n[d]=l(void 0,e[d])):n[d]=l(e[d],t[d])}Le.forEach(r,function(d){Le.isUndefined(t[d])||(n[d]=l(void 0,t[d]))}),Le.forEach(i,a),Le.forEach(s,function(d){Le.isUndefined(t[d])?Le.isUndefined(e[d])||(n[d]=l(void 0,e[d])):n[d]=l(void 0,t[d])}),Le.forEach(o,function(d){d in t?n[d]=l(e[d],t[d]):d in e&&(n[d]=l(void 0,e[d]))});var u=r.concat(i).concat(s).concat(o),c=Object.keys(e).concat(Object.keys(t)).filter(function(d){return u.indexOf(d)===-1});return Le.forEach(c,a),n},bm=gt,b4=Em,lh=s4,_4=S4,al=Sm;function io(e){this.defaults=e,this.interceptors={request:new lh,response:new lh}}io.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=al(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[_4,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(r){t.unshift(r.fulfilled,r.rejected)}),this.interceptors.response.forEach(function(r){t.push(r.fulfilled,r.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n};io.prototype.getUri=function(e){return e=al(this.defaults,e),b4(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};bm.forEach(["delete","get","head","options"],function(e){io.prototype[e]=function(t,n){return this.request(al(n||{},{method:e,url:t,data:(n||{}).data}))}});bm.forEach(["post","put","patch"],function(e){io.prototype[e]=function(t,n,r){return this.request(al(r||{},{method:e,url:t,data:n}))}});var A4=io,lu,uh;function _m(){if(uh)return lu;uh=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,lu=e,lu}var uu,ch;function k4(){if(ch)return uu;ch=1;var e=_m();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(s){r=s});var i=this;n(function(s){i.reason||(i.reason=new e(s),r(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var n,r=new t(function(i){n=i});return{token:r,cancel:n}},uu=t,uu}var dh,fh;function R4(){return fh||(fh=1,dh=function(e){return function(t){return e.apply(null,t)}}),dh}var ph,hh;function O4(){return hh||(hh=1,ph=function(e){return typeof e=="object"&&e.isAxiosError===!0}),ph}var mh=gt,P4=vm,ea=A4,F4=Sm,T4=Cm;function Am(e){var t=new ea(e),n=P4(ea.prototype.request,t);return mh.extend(n,ea.prototype,t),mh.extend(n,t),n}var qt=Am(T4);qt.Axios=ea;qt.create=function(e){return Am(F4(qt.defaults,e))};qt.Cancel=_m();qt.CancelToken=k4();qt.isCancel=wm();qt.all=function(e){return Promise.all(e)};qt.spread=R4();qt.isAxiosError=O4();Ld.exports=qt;Ld.exports.default=qt;(function(e){e.exports=Ld.exports})(mm);const km=Uw(mm.exports),vh={};class gh{constructor(t){L(this,"axios"),L(this,"_latestResponse"),this.axios=km.create(t)}setCdn(t){t&&XMLHttpRequest&&!XMLHttpRequest.prototype.cdnUrl&&(XMLHttpRequest.prototype.cdnUrl=t,XMLHttpRequest.prototype.baseOpen=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(){const n=arguments[1];return n.startsWith("/infra/public")&&(arguments[1]=t+n),/^\/([^\/]*)\/public/.test(n)&&(arguments[1]=t+n),n.startsWith("/assets")&&(arguments[1]=t+n),n=="/conf/public"&&(arguments[1]=n),n.startsWith("http")&&(arguments[1]=n),this.baseOpen.apply(this,arguments)})}toAxiosConfig(t){if(t){const n=Object.assign({},this.axios.defaults);return t.headers&&(n.headers&&(n.headers=Object.assign({},this.axios.defaults.headers)),Object.assign(n.headers,t.headers)),t.responseType&&(n.responseType=t.responseType),t.queryParams&&(n.params=Object.assign({},t.queryParams)),n}else return this.axios.defaults}toCdnUrl(t){const n=Pm.instance().Platform.cdnDomain;if((n==null?void 0:n.length)>0&&t!=="/conf/public"){const r=""+t;(r.startsWith("/infra/public")||r.startsWith("/assets")||/^\/([^\/]*)\/public/.test(r))&&(t=n+r)}return t}mapAxiosError(t,n){return t.response?this._latestResponse=t.response:t.request?this._latestResponse={status:408,statusText:Se.TIME_OUT}:this._latestResponse={status:500,statusText:Se.UNKNOWN},!n||n.disableNotifications,this._latestResponse}mapAxiosResponse(t,n){return this._latestResponse=t,t.data}get latestResponse(){return this._latestResponse}get(t,n){return this.axios.get(this.toCdnUrl(t),this.toAxiosConfig(n)).then(r=>this.mapAxiosResponse(r,n)).catch(r=>this.mapAxiosError(r,n))}post(t,n,r){return this.axios.post(t,n,this.toAxiosConfig(r)).then(i=>this.mapAxiosResponse(i,r)).catch(i=>this.mapAxiosError(i,r))}postFile(t,n,r){const i=this.toAxiosConfig(r);return i.headers&&i.headers["Content-Type"]&&delete i.headers["Content-Type"],this.axios.post(t,n,i).then(s=>this.mapAxiosResponse(s,r)).catch(s=>this.mapAxiosError(s,r))}postJson(t,n,r){const i=this.toAxiosConfig();return i.headers&&(i.headers["Content-Type"]="application/json"),this.axios.post(t,n,this.toAxiosConfig(r)).then(s=>this.mapAxiosResponse(s,r)).catch(s=>this.mapAxiosError(s,r))}put(t,n,r){return this.axios.put(t,n,this.toAxiosConfig(r)).then(i=>this.mapAxiosResponse(i,r)).catch(i=>this.mapAxiosError(i,r))}putJson(t,n,r){const i=this.toAxiosConfig(r);return i.headers&&(i.headers["Content-Type"]="application/json"),this.axios.put(t,n,i).then(s=>this.mapAxiosResponse(s,r)).catch(s=>this.mapAxiosError(s,r))}delete(t,n){return this.axios.delete(t,this.toAxiosConfig(n)).then(r=>this.mapAxiosResponse(r,n)).catch(r=>this.mapAxiosError(r,n))}deleteJson(t,n){return this.axios.delete(t,{data:n}).then(r=>this.mapAxiosResponse(r)).catch(r=>this.mapAxiosError(r))}getScript(t,n,r){const i=r??"exports",s=this.toAxiosConfig(n);return s.headers&&(s.headers.Accept="application/javascript"),this.axios.get(this.toCdnUrl(t),s).then(o=>this.mapAxiosResponse(o,n)).then(o=>{try{const l=`"use strict";var ${i.split(".")[0]}={};${o};return ${i};`;return Function(l)()}catch{return o}}).catch(o=>{throw this.mapAxiosError(o,n),o})}loadScript(t,n){return vh[t]?Promise.resolve():this.getScript(t,n).then(r=>{vh[t]=!0})}}let D4=class{constructor(){L(this,"_http",new gh)}get http(){return this._http}newHttpInstance(t){return new gh(t)}};const se=new D4;let Rm=class{static instance(){return se}};const Fe=se.http;let N4=class{constructor(){L(this,"_me",null),L(this,"_currentLanguage",""),L(this,"_notLoggedIn",!0),L(this,"_description"),L(this,"_profile")}get currentLanguage(){return this._currentLanguage}get notLoggedIn(){return this._notLoggedIn}get description(){return this._description}get avatarUrl(){let t=this.description.photo;return(!t||t==="no-avatar.jpg"||t==="no-avatar.svg")&&(t=Pm.instance().Platform.theme.basePath+"/img/illustrations/no-avatar.svg"),t}get user(){return this._me}get currentApp(){return pt.Platform.apps.currentApp}async initialize(){return Fe.get("/auth/oauth2/userinfo").then(t=>{if(Fe.latestResponse.status<200||Fe.latestResponse.status>=300)throw Se.NOT_LOGGED_IN;return this.setCurrentModel(t),this._notLoggedIn?this.loadDefaultLanguage():this.loadUserLanguage()}).then(t=>(this.setCurrentLanguage(t),this.loadDescription())).then(()=>this.getUserProfile()).then(()=>{Ne.onSessionReady().resolve(this._me)}).catch(t=>{if(t===Se.NOT_LOGGED_IN)return Promise.resolve();Ne.onSessionReady().reject(t)})}setCurrentModel(t){this._me=t,this._notLoggedIn=!(t&&t.sessionMetadata&&t.sessionMetadata.userId)}hasWorkflow(t){var n;return t===void 0||((n=this._me)==null?void 0:n.authorizedActions.findIndex(r=>r.name===t))!==-1}hasRight(t,n){if(n==="owner")return t.owner&&t.owner.userId===this._me.userId;const r=n.right||n,i=t.shared.filter(o=>(this._me.groupsIds||[]).indexOf(o.groupId)!==-1||o.userId===this._me.userId).find(o=>o[r]||o.manager)!==void 0,s=n.workflow?this.hasWorkflow(n.workflow):!0;return i&&s}get latestQuotaAndUsage(){return Fe.get(`/workspace/quota/user/${this._me.userId}`).then(t=>(this._description&&(this._description.quota=t.quota,this._description.storage=t.storage),t)).catch(()=>({quota:0,storage:0}))}setCurrentLanguage(t){this._currentLanguage=t,Ne.onLangReady().resolve(t)}loadDefaultLanguage(){return Fe.get("/locale").then(t=>t.locale).catch(()=>this._currentLanguage)}loadDescription(){return Promise.all([Fe.get("/userbook/api/person",{requestName:"refreshAvatar"}),Fe.get("/directory/userbook/"+this._me.userId)]).then(t=>(t[0].status==="ok"&&t[0].result&&t[0].result.length>0?this._description=t[0].result[0]:this._description={},this._description.type&&!this._description.profiles&&(this._description.profiles=this._description.type),Object.assign(this._description,t[1]),this._description))}get profile(){return this._profile}getUserProfile(){return Fe.get("/userbook/api/person").then(t=>t.result).then(t=>this._profile=t[0].type)}loadUserLanguage(){return Fe.get("/userbook/preference/language").then(t=>{try{return JSON.parse(t.preference)["default-domain"]}catch{return this.loadDefaultLanguage()}}).catch(()=>this.loadDefaultLanguage())}getEmailValidationInfos(){return Fe.get("/directory/user/mailstate")}checkEmail(t){return Fe.put("/directory/user/mailstate",{email:t})}tryEmailValidation(t){return Fe.post("/directory/user/mailstate",{key:t})}getMobileValidationInfos(){return Fe.get("/directory/user/mobilestate")}checkMobile(t){return Fe.put("/directory/user/mobilestate",{mobile:t})}tryMobileValidation(t){return Fe.post("/directory/user/mobilestate",{key:t})}getMfaInfos(){return Fe.get("/auth/user/mfa/code")}tryMfaCode(t){return Fe.post("/auth/user/mfa/code",{key:t})}},M4=class{constructor(){L(this,"session",new N4)}initialize(){return this.session.initialize()}login(t,n,r,i){const s=new FormData;return s.append("email",t),s.append("password",n),typeof r<"u"&&s.append("rememberMe",""+r),typeof i<"u"&&s.append("secureLocation",""+i),se.http.post("/auth/login",s,{headers:{"content-type":"application/x-www-form-urlencoded"}}).finally(()=>{switch(se.http.latestResponse.status){case 200:throw Se.MALFORMED_DATA}})}logout(){return se.http.get("/auth/logout").finally(()=>{})}};const Qn=new M4;let $4=class{constructor(){L(this,"_conf"),L(this,"_loaded"),L(this,"skinName",""),L(this,"themeName",""),L(this,"skin","raw"),L(this,"themeUrl","/assets/themes/raw/default/"),L(this,"templateOverrides",{}),L(this,"portalTemplate","/assets/themes/raw/portal.html"),L(this,"basePath",""),L(this,"logoutCallback","/"),L(this,"skins",[]),L(this,"is1D",!1),L(this,"is2D",!1),L(this,"_onSkinReady",Ne.onSkinReady()),L(this,"_onOverrideReady",Ne.onOverridesReady())}initialize(t){return Ne.onSessionReady().promise.then(()=>this.load(t))}get version(){return pt.Platform.deploymentTag}get cdnDomain(){return pt.Platform.cdnDomain}async onFullyReady(){return await this._loaded,this}onSkinReady(){return this._onSkinReady.promise}onOverrideReady(){return this._onOverrideReady.promise}async getConf(t){var n;return this._conf=(n=this._conf)!=null?n:await se.http.getScript("/assets/theme-conf.js",{queryParams:{v:t??this.version}},"exports.conf"),this._conf}load(t){return t=t??this.version,this._loaded||(this._loaded=(Qn.session.notLoggedIn?this.loadDisconnected(t):this.loadConnected(t)).then(async()=>{var n,r;const i=await this.listSkins();this.is1D=((n=i.find(s=>s.child===this.skin))==null?void 0:n.parent)==="panda",this.is2D=((r=i.find(s=>s.child===this.skin))==null?void 0:r.parent)==="theme-open-ent"})),this._loaded}loadDisconnected(t){return new Promise((n,r)=>{se.http.get("/skin",{queryParams:{v:this.version}}).then(i=>{this.skin=i.skin,this.themeUrl=`${this.cdnDomain}/assets/themes/${i.skin}/skins/default/`,this.basePath=this.themeUrl+"../../",this._onSkinReady.resolve(this),se.http.get(`/assets/themes/${i.skin}/template/override.json`,{disableNotifications:!0,queryParams:{v:t}}).then(s=>{this.templateOverrides=s,this._onOverrideReady.resolve(s),n()}).catch(s=>{if(se.http.latestResponse.status===404)n();else throw s})}).catch(i=>{this._onSkinReady.reject(i),this._onOverrideReady.reject(i),r()})})}loadConnected(t){return new Promise((n,r)=>{this.loadDefaultTheme(t).then(()=>{this._onSkinReady.resolve(this),se.http.get(`/assets/themes/${this.skin}/template/override.json`,{disableNotifications:!0,queryParams:{v:t}}).then(i=>{this.templateOverrides=i,this._onOverrideReady.resolve(i),n()}).catch(i=>{if(se.http.latestResponse.status===404)n(),this._onSkinReady.reject(i),this._onOverrideReady.reject(i);else throw i})})})}async loadDefaultTheme(t){return Qn.session.notLoggedIn?Promise.reject():se.http.get("/theme",{queryParams:{_:t}}).then(n=>{this.skinName=n.skinName,this.themeName=n.themeName,this.themeUrl=n.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=n.logoutCallback})}listThemes(){return se.http.get("/themes")}async setDefaultTheme(t){await se.http.get("/userbook/api/edit-userbook-info?prop=theme-"+this.skin+"&value="+t._id),await this.loadDefaultTheme(this.version)}listSkins(){return this.skins.length>0?Promise.resolve(this.skins):this.getConf().then(t=>{const n=t.overriding.find(r=>r.child===this.skin);return n!=null&&n.group?this.skins=this.skins.concat(t.overriding.filter(r=>r.group===n.group)):this.skins=this.skins.concat(t.overriding),this.skins})}async getHelpPath(){var t;const n=(await this.listSkins()).find(r=>r.child===this.skin);return(t=n==null?void 0:n.help)!=null?t:"/help"}};const Ii={},cu={},si=[{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}];let Om=class{translate(t,n){t=t??"";let r=Ii[t]===void 0?t:Ii[t];if(n&&typeof n=="object")for(let i in n)typeof n[i]<"u"&&(r=r.replace(new RegExp("\\${"+i+"}","g"),""+n[i]));return r}addBundlePromise(t){return this.loadBundlePromise(Qn.session.currentLanguage,t)}addBundle(t,n){this.loadBundle(Qn.session.currentLanguage,t,n)}loadBundlePromise(t,n){return this.loadBundle(t,n),cu[n]}loadBundle(t,n,r){const i=cu[n];if(i)r&&i.then(r).catch(r);else{const s=new bs;cu[n]=s.promise;const o={};t&&(o["Accept-Language"]=t),se.http.get(n,{headers:o}).then(l=>{Object.assign(Ii,l),typeof r=="function"&&r(),s.resolve()}).catch(l=>{typeof r=="function"&&r(),s.reject()})}}addTranslations(t,n){Ne.onLangReady().promise.then(r=>{this.loadBundle(r,t+"/"+r+".json",n)})}addAllTranslations(t){return t&&t.length>0?Ne.onLangReady().promise.then(n=>Promise.all(t.map(r=>this.loadBundlePromise(n,r+"/"+n+".json")))).then(()=>{}):Promise.reject()}addKeys(t){for(var n in t)typeof Ii[n]!="string"&&(Ii[n]=t[n])}removeAccents(t){for(var n=0;n<si.length;n++)t=t.replace(si[n].letters,si[n].base);return t}};class yh{constructor(){L(this,"data",{})}get(t){return this.data[t]}load(t,n){return se.http.get("/userbook/preference/"+t).then(r=>{try{return JSON.parse(r.preference)}catch{return n??{}}}).then(r=>(this.data[t]=r??{},r))}update(t,n){return n!==void 0&&(this.data[t]=n),this}save(t){return se.http.putJson("/userbook/preference/"+t,this.data[t])}}let I4=class{constructor(){L(this,"_me",null),L(this,"_keepOpenOnLogout",!1),L(this,"_preferences",new yh),L(this,"_bookmarkedApps",[])}get keepOpenOnLogout(){return this._keepOpenOnLogout}get preferences(){return this._preferences}get bookmarkedApps(){return this._bookmarkedApps}initialize(t){return this.loadPublicConf(),Ne.onSessionReady().promise.then(n=>{n&&this.setCurrentModel(n)})}setCurrentModel(t){this._me=t,this._preferences=new yh,this.loadBookmarks()}loadPublicConf(){return se.http.get("/conf/public").then(t=>(this._keepOpenOnLogout=(t==null?void 0:t.keepOpenOnLogout)||!1,t))}async loadBookmarks(){await se.http.get("/userbook/preference/apps").then(t=>{t.preference||(t.preference=null);const n=JSON.parse(t.preference);let r;if(n&&n.length&&typeof n.concat=="function"){this._bookmarkedApps=n,r={bookmarks:n.map(o=>o.name),applications:[]},se.http.putJson("/userbook/preference/apps",r);return}else r=n;r||(r={bookmarks:[],applications:[]});let i=!0;const s=[];r.bookmarks.forEach((o,l)=>{const a=this._me.apps.find(u=>u.name===o);if(a){let u=Object.assign({},a);this._bookmarkedApps.push(u)}else s.push(o),i=!1}),s.forEach(o=>{let l=r.bookmarks.indexOf(o);l!==-1&&r.bookmarks.splice(l,1)}),i||se.http.putJson("/userbook/preference/apps",r)})}loadAppPrefs(t){return this.preferences.load(t,{})}saveAppPrefs(t){return this.preferences.save(t)}loadLanguage(){return this.preferences.load("language",{"default-domain":Qn.session.currentLanguage}).then(t=>t["default-domain"])}saveLanguage(t){return this.preferences.update("language",{"default-domain":t}).save("language")}};const Eh=se==null?void 0:se.http;let L4=class{constructor(){L(this,"_publicConf",{}),L(this,"_currentApp"),L(this,"_appConf",{})}get currentApp(){var t;return(t=this._currentApp)!=null?t:null}setCurrentApp(t){return this._currentApp=t,this}async initialize(t,n=!1){n||this.setCurrentApp(t),await Promise.all([this.getPublicConf(t),this.loadI18n(t)])}async getPublicConf(t){return this._publicConf[t]||(this._publicConf[t]=await Eh.get(`/${t}/conf/public`,{queryParams:{_:pt.Platform.deploymentTag}})),this._publicConf[t]}async getWebAppConf(t){var n;let r;return this._appConf[t]||(await Eh.get("/applications-list")).apps.forEach(i=>{if(i!=null&&i.prefix){const s=i.prefix.replace("/","");this._appConf[s]=i}else i!=null&&i.name&&i.name.toLowerCase()==t&&(r=i)}),(n=this._appConf[t])!=null?n:r}async loadI18n(t){return await Ne.onLangReady().promise,pt.Platform.idiom.addBundlePromise(`/${t}/i18n`)}},j4=class{constructor(){L(this,"_status","void"),L(this,"_params")}get status(){return this._status}xiti(){return this.parametersWithCheck("xiti",!1)}parameters(t){return this.parametersWithCheck(t,!0)}async parametersWithCheck(t,n){return this.initialize().promise.then(r=>!n||r.type===t||r.type==="multiple"?r[t]:void 0)}initialize(){return this._params||(this._params=Ne.promisify(),this._status="pending",Promise.all([se.http.get("/analyticsConf"),se.http.get("/xiti/config")]).then(async t=>{var n;if(!t||!t[0]||!t[0].type)throw Se.MALFORMED_DATA;t[1]&&t[1].active&&(t[0].xiti=await this.initializeXiti(t[1])),(n=this._params)==null||n.resolve(t[0]),this._status="ready"}).catch(t=>{var n;throw this._status="failed",(n=this._params)==null||n.reject(),t})),this._params}async initializeXiti(t){var n;if(!t.structureMap||!pt.Platform.apps.currentApp)return;const r=await Ne.onSessionReady().promise,i=Qn.session.description;let s;for(let c of r.structures){const d=t.structureMap[c];if(d&&d.collectiviteId&&d.UAI){s=d;break}}if(!s||!s.active)return;const o=await pt.Platform.apps.getPublicConf(pt.Platform.apps.currentApp);if(!o)return;const l=o.xiti;if(!l||!l.LIBELLE_SERVICE||!s.UAI)return;function a(c){let d="";for(let f=0;f<c.length;f++)d+=c.charCodeAt(f);return d}const u={Student:"ELEVE",Teacher:"ENSEIGNANT",Relative:"PARENT",Personnel:"ADMIN_VIE_SCOL_TECH",Guest:"AUTRE"};return{LIBELLE_SERVICE:l.LIBELLE_SERVICE,TYPE:l.OUTIL?"TIERS":"NATIF",OUTIL:l.OUTIL?l.OUTIL:"",STRUCT_ID:s.collectiviteId,STRUCT_UAI:s.UAI,PROJET:s.projetId?s.projetId:t.ID_PROJET,EXPLOITANT:t.ID_EXPLOITANT,PLATFORME:s.plateformeId?s.plateformeId:t.ID_PLATEFORME,ID_PERSO:a(r.userId),PROFILE:i.profiles&&i.profiles.length>0&&(n=u[i.profiles[0]])!=null?n:""}}},B4=class{constructor(){L(this,"Platform",{deploymentTag:"",cdnDomain:"",apps:new L4,theme:new $4,analytics:new j4,idiom:new Om,listLanguages:()=>se.http.get("/languages")}),L(this,"School",{}),L(this,"User",new I4)}async initialize(t,n){if(!t){const i=u=>(u<10?"0":"")+u.toFixed(0),s=new Date,o=s.getFullYear(),l=s.getMonth()+1,a=s.getDate();t=`${o}${i(l)}${i(a)}`}const r=t;this.Platform.deploymentTag=t,typeof n=="string"&&n.length>0&&(this.Platform.cdnDomain=n),se.http.setCdn(this.Platform.cdnDomain),await Promise.all([this.Platform.theme.initialize(r),Ne.onSessionReady().promise.then(i=>this.Platform.idiom.addBundlePromise("/i18n")),this.User.initialize(r)])}};const pt=new B4;let Pm=class{static instance(){return pt}};const ke={LEFT:"left",RIGHT:"right"},U4=["birthday","mood","calendar-widget","notes"],z4=["agenda-widget","carnet-de-bord","my-apps","rss-widget","bookmark-widget","cursus-widget","maxicours-widget","school-widget"],H4={"last-infos-widget":ke.LEFT,birthday:ke.LEFT,"calendar-widget":ke.RIGHT,"carnet-de-bord":ke.LEFT,"record-me":ke.RIGHT,mood:ke.LEFT,"my-apps":ke.RIGHT,notes:ke.RIGHT,"rss-widget":ke.LEFT,"bookmark-widget":ke.RIGHT,qwant:ke.RIGHT,"qwant-junior":ke.LEFT,"agenda-widget":ke.LEFT,"cursus-widget":ke.LEFT,"maxicours-widget":ke.RIGHT,"universalis-widget":ke.RIGHT,"briefme-widget":ke.LEFT,"school-widget":ke.LEFT},wh={"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};let V4=class{constructor(){L(this,"_initialized"),L(this,"_widgets",[]),L(this,"_userPrefs",{})}initialize(t,n){return this._initialized||(this._initialized=new bs,Ne.onSessionReady().promise.then(r=>{var i;r&&r.widgets?(r.widgets.forEach(s=>{this._widgets.push(new q4(s))}),this.loadUserPrefs().then(()=>{var s;(s=this._initialized)==null||s.resolve()}).catch(s=>{var o;(o=this._initialized)==null||o.reject()})):(i=this._initialized)==null||i.reject()})),this._initialized.promise}get list(){return this._widgets}lookup(t){return this._widgets.find(n=>n.platformConf.name===t)}lookupDefaultPosition(t){return H4[t]}get userPrefs(){return this._userPrefs}async loadUserPrefs(){await pt.User.preferences.load("widgets",{}).then(t=>this.applyUserPrefs(t))}saveUserPrefs(){return pt.User.preferences.update("widgets",this._userPrefs).save("widgets").then(()=>{Ne.events().next({name:Bw.USERPREF_CHANGED,layer:jw.WIDGETS})})}async applyUserPrefs(t){this._userPrefs=t??this._userPrefs;const n=pt.Platform.theme,r=[];n.listSkins().then(i=>{var s;const o=((s=i.find(a=>a.child===n.skin))==null?void 0:s.parent)==="panda"?z4:U4;this._widgets=this._widgets.filter((a,u)=>{var c,d;const f=a.platformConf.name;return o.indexOf(f)!==-1?!1:(this._userPrefs[f]||(this._userPrefs[f]={index:(c=wh[f])!=null?c:999,show:!0,position:a.platformConf.position}),a.platformConf.mandatory&&(this._userPrefs[f].show=!0,this._userPrefs[f].index=(d=wh[f])!=null?d:999),a.platformConf.i18n&&r.push(a.platformConf.i18n),a.applyUserPref(this._userPrefs[f]),!0)});const l=new Om;this._widgets=this._widgets.sort((a,u)=>{const c=l.translate(`timeline.settings.${a.platformConf.name}`).toLowerCase(),d=l.translate(`timeline.settings.${u.platformConf.name}`).toLowerCase();return c<d?-1:c>d?1:0})})}},q4=class{constructor(t){L(this,"_schoolConf",{}),L(this,"_userPref"),this._platformConf=t,this._userPref=null}get platformConf(){return this._platformConf}get schoolConf(){return this._schoolConf}get userPref(){return this._userPref}applyUserPref(t){var n,r;this._userPref=t,this._userPref.position=(r=(n=this._userPref.position)!=null?n:W4.lookupDefaultPosition(this._platformConf.name))!=null?r:"left"}};const W4=new V4;se==null||se.http;var xh;(xh=Qn==null?void 0:Qn.session)==null||xh.user;const Ji=class{constructor(t){L(this,"checkHttpResponse",n=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return n}),this.context=t}static register({application:t,resourceType:n},r){Ji.registry.set(`${t}:main`,r),Ji.registry.set(`${t}:${n}`,r)}static findService({application:t,resourceType:n},r){const i=Ji.registry.get(`${t}:${n}`);if(i===void 0)throw`Service not found: ${t}:${n}`;return i(r)}static findMainService({application:t},n){const r=Ji.registry.get(`${t}:main`);if(r===void 0)throw`Service not found: ${t}`;return r(n)}get http(){return this.context.http()}getShareReadUrl(t){return`/${this.getApplication()}/share/json/${t}?search=`}getSaveShareUrl(t){return`/${this.getApplication()}/share/resource/${t}`}gotoPrint(t,n){window.open(this.getPrintUrl(t,n),"_blank")}gotoView(t){window.open(this.getViewUrl(t),"_self")}gotoForm(t){window.open(this.getFormUrl(t),"_self")}async publish(t){const n=new FormData;n.append("title",t.title),n.append("cover",t.cover),n.append("coverName",t.cover.name),n.append("coverType",t.cover.type),n.append("teacherAvatar",t.teacherAvatar),n.append("teacherAvatarName",t.teacherAvatar.name||`teacherAvatar_${t.userId}`),n.append("teacherAvatarType",t.teacherAvatar.type),n.append("language",t.language),t.activityType.forEach(i=>{n.append("activityType[]",i)}),t.subjectArea.forEach(i=>{n.append("subjectArea[]",i)}),t.age.forEach(i=>{n.append("age[]",i.toString())}),n.append("description",t.description),t.keyWords.split(",").forEach(i=>{n.append("keyWords[]",i.trim())}),n.append("licence",t.licence),n.append("pdfUri",`${window.location.origin}${this.getPrintUrl(t.resourceId)}`),n.append("application",t.application?t.application:""),n.append("resourceId",t.resourceId),n.append("teacherSchool",t.userStructureName);const r=await this.http.post("/appregistry/library/resource",n,{headers:{"Content-Type":"multipart/form-data"}});return this.checkHttpResponse(r)}async createContext(t){const n=await this.http.get("/explorer/context",{queryParams:this.toQueryParams(t)});return this.checkHttpResponse(n)}async searchContext(t){const n=await this.http.get("/explorer/resources",{queryParams:this.toQueryParams(t)});return this.checkHttpResponse(n)}async createFolder(t){const n=await this.http.post("/explorer/folders",this.createFolderToBodyParams(t));return this.checkHttpResponse(n)}async updateFolder(t){const n=await this.http.put(`/explorer/folders/${t.folderId}`,this.createFolderToBodyParams(t));return this.checkHttpResponse(n)}async moveToFolder(t){const n=await this.http.post(`/explorer/folders/${t.folderId}/move`,this.moveToBodyParams(t));return this.checkHttpResponse(n)}async listSubfolders(t){const n=await this.http.get(`/explorer/folders/${t}`);return this.checkHttpResponse(n)}async deleteAll(t){const n=await this.http.deleteJson("/explorer",t);return this.checkHttpResponse(n)}async trashAll({resourceType:t,...n}){const r=await this.http.putJson("/explorer/trash",n);return this.checkHttpResponse(r)}async restoreAll({resourceType:t,...n}){const r=await this.http.putJson("/explorer/restore",n);return this.checkHttpResponse(r)}async getThumbnailPath(t){if(typeof t>"u")return t;if(typeof t=="string")if(t.startsWith("blob:")){const n=await fetch(t).then(r=>r.blob());return`/workspace/document/${(await this.context.workspace().saveFile(n,{visibility:"protected",application:this.getApplication()}))._id}`}else return t;else return`/workspace/document/${(await this.context.workspace().saveFile(t,{visibility:"protected",application:this.getApplication()}))._id}`}toQueryParams(t){let n={application:t.app,start_idx:t.pagination.startIdx,page_size:t.pagination.pageSize,resource_type:t.types[0],trashed:t.trashed};if(t.orders&&Object.entries(t.orders).length){const[[r,i]]=Object.entries(t.orders);n.order_by=`${r}:${i}`}return t.filters&&Object.assign(n,t.filters),typeof t.search=="string"&&(n.search=t.search),n}createFolderToBodyParams(t){return{application:t.app,resourceType:t.type,parentId:t.parentId,name:t.name}}moveToBodyParams(t){return{application:t.application,resourceType:this.getResourceType(),resourceIds:t.resourceIds,folderIds:t.folderIds}}};let _s=Ji;L(_s,"registry",new Map);let Q4=class extends _s{async update(t){const n=await this.getThumbnailPath(t.thumbnail),r=await this.http.put(`/blog/${t.entId}`,{trashed:t.trashed,_id:t.entId,title:t.name,thumbnail:n,description:t.description,visibility:t.public?"PUBLIC":"OWNER",slug:t.public?t.slug:"","publish-type":t["publish-type"]||"RESTRAINT","comment-type":"IMMEDIATE"});return this.checkHttpResponse(r),{thumbnail:n,entId:t.entId}}getResourceType(){return at.BLOG}getApplication(){return gr.BLOG}getFormUrl(t){return t?`/blog?folderid=${t}#/edit/new`:"/blog#/edit/new"}getViewUrl(t){return`/blog#/view/${t}`}getPrintUrl(t,n){return`/blog/print/blog#/print/${t}?comments=${n||!0}`}};_s.register({application:at.BLOG,resourceType:at.BLOG},e=>new Q4(e));const or={},du={};class Y4{constructor(t){this.context=t}get http(){return this.context.http()}async fromCacheIfPossible(t,n,r){if(du[t]&&await du[t],or[t])return or[t];try{const i=n();du[t]=i;const s=await i;return r(s)&&(or[t]=s),s}catch(i){throw console.error(`Failed to retrieve value for: ${t}`,i),i}}clearCache(t){if(t)delete or[t];else for(const n in or)or.hasOwnProperty(n)&&delete or[n]}async httpGet(t,n){return this.fromCacheIfPossible(t,async()=>{const r=await this.http.get(t,n),i={...this.http.latestResponse};return{value:r,response:i}},({response:r})=>!(r.status<200||r.status>=300))}async httpGetJson(t,n){const{response:r,value:i}=await this.httpGet(t,n);if(r.status<200||r.status>=300)throw`Bad http status (${r.status}) for url: ${t}`;return i}}let G4=class{constructor(t){this.context=t}get http(){return this.context.http()}get cdnDomain(){return pt.Platform.cdnDomain}async getConf(t){const[n,r]=await Promise.all([this.getThemeConf(),this.getApplicationsList()]),[i,s]=await Promise.all([this.getTheme({conf:n}),this.getWebAppConf({app:t,applications:r})]);return{applications:r,conf:n,currentApp:s,theme:i}}getCdnUrl(){console.warn("[getCdnUrl] Not implemented yet")}async savePreference(t,n){this.http.putJson(`/userbook/preference/${t}`,n)}async getPreference(t){const n=await this.http.get(`/userbook/preference/${t}`);return JSON.parse(n.preference)}async getThemeConf(t){return await this.http.getScript("/assets/theme-conf.js",{queryParams:{v:t}},"exports.conf")}async getApplicationsList(){return(await this.http.get("/applications-list")).apps}async getWebAppConf({app:t,applications:n}){return n.find(r=>{if(r!=null&&r.prefix)return(r==null?void 0:r.prefix.replace("/",""))===t})}async getTheme({version:t,conf:n}){const r=await this.http.get("/theme",{queryParams:{_:t}}),i=r.themeName,s=n==null?void 0:n.overriding.find(d=>d.child===i).skins,o="/assets/themes/ode-bootstrap",l=n==null?void 0:n.overriding.find(d=>d.child===i).bootstrapVersion,a=`${this.cdnDomain}/assets/themes/${l}`,u=`${a}/skins/${r.skinName}`,c=(n==null?void 0:n.overriding.find(d=>d.child===i).parent)==="panda";return{basePath:`${this.cdnDomain}${r.skin}../../`,bootstrap:o,bootstrapPath:a,bootstrapUrl:u,bootstrapVersion:l,is1d:c,logoutCallback:r.logoutCallback,skin:r.skin.split("/assets/themes/")[1].split("/")[0],skinName:r.skinName,skins:s,themeName:r.themeName,themeUrl:r.skin}}},Z4=class{constructor(t){this.odeServices=t}get http(){return this.odeServices.http()}get cache(){return this.odeServices.cache()}getAvatarUrl(t,n,r="100x100"){return n==="user"?`/userbook/avatar/${t}?thumbnail=${r}`:"/assets/img/illustrations/group-avatar.svg"}getDirectoryUrl(t,n){return n==="user"?`/userbook/annuaire#/${t}`:`/userbook/annuaire#/group-view/${t}`}async getBookMarks(){return(await this.cache.httpGetJson("/directory/sharebookmark/all")).map(({id:t,name:n})=>({id:t,displayName:n,members:[]}))}async getBookMarkById(t){const{groups:n,id:r,name:i,users:s}=await this.http.get(`/directory/sharebookmark/${t}`);return{id:r,displayName:i,groups:n.map(({name:o,id:l})=>({displayName:o,id:l})),users:s.map(({displayName:o,id:l,profile:a})=>({profile:a,displayName:o,firstName:"",lastName:"",login:"",id:l}))}}async saveBookmarks(t,{bookmarks:n,groups:r,users:i}){this.cache.clearCache("/directory/sharebookmark/all");const s=i.map(d=>typeof d=="string"?d:d.id),o=r.map(d=>typeof d=="string"?d:d.id),l=n.map(async d=>{if(typeof d=="string"){const{displayName:f,groups:h,id:m,users:y}=await this.getBookMarkById(d),x=y.map(v=>v.id),g=h.map(v=>v.id);return{displayName:f,id:m,members:[...g,...x]}}else return Promise.resolve(d)}),a=(await Promise.all(l)).map(d=>d.members).reduce((d,f)=>[...d,...f],[]),u={name:t,members:[...s,...o,...a]},{id:c}=await this.http.postJson("/directory/sharebookmark",u);return{id:c,displayName:t,members:u.members}}};const Ch={};let K4=class{constructor(t,n){L(this,"axios"),L(this,"_latestResponse"),this.context=t,this.axios=km.create(n)}setCdn(t){t&&XMLHttpRequest&&!XMLHttpRequest.prototype.cdnUrl&&(XMLHttpRequest.prototype.cdnUrl=t,XMLHttpRequest.prototype.baseOpen=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(){const n=arguments[1];return n.startsWith("/infra/public")&&(arguments[1]=t+n),/^\/([^\/]*)\/public/.test(n)&&(arguments[1]=t+n),n.startsWith("/assets")&&(arguments[1]=t+n),n=="/conf/public"&&(arguments[1]=n),n.startsWith("http")&&(arguments[1]=n),this.baseOpen.apply(this,arguments)})}toAxiosConfig(t){if(t){const n=Object.assign({},this.axios.defaults);return t.headers&&(n.headers=Object.assign({},this.axios.defaults.headers),Object.assign(n.headers,t.headers)),t.responseType&&(n.responseType=t.responseType),t.queryParams&&(n.params=Object.assign({},t.queryParams)),n}else return this.axios.defaults}toCdnUrl(t){const n=this.context.conf().getCdnUrl()||"";if(n.length>0&&t!=="/conf/public"){const r=""+t;(r.startsWith("/infra/public")||r.startsWith("/assets")||/^\/([^\/]*)\/public/.test(r))&&(t=n+r)}return t}mapAxiosError(t,n){return console.error("[HttpService]",t),t.response?this._latestResponse=t.response:t.request?this._latestResponse={status:408,statusText:Se.TIME_OUT}:this._latestResponse={status:500,statusText:Se.UNKNOWN},!n||n.disableNotifications,this._latestResponse}mapAxiosResponse(t,n){return this._latestResponse=t,t.data}get latestResponse(){return this._latestResponse}async get(t,n){try{const r=await this.axios.get(this.toCdnUrl(t),this.toAxiosConfig(n));return this.mapAxiosResponse(r,n)}catch(r){return this.mapAxiosError(r,n)}}async post(t,n,r){try{const i=await this.axios.post(t,n,this.toAxiosConfig(r));return this.mapAxiosResponse(i,r)}catch(i){return this.mapAxiosError(i,r)}}async postFile(t,n,r){const i=this.toAxiosConfig(r);i.headers&&i.headers["Content-Type"]&&delete i.headers["Content-Type"];try{const s=await this.axios.post(t,n,{...i,headers:{"Content-Type":"multipart/form-data"}});return this.mapAxiosResponse(s,r)}catch(s){return this.mapAxiosError(s,r)}}async postJson(t,n,r){const i=this.toAxiosConfig();i.headers&&(i.headers["Content-Type"]="application/json");try{const s=await this.axios.post(t,n,this.toAxiosConfig(r));return this.mapAxiosResponse(s,r)}catch(s){return this.mapAxiosError(s,r)}}async put(t,n,r){try{const i=await this.axios.put(t,n,this.toAxiosConfig(r));return this.mapAxiosResponse(i,r)}catch(i){return this.mapAxiosError(i,r)}}async putFile(t,n,r){try{const i=this.toAxiosConfig(r);i.headers&&i.headers["Content-Type"]&&delete i.headers["Content-Type"];const s=await this.axios.put(t,n,{...i,headers:{"Content-Type":"multipart/form-data"}});return this.mapAxiosResponse(s,r)}catch(i){return this.mapAxiosError(i,r)}}async putJson(t,n,r){const i=this.toAxiosConfig(r);i.headers&&(i.headers["Content-Type"]="application/json");try{const s=await this.axios.put(t,n,i);return this.mapAxiosResponse(s,r)}catch(s){return this.mapAxiosError(s,r)}}async delete(t,n){try{const r=await this.axios.delete(t,this.toAxiosConfig(n));return this.mapAxiosResponse(r,n)}catch(r){return this.mapAxiosError(r,n)}}async deleteJson(t,n){try{const r=await this.axios.delete(t,{data:n});return this.mapAxiosResponse(r)}catch(r){return this.mapAxiosError(r)}}getScript(t,n,r){const i=r??"exports",s=this.toAxiosConfig(n);return s.headers&&(s.headers.Accept="application/javascript"),this.axios.get(this.toCdnUrl(t),s).then(o=>this.mapAxiosResponse(o,n)).then(o=>{try{const l=`"use strict";var ${i.split(".")[0]}={};${o};return ${i};`;return Function(l)()}catch{return o}}).catch(o=>{throw this.mapAxiosError(o,n),o})}loadScript(t,n){return Ch[t]?Promise.resolve():this.getScript(t,n).then(r=>{Ch[t]=!0})}},X4=class{constructor(t){this.context=t}get session(){return this.context.session()}parseResourceRight(t){const n=t.split(":");if(n.length===2){if(n[0]==="creator")return{id:n[1],right:"creator",type:"creator"}}else return n.length===3?{id:n[1],right:n[2],type:n[0]}:void 0}parseResourceRights(t){return t.map(n=>this.parseResourceRight(n)).filter(n=>n!==void 0)}hasResourceRight({id:t,groupIds:n},r,i){const s=i.map(o=>typeof o=="string"?this.parseResourceRight(o):o).filter(o=>o!==void 0);for(const o of s)if(o.id===t&&o.type==="creator"||o.id===t&&o.type==="user"&&o.right===r||n.includes(o.id)&&o.type==="group"&&o.right===r)return!0;return!1}async sessionHasResourceRight(t,n){try{const r=await this.session.getUser();return!!r&&this.hasResourceRight({groupIds:r.groupsIds,id:r.userId},t,n)}catch(r){return console.error(r),!1}}async sessionHasAtLeastOneResourceRight(t,n){for(const r of t)if(await this.sessionHasResourceRight(r,n))return!0;return!1}async sessionHasResourceRightForEachList(t,n){let r=0;for(const i of n)await this.sessionHasResourceRight(t,i)&&r++;return r===n.length}async sessionHasAtLeastOneResourceRightForEachList(t,n){for(const r of t){let i=0;for(const s of n)await this.sessionHasResourceRight(r,s)&&i++;if(i===n.length)return!0}return!1}hasWorkflowRight(t,n){return n.findIndex(r=>r===t)!==-1}async sessionHasWorkflowRight(t){try{const n=await this.session.getUser();return!!n&&this.hasWorkflowRight(t,n.authorizedActions.map(r=>r.name))}catch(n){return console.error(n),!1}}async sessionHasWorkflowRights(t){const n={};try{const r=await this.session.getUser();for(const i of t)n[i]=!!r&&this.hasWorkflowRight(i,r.authorizedActions.map(s=>s.name))}catch(r){console.error(r);for(const i of t)n[i]=!1}return n}},J4=class{constructor(t){this.context=t}get http(){return this.context.http()}get cache(){return this.context.cache()}onLogout(){this.cache.clearCache()}onRefreshSession(){this.cache.clearCache()}async getSession(){const t=await this.getUser(),[n,r,i,s,o]=await Promise.all([this.getCurrentLanguage(t),this.latestQuotaAndUsage(t),this.loadDescription(t),this.getUserProfile(),this.getBookmarks(t)]);return{user:t,quotaAndUsage:r,currentLanguage:n,userDescription:i,userProfile:s,bookmarkedApps:o}}login(t,n,r,i){const s=new FormData;return s.append("email",t),s.append("password",n),typeof r<"u"&&s.append("rememberMe",""+r),typeof i<"u"&&s.append("secureLocation",""+i),this.http.post("/auth/login",s,{headers:{"content-type":"application/x-www-form-urlencoded"}}).finally(()=>{switch(this.http.latestResponse.status){case 200:throw Se.MALFORMED_DATA}})}logout(){return this.http.get("/auth/logout").finally(()=>{})}async latestQuotaAndUsage(t){try{return await this.http.get(`/workspace/quota/user/${t==null?void 0:t.userId}`)}catch(n){return console.error(n),{quota:0,storage:0}}}async getCurrentLanguage(t){const n=(t==null?void 0:t.sessionMetadata)&&(t==null?void 0:t.sessionMetadata.userId);try{let r;return n?r=await this.loadUserLanguage():r=await this.loadDefaultLanguage(),r}catch(r){console.error(r)}}async loadUserLanguage(){try{const t=await this.http.get("/userbook/preference/language");return JSON.parse(t.preference)["default-domain"]}catch{return await this.loadDefaultLanguage()}}async loadDefaultLanguage(){return(await this.cache.httpGetJson("/locale")).locale}async getUser(){const{response:t,value:n}=await this.cache.httpGet("/auth/oauth2/userinfo");if(t.status<200||t.status>=300)throw Se.NOT_LOGGED_IN;return n}hasWorkflow({workflowName:t,user:n}){return t===void 0||(n==null?void 0:n.authorizedActions.findIndex(r=>r.name===t))!==-1}async loadDescription(t){try{const[n,r]=await Promise.all([this.getUserProfile({requestName:"refreshAvatar"}),this.http.get("/directory/userbook/"+(t==null?void 0:t.userId))]);return{...n,...r}}catch(n){return console.error(n),{}}}async getBookmarks(t){const n=await this.http.get("/userbook/preference/apps");n.preference||(n.preference=null);const r=JSON.parse(n.preference);let i;i=r,i||(i={bookmarks:[],applications:[]});let s=[];return i.bookmarks.forEach((o,l)=>{const a=t==null?void 0:t.apps.find(u=>u.name===o);if(a){let u=Object.assign({},a);s.push(u)}}),s}async getUserProfile(t){const{response:n,value:r}=await this.cache.httpGet("/userbook/api/person",t);if(n.status<200||n.status>=300)throw Se.NOT_LOGGED_IN;return r.result[0].type}async isAdml(){const t=await this.getUser();return(t==null?void 0:t.functions.ADMIN_LOCAL)!==void 0}},ar=class{static removeAccents(t){for(var n=0;n<si.length;n++)t=t.replace(si[n].letters,si[n].base);return t}},ex=class{constructor(t){this.context=t}get directory(){return this.context.directory()}get http(){return this.context.http()}get cache(){return this.context.cache()}async searchShareSubjects(t,n,r){const i=ar.removeAccents(r).toLowerCase(),s=await this.cache.httpGetJson(`/${t}/share/json/${n}?search=${r}`),o=s.users.visibles.filter(({username:a,firstName:u,lastName:c,login:d})=>{const f=ar.removeAccents(c||"").toLowerCase(),h=ar.removeAccents(u||"").toLowerCase(),m=ar.removeAccents(a||"").toLowerCase(),y=ar.removeAccents(d||"").toLowerCase();return m.includes(i)||h.includes(i)||f.includes(i)||y.includes(i)}).map(a=>({avatarUrl:this.directory.getAvatarUrl(a.id,"user"),directoryUrl:this.directory.getDirectoryUrl(a.id,"user"),displayName:a.username,id:a.id,profile:a.profile,type:"user"})),l=s.groups.visibles.filter(({name:a})=>ar.removeAccents(a||"").toLowerCase().includes(i)).map(a=>({avatarUrl:this.directory.getAvatarUrl(a.id,"group"),directoryUrl:this.directory.getDirectoryUrl(a.id,"group"),displayName:a.name,id:a.id,type:"group"}));return[...(await this.directory.getBookMarks()).filter(({displayName:a})=>ar.removeAccents(a||"").toLowerCase().includes(i)).map(a=>({avatarUrl:"",directoryUrl:"",profile:"",displayName:a.displayName,id:a.id,type:"sharebookmark"})),...o,...l]}async getShareMapping(t){const n=await this.cache.httpGetJson(`/${t}/rights/sharing`);for(const r of Object.keys(n))if(r.includes(".")){const i=r.split(".")[1],s=n[r];delete n[r],n[i]=s}return n}getActionsAvailableFor({id:t,type:n},r,i){const s=(n==="user"?r.users.checked[t]:r.groups.checked[t])||[],o=Object.keys(i),l=[];for(const a of o)i[a].filter(u=>s.includes(u)).length>0&&l.push(a);return l}async getRightsForResource(t,n){const r=await this.directory.getBookMarks(),i=this.context.resource(t,t).getShareReadUrl(n),s=await this.cache.httpGetJson(i),o=await this.getShareMapping(t),l=await this.cache.httpGetJson("/infra/public/json/sharing-rights.json"),a=Object.keys(s.users.checked).map(h=>s.users.visibles.find(m=>m.id===h)).filter(h=>h!==void 0).map(h=>{const m=this.getActionsAvailableFor({id:h.id,type:"user"},s,o);return{id:h.id,type:"user",displayName:h.username,profile:h.profile,avatarUrl:this.directory.getAvatarUrl(h.id,"user"),directoryUrl:this.directory.getDirectoryUrl(h.id,"user"),actions:m.map(y=>{const x=l[y];return{displayName:y,id:y,priority:x.priority}})}}).sort((h,m)=>(h.displayName||"").localeCompare(m.displayName)),u=Object.keys(s.groups.checked).map(h=>s.groups.visibles.find(m=>m.id===h)).filter(h=>h!==void 0).map(h=>{const m=this.getActionsAvailableFor({id:h.id,type:"group"},s,o);return{id:h.id,type:"group",displayName:h.name,profile:void 0,avatarUrl:this.directory.getAvatarUrl(h.id,"group"),directoryUrl:this.directory.getDirectoryUrl(h.id,"group"),actions:m.map(y=>{const x=l[y];return{displayName:y,id:y,priority:x.priority}})}}).sort((h,m)=>(h.displayName||"").localeCompare(m.displayName)),c=[...a,...u],d=s.groups.visibles.map(({groupDisplayName:h,id:m,name:y})=>({displayName:h||y,id:m})),f=s.users.visibles.map(({id:h,profile:m,username:y,firstName:x,lastName:g,login:v})=>({displayName:y,firstName:x,lastName:g,login:v,profile:m,id:h}));return{rights:c,visibleBookmarks:r,visibleGroups:d,visibleUsers:f}}async saveRights(t,n,r){const i=await this.getShareMapping(t),s={bookmarks:{},groups:{},users:{}};for(const a of r){const u=a.actions.map(d=>i[d.id]).reduce((d,f)=>[...d,...f],[]),c=[...new Set(u)];c.length>0&&(a.type==="user"?s.users[a.id]=c:a.type==="group"?s.groups[a.id]=c:s.bookmarks[a.id]=c)}const o=this.context.resource(t,t),l=o.getSaveShareUrl(n);return this.cache.clearCache(o.getShareReadUrl(n)),await this.http.putJson(l,s)}async getActionsForApp(t){const n=await this.cache.httpGetJson("/infra/public/json/sharing-rights.json"),r=await this.getShareMapping(t);return Object.keys(n).map(i=>{const s=n[i];return{displayName:i,id:i,priority:s.priority,requires:s.requires}}).filter(i=>{var s;return((s=r[i.id])==null?void 0:s.length)>0}).sort((i,s)=>i.priority-s.priority)}};const Fm=class{constructor(){L(this,"wordExtensions",new Set),L(this,"excelExtensions",new Set),L(this,"pptExtensions",new Set),L(this,"fileExtensionMap",new Map),L(this,"csvContentType",new Set),L(this,"csvExtensions",new Set),L(this,"txtExtensions",new Set),L(this,"PDF","application/pdf"),L(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(e){if(this.fileExtensionMap.has(e))return this.fileExtensionMap.get(e)}getExtensionForContentType(e){for(const t of Array.from(this.fileExtensionMap.keys()))if((this.fileExtensionMap.get(t)||"").toLowerCase()==(e||"").toLowerCase())return t;return null}isWordLike(e,t){const n=this.getExtensionForContentType(e);return n?this.wordExtensions.has(n):e==this.OCTET_STREAM&&t?this.wordExtensions.has(t):!1}isExcelLike(e,t){const n=this.getExtensionForContentType(e);return n?this.excelExtensions.has(n):e==this.OCTET_STREAM&&t?this.excelExtensions.has(t):!1}isCsvLike(e,t){return this.csvContentType.has(e)?!0:e==this.OCTET_STREAM&&t?this.csvExtensions.has(t):!1}isPowerpointLike(e,t){const n=this.getExtensionForContentType(e);return n?this.pptExtensions.has(n):e==this.OCTET_STREAM&&t?this.pptExtensions.has(t):!1}isTxtLike(e,t){const n=this.getExtensionForContentType(e);return n?this.txtExtensions.has(n):e==this.OCTET_STREAM&&t?this.txtExtensions.has(t):!1}};let Hr=Fm;L(Hr,"INSTANCE",new Fm);let Tm=class{static registerContentTypeToFileType(t){this.fileTypes.push(t)}static getFileType(t,n=!1,r){if(r&&(r=r.trim()),!t)return"unknown";this.fileTypes||console.warn("[Element.role] should not have emptyRoles",this);for(let s of this.fileTypes||[]){const o=s(t,n);if(o)return o}const i={csv:function(s){return!!Hr.INSTANCE.isCsvLike(s,r)},doc:function(s){return Hr.INSTANCE.isWordLike(s,r)?!0:s.indexOf("document")!==-1&&s.indexOf("wordprocessing")!==-1},xls:function(s){return Hr.INSTANCE.isExcelLike(s,r)?!0:s.indexOf("document")!==-1&&s.indexOf("spreadsheet")!==-1||s.indexOf("ms-excel")!==-1},img:function(s){return s.indexOf("image")!==-1},pdf:function(s){return s.indexOf("pdf")!==-1||s==="application/x-download"},ppt:function(s){return Hr.INSTANCE.isPowerpointLike(s,r)?!0:s.indexOf("document")!==-1&&s.indexOf("presentation")!==-1||s.indexOf("powerpoint")!==-1},txt:function(s){return Hr.INSTANCE.isTxtLike(s,r)},video:function(s){return s.indexOf("video")!==-1},audio:function(s){return s.indexOf("audio")!==-1},zip:function(s){return s.indexOf("zip")!==-1||s.indexOf("rar")!==-1||s.indexOf("tar")!==-1||s.indexOf("7z")!==-1}};for(let s in i)if(i[s](t))return s;return"unknown"}};L(Tm,"fileTypes",[]);let tx=class{constructor(t){this.context=t}get http(){return this.context.http()}async saveFile(t,n){const r=t.name||"",i=r.split("."),s=t.type||"application/octet-stream",o=i.length>1?i[i.length-1]:"",l={"content-type":s,filename:r,size:t.size,extension:o,role:Tm.getFileType(s,!1,o)},a=r.replace("."+l.extension,""),u=l.extension?a+"."+l.extension:a,c=new FormData;c.append("file",t,u);const d=[];return((n==null?void 0:n.visibility)==="public"||(n==null?void 0:n.visibility)==="protected")&&d.push(`${n.visibility}=true`),n!=null&&n.application&&d.push(`application=${n.application}`),l.role==="img"&&d.push("quality=1"),n!=null&&n.parentId&&d.push(`parentId=${n.parentId}`),await this.http.postFile(`/workspace/document?${d.join("&")}`,c)}};const Li={},fu={},pu=[{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}];let nx=class{constructor(t){this.context=t}get http(){return this.context.http()}async getIdiom(t,n){await Promise.all([this.addBundlePromise(t,"/i18n"),this.addBundlePromise(t,`/${n}/i18n`)])}translate(t,n){t=t??"";let r=Li[t]===void 0?t:Li[t];if(n&&typeof n=="object")for(let i in n)typeof n[i]<"u"&&(r=r.replace(new RegExp("\\${"+i+"}","g"),""+n[i]));return r}addBundlePromise(t,n){return this.loadBundlePromise(t,n)}addBundle(t,n,r){this.loadBundle(t,n,r)}loadBundlePromise(t,n){return this.loadBundle(t,n),fu[n]}loadBundle(t,n,r){const i=fu[n];if(i)r&&i.then(r).catch(r);else{const s=new bs;fu[n]=s.promise;const o={};t&&(o["Accept-Language"]=t),this.http.get(n,{headers:o}).then(l=>{Object.assign(Li,l),typeof r=="function"&&r(),s.resolve()}).catch(l=>{typeof r=="function"&&r(),s.reject()})}}addTranslations(t,n){Ne.onLangReady().promise.then(r=>{this.loadBundle(r,t+"/"+r+".json",n)})}addAllTranslations(t){return t&&t.length>0?Ne.onLangReady().promise.then(n=>Promise.all(t.map(r=>this.loadBundlePromise(n,r+"/"+n+".json")))).then(()=>{}):Promise.reject()}addKeys(t){for(var n in t)typeof Li[n]!="string"&&(Li[n]=t[n])}removeAccents(t){for(var n=0;n<pu.length;n++)t=t.replace(pu[n].letters,pu[n].base);return t}},rx=class{constructor(){L(this,"_cache"),L(this,"_conf"),L(this,"_directory"),L(this,"_http"),L(this,"_idiom"),L(this,"_rights"),L(this,"_session"),L(this,"_share"),L(this,"_workspace"),this._cache=new Y4(this),this._conf=new G4(this),this._directory=new Z4(this),this._http=new K4(this),this._idiom=new nx(this),this._rights=new X4(this),this._session=new J4(this),this._share=new ex(this),this._workspace=new tx(this)}cache(){return this._cache}conf(){return this._conf}directory(){return this._directory}http(){return this._http}idiom(){return this._idiom}resource(t,n){return n?_s.findService({application:t,resourceType:n},this):_s.findMainService({application:t},this)}rights(){return this._rights}session(){return this._session}share(){return this._share}workspace(){return this._workspace}};const ee=new rx;class Pi{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const As=typeof window>"u"||"Deno"in window;function Ct(){}function ix(e,t){return typeof e=="function"?e(t):e}function ac(e){return typeof e=="number"&&e>=0&&e!==1/0}function Dm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vr(e,t,n){return so(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function sx(e,t,n){return so(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function An(e,t,n){return so(e)?[{...t,queryKey:e},n]:[e||{},t]}function Sh(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:l}=e;if(so(o)){if(r){if(t.queryHash!==Ud(o,t.options))return!1}else if(!xa(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof i<"u"&&i!==t.state.fetchStatus||s&&!s(t))}function bh(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:s}=e;if(so(s)){if(!t.options.mutationKey)return!1;if(n){if(fr(t.options.mutationKey)!==fr(s))return!1}else if(!xa(t.options.mutationKey,s))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Ud(e,t){return((t==null?void 0:t.queryKeyHashFn)||fr)(e)}function fr(e){return JSON.stringify(e,(t,n)=>uc(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function xa(e,t){return Nm(e,t)}function Nm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Nm(e[n],t[n])):!1}function Mm(e,t){if(e===t)return e;const n=_h(e)&&_h(t);if(n||uc(e)&&uc(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),s=i.length,o=n?[]:{};let l=0;for(let a=0;a<s;a++){const u=n?a:i[a];o[u]=Mm(e[u],t[u]),o[u]===e[u]&&l++}return r===s&&l===r?e:o}return t}function lc(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function _h(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function uc(e){if(!Ah(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Ah(n)||!n.hasOwnProperty("isPrototypeOf"))}function Ah(e){return Object.prototype.toString.call(e)==="[object Object]"}function so(e){return Array.isArray(e)}function $m(e){return new Promise(t=>{setTimeout(t,e)})}function kh(e){$m(0).then(e)}function ox(){if(typeof AbortController=="function")return new AbortController}function cc(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Mm(e,t):t}class ax extends Pi{constructor(){super(),this.setup=t=>{if(!As&&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,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Ca=new ax;class lx extends Pi{constructor(){super(),this.setup=t=>{if(!As&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",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,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Sa=new lx;function ux(e){return Math.min(1e3*2**e,3e4)}function ll(e){return(e??"online")==="online"?Sa.isOnline():!0}class Im{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function ta(e){return e instanceof Im}function Lm(e){let t=!1,n=0,r=!1,i,s,o;const l=new Promise((x,g)=>{s=x,o=g}),a=x=>{r||(h(new Im(x)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Ca.isFocused()||e.networkMode!=="always"&&!Sa.isOnline(),f=x=>{r||(r=!0,e.onSuccess==null||e.onSuccess(x),i==null||i(),s(x))},h=x=>{r||(r=!0,e.onError==null||e.onError(x),i==null||i(),o(x))},m=()=>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(f).catch(g=>{var v,E;if(r)return;const w=(v=e.retry)!=null?v:3,b=(E=e.retryDelay)!=null?E:ux,S=typeof b=="function"?b(n,g):b,_=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,g);if(t||!_){h(g);return}n++,e.onFail==null||e.onFail(n,g),$m(S).then(()=>{if(d())return m()}).then(()=>{t?h(g):y()})})};return ll(e.networkMode)?y():m().then(y),{promise:l,cancel:a,continue:()=>(i==null?void 0:i())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}const zd=console;function cx(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const i=c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},s=c=>{t?e.push(c):kh(()=>{n(c)})},o=c=>(...d)=>{s(()=>{c(...d)})},l=()=>{const c=e;e=[],c.length&&kh(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:i,batchCalls:o,schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Ee=cx();class jm{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ac(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(As?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class dx extends jm{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||zd,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||fx(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=cc(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(Ct).catch(Ct):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||!Dm(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.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(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 h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey);const o=ox(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};a(l);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(a(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 f=h=>{if(ta(h)&&h.silent||this.dispatch({type:"error",error:h}),!ta(h)){var m,y,x,g;(m=(y=this.cache.config).onError)==null||m.call(y,h,this),(x=(g=this.cache.config).onSettled)==null||x.call(g,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Lm({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:h=>{var m,y,x,g;if(typeof h>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(m=(y=this.cache.config).onSuccess)==null||m.call(y,h,this),(x=(g=this.cache.config).onSettled)==null||x.call(g,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(h,m)=>{this.dispatch({type:"failed",failureCount:h,error:m})},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:ll(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 ta(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),Ee.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function fx(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 Bm extends Pi{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:Ud(s,n);let l=this.get(o);return l||(l=new dx({cache:this,logger:t.getLogger(),queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(l)),l}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(){Ee.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=An(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>Sh(r,i))}findAll(t,n){const[r]=An(t,n);return Object.keys(r).length>0?this.queries.filter(i=>Sh(r,i)):this.queries}notify(t){Ee.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ee.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Ee.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class px extends jm{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||zd,this.observers=[],this.state=t.state||Um(),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.indexOf(t)===-1&&(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 _;return this.retryer=Lm({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(A,D)=>{this.dispatch({type:"failed",failureCount:A,error:D})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(_=this.options.retry)!=null?_:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,s,o,l,a,u,c;if(!n){var d,f,h,m;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(f=this.mutationCache.config).onMutate)==null?void 0:d.call(f,this.state.variables,this));const A=await((h=(m=this.options).onMutate)==null?void 0:h.call(m,this.state.variables));A!==this.state.context&&this.dispatch({type:"loading",context:A,variables:this.state.variables})}const _=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,_,this.state.variables,this.state.context,this)),await((s=(o=this.options).onSuccess)==null?void 0:s.call(o,_,this.state.variables,this.state.context)),await((l=(a=this.mutationCache.config).onSettled)==null?void 0:l.call(a,_,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,_,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:_}),_}catch(_){try{var y,x,g,v,E,w,b,S;throw await((y=(x=this.mutationCache.config).onError)==null?void 0:y.call(x,_,this.state.variables,this.state.context,this)),await((g=(v=this.options).onError)==null?void 0:g.call(v,_,this.state.variables,this.state.context)),await((E=(w=this.mutationCache.config).onSettled)==null?void 0:E.call(w,void 0,_,this.state.variables,this.state.context,this)),await((b=(S=this.options).onSettled)==null?void 0:b.call(S,void 0,_,this.state.variables,this.state.context)),_}finally{this.dispatch({type:"error",error:_})}}}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:!ll(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),Ee.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Um(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class hx extends Pi{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new px({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(){Ee.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=>bh(t,n))}findAll(t){return this.mutations.filter(n=>bh(t,n))}notify(t){Ee.batch(()=>{this.listeners.forEach(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 Ee.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(Ct)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function dc(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,s,o;const l=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,a=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,u=a==null?void 0:a.pageParam,c=(a==null?void 0:a.direction)==="forward",d=(a==null?void 0:a.direction)==="backward",f=((s=e.state.data)==null?void 0:s.pages)||[],h=((o=e.state.data)==null?void 0:o.pageParams)||[];let m=h,y=!1;const x=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{var _;if((_=e.signal)!=null&&_.aborted)y=!0;else{var A;(A=e.signal)==null||A.addEventListener("abort",()=>{y=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),v=(S,_,A,D)=>(m=D?[_,...m]:[...m,_],D?[A,...S]:[...S,A]),E=(S,_,A,D)=>{if(y)return Promise.reject("Cancelled");if(typeof A>"u"&&!_&&S.length)return Promise.resolve(S);const P={queryKey:e.queryKey,pageParam:A,meta:e.options.meta};x(P);const V=g(P);return Promise.resolve(V).then(I=>v(S,A,I,D))};let w;if(!f.length)w=E([]);else if(c){const S=typeof u<"u",_=S?u:fc(e.options,f);w=E(f,S,_)}else if(d){const S=typeof u<"u",_=S?u:zm(e.options,f);w=E(f,S,_,!0)}else{m=[];const S=typeof e.options.getNextPageParam>"u";w=(l&&f[0]?l(f[0],0,f):!0)?E([],S,h[0]):Promise.resolve(v([],h[0],f[0]));for(let A=1;A<f.length;A++)w=w.then(D=>{if(l&&f[A]?l(f[A],A,f):!0){const V=S?h[A]:fc(e.options,D);return E(D,S,V)}return Promise.resolve(v(D,h[A],f[A]))})}return w.then(S=>({pages:S,pageParams:m}))}}}}function fc(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function zm(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function mx(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=fc(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function vx(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=zm(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class gx{constructor(t={}){this.queryCache=t.queryCache||new Bm,this.mutationCache=t.mutationCache||new hx,this.logger=t.logger||zd,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Ca.subscribe(()=>{Ca.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Sa.subscribe(()=>{Sa.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]=An(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=Vr(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=ix(n,s);if(typeof o>"u")return;const l=Vr(t),a=this.defaultQueryOptions(l);return this.queryCache.build(this,a).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return Ee.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]=An(t,n),i=this.queryCache;Ee.batch(()=>{i.findAll(r).forEach(s=>{i.remove(s)})})}resetQueries(t,n,r){const[i,s]=An(t,n,r),o=this.queryCache,l={type:"active",...i};return Ee.batch(()=>(o.findAll(i).forEach(a=>{a.reset()}),this.refetchQueries(l,s)))}cancelQueries(t,n,r){const[i,s={}]=An(t,n,r);typeof s.revert>"u"&&(s.revert=!0);const o=Ee.batch(()=>this.queryCache.findAll(i).map(l=>l.cancel(s)));return Promise.all(o).then(Ct).catch(Ct)}invalidateQueries(t,n,r){const[i,s]=An(t,n,r);return Ee.batch(()=>{var o,l;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const a={...i,type:(o=(l=i.refetchType)!=null?l:i.type)!=null?o:"active"};return this.refetchQueries(a,s)})}refetchQueries(t,n,r){const[i,s]=An(t,n,r),o=Ee.batch(()=>this.queryCache.findAll(i).filter(a=>!a.isDisabled()).map(a=>{var u;return a.fetch(void 0,{...s,cancelRefetch:(u=s==null?void 0:s.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let l=Promise.all(o).then(Ct);return s!=null&&s.throwOnError||(l=l.catch(Ct)),l}fetchQuery(t,n,r){const i=Vr(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(Ct).catch(Ct)}fetchInfiniteQuery(t,n,r){const i=Vr(t,n,r);return i.behavior=dc(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Ct).catch(Ct)}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=>fr(t)===fr(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>xa(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>fr(t)===fr(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>xa(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=Ud(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 Hm extends Pi{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.length===1&&(this.currentQuery.addObserver(this),Rh(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return pc(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pc(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],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),lc(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&&Oh(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);return this.createResult(n,t)}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(Ct)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),As||this.currentResult.isStale||!ac(this.options.staleTime))return;const n=Dm(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,!(As||this.options.enabled===!1||!ac(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Ca.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,l=this.currentResultOptions,a=t!==r,u=a?t.state:this.currentQueryInitialState,c=a?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:f,error:h,errorUpdatedAt:m,fetchStatus:y,status:x}=d,g=!1,v=!1,E;if(n._optimisticResults){const A=this.hasListeners(),D=!A&&Rh(t,n),P=A&&Oh(t,r,n,i);(D||P)&&(y=ll(t.options.networkMode)?"fetching":"paused",f||(x="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&x!=="error")E=c.data,f=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)E=this.selectResult;else try{this.selectFn=n.select,E=n.select(d.data),E=cc(s==null?void 0:s.data,E,n),this.selectResult=E,this.selectError=null}catch(A){this.selectError=A}else E=d.data;if(typeof n.placeholderData<"u"&&typeof E>"u"&&x==="loading"){let A;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))A=s.data;else if(A=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof A<"u")try{A=n.select(A),this.selectError=null}catch(D){this.selectError=D}typeof A<"u"&&(x="success",E=cc(s==null?void 0:s.data,A,n),v=!0)}this.selectError&&(h=this.selectError,E=this.selectResult,m=Date.now(),x="error");const w=y==="fetching",b=x==="loading",S=x==="error";return{status:x,fetchStatus:y,isLoading:b,isSuccess:x==="success",isError:S,isInitialLoading:b&&w,data:E,dataUpdatedAt:f,error:h,errorUpdatedAt:m,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:w,isRefetching:w&&!b,isLoadingError:S&&d.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:v,isPreviousData:g,isRefetchError:S&&d.dataUpdatedAt!==0,isStale:Hd(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,lc(r,n))return;this.currentResult=r;const i={cache:!0},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options;if(o==="all"||!o&&!this.trackedProps.size)return!0;const l=new Set(o??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(a=>{const u=a;return this.currentResult[u]!==n[u]&&l.has(u)})};(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"&&!ta(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){Ee.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,l,a,u;(o=(l=this.options).onError)==null||o.call(l,this.currentResult.error),(a=(u=this.options).onSettled)==null||a.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(c=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function yx(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Rh(e,t){return yx(e,t)||e.state.dataUpdatedAt>0&&pc(e,t,t.refetchOnMount)}function pc(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Hd(e,t)}return!1}function Oh(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Hd(e,n)}function Hd(e,t){return e.isStaleByTime(t.staleTime)}class Ex extends Hm{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:dc()},n)}getOptimisticResult(t){return t.behavior=dc(),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,l,a;const{state:u}=t,c=super.createResult(t,n),{isFetching:d,isRefetching:f}=c,h=d&&((r=u.fetchMeta)==null||(i=r.fetchMore)==null?void 0:i.direction)==="forward",m=d&&((s=u.fetchMeta)==null||(o=s.fetchMore)==null?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:mx(n,(l=u.data)==null?void 0:l.pages),hasPreviousPage:vx(n,(a=u.data)==null?void 0:a.pages),isFetchingNextPage:h,isFetchingPreviousPage:m,isRefetching:f&&!h&&!m}}}let wx=class extends Pi{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),lc(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.listeners.length){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:Um(),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){Ee.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,l,a,u;(o=(l=this.mutateOptions).onError)==null||o.call(l,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(a=(u=this.mutateOptions).onSettled)==null||a.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(c=>{c(this.currentResult)})})}};var Vm={exports:{}},yt={},qm={exports:{}},Wm={};/**
34
+ * @license React
35
+ * scheduler.production.min.js
36
+ *
37
+ * Copyright (c) Facebook, Inc. and its affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */(function(e){function t(k,F){var j=k.length;k.push(F);e:for(;0<j;){var W=j-1>>>1,q=k[W];if(0<i(q,F))k[W]=F,k[j]=q,j=W;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var F=k[0],j=k.pop();if(j!==F){k[0]=j;e:for(var W=0,q=k.length,ie=q>>>1;W<ie;){var ae=2*(W+1)-1,J=k[ae],le=ae+1,Z=k[le];if(0>i(J,j))le<q&&0>i(Z,J)?(k[W]=Z,k[le]=j,W=le):(k[W]=J,k[ae]=j,W=ae);else if(le<q&&0>i(Z,j))k[W]=Z,k[le]=j,W=le;else break e}}return F}function i(k,F){var j=k.sortIndex-F.sortIndex;return j!==0?j:k.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,d=null,f=3,h=!1,m=!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 E(k){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=k)r(u),F.sortIndex=F.expirationTime,t(a,F);else break;F=n(u)}}function w(k){if(y=!1,E(k),!m)if(n(a)!==null)m=!0,B(b);else{var F=n(u);F!==null&&T(w,F.startTime-k)}}function b(k,F){m=!1,y&&(y=!1,g(A),A=-1),h=!0;var j=f;try{for(E(F),d=n(a);d!==null&&(!(d.expirationTime>F)||k&&!V());){var W=d.callback;if(typeof W=="function"){d.callback=null,f=d.priorityLevel;var q=W(d.expirationTime<=F);F=e.unstable_now(),typeof q=="function"?d.callback=q:d===n(a)&&r(a),E(F)}else r(a);d=n(a)}if(d!==null)var ie=!0;else{var ae=n(u);ae!==null&&T(w,ae.startTime-F),ie=!1}return ie}finally{d=null,f=j,h=!1}}var S=!1,_=null,A=-1,D=5,P=-1;function V(){return!(e.unstable_now()-P<D)}function U(){if(_!==null){var k=e.unstable_now();P=k;var F=!0;try{F=_(!0,k)}finally{F?I():(S=!1,_=null)}}else S=!1}var I;if(typeof v=="function")I=function(){v(U)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,O=R.port2;R.port1.onmessage=U,I=function(){O.postMessage(null)}}else I=function(){x(U,0)};function B(k){_=k,S||(S=!0,I())}function T(k,F){A=x(function(){k(e.unstable_now())},F)}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(k){k.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,B(b))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(k){switch(f){case 1:case 2:case 3:var F=3;break;default:F=f}var j=f;f=F;try{return k()}finally{f=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,F){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var j=f;f=k;try{return F()}finally{f=j}},e.unstable_scheduleCallback=function(k,F,j){var W=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?W+j:W):j=W,k){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=j+q,k={id:c++,callback:F,priorityLevel:k,startTime:j,expirationTime:q,sortIndex:-1},j>W?(k.sortIndex=j,t(u,k),n(a)===null&&k===n(u)&&(y?(g(A),A=-1):y=!0,T(w,j-W))):(k.sortIndex=q,t(a,k),m||h||(m=!0,B(b))),k},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(k){var F=f;return function(){var j=f;f=F;try{return k.apply(this,arguments)}finally{f=j}}}})(Wm);qm.exports=Wm;var xx=qm.exports;/**
42
+ * @license React
43
+ * react-dom.production.min.js
44
+ *
45
+ * Copyright (c) Facebook, Inc. and its affiliates.
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE file in the root directory of this source tree.
49
+ */var Qm=C,mt=xx;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 Ym=new Set,ks={};function Nr(e,t){hi(e,t),hi(e+"Capture",t)}function hi(e,t){for(ks[e]=t,e=0;e<t.length;e++)Ym.add(t[e])}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=Object.prototype.hasOwnProperty,Cx=/^[: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]*$/,Ph={},Fh={};function Sx(e){return hc.call(Fh,e)?!0:hc.call(Ph,e)?!1:Cx.test(e)?Fh[e]=!0:(Ph[e]=!0,!1)}function bx(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 _x(e,t,n,r){if(t===null||typeof t>"u"||bx(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 Ye(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 $e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$e[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$e[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$e[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$e[e]=new Ye(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){$e[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$e[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$e[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$e[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$e[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vd=/[\-:]([a-z])/g;function qd(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(Vd,qd);$e[t]=new Ye(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(Vd,qd);$e[t]=new Ye(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(Vd,qd);$e[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$e[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});$e.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$e[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wd(e,t,n,r){var i=$e.hasOwnProperty(t)?$e[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_x(t,n,i,r)&&(n=null),r||i===null?Sx(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 Sn=Qm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_o=Symbol.for("react.element"),qr=Symbol.for("react.portal"),Wr=Symbol.for("react.fragment"),Qd=Symbol.for("react.strict_mode"),mc=Symbol.for("react.profiler"),Gm=Symbol.for("react.provider"),Zm=Symbol.for("react.context"),Yd=Symbol.for("react.forward_ref"),vc=Symbol.for("react.suspense"),gc=Symbol.for("react.suspense_list"),Gd=Symbol.for("react.memo"),kn=Symbol.for("react.lazy"),Km=Symbol.for("react.offscreen"),Th=Symbol.iterator;function ji(e){return e===null||typeof e!="object"?null:(e=Th&&e[Th]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Object.assign,hu;function es(e){if(hu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);hu=t&&t[1]||""}return`
50
+ `+hu+e}var mu=!1;function vu(e,t){if(!e||mu)return"";mu=!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(`
51
+ `),s=r.stack.split(`
52
+ `),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=`
53
+ `+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{mu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?es(e):""}function Ax(e){switch(e.tag){case 5:return es(e.type);case 16:return es("Lazy");case 13:return es("Suspense");case 19:return es("SuspenseList");case 0:case 2:case 15:return e=vu(e.type,!1),e;case 11:return e=vu(e.type.render,!1),e;case 1:return e=vu(e.type,!0),e;default:return""}}function yc(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 Wr:return"Fragment";case qr:return"Portal";case mc:return"Profiler";case Qd:return"StrictMode";case vc:return"Suspense";case gc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zm:return(e.displayName||"Context")+".Consumer";case Gm:return(e._context.displayName||"Context")+".Provider";case Yd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gd:return t=e.displayName||null,t!==null?t:yc(e.type)||"Memo";case kn:t=e._payload,e=e._init;try{return yc(e(t))}catch{}}return null}function kx(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 yc(t);case 8:return t===Qd?"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 Yn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rx(e){var t=Xm(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 Ao(e){e._valueTracker||(e._valueTracker=Rx(e))}function Jm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ba(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 Ec(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Dh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Yn(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 ev(e,t){t=t.checked,t!=null&&Wd(e,"checked",t,!1)}function wc(e,t){ev(e,t);var n=Yn(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")?xc(e,t.type,n):t.hasOwnProperty("defaultValue")&&xc(e,t.type,Yn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nh(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 xc(e,t,n){(t!=="number"||ba(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ts=Array.isArray;function oi(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=""+Yn(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 Cc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error($(91));return ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Mh(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(ts(n)){if(1<n.length)throw Error($(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Yn(n)}}function tv(e,t){var n=Yn(t.value),r=Yn(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 $h(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nv(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 Sc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ko,rv=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(ko=ko||document.createElement("div"),ko.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ko.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var as={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},Ox=["Webkit","ms","Moz","O"];Object.keys(as).forEach(function(e){Ox.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),as[t]=as[e]})});function iv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||as.hasOwnProperty(e)&&as[e]?(""+t).trim():t+"px"}function sv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=iv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Px=ve({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 bc(e,t){if(t){if(Px[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 _c(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 Ac=null;function Zd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kc=null,ai=null,li=null;function Ih(e){if(e=lo(e)){if(typeof kc!="function")throw Error($(280));var t=e.stateNode;t&&(t=pl(t),kc(e.stateNode,e.type,t))}}function ov(e){ai?li?li.push(e):li=[e]:ai=e}function av(){if(ai){var e=ai,t=li;if(li=ai=null,Ih(e),t)for(e=0;e<t.length;e++)Ih(t[e])}}function lv(e,t){return e(t)}function uv(){}var gu=!1;function cv(e,t,n){if(gu)return e(t,n);gu=!0;try{return lv(e,t,n)}finally{gu=!1,(ai!==null||li!==null)&&(uv(),av())}}function Os(e,t){var n=e.stateNode;if(n===null)return null;var r=pl(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 Rc=!1;if(gn)try{var Bi={};Object.defineProperty(Bi,"passive",{get:function(){Rc=!0}}),window.addEventListener("test",Bi,Bi),window.removeEventListener("test",Bi,Bi)}catch{Rc=!1}function Fx(e,t,n,r,i,s,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ls=!1,_a=null,Aa=!1,Oc=null,Tx={onError:function(e){ls=!0,_a=e}};function Dx(e,t,n,r,i,s,o,l,a){ls=!1,_a=null,Fx.apply(Tx,arguments)}function Nx(e,t,n,r,i,s,o,l,a){if(Dx.apply(this,arguments),ls){if(ls){var u=_a;ls=!1,_a=null}else throw Error($(198));Aa||(Aa=!0,Oc=u)}}function Mr(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 dv(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 Lh(e){if(Mr(e)!==e)throw Error($(188))}function Mx(e){var t=e.alternate;if(!t){if(t=Mr(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 Lh(i),e;if(s===r)return Lh(i),t;s=s.sibling}throw Error($(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.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 fv(e){return e=Mx(e),e!==null?pv(e):null}function pv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pv(e);if(t!==null)return t;e=e.sibling}return null}var hv=mt.unstable_scheduleCallback,jh=mt.unstable_cancelCallback,$x=mt.unstable_shouldYield,Ix=mt.unstable_requestPaint,we=mt.unstable_now,Lx=mt.unstable_getCurrentPriorityLevel,Kd=mt.unstable_ImmediatePriority,mv=mt.unstable_UserBlockingPriority,ka=mt.unstable_NormalPriority,jx=mt.unstable_LowPriority,vv=mt.unstable_IdlePriority,ul=null,en=null;function Bx(e){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(ul,e,void 0,(e.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:Hx,Ux=Math.log,zx=Math.LN2;function Hx(e){return e>>>=0,e===0?32:31-(Ux(e)/zx|0)|0}var Ro=64,Oo=4194304;function ns(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 Ra(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 l=o&~i;l!==0?r=ns(l):(s&=o,s!==0&&(r=ns(s)))}else o=n&~i,o!==0?r=ns(o):s!==0&&(r=ns(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-Ht(t),i=1<<n,r|=e[n],t&=~i;return r}function Vx(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 qx(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Ht(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=Vx(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function Pc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gv(){var e=Ro;return Ro<<=1,!(Ro&4194240)&&(Ro=64),e}function yu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function oo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ht(t),e[t]=n}function Wx(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-Ht(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Xd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ht(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var oe=0;function yv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ev,Jd,wv,xv,Cv,Fc=!1,Po=[],$n=null,In=null,Ln=null,Ps=new Map,Fs=new Map,On=[],Qx="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 Bh(e,t){switch(e){case"focusin":case"focusout":$n=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":Ln=null;break;case"pointerover":case"pointerout":Ps.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fs.delete(t.pointerId)}}function Ui(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=lo(t),t!==null&&Jd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Yx(e,t,n,r,i){switch(t){case"focusin":return $n=Ui($n,e,t,n,r,i),!0;case"dragenter":return In=Ui(In,e,t,n,r,i),!0;case"mouseover":return Ln=Ui(Ln,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Ps.set(s,Ui(Ps.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Fs.set(s,Ui(Fs.get(s)||null,e,t,n,r,i)),!0}return!1}function Sv(e){var t=pr(e.target);if(t!==null){var n=Mr(t);if(n!==null){if(t=n.tag,t===13){if(t=dv(n),t!==null){e.blockedOn=t,Cv(e.priority,function(){wv(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 na(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Tc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ac=r,n.target.dispatchEvent(r),Ac=null}else return t=lo(n),t!==null&&Jd(t),e.blockedOn=n,!1;t.shift()}return!0}function Uh(e,t,n){na(e)&&n.delete(t)}function Gx(){Fc=!1,$n!==null&&na($n)&&($n=null),In!==null&&na(In)&&(In=null),Ln!==null&&na(Ln)&&(Ln=null),Ps.forEach(Uh),Fs.forEach(Uh)}function zi(e,t){e.blockedOn===t&&(e.blockedOn=null,Fc||(Fc=!0,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,Gx)))}function Ts(e){function t(i){return zi(i,e)}if(0<Po.length){zi(Po[0],e);for(var n=1;n<Po.length;n++){var r=Po[n];r.blockedOn===e&&(r.blockedOn=null)}}for($n!==null&&zi($n,e),In!==null&&zi(In,e),Ln!==null&&zi(Ln,e),Ps.forEach(t),Fs.forEach(t),n=0;n<On.length;n++)r=On[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<On.length&&(n=On[0],n.blockedOn===null);)Sv(n),n.blockedOn===null&&On.shift()}var ui=Sn.ReactCurrentBatchConfig,Oa=!0;function Zx(e,t,n,r){var i=oe,s=ui.transition;ui.transition=null;try{oe=1,ef(e,t,n,r)}finally{oe=i,ui.transition=s}}function Kx(e,t,n,r){var i=oe,s=ui.transition;ui.transition=null;try{oe=4,ef(e,t,n,r)}finally{oe=i,ui.transition=s}}function ef(e,t,n,r){if(Oa){var i=Tc(e,t,n,r);if(i===null)Ru(e,t,r,Pa,n),Bh(e,r);else if(Yx(i,e,t,n,r))r.stopPropagation();else if(Bh(e,r),t&4&&-1<Qx.indexOf(e)){for(;i!==null;){var s=lo(i);if(s!==null&&Ev(s),s=Tc(e,t,n,r),s===null&&Ru(e,t,r,Pa,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Ru(e,t,r,null,n)}}var Pa=null;function Tc(e,t,n,r){if(Pa=null,e=Zd(r),e=pr(e),e!==null)if(t=Mr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dv(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 Pa=e,null}function bv(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(Lx()){case Kd:return 1;case mv:return 4;case ka:case jx:return 16;case vv:return 536870912;default:return 16}default:return 16}}var Tn=null,tf=null,ra=null;function _v(){if(ra)return ra;var e,t=tf,n=t.length,r,i="value"in Tn?Tn.value:Tn.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 ra=i.slice(e,1<r?1-r:void 0)}function ia(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 Fo(){return!0}function zh(){return!1}function Et(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 l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Fo:zh,this.isPropagationStopped=zh,this}return ve(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=Fo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fo)},persist:function(){},isPersistent:Fo}),t}var Fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nf=Et(Fi),ao=ve({},Fi,{view:0,detail:0}),Xx=Et(ao),Eu,wu,Hi,cl=ve({},ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rf,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"?(Eu=e.screenX-Hi.screenX,wu=e.screenY-Hi.screenY):wu=Eu=0,Hi=e),Eu)},movementY:function(e){return"movementY"in e?e.movementY:wu}}),Hh=Et(cl),Jx=ve({},cl,{dataTransfer:0}),e3=Et(Jx),t3=ve({},ao,{relatedTarget:0}),xu=Et(t3),n3=ve({},Fi,{animationName:0,elapsedTime:0,pseudoElement:0}),r3=Et(n3),i3=ve({},Fi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),s3=Et(i3),o3=ve({},Fi,{data:0}),Vh=Et(o3),a3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l3={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"},u3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function c3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=u3[e])?!!t[e]:!1}function rf(){return c3}var d3=ve({},ao,{key:function(e){if(e.key){var t=a3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ia(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?l3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rf,charCode:function(e){return e.type==="keypress"?ia(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ia(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),f3=Et(d3),p3=ve({},cl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qh=Et(p3),h3=ve({},ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rf}),m3=Et(h3),v3=ve({},Fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),g3=Et(v3),y3=ve({},cl,{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}),E3=Et(y3),w3=[9,13,27,32],sf=gn&&"CompositionEvent"in window,us=null;gn&&"documentMode"in document&&(us=document.documentMode);var x3=gn&&"TextEvent"in window&&!us,Av=gn&&(!sf||us&&8<us&&11>=us),Wh=String.fromCharCode(32),Qh=!1;function kv(e,t){switch(e){case"keyup":return w3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qr=!1;function C3(e,t){switch(e){case"compositionend":return Rv(t);case"keypress":return t.which!==32?null:(Qh=!0,Wh);case"textInput":return e=t.data,e===Wh&&Qh?null:e;default:return null}}function S3(e,t){if(Qr)return e==="compositionend"||!sf&&kv(e,t)?(e=_v(),ra=tf=Tn=null,Qr=!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 Av&&t.locale!=="ko"?null:t.data;default:return null}}var b3={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 Yh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!b3[e.type]:t==="textarea"}function Ov(e,t,n,r){ov(r),t=Fa(t,"onChange"),0<t.length&&(n=new nf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var cs=null,Ds=null;function _3(e){Bv(e,0)}function dl(e){var t=Zr(e);if(Jm(t))return e}function A3(e,t){if(e==="change")return t}var Pv=!1;if(gn){var Cu;if(gn){var Su="oninput"in document;if(!Su){var Gh=document.createElement("div");Gh.setAttribute("oninput","return;"),Su=typeof Gh.oninput=="function"}Cu=Su}else Cu=!1;Pv=Cu&&(!document.documentMode||9<document.documentMode)}function Zh(){cs&&(cs.detachEvent("onpropertychange",Fv),Ds=cs=null)}function Fv(e){if(e.propertyName==="value"&&dl(Ds)){var t=[];Ov(t,Ds,e,Zd(e)),cv(_3,t)}}function k3(e,t,n){e==="focusin"?(Zh(),cs=t,Ds=n,cs.attachEvent("onpropertychange",Fv)):e==="focusout"&&Zh()}function R3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return dl(Ds)}function O3(e,t){if(e==="click")return dl(t)}function P3(e,t){if(e==="input"||e==="change")return dl(t)}function F3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wt=typeof Object.is=="function"?Object.is:F3;function Ns(e,t){if(Wt(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(!hc.call(t,i)||!Wt(e[i],t[i]))return!1}return!0}function Kh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xh(e,t){var n=Kh(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=Kh(n)}}function Tv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dv(){for(var e=window,t=ba();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ba(e.document)}return t}function of(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 T3(e){var t=Dv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Tv(n.ownerDocument.documentElement,n)){if(r!==null&&of(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=Xh(n,s);var o=Xh(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 D3=gn&&"documentMode"in document&&11>=document.documentMode,Yr=null,Dc=null,ds=null,Nc=!1;function Jh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nc||Yr==null||Yr!==ba(r)||(r=Yr,"selectionStart"in r&&of(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}),ds&&Ns(ds,r)||(ds=r,r=Fa(Dc,"onSelect"),0<r.length&&(t=new nf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Yr)))}function To(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Gr={animationend:To("Animation","AnimationEnd"),animationiteration:To("Animation","AnimationIteration"),animationstart:To("Animation","AnimationStart"),transitionend:To("Transition","TransitionEnd")},bu={},Nv={};gn&&(Nv=document.createElement("div").style,"AnimationEvent"in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),"TransitionEvent"in window||delete Gr.transitionend.transition);function fl(e){if(bu[e])return bu[e];if(!Gr[e])return e;var t=Gr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Nv)return bu[e]=t[n];return e}var Mv=fl("animationend"),$v=fl("animationiteration"),Iv=fl("animationstart"),Lv=fl("transitionend"),jv=new Map,e0="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 Zn(e,t){jv.set(e,t),Nr(t,[e])}for(var _u=0;_u<e0.length;_u++){var Au=e0[_u],N3=Au.toLowerCase(),M3=Au[0].toUpperCase()+Au.slice(1);Zn(N3,"on"+M3)}Zn(Mv,"onAnimationEnd");Zn($v,"onAnimationIteration");Zn(Iv,"onAnimationStart");Zn("dblclick","onDoubleClick");Zn("focusin","onFocus");Zn("focusout","onBlur");Zn(Lv,"onTransitionEnd");hi("onMouseEnter",["mouseout","mouseover"]);hi("onMouseLeave",["mouseout","mouseover"]);hi("onPointerEnter",["pointerout","pointerover"]);hi("onPointerLeave",["pointerout","pointerover"]);Nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rs="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(" "),$3=new Set("cancel close invalid load scroll toggle".split(" ").concat(rs));function t0(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Nx(r,t,void 0,e),e.currentTarget=null}function Bv(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 l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&i.isPropagationStopped())break e;t0(i,l,u),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break e;t0(i,l,u),s=a}}}if(Aa)throw e=Oc,Aa=!1,Oc=null,e}function ce(e,t){var n=t[jc];n===void 0&&(n=t[jc]=new Set);var r=e+"__bubble";n.has(r)||(Uv(t,e,2,!1),n.add(r))}function ku(e,t,n){var r=0;t&&(r|=4),Uv(n,e,r,t)}var Do="_reactListening"+Math.random().toString(36).slice(2);function Ms(e){if(!e[Do]){e[Do]=!0,Ym.forEach(function(n){n!=="selectionchange"&&($3.has(n)||ku(n,!1,e),ku(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Do]||(t[Do]=!0,ku("selectionchange",!1,t))}}function Uv(e,t,n,r){switch(bv(t)){case 1:var i=Zx;break;case 4:i=Kx;break;default:i=ef}n=i.bind(null,t,n,e),i=void 0,!Rc||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 Ru(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 l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=pr(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue e}l=l.parentNode}}r=r.return}cv(function(){var u=s,c=Zd(n),d=[];e:{var f=jv.get(e);if(f!==void 0){var h=nf,m=e;switch(e){case"keypress":if(ia(n)===0)break e;case"keydown":case"keyup":h=f3;break;case"focusin":m="focus",h=xu;break;case"focusout":m="blur",h=xu;break;case"beforeblur":case"afterblur":h=xu;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":h=Hh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=e3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=m3;break;case Mv:case $v:case Iv:h=r3;break;case Lv:h=g3;break;case"scroll":h=Xx;break;case"wheel":h=E3;break;case"copy":case"cut":case"paste":h=s3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=qh}var y=(t&4)!==0,x=!y&&e==="scroll",g=y?f!==null?f+"Capture":null:f;y=[];for(var v=u,E;v!==null;){E=v;var w=E.stateNode;if(E.tag===5&&w!==null&&(E=w,g!==null&&(w=Os(v,g),w!=null&&y.push($s(v,w,E)))),x)break;v=v.return}0<y.length&&(f=new h(f,m,null,n,c),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==Ac&&(m=n.relatedTarget||n.fromElement)&&(pr(m)||m[yn]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=u,m=m?pr(m):null,m!==null&&(x=Mr(m),m!==x||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=u),h!==m)){if(y=Hh,w="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=qh,w="onPointerLeave",g="onPointerEnter",v="pointer"),x=h==null?f:Zr(h),E=m==null?f:Zr(m),f=new y(w,v+"leave",h,n,c),f.target=x,f.relatedTarget=E,w=null,pr(c)===u&&(y=new y(g,v+"enter",m,n,c),y.target=E,y.relatedTarget=x,w=y),x=w,h&&m)t:{for(y=h,g=m,v=0,E=y;E;E=Br(E))v++;for(E=0,w=g;w;w=Br(w))E++;for(;0<v-E;)y=Br(y),v--;for(;0<E-v;)g=Br(g),E--;for(;v--;){if(y===g||g!==null&&y===g.alternate)break t;y=Br(y),g=Br(g)}y=null}else y=null;h!==null&&n0(d,f,h,y,!1),m!==null&&x!==null&&n0(d,x,m,y,!0)}}e:{if(f=u?Zr(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var b=A3;else if(Yh(f))if(Pv)b=P3;else{b=R3;var S=k3}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(b=O3);if(b&&(b=b(e,u))){Ov(d,b,n,c);break e}S&&S(e,f,u),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&xc(f,"number",f.value)}switch(S=u?Zr(u):window,e){case"focusin":(Yh(S)||S.contentEditable==="true")&&(Yr=S,Dc=u,ds=null);break;case"focusout":ds=Dc=Yr=null;break;case"mousedown":Nc=!0;break;case"contextmenu":case"mouseup":case"dragend":Nc=!1,Jh(d,n,c);break;case"selectionchange":if(D3)break;case"keydown":case"keyup":Jh(d,n,c)}var _;if(sf)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Qr?kv(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(Av&&n.locale!=="ko"&&(Qr||A!=="onCompositionStart"?A==="onCompositionEnd"&&Qr&&(_=_v()):(Tn=c,tf="value"in Tn?Tn.value:Tn.textContent,Qr=!0)),S=Fa(u,A),0<S.length&&(A=new Vh(A,e,null,n,c),d.push({event:A,listeners:S}),_?A.data=_:(_=Rv(n),_!==null&&(A.data=_)))),(_=x3?C3(e,n):S3(e,n))&&(u=Fa(u,"onBeforeInput"),0<u.length&&(c=new Vh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=_))}Bv(d,t)})}function $s(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fa(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Os(e,n),s!=null&&r.unshift($s(e,s,i)),s=Os(e,t),s!=null&&r.push($s(e,s,i))),e=e.return}return r}function Br(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function n0(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=Os(n,s),a!=null&&o.unshift($s(n,a,l))):i||(a=Os(n,s),a!=null&&o.push($s(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var I3=/\r\n?/g,L3=/\u0000|\uFFFD/g;function r0(e){return(typeof e=="string"?e:""+e).replace(I3,`
54
+ `).replace(L3,"")}function No(e,t,n){if(t=r0(t),r0(e)!==t&&n)throw Error($(425))}function Ta(){}var Mc=null,$c=null;function Ic(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 Lc=typeof setTimeout=="function"?setTimeout:void 0,j3=typeof clearTimeout=="function"?clearTimeout:void 0,i0=typeof Promise=="function"?Promise:void 0,B3=typeof queueMicrotask=="function"?queueMicrotask:typeof i0<"u"?function(e){return i0.resolve(null).then(e).catch(U3)}:Lc;function U3(e){setTimeout(function(){throw e})}function Ou(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),Ts(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ts(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 s0(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 Ti=Math.random().toString(36).slice(2),Jt="__reactFiber$"+Ti,Is="__reactProps$"+Ti,yn="__reactContainer$"+Ti,jc="__reactEvents$"+Ti,z3="__reactListeners$"+Ti,H3="__reactHandles$"+Ti;function pr(e){var t=e[Jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yn]||n[Jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=s0(e);e!==null;){if(n=e[Jt])return n;e=s0(e)}return t}e=n,n=e.parentNode}return null}function lo(e){return e=e[Jt]||e[yn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Zr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error($(33))}function pl(e){return e[Is]||null}var Bc=[],Kr=-1;function Kn(e){return{current:e}}function de(e){0>Kr||(e.current=Bc[Kr],Bc[Kr]=null,Kr--)}function ue(e,t){Kr++,Bc[Kr]=e.current,e.current=t}var Gn={},ze=Kn(Gn),tt=Kn(!1),Cr=Gn;function mi(e,t){var n=e.type.contextTypes;if(!n)return Gn;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 nt(e){return e=e.childContextTypes,e!=null}function Da(){de(tt),de(ze)}function o0(e,t,n){if(ze.current!==Gn)throw Error($(168));ue(ze,t),ue(tt,n)}function zv(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,kx(e)||"Unknown",i));return ve({},n,r)}function Na(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gn,Cr=ze.current,ue(ze,e),ue(tt,tt.current),!0}function a0(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=zv(e,t,Cr),r.__reactInternalMemoizedMergedChildContext=e,de(tt),de(ze),ue(ze,e)):de(tt),ue(tt,n)}var fn=null,hl=!1,Pu=!1;function Hv(e){fn===null?fn=[e]:fn.push(e)}function V3(e){hl=!0,Hv(e)}function Xn(){if(!Pu&&fn!==null){Pu=!0;var e=0,t=oe;try{var n=fn;for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}fn=null,hl=!1}catch(i){throw fn!==null&&(fn=fn.slice(e+1)),hv(Kd,Xn),i}finally{oe=t,Pu=!1}}return null}var Xr=[],Jr=0,Ma=null,$a=0,St=[],bt=0,Sr=null,pn=1,hn="";function lr(e,t){Xr[Jr++]=$a,Xr[Jr++]=Ma,Ma=e,$a=t}function Vv(e,t,n){St[bt++]=pn,St[bt++]=hn,St[bt++]=Sr,Sr=e;var r=pn;e=hn;var i=32-Ht(r)-1;r&=~(1<<i),n+=1;var s=32-Ht(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,pn=1<<32-Ht(t)+i|n<<i|r,hn=s+e}else pn=1<<s|n<<i|r,hn=e}function af(e){e.return!==null&&(lr(e,1),Vv(e,1,0))}function lf(e){for(;e===Ma;)Ma=Xr[--Jr],Xr[Jr]=null,$a=Xr[--Jr],Xr[Jr]=null;for(;e===Sr;)Sr=St[--bt],St[bt]=null,hn=St[--bt],St[bt]=null,pn=St[--bt],St[bt]=null}var ht=null,ct=null,pe=!1,Bt=null;function qv(e,t){var n=Rt(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 l0(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,ht=e,ct=jn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ht=e,ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Sr!==null?{id:pn,overflow:hn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ht=e,ct=null,!0):!1;default:return!1}}function Uc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zc(e){if(pe){var t=ct;if(t){var n=t;if(!l0(e,t)){if(Uc(e))throw Error($(418));t=jn(n.nextSibling);var r=ht;t&&l0(e,t)?qv(r,n):(e.flags=e.flags&-4097|2,pe=!1,ht=e)}}else{if(Uc(e))throw Error($(418));e.flags=e.flags&-4097|2,pe=!1,ht=e}}}function u0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ht=e}function Mo(e){if(e!==ht)return!1;if(!pe)return u0(e),pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ic(e.type,e.memoizedProps)),t&&(t=ct)){if(Uc(e))throw Wv(),Error($(418));for(;t;)qv(e,t),t=jn(t.nextSibling)}if(u0(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){ct=jn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ct=null}}else ct=ht?jn(e.stateNode.nextSibling):null;return!0}function Wv(){for(var e=ct;e;)e=jn(e.nextSibling)}function vi(){ct=ht=null,pe=!1}function uf(e){Bt===null?Bt=[e]:Bt.push(e)}var q3=Sn.ReactCurrentBatchConfig;function Lt(e,t){if(e&&e.defaultProps){t=ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Ia=Kn(null),La=null,ei=null,cf=null;function df(){cf=ei=La=null}function ff(e){var t=Ia.current;de(Ia),e._currentValue=t}function Hc(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 ci(e,t){La=e,cf=ei=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(et=!0),e.firstContext=null)}function Ft(e){var t=e._currentValue;if(cf!==e)if(e={context:e,memoizedValue:t,next:null},ei===null){if(La===null)throw Error($(308));ei=e,La.dependencies={lanes:0,firstContext:e}}else ei=ei.next=e;return t}var hr=null;function pf(e){hr===null?hr=[e]:hr.push(e)}function Qv(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pf(t)):(n.next=i.next,i.next=n),t.interleaved=n,En(e,r)}function En(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 Rn=!1;function hf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yv(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 mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,En(e,n)}return i=r.interleaved,i===null?(t.next=t,pf(r)):(t.next=i.next,i.next=t),r.interleaved=t,En(e,n)}function sa(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,Xd(e,n)}}function c0(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 ja(e,t,n,r){var i=e.updateQueue;Rn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var d=i.baseState;o=0,c=u=a=null,l=s;do{var f=l.lane,h=l.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,y=l;switch(f=t,h=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(h,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,f=typeof m=="function"?m.call(h,d,f):m,f==null)break e;d=ve({},d,f);break e;case 2:Rn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else h={eventTime:h,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=h,a=d):c=c.next=h,o|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(c===null&&(a=d),i.baseState=a,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);_r|=o,e.lanes=o,e.memoizedState=d}}function d0(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 Gv=new Qm.Component().refs;function Vc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ml={isMounted:function(e){return(e=e._reactInternals)?Mr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=We(),i=zn(e),s=mn(r,i);s.payload=t,n!=null&&(s.callback=n),t=Bn(e,s,i),t!==null&&(Vt(t,e,i,r),sa(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=We(),i=zn(e),s=mn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Bn(e,s,i),t!==null&&(Vt(t,e,i,r),sa(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=We(),r=zn(e),i=mn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Bn(e,i,r),t!==null&&(Vt(t,e,r,n),sa(t,e,r))}};function f0(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?!Ns(n,r)||!Ns(i,s):!0}function Zv(e,t,n){var r=!1,i=Gn,s=t.contextType;return typeof s=="object"&&s!==null?s=Ft(s):(i=nt(t)?Cr:ze.current,r=t.contextTypes,s=(r=r!=null)?mi(e,i):Gn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ml,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function p0(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&&ml.enqueueReplaceState(t,t.state,null)}function qc(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Gv,hf(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ft(s):(s=nt(t)?Cr:ze.current,i.context=mi(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Vc(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&&ml.enqueueReplaceState(i,i.state,null),ja(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Vi(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 l=i.refs;l===Gv&&(l=i.refs={}),o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error($(284));if(!n._owner)throw Error($(290,e))}return e}function $o(e,t){throw e=Object.prototype.toString.call(t),Error($(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function h0(e){var t=e._init;return t(e._payload)}function Kv(e){function t(g,v){if(e){var E=g.deletions;E===null?(g.deletions=[v],g.flags|=16):E.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=Hn(g,v),g.index=0,g.sibling=null,g}function s(g,v,E){return g.index=E,e?(E=g.alternate,E!==null?(E=E.index,E<v?(g.flags|=2,v):E):(g.flags|=2,v)):(g.flags|=1048576,v)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,v,E,w){return v===null||v.tag!==6?(v=Iu(E,g.mode,w),v.return=g,v):(v=i(v,E),v.return=g,v)}function a(g,v,E,w){var b=E.type;return b===Wr?c(g,v,E.props.children,w,E.key):v!==null&&(v.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===kn&&h0(b)===v.type)?(w=i(v,E.props),w.ref=Vi(g,v,E),w.return=g,w):(w=da(E.type,E.key,E.props,null,g.mode,w),w.ref=Vi(g,v,E),w.return=g,w)}function u(g,v,E,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==E.containerInfo||v.stateNode.implementation!==E.implementation?(v=Lu(E,g.mode,w),v.return=g,v):(v=i(v,E.children||[]),v.return=g,v)}function c(g,v,E,w,b){return v===null||v.tag!==7?(v=Er(E,g.mode,w,b),v.return=g,v):(v=i(v,E),v.return=g,v)}function d(g,v,E){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Iu(""+v,g.mode,E),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case _o:return E=da(v.type,v.key,v.props,null,g.mode,E),E.ref=Vi(g,null,v),E.return=g,E;case qr:return v=Lu(v,g.mode,E),v.return=g,v;case kn:var w=v._init;return d(g,w(v._payload),E)}if(ts(v)||ji(v))return v=Er(v,g.mode,E,null),v.return=g,v;$o(g,v)}return null}function f(g,v,E,w){var b=v!==null?v.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return b!==null?null:l(g,v,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case _o:return E.key===b?a(g,v,E,w):null;case qr:return E.key===b?u(g,v,E,w):null;case kn:return b=E._init,f(g,v,b(E._payload),w)}if(ts(E)||ji(E))return b!==null?null:c(g,v,E,w,null);$o(g,E)}return null}function h(g,v,E,w,b){if(typeof w=="string"&&w!==""||typeof w=="number")return g=g.get(E)||null,l(v,g,""+w,b);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case _o:return g=g.get(w.key===null?E:w.key)||null,a(v,g,w,b);case qr:return g=g.get(w.key===null?E:w.key)||null,u(v,g,w,b);case kn:var S=w._init;return h(g,v,E,S(w._payload),b)}if(ts(w)||ji(w))return g=g.get(E)||null,c(v,g,w,b,null);$o(v,w)}return null}function m(g,v,E,w){for(var b=null,S=null,_=v,A=v=0,D=null;_!==null&&A<E.length;A++){_.index>A?(D=_,_=null):D=_.sibling;var P=f(g,_,E[A],w);if(P===null){_===null&&(_=D);break}e&&_&&P.alternate===null&&t(g,_),v=s(P,v,A),S===null?b=P:S.sibling=P,S=P,_=D}if(A===E.length)return n(g,_),pe&&lr(g,A),b;if(_===null){for(;A<E.length;A++)_=d(g,E[A],w),_!==null&&(v=s(_,v,A),S===null?b=_:S.sibling=_,S=_);return pe&&lr(g,A),b}for(_=r(g,_);A<E.length;A++)D=h(_,g,A,E[A],w),D!==null&&(e&&D.alternate!==null&&_.delete(D.key===null?A:D.key),v=s(D,v,A),S===null?b=D:S.sibling=D,S=D);return e&&_.forEach(function(V){return t(g,V)}),pe&&lr(g,A),b}function y(g,v,E,w){var b=ji(E);if(typeof b!="function")throw Error($(150));if(E=b.call(E),E==null)throw Error($(151));for(var S=b=null,_=v,A=v=0,D=null,P=E.next();_!==null&&!P.done;A++,P=E.next()){_.index>A?(D=_,_=null):D=_.sibling;var V=f(g,_,P.value,w);if(V===null){_===null&&(_=D);break}e&&_&&V.alternate===null&&t(g,_),v=s(V,v,A),S===null?b=V:S.sibling=V,S=V,_=D}if(P.done)return n(g,_),pe&&lr(g,A),b;if(_===null){for(;!P.done;A++,P=E.next())P=d(g,P.value,w),P!==null&&(v=s(P,v,A),S===null?b=P:S.sibling=P,S=P);return pe&&lr(g,A),b}for(_=r(g,_);!P.done;A++,P=E.next())P=h(_,g,A,P.value,w),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?A:P.key),v=s(P,v,A),S===null?b=P:S.sibling=P,S=P);return e&&_.forEach(function(U){return t(g,U)}),pe&&lr(g,A),b}function x(g,v,E,w){if(typeof E=="object"&&E!==null&&E.type===Wr&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case _o:e:{for(var b=E.key,S=v;S!==null;){if(S.key===b){if(b=E.type,b===Wr){if(S.tag===7){n(g,S.sibling),v=i(S,E.props.children),v.return=g,g=v;break e}}else if(S.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===kn&&h0(b)===S.type){n(g,S.sibling),v=i(S,E.props),v.ref=Vi(g,S,E),v.return=g,g=v;break e}n(g,S);break}else t(g,S);S=S.sibling}E.type===Wr?(v=Er(E.props.children,g.mode,w,E.key),v.return=g,g=v):(w=da(E.type,E.key,E.props,null,g.mode,w),w.ref=Vi(g,v,E),w.return=g,g=w)}return o(g);case qr:e:{for(S=E.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===E.containerInfo&&v.stateNode.implementation===E.implementation){n(g,v.sibling),v=i(v,E.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Lu(E,g.mode,w),v.return=g,g=v}return o(g);case kn:return S=E._init,x(g,v,S(E._payload),w)}if(ts(E))return m(g,v,E,w);if(ji(E))return y(g,v,E,w);$o(g,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,v!==null&&v.tag===6?(n(g,v.sibling),v=i(v,E),v.return=g,g=v):(n(g,v),v=Iu(E,g.mode,w),v.return=g,g=v),o(g)):n(g,v)}return x}var gi=Kv(!0),Xv=Kv(!1),uo={},tn=Kn(uo),Ls=Kn(uo),js=Kn(uo);function mr(e){if(e===uo)throw Error($(174));return e}function mf(e,t){switch(ue(js,t),ue(Ls,e),ue(tn,uo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Sc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Sc(t,e)}de(tn),ue(tn,t)}function yi(){de(tn),de(Ls),de(js)}function Jv(e){mr(js.current);var t=mr(tn.current),n=Sc(t,e.type);t!==n&&(ue(Ls,e),ue(tn,n))}function vf(e){Ls.current===e&&(de(tn),de(Ls))}var he=Kn(0);function Ba(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 Fu=[];function gf(){for(var e=0;e<Fu.length;e++)Fu[e]._workInProgressVersionPrimary=null;Fu.length=0}var oa=Sn.ReactCurrentDispatcher,Tu=Sn.ReactCurrentBatchConfig,br=0,me=null,_e=null,Re=null,Ua=!1,fs=!1,Bs=0,W3=0;function je(){throw Error($(321))}function yf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wt(e[n],t[n]))return!1;return!0}function Ef(e,t,n,r,i,s){if(br=s,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=e===null||e.memoizedState===null?Z3:K3,e=n(r,i),fs){s=0;do{if(fs=!1,Bs=0,25<=s)throw Error($(301));s+=1,Re=_e=null,t.updateQueue=null,oa.current=X3,e=n(r,i)}while(fs)}if(oa.current=za,t=_e!==null&&_e.next!==null,br=0,Re=_e=me=null,Ua=!1,t)throw Error($(300));return e}function wf(){var e=Bs!==0;return Bs=0,e}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?me.memoizedState=Re=e:Re=Re.next=e,Re}function Tt(){if(_e===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Re===null?me.memoizedState:Re.next;if(t!==null)Re=t,_e=e;else{if(e===null)throw Error($(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Re===null?me.memoizedState=Re=e:Re=Re.next=e}return Re}function Us(e,t){return typeof t=="function"?t(e):t}function Du(e){var t=Tt(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=_e,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 l=o=null,a=null,u=s;do{var c=u.lane;if((br&c)===c)a!==null&&(a=a.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};a===null?(l=a=d,o=r):a=a.next=d,me.lanes|=c,_r|=c}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,Wt(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,me.lanes|=s,_r|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Nu(e){var t=Tt(),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);Wt(s,t.memoizedState)||(et=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function eg(){}function tg(e,t){var n=me,r=Tt(),i=t(),s=!Wt(r.memoizedState,i);if(s&&(r.memoizedState=i,et=!0),r=r.queue,xf(ig.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,zs(9,rg.bind(null,n,r,i,t),void 0,null),Oe===null)throw Error($(349));br&30||ng(n,t,i)}return i}function ng(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rg(e,t,n,r){t.value=n,t.getSnapshot=r,sg(t)&&og(e)}function ig(e,t,n){return n(function(){sg(t)&&og(e)})}function sg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wt(e,n)}catch{return!0}}function og(e){var t=En(e,1);t!==null&&Vt(t,e,1,-1)}function m0(e){var t=Kt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Us,lastRenderedState:e},t.queue=e,e=e.dispatch=G3.bind(null,me,e),[t.memoizedState,e]}function zs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.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 ag(){return Tt().memoizedState}function aa(e,t,n,r){var i=Kt();me.flags|=e,i.memoizedState=zs(1|t,n,void 0,r===void 0?null:r)}function vl(e,t,n,r){var i=Tt();r=r===void 0?null:r;var s=void 0;if(_e!==null){var o=_e.memoizedState;if(s=o.destroy,r!==null&&yf(r,o.deps)){i.memoizedState=zs(t,n,s,r);return}}me.flags|=e,i.memoizedState=zs(1|t,n,s,r)}function v0(e,t){return aa(8390656,8,e,t)}function xf(e,t){return vl(2048,8,e,t)}function lg(e,t){return vl(4,2,e,t)}function ug(e,t){return vl(4,4,e,t)}function cg(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 dg(e,t,n){return n=n!=null?n.concat([e]):null,vl(4,4,cg.bind(null,t,e),n)}function Cf(){}function fg(e,t){var n=Tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pg(e,t){var n=Tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hg(e,t,n){return br&21?(Wt(n,t)||(n=gv(),me.lanes|=n,_r|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,et=!0),e.memoizedState=n)}function Q3(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=Tu.transition;Tu.transition={};try{e(!1),t()}finally{oe=n,Tu.transition=r}}function mg(){return Tt().memoizedState}function Y3(e,t,n){var r=zn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vg(e))gg(t,n);else if(n=Qv(e,t,n,r),n!==null){var i=We();Vt(n,e,r,i),yg(n,t,r)}}function G3(e,t,n){var r=zn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vg(e))gg(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,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Wt(l,o)){var a=t.interleaved;a===null?(i.next=i,pf(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Qv(e,t,i,r),n!==null&&(i=We(),Vt(n,e,r,i),yg(n,t,r))}}function vg(e){var t=e.alternate;return e===me||t!==null&&t===me}function gg(e,t){fs=Ua=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xd(e,n)}}var za={readContext:Ft,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},Z3={readContext:Ft,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:v0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,aa(4194308,4,cg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return aa(4194308,4,e,t)},useInsertionEffect:function(e,t){return aa(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();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=Y3.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:m0,useDebugValue:Cf,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=m0(!1),t=e[0];return e=Q3.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,i=Kt();if(pe){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),Oe===null)throw Error($(349));br&30||ng(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,v0(ig.bind(null,r,s,e),[e]),r.flags|=2048,zs(9,rg.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Oe.identifierPrefix;if(pe){var n=hn,r=pn;n=(r&~(1<<32-Ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=W3++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},K3={readContext:Ft,useCallback:fg,useContext:Ft,useEffect:xf,useImperativeHandle:dg,useInsertionEffect:lg,useLayoutEffect:ug,useMemo:pg,useReducer:Du,useRef:ag,useState:function(){return Du(Us)},useDebugValue:Cf,useDeferredValue:function(e){var t=Tt();return hg(t,_e.memoizedState,e)},useTransition:function(){var e=Du(Us)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:eg,useSyncExternalStore:tg,useId:mg,unstable_isNewReconciler:!1},X3={readContext:Ft,useCallback:fg,useContext:Ft,useEffect:xf,useImperativeHandle:dg,useInsertionEffect:lg,useLayoutEffect:ug,useMemo:pg,useReducer:Nu,useRef:ag,useState:function(){return Nu(Us)},useDebugValue:Cf,useDeferredValue:function(e){var t=Tt();return _e===null?t.memoizedState=e:hg(t,_e.memoizedState,e)},useTransition:function(){var e=Nu(Us)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:eg,useSyncExternalStore:tg,useId:mg,unstable_isNewReconciler:!1};function Ei(e,t){try{var n="",r=t;do n+=Ax(r),r=r.return;while(r);var i=n}catch(s){i=`
55
+ Error generating stack: `+s.message+`
56
+ `+s.stack}return{value:e,source:t,stack:i,digest:null}}function Mu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var J3=typeof WeakMap=="function"?WeakMap:Map;function Eg(e,t,n){n=mn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Va||(Va=!0,nd=r),Wc(e,t)},n}function wg(e,t,n){n=mn(-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(){Wc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Wc(e,t),typeof r!="function"&&(Un===null?Un=new Set([this]):Un.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function g0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new J3;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=p5.bind(null,e,t,n),t.then(e,e))}function y0(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 E0(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=mn(-1,1),t.tag=2,Bn(n,t,1))),n.lanes|=1),e)}var e5=Sn.ReactCurrentOwner,et=!1;function Ve(e,t,n,r){t.child=e===null?Xv(t,null,n,r):gi(t,e.child,n,r)}function w0(e,t,n,r,i){n=n.render;var s=t.ref;return ci(t,i),r=Ef(e,t,n,r,s,i),n=wf(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wn(e,t,i)):(pe&&n&&af(t),t.flags|=1,Ve(e,t,r,i),t.child)}function x0(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Pf(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,xg(e,t,s,r,i)):(e=da(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:Ns,n(o,r)&&e.ref===t.ref)return wn(e,t,i)}return t.flags|=1,e=Hn(s,r),e.ref=t.ref,e.return=t,t.child=e}function xg(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Ns(s,r)&&e.ref===t.ref)if(et=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(et=!0);else return t.lanes=e.lanes,wn(e,t,i)}return Qc(e,t,n,r,i)}function Cg(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},ue(ni,lt),lt|=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,ue(ni,lt),lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ue(ni,lt),lt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ue(ni,lt),lt|=r;return Ve(e,t,i,n),t.child}function Sg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Qc(e,t,n,r,i){var s=nt(n)?Cr:ze.current;return s=mi(t,s),ci(t,i),n=Ef(e,t,n,r,s,i),r=wf(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wn(e,t,i)):(pe&&r&&af(t),t.flags|=1,Ve(e,t,n,i),t.child)}function C0(e,t,n,r,i){if(nt(n)){var s=!0;Na(t)}else s=!1;if(ci(t,i),t.stateNode===null)la(e,t),Zv(t,n,r),qc(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ft(u):(u=nt(n)?Cr:ze.current,u=mi(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&p0(t,o,r,u),Rn=!1;var f=t.memoizedState;o.state=f,ja(t,r,o,i),a=t.memoizedState,l!==r||f!==a||tt.current||Rn?(typeof c=="function"&&(Vc(t,n,c,r),a=t.memoizedState),(l=Rn||f0(t,n,l,r,f,a,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=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Yv(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Lt(t.type,l),o.props=u,d=t.pendingProps,f=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ft(a):(a=nt(n)?Cr:ze.current,a=mi(t,a));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==d||f!==a)&&p0(t,o,r,a),Rn=!1,f=t.memoizedState,o.state=f,ja(t,r,o,i);var m=t.memoizedState;l!==d||f!==m||tt.current||Rn?(typeof h=="function"&&(Vc(t,n,h,r),m=t.memoizedState),(u=Rn||f0(t,n,u,r,f,m,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Yc(e,t,n,r,s,i)}function Yc(e,t,n,r,i,s){Sg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&a0(t,n,!1),wn(e,t,s);r=t.stateNode,e5.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=gi(t,e.child,null,s),t.child=gi(t,null,l,s)):Ve(e,t,l,s),t.memoizedState=r.state,i&&a0(t,n,!0),t.child}function bg(e){var t=e.stateNode;t.pendingContext?o0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&o0(e,t.context,!1),mf(e,t.containerInfo)}function S0(e,t,n,r,i){return vi(),uf(i),t.flags|=256,Ve(e,t,n,r),t.child}var Gc={dehydrated:null,treeContext:null,retryLane:0};function Zc(e){return{baseLanes:e,cachePool:null,transitions:null}}function _g(e,t,n){var r=t.pendingProps,i=he.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ue(he,i&1),e===null)return zc(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=El(o,r,0,null),e=Er(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Zc(n),t.memoizedState=Gc,e):Sf(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return t5(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Hn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Hn(l,s):(s=Er(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?Zc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Gc,r}return s=e.child,e=s.sibling,r=Hn(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 Sf(e,t){return t=El({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Io(e,t,n,r){return r!==null&&uf(r),gi(t,e.child,null,n),e=Sf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function t5(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Mu(Error($(422))),Io(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=El({mode:"visible",children:r.children},i,0,null),s=Er(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&gi(t,e.child,null,o),t.child.memoizedState=Zc(o),t.memoizedState=Gc,s);if(!(t.mode&1))return Io(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error($(419)),r=Mu(s,r,void 0),Io(e,t,o,r)}if(l=(o&e.childLanes)!==0,et||l){if(r=Oe,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,En(e,i),Vt(r,e,i,-1))}return Of(),r=Mu(Error($(421))),Io(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=h5.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,ct=jn(i.nextSibling),ht=t,pe=!0,Bt=null,e!==null&&(St[bt++]=pn,St[bt++]=hn,St[bt++]=Sr,pn=e.id,hn=e.overflow,Sr=t),t=Sf(t,r.children),t.flags|=4096,t)}function b0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hc(e.return,t,n)}function $u(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 Ag(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ve(e,t,r.children,n),r=he.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&&b0(e,n,t);else if(e.tag===19)b0(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(ue(he,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&&Ba(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$u(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&&Ba(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$u(t,!0,n,null,s);break;case"together":$u(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function la(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_r|=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=Hn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function n5(e,t,n){switch(t.tag){case 3:bg(t),vi();break;case 5:Jv(t);break;case 1:nt(t.type)&&Na(t);break;case 4:mf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ue(Ia,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(he,he.current&1),t.flags|=128,null):n&t.child.childLanes?_g(e,t,n):(ue(he,he.current&1),e=wn(e,t,n),e!==null?e.sibling:null);ue(he,he.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ag(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ue(he,he.current),r)break;return null;case 22:case 23:return t.lanes=0,Cg(e,t,n)}return wn(e,t,n)}var kg,Kc,Rg,Og;kg=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}};Kc=function(){};Rg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,mr(tn.current);var s=null;switch(n){case"input":i=Ec(e,i),r=Ec(e,r),s=[];break;case"select":i=ve({},i,{value:void 0}),r=ve({},r,{value:void 0}),s=[];break;case"textarea":i=Cc(e,i),r=Cc(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ta)}bc(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ks.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ks.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&ce("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Og=function(e,t,n,r){n!==r&&(t.flags|=4)};function qi(e,t){if(!pe)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 Be(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 r5(e,t,n){var r=t.pendingProps;switch(lf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return nt(t.type)&&Da(),Be(t),null;case 3:return r=t.stateNode,yi(),de(tt),de(ze),gf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Mo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bt!==null&&(sd(Bt),Bt=null))),Kc(e,t),Be(t),null;case 5:vf(t);var i=mr(js.current);if(n=t.type,e!==null&&t.stateNode!=null)Rg(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 Be(t),null}if(e=mr(tn.current),Mo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Jt]=t,r[Is]=s,e=(t.mode&1)!==0,n){case"dialog":ce("cancel",r),ce("close",r);break;case"iframe":case"object":case"embed":ce("load",r);break;case"video":case"audio":for(i=0;i<rs.length;i++)ce(rs[i],r);break;case"source":ce("error",r);break;case"img":case"image":case"link":ce("error",r),ce("load",r);break;case"details":ce("toggle",r);break;case"input":Dh(r,s),ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ce("invalid",r);break;case"textarea":Mh(r,s),ce("invalid",r)}bc(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&No(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&No(r.textContent,l,e),i=["children",""+l]):ks.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&ce("scroll",r)}switch(n){case"input":Ao(r),Nh(r,s,!0);break;case"textarea":Ao(r),$h(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ta)}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=nv(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[Jt]=t,e[Is]=r,kg(e,t,!1,!1),t.stateNode=e;e:{switch(o=_c(n,r),n){case"dialog":ce("cancel",e),ce("close",e),i=r;break;case"iframe":case"object":case"embed":ce("load",e),i=r;break;case"video":case"audio":for(i=0;i<rs.length;i++)ce(rs[i],e);i=r;break;case"source":ce("error",e),i=r;break;case"img":case"image":case"link":ce("error",e),ce("load",e),i=r;break;case"details":ce("toggle",e),i=r;break;case"input":Dh(e,r),i=Ec(e,r),ce("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ve({},r,{value:void 0}),ce("invalid",e);break;case"textarea":Mh(e,r),i=Cc(e,r),ce("invalid",e);break;default:i=r}bc(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?sv(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&rv(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Rs(e,a):typeof a=="number"&&Rs(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ks.hasOwnProperty(s)?a!=null&&s==="onScroll"&&ce("scroll",e):a!=null&&Wd(e,s,a,o))}switch(n){case"input":Ao(e),Nh(e,r,!1);break;case"textarea":Ao(e),$h(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Yn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?oi(e,!!r.multiple,s,!1):r.defaultValue!=null&&oi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ta)}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 Be(t),null;case 6:if(e&&t.stateNode!=null)Og(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error($(166));if(n=mr(js.current),mr(tn.current),Mo(t)){if(r=t.stateNode,n=t.memoizedProps,r[Jt]=t,(s=r.nodeValue!==n)&&(e=ht,e!==null))switch(e.tag){case 3:No(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&No(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Jt]=t,t.stateNode=r}return Be(t),null;case 13:if(de(he),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pe&&ct!==null&&t.mode&1&&!(t.flags&128))Wv(),vi(),t.flags|=98560,s=!1;else if(s=Mo(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[Jt]=t}else vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Be(t),s=!1}else Bt!==null&&(sd(Bt),Bt=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||he.current&1?Ae===0&&(Ae=3):Of())),t.updateQueue!==null&&(t.flags|=4),Be(t),null);case 4:return yi(),Kc(e,t),e===null&&Ms(t.stateNode.containerInfo),Be(t),null;case 10:return ff(t.type._context),Be(t),null;case 17:return nt(t.type)&&Da(),Be(t),null;case 19:if(de(he),s=t.memoizedState,s===null)return Be(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)qi(s,!1);else{if(Ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ba(e),o!==null){for(t.flags|=128,qi(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 ue(he,he.current&1|2),t.child}e=e.sibling}s.tail!==null&&we()>wi&&(t.flags|=128,r=!0,qi(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ba(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!pe)return Be(t),null}else 2*we()-s.renderingStartTime>wi&&n!==1073741824&&(t.flags|=128,r=!0,qi(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=we(),t.sibling=null,n=he.current,ue(he,r?n&1|2:n&1),t):(Be(t),null);case 22:case 23:return Rf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function i5(e,t){switch(lf(t),t.tag){case 1:return nt(t.type)&&Da(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yi(),de(tt),de(ze),gf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vf(t),null;case 13:if(de(he),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(he),null;case 4:return yi(),null;case 10:return ff(t.type._context),null;case 22:case 23:return Rf(),null;case 24:return null;default:return null}}var Lo=!1,Ue=!1,s5=typeof WeakSet=="function"?WeakSet:Set,H=null;function ti(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else n.current=null}function Xc(e,t,n){try{n()}catch(r){ye(e,t,r)}}var _0=!1;function o5(e,t){if(Mc=Oa,e=Dv(),of(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,l=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(l=o+i),d!==s||r!==0&&d.nodeType!==3||(a=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(l=o),f===s&&++c===r&&(a=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for($c={focusedElem:e,selectionRange:n},Oa=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,x=m.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Lt(t.type,y),x);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(w){ye(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return m=_0,_0=!1,m}function ps(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&&Xc(t,n,s)}i=i.next}while(i!==r)}}function gl(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 Jc(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 Pg(e){var t=e.alternate;t!==null&&(e.alternate=null,Pg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[Is],delete t[jc],delete t[z3],delete t[H3])),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 Fg(e){return e.tag===5||e.tag===3||e.tag===4}function A0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fg(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 ed(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=Ta));else if(r!==4&&(e=e.child,e!==null))for(ed(e,t,n),e=e.sibling;e!==null;)ed(e,t,n),e=e.sibling}function td(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(td(e,t,n),e=e.sibling;e!==null;)td(e,t,n),e=e.sibling}var Te=null,jt=!1;function bn(e,t,n){for(n=n.child;n!==null;)Tg(e,t,n),n=n.sibling}function Tg(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(ul,n)}catch{}switch(n.tag){case 5:Ue||ti(n,t);case 6:var r=Te,i=jt;Te=null,bn(e,t,n),Te=r,jt=i,Te!==null&&(jt?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(jt?(e=Te,n=n.stateNode,e.nodeType===8?Ou(e.parentNode,n):e.nodeType===1&&Ou(e,n),Ts(e)):Ou(Te,n.stateNode));break;case 4:r=Te,i=jt,Te=n.stateNode.containerInfo,jt=!0,bn(e,t,n),Te=r,jt=i;break;case 0:case 11:case 14:case 15:if(!Ue&&(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)&&Xc(n,t,o),i=i.next}while(i!==r)}bn(e,t,n);break;case 1:if(!Ue&&(ti(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ye(n,t,l)}bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:n.mode&1?(Ue=(r=Ue)||n.memoizedState!==null,bn(e,t,n),Ue=r):bn(e,t,n);break;default:bn(e,t,n)}}function k0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new s5),t.forEach(function(r){var i=m5.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function It(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,l=o;e:for(;l!==null;){switch(l.tag){case 5:Te=l.stateNode,jt=!1;break e;case 3:Te=l.stateNode.containerInfo,jt=!0;break e;case 4:Te=l.stateNode.containerInfo,jt=!0;break e}l=l.return}if(Te===null)throw Error($(160));Tg(s,o,i),Te=null,jt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){ye(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Dg(t,e),t=t.sibling}function Dg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(It(t,e),Gt(e),r&4){try{ps(3,e,e.return),gl(3,e)}catch(y){ye(e,e.return,y)}try{ps(5,e,e.return)}catch(y){ye(e,e.return,y)}}break;case 1:It(t,e),Gt(e),r&512&&n!==null&&ti(n,n.return);break;case 5:if(It(t,e),Gt(e),r&512&&n!==null&&ti(n,n.return),e.flags&32){var i=e.stateNode;try{Rs(i,"")}catch(y){ye(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&ev(i,s),_c(l,o);var u=_c(l,s);for(o=0;o<a.length;o+=2){var c=a[o],d=a[o+1];c==="style"?sv(i,d):c==="dangerouslySetInnerHTML"?rv(i,d):c==="children"?Rs(i,d):Wd(i,c,d,u)}switch(l){case"input":wc(i,s);break;case"textarea":tv(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?oi(i,!!s.multiple,h,!1):f!==!!s.multiple&&(s.defaultValue!=null?oi(i,!!s.multiple,s.defaultValue,!0):oi(i,!!s.multiple,s.multiple?[]:"",!1))}i[Is]=s}catch(y){ye(e,e.return,y)}}break;case 6:if(It(t,e),Gt(e),r&4){if(e.stateNode===null)throw Error($(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){ye(e,e.return,y)}}break;case 3:if(It(t,e),Gt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ts(t.containerInfo)}catch(y){ye(e,e.return,y)}break;case 4:It(t,e),Gt(e);break;case 13:It(t,e),Gt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Af=we())),r&4&&k0(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ue=(u=Ue)||c,It(t,e),Ue=u):It(t,e),Gt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(H=e,c=e.child;c!==null;){for(d=H=c;H!==null;){switch(f=H,h=f.child,f.tag){case 0:case 11:case 14:case 15:ps(4,f,f.return);break;case 1:ti(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){ye(r,n,y)}}break;case 5:ti(f,f.return);break;case 22:if(f.memoizedState!==null){O0(d);continue}}h!==null?(h.return=f,H=h):O0(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"):(l=d.stateNode,a=d.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=iv("display",o))}catch(y){ye(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){ye(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:It(t,e),Gt(e),r&4&&k0(e);break;case 21:break;default:It(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Fg(n)){var r=n;break e}n=n.return}throw Error($(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Rs(i,""),r.flags&=-33);var s=A0(e);td(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=A0(e);ed(e,l,o);break;default:throw Error($(161))}}catch(a){ye(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function a5(e,t,n){H=e,Ng(e)}function Ng(e,t,n){for(var r=(e.mode&1)!==0;H!==null;){var i=H,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Lo;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Ue;l=Lo;var u=Ue;if(Lo=o,(Ue=a)&&!u)for(H=i;H!==null;)o=H,a=o.child,o.tag===22&&o.memoizedState!==null?P0(i):a!==null?(a.return=o,H=a):P0(i);for(;s!==null;)H=s,Ng(s),s=s.sibling;H=i,Lo=l,Ue=u}R0(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,H=s):R0(e)}}function R0(e){for(;H!==null;){var t=H;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ue||gl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ue)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Lt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&d0(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}d0(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.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&&Ts(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error($(163))}Ue||t.flags&512&&Jc(t)}catch(f){ye(t,t.return,f)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function O0(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function P0(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{gl(4,t)}catch(a){ye(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){ye(t,i,a)}}var s=t.return;try{Jc(t)}catch(a){ye(t,s,a)}break;case 5:var o=t.return;try{Jc(t)}catch(a){ye(t,o,a)}}}catch(a){ye(t,t.return,a)}if(t===e){H=null;break}var l=t.sibling;if(l!==null){l.return=t.return,H=l;break}H=t.return}}var l5=Math.ceil,Ha=Sn.ReactCurrentDispatcher,bf=Sn.ReactCurrentOwner,Ot=Sn.ReactCurrentBatchConfig,ne=0,Oe=null,be=null,Me=0,lt=0,ni=Kn(0),Ae=0,Hs=null,_r=0,yl=0,_f=0,hs=null,Je=null,Af=0,wi=1/0,cn=null,Va=!1,nd=null,Un=null,jo=!1,Dn=null,qa=0,ms=0,rd=null,ua=-1,ca=0;function We(){return ne&6?we():ua!==-1?ua:ua=we()}function zn(e){return e.mode&1?ne&2&&Me!==0?Me&-Me:q3.transition!==null?(ca===0&&(ca=gv()),ca):(e=oe,e!==0||(e=window.event,e=e===void 0?16:bv(e.type)),e):1}function Vt(e,t,n,r){if(50<ms)throw ms=0,rd=null,Error($(185));oo(e,n,r),(!(ne&2)||e!==Oe)&&(e===Oe&&(!(ne&2)&&(yl|=n),Ae===4&&Pn(e,Me)),rt(e,r),n===1&&ne===0&&!(t.mode&1)&&(wi=we()+500,hl&&Xn()))}function rt(e,t){var n=e.callbackNode;qx(e,t);var r=Ra(e,e===Oe?Me:0);if(r===0)n!==null&&jh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&jh(n),t===1)e.tag===0?V3(F0.bind(null,e)):Hv(F0.bind(null,e)),B3(function(){!(ne&6)&&Xn()}),n=null;else{switch(yv(r)){case 1:n=Kd;break;case 4:n=mv;break;case 16:n=ka;break;case 536870912:n=vv;break;default:n=ka}n=zg(n,Mg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Mg(e,t){if(ua=-1,ca=0,ne&6)throw Error($(327));var n=e.callbackNode;if(di()&&e.callbackNode!==n)return null;var r=Ra(e,e===Oe?Me:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Wa(e,r);else{t=r;var i=ne;ne|=2;var s=Ig();(Oe!==e||Me!==t)&&(cn=null,wi=we()+500,yr(e,t));do try{d5();break}catch(l){$g(e,l)}while(1);df(),Ha.current=s,ne=i,be!==null?t=0:(Oe=null,Me=0,t=Ae)}if(t!==0){if(t===2&&(i=Pc(e),i!==0&&(r=i,t=id(e,i))),t===1)throw n=Hs,yr(e,0),Pn(e,r),rt(e,we()),n;if(t===6)Pn(e,r);else{if(i=e.current.alternate,!(r&30)&&!u5(i)&&(t=Wa(e,r),t===2&&(s=Pc(e),s!==0&&(r=s,t=id(e,s))),t===1))throw n=Hs,yr(e,0),Pn(e,r),rt(e,we()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error($(345));case 2:ur(e,Je,cn);break;case 3:if(Pn(e,r),(r&130023424)===r&&(t=Af+500-we(),10<t)){if(Ra(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){We(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Lc(ur.bind(null,e,Je,cn),t);break}ur(e,Je,cn);break;case 4:if(Pn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Ht(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=we()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*l5(r/1960))-r,10<r){e.timeoutHandle=Lc(ur.bind(null,e,Je,cn),r);break}ur(e,Je,cn);break;case 5:ur(e,Je,cn);break;default:throw Error($(329))}}}return rt(e,we()),e.callbackNode===n?Mg.bind(null,e):null}function id(e,t){var n=hs;return e.current.memoizedState.isDehydrated&&(yr(e,t).flags|=256),e=Wa(e,t),e!==2&&(t=Je,Je=n,t!==null&&sd(t)),e}function sd(e){Je===null?Je=e:Je.push.apply(Je,e)}function u5(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(!Wt(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 Pn(e,t){for(t&=~_f,t&=~yl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function F0(e){if(ne&6)throw Error($(327));di();var t=Ra(e,0);if(!(t&1))return rt(e,we()),null;var n=Wa(e,t);if(e.tag!==0&&n===2){var r=Pc(e);r!==0&&(t=r,n=id(e,r))}if(n===1)throw n=Hs,yr(e,0),Pn(e,t),rt(e,we()),n;if(n===6)throw Error($(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ur(e,Je,cn),rt(e,we()),null}function kf(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&(wi=we()+500,hl&&Xn())}}function Ar(e){Dn!==null&&Dn.tag===0&&!(ne&6)&&di();var t=ne;ne|=1;var n=Ot.transition,r=oe;try{if(Ot.transition=null,oe=1,e)return e()}finally{oe=r,Ot.transition=n,ne=t,!(ne&6)&&Xn()}}function Rf(){lt=ni.current,de(ni)}function yr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,j3(n)),be!==null)for(n=be.return;n!==null;){var r=n;switch(lf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Da();break;case 3:yi(),de(tt),de(ze),gf();break;case 5:vf(r);break;case 4:yi();break;case 13:de(he);break;case 19:de(he);break;case 10:ff(r.type._context);break;case 22:case 23:Rf()}n=n.return}if(Oe=e,be=e=Hn(e.current,null),Me=lt=t,Ae=0,Hs=null,_f=yl=_r=0,Je=hs=null,hr!==null){for(t=0;t<hr.length;t++)if(n=hr[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}hr=null}return e}function $g(e,t){do{var n=be;try{if(df(),oa.current=za,Ua){for(var r=me.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ua=!1}if(br=0,Re=_e=me=null,fs=!1,Bs=0,bf.current=null,n===null||n.return===null){Ae=1,Hs=t,be=null;break}e:{var s=e,o=n.return,l=n,a=t;if(t=Me,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=y0(o);if(h!==null){h.flags&=-257,E0(h,o,l,s,t),h.mode&1&&g0(s,u,t),t=h,a=u;var m=t.updateQueue;if(m===null){var y=new Set;y.add(a),t.updateQueue=y}else m.add(a);break e}else{if(!(t&1)){g0(s,u,t),Of();break e}a=Error($(426))}}else if(pe&&l.mode&1){var x=y0(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),E0(x,o,l,s,t),uf(Ei(a,l));break e}}s=a=Ei(a,l),Ae!==4&&(Ae=2),hs===null?hs=[s]:hs.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=Eg(s,a,t);c0(s,g);break e;case 1:l=a;var v=s.type,E=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Un===null||!Un.has(E)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=wg(s,l,t);c0(s,w);break e}}s=s.return}while(s!==null)}jg(n)}catch(b){t=b,be===n&&n!==null&&(be=n=n.return);continue}break}while(1)}function Ig(){var e=Ha.current;return Ha.current=za,e===null?za:e}function Of(){(Ae===0||Ae===3||Ae===2)&&(Ae=4),Oe===null||!(_r&268435455)&&!(yl&268435455)||Pn(Oe,Me)}function Wa(e,t){var n=ne;ne|=2;var r=Ig();(Oe!==e||Me!==t)&&(cn=null,yr(e,t));do try{c5();break}catch(i){$g(e,i)}while(1);if(df(),ne=n,Ha.current=r,be!==null)throw Error($(261));return Oe=null,Me=0,Ae}function c5(){for(;be!==null;)Lg(be)}function d5(){for(;be!==null&&!$x();)Lg(be)}function Lg(e){var t=Ug(e.alternate,e,lt);e.memoizedProps=e.pendingProps,t===null?jg(e):be=t,bf.current=null}function jg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=i5(n,t),n!==null){n.flags&=32767,be=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ae=6,be=null;return}}else if(n=r5(n,t,lt),n!==null){be=n;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ae===0&&(Ae=5)}function ur(e,t,n){var r=oe,i=Ot.transition;try{Ot.transition=null,oe=1,f5(e,t,n,r)}finally{Ot.transition=i,oe=r}return null}function f5(e,t,n,r){do di();while(Dn!==null);if(ne&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(Wx(e,s),e===Oe&&(be=Oe=null,Me=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||jo||(jo=!0,zg(ka,function(){return di(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Ot.transition,Ot.transition=null;var o=oe;oe=1;var l=ne;ne|=4,bf.current=null,o5(e,n),Dg(n,e),T3($c),Oa=!!Mc,$c=Mc=null,e.current=n,a5(n),Ix(),ne=l,oe=o,Ot.transition=s}else e.current=n;if(jo&&(jo=!1,Dn=e,qa=i),s=e.pendingLanes,s===0&&(Un=null),Bx(n.stateNode),rt(e,we()),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(Va)throw Va=!1,e=nd,nd=null,e;return qa&1&&e.tag!==0&&di(),s=e.pendingLanes,s&1?e===rd?ms++:(ms=0,rd=e):ms=0,Xn(),null}function di(){if(Dn!==null){var e=yv(qa),t=Ot.transition,n=oe;try{if(Ot.transition=null,oe=16>e?16:e,Dn===null)var r=!1;else{if(e=Dn,Dn=null,qa=0,ne&6)throw Error($(331));var i=ne;for(ne|=4,H=e.current;H!==null;){var s=H,o=s.child;if(H.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(H=u;H!==null;){var c=H;switch(c.tag){case 0:case 11:case 15:ps(8,c,s)}var d=c.child;if(d!==null)d.return=c,H=d;else for(;H!==null;){c=H;var f=c.sibling,h=c.return;if(Pg(c),c===u){H=null;break}if(f!==null){f.return=h,H=f;break}H=h}}}var m=s.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}H=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,H=o;else e:for(;H!==null;){if(s=H,s.flags&2048)switch(s.tag){case 0:case 11:case 15:ps(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,H=g;break e}H=s.return}}var v=e.current;for(H=v;H!==null;){o=H;var E=o.child;if(o.subtreeFlags&2064&&E!==null)E.return=o,H=E;else e:for(o=v;H!==null;){if(l=H,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:gl(9,l)}}catch(b){ye(l,l.return,b)}if(l===o){H=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,H=w;break e}H=l.return}}if(ne=i,Xn(),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(ul,e)}catch{}r=!0}return r}finally{oe=n,Ot.transition=t}}return!1}function T0(e,t,n){t=Ei(n,t),t=Eg(e,t,1),e=Bn(e,t,1),t=We(),e!==null&&(oo(e,1,t),rt(e,t))}function ye(e,t,n){if(e.tag===3)T0(e,e,n);else for(;t!==null;){if(t.tag===3){T0(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Un===null||!Un.has(r))){e=Ei(n,e),e=wg(t,e,1),t=Bn(t,e,1),e=We(),t!==null&&(oo(t,1,e),rt(t,e));break}}t=t.return}}function p5(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=We(),e.pingedLanes|=e.suspendedLanes&n,Oe===e&&(Me&n)===n&&(Ae===4||Ae===3&&(Me&130023424)===Me&&500>we()-Af?yr(e,0):_f|=n),rt(e,t)}function Bg(e,t){t===0&&(e.mode&1?(t=Oo,Oo<<=1,!(Oo&130023424)&&(Oo=4194304)):t=1);var n=We();e=En(e,t),e!==null&&(oo(e,t,n),rt(e,n))}function h5(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bg(e,n)}function m5(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),Bg(e,n)}var Ug;Ug=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)et=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return et=!1,n5(e,t,n);et=!!(e.flags&131072)}else et=!1,pe&&t.flags&1048576&&Vv(t,$a,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;la(e,t),e=t.pendingProps;var i=mi(t,ze.current);ci(t,n),i=Ef(null,t,r,e,i,n);var s=wf();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,nt(r)?(s=!0,Na(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,hf(t),i.updater=ml,t.stateNode=i,i._reactInternals=t,qc(t,r,e,n),t=Yc(null,t,r,!0,s,n)):(t.tag=0,pe&&s&&af(t),Ve(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(la(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=g5(r),e=Lt(r,e),i){case 0:t=Qc(null,t,r,e,n);break e;case 1:t=C0(null,t,r,e,n);break e;case 11:t=w0(null,t,r,e,n);break e;case 14:t=x0(null,t,r,Lt(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:Lt(r,i),Qc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),C0(e,t,r,i,n);case 3:e:{if(bg(t),e===null)throw Error($(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Yv(e,t),ja(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=Ei(Error($(423)),t),t=S0(e,t,r,n,i);break e}else if(r!==i){i=Ei(Error($(424)),t),t=S0(e,t,r,n,i);break e}else for(ct=jn(t.stateNode.containerInfo.firstChild),ht=t,pe=!0,Bt=null,n=Xv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vi(),r===i){t=wn(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return Jv(t),e===null&&zc(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Ic(r,i)?o=null:s!==null&&Ic(r,s)&&(t.flags|=32),Sg(e,t),Ve(e,t,o,n),t.child;case 6:return e===null&&zc(t),null;case 13:return _g(e,t,n);case 4:return mf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gi(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),w0(e,t,r,i,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(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,ue(Ia,r._currentValue),r._currentValue=o,s!==null)if(Wt(s.value,o)){if(s.children===i.children&&!tt.current){t=wn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=mn(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Hc(s.return,n,t),l.lanes|=n;break}a=a.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,l=o.alternate,l!==null&&(l.lanes|=n),Hc(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}Ve(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ci(t,n),i=Ft(i),r=r(i),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,i=Lt(r,t.pendingProps),i=Lt(r.type,i),x0(e,t,r,i,n);case 15:return xg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),la(e,t),t.tag=1,nt(r)?(e=!0,Na(t)):e=!1,ci(t,n),Zv(t,r,i),qc(t,r,i,n),Yc(null,t,r,!0,e,n);case 19:return Ag(e,t,n);case 22:return Cg(e,t,n)}throw Error($(156,t.tag))};function zg(e,t){return hv(e,t)}function v5(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 Rt(e,t,n,r){return new v5(e,t,n,r)}function Pf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g5(e){if(typeof e=="function")return Pf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yd)return 11;if(e===Gd)return 14}return 2}function Hn(e,t){var n=e.alternate;return n===null?(n=Rt(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 da(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Pf(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Wr:return Er(n.children,i,s,t);case Qd:o=8,i|=8;break;case mc:return e=Rt(12,n,t,i|2),e.elementType=mc,e.lanes=s,e;case vc:return e=Rt(13,n,t,i),e.elementType=vc,e.lanes=s,e;case gc:return e=Rt(19,n,t,i),e.elementType=gc,e.lanes=s,e;case Km:return El(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gm:o=10;break e;case Zm:o=9;break e;case Yd:o=11;break e;case Gd:o=14;break e;case kn:o=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=Rt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Er(e,t,n,r){return e=Rt(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=Rt(22,e,r,t),e.elementType=Km,e.lanes=n,e.stateNode={isHidden:!1},e}function Iu(e,t,n){return e=Rt(6,e,null,t),e.lanes=n,e}function Lu(e,t,n){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y5(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=yu(0),this.expirationTimes=yu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ff(e,t,n,r,i,s,o,l,a){return e=new y5(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Rt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hf(s),e}function E5(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:qr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Hg(e){if(!e)return Gn;e=e._reactInternals;e:{if(Mr(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(nt(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(nt(n))return zv(e,n,t)}return t}function Vg(e,t,n,r,i,s,o,l,a){return e=Ff(n,r,!0,e,i,s,o,l,a),e.context=Hg(null),n=e.current,r=We(),i=zn(n),s=mn(r,i),s.callback=t??null,Bn(n,s,i),e.current.lanes=i,oo(e,i,r),rt(e,r),e}function wl(e,t,n,r){var i=t.current,s=We(),o=zn(i);return n=Hg(n),t.context===null?t.context=n:t.pendingContext=n,t=mn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Bn(i,t,o),e!==null&&(Vt(e,i,o,s),sa(e,i,o)),o}function Qa(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 D0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Tf(e,t){D0(e,t),(e=e.alternate)&&D0(e,t)}function w5(){return null}var qg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Df(e){this._internalRoot=e}xl.prototype.render=Df.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error($(409));wl(e,t,null,null)};xl.prototype.unmount=Df.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ar(function(){wl(null,e,null,null)}),t[yn]=null}};function xl(e){this._internalRoot=e}xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=xv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<On.length&&t!==0&&t<On[n].priority;n++);On.splice(n,0,e),n===0&&Sv(e)}};function Nf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function N0(){}function x5(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Qa(o);s.call(u)}}var o=Vg(t,r,e,0,null,!1,!1,"",N0);return e._reactRootContainer=o,e[yn]=o.current,Ms(e.nodeType===8?e.parentNode:e),Ar(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Qa(a);l.call(u)}}var a=Ff(e,0,!1,null,null,!1,!1,"",N0);return e._reactRootContainer=a,e[yn]=a.current,Ms(e.nodeType===8?e.parentNode:e),Ar(function(){wl(t,a,n,r)}),a}function Sl(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=Qa(o);l.call(a)}}wl(t,o,e,i)}else o=x5(n,t,e,i,r);return Qa(o)}Ev=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ns(t.pendingLanes);n!==0&&(Xd(t,n|1),rt(t,we()),!(ne&6)&&(wi=we()+500,Xn()))}break;case 13:Ar(function(){var r=En(e,1);if(r!==null){var i=We();Vt(r,e,1,i)}}),Tf(e,1)}};Jd=function(e){if(e.tag===13){var t=En(e,134217728);if(t!==null){var n=We();Vt(t,e,134217728,n)}Tf(e,134217728)}};wv=function(e){if(e.tag===13){var t=zn(e),n=En(e,t);if(n!==null){var r=We();Vt(n,e,t,r)}Tf(e,t)}};xv=function(){return oe};Cv=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};kc=function(e,t,n){switch(t){case"input":if(wc(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=pl(r);if(!i)throw Error($(90));Jm(r),wc(r,i)}}}break;case"textarea":tv(e,n);break;case"select":t=n.value,t!=null&&oi(e,!!n.multiple,t,!1)}};lv=kf;uv=Ar;var C5={usingClientEntryPoint:!1,Events:[lo,Zr,pl,ov,av,kf]},Wi={findFiberByHostInstance:pr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},S5={bundleType:Wi.bundleType,version:Wi.version,rendererPackageName:Wi.rendererPackageName,rendererConfig:Wi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Sn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=fv(e),e===null?null:e.stateNode},findFiberByHostInstance:Wi.findFiberByHostInstance||w5,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 Bo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bo.isDisabled&&Bo.supportsFiber)try{ul=Bo.inject(S5),en=Bo}catch{}}yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C5;yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Nf(t))throw Error($(200));return E5(e,t,null,n)};yt.createRoot=function(e,t){if(!Nf(e))throw Error($(299));var n=!1,r="",i=qg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ff(e,1,!1,null,null,n,!1,r,i),e[yn]=t.current,Ms(e.nodeType===8?e.parentNode:e),new Df(t)};yt.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=fv(t),e=e===null?null:e.stateNode,e};yt.flushSync=function(e){return Ar(e)};yt.hydrate=function(e,t,n){if(!Cl(t))throw Error($(200));return Sl(null,e,t,!0,n)};yt.hydrateRoot=function(e,t,n){if(!Nf(e))throw Error($(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=qg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Vg(t,null,e,1,n??null,i,!1,s,o),e[yn]=t.current,Ms(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 xl(t)};yt.render=function(e,t,n){if(!Cl(t))throw Error($(200));return Sl(null,e,t,!1,n)};yt.unmountComponentAtNode=function(e){if(!Cl(e))throw Error($(40));return e._reactRootContainer?(Ar(function(){Sl(null,null,e,!1,function(){e._reactRootContainer=null,e[yn]=null})}),!0):!1};yt.unstable_batchedUpdates=kf;yt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Cl(n))throw Error($(200));if(e==null||e._reactInternals===void 0)throw Error($(38));return Sl(e,t,n,!1,r)};yt.version="18.2.0-next-9e3b772b8-20220608";function Wg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wg)}catch(e){console.error(e)}}Wg(),Vm.exports=yt;var bl=Vm.exports,Qg={exports:{}},Yg={};/**
57
+ * @license React
58
+ * use-sync-external-store-shim.production.min.js
59
+ *
60
+ * Copyright (c) Facebook, Inc. and its affiliates.
61
+ *
62
+ * This source code is licensed under the MIT license found in the
63
+ * LICENSE file in the root directory of this source tree.
64
+ */var xi=C;function b5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _5=typeof Object.is=="function"?Object.is:b5,A5=xi.useState,k5=xi.useEffect,R5=xi.useLayoutEffect,O5=xi.useDebugValue;function P5(e,t){var n=t(),r=A5({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return R5(function(){i.value=n,i.getSnapshot=t,ju(i)&&s({inst:i})},[e,n,t]),k5(function(){return ju(i)&&s({inst:i}),e(function(){ju(i)&&s({inst:i})})},[e]),O5(n),n}function ju(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_5(e,n)}catch{return!0}}function F5(e,t){return t()}var T5=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?F5:P5;Yg.useSyncExternalStore=xi.useSyncExternalStore!==void 0?xi.useSyncExternalStore:T5;Qg.exports=Yg;var Gg=Qg.exports;const Zg=Gg.useSyncExternalStore,M0=C.createContext(void 0),Kg=C.createContext(!1);function Xg(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=M0),window.ReactQueryClientContext):M0)}const Mt=({context:e}={})=>{const t=C.useContext(Xg(e,C.useContext(Kg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},D5=({client:e,children:t,context:n,contextSharing:r=!1})=>{C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=Xg(n,r);return C.createElement(Kg.Provider,{value:!n&&r},C.createElement(i.Provider,{value:e},t))},Jg=C.createContext(!1),N5=()=>C.useContext(Jg);Jg.Provider;function M5(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const $5=C.createContext(M5()),I5=()=>C.useContext($5);function ey(e,t){return typeof e=="function"?e(...t):!!e}const L5=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},j5=e=>{C.useEffect(()=>{e.clearReset()},[e])},B5=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&ey(n,[e.error,r]),U5=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},z5=(e,t)=>e.isLoading&&e.isFetching&&!t,H5=(e,t,n)=>(e==null?void 0:e.suspense)&&z5(t,n),V5=(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 ty(e,t){const n=Mt({context:e.context}),r=N5(),i=I5(),s=n.defaultQueryOptions(e);s._optimisticResults=r?"isRestoring":"optimistic",s.onError&&(s.onError=Ee.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Ee.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Ee.batchCalls(s.onSettled)),U5(s),L5(s,i),j5(i);const[o]=C.useState(()=>new t(n,s)),l=o.getOptimisticResult(s);if(Zg(C.useCallback(a=>r?()=>{}:o.subscribe(Ee.batchCalls(a)),[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),C.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),H5(s,l,r))throw V5(s,o,i);if(B5({result:l,errorResetBoundary:i,useErrorBoundary:s.useErrorBoundary,query:o.getCurrentQuery()}))throw l.error;return s.notifyOnChangeProps?l:o.trackResult(l)}function Mf(e,t,n){const r=Vr(e,t,n);return ty(r,Hm)}function Jn(e,t,n){const r=sx(e,t,n),i=Mt({context:r.context}),[s]=C.useState(()=>new wx(i,r));C.useEffect(()=>{s.setOptions(r)},[s,r]);const o=Zg(C.useCallback(a=>s.subscribe(Ee.batchCalls(a)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),l=C.useCallback((a,u)=>{s.mutate(a,u).catch(q5)},[s]);if(o.error&&ey(s.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}function q5(){}function W5(e,t,n){const r=Vr(e,t,n);return ty(r,Ex)}function Q5(){return Mf({queryKey:["session"],queryFn:async()=>await ee.session().getSession(),suspense:!0})}function Y5({appCode:e}){return Mf({queryKey:["conf"],queryFn:async()=>await ee.conf().getConf(e),suspense:!0})}const ny=C.createContext(null);function G5({children:e,params:t}){var a;const n=t.app,r=Q5(),i=Y5({appCode:n}),s=(i==null?void 0:i.isSuccess)&&(r==null?void 0:r.isSuccess);C.useEffect(()=>{var d,f,h,m;const u=document.getElementById("theme"),c=document.getElementById("favicon");u.href=`${(f=(d=i==null?void 0:i.data)==null?void 0:d.theme)==null?void 0:f.bootstrapUrl}/theme.css`,c.href=`${(m=(h=i==null?void 0:i.data)==null?void 0:h.theme)==null?void 0:m.basePath}/img/illustrations/favicon.ico`},[i==null?void 0:i.data]),C.useEffect(()=>{var u,c;(c=document.querySelector("html"))==null||c.setAttribute("lang",((u=r==null?void 0:r.data)==null?void 0:u.currentLanguage)||"fr")},[r==null?void 0:r.data]);const[,o]=C.useState(!1);C.useEffect(()=>{(async()=>{var u;try{await ee.idiom().getIdiom((u=r==null?void 0:r.data)==null?void 0:u.currentLanguage,n)}catch(c){console.error(c)}finally{o(!0)}})()},[n,(a=r==null?void 0:r.data)==null?void 0:a.currentLanguage]);const l=C.useMemo(()=>{var u,c,d,f,h,m,y;return{appCode:n,applications:(u=i==null?void 0:i.data)==null?void 0:u.applications,confQuery:i,currentApp:(c=i==null?void 0:i.data)==null?void 0:c.currentApp,currentLanguage:(d=r==null?void 0:r.data)==null?void 0:d.currentLanguage,i18n:ee.idiom().translate,init:s,sessionQuery:r,theme:(f=i==null?void 0:i.data)==null?void 0:f.theme,user:(h=r==null?void 0:r.data)==null?void 0:h.user,userDescription:(m=r==null?void 0:r.data)==null?void 0:m.userDescription,userProfile:(y=r==null?void 0:r.data)==null?void 0:y.userProfile}},[n,i,s,r]);return p.createElement(ny.Provider,{value:l},e)}function Yt(){const e=C.useContext(ny);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function Z5(){var n;const{sessionQuery:e}=Yt(),t=new Set;return(n=e==null?void 0:e.data)==null?void 0:n.bookmarkedApps.filter(r=>{const i=t.has(r.displayName);return t.add(r.displayName),!i})}function ry(){const{theme:e}=Yt();return{...e}}function $f(){const{user:e,userDescription:t,userProfile:n}=Yt(),{basePath:r}=ry();function i(){let s=t==null?void 0:t.picture;return(!s||s==="no-avatar.jpg"||s==="no-avatar.svg")&&(s=`${r}/img/illustrations/no-avatar.svg`),s}return{user:{...e,type:n},avatar:i(),userDescription:t}}function K5(){const{user:e}=$f();return{workflows:{conversation:{view:ee.session().hasWorkflow({workflowName:"org.entcore.conversation.controllers.ConversationController|view",user:e})},community:{view:ee.session().hasWorkflow({workflowName:"net.atos.entng.community.controllers.CommunityController|view",user:e})},search:{view:ee.session().hasWorkflow({workflowName:"fr.openent.searchengine.controllers.SearchEngineController|view",user:e})},zimbra:{view:ee.session().hasWorkflow({workflowName:"fr.openent.zimbra.controllers.ZimbraController|view",user:e}),preauth:ee.session().hasWorkflow({workflowName:"fr.openent.zimbra.controllers.ZimbraController|preauth",user:e})}}}}const $0=["mousedown","touchstart"];function X5(e,t,n){const r=C.useRef();return C.useEffect(()=>{const i=s=>{const{target:o}=s??{};if(Array.isArray(n)){const l=(o==null?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&o.tagName!=="HTML";n.every(a=>!!a&&!s.composedPath().includes(a))&&!l&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||$0).forEach(s=>{document.addEventListener(s,i)}),()=>{(t||$0).forEach(s=>{document.removeEventListener(s,i)})}},[r,e,n,t]),r}let J5={data:""},eC=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||J5,tC=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,nC=/\/\*[^]*?\*\/| +/g,I0=/\n+/g,Fn=(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"?Fn(o,s):s+"{"+Fn(o,s[1]=="k"?"":t)+"}":typeof o=="object"?r+=Fn(o,t?t.replace(/([^,])+/g,l=>s.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,l):l?l+" "+a:a)):s):o!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Fn.p?Fn.p(s,o):s+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},un={},iy=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+iy(e[n]);return t}return e},rC=(e,t,n,r,i)=>{let s=iy(e),o=un[s]||(un[s]=(a=>{let u=0,c=11;for(;u<a.length;)c=101*c+a.charCodeAt(u++)>>>0;return"go"+c})(s));if(!un[o]){let a=s!==e?e:(u=>{let c,d,f=[{}];for(;c=tC.exec(u.replace(nC,""));)c[4]?f.shift():c[3]?(d=c[3].replace(I0," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][c[1]]=c[2].replace(I0," ").trim();return f[0]})(e);un[o]=Fn(i?{["@keyframes "+o]:a}:a,n?"":"."+o)}let l=n&&un.g?un.g:null;return n&&(un.g=un[o]),((a,u,c,d)=>{d?u.data=u.data.replace(d,a):u.data.indexOf(a)===-1&&(u.data=c?a+u.data:u.data+a)})(un[o],t,r,l),o},iC=(e,t,n)=>e.reduce((r,i,s)=>{let o=t[s];if(o&&o.call){let l=o(n),a=l&&l.props&&l.props.className||/^go/.test(l)&&l;o=a?"."+a:l&&typeof l=="object"?l.props?"":Fn(l,""):l===!1?"":l}return r+i+(o??"")},"");function _l(e){let t=this||{},n=e.call?e(t.p):e;return rC(n.unshift?n.raw?iC(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,eC(t.target),t.g,t.o,t.k)}let sy,od,ad;_l.bind({g:1});let xn=_l.bind({k:1});function sC(e,t,n,r){Fn.p=t,sy=e,od=n,ad=r}function er(e,t){let n=this||{};return function(){let r=arguments;function i(s,o){let l=Object.assign({},s),a=l.className||i.className;n.p=Object.assign({theme:od&&od()},l),n.o=/ *go\d+/.test(a),l.className=_l.apply(n,r)+(a?" "+a:""),t&&(l.ref=o);let u=e;return e[0]&&(u=l.as||e,delete l.as),ad&&u[0]&&ad(l),sy(u,l)}return t?t(i):i}}var oC=e=>typeof e=="function",Ya=(e,t)=>oC(e)?e(t):e,aC=(()=>{let e=0;return()=>(++e).toString()})(),oy=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),lC=20,fa=new Map,uC=1e3,L0=e=>{if(fa.has(e))return;let t=setTimeout(()=>{fa.delete(e),$r({type:4,toastId:e})},uC);fa.set(e,t)},cC=e=>{let t=fa.get(e);t&&clearTimeout(t)},ld=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,lC)};case 1:return t.toast.id&&cC(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)?ld(e,{type:1,toast:n}):ld(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?L0(r):e.toasts.forEach(s=>{L0(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}))}}},pa=[],ha={toasts:[],pausedAt:void 0},$r=e=>{ha=ld(ha,e),pa.forEach(t=>{t(ha)})},dC={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},fC=(e={})=>{let[t,n]=C.useState(ha);C.useEffect(()=>(pa.push(n),()=>{let i=pa.indexOf(n);i>-1&&pa.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)||dC[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},pC=(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)||aC()}),co=e=>(t,n)=>{let r=pC(t,e,n);return $r({type:2,toast:r}),r.id},dt=(e,t)=>co("blank")(e,t);dt.error=co("error");dt.success=co("success");dt.loading=co("loading");dt.custom=co("custom");dt.dismiss=e=>{$r({type:3,toastId:e})};dt.remove=e=>$r({type:4,toastId:e});dt.promise=(e,t,n)=>{let r=dt.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(dt.success(Ya(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{dt.error(Ya(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var hC=(e,t)=>{$r({type:1,toast:{id:e,height:t}})},mC=()=>{$r({type:5,time:Date.now()})},vC=e=>{let{toasts:t,pausedAt:n}=fC(e);C.useEffect(()=>{if(n)return;let s=Date.now(),o=t.map(l=>{if(l.duration===1/0)return;let a=(l.duration||0)+l.pauseDuration-(s-l.createdAt);if(a<0){l.visible&&dt.dismiss(l.id);return}return setTimeout(()=>dt.dismiss(l.id),a)});return()=>{o.forEach(l=>l&&clearTimeout(l))}},[t,n]);let r=C.useCallback(()=>{n&&$r({type:6,time:Date.now()})},[n]),i=C.useCallback((s,o)=>{let{reverseOrder:l=!1,gutter:a=8,defaultPosition:u}=o||{},c=t.filter(h=>(h.position||u)===(s.position||u)&&h.height),d=c.findIndex(h=>h.id===s.id),f=c.filter((h,m)=>m<d&&h.visible).length;return c.filter(h=>h.visible).slice(...l?[f+1]:[0,f]).reduce((h,m)=>h+(m.height||0)+a,0)},[t]);return{toasts:t,handlers:{updateHeight:hC,startPause:mC,endPause:r,calculateOffset:i}}},gC=xn`
65
+ from {
66
+ transform: scale(0) rotate(45deg);
67
+ opacity: 0;
68
+ }
69
+ to {
70
+ transform: scale(1) rotate(45deg);
71
+ opacity: 1;
72
+ }`,yC=xn`
73
+ from {
74
+ transform: scale(0);
75
+ opacity: 0;
76
+ }
77
+ to {
78
+ transform: scale(1);
79
+ opacity: 1;
80
+ }`,EC=xn`
81
+ from {
82
+ transform: scale(0) rotate(90deg);
83
+ opacity: 0;
84
+ }
85
+ to {
86
+ transform: scale(1) rotate(90deg);
87
+ opacity: 1;
88
+ }`,wC=er("div")`
89
+ width: 20px;
90
+ opacity: 0;
91
+ height: 20px;
92
+ border-radius: 10px;
93
+ background: ${e=>e.primary||"#ff4b4b"};
94
+ position: relative;
95
+ transform: rotate(45deg);
96
+
97
+ animation: ${gC} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
98
+ forwards;
99
+ animation-delay: 100ms;
100
+
101
+ &:after,
102
+ &:before {
103
+ content: '';
104
+ animation: ${yC} 0.15s ease-out forwards;
105
+ animation-delay: 150ms;
106
+ position: absolute;
107
+ border-radius: 3px;
108
+ opacity: 0;
109
+ background: ${e=>e.secondary||"#fff"};
110
+ bottom: 9px;
111
+ left: 4px;
112
+ height: 2px;
113
+ width: 12px;
114
+ }
115
+
116
+ &:before {
117
+ animation: ${EC} 0.15s ease-out forwards;
118
+ animation-delay: 180ms;
119
+ transform: rotate(90deg);
120
+ }
121
+ `,xC=xn`
122
+ from {
123
+ transform: rotate(0deg);
124
+ }
125
+ to {
126
+ transform: rotate(360deg);
127
+ }
128
+ `,CC=er("div")`
129
+ width: 12px;
130
+ height: 12px;
131
+ box-sizing: border-box;
132
+ border: 2px solid;
133
+ border-radius: 100%;
134
+ border-color: ${e=>e.secondary||"#e0e0e0"};
135
+ border-right-color: ${e=>e.primary||"#616161"};
136
+ animation: ${xC} 1s linear infinite;
137
+ `,SC=xn`
138
+ from {
139
+ transform: scale(0) rotate(45deg);
140
+ opacity: 0;
141
+ }
142
+ to {
143
+ transform: scale(1) rotate(45deg);
144
+ opacity: 1;
145
+ }`,bC=xn`
146
+ 0% {
147
+ height: 0;
148
+ width: 0;
149
+ opacity: 0;
150
+ }
151
+ 40% {
152
+ height: 0;
153
+ width: 6px;
154
+ opacity: 1;
155
+ }
156
+ 100% {
157
+ opacity: 1;
158
+ height: 10px;
159
+ }`,_C=er("div")`
160
+ width: 20px;
161
+ opacity: 0;
162
+ height: 20px;
163
+ border-radius: 10px;
164
+ background: ${e=>e.primary||"#61d345"};
165
+ position: relative;
166
+ transform: rotate(45deg);
167
+
168
+ animation: ${SC} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
169
+ forwards;
170
+ animation-delay: 100ms;
171
+ &:after {
172
+ content: '';
173
+ box-sizing: border-box;
174
+ animation: ${bC} 0.2s ease-out forwards;
175
+ opacity: 0;
176
+ animation-delay: 200ms;
177
+ position: absolute;
178
+ border-right: 2px solid;
179
+ border-bottom: 2px solid;
180
+ border-color: ${e=>e.secondary||"#fff"};
181
+ bottom: 6px;
182
+ left: 6px;
183
+ height: 10px;
184
+ width: 6px;
185
+ }
186
+ `,AC=er("div")`
187
+ position: absolute;
188
+ `,kC=er("div")`
189
+ position: relative;
190
+ display: flex;
191
+ justify-content: center;
192
+ align-items: center;
193
+ min-width: 20px;
194
+ min-height: 20px;
195
+ `,RC=xn`
196
+ from {
197
+ transform: scale(0.6);
198
+ opacity: 0.4;
199
+ }
200
+ to {
201
+ transform: scale(1);
202
+ opacity: 1;
203
+ }`,OC=er("div")`
204
+ position: relative;
205
+ transform: scale(0.6);
206
+ opacity: 0.4;
207
+ min-width: 20px;
208
+ animation: ${RC} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
209
+ forwards;
210
+ `,PC=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?C.createElement(OC,null,t):t:n==="blank"?null:C.createElement(kC,null,C.createElement(CC,{...r}),n!=="loading"&&C.createElement(AC,null,n==="error"?C.createElement(wC,{...r}):C.createElement(_C,{...r})))},FC=e=>`
211
+ 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
212
+ 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
213
+ `,TC=e=>`
214
+ 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
215
+ 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
216
+ `,DC="0%{opacity:0;} 100%{opacity:1;}",NC="0%{opacity:1;} 100%{opacity:0;}",MC=er("div")`
217
+ display: flex;
218
+ align-items: center;
219
+ background: #fff;
220
+ color: #363636;
221
+ line-height: 1.3;
222
+ will-change: transform;
223
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
224
+ max-width: 350px;
225
+ pointer-events: auto;
226
+ padding: 8px 10px;
227
+ border-radius: 8px;
228
+ `,$C=er("div")`
229
+ display: flex;
230
+ justify-content: center;
231
+ margin: 4px 10px;
232
+ color: inherit;
233
+ flex: 1 1 auto;
234
+ white-space: pre-line;
235
+ `,IC=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=oy()?[DC,NC]:[FC(n),TC(n)];return{animation:t?`${xn(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${xn(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},LC=C.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?IC(e.position||t||"top-center",e.visible):{opacity:0},s=C.createElement(PC,{toast:e}),o=C.createElement($C,{...e.ariaProps},Ya(e.message,e));return C.createElement(MC,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:s,message:o}):C.createElement(C.Fragment,null,s,o))});sC(C.createElement);var jC=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let s=C.useCallback(o=>{if(o){let l=()=>{let a=o.getBoundingClientRect().height;r(e,a)};l(),new MutationObserver(l).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return C.createElement("div",{ref:s,className:t,style:n},i)},BC=(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:oy()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},UC=_l`
236
+ z-index: 9999;
237
+ > * {
238
+ pointer-events: auto;
239
+ }
240
+ `,Uo=16,zC=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:s,containerClassName:o})=>{let{toasts:l,handlers:a}=vC(n);return C.createElement("div",{style:{position:"fixed",zIndex:9999,top:Uo,left:Uo,right:Uo,bottom:Uo,pointerEvents:"none",...s},className:o,onMouseEnter:a.startPause,onMouseLeave:a.endPause},l.map(u=>{let c=u.position||t,d=a.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),f=BC(c,d);return C.createElement(jC,{id:u.id,key:u.id,onHeightUpdate:a.updateHeight,className:u.visible?UC:"",style:f},u.type==="custom"?Ya(u.message,u):i?i(u):C.createElement(LC,{toast:u,position:c}))}))},Qi=dt;function HC(e){return{hotToast:{success:(t,n)=>Qi.custom(p.createElement(e,{type:"success",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12"},t),{duration:n==null?void 0:n.duration}),error:(t,n)=>Qi.custom(p.createElement(e,{type:"danger",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12"},t),{duration:n==null?void 0:n.duration}),info:(t,n)=>Qi.custom(p.createElement(e,{type:"info",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12"},t),{duration:n==null?void 0:n.duration}),warning:(t,n)=>Qi.custom(p.createElement(e,{type:"warning",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12"},t),{duration:n==null?void 0:n.duration}),loading:Qi.loading}}}function j0(){const[e,t]=C.useState(!1),n=C.useRef(null),r=()=>{t(!0)},i=()=>{t(!1)};return C.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,e]}function VC({src:e,placeholder:t}){const[n,r]=C.useState(e||t),i=C.useCallback(()=>{r(t)},[t]);return C.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:i}}function qC(e,t){const n=C.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);C.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function WC(){const e=typeof document<"u",[t,n]=C.useState(()=>document.title);return C.useEffect(()=>{e&&n(document.title)},[e]),t}function QC(e=!1){const[t,n]=C.useState(e),r=C.useCallback(()=>{n(i=>!i)},[]);return[t,r]}function YC(){const e=C.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return C.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=l=>{l.key==="Tab"&&(l.shiftKey?document.activeElement===r&&(s.focus(),l.preventDefault()):document.activeElement===s&&(r.focus(),l.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function GC({user:e,avatar:t}){const n=C.useRef(null),r=WC(),[i,s]=C.useState(!0),[o,l]=j0(),[a,u]=j0(),c=C.useId(),d=C.useId(),[f,h]=C.useState(0),m=t,y=e==null?void 0:e.username,x=`Bonjour ${e==null?void 0:e.username}, bienvenue!`,g=Z5(),{workflows:{conversation:v,zimbra:E,community:w,search:b}}=K5(),S=w.view,_=b.view,A=v.view,D=E.view,P=E.preauth,[V,U]=C.useState(""),I=C.useCallback(async()=>{if(D)try{const k=await ee.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});k.status!==200&&h(0),h(k.count)}catch{console.error("error"),h(0)}else try{const k=await ee.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});h(k.count)}catch{console.error("error"),h(0)}},[D]),R=C.useCallback(()=>{let k="";ee.http().get("/userbook/preference/zimbra").then(F=>{try{F.preference&&JSON.parse(F.preference).modeExpert&&P?k="/zimbra/preauth":k=window.location.origin+"/zimbra/zimbra"}catch{k="/zimbra/zimbra"}}),U(k)},[P]);C.useEffect(()=>{(async()=>{try{await I()}catch(k){console.error(k)}})(),R()},[R,I]);function O(){if(n.current){const k=n.current.value;window.location.href=`/searchengine#/${k}`}}const B=C.useCallback(()=>{s(!i)},[i]),T=async()=>{await ee.session().logout(),window.location.href="/auth/login"};return C.useMemo(()=>({inputRef:n,conversation:v,zimbra:E,community:w,title:r,bookmarkedApps:g,appsRef:o,isAppsHovered:l,popoverAppsId:c,searchRef:a,isSearchHovered:u,popoverSearchId:d,messages:f,userAvatar:m,userName:y,welcomeUser:x,communityWorkflow:S,conversationWorflow:A,zimbraWorkflow:D,searchWorkflow:_,isCollapsed:i,msgLink:V,redirectToSearch:O,toggleCollapsedNav:B,handleLogout:T}),[o,g,w,S,v,A,l,i,u,f,V,c,d,a,_,r,B,m,y,x,E,D])}function Ir(){const{i18n:e}=Yt();return{i18n:e}}function If(){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(l){let a="";switch(a=(l==null?void 0:l.icon)!==void 0?l==null?void 0:l.icon.trim().toLowerCase():"placeholder",a&&a.length>0?a.endsWith("-large")&&(a=a.replace("-large","")):a=(l==null?void 0:l.displayName)!==void 0?l==null?void 0:l.displayName.trim().toLowerCase():"",a){case"admin.title":a="admin";break;case"banques des savoirs":a="banquesavoir";break;case"collaborativewall":a="collaborative-wall";break;case"communautés":a="community";break;case"directory.user":a="userbook";break;case"emploi du temps":a="edt";break;case"messagerie":a="conversation";break;case"news":a="actualites";break;case"homeworks":case"cahier de texte":a="cahier-de-texte";break;case"diary":case"cahier de texte 2d":a="cahier-textes";break}return a}function n(l){return l&&(l.startsWith("/")||l.startsWith("http://")||l.startsWith("https://"))}function r(l){const a=t(l);return a?`color-app-${a}`:"color-app-placeholder"}function i(l){const a=t(l);return a?`bg-app-${a}`:"bg-app-placeholder"}function s(l){const a=t(l);return a?`bg-light-${a}`:"bg-light-placeholder"}function o(l){return e[l.platformConf.name]}return{getIconClass:r,getBackgroundIconClass:i,getBackgroundLightIconClass:s,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}const ZC=function(){return null};var ay,B0=bl;ay=B0.createRoot,B0.hydrateRoot;function ly(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=ly(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function K(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ly(e))&&(r&&(r+=" "),r+=t);return r}function uy({children:e,className:t,...n}){const r=K("container-fluid",t);return p.createElement("main",{className:r,...n},e)}uy.displayName="Main";const cy=C.forwardRef(({children:e},t)=>p.createElement("div",{ref:t,className:"actionbar"},e));cy.displayName="ActionBar";const KC=cy,XC=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"}),p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),JC=XC,eS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",fill:"currentColor"}),p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),tS=eS,nS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",fill:"currentColor"}),p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),z8=nS,rS=({title:e,titleId:t,...n})=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("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"})),H8=rS,iS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),sS=iS,oS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"}),p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),V8=oS,aS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),q8=aS,lS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),uS=lS,cS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"}),p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),W8=cS,dS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),fS=dS,pS=({title:e,titleId:t,...n})=>p.createElement("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},e?p.createElement("title",{id:t},e):null,p.createElement("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"})),hS=pS,mS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),vS=mS,gS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),yS=gS,ES=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"}),p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),wS=ES,xS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),CS=xS,SS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),p.createElement("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),p.createElement("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})),bS=SS,_S=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),AS=_S,kS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),ud=kS,RS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),U0=RS,OS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),Q8=OS,PS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),Y8=PS,FS=({title:e,titleId:t,...n})=>p.createElement("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},e?p.createElement("title",{id:t},e):null,p.createElement("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"})),TS=FS,DS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"}),p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),NS=DS,MS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("g",{clipPath:"url(#users_svg__a)",fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor"},p.createElement("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"})),p.createElement("defs",null,p.createElement("clipPath",{id:"users_svg__a"},p.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),$S=MS,dy=C.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:i=!1,isToast:s=!1,autoClose:o=!1,autoCloseDelay:l=3e3,onClose:a,onVisibilityChange:u},c)=>{const[d,f]=C.useState(!0),h=C.useRef(null),m=C.useCallback(()=>{f(!1),a==null||a()},[a]);C.useImperativeHandle(c,()=>({show:y,hide:m,...h.current})),C.useLayoutEffect(()=>{u==null||u(d)},[d,u]),C.useEffect(()=>{o&&d&&setTimeout(()=>{m()},l)},[o,l,m,d]);const y=()=>{f(!0)},x={success:{icon:p.createElement(NS,null),classModifier:"alert-success"},warning:{icon:p.createElement(JC,null),classModifier:"alert-warning"},info:{icon:p.createElement(wS,null),classModifier:"alert-info"},danger:{icon:p.createElement(fS,null),classModifier:"alert-danger"}},g={"is-dismissible":i,"is-toast ":s},v=K("alert gap-12",x[e].classModifier,g,t);return p.createElement(p.Fragment,null,d?p.createElement("div",{ref:h,className:v,role:"alert"},x[e].icon,p.createElement("div",{className:"alert-content small"},n),r&&p.createElement("div",{className:"ms-12"},r),i&&p.createElement("div",{className:"btn-close-container"},p.createElement("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:m})),o&&p.createElement("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})):null)});dy.displayName="Alert";const IS=dy,fy=C.createContext({code:"placeholder",displayName:"Application",headingStyle:"h3",icon:"",isHeading:!1,level:"h1",bgCode:""});function LS(){const e=C.useContext(fy);if(!e)throw new Error("AppCard compound components cannot be rendered outside the AppCard component");return e}const py=C.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...i},s)=>{const o=K(t,r);return p.createElement(e,{ref:s,className:o,...i},n)});py.displayName="Heading";const jS=py,hy=()=>{const{isHeading:e,level:t,headingStyle:n,displayName:r}=LS();return e?p.createElement(jS,{level:t,headingStyle:n},r):p.createElement("p",null,r)};hy.displayName="AppCard.Name";const BS=hy,my=C.forwardRef(({app:e,as:t,children:n,headingStyle:r,isHeading:i=!1,level:s,className:o,...l},a)=>{const{getIconClass:u,getBackgroundLightIconClass:c,getIconCode:d}=If(),{name:f,icon:h}=e,m=f||"Application",y=K("application application-react application-title",u(e),o),x=C.useMemo(()=>({icon:h,displayName:m,isHeading:i,level:s,headingStyle:r,code:d(e),bgCode:c(e)}),[e,m,c,d,r,h,i,s]),g=t||"div";return p.createElement(fy.Provider,{value:x},p.createElement(g,{ref:a,className:y,...l},n))}),US=Object.assign(my,{Name:BS});my.displayName="AppCard";const z0=US,vy=C.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:i,className:s,...o},l)=>{const a=n??"/assets/themes/ode-bootstrap/images/image-placeholder.png",{imgSrc:u,onError:c}=VC({src:e,placeholder:a}),d={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},f={"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"},h=K({...d}),m=K({...f},s),y=p.createElement("img",{alt:t,onError:c,ref:l,src:u,className:m,...o});return r?p.createElement("div",{className:h},y):y});vy.displayName="Image";const Lf=vy,gy=C.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},i)=>{const{isIconUrl:s,getIconCode:o}=If(),l=r==="square",a=r==="rounded",u=r==="circle",c=n==="contain",d=n==="ratio",f={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},h={square:l,rounded:a,"rounded-circle":u},m={"icon-contain":c,"icon-ratio":d},y=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",x=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",g=e?o(e):"",v=s(y),E=g||"placeholder",w=K("app-icon",{...f,...h,...m,[`bg-light-${E}`]:E&&!c,[`color-app-${E}`]:E});return v?p.createElement(Lf,{src:y,alt:x,objectFit:"contain",width:t,height:t,className:"h-full"}):p.createElement("div",{className:w,style:{width:t+"px",height:t+"px"}},p.createElement("svg",{ref:i,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},p.createElement("use",{xlinkHref:`/assets/themes/ode-bootstrap/icons/apps.svg#${E}`})))});gy.displayName="AppIcon";const jf=gy,yy=C.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:i,className:s,...o},l)=>{const a=i||"/assets/themes/ode-bootstrap/images/no-avatar.svg",u=K("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 p.createElement("div",{ref:l,className:u},p.createElement(Lf,{src:r||a,alt:n,imgPlaceholder:a,...o}))});yy.displayName="Avatar";const cd=yy,Ey=C.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:i="left",children:s,...o}=e,l=()=>{let u;return r?u=r:u=p.createElement(CS,{...o,"aria-label":"Loading"}),u},a=K("loading",{"is-loading":n});return p.createElement("div",{className:a,role:"status",ref:t},(!i||i==="left")&&l(),s,i==="right"&&l())});Ey.displayName="Loading";const zS=Ey,wy=C.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:i,loadingIcon:s,loadingPosition:o,leftIcon:l,rightIcon:a,className:u,variant:c="filled",...d},f)=>{const h=K("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 p.createElement("button",{ref:f,className:h,type:t,...d},i?p.createElement(zS,{isLoading:!0,loadingIcon:s,loadingPosition:o},r):p.createElement("span",null,l,r,a))});wy.displayName="Button";const fo=wy,xy=C.forwardRef(({icon:e,className:t,...n},r)=>{const i={...n,className:K("btn-icon btn-sm",t)};return p.createElement(fo,{ref:r,...i},e)});xy.displayName="IconButton";const Bf=xy,Cy=C.forwardRef(({icon:e=p.createElement(TS,null),onClick:t,...n},r)=>{const i=K("btn-search btn-sm");return p.createElement(Bf,{ref:r,className:i,icon:e,...n,onClick:t})});Cy.displayName="SearchButton";const HS=Cy,VS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{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",fill:"currentColor"})),qS=VS,WS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{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",fill:"currentColor"})),H0=WS,QS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{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",fill:"currentColor"})),YS=QS,GS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{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",fill:"currentColor"})),V0=GS,ZS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),KS=ZS,XS=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{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",fill:"currentColor"})),q0=XS,JS=({title:e,titleId:t,...n})=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("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"})),eb=JS,tb=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{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",fill:"currentColor"})),nb=tb,rb=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{fillRule:"evenodd",clipRule:"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",fill:"currentColor"})),ib=rb,sb=({title:e,titleId:t,...n})=>p.createElement("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},e?p.createElement("title",{id:t},e):null,p.createElement("g",{clipPath:"url(#one-profile_svg__a)"},p.createElement("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"})),p.createElement("defs",null,p.createElement("clipPath",{id:"one-profile_svg__a"},p.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),Sy=sb,ob=({title:e,titleId:t,...n})=>p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{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",fill:"currentColor"})),ab=ob,lb=({title:e,titleId:t,...n})=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n},e?p.createElement("title",{id:t},e):null,p.createElement("path",{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",fill:"currentColor"})),ub=lb;var W0=function(t){return t.reduce(function(n,r){var i=r[0],s=r[1];return n[i]=s,n},{})},Q0=typeof window<"u"&&window.document&&window.document.createElement?C.useLayoutEffect:C.useEffect,it="top",Dt="bottom",Nt="right",st="left",Uf="auto",po=[it,Dt,Nt,st],Ci="start",Vs="end",cb="clippingParents",by="viewport",Yi="popper",db="reference",Y0=po.reduce(function(e,t){return e.concat([t+"-"+Ci,t+"-"+Vs])},[]),_y=[].concat(po,[Uf]).reduce(function(e,t){return e.concat([t,t+"-"+Ci,t+"-"+Vs])},[]),fb="beforeRead",pb="read",hb="afterRead",mb="beforeMain",vb="main",gb="afterMain",yb="beforeWrite",Eb="write",wb="afterWrite",xb=[fb,pb,hb,mb,vb,gb,yb,Eb,wb];function rn(e){return e?(e.nodeName||"").toLowerCase():null}function vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function kr(e){var t=vt(e).Element;return e instanceof t||e instanceof Element}function Pt(e){var t=vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function zf(e){if(typeof ShadowRoot>"u")return!1;var t=vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Cb(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];!Pt(s)||!rn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var l=i[o];l===!1?s.removeAttribute(o):s.setAttribute(o,l===!0?"":l)}))})}function Sb(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]),l=o.reduce(function(a,u){return a[u]="",a},{});!Pt(i)||!rn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(a){i.removeAttribute(a)}))})}}const bb={name:"applyStyles",enabled:!0,phase:"write",fn:Cb,effect:Sb,requires:["computeStyles"]};function nn(e){return e.split("-")[0]}var wr=Math.max,Ga=Math.min,Si=Math.round;function dd(){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 Ay(){return!/^((?!chrome|android).)*safari/i.test(dd())}function bi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&Pt(e)&&(i=e.offsetWidth>0&&Si(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Si(r.height)/e.offsetHeight||1);var o=kr(e)?vt(e):window,l=o.visualViewport,a=!Ay()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/i,c=(r.top+(a&&l?l.offsetTop:0))/s,d=r.width/i,f=r.height/s;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function Hf(e){var t=bi(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 ky(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&zf(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 vt(e).getComputedStyle(e)}function _b(e){return["table","td","th"].indexOf(rn(e))>=0}function tr(e){return((kr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Al(e){return rn(e)==="html"?e:e.assignedSlot||e.parentNode||(zf(e)?e.host:null)||tr(e)}function G0(e){return!Pt(e)||Cn(e).position==="fixed"?null:e.offsetParent}function Ab(e){var t=/firefox/i.test(dd()),n=/Trident/i.test(dd());if(n&&Pt(e)){var r=Cn(e);if(r.position==="fixed")return null}var i=Al(e);for(zf(i)&&(i=i.host);Pt(i)&&["html","body"].indexOf(rn(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 ho(e){for(var t=vt(e),n=G0(e);n&&_b(n)&&Cn(n).position==="static";)n=G0(n);return n&&(rn(n)==="html"||rn(n)==="body"&&Cn(n).position==="static")?t:n||Ab(e)||t}function Vf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vs(e,t,n){return wr(e,Ga(t,n))}function kb(e,t,n){var r=vs(e,t,n);return r>n?n:r}function Ry(){return{top:0,right:0,bottom:0,left:0}}function Oy(e){return Object.assign({},Ry(),e)}function Py(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Rb=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Oy(typeof t!="number"?t:Py(t,po))};function Ob(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,l=nn(n.placement),a=Vf(l),u=[st,Nt].indexOf(l)>=0,c=u?"height":"width";if(!(!s||!o)){var d=Rb(i.padding,n),f=Hf(s),h=a==="y"?it:st,m=a==="y"?Dt:Nt,y=n.rects.reference[c]+n.rects.reference[a]-o[a]-n.rects.popper[c],x=o[a]-n.rects.reference[a],g=ho(s),v=g?a==="y"?g.clientHeight||0:g.clientWidth||0:0,E=y/2-x/2,w=d[h],b=v-f[c]-d[m],S=v/2-f[c]/2+E,_=vs(w,S,b),A=a;n.modifiersData[r]=(t={},t[A]=_,t.centerOffset=_-S,t)}}function Pb(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)||ky(t.elements.popper,i)&&(t.elements.arrow=i))}const Fb={name:"arrow",enabled:!0,phase:"main",fn:Ob,effect:Pb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _i(e){return e.split("-")[1]}var Tb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Db(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Si(n*i)/i||0,y:Si(r*i)/i||0}}function Z0(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,l=e.position,a=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=o.x,h=f===void 0?0:f,m=o.y,y=m===void 0?0:m,x=typeof c=="function"?c({x:h,y}):{x:h,y};h=x.x,y=x.y;var g=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),E=st,w=it,b=window;if(u){var S=ho(n),_="clientHeight",A="clientWidth";if(S===vt(n)&&(S=tr(n),Cn(S).position!=="static"&&l==="absolute"&&(_="scrollHeight",A="scrollWidth")),S=S,i===it||(i===st||i===Nt)&&s===Vs){w=Dt;var D=d&&S===b&&b.visualViewport?b.visualViewport.height:S[_];y-=D-r.height,y*=a?1:-1}if(i===st||(i===it||i===Dt)&&s===Vs){E=Nt;var P=d&&S===b&&b.visualViewport?b.visualViewport.width:S[A];h-=P-r.width,h*=a?1:-1}}var V=Object.assign({position:l},u&&Tb),U=c===!0?Db({x:h,y},vt(n)):{x:h,y};if(h=U.x,y=U.y,a){var I;return Object.assign({},V,(I={},I[w]=v?"0":"",I[E]=g?"0":"",I.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",I))}return Object.assign({},V,(t={},t[w]=v?y+"px":"",t[E]=g?h+"px":"",t.transform="",t))}function Nb(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,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:nn(t.placement),variation:_i(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,Z0(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Z0(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Mb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nb,data:{}};var zo={passive:!0};function $b(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,l=o===void 0?!0:o,a=vt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",n.update,zo)}),l&&a.addEventListener("resize",n.update,zo),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",n.update,zo)}),l&&a.removeEventListener("resize",n.update,zo)}}const Ib={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$b,data:{}};var Lb={left:"right",right:"left",bottom:"top",top:"bottom"};function ma(e){return e.replace(/left|right|bottom|top/g,function(t){return Lb[t]})}var jb={start:"end",end:"start"};function K0(e){return e.replace(/start|end/g,function(t){return jb[t]})}function qf(e){var t=vt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Wf(e){return bi(tr(e)).left+qf(e).scrollLeft}function Bb(e,t){var n=vt(e),r=tr(e),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,l=0,a=0;if(i){s=i.width,o=i.height;var u=Ay();(u||!u&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:s,height:o,x:l+Wf(e),y:a}}function Ub(e){var t,n=tr(e),r=qf(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=wr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=wr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Wf(e),a=-r.scrollTop;return Cn(i||n).direction==="rtl"&&(l+=wr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:l,y:a}}function Qf(e){var t=Cn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Fy(e){return["html","body","#document"].indexOf(rn(e))>=0?e.ownerDocument.body:Pt(e)&&Qf(e)?e:Fy(Al(e))}function gs(e,t){var n;t===void 0&&(t=[]);var r=Fy(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=vt(r),o=i?[s].concat(s.visualViewport||[],Qf(r)?r:[]):r,l=t.concat(o);return i?l:l.concat(gs(Al(o)))}function fd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zb(e,t){var n=bi(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 X0(e,t,n){return t===by?fd(Bb(e,n)):kr(t)?zb(t,n):fd(Ub(tr(e)))}function Hb(e){var t=gs(Al(e)),n=["absolute","fixed"].indexOf(Cn(e).position)>=0,r=n&&Pt(e)?ho(e):e;return kr(r)?t.filter(function(i){return kr(i)&&ky(i,r)&&rn(i)!=="body"}):[]}function Vb(e,t,n,r){var i=t==="clippingParents"?Hb(e):[].concat(t),s=[].concat(i,[n]),o=s[0],l=s.reduce(function(a,u){var c=X0(e,u,r);return a.top=wr(c.top,a.top),a.right=Ga(c.right,a.right),a.bottom=Ga(c.bottom,a.bottom),a.left=wr(c.left,a.left),a},X0(e,o,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ty(e){var t=e.reference,n=e.element,r=e.placement,i=r?nn(r):null,s=r?_i(r):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(i){case it:a={x:o,y:t.y-n.height};break;case Dt:a={x:o,y:t.y+t.height};break;case Nt:a={x:t.x+t.width,y:l};break;case st:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var u=i?Vf(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case Ci:a[u]=a[u]-(t[c]/2-n[c]/2);break;case Vs:a[u]=a[u]+(t[c]/2-n[c]/2);break}}return a}function qs(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,l=n.boundary,a=l===void 0?cb:l,u=n.rootBoundary,c=u===void 0?by:u,d=n.elementContext,f=d===void 0?Yi:d,h=n.altBoundary,m=h===void 0?!1:h,y=n.padding,x=y===void 0?0:y,g=Oy(typeof x!="number"?x:Py(x,po)),v=f===Yi?db:Yi,E=e.rects.popper,w=e.elements[m?v:f],b=Vb(kr(w)?w:w.contextElement||tr(e.elements.popper),a,c,o),S=bi(e.elements.reference),_=Ty({reference:S,element:E,strategy:"absolute",placement:i}),A=fd(Object.assign({},E,_)),D=f===Yi?A:S,P={top:b.top-D.top+g.top,bottom:D.bottom-b.bottom+g.bottom,left:b.left-D.left+g.left,right:D.right-b.right+g.right},V=e.modifiersData.offset;if(f===Yi&&V){var U=V[i];Object.keys(P).forEach(function(I){var R=[Nt,Dt].indexOf(I)>=0?1:-1,O=[it,Dt].indexOf(I)>=0?"y":"x";P[I]+=U[O]*R})}return P}function qb(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?_y:a,c=_i(r),d=c?l?Y0:Y0.filter(function(m){return _i(m)===c}):po,f=d.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=d);var h=f.reduce(function(m,y){return m[y]=qs(e,{placement:y,boundary:i,rootBoundary:s,padding:o})[nn(y)],m},{});return Object.keys(h).sort(function(m,y){return h[m]-h[y]})}function Wb(e){if(nn(e)===Uf)return[];var t=ma(e);return[K0(e),t,K0(t)]}function Qb(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,l=o===void 0?!0:o,a=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,y=n.allowedAutoPlacements,x=t.options.placement,g=nn(x),v=g===x,E=a||(v||!m?[ma(x)]:Wb(x)),w=[x].concat(E).reduce(function(ae,J){return ae.concat(nn(J)===Uf?qb(t,{placement:J,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:y}):J)},[]),b=t.rects.reference,S=t.rects.popper,_=new Map,A=!0,D=w[0],P=0;P<w.length;P++){var V=w[P],U=nn(V),I=_i(V)===Ci,R=[it,Dt].indexOf(U)>=0,O=R?"width":"height",B=qs(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),T=R?I?Nt:st:I?Dt:it;b[O]>S[O]&&(T=ma(T));var k=ma(T),F=[];if(s&&F.push(B[U]<=0),l&&F.push(B[T]<=0,B[k]<=0),F.every(function(ae){return ae})){D=V,A=!1;break}_.set(V,F)}if(A)for(var j=m?3:1,W=function(J){var le=w.find(function(Z){var fe=_.get(Z);if(fe)return fe.slice(0,J).every(function(re){return re})});if(le)return D=le,"break"},q=j;q>0;q--){var ie=W(q);if(ie==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const Yb={name:"flip",enabled:!0,phase:"main",fn:Qb,requiresIfExists:["offset"],data:{_skip:!1}};function J0(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 e1(e){return[it,Nt,Dt,st].some(function(t){return e[t]>=0})}function Gb(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=qs(t,{elementContext:"reference"}),l=qs(t,{altBoundary:!0}),a=J0(o,r),u=J0(l,i,s),c=e1(a),d=e1(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Zb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Gb};function Kb(e,t,n){var r=nn(e),i=[st,it].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],l=s[1];return o=o||0,l=(l||0)*i,[st,Nt].indexOf(r)>=0?{x:l,y:o}:{x:o,y:l}}function Xb(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=_y.reduce(function(c,d){return c[d]=Kb(d,t.rects,s),c},{}),l=o[t.placement],a=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const Jb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xb};function e_(e){var t=e.state,n=e.name;t.modifiersData[n]=Ty({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const t_={name:"popperOffsets",enabled:!0,phase:"read",fn:e_,data:{}};function n_(e){return e==="x"?"y":"x"}function r_(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!1:o,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,y=m===void 0?0:m,x=qs(t,{boundary:a,rootBoundary:u,padding:d,altBoundary:c}),g=nn(t.placement),v=_i(t.placement),E=!v,w=Vf(g),b=n_(w),S=t.modifiersData.popperOffsets,_=t.rects.reference,A=t.rects.popper,D=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(S){if(s){var I,R=w==="y"?it:st,O=w==="y"?Dt:Nt,B=w==="y"?"height":"width",T=S[w],k=T+x[R],F=T-x[O],j=h?-A[B]/2:0,W=v===Ci?_[B]:A[B],q=v===Ci?-A[B]:-_[B],ie=t.elements.arrow,ae=h&&ie?Hf(ie):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ry(),le=J[R],Z=J[O],fe=vs(0,_[B],ae[B]),re=E?_[B]/2-j-fe-le-P.mainAxis:W-fe-le-P.mainAxis,Pe=E?-_[B]/2+j+fe+Z+P.mainAxis:q+fe+Z+P.mainAxis,xt=t.elements.arrow&&ho(t.elements.arrow),Lr=xt?w==="y"?xt.clientTop||0:xt.clientLeft||0:0,bp=(I=V==null?void 0:V[w])!=null?I:0,gE=T+re-bp-Lr,yE=T+Pe-bp,_p=vs(h?Ga(k,gE):k,T,h?wr(F,yE):F);S[w]=_p,U[w]=_p-T}if(l){var Ap,EE=w==="x"?it:st,wE=w==="x"?Dt:Nt,sr=S[b],Co=b==="y"?"height":"width",kp=sr+x[EE],Rp=sr-x[wE],Ql=[it,st].indexOf(g)!==-1,Op=(Ap=V==null?void 0:V[b])!=null?Ap:0,Pp=Ql?kp:sr-_[Co]-A[Co]-Op+P.altAxis,Fp=Ql?sr+_[Co]+A[Co]-Op-P.altAxis:Rp,Tp=h&&Ql?kb(Pp,sr,Fp):vs(h?Pp:kp,sr,h?Fp:Rp);S[b]=Tp,U[b]=Tp-sr}t.modifiersData[r]=U}}const i_={name:"preventOverflow",enabled:!0,phase:"main",fn:r_,requiresIfExists:["offset"]};function s_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function o_(e){return e===vt(e)||!Pt(e)?qf(e):s_(e)}function a_(e){var t=e.getBoundingClientRect(),n=Si(t.width)/e.offsetWidth||1,r=Si(t.height)/e.offsetHeight||1;return n!==1||r!==1}function l_(e,t,n){n===void 0&&(n=!1);var r=Pt(t),i=Pt(t)&&a_(t),s=tr(t),o=bi(e,i,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((rn(t)!=="body"||Qf(s))&&(l=o_(t)),Pt(t)?(a=bi(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=Wf(s))),{x:o.left+l.scrollLeft-a.x,y:o.top+l.scrollTop-a.y,width:o.width,height:o.height}}function u_(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(l){if(!n.has(l)){var a=t.get(l);a&&i(a)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function c_(e){var t=u_(e);return xb.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function d_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function f_(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 t1={placement:"bottom",modifiers:[],strategy:"absolute"};function n1(){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 p_(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?t1:i;return function(l,a,u){u===void 0&&(u=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},t1,s),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},d=[],f=!1,h={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:kr(l)?gs(l):l.contextElement?gs(l.contextElement):[],popper:gs(a)};var E=c_(f_([].concat(r,c.options.modifiers)));return c.orderedModifiers=E.filter(function(w){return w.enabled}),m(),h.update()},forceUpdate:function(){if(!f){var g=c.elements,v=g.reference,E=g.popper;if(n1(v,E)){c.rects={reference:l_(v,ho(E),c.options.strategy==="fixed"),popper:Hf(E)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var b=c.orderedModifiers[w],S=b.fn,_=b.options,A=_===void 0?{}:_,D=b.name;typeof S=="function"&&(c=S({state:c,options:A,name:D,instance:h})||c)}}}},update:d_(function(){return new Promise(function(x){h.forceUpdate(),x(c)})}),destroy:function(){y(),f=!0}};if(!n1(l,a))return h;h.setOptions(u).then(function(x){!f&&u.onFirstUpdate&&u.onFirstUpdate(x)});function m(){c.orderedModifiers.forEach(function(x){var g=x.name,v=x.options,E=v===void 0?{}:v,w=x.effect;if(typeof w=="function"){var b=w({state:c,name:g,instance:h,options:E}),S=function(){};d.push(b||S)}})}function y(){d.forEach(function(x){return x()}),d=[]}return h}}var h_=[Ib,t_,Mb,bb,Jb,Yb,i_,Fb,Zb],m_=p_({defaultModifiers:h_}),v_=typeof Element<"u",g_=typeof Map=="function",y_=typeof Set=="function",E_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function va(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(!va(e[r],t[r]))return!1;return!0}var s;if(g_&&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(!va(r.value[1],t.get(r.value[0])))return!1;return!0}if(y_&&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(E_&&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(v_&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!va(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var w_=function(t,n){try{return va(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 x_=Ri(w_);var C_=[],S_=function(t,n,r){r===void 0&&(r={});var i=C.useRef(null),s={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||C_},o=C.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=o[0],a=o[1],u=C.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var m=h.state,y=Object.keys(m.elements);bl.flushSync(function(){a({styles:W0(y.map(function(x){return[x,m.styles[x]||{}]})),attributes:W0(y.map(function(x){return[x,m.attributes[x]]}))})})},requires:["computeStyles"]}},[]),c=C.useMemo(function(){var f={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[u,{name:"applyStyles",enabled:!1}])};return x_(i.current,f)?i.current||f:(i.current=f,f)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,u]),d=C.useRef();return Q0(function(){d.current&&d.current.setOptions(c)},[c]),Q0(function(){if(!(t==null||n==null)){var f=r.createPopper||m_,h=f(t,n,c);return d.current=h,function(){h.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:l.styles,attributes:l.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};const b_=({children:e,message:t,icon:n=null,placement:r="auto"})=>{const[i,s]=C.useState(null),[o,l]=C.useState(null),[a,u]=C.useState(null),{styles:c,attributes:d}=S_(i,o,{placement:r,modifiers:[{name:"arrow",options:{element:a}}]}),[f,h]=C.useState(!1);return p.createElement(p.Fragment,null,p.createElement("div",{className:"d-inline-block position-relative z-2",ref:s,onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)}},e),f&&p.createElement("div",{className:K("tooltip d-block show","bs-tooltip-auto"),ref:l,style:c.popper,...d.popper},p.createElement("div",{className:"tooltip-inner shadow-hover d-flex gap-8 align-items-center"},n&&n,p.createElement("div",null,t)),p.createElement("div",{className:"tooltip-arrow",ref:u,style:c.arrow})))},r1=b_,Dy=C.forwardRef(({app:e,className:t,creatorName:n="tom.mate",isAnimated:r=!1,isFolder:i=!1,isLoading:s=!1,isSelected:o=!1,isShared:l=!1,isPublic:a=!1,name:u="Resource",resourceSrc:c="",updatedAt:d="2 days ago",userSrc:f="",onOpen:h,onSelect:m,messagePublic:y,messageShared:x,...g},v)=>{const{getIconCode:E}=If(),w=K("card",{"placeholder-glow":s,"is-selected":o,"is-animated":r},t),b=K("card-title body text-break text-truncate text-truncate--2 pe-16",{placeholder:s}),S=K("card-text small",{placeholder:s}),_=K("small text-truncate",{placeholder:s}),A=K("d-inline-flex align-items-center gap-8 text-truncate",{placeholder:s}),D=e?E(e):"placeholder",P=K(`color-app-${D}`,{placeholder:s});function V(R){R.stopPropagation(),m==null||m()}const U=i?p.createElement(hS,{width:"48",height:"48",className:P}):c?p.createElement("div",{className:"card-image"},p.createElement(Lf,{alt:"",src:c,width:"80",height:"80",objectFit:"cover",className:"h-full"})):p.createElement(jf,{app:e,iconFit:"ratio",size:"80",variant:"rounded"}),I=f?p.createElement(cd,{alt:n,size:"xs",src:f,variant:"circle",width:"24",height:"24"}):p.createElement(Sy,null);return p.createElement("div",{ref:v,className:w,...g},!s&&p.createElement(Bf,{"aria-label":"Open Action Bar",className:"z-3",color:"secondary",icon:p.createElement(bS,null),onClick:V,variant:"ghost"}),p.createElement("button",{onClick:h,className:"position-absolute bottom-0 end-0 top-0 start-0 opacity-0 z-1 w-100","aria-label":"Open resource"}),p.createElement("div",{className:"card-body"},U,p.createElement("div",null,p.createElement("h3",{className:b},p.createElement("strong",null,u)),i?null:p.createElement("p",{className:"card-text small"},p.createElement("em",{className:S},d)))),i?null:p.createElement("div",{className:"card-footer gap-16"},p.createElement("div",{className:A},I,p.createElement("p",{className:_},n)),p.createElement("div",{className:"d-inline-flex align-items-center gap-8"},a&&p.createElement(r1,{message:y,placement:"top"},p.createElement(yS,{width:16,height:16})),l&&p.createElement(r1,{message:x,placement:"top"},p.createElement($S,{width:16,height:16})))))});Dy.displayName="Card";const __=Dy;var Yf=vo(),G=e=>mo(e,Yf),Gf=vo();G.write=e=>mo(e,Gf);var kl=vo();G.onStart=e=>mo(e,kl);var Zf=vo();G.onFrame=e=>mo(e,Zf);var Kf=vo();G.onFinish=e=>mo(e,Kf);var fi=[];G.setTimeout=(e,t)=>{let n=G.now()+t,r=()=>{let s=fi.findIndex(o=>o.cancel==r);~s&&fi.splice(s,1),Mn-=~s?1:0},i={time:n,handler:e,cancel:r};return fi.splice(Ny(n),0,i),Mn+=1,My(),i};var Ny=e=>~(~fi.findIndex(t=>t.time>e)||~fi.length);G.cancel=e=>{kl.delete(e),Zf.delete(e),Kf.delete(e),Yf.delete(e),Gf.delete(e)};G.sync=e=>{pd=!0,G.batchedUpdates(e),pd=!1};G.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,G.onStart(n)}return r.handler=e,r.cancel=()=>{kl.delete(n),t=null},r};var Xf=typeof window<"u"?window.requestAnimationFrame:()=>{};G.use=e=>Xf=e;G.now=typeof performance<"u"?()=>performance.now():Date.now;G.batchedUpdates=e=>e();G.catch=console.error;G.frameLoop="always";G.advance=()=>{G.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Iy()};var Nn=-1,Mn=0,pd=!1;function mo(e,t){pd?(t.delete(e),e(0)):(t.add(e),My())}function My(){Nn<0&&(Nn=0,G.frameLoop!=="demand"&&Xf($y))}function A_(){Nn=-1}function $y(){~Nn&&(Xf($y),G.batchedUpdates(Iy))}function Iy(){let e=Nn;Nn=G.now();let t=Ny(Nn);if(t&&(Ly(fi.splice(0,t),n=>n.handler()),Mn-=t),!Mn){A_();return}kl.flush(),Yf.flush(e?Math.min(64,Nn-e):16.667),Zf.flush(),Gf.flush(),Kf.flush()}function vo(){let e=new Set,t=e;return{add(n){Mn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Mn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Mn-=t.size,Ly(t,r=>r(n)&&e.add(r)),Mn+=e.size,t=e)}}}function Ly(e,t){e.forEach(n=>{try{t(n)}catch(r){G.catch(r)}})}var k_=Object.defineProperty,R_=(e,t)=>{for(var n in t)k_(e,n,{get:t[n],enumerable:!0})},Qt={};R_(Qt,{assign:()=>P_,colors:()=>Vn,createStringInterpolator:()=>ep,skipAnimation:()=>By,to:()=>jy,willAdvance:()=>tp});function hd(){}var O_=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),M={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 dn(e,t){if(M.arr(e)){if(!M.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 Q=(e,t)=>e.forEach(t);function sn(e,t,n){if(M.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var qe=e=>M.und(e)?[]:M.arr(e)?e:[e];function ys(e,t){if(e.size){let n=Array.from(e);e.clear(),Q(n,t)}}var is=(e,...t)=>ys(e,n=>n(...t)),Jf=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ep,jy,Vn=null,By=!1,tp=hd,P_=e=>{e.to&&(jy=e.to),e.now&&(G.now=e.now),e.colors!==void 0&&(Vn=e.colors),e.skipAnimation!=null&&(By=e.skipAnimation),e.createStringInterpolator&&(ep=e.createStringInterpolator),e.requestAnimationFrame&&G.use(e.requestAnimationFrame),e.batchedUpdates&&(G.batchedUpdates=e.batchedUpdates),e.willAdvance&&(tp=e.willAdvance),e.frameLoop&&(G.frameLoop=e.frameLoop)},Es=new Set,At=[],Bu=[],Za=0,Rl={get idle(){return!Es.size&&!At.length},start(e){Za>e.priority?(Es.add(e),G.onStart(F_)):(Uy(e),G(md))},advance:md,sort(e){if(Za)G.onFrame(()=>Rl.sort(e));else{let t=At.indexOf(e);~t&&(At.splice(t,1),zy(e))}},clear(){At=[],Es.clear()}};function F_(){Es.forEach(Uy),Es.clear(),G(md)}function Uy(e){At.includes(e)||zy(e)}function zy(e){At.splice(T_(At,t=>t.priority>e.priority),0,e)}function md(e){let t=Bu;for(let n=0;n<At.length;n++){let r=At[n];Za=r.priority,r.idle||(tp(r),r.advance(e),r.idle||t.push(r))}return Za=0,Bu=At,Bu.length=0,At=t,At.length>0}function T_(e,t){let n=e.findIndex(t);return n<0?e.length:n}var D_=(e,t,n)=>Math.min(Math.max(n,e),t),N_={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},zt="[-+]?\\d*\\.?\\d+",Ka=zt+"%";function Ol(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var M_=new RegExp("rgb"+Ol(zt,zt,zt)),$_=new RegExp("rgba"+Ol(zt,zt,zt,zt)),I_=new RegExp("hsl"+Ol(zt,Ka,Ka)),L_=new RegExp("hsla"+Ol(zt,Ka,Ka,zt)),j_=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,B_=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,U_=/^#([0-9a-fA-F]{6})$/,z_=/^#([0-9a-fA-F]{8})$/;function H_(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=U_.exec(e))?parseInt(t[1]+"ff",16)>>>0:Vn&&Vn[e]!==void 0?Vn[e]:(t=M_.exec(e))?(Ur(t[1])<<24|Ur(t[2])<<16|Ur(t[3])<<8|255)>>>0:(t=$_.exec(e))?(Ur(t[1])<<24|Ur(t[2])<<16|Ur(t[3])<<8|o1(t[4]))>>>0:(t=j_.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=z_.exec(e))?parseInt(t[1],16)>>>0:(t=B_.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=I_.exec(e))?(i1(s1(t[1]),Ho(t[2]),Ho(t[3]))|255)>>>0:(t=L_.exec(e))?(i1(s1(t[1]),Ho(t[2]),Ho(t[3]))|o1(t[4]))>>>0:null}function Uu(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 i1(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,s=Uu(i,r,e+1/3),o=Uu(i,r,e),l=Uu(i,r,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(l*255)<<8}function Ur(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function s1(e){return(parseFloat(e)%360+360)%360/360}function o1(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Ho(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function a1(e){let t=H_(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${s})`}var Ws=(e,t,n)=>{if(M.fun(e))return e;if(M.arr(e))return Ws({range:e,output:t,extrapolate:n});if(M.str(e.output[0]))return ep(e);let r=e,i=r.output,s=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",a=r.easing||(u=>u);return u=>{let c=q_(u,s);return V_(u,s[c],s[c+1],i[c],i[c+1],a,o,l,r.map)}};function V_(e,t,n,r,i,s,o,l,a){let u=a?a(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(l==="identity")return u;l==="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 q_(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var W_=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);let r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return D_(0,1,i/e)},Xa=1.70158,Vo=Xa*1.525,l1=Xa+1,u1=2*Math.PI/3,c1=2*Math.PI/4.5,qo=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,Q_={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=>l1*e*e*e-Xa*e*e,easeOutBack:e=>1+l1*Math.pow(e-1,3)+Xa*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Vo+1)*2*e-Vo)/2:(Math.pow(2*e-2,2)*((Vo+1)*(e*2-2)+Vo)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*u1),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*u1)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*c1))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*c1)/2+1,easeInBounce:e=>1-qo(1-e),easeOutBounce:qo,easeInOutBounce:e=>e<.5?(1-qo(1-2*e))/2:(1+qo(2*e-1))/2,steps:W_},Ai=Symbol.for("FluidValue.get"),Rr=Symbol.for("FluidValue.observers"),_t=e=>!!(e&&e[Ai]),Ke=e=>e&&e[Ai]?e[Ai]():e,d1=e=>e[Rr]||null;function Y_(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Qs(e,t){let n=e[Rr];n&&n.forEach(r=>{Y_(r,t)})}var c8,d8,Y1,Hy=(Y1=class{constructor(e){z(this,c8);z(this,d8);if(!e&&!(e=this.get))throw Error("Unknown getter");G_(this,e)}},c8=Ai,d8=Rr,Y1),G_=(e,t)=>Vy(e,Ai,t);function Di(e,t){if(e[Ai]){let n=e[Rr];n||Vy(e,Rr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ys(e,t){let n=e[Rr];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[Rr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Vy=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ga=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Z_=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,f1=new RegExp(`(${ga.source})(%|[a-z]+)`,"i"),K_=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Pl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,qy=e=>{let[t,n]=X_(e);if(!t||Jf())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&Pl.test(n)?qy(n):n||e},X_=e=>{let t=Pl.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},zu,J_=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Wy=e=>{zu||(zu=Vn?new RegExp(`(${Object.keys(Vn).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(i=>Ke(i).replace(Pl,qy).replace(Z_,a1).replace(zu,a1)),n=t.map(i=>i.match(ga).map(Number)),r=n[0].map((i,s)=>n.map(o=>{if(!(s in o))throw Error('The arity of each "output" value must be equal');return o[s]})).map(i=>Ws({...e,output:i}));return i=>{var l;let s=!f1.test(t[0])&&((l=t.find(a=>f1.test(a)))==null?void 0:l.replace(ga,"")),o=0;return t[0].replace(ga,()=>`${r[o++](i)}${s||""}`).replace(K_,J_)}},np="react-spring: ",Qy=e=>{let t=e,n=!1;if(typeof t!="function")throw new TypeError(`${np}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},e7=Qy(console.warn);function t7(){e7(`${np}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var n7=Qy(console.warn);function r7(){n7(`${np}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 Fl(e){return M.str(e)&&(e[0]=="#"||/\d/.test(e)||!Jf()&&Pl.test(e)||e in(Vn||{}))}var vr=Jf()?C.useEffect:C.useLayoutEffect,i7=()=>{let e=C.useRef(!1);return vr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function rp(){let e=C.useState()[1],t=i7();return()=>{t.current&&e(Math.random())}}function s7(e,t){let[n]=C.useState(()=>({inputs:t,result:e()})),r=C.useRef(),i=r.current,s=i;return s?t&&s.inputs&&o7(t,s.inputs)||(s={inputs:t,result:e()}):s=n,C.useEffect(()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)},[s]),s.result}function o7(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 ip=e=>C.useEffect(e,a7),a7=[];function vd(e){let t=C.useRef();return C.useEffect(()=>{t.current=e}),t.current}var Gs=Symbol.for("Animated:node"),l7=e=>!!e&&e[Gs]===e,Xt=e=>e&&e[Gs],sp=(e,t)=>O_(e,Gs,t),Tl=e=>e&&e[Gs]&&e[Gs].getPayload(),Yy=class{constructor(){z(this,"payload");sp(this,this)}getPayload(){return this.payload||[]}},go=class extends Yy{constructor(t){super();z(this,"done",!0);z(this,"elapsedTime");z(this,"lastPosition");z(this,"lastVelocity");z(this,"v0");z(this,"durationProgress",0);this._value=t,M.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new go(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return M.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,M.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Zs=class extends go{constructor(t){super(0);z(this,"_string",null);z(this,"_toString");this._toString=Ws({output:[t,t]})}static create(t){return new Zs(t)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(t){if(M.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Ws({output:[this.getValue(),t]})),this._value=0,super.reset()}},Ja={dependencies:null},Dl=class extends Yy{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let n={};return sn(this.source,(r,i)=>{l7(r)?n[i]=r.getValue(t):_t(r)?n[i]=Ke(r):t||(n[i]=r)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&Q(this.payload,t=>t.reset())}_makePayload(t){if(t){let n=new Set;return sn(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){Ja.dependencies&&_t(t)&&Ja.dependencies.add(t);let n=Tl(t);n&&Q(n,r=>this.add(r))}},Gy=class extends Dl{constructor(t){super(t)}static create(t){return new Gy(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let n=this.getPayload();return t.length==n.length?n.map((r,i)=>r.setValue(t[i])).some(Boolean):(super.setValue(t.map(u7)),!0)}};function u7(e){return(Fl(e)?Zs:go).create(e)}function gd(e){let t=Xt(e);return t?t.constructor:M.arr(e)?Gy:Fl(e)?Zs:go}var p1=(e,t)=>{let n=!M.fun(e)||e.prototype&&e.prototype.isReactComponent;return C.forwardRef((r,i)=>{let s=C.useRef(null),o=n&&C.useCallback(m=>{s.current=f7(i,m)},[i]),[l,a]=d7(r,t),u=rp(),c=()=>{let m=s.current;n&&!m||(m?t.applyAnimatedValues(m,l.getValue(!0)):!1)===!1&&u()},d=new c7(c,a),f=C.useRef();vr(()=>(f.current=d,Q(a,m=>Di(m,d)),()=>{f.current&&(Q(f.current.deps,m=>Ys(m,f.current)),G.cancel(f.current.update))})),C.useEffect(c,[]),ip(()=>()=>{let m=f.current;Q(m.deps,y=>Ys(y,m))});let h=t.getComponentProps(l.getValue());return C.createElement(e,{...h,ref:o})})},c7=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&G.write(this.update)}};function d7(e,t){let n=new Set;return Ja.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Dl(e),Ja.dependencies=null,[e,n]}function f7(e,t){return e&&(M.fun(e)?e(t):e.current=t),t}var h1=Symbol.for("AnimatedComponent"),p7=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Dl(i),getComponentProps:r=i=>i}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=o=>{let l=m1(o)||"Anonymous";return M.str(o)?o=s[o]||(s[o]=p1(o,i)):o=o[h1]||(o[h1]=p1(o,i)),o.displayName=`Animated(${l})`,o};return sn(e,(o,l)=>{M.arr(e)&&(l=m1(o)),s[l]=s(o)}),{animated:s}},m1=e=>M.str(e)?e:e&&M.str(e.displayName)?e.displayName:M.fun(e)&&e.name||null;function Xe(e,...t){return M.fun(e)?e(...t):e}var ws=(e,t)=>e===!0||!!(t&&e&&(M.fun(e)?e(t):qe(e).includes(t))),Zy=(e,t)=>M.obj(e)?t&&e[t]:e,Ky=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,h7=e=>e,Nl=(e,t=h7)=>{let n=m7;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));let r={};for(let i of n){let s=t(e[i],i);M.und(s)||(r[i]=s)}return r},m7=["config","onProps","onStart","onChange","onPause","onResume","onRest"],v7={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 g7(e){let t={},n=0;if(sn(e,(r,i)=>{v7[i]||(t[i]=r,n++)}),n)return t}function op(e){let t=g7(e);if(t){let n={to:t};return sn(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Ks(e){return e=Ke(e),M.arr(e)?e.map(Ks):Fl(e)?Qt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Xy(e){for(let t in e)return!0;return!1}function yd(e){return M.fun(e)||M.arr(e)&&M.obj(e[0])}function Ed(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Jy(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var y7={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}},wd={...y7.default,mass:1,damping:1,easing:Q_.linear,clamp:!1},E7=class{constructor(){z(this,"tension");z(this,"friction");z(this,"frequency");z(this,"damping");z(this,"mass");z(this,"velocity",0);z(this,"restVelocity");z(this,"precision");z(this,"progress");z(this,"duration");z(this,"easing");z(this,"clamp");z(this,"bounce");z(this,"decay");z(this,"round");Object.assign(this,wd)}};function w7(e,t,n){n&&(n={...n},v1(n,t),t={...n,...t}),v1(e,t),Object.assign(e,t);for(let o in wd)e[o]==null&&(e[o]=wd[o]);let{frequency:r,damping:i}=e,{mass:s}=e;return M.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 v1(e,t){if(!M.und(t.decay))e.duration=void 0;else{let n=!M.und(t.tension)||!M.und(t.friction);(n||!M.und(t.frequency)||!M.und(t.damping)||!M.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var g1=[],x7=class{constructor(){z(this,"changed",!1);z(this,"values",g1);z(this,"toValues",null);z(this,"fromValues",g1);z(this,"to");z(this,"from");z(this,"config",new E7);z(this,"immediate",!1)}};function e2(e,{key:t,props:n,defaultProps:r,state:i,actions:s}){return new Promise((o,l)=>{let a,u,c=ws(n.cancel??(r==null?void 0:r.cancel),t);if(c)h();else{M.und(n.pause)||(i.paused=ws(n.pause,t));let m=r==null?void 0:r.pause;m!==!0&&(m=i.paused||ws(m,t)),a=Xe(n.delay||0,t),m?(i.resumeQueue.add(f),s.pause()):(s.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),a=u.time-G.now()}function f(){a>0&&!Qt.skipAnimation?(i.delayed=!0,u=G.setTimeout(h,a),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){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(m){l(m)}}})}var ap=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?pi(e.get()):t.every(n=>n.noop)?t2(e.get()):Ut(e.get(),t.every(n=>n.finished)),t2=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ut=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),pi=e=>({value:e,cancelled:!0,finished:!1});function n2(e,t,n,r){let{callId:i,parentId:s,onRest:o}=t,{asyncTo:l,promise:a}=n;return!s&&e===l&&!t.reset?a:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=Nl(t,(x,g)=>g==="onRest"?void 0:x),c,d,f=new Promise((x,g)=>(c=x,d=g)),h=x=>{let g=i<=(n.cancelId||0)&&pi(r)||i!==n.asyncId&&Ut(r,!1);if(g)throw x.result=g,d(x),x},m=(x,g)=>{let v=new y1,E=new E1;return(async()=>{if(Qt.skipAnimation)throw Xs(n),E.result=Ut(r,!1),d(E),E;h(v);let w=M.obj(x)?{...x}:{...g,to:x};w.parentId=i,sn(u,(S,_)=>{M.und(w[_])&&(w[_]=S)});let b=await r.start(w);return h(v),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),b})()},y;if(Qt.skipAnimation)return Xs(n),Ut(r,!1);try{let x;M.arr(e)?x=(async g=>{for(let v of g)await m(v)})(e):x=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([x.then(c),f]),y=Ut(r.get(),!0,!1)}catch(x){if(x instanceof y1)y=x.result;else if(x instanceof E1)y=x.result;else throw x}finally{i==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?a:void 0)}return M.fun(o)&&G.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function Xs(e,t){ys(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var y1=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.");z(this,"result")}},E1=class extends Error{constructor(){super("SkipAnimationSignal");z(this,"result")}},xd=e=>e instanceof lp,C7=1,lp=class extends Hy{constructor(){super(...arguments);z(this,"id",C7++);z(this,"_priority",0)}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){let t=Xt(this);return t&&t.getValue()}to(...t){return Qt.to(this,t)}interpolate(...t){return t7(),Qt.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){Qs(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||Rl.sort(this),Qs(this,{type:"priority",parent:this,priority:t})}},Or=Symbol.for("SpringPhase"),r2=1,Cd=2,Sd=4,Hu=e=>(e[Or]&r2)>0,_n=e=>(e[Or]&Cd)>0,Gi=e=>(e[Or]&Sd)>0,w1=(e,t)=>t?e[Or]|=Cd|r2:e[Or]&=~Cd,x1=(e,t)=>t?e[Or]|=Sd:e[Or]&=~Sd,S7=class extends lp{constructor(t,n){super();z(this,"key");z(this,"animation",new x7);z(this,"queue");z(this,"defaultProps",{});z(this,"_state",{paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set});z(this,"_pendingCalls",new Set);z(this,"_lastCallId",0);z(this,"_lastToId",0);z(this,"_memoizedDuration",0);if(!M.und(t)||!M.und(n)){let r=M.obj(t)?{...t}:{...n,from:t};M.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(_n(this)||this._state.asyncTo)||Gi(this)}get goal(){return Ke(this.animation.to)}get velocity(){let t=Xt(this);return t instanceof go?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return Hu(this)}get isAnimating(){return _n(this)}get isPaused(){return Gi(this)}get isDelayed(){return this._state.delayed}advance(t){let n=!0,r=!1,i=this.animation,{toValues:s}=i,{config:o}=i,l=Tl(i.to);!l&&_t(i.to)&&(s=qe(Ke(i.to))),i.values.forEach((c,d)=>{if(c.done)return;let f=c.constructor==Zs?1:l?l[d].lastPosition:s[d],h=i.immediate,m=f;if(!h){if(m=c.lastPosition,o.tension<=0){c.done=!0;return}let y=c.elapsedTime+=t,x=i.fromValues[d],g=c.v0!=null?c.v0:c.v0=M.arr(o.velocity)?o.velocity[d]:o.velocity,v,E=o.precision||(x==f?.005:Math.min(1,Math.abs(f-x)*.001));if(M.und(o.duration))if(o.decay){let w=o.decay===!0?.998:o.decay,b=Math.exp(-(1-w)*y);m=x+g/(1-w)*(1-b),h=Math.abs(c.lastPosition-m)<=E,v=g*b}else{v=c.lastVelocity==null?g:c.lastVelocity;let w=o.restVelocity||E/10,b=o.clamp?0:o.bounce,S=!M.und(b),_=x==f?c.v0>0:x<f,A,D=!1,P=1,V=Math.ceil(t/P);for(let U=0;U<V&&(A=Math.abs(v)>w,!(!A&&(h=Math.abs(f-m)<=E,h)));++U){S&&(D=m==f||m>f==_,D&&(v=-v*b,m=f));let I=-o.tension*1e-6*(m-f),R=-o.friction*.001*v,O=(I+R)/o.mass;v=v+O*P,m=m+v*P}}else{let w=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,y=c.elapsedTime+=t)),w=(o.progress||0)+y/this._memoizedDuration,w=w>1?1:w<0?0:w,c.durationProgress=w),m=x+o.easing(w)*(f-x),v=(m-c.lastPosition)/t,h=w==1}c.lastVelocity=v,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),h=!0)}l&&!l[d].done&&(h=!1),h?c.done=!0:n=!1,c.setValue(m,o.round)&&(r=!0)});let a=Xt(this),u=a.getValue();if(n){let c=Ke(i.to);(u!==c||r)&&!o.decay?(a.setValue(c),this._onChange(c)):r&&o.decay&&this._onChange(u),this._stop()}else r&&this._onChange(u)}set(t){return G.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(_n(this)){let{to:t,config:n}=this.animation;G.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let r;return M.und(t)?(r=this.queue||[],this.queue=[]):r=[M.obj(t)?t:{...n,to:t}],Promise.all(r.map(i=>this._update(i))).then(i=>ap(this,i))}stop(t){let{to:n}=this.animation;return this._focus(this.get()),Xs(this._state,t&&this._lastCallId),G.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){let n=this.key||"",{to:r,from:i}=t;r=M.obj(r)?r[n]:r,(r==null||yd(r))&&(r=void 0),i=M.obj(i)?i[n]:i,i==null&&(i=void 0);let s={to:r,from:i};return Hu(this)||(t.reverse&&([r,i]=[i,r]),i=Ke(i),M.und(i)?Xt(this)||this._set(r):this._set(i)),s}_update({...t},n){let{key:r,defaultProps:i}=this;t.default&&Object.assign(i,Nl(t,(l,a)=>/^on/.test(a)?Zy(l,r):l)),S1(this,t,"onProps"),Ki(this,"onProps",t,this);let s=this._prepareNode(t);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?");let o=this._state;return e2(++this._lastCallId,{key:r,props:t,defaultProps:i,state:o,actions:{pause:()=>{Gi(this)||(x1(this,!0),is(o.pauseQueue),Ki(this,"onPause",Ut(this,Zi(this,this.animation.to)),this))},resume:()=>{Gi(this)&&(x1(this,!1),_n(this)&&this._resume(),is(o.resumeQueue),Ki(this,"onResume",Ut(this,Zi(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(l=>{if(t.loop&&l.finished&&!(n&&l.noop)){let a=i2(t);if(a)return this._update(a,!0)}return l})}_merge(t,n,r){if(n.cancel)return this.stop(!0),r(pi(this));let i=!M.und(t.to),s=!M.und(t.from);if(i||s)if(n.callId>this._lastToId)this._lastToId=n.callId;else return r(pi(this));let{key:o,defaultProps:l,animation:a}=this,{to:u,from:c}=a,{to:d=u,from:f=c}=t;s&&!i&&(!n.default||M.und(d))&&(d=f),n.reverse&&([d,f]=[f,d]);let h=!dn(f,c);h&&(a.from=f),f=Ke(f);let m=!dn(d,u);m&&this._focus(d);let y=yd(n.to),{config:x}=a,{decay:g,velocity:v}=x;(i||s)&&(x.velocity=0),n.config&&!y&&w7(x,Xe(n.config,o),n.config!==l.config?Xe(l.config,o):void 0);let E=Xt(this);if(!E||M.und(d))return r(Ut(this,!0));let w=M.und(n.reset)?s&&!n.default:!M.und(f)&&ws(n.reset,o),b=w?f:this.get(),S=Ks(d),_=M.num(S)||M.arr(S)||Fl(S),A=!y&&(!_||ws(l.immediate||n.immediate,o));if(m){let U=gd(d);if(U!==E.constructor)if(A)E=this._set(S);else throw Error(`Cannot animate between ${E.constructor.name} and ${U.name}, as the "to" prop suggests`)}let D=E.constructor,P=_t(d),V=!1;if(!P){let U=w||!Hu(this)&&h;(m||U)&&(V=dn(Ks(b),S),P=!V),(!dn(a.immediate,A)&&!A||!dn(x.decay,g)||!dn(x.velocity,v))&&(P=!0)}if(V&&_n(this)&&(a.changed&&!w?P=!0:P||this._stop(u)),!y&&((P||_t(u))&&(a.values=E.getPayload(),a.toValues=_t(d)?null:D==Zs?[1]:qe(S)),a.immediate!=A&&(a.immediate=A,!A&&!w&&this._set(u)),P)){let{onRest:U}=a;Q(_7,R=>S1(this,n,R));let I=Ut(this,Zi(this,u));is(this._pendingCalls,I),this._pendingCalls.add(r),a.changed&&G.batchedUpdates(()=>{var R;a.changed=!w,U==null||U(I,this),w?Xe(l.onRest,I):(R=a.onStart)==null||R.call(a,I,this)})}w&&this._set(b),y?r(n2(n.to,n,this._state,this)):P?this._start():_n(this)&&!m?this._pendingCalls.add(r):r(t2(b))}_focus(t){let n=this.animation;t!==n.to&&(d1(this)&&this._detach(),n.to=t,d1(this)&&this._attach())}_attach(){let t=0,{to:n}=this.animation;_t(n)&&(Di(n,this),xd(n)&&(t=n.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;_t(t)&&Ys(t,this)}_set(t,n=!0){let r=Ke(t);if(!M.und(r)){let i=Xt(this);if(!i||!dn(r,i.getValue())){let s=gd(r);!i||i.constructor!=s?sp(this,s.create(r)):i.setValue(r),i&&G.batchedUpdates(()=>{this._onChange(r,n)})}}return Xt(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,Ki(this,"onStart",Ut(this,Zi(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),Xe(this.animation.onChange,t,this)),Xe(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){let t=this.animation;Xt(this).reset(Ke(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),_n(this)||(w1(this,!0),Gi(this)||this._resume())}_resume(){Qt.skipAnimation?this.finish():Rl.start(this)}_stop(t,n){if(_n(this)){w1(this,!1);let r=this.animation;Q(r.values,s=>{s.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Qs(this,{type:"idle",parent:this});let i=n?pi(this.get()):Ut(this.get(),Zi(this,t??r.to));is(this._pendingCalls,i),r.changed&&(r.changed=!1,Ki(this,"onRest",i,this))}}};function Zi(e,t){let n=Ks(t),r=Ks(e.get());return dn(r,n)}function i2(e,t=e.loop,n=e.to){let r=Xe(t);if(r){let i=r!==!0&&op(r),s=(i||e).reverse,o=!i||i.reset;return Js({...e,loop:t,default:!1,pause:void 0,to:!s||yd(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Js(e){let{to:t,from:n}=e=op(e),r=new Set;return M.obj(t)&&C1(t,r),M.obj(n)&&C1(n,r),e.keys=r.size?Array.from(r):null,e}function b7(e){let t=Js(e);return M.und(t.default)&&(t.default=Nl(t)),t}function C1(e,t){sn(e,(n,r)=>n!=null&&t.add(r))}var _7=["onStart","onRest","onChange","onPause","onResume"];function S1(e,t,n){e.animation[n]=t[n]!==Ky(t,n)?Zy(t[n],e.key):void 0}function Ki(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 A7=["onStart","onChange","onRest"],k7=1,s2=class{constructor(e,t){z(this,"id",k7++);z(this,"springs",{});z(this,"queue",[]);z(this,"ref");z(this,"_flush");z(this,"_initialProps");z(this,"_lastAsyncId",0);z(this,"_active",new Set);z(this,"_changed",new Set);z(this,"_started",!1);z(this,"_item");z(this,"_state",{paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set});z(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(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];M.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Js(e)),this}start(e){let{queue:t}=this;return e?t=qe(e).map(Js):this.queue=[],this._flush?this._flush(this,t):(c2(this,t),bd(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;Q(qe(t),r=>n[r].stop(!!e))}else Xs(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(M.und(e))this.start({pause:!0});else{let t=this.springs;Q(qe(e),n=>t[n].pause())}return this}resume(e){if(M.und(e))this.start({pause:!1});else{let t=this.springs;Q(qe(e),n=>t[n].resume())}return this}each(e){sn(this.springs,e)}_onFrame(){let{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,ys(e,([l,a])=>{a.value=this.get(),l(a,this,this._item)}));let s=!r&&this._started,o=i||s&&n.size?this.get():null;i&&t.size&&ys(t,([l,a])=>{a.value=o,l(a,this,this._item)}),s&&(this._started=!1,ys(n,([l,a])=>{a.value=o,l(a,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;G.onFrame(this._onFrame)}};function bd(e,t){return Promise.all(t.map(n=>o2(e,n))).then(n=>ap(e,n))}async function o2(e,t,n){let{keys:r,to:i,from:s,loop:o,onRest:l,onResolve:a}=t,u=M.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);let c=M.arr(i)||M.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Q(A7,y=>{let x=t[y];if(M.fun(x)){let g=e._events[y];t[y]=({finished:v,cancelled:E})=>{let w=g.get(x);w?(v||(w.finished=!1),E&&(w.cancelled=!0)):g.set(x,{value:null,finished:v||!1,cancelled:E||!1})},u&&(u[y]=t[y])}});let d=e._state;t.pause===!d.paused?(d.paused=t.pause,is(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),h=t.cancel===!0||Ky(t,"cancel")===!0;(c||h&&d.asyncId)&&f.push(e2(++e._lastAsyncId,{props:t,state:d,actions:{pause:hd,resume:hd,start(y,x){h?(Xs(d,e._lastAsyncId),x(pi(e))):(y.onRest=l,x(n2(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});let m=ap(e,await Promise.all(f));if(o&&m.finished&&!(n&&m.noop)){let y=i2(t,o,i);if(y)return c2(e,[y]),o2(e,y,!0)}return a&&G.batchedUpdates(()=>a(m,e,e.item)),m}function _d(e,t){let n={...e.springs};return t&&Q(qe(t),r=>{M.und(r.keys)&&(r=Js(r)),M.obj(r.to)||(r={...r,to:void 0}),u2(n,r,i=>l2(i))}),a2(e,n),n}function a2(e,t){sn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Di(n,e))})}function l2(e,t){let n=new S7;return n.key=e,t&&Di(n,t),n}function u2(e,t,n){t.keys&&Q(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function c2(e,t){Q(t,n=>{u2(e.springs,n,r=>l2(r,e))})}var yo=({children:e,...t})=>{let n=C.useContext(el),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=s7(()=>({pause:r,immediate:i}),[r,i]);let{Provider:s}=el;return C.createElement(s,{value:t},e)},el=R7(yo,{});yo.Provider=el.Provider;yo.Consumer=el.Consumer;function R7(e,t){return Object.assign(e,C.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var d2=()=>{let e=[],t=function(r){r7();let i=[];return Q(e,(s,o)=>{if(M.und(r))i.push(s.start());else{let l=n(r,s,o);l&&i.push(s.start(l))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){let i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return Q(e,r=>r.pause(...arguments)),this},t.resume=function(){return Q(e,r=>r.resume(...arguments)),this},t.set=function(r){Q(e,(i,s)=>{let o=M.fun(r)?r(s,i):r;o&&i.set(o)})},t.start=function(r){let i=[];return Q(e,(s,o)=>{if(M.und(r))i.push(s.start());else{let l=this._getProps(r,s,o);l&&i.push(s.start(l))}}),i},t.stop=function(){return Q(e,r=>r.stop(...arguments)),this},t.update=function(r){return Q(e,(i,s)=>i.update(this._getProps(r,i,s))),this};let n=function(r,i,s){return M.fun(r)?r(s,i):r};return t._getProps=n,t};function O7(e,t,n){let r=M.fun(t)&&t;r&&!n&&(n=[]);let i=C.useMemo(()=>r||arguments.length==3?d2():void 0,[]),s=C.useRef(0),o=rp(),l=C.useMemo(()=>({ctrls:[],queue:[],flush(g,v){let E=_d(g,v);return s.current>0&&!l.queue.length&&!Object.keys(E).some(w=>!g.springs[w])?bd(g,v):new Promise(w=>{a2(g,E),l.queue.push(()=>{w(bd(g,v))}),o()})}}),[]),a=C.useRef([...l.ctrls]),u=[],c=vd(e)||0;C.useMemo(()=>{Q(a.current.slice(e,c),g=>{Ed(g,i),g.stop(!0)}),a.current.length=e,d(c,e)},[e]),C.useMemo(()=>{d(0,Math.min(c,e))},n);function d(g,v){for(let E=g;E<v;E++){let w=a.current[E]||(a.current[E]=new s2(null,l.flush)),b=r?r(E,w):t[E];b&&(u[E]=b7(b))}}let f=a.current.map((g,v)=>_d(g,u[v])),h=C.useContext(yo),m=vd(h),y=h!==m&&Xy(h);vr(()=>{s.current++,l.ctrls=a.current;let{queue:g}=l;g.length&&(l.queue=[],Q(g,v=>v())),Q(a.current,(v,E)=>{i==null||i.add(v),y&&v.start({default:h});let w=u[E];w&&(Jy(v,w.ref),v.ref?v.queue.push(w):v.start(w))})}),ip(()=>()=>{Q(l.ctrls,g=>g.stop(!0))});let x=f.map(g=>({...g}));return i?[x,i]:x}function P7(e,t){let n=M.fun(e),[[r],i]=O7(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}function up(e,t,n){let r=M.fun(t)&&t,{reset:i,sort:s,trail:o=0,expires:l=!0,exitBeforeEnter:a=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=C.useMemo(()=>r||arguments.length==3?d2():void 0,[]),h=qe(e),m=[],y=C.useRef(null),x=i?null:y.current;vr(()=>{y.current=m}),ip(()=>(Q(m,R=>{f==null||f.add(R.ctrl),R.ctrl.ref=f}),()=>{Q(y.current,R=>{R.expired&&clearTimeout(R.expirationId),Ed(R.ctrl,f),R.ctrl.stop(!0)})}));let g=T7(h,r?r():t,x),v=i&&y.current||[];vr(()=>Q(v,({ctrl:R,item:O,key:B})=>{Ed(R,f),Xe(u,O,B)}));let E=[];if(x&&Q(x,(R,O)=>{R.expired?(clearTimeout(R.expirationId),v.push(R)):(O=E[O]=g.indexOf(R.key),~O&&(m[O]=R))}),Q(h,(R,O)=>{m[O]||(m[O]={key:g[O],item:R,phase:"mount",ctrl:new s2},m[O].ctrl.item=R)}),E.length){let R=-1,{leave:O}=r?r():t;Q(E,(B,T)=>{let k=x[T];~B?(R=m.indexOf(k),m[R]={...k,item:h[B]}):O&&m.splice(++R,0,k)})}M.fun(s)&&m.sort((R,O)=>s(R.item,O.item));let w=-o,b=rp(),S=Nl(t),_=new Map,A=C.useRef(new Map),D=C.useRef(!1);Q(m,(R,O)=>{let B=R.key,T=R.phase,k=r?r():t,F,j,W=Xe(k.delay||0,B);if(T=="mount")F=k.enter,j="enter";else{let J=g.indexOf(B)<0;if(T!="leave")if(J)F=k.leave,j="leave";else if(F=k.update)j="update";else return;else if(!J)F=k.enter,j="enter";else return}if(F=Xe(F,R.item,O),F=M.obj(F)?op(F):{to:F},!F.config){let J=d||S.config;F.config=Xe(J,R.item,O,j)}w+=o;let q={...S,delay:W+w,ref:c,immediate:k.immediate,reset:!1,...F};if(j=="enter"&&M.und(q.from)){let J=r?r():t,le=M.und(J.initial)||x?J.from:J.initial;q.from=Xe(le,R.item,O)}let{onResolve:ie}=q;q.onResolve=J=>{Xe(ie,J);let le=y.current,Z=le.find(fe=>fe.key===B);if(Z&&!(J.cancelled&&Z.phase!="update")&&Z.ctrl.idle){let fe=le.every(re=>re.ctrl.idle);if(Z.phase=="leave"){let re=Xe(l,Z.item);if(re!==!1){let Pe=re===!0?0:re;if(Z.expired=!0,!fe&&Pe>0){Pe<=2147483647&&(Z.expirationId=setTimeout(b,Pe));return}}}fe&&le.some(re=>re.expired)&&(A.current.delete(Z),a&&(D.current=!0),b())}};let ae=_d(R.ctrl,q);j==="leave"&&a?A.current.set(R,{phase:j,springs:ae,payload:q}):_.set(R,{phase:j,springs:ae,payload:q})});let P=C.useContext(yo),V=vd(P),U=P!==V&&Xy(P);vr(()=>{U&&Q(m,R=>{R.ctrl.start({default:P})})},[P]),Q(_,(R,O)=>{if(A.current.size){let B=m.findIndex(T=>T.key===O.key);m.splice(B,1)}}),vr(()=>{Q(A.current.size?A.current:_,({phase:R,payload:O},B)=>{let{ctrl:T}=B;B.phase=R,f==null||f.add(T),U&&R=="enter"&&T.start({default:P}),O&&(Jy(T,O.ref),(T.ref||f)&&!D.current?T.update(O):(T.start(O),D.current&&(D.current=!1)))})},i?void 0:n);let I=R=>C.createElement(C.Fragment,null,m.map((O,B)=>{let{springs:T}=_.get(O)||O.ctrl,k=R({...T},O.item,O,B);return k&&k.type?C.createElement(k.type,{...k.props,key:M.str(O.key)||M.num(O.key)?O.key:O.ctrl.id,ref:k.ref}):k}));return f?[I,f]:I}var F7=1;function T7(e,{key:t,keys:n=t},r){if(n===null){let i=new Set;return e.map(s=>{let o=r&&r.find(l=>l.item===s&&l.phase!=="leave"&&!i.has(l));return o?(i.add(o),o.key):F7++})}return M.und(n)?e:M.fun(n)?e.map(n):qe(n)}var D7=class extends lp{constructor(t,n){super();z(this,"key");z(this,"idle",!0);z(this,"calc");z(this,"_active",new Set);this.source=t,this.calc=Ws(...n);let r=this._get(),i=gd(r);sp(this,i.create(r))}advance(t){let n=this._get(),r=this.get();dn(n,r)||(Xt(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&b1(this._active)&&Vu(this)}_get(){let t=M.arr(this.source)?this.source.map(Ke):qe(Ke(this.source));return this.calc(...t)}_start(){this.idle&&!b1(this._active)&&(this.idle=!1,Q(Tl(this),t=>{t.done=!1}),Qt.skipAnimation?(G.batchedUpdates(()=>this.advance()),Vu(this)):Rl.start(this))}_attach(){let t=1;Q(qe(this.source),n=>{_t(n)&&Di(n,this),xd(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){Q(qe(this.source),t=>{_t(t)&&Ys(t,this)}),this._active.clear(),Vu(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=qe(this.source).reduce((n,r)=>Math.max(n,(xd(r)?r.priority:0)+1),0))}};function N7(e){return e.idle!==!1}function b1(e){return!e.size||Array.from(e).every(N7)}function Vu(e){e.idle||(e.idle=!0,Q(Tl(e),t=>{t.done=!0}),Qs(e,{type:"idle",parent:e}))}Qt.assign({createStringInterpolator:Wy,to:(e,t)=>new D7(e,t)});var f2=/^--/;function M7(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!f2.test(e)&&!(xs.hasOwnProperty(e)&&xs[e])?t+"px":(""+t).trim()}var _1={};function $7(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:s,scrollLeft:o,viewBox:l,...a}=t,u=Object.values(a),c=Object.keys(a).map(d=>n||e.hasAttribute(d)?d:_1[d]||(_1[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));i!==void 0&&(e.textContent=i);for(let d in r)if(r.hasOwnProperty(d)){let f=M7(d,r[d]);f2.test(d)?e.style.setProperty(d,f):e.style[d]=f}c.forEach((d,f)=>{e.setAttribute(d,u[f])}),s!==void 0&&(e.scrollTop=s),o!==void 0&&(e.scrollLeft=o),l!==void 0&&e.setAttribute("viewBox",l)}var xs={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},I7=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),L7=["Webkit","Ms","Moz","O"];xs=Object.keys(xs).reduce((e,t)=>(L7.forEach(n=>e[I7(n,t)]=e[t]),e),xs);var j7=/^(matrix|translate|scale|rotate|skew)/,B7=/^(translate)/,U7=/^(rotate|skew)/,qu=(e,t)=>M.num(e)&&e!==0?e+t:e,ya=(e,t)=>M.arr(e)?e.every(n=>ya(n,t)):M.num(e)?e===t:parseFloat(e)===t,z7=class extends Dl{constructor({x:e,y:t,z:n,...r}){let i=[],s=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),s.push(o=>[`translate3d(${o.map(l=>qu(l,"px")).join(",")})`,ya(o,0)])),sn(r,(o,l)=>{if(l==="transform")i.push([o||""]),s.push(a=>[a,a===""]);else if(j7.test(l)){if(delete r[l],M.und(o))return;let a=B7.test(l)?"px":U7.test(l)?"deg":"";i.push(qe(o)),s.push(l==="rotate3d"?([u,c,d,f])=>[`rotate3d(${u},${c},${d},${qu(f,a)})`,ya(f,0)]:u=>[`${l}(${u.map(c=>qu(c,a)).join(",")})`,ya(u,l.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new H7(i,s)),super(r)}},H7=class extends Hy{constructor(t,n){super();z(this,"_value",null);this.inputs=t,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return Q(this.inputs,(r,i)=>{let s=Ke(r[0]),[o,l]=this.transforms[i](M.arr(s)?s:r.map(Ke));t+=" "+o,n=n&&l}),n?"none":t}observerAdded(t){t==1&&Q(this.inputs,n=>Q(n,r=>_t(r)&&Di(r,this)))}observerRemoved(t){t==0&&Q(this.inputs,n=>Q(n,r=>_t(r)&&Ys(r,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Qs(this,t)}},V7=["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"];Qt.assign({batchedUpdates:bl.unstable_batchedUpdates,createStringInterpolator:Wy,colors:N_});var q7=p7(V7,{applyAnimatedValues:$7,createAnimatedStyle:e=>new z7(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),ki=q7.animated;const p2=C.createContext(null),cp=()=>{const e=C.useContext(p2);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},h2=C.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:i,...s},o)=>{const{id:l,isRequired:a,isReadOnly:u,status:c}=cp(),d=K({"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 p.createElement("input",{ref:o,id:l,className:d,type:r,placeholder:t,required:a,readOnly:u,...s})});h2.displayName="Input";const W7=h2,m2=C.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:i},s)=>{const{id:o,isOptional:l,isRequired:a}=cp(),u=K("form-label",{"has-icon":e},i),c=l&&!a,d=a&&!l;return C.useEffect(()=>{if(l&&a)throw new Error("Cannot be optional and required at the same time")},[l,a]),p.createElement("label",{ref:s,htmlFor:o,className:u},e,r,c&&p.createElement("em",{className:"optional"},"- ",t),d&&p.createElement("em",{className:"required"},n))});m2.displayName="Label";const Q7=m2,v2=({children:e})=>{const{status:t}=cp(),n=K("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return p.createElement("p",{className:n},p.createElement("em",null,e))};v2.displayName="Text";const Y7=v2,g2=C.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:i,isRequired:s,status:o,...l},a)=>{const u=C.useMemo(()=>({id:n,isOptional:r,isRequired:s,isReadOnly:i,status:o}),[n,r,i,s,o]);return p.createElement(p2.Provider,{value:u},p.createElement("div",{ref:a,className:t,...l},e))}),G7=Object.assign(g2,{Label:Q7,Input:W7,Text:Y7});g2.displayName="FormControl";const A1=G7,Cs=({children:e,className:t,...n})=>{const r=K("grid",t);return p.createElement("div",{className:r,...n},e)},y2=({sm:e,md:t,lg:n,children:r,className:i,as:s,...o})=>{const l=s||"div",a=K({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n},i);return p.createElement(l,{className:a,...o},r)};Cs.displayName="Grid";y2.displayName="Grid.Col";Cs.Col=y2;var dp={},fp={};(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})(fp);var X={},nr=De&&De.__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)}}(),Ss=De&&De.__assign||function(){return Ss=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},Ss.apply(this,arguments)};Object.defineProperty(X,"__esModule",{value:!0});X.cloneNode=X.hasChildren=X.isDocument=X.isDirective=X.isComment=X.isText=X.isCDATA=X.isTag=X.Element=X.Document=X.CDATA=X.NodeWithChildren=X.ProcessingInstruction=X.Comment=X.Text=X.DataNode=X.Node=void 0;var ot=fp,pp=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),hp(this,t)},e}();X.Node=pp;var Ml=function(e){nr(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}(pp);X.DataNode=Ml;var E2=function(e){nr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=ot.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(Ml);X.Text=E2;var w2=function(e){nr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=ot.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(Ml);X.Comment=w2;var x2=function(e){nr(t,e);function t(n,r){var i=e.call(this,r)||this;return i.name=n,i.type=ot.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(Ml);X.ProcessingInstruction=x2;var $l=function(e){nr(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}(pp);X.NodeWithChildren=$l;var C2=function(e){nr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=ot.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}($l);X.CDATA=C2;var S2=function(e){nr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=ot.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}($l);X.Document=S2;var b2=function(e){nr(t,e);function t(n,r,i,s){i===void 0&&(i=[]),s===void 0&&(s=n==="script"?ot.ElementType.Script:n==="style"?ot.ElementType.Style:ot.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}($l);X.Element=b2;function _2(e){return(0,ot.isTag)(e)}X.isTag=_2;function A2(e){return e.type===ot.ElementType.CDATA}X.isCDATA=A2;function k2(e){return e.type===ot.ElementType.Text}X.isText=k2;function R2(e){return e.type===ot.ElementType.Comment}X.isComment=R2;function O2(e){return e.type===ot.ElementType.Directive}X.isDirective=O2;function P2(e){return e.type===ot.ElementType.Root}X.isDocument=P2;function Z7(e){return Object.prototype.hasOwnProperty.call(e,"children")}X.hasChildren=Z7;function hp(e,t){t===void 0&&(t=!1);var n;if(k2(e))n=new E2(e.data);else if(R2(e))n=new w2(e.data);else if(_2(e)){var r=t?Wu(e.children):[],i=new b2(e.name,Ss({},e.attribs),r);r.forEach(function(a){return a.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Ss({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Ss({},e["x-attribsPrefix"])),n=i}else if(A2(e)){var r=t?Wu(e.children):[],s=new C2(r);r.forEach(function(u){return u.parent=s}),n=s}else if(P2(e)){var r=t?Wu(e.children):[],o=new S2(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(O2(e)){var l=new x2(e.name,e.data);e["x-name"]!=null&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}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}X.cloneNode=hp;function Wu(e){for(var t=e.map(function(r){return hp(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=De&&De.__createBinding||(Object.create?function(l,a,u,c){c===void 0&&(c=u);var d=Object.getOwnPropertyDescriptor(a,u);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[u]}}),Object.defineProperty(l,c,d)}:function(l,a,u,c){c===void 0&&(c=u),l[c]=a[u]}),n=De&&De.__exportStar||function(l,a){for(var u in l)u!=="default"&&!Object.prototype.hasOwnProperty.call(a,u)&&t(a,l,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=fp,i=X;n(X,e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function l(a,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 a=="object"&&(u=a,a=void 0),this.callback=a??null,this.options=u??s,this.elementCB=c??null}return l.prototype.onparserinit=function(a){this.parser=a},l.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},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(a){this.handleCallback(a)},l.prototype.onclosetag=function(){this.lastNode=null;var a=this.tagStack.pop();this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(a)},l.prototype.onopentag=function(a,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new i.Element(a,u,void 0,c);this.addNode(d),this.tagStack.push(d)},l.prototype.ontext=function(a){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=a,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new i.Text(a);this.addNode(c),this.lastNode=c}},l.prototype.oncomment=function(a){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=a;return}var u=new i.Comment(a);this.addNode(u),this.lastNode=u},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var a=new i.Text(""),u=new i.CDATA([a]);this.addNode(u),a.parent=u,this.lastNode=a},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(a,u){var c=new i.ProcessingInstruction(a,u);this.addNode(c)},l.prototype.handleCallback=function(a){if(typeof this.callback=="function")this.callback(a,this.dom);else if(a)throw a},l.prototype.addNode=function(a){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),u.children.push(a),c&&(a.prev=c,c.next=a),a.parent=u,this.lastNode=null},l}();e.DomHandler=o,e.default=o})(dp);var k1="html",R1="head",Wo="body",K7=/<([a-zA-Z]+[0-9]?)/,O1=/<head[^]*>/i,P1=/<body[^]*>/i,tl=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Ad=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},F1=typeof window=="object"&&window.DOMParser;if(typeof F1=="function"){var X7=new F1,J7="text/html";Ad=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),X7.parseFromString(e,J7)},tl=Ad}if(typeof document=="object"&&document.implementation){var Qo=document.implementation.createHTMLDocument();tl=function(e,t){if(t){var n=Qo.documentElement.querySelector(t);return n.innerHTML=e,Qo}return Qo.documentElement.innerHTML=e,Qo}}var Qu=typeof document=="object"?document.createElement("template"):{},kd;Qu.content&&(kd=function(e){return Qu.innerHTML=e,Qu.content.childNodes});function eA(e){var t,n=e.match(K7);n&&n[1]&&(t=n[1].toLowerCase());var r,i,s;switch(t){case k1:return r=Ad(e),O1.test(e)||(i=r.querySelector(R1),i&&i.parentNode.removeChild(i)),P1.test(e)||(i=r.querySelector(Wo),i&&i.parentNode.removeChild(i)),r.querySelectorAll(k1);case R1:case Wo:return r=tl(e),s=r.querySelectorAll(t),P1.test(e)&&O1.test(e)?s[0].parentNode.childNodes:s;default:return kd?kd(e):(i=tl(e,Wo).querySelector(Wo),i.childNodes)}}var tA=eA,mp={},F2={};F2.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 Il=dp,nA=F2,T1=nA.CASE_SENSITIVE_TAG_NAMES,rA=Il.Comment,iA=Il.Element,sA=Il.ProcessingInstruction,oA=Il.Text,T2={},Yu;for(var Gu=0,aA=T1.length;Gu<aA;Gu++)Yu=T1[Gu],T2[Yu.toLowerCase()]=Yu;function lA(e){return T2[e]}function D2(e){for(var t={},n,r=0,i=e.length;r<i;r++)n=e[r],t[n.name]=n.value;return t}function uA(e){e=e.toLowerCase();var t=lA(e);return t||e}function N2(e,t,n){t=t||null;for(var r=[],i,s=0,o=e.length;s<o;s++){var l=e[s],a;switch(l.nodeType){case 1:i=uA(l.nodeName),a=new iA(i,D2(l.attributes)),a.children=N2(i==="template"?l.content.childNodes:l.childNodes,a);break;case 3:a=new oA(l.nodeValue);break;case 8:a=new rA(l.nodeValue);break;default:continue}var u=r[s-1]||null;u&&(u.next=a),a.parent=t,a.prev=u,a.next=null,r.push(a)}return n&&(a=new sA(n.substring(0,n.indexOf(" ")).toLowerCase(),n),a.next=r[0]||null,a.parent=t,r.unshift(a),r[1]&&(r[1].prev=r[0])),r}mp.formatAttributes=D2;mp.formatDOM=N2;var cA=tA,dA=mp,fA=dA.formatDOM,pA=/<(![a-zA-Z\s]+)>/;function hA(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(pA),n;return t&&t[1]&&(n=t[1]),fA(cA(e),null,n)}var mA=hA,$t={},Ll={},vA=0;Ll.SAME=vA;var gA=1;Ll.CAMELCASE=gA;Ll.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($t,"__esModule",{value:!0});function yA(e,t){return EA(e)||wA(e,t)||xA(e,t)||CA()}function EA(e){if(Array.isArray(e))return e}function wA(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,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(a){s=!0,l=a}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}return r}}function xA(e,t){if(e){if(typeof e=="string")return D1(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 D1(e,t)}}function D1(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 CA(){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 M2=0,rr=1,jl=2,Bl=3,vp=4,$2=5,I2=6;function SA(e){return Ie.hasOwnProperty(e)?Ie[e]:null}function Ge(e,t,n,r,i,s,o){this.acceptsBooleans=t===jl||t===Bl||t===vp,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ie={},bA=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];bA.forEach(function(e){Ie[e]=new Ge(e,M2,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=yA(e,2),n=t[0],r=t[1];Ie[n]=new Ge(n,rr,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ge(e,jl,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ge(e,jl,!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){Ie[e]=new Ge(e,Bl,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ge(e,Bl,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ge(e,vp,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ge(e,I2,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ge(e,$2,!1,e.toLowerCase(),null,!1,!1)});var gp=/[\-\:]([a-z])/g,yp=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(gp,yp);Ie[t]=new Ge(t,rr,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(gp,yp);Ie[t]=new Ge(t,rr,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gp,yp);Ie[t]=new Ge(t,rr,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ge(e,rr,!1,e.toLowerCase(),null,!1,!1)});var _A="xlinkHref";Ie[_A]=new Ge("xlinkHref",rr,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ge(e,rr,!1,e.toLowerCase(),null,!0,!0)});var Ep=Ll,AA=Ep.CAMELCASE,kA=Ep.SAME,N1=Ep.possibleStandardNames,RA=":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",OA=RA+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",PA=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+OA+"]*$")),FA=Object.keys(N1).reduce(function(e,t){var n=N1[t];return n===kA?e[t]=t:n===AA?e[t.toLowerCase()]=t:e[t]=n,e},{});$t.BOOLEAN=Bl;$t.BOOLEANISH_STRING=jl;$t.NUMERIC=$2;$t.OVERLOADED_BOOLEAN=vp;$t.POSITIVE_NUMERIC=I2;$t.RESERVED=M2;$t.STRING=rr;$t.getPropertyInfo=SA;$t.isCustomAttribute=PA;$t.possibleStandardNames=FA;var L2={},wp={exports:{}},M1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,TA=/\n/g,DA=/^\s*/,NA=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,MA=/^:\s*/,$A=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,IA=/^[;\s]*/,LA=/^\s+|\s+$/g,jA=`
242
+ `,$1="/",I1="*",cr="",BA="comment",UA="declaration",zA=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(m){var y=m.match(TA);y&&(n+=y.length);var x=m.lastIndexOf(jA);r=~x?m.length-x:r+m.length}function s(){var m={line:n,column:r};return function(y){return y.position=new o(m),u(),y}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function l(m){var y=new Error(t.source+":"+n+":"+r+": "+m);if(y.reason=m,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function a(m){var y=m.exec(e);if(y){var x=y[0];return i(x),e=e.slice(x.length),y}}function u(){a(DA)}function c(m){var y;for(m=m||[];y=d();)y!==!1&&m.push(y);return m}function d(){var m=s();if(!($1!=e.charAt(0)||I1!=e.charAt(1))){for(var y=2;cr!=e.charAt(y)&&(I1!=e.charAt(y)||$1!=e.charAt(y+1));)++y;if(y+=2,cr===e.charAt(y-1))return l("End of comment missing");var x=e.slice(2,y-2);return r+=2,i(x),e=e.slice(y),r+=2,m({type:BA,comment:x})}}function f(){var m=s(),y=a(NA);if(y){if(d(),!a(MA))return l("property missing ':'");var x=a($A),g=m({type:UA,property:L1(y[0].replace(M1,cr)),value:x?L1(x[0].replace(M1,cr)):cr});return a(IA),g}}function h(){var m=[];c(m);for(var y;y=f();)y!==!1&&(m.push(y),c(m));return m}return u(),h()};function L1(e){return e?e.replace(LA,cr):cr}var HA=zA;function j2(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=HA(e),s=typeof t=="function",o,l,a=0,u=i.length;a<u;a++)r=i[a],o=r.property,l=r.value,s?t(o,l,r):l&&(n||(n={}),n[o]=l);return n}wp.exports=j2;wp.exports.default=j2;var VA=wp.exports,Ul={};Ul.__esModule=!0;Ul.camelCase=void 0;var qA=/^--[a-zA-Z0-9-]+$/,WA=/-([a-z])/g,QA=/^[^-]+$/,YA=/^-(webkit|moz|ms|o|khtml)-/,GA=/^-(ms)-/,ZA=function(e){return!e||QA.test(e)||qA.test(e)},KA=function(e,t){return t.toUpperCase()},j1=function(e,t){return"".concat(t,"-")},XA=function(e,t){return t===void 0&&(t={}),ZA(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(GA,j1):e=e.replace(YA,j1),e.replace(WA,KA))};Ul.camelCase=XA;(function(e){var t=De&&De.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};e.__esModule=!0;var n=t(VA),r=Ul;function i(s,o){var l={};return!s||typeof s!="string"||(0,n.default)(s,function(a,u){a&&u&&(l[(0,r.camelCase)(a,o)]=u)}),l}e.default=i})(L2);var JA=C,ek=L2.default;function tk(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 nk(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 rk={reactCompat:!0};function ik(e,t){if(e!=null)try{t.style=ek(e,rk)}catch{t.style={}}}var sk=JA.version.split(".")[0]>=16,B2=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function ok(e){return!B2.has(e.name)}var U2={PRESERVE_CUSTOM_ATTRIBUTES:sk,invertObject:tk,isCustomComponent:nk,setStyleProp:ik,canTextBeChildOfNode:ok,elementsWithNoTextChildren:B2},ss=$t,B1=U2,ak=["checked","value"],lk=["input","select","textarea"],uk={reset:!0,submit:!0},z2=function(t,n){t=t||{};var r,i,s,o,l,a={},u=t.type&&uk[t.type];for(r in t){if(s=t[r],ss.isCustomAttribute(r)){a[r]=s;continue}if(i=r.toLowerCase(),o=U1(i),o){switch(l=ss.getPropertyInfo(o),ak.indexOf(o)!==-1&&lk.indexOf(n)!==-1&&!u&&(o=U1("default"+i)),a[o]=s,l&&l.type){case ss.BOOLEAN:a[o]=!0;break;case ss.OVERLOADED_BOOLEAN:s===""&&(a[o]=!0);break}continue}B1.PRESERVE_CUSTOM_ATTRIBUTES&&(a[r]=s)}return B1.setStyleProp(t.style,a),a};function U1(e){return ss.possibleStandardNames[e]}var ck=C,dk=z2,nl=U2,fk=nl.setStyleProp,pk=nl.canTextBeChildOfNode;function H2(e,t){t=t||{};for(var n=t.library||ck,r=n.cloneElement,i=n.createElement,s=n.isValidElement,o=[],l,a,u=typeof t.replace=="function",c,d,f,h=t.trim,m=0,y=e.length;m<y;m++){if(l=e[m],u&&(c=t.replace(l),s(c))){y>1&&(c=r(c,{key:c.key||m})),o.push(c);continue}if(l.type==="text"){if(a=!l.data.trim().length,a&&l.parent&&!pk(l.parent)||h&&a)continue;o.push(l.data);continue}switch(d=l.attribs,hk(l)?fk(d.style,d):d&&(d=dk(d,l.name)),f=null,l.type){case"script":case"style":l.children[0]&&(d.dangerouslySetInnerHTML={__html:l.children[0].data});break;case"tag":l.name==="textarea"&&l.children[0]?d.defaultValue=l.children[0].data:l.children&&l.children.length&&(f=H2(l.children,t));break;default:continue}y>1&&(d.key=m),o.push(i(l.name,d,f))}return o.length===1?o[0]:o}function hk(e){return nl.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&nl.isCustomComponent(e.name,e.attribs)}var mk=H2,zl=dp,ri=mA,vk=z2,V2=mk;ri=typeof ri.default=="function"?ri.default:ri;var gk={lowerCaseAttributeNames:!1};function on(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},V2(ri(e,t.htmlparser2||gk),t))}on.domToReact=V2;on.htmlToDOM=ri;on.attributesToProps=vk;on.Comment=zl.Comment;on.Element=zl.Element;on.ProcessingInstruction=zl.ProcessingInstruction;on.Text=zl.Text;var yk=on;on.default=on;const ir=Ri(yk);var Yo=ir.domToReact;ir.htmlToDOM;var Zu=ir.attributesToProps;ir.Comment;ir.Element;ir.ProcessingInstruction;ir.Text;function Ek(){var h,m;const{theme:e,appCode:t}=Yt(),[n,r]=C.useState(""),[i,s]=C.useState(!0),[o,l]=C.useState(!1),[a,u]=C.useState(!1),c=e!=null&&e.is1d?"/help-1d":"/help-2d";C.useEffect(()=>{(async()=>{let y="";y=c+"/application/"+t+"/",!t&&window.location.pathname!=="/adapter"?y=c+"/application/portal/":window.location.pathname==="/adapter"?y=c+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?y=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"))&&(y=c+"/application/userbook/");try{const x=await fetch(y),g=await x.text();if(x.status===404){u(!0);return}r(g),u(!1)}catch(x){u(!0),console.error(x)}})()},[t,c]);const d=(m=(h=ir(n,{replace:y=>{const x=y;if(x.attribs&&x.attribs.id==="TOC")return p.createElement("nav",{id:"TOC"},p.createElement(fo,{onClick:()=>{s(!i)}},p.createElement(sS,null)),Yo(x.children,{replace:g=>{const v=g;if(v.attribs&&v.name==="ul")return p.createElement("ul",{id:"TOC-list",style:{display:i?"block":"none"}},Yo(v.children,{replace:E=>{const w=E;if(w.attribs&&w.name==="a")return p.createElement("a",{...Zu(w.attribs)},p.createElement("span",{onClick:()=>{s(!1)}},Yo(w.children)))}}))}}));if(x.attribs&&x.attribs.class==="section level2"){const g=Zu(y.attribs);return p.createElement("div",{...g,className:"section level2",style:{display:x.attribs.id!=="présentation"?"none":"block"}},Yo(x.children,{replace:v=>{const E=v;if(E.attribs&&E.name==="p")return p.createElement(p.Fragment,null);if(E.attribs&&E.name==="img"){const w=v.attribs.src;return p.createElement("img",{...Zu(E.attribs),src:`${c}/${w}`,alt:""})}}}))}}}))==null?void 0:h.props)==null?void 0:m.children.find(y=>y.type==="body").props.children,f=d==null?void 0:d.find(y=>y.type==="p").props.children;return{html:n,visibility:i,isModalOpen:o,setIsModalOpen:l,parsedContent:d,parsedHeadline:f,error:a}}function Ku({children:e}){return p.createElement("span",{className:"position-absolute badge rounded-pill bg-warning"},e)}function Xu({children:e,className:t,...n}){const r=K("navbar",t);return p.createElement("nav",{className:r,...n},e)}function z1({children:e,className:t,...n}){const r=K("navbar-nav",t);return p.createElement("ul",{className:r,...n},e)}const Ce=C.forwardRef(({children:e,className:t,...n},r)=>{const i=K("nav-item",t);return p.createElement("li",{ref:r,className:i,...n},e)});Ce.displayName="NavItem";const q2=C.forwardRef(({children:e},t)=>p.createElement("span",{className:"visually-hidden",ref:t},e));q2.displayName="VisuallyHidden";const os=q2;function zr({link:e,className:t,children:n,translate:r,...i}){const s=K("nav-link",t);return p.createElement("a",{href:e,className:s,...i},n,r&&p.createElement(os,null,p.createElement("span",{className:"nav-text"},r)))}const W2=C.forwardRef(({children:e},t)=>p.createElement(A1,{id:"my-search-input",className:"search-text input-group py-8 px-12"},p.createElement(A1.Input,{ref:t,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),e));W2.displayName="NavSearch";const wk=()=>{const{i18n:e}=Ir();return p.createElement("div",{className:"widget-footer"},p.createElement("div",{className:"widget-footer-action"},p.createElement("a",{href:"/welcome",className:"link"},e("plus"))))},xk=({bookmarkedApps:e})=>{const{i18n:t}=Ir();return p.createElement("div",{className:"widget-body d-flex flex-wrap"},!e.length&&p.createElement("div",{className:"text-dark"},t("navbar.myapps.more")),e.slice(0,6).map((n,r)=>p.createElement("a",{key:r,href:n.address,className:"bookmarked-app"},p.createElement(jf,{app:n,size:"32"}))))},xp=C.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});xp.displayName="ModalContext";const Q2=()=>{const e=C.useContext(xp);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},Y2=e=>{const{ariaDescriptionId:t}=Q2(),{children:n,className:r}=e,i=K("modal-body",r);return p.createElement("div",{id:t,className:i},n)};Y2.displayName="Modal.Body";const Ck=Y2,G2=e=>p.createElement("div",{className:"modal-footer"},e.children);G2.displayName="Modal.Footer";const Sk=G2,Z2=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:i}=Q2(),s=C.useRef(null);return C.useEffect(()=>{var o;i||((o=s.current)==null||o.focus())},[i]),p.createElement("div",{className:"modal-header"},p.createElement("h2",{id:r,className:"modal-title",tabIndex:-1},n),p.createElement("button",{ref:s,type:"button",className:"btn btn-close","aria-label":"Close",onClick:t}))};Z2.displayName="Modal.Header";const bk=Z2,K2=e=>p.createElement("p",{className:"modal-subtitle"},e.children);K2.displayName="Modal.Subtitle";const _k=K2,X2=C.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:i,size:s="md",scrollable:o,focusId:l,children:a}=e,u=`aria_label_${n}`,c=`aria_desc_${n}`,d=X5(i),f=YC();qC(i,["Escape"]),C.useEffect(()=>{var x;return r&&(document.body.style.overflow="hidden",l&&((x=document.getElementById(l))==null||x.focus())),()=>{document.body.style.overflow=""}},[l,r]);const h=K("modal-dialog",{[`modal-${s}`]:s,"modal-dialog-scrollable":o}),m={ariaLabelId:u,ariaDescriptionId:c,focusId:l},y=up(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return p.createElement(xp.Provider,{value:m},y((x,g)=>p.createElement(p.Fragment,null,g&&p.createElement(ki.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},p.createElement("div",{id:`${n}_ref`,ref:v=>{d.current=v,f.current=v},className:h},p.createElement("div",{className:"modal-content"},a))),g&&p.createElement(ki.div,{className:"modal-backdrop fade show",style:{opacity:.65}}))))}),Ak=Object.assign(X2,{Header:bk,Subtitle:_k,Body:Ck,Footer:Sk});X2.displayName="Modal";const Go=Ak;function H1({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:i}){const{i18n:s}=Yt(),o=()=>{t(!1)};return e?bl.createPortal(p.createElement(Go,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"xl"},p.createElement(Go.Header,{onModalClose:o},s("navbar.help")),p.createElement(Go.Subtitle,null,i?s("help.notfound.title"):n),p.createElement(Go.Body,{className:i?"d-flex":null},i?s("help.notfound.text"):r)),document.getElementById("portal")):null}const J2=C.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const i=K("navbar-brand d-none d-md-block"),s=`logo ${t?"ONE":"NEO"}`;return p.createElement("a",{ref:r,className:i,href:"/timeline/timeline","aria-label":n},p.createElement("img",{className:"logo",src:e,alt:s,width:"300",height:"52"}))});J2.displayName="Logo";const V1=J2,kk=({children:e,className:t})=>{const n=K("popover-body",t);return p.createElement("div",{className:n},e)},Rk=({children:e,className:t})=>{const n=K("popover-footer p-8",t);return p.createElement("div",{className:n},e)},Rd=C.forwardRef(({children:e,className:t,id:n,isVisible:r,...i},s)=>{const o=K("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return up(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((l,a)=>a&&p.createElement(ki.div,{ref:s,"aria-labelledby":n,className:o,role:"tooltip",style:l,...i},e))});Rd.displayName="Popover";function Ok({is1d:e=!1,src:t=""}){const{i18n:n}=Ir(),{user:r,avatar:i}=$f(),{inputRef:s,title:o,bookmarkedApps:l,appsRef:a,isAppsHovered:u,popoverAppsId:c,searchRef:d,isSearchHovered:f,popoverSearchId:h,messages:m,userAvatar:y,userName:x,welcomeUser:g,communityWorkflow:v,conversationWorflow:E,zimbraWorkflow:w,searchWorkflow:b,isCollapsed:S,msgLink:_,redirectToSearch:A,toggleCollapsedNav:D,handleLogout:P}=GC({user:r,avatar:i}),{isModalOpen:V,setIsModalOpen:U,parsedContent:I,parsedHeadline:R,error:O}=Ek(),B=K("header header-react",{"no-2d":e,"no-1d":!e}),T=m>0;return p.createElement("header",{className:B},e?p.createElement(p.Fragment,null,p.createElement("div",{className:"container-fluid"},p.createElement(Xu,null,p.createElement("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline"},o),p.createElement("div",{className:"d-none d-md-inline-flex gap-12 align-items-center"},p.createElement(cd,{alt:x,size:"sm",src:y,variant:"circle",width:"32",height:"32"}),p.createElement("span",{className:"navbar-text"},g)),p.createElement(z1,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation")},E&&p.createElement(Ce,null,p.createElement("a",{href:"/conversation/conversation",className:"nav-link"},p.createElement(ib,{className:"icon notification"}),T&&p.createElement(Ku,null,m),p.createElement(os,null,n("navbar.messages")))),p.createElement(Ce,null,p.createElement(zr,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount")},p.createElement(Sy,{className:"icon user"}))),p.createElement(Ce,null,p.createElement("button",{className:"nav-link",onClick:()=>{U(!0)}},p.createElement(nb,{className:"icon help"}),p.createElement(os,null,n("navbar.help"))),p.createElement(H1,{isHelpOpen:V,setIsHelpOpen:U,parsedContent:I,parsedHeadline:R,error:O})),p.createElement(Ce,null,p.createElement("button",{className:"nav-link",onClick:P},p.createElement(H0,{className:"icon logout"}),p.createElement(os,null,n("navbar.disconnect")))),p.createElement(Ce,{className:"d-md-none"},p.createElement("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!S,"aria-label":n("navbar.secondary.navigation"),onClick:D},p.createElement(ud,{className:"icon rafter-down",width:"20",height:"20"})))))),p.createElement(Xu,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation")},p.createElement("div",{className:"container-fluid"},p.createElement("div",{className:`collapse navbar-collapse ${S?"":"show"}`,id:"navbarCollapsed"},p.createElement(V1,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),p.createElement(z1,{className:"gap-8"},p.createElement(Ce,null,p.createElement("a",{href:"/timeline/timeline",className:"button"},p.createElement(eb,{color:"#fff",className:"d-md-none"}),p.createElement("span",{className:"d-inline-block"},ee.idiom().translate("portal.header.navigation.whatsnew")))),p.createElement(Ce,null,p.createElement("a",{href:"/userbook/annuaire",className:"button"},p.createElement(ub,{color:"#fff",className:"d-md-none"}),p.createElement("span",{className:"d-inline-block"},ee.idiom().translate("portal.header.navigation.classMembers")))),p.createElement(Ce,null,p.createElement("a",{href:"/welcome",className:"button"},p.createElement(V0,{color:"#fff",className:"d-md-none"}),p.createElement("span",{className:"d-inline-block"},ee.idiom().translate("portal.header.navigation.myapps"))))))))):p.createElement(Xu,{className:"navbar-expand-md"},p.createElement("div",{className:"container-fluid"},p.createElement(V1,{src:`${t}/img/illustrations/logo.png`}),p.createElement("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none"},o),p.createElement("ul",{className:"navbar-nav"},p.createElement(Ce,null,p.createElement(zr,{link:"/timeline/timeline",translate:n("navbar.home")},p.createElement(YS,{color:"#fff"}))),p.createElement(Ce,{className:"position-relative",ref:a,id:c,"aria-haspopup":"true","aria-expanded":u},p.createElement(zr,{link:"/welcome",translate:n("navbar.applications")},p.createElement(V0,{color:"#fff"})),p.createElement(Rd,{className:"top-100",id:c,isVisible:u},p.createElement(kk,null,p.createElement(xk,{bookmarkedApps:l})),p.createElement(Rk,{className:"widget-footer border-top border-ghost"},p.createElement(wk,null)))),E&&p.createElement(Ce,null,p.createElement(zr,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation")},p.createElement(q0,{color:"#fff"}),T&&p.createElement(Ku,null,m))),w&&p.createElement(Ce,null,p.createElement(zr,{className:"position-relative",link:_,translate:n("conversation")},p.createElement(q0,{color:"#fff"}),T&&p.createElement(Ku,null,m))),p.createElement(Ce,null,p.createElement("button",{className:"nav-link btn btn-naked",onClick:()=>{U(!0)}},p.createElement(KS,{color:"#fff"}),p.createElement(os,null,n("support"))),p.createElement(H1,{isHelpOpen:V,setIsHelpOpen:U,parsedContent:I,parsedHeadline:R,error:O})),p.createElement(Ce,null,p.createElement("div",{className:"dropdown"},p.createElement("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!S,"aria-label":n("navbar.open.menu"),onClick:D},p.createElement(ud,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})),p.createElement("ul",{className:`dropdown-menu dropdown-menu-end ${S?"":"show"}`,id:"dropdown-navbar"},v&&p.createElement(Ce,null,p.createElement(zr,{link:"/",className:"dropdown-item",translate:n("navbar.community")},p.createElement(qS,{className:"icon community"}))),b&&p.createElement(Ce,{id:h,className:"position-relative",ref:d,"aria-haspopup":"true","aria-expanded":f},p.createElement("a",{href:"/searchengine",className:"nav-link dropdown-item"},p.createElement(ab,{className:"icon search"}),p.createElement("span",{className:"nav-text"},n("navbar.search"))),p.createElement(Rd,{id:h,isVisible:f},p.createElement(W2,{ref:s},p.createElement(HS,{type:"submit",size:"sm",onClick:A,"aria-label":n("explorer.label.search")})))),p.createElement(Ce,null,p.createElement("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item"},p.createElement(cd,{alt:x,size:"sm",src:y,variant:"circle",className:"bg-white",width:"32",height:"32"}),p.createElement("span",{className:"nav-text"},n("navbar.myaccount")))),p.createElement(Ce,null,p.createElement("hr",{className:"dropdown-divider"})),p.createElement(Ce,null,p.createElement("button",{className:"nav-link btn logout",onClick:P},p.createElement(H0,{className:"icon logout"})),p.createElement("span",{className:"nav-text"},n("navbar.disconnect"))))))))))}const eE=({children:e,...t})=>{const{is1d:n,basePath:r}=ry();return p.createElement(p.Fragment,null,p.createElement(Ok,{is1d:n,src:r}),p.createElement(uy,{className:K("d-flex flex-column bg-white",{"rounded-4 border":n,"mt-24":n}),...t},e),p.createElement(zC,{toastOptions:{position:"top-right"}}))};eE.displayName="Layout";const Pk=eE,tE=C.forwardRef(({position:e=!0},t)=>{const n="/assets/themes/ode-bootstrap/images/screen-loading.gif",r=K("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 p.createElement(p.Fragment,null,p.createElement("div",{ref:t,className:r},p.createElement("div",{className:"bg-white rounded-circle mx-auto"},p.createElement("img",{src:n,alt:"loading"}))),!e&&p.createElement("div",{className:"modal-backdrop fade show"}))});tE.displayName="LoadingScreen";const kt=tE;function Fk(e,t,n,r,i,s,o,l,a){const u=f=>{f.preventDefault(),i==null||i(e),f.stopPropagation()},c=f=>{(f.code==="Enter"||f.code==="Space")&&(f.preventDefault(),i==null||i(e),f.stopPropagation())},d=()=>{r(!n),n?s==null||s(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:f=>{f.preventDefault(),d(),f.stopPropagation()},handleItemFoldUnfoldKeyDown:f=>{(f.code==="Enter"||f.code==="Space")&&(f.preventDefault(),d(),f.stopPropagation())},handleItemFocus:f=>{f.preventDefault(),l==null||l(e)},handleItemBlur:f=>{f.preventDefault(),a==null||a(e)}}}const nE=e=>{const{nodeId:t,label:n,children:r,section:i,selected:s,onItemSelect:o,onItemFold:l,onItemUnfold:a,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[f,h]=C.useState(!1),{handleItemClick:m,handleItemKeyDown:y,handleItemFoldUnfoldClick:x,handleItemFoldUnfoldKeyDown:g,handleItemFocus:v,handleItemBlur:E}=Fk(t,n,f,h,o,l,a,u,c);C.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const S=d[d.length-1];d.some(_=>_===t&&t!==S?(h(!0),_===t):(h(!1),!1))}else h(!1)},[t,d]);const w=i?16:12,b=()=>p.createElement("li",{id:`listitem_${t}`,key:t,role:"treeitem","aria-selected":s,"aria-expanded":f},p.createElement("div",null,p.createElement("div",{className:"action-container d-flex align-items-center gap-8 px-2"},p.createElement("div",{className:"py-8",tabIndex:0,role:"button",onClick:x,onKeyDown:g,"aria-label":"fold/unfold button"},Array.isArray(r)&&!f&&p.createElement(U0,{title:"RafterRight",width:w,height:w}),Array.isArray(r)&&f&&p.createElement(ud,{title:"RafterDown",width:w,height:w}),!Array.isArray(r)&&p.createElement(U0,{title:"RafterRight",width:w,height:w,"aria-hidden":"true",className:"opacity-0"})),p.createElement("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:m,onKeyDown:y,onFocus:v,onBlur:E},i&&p.createElement(vS,{title:"Folder",width:20,height:20}),p.createElement("span",{className:"text-truncate"},n))),Array.isArray(r)&&p.createElement("ul",{role:"group"},r)));return i?p.createElement("ul",{role:"tree",className:"m-0 p-0"},b()):b()};nE.displayName="TreeItem";const Tk=nE,rE=C.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:i,onTreeItemUnfold:s,onTreeItemFocus:o,onTreeItemBlur:l,selectedNodesIds:a}=e,[u,c]=C.useState("default");C.useEffect(()=>{a!=null&&a.length&&(a==null?void 0:a.length)>=1?c(a[a.length-1]):c("")},[a]);const d=g=>{c(g),r==null||r(g)},f=g=>{i==null||i(g)},h=g=>{s==null||s(g)},m=g=>{o==null||o(g)},y=g=>{l==null||l(g)},x=g=>p.createElement(Tk,{key:g.id,nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:a,selected:u===g.id,onItemSelect:d,onItemFold:f,onItemUnfold:h,onItemFocus:m,onItemBlur:y},Array.isArray(g.children)?g.children.map(v=>x(v)):null);return p.createElement("div",{ref:t,id:"treeview",className:"treeview"},x(n))});rE.displayName="TreeView";const Dk=rE;class Hl{constructor(t){z(this,"id");z(this,"name");z(this,"childNumber");z(this,"section",!1);z(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const iE=async e=>{const t=await ee.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},Nk=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await ee.resource(e.app).createFolder(r)},Mk=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 ee.resource(t.app).updateFolder(i)},$k=async({searchParams:e,resourceIds:t,folderIds:n})=>{const r={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await ee.resource(e.app).trashAll(r)},Ik=async({searchParams:e,resourceIds:t,folderIds:n})=>{const r={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await ee.resource(e.app).deleteAll(r)},Lk=async({searchParams:e,resourceIds:t,folderIds:n})=>{const r={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await ee.resource(e.app).restoreAll(r)},jk=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r})=>{const i={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await ee.resource(e.app).moveToFolder(i)},Bk=async({searchParams:e,entId:t,shares:n})=>await ee.share().saveRights(e.app,t,n),Uk=async({searchParams:e,params:t})=>await ee.resource(e.app).update(t),zk=async e=>await ee.rights().sessionHasWorkflowRights(e),Hk=({searchParams:e,assetId:t})=>ee.resource(e.app).gotoView(t),Vk=({searchParams:e,safeFolderId:t})=>ee.resource(e.app).gotoForm(t),qk=({searchParams:e,assetId:t})=>ee.resource(e.app).gotoPrint(t),Wk=async({searchParams:e,params:t})=>await ee.resource(e.app).publish(t),Qk=async()=>await ee.conf().getPreference("showOnboardingTrash"),Yk=async({onSuccess:e})=>{const t=await ee.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function Cp(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Eo(e,t){return sE(e,t)||e}function sE(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 l=sE(o,t,r);l&&s.push(l)}return{...r,children:s}}return r}function Gk(e,{parentId:t,newFolder:n}){return Eo(e,r=>{var i;if(r.id===t){const s=[...((i=r.folder)==null?void 0:i.ancestors)||[]],o=Cp([...s,r.id]);return{...r,children:[...r.children||[],new Hl({...n,ancestors:o})]}}else return r})}function Zk(e,{folders:t}){return Eo(e,(n,r)=>{if(!t.includes(n.id))return n})}const Zt=document.querySelector("[data-ode-app]");let Xi;function Vl(){var e;if(Xi)return Xi;if(Xi={app:gr.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=Zt==null?void 0:Zt.dataset)!=null&&e.odeApp){const{odeApp:t}=Zt.dataset;try{const n=JSON.parse(t);Object.assign(Xi,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",Zt==null?void 0:Zt.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",Zt==null?void 0:Zt.dataset);return Xi}function eo(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=eo(e,s),n===void 0))),n)}function Kk(e,{destinationId:t,folders:n}){return Eo(e,(r,i)=>{var s,o;if(t===r.id){const l=[...((s=r.folder)==null?void 0:s.ancestors)||[]],a=Cp([...l,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(f=>f.id))||[];for(const f of n)if(!c.includes(f)){const h=eo(f,e);h&&u.push({...h,folder:{...h==null?void 0:h.folder,ancestors:a}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(i==null?void 0:i.id)?void 0:r})}function Xk(e,{folderId:t,newFolder:n}){return Eo(e,(r,i)=>r.id===t?new Hl(n):r)}const oE=(e,t,n)=>Eo(e,(r,i)=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new Hl(s))),r)),q1=e=>{let t;const n=new Set,r=(a,u)=>{const c=typeof a=="function"?a(t):a;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},i=()=>t,l={setState:r,getState:i,subscribe:a=>(n.add(a),()=>n.delete(a)),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."),n.clear()}};return t=e(r,i,l),l},Jk=e=>e?q1(e):q1;var aE={exports:{}},lE={};/**
243
+ * @license React
244
+ * use-sync-external-store-shim/with-selector.production.min.js
245
+ *
246
+ * Copyright (c) Facebook, Inc. and its affiliates.
247
+ *
248
+ * This source code is licensed under the MIT license found in the
249
+ * LICENSE file in the root directory of this source tree.
250
+ */var ql=C,e6=Gg;function t6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var n6=typeof Object.is=="function"?Object.is:t6,r6=e6.useSyncExternalStore,i6=ql.useRef,s6=ql.useEffect,o6=ql.useMemo,a6=ql.useDebugValue;lE.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=i6(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=o6(function(){function a(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&o.hasValue){var m=o.value;if(i(m,h))return d=m}return d=h}if(m=d,n6(c,h))return m;var y=r(h);return i!==void 0&&i(m,y)?m:(c=h,d=y)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,i]);var l=r6(e,s[0],s[1]);return s6(function(){o.hasValue=!0,o.value=l},[l]),a6(l),l};aE.exports=lE;var l6=aE.exports;const u6=Ri(l6),{useSyncExternalStoreWithSelector:c6}=u6;function d6(e,t=e.getState,n){const r=c6(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return C.useDebugValue(r),r}const W1=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 t=typeof e=="function"?Jk(e):e,n=(r,i)=>d6(t,r,i);return Object.assign(n,t),n},f6=e=>e?W1(e):W1;function p6(e,t){var r;const n=eo(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===ut.BIN?[ut.BIN]:[ut.DEFAULT]}function uE(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>uE(t.id,n)):!1}const{app:h6,types:m6,filters:v6,orders:g6}=Vl(),an=f6()((e,t)=>({filters:v6,orders:g6,searchParams:{app:h6,types:m6,filters:{folder:"default"},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:ut.DEFAULT,name:"Mes blogs",section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,updaters:{setTreeData:n=>e(()=>({treeData:n})),setSearchParams:n=>e(()=>({searchParams: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})),setCurrentFolder:n=>e(()=>({currentFolder:n})),clearSelectedItems:()=>e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>e(()=>({resourceIds:[],folderIds:[]})),openResource:n=>{try{const{searchParams:r}=t();Hk({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},createResource:()=>{try{const{searchParams:n,currentFolder:r}=t(),i=parseInt((r==null?void 0:r.id)||"default"),s=isNaN(i)?void 0:i;Vk({searchParams:n,safeFolderId:s})}catch(n){console.error("explorer create failed: ",n)}},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]);qk({searchParams:n,assetId:s.assetId})}catch(n){console.error("explorer print failed: ",n)}},publishApi:async(n,r)=>{const{searchParams:i}=t();return await Wk({searchParams:i,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:i,treeData:s}=t(),o=i.filters.folder,l=p6(n,s),a=Cp([...l,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:a,currentFolder:r||{id:n},searchParams:{...i,filters:{...i.filters,folder:n},trashed:n===ut.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:i,searchParams:s}=t();if(e(o=>({...o,status:"unfold"})),!uE(n,i)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await iE({...s,filters:{...s.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(l=>{var a;return{...l,treeData:oE(i,(a=o==null?void 0:o.pages[0])==null?void 0:a.folders,n||ut.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:i}=t().updaters,s=eo(n,r);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=eo(n[s-2],r);i({folder:o,folderId:(o==null?void 0:o.id)||ut.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],resourceIds:[],folderIds:[],searchParams:{...n.searchParams,filters:{folder:ut.BIN},trashed:!0},currentFolder:{id:ut.BIN}}))}})),ln=()=>an(e=>e.searchParams),Sp=()=>an(e=>e.selectedNodesIds),Ni=()=>an(e=>e.treeData),y6=()=>an(e=>e.selectedFolders),cE=()=>an(e=>e.selectedResources),wo=()=>an(e=>e.folderIds),Mi=()=>an(e=>e.resourceIds),xo=()=>an(e=>e.currentFolder),wt=()=>an(e=>e.updaters),Wl=()=>{const e=xo();return(e==null?void 0:e.id)===ut.BIN},dE=()=>an(e=>e.resourceIsTrash),E6=()=>{const e=xo();return(e==null?void 0:e.id)==="default"},w6=()=>Sp().length>1,{actions:Q1}=Vl(),fE=()=>Mf({queryKey:["actions"],queryFn:async()=>{const e=Q1.map(n=>n.workflow);return await zk(e)},select:e=>Q1.map(t=>({...t,available:e[t.workflow]}))}),pE=()=>{const{i18n:e}=Yt(),t=Mt(),n=ln(),r=xo(),i=Ni(),{setTreeData:s,setSearchParams:o}=wt(),l=["context",{folderId:n.filters.folder,trashed:n.trashed}];return W5({queryKey:l,queryFn:async({pageParam:a=0})=>await iE({...n,pagination:{...n.pagination,startIdx:a}}),onSuccess:async a=>{var c,d;await t.cancelQueries({queryKey:l});const u=(c=a==null?void 0:a.pages[0])==null?void 0:c.folders;(r==null?void 0:r.id)==="default"?s({id:ut.DEFAULT,section:!0,children:u.map(f=>new Hl(f)),name:e("explorer.filters.mine")}):s(oE(i,u,n.filters.folder||ut.DEFAULT)),o({...n,pagination:(d=a==null?void 0:a.pages[(a==null?void 0:a.pages.length)-1])==null?void 0:d.pagination})},getNextPageParam:a=>a.pagination.startIdx+a.pagination.pageSize})},X8=()=>{const e=Mt(),t=ln(),n=Ni(),r=wo(),i=Mi(),{clearSelectedItems:s,clearSelectedIds:o,setTreeData:l}=wt(),a=["context",{folderId:t.filters.folder,trashed:t.trashed}];return Jn({mutationFn:async()=>await $k({searchParams:t,folderIds:r,resourceIds:i}),onSuccess:async()=>{if(await e.cancelQueries({queryKey:a}),e.getQueryData(a))return e.setQueryData(a,c=>{if(c){const d={...c,pages:c==null?void 0:c.pages.map(h=>({...h,folders:h.folders.filter(m=>!r.includes(m.id)),resources:h.resources.filter(m=>!i.includes(m.id))}))},f=Zk(n,{folders:r});return l(f),d}})},onSettled:()=>{s(),o()}})},x6=()=>{const e=Mt(),t=ln(),n=wo(),r=Mi(),{setFolderIds:i,setResourceIds:s,setSelectedResources:o,setSelectedFolders:l}=wt(),a=["context",{folderId:t.filters.folder,trashed:t.trashed}];return Jn({mutationFn:async()=>await Lk({searchParams:t,folderIds:n,resourceIds:r}),onSuccess:async()=>{if(await e.cancelQueries({queryKey:a}),e.getQueryData(a))return e.setQueryData(a,c=>{if(c)return{...c,pages:c==null?void 0:c.pages.map(d=>({...d,folders:d.folders.filter(f=>!n.includes(f.id)),resources:d.resources.filter(f=>!r.includes(f.id))}))}})},onSettled:()=>{s([]),o([]),i([]),l([])}})},J8=()=>{const e=Mt(),t=ln(),n=wo(),r=Mi(),{clearSelectedItems:i,clearSelectedIds:s}=wt(),o=["context",{folderId:t.filters.folder,trashed:t.trashed}];return Jn({mutationFn:async()=>await Ik({searchParams:t,folderIds:n,resourceIds:r}),onSuccess:async()=>{if(await e.cancelQueries({queryKey:o}),e.getQueryData(o))return e.setQueryData(o,a=>{if(a)return{...a,pages:a==null?void 0:a.pages.map(c=>({...c,folders:c.folders.filter(d=>!n.includes(d.id)),resources:c.resources.filter(d=>!r.includes(d.id))}))}})},onSettled:()=>{i(),s()}})},eR=()=>{const e=Mt(),t=ln(),n=Ni(),r=wo(),i=Mi(),{clearSelectedIds:s,clearSelectedItems:o,setTreeData:l}=wt(),a=["context",{folderId:t.filters.folder,trashed:t.trashed}];return Jn({mutationFn:async u=>await jk({searchParams:t,folderId:u,folderIds:r,resourceIds:i}),onSuccess:async(u,c)=>{if(e.getQueryData(a))return e.setQueryData(a,f=>{if(f){const h=Kk(n,{destinationId:c,folders:r});return l(h),{...f,pages:f==null?void 0:f.pages.map(m=>({...m,folders:m.folders.filter(y=>!r.includes(y.id)),resources:m.resources.filter(y=>!i.includes(y.id))}))}}})},onSettled:()=>{o(),s()}})},tR=()=>{const e=Mt(),t=ln(),n=Ni(),{setTreeData:r}=wt(),i=["context",{folderId:t.filters.folder,trashed:t.trashed}];return Jn({mutationFn:async({name:s,parentId:o})=>await Nk({searchParams:t,name:s,parentId:o}),onSuccess:async(s,o)=>{await e.cancelQueries({queryKey:i});const l=e.getQueryData(i),a={...s,parentId:o.parentId,children:[],rights:[`creator:${s==null?void 0:s.creator_id}`]};if(l)return e.setQueryData(i,u=>{if(u){const c={...u,pages:u==null?void 0:u.pages.map(f=>({...f,folders:[...f.folders,a]}))},d=Gk(n,{parentId:o.parentId,newFolder:a});return r(d),c}})},onSettled:async()=>await e.cancelQueries({queryKey:i})})},nR=()=>{const e=Mt(),t=ln(),n=Ni(),{setFolderIds:r,setSelectedFolders:i,setTreeData:s}=wt(),o=["context",{folderId:t.filters.folder,trashed:t.trashed}];return Jn({mutationFn:async({folderId:l,name:a,parentId:u})=>await Mk({searchParams:t,folderId:l,parentId:u,name:a}),onSuccess:async(l,a)=>{if(await e.cancelQueries({queryKey:o}),e.getQueryData(o))return e.setQueryData(o,c=>{if(c){const d={...c,pages:c==null?void 0:c.pages.map(h=>({...h,folders:h.folders.map(m=>m.id===l.id?{...l,parentId:a.parentId,rights:m.rights}:m)}))},f=Xk(n,{folderId:a.folderId,newFolder:l});return s(f),d}})},onSettled:()=>{r([]),i([])}})},rR=()=>{const e=Mt(),t=ln(),{setResourceIds:n,setSelectedResources:r}=wt(),i=["context",{folderId:t.filters.folder,trashed:t.trashed}];return Jn({mutationFn:async({entId:s,shares:o})=>await Bk({searchParams:t,entId:s,shares:o}),onSuccess:async(s,o)=>{if(await e.cancelQueries({queryKey:i}),e.getQueryData(i))return e.setQueryData(i,a=>{if(a)return{...a,pages:a==null?void 0:a.pages.map(u=>({...u,resources:u.resources.map(c=>c.assetId===(o==null?void 0:o.entId)?{...c,shared:(o==null?void 0:o.shares.length)>0}:c)}))}})},onSettled:()=>{n([]),r([])}})},iR=()=>{const e=Mt(),t=ln(),n=["context",{folderId:t.filters.folder,trashed:t.trashed}];return Jn({mutationFn:async r=>await Uk({searchParams:t,params:r}),onSuccess:async(r,i)=>{if(await e.cancelQueries({queryKey:n}),e.getQueryData(n))return e.setQueryData(n,o=>{if(o)return{...o,pages:o==null?void 0:o.pages.map(l=>({...l,resources:l.resources.map(a=>{if(a.assetId===(i==null?void 0:i.entId)){const{name:u,thumbnail:c,public:d,description:f,slug:h,entId:m,...y}=i;return{...a,...y,name:u,thumbnail:c,public:d,description:f,slug:h}}else return a})}))}})}})},{trashActions:C6}=Vl();function S6(){const[e,t]=C.useState(!1),[n,r]=C.useState("void"),[i,s]=C.useState(),{i18n:o}=Ir(),{hotToast:l}=HC(IS),a=xo(),u=Mi(),c=cE(),d=y6(),f=wo(),h=Wl(),m=x6(),y=dE(),{openResource:x,createResource:g,printSelectedResource:v,openFolder:E,clearSelectedItems:w,clearSelectedIds:b}=wt(),{data:S}=fE();C.useEffect(()=>{if(u.length===0&&f.length===0){t(!1);return}if(y){t(!1);return}t(!0)},[u,f]);async function _(Z){var fe;switch((fe=document.getElementById("root"))==null||fe.setAttribute("aria-hidden","true"),s(Z),Z.id){case Y.OPEN:return u.length>0?x(c[0]):E({folder:d[0],folderId:d[0].id});case Y.CREATE:return g();case Y.MOVE:return r("move");case Y.PRINT:return v();case Y.DELETE:return r("delete");case Y.RESTORE:return await P();case Y.PUBLISH:return r("publish");case Y.UPD_PROPS:case"edit":return J();case Y.SHARE:return r("share");default:throw Error(`Unknown action: ${Z.id}`)}}function A(Z){const fe=u.length+f.length,re=u.length===1||f.length===1,Pe=fe===1,xt=f.length===0;switch(Z.id){case Y.OPEN:return Pe;case Y.MANAGE:return re;case Y.PUBLISH:return re&&xt;case Y.UPD_PROPS:return re&&xt;case Y.SHARE:return xt&&re;case Y.PRINT:return re&&xt;case"edit":return Pe;default:return!0}}function D(){return!0}async function P(){try{if(h)await m.mutate(),l.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");V()}catch(Z){console.error(Z)}}function V(){var Z;r("void"),i!=null&&i.id&&((Z=document.getElementById(i==null?void 0:i.id))==null||Z.focus())}const U=Z=>()=>{n===Z&&(V(),w(),b())},I=U("move"),R=U("move"),O=U("delete"),B=U("delete"),T=U("publish"),k=U("publish"),F=U("edit_folder"),j=U("edit_folder"),W=U("edit_resource"),q=U("edit_resource"),ie=U("share"),ae=U("share");function J(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function le(Z){return Z.id==="edit"&&f.length>0?"explorer.rename":`explorer.actions.${Z.id}`}return{onRestore:P,actions:h?C6:S,selectedElement:[...c,...d],currentFolderId:a==null?void 0:a.id,overrideLabel:le,handleClick:_,isActivable:h?D:A,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:I,onMoveSuccess:R,isDeleteModalOpen:n==="delete",onDeleteCancel:B,onDeleteSuccess:O,isPublishModalOpen:n==="publish",onPublishCancel:k,onPublishSuccess:T,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:j,onEditFolderSuccess:F,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:q,onEditResourceSuccess:W,isShareResourceOpen:n==="share",onShareResourceCancel:ae,onShareResourceSuccess:ie,onClearActionBar:V}}function b6({roles:e,rights:t}){const[n,r]=C.useState(!1);C.useEffect(()=>{o()},[e,t]);const i=async function(l){const a=l instanceof Array?l:[l];if(e instanceof Array){const u=await ee.rights().sessionHasAtLeastOneResourceRight(e,a);r(u)}else{const u=await ee.rights().sessionHasResourceRight(e,a);r(u)}},s=async function(l){if(e instanceof Array){const a=await ee.rights().sessionHasAtLeastOneResourceRightForEachList(e,l);r(a)}else{const a=await ee.rights().sessionHasResourceRightForEachList(e,l);r(a)}},o=async function(){if(e===void 0){r(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await i(t);else{const l=t.map(a=>a.rights);await s(l)}else r(!1);else typeof t=="string"?await i(t):await i(t.rights)};return{visible:n,refreshState:o}}function _6({resourceRights:e,roleExpected:t,children:n,renderWhenForbidden:r}){const{visible:i}=b6({roles:t,rights:e});return i?N.jsx(N.Fragment,{children:n}):r?r():N.jsx(N.Fragment,{})}const A6=C.lazy(async()=>await He(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","SelectList.js"])),k6=C.lazy(async()=>await He(()=>import("./DeleteModal.js"),[])),R6=C.lazy(async()=>await He(()=>import("./MoveModal.js"),[])),O6=C.lazy(async()=>await He(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),P6=C.lazy(async()=>await He(()=>import("./EditResourceModal.js"),["EditResourceModal.js","ImagePicker.js","index.esm.js"])),F6=C.lazy(async()=>await He(()=>import("./PublishModal.js"),["PublishModal.js","SelectList.js","ImagePicker.js","index.esm.js"]));function T6(){const{i18n:e}=Ir(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:i,isPublishModalOpen:s,isActionBarOpen:o,isEditFolderOpen:l,overrideLabel:a,onEditFolderCancel:u,onEditFolderSuccess:c,isEditResourceOpen:d,onEditResourceCancel:f,onEditResourceSuccess:h,isShareResourceOpen:m,onShareResourceCancel:y,onShareResourceSuccess:x,onMoveCancel:g,onMoveSuccess:v,onDeleteCancel:E,onDeleteSuccess:w,onPublishCancel:b,onPublishSuccess:S,isActivable:_,handleClick:A}=S6(),D=up(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return N.jsxs(N.Fragment,{children:[D((P,V)=>V&&N.jsx(ki.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:P,children:N.jsx(KC,{children:t==null?void 0:t.filter(U=>U.available&&U.target==="actionbar").map(U=>_(U)&&N.jsx(_6,{resourceRights:n,roleExpected:U.right,children:N.jsx(fo,{id:U.id,type:"button",color:"primary",variant:"filled",onClick:()=>{A(U)},children:e(a(U))},U.id)},U.id))})})),N.jsxs(C.Suspense,{fallback:N.jsx(kt,{}),children:[r&&N.jsx(R6,{isOpen:r,onCancel:g,onSuccess:v}),i&&N.jsx(k6,{isOpen:i,onCancel:E,onSuccess:w}),s&&N.jsx(F6,{isOpen:s,onCancel:b,onSuccess:S}),l&&N.jsx(O6,{edit:!0,isOpen:l,onCancel:u,onSuccess:c}),d&&N.jsx(P6,{edit:!0,isOpen:d,onCancel:f,onSuccess:h}),m&&N.jsx(A6,{isOpen:m,onCancel:y,onSuccess:x})]})]})}const D6=({children:e})=>N.jsx("div",{className:"d-flex justify-content-between p-16 mx-n16 border-bottom",children:e}),N6=C.lazy(async()=>await He(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js"])),M6=C.lazy(async()=>await He(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js"])),$6=C.lazy(async()=>await He(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js"])),I6=C.lazy(async()=>await He(()=>import("./FoldersList.js"),[])),L6=C.lazy(async()=>await He(()=>Promise.resolve().then(()=>G6),void 0)),j6=()=>{const e=E6(),t=Wl(),n=w6(),{data:r,isLoading:i}=pE(),s=(r==null?void 0:r.pages[0].folders.length)===0,o=(r==null?void 0:r.pages[0].resources.length)===0,l=s&&o;return N.jsxs(C.Suspense,{fallback:N.jsx(kt,{}),children:[!l&&!i&&N.jsxs(C.Suspense,{fallback:N.jsx(kt,{}),children:[N.jsx(I6,{}),N.jsx(L6,{})]}),e&&l&&N.jsx(C.Suspense,{fallback:N.jsx(kt,{}),children:N.jsx(N6,{})}),n&&l&&!t&&N.jsx(C.Suspense,{fallback:N.jsx(kt,{}),children:N.jsx(M6,{})}),t&&(r==null?void 0:r.pages[0].resources.length)===0&&N.jsx(C.Suspense,{fallback:N.jsx(kt,{}),children:N.jsx($6,{})})]})};var hE={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(De,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",l="minute",a="hour",u="day",c="week",d="month",f="quarter",h="year",m="date",y="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,v={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(I){var R=["th","st","nd","rd"],O=I%100;return"["+I+(R[(O-20)%10]||R[O]||R[0])+"]"}},E=function(I,R,O){var B=String(I);return!B||B.length>=R?I:""+Array(R+1-B.length).join(O)+I},w={s:E,z:function(I){var R=-I.utcOffset(),O=Math.abs(R),B=Math.floor(O/60),T=O%60;return(R<=0?"+":"-")+E(B,2,"0")+":"+E(T,2,"0")},m:function I(R,O){if(R.date()<O.date())return-I(O,R);var B=12*(O.year()-R.year())+(O.month()-R.month()),T=R.clone().add(B,d),k=O-T<0,F=R.clone().add(B+(k?-1:1),d);return+(-(B+(O-T)/(k?T-F:F-T))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:d,y:h,w:c,d:u,D:m,h:a,m:l,s:o,ms:s,Q:f}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},b="en",S={};S[b]=v;var _=function(I){return I instanceof V},A=function I(R,O,B){var T;if(!R)return b;if(typeof R=="string"){var k=R.toLowerCase();S[k]&&(T=k),O&&(S[k]=O,T=k);var F=R.split("-");if(!T&&F.length>1)return I(F[0])}else{var j=R.name;S[j]=R,T=j}return!B&&T&&(b=T),T||!B&&b},D=function(I,R){if(_(I))return I.clone();var O=typeof R=="object"?R:{};return O.date=I,O.args=arguments,new V(O)},P=w;P.l=A,P.i=_,P.w=function(I,R){return D(I,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var V=function(){function I(O){this.$L=A(O.locale,null,!0),this.parse(O)}var R=I.prototype;return R.parse=function(O){this.$d=function(B){var T=B.date,k=B.utc;if(T===null)return new Date(NaN);if(P.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var F=T.match(x);if(F){var j=F[2]-1||0,W=(F[7]||"0").substring(0,3);return k?new Date(Date.UTC(F[1],j,F[3]||1,F[4]||0,F[5]||0,F[6]||0,W)):new Date(F[1],j,F[3]||1,F[4]||0,F[5]||0,F[6]||0,W)}}return new Date(T)}(O),this.$x=O.x||{},this.init()},R.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},R.$utils=function(){return P},R.isValid=function(){return this.$d.toString()!==y},R.isSame=function(O,B){var T=D(O);return this.startOf(B)<=T&&T<=this.endOf(B)},R.isAfter=function(O,B){return D(O)<this.startOf(B)},R.isBefore=function(O,B){return this.endOf(B)<D(O)},R.$g=function(O,B,T){return P.u(O)?this[B]:this.set(T,O)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(O,B){var T=this,k=!!P.u(B)||B,F=P.p(O),j=function(fe,re){var Pe=P.w(T.$u?Date.UTC(T.$y,re,fe):new Date(T.$y,re,fe),T);return k?Pe:Pe.endOf(u)},W=function(fe,re){return P.w(T.toDate()[fe].apply(T.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(re)),T)},q=this.$W,ie=this.$M,ae=this.$D,J="set"+(this.$u?"UTC":"");switch(F){case h:return k?j(1,0):j(31,11);case d:return k?j(1,ie):j(0,ie+1);case c:var le=this.$locale().weekStart||0,Z=(q<le?q+7:q)-le;return j(k?ae-Z:ae+(6-Z),ie);case u:case m:return W(J+"Hours",0);case a:return W(J+"Minutes",1);case l:return W(J+"Seconds",2);case o:return W(J+"Milliseconds",3);default:return this.clone()}},R.endOf=function(O){return this.startOf(O,!1)},R.$set=function(O,B){var T,k=P.p(O),F="set"+(this.$u?"UTC":""),j=(T={},T[u]=F+"Date",T[m]=F+"Date",T[d]=F+"Month",T[h]=F+"FullYear",T[a]=F+"Hours",T[l]=F+"Minutes",T[o]=F+"Seconds",T[s]=F+"Milliseconds",T)[k],W=k===u?this.$D+(B-this.$W):B;if(k===d||k===h){var q=this.clone().set(m,1);q.$d[j](W),q.init(),this.$d=q.set(m,Math.min(this.$D,q.daysInMonth())).$d}else j&&this.$d[j](W);return this.init(),this},R.set=function(O,B){return this.clone().$set(O,B)},R.get=function(O){return this[P.p(O)]()},R.add=function(O,B){var T,k=this;O=Number(O);var F=P.p(B),j=function(ie){var ae=D(k);return P.w(ae.date(ae.date()+Math.round(ie*O)),k)};if(F===d)return this.set(d,this.$M+O);if(F===h)return this.set(h,this.$y+O);if(F===u)return j(1);if(F===c)return j(7);var W=(T={},T[l]=r,T[a]=i,T[o]=n,T)[F]||1,q=this.$d.getTime()+O*W;return P.w(q,this)},R.subtract=function(O,B){return this.add(-1*O,B)},R.format=function(O){var B=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var k=O||"YYYY-MM-DDTHH:mm:ssZ",F=P.z(this),j=this.$H,W=this.$m,q=this.$M,ie=T.weekdays,ae=T.months,J=function(re,Pe,xt,Lr){return re&&(re[Pe]||re(B,k))||xt[Pe].slice(0,Lr)},le=function(re){return P.s(j%12||12,re,"0")},Z=T.meridiem||function(re,Pe,xt){var Lr=re<12?"AM":"PM";return xt?Lr.toLowerCase():Lr},fe={YY:String(this.$y).slice(-2),YYYY:this.$y,M:q+1,MM:P.s(q+1,2,"0"),MMM:J(T.monthsShort,q,ae,3),MMMM:J(ae,q),D:this.$D,DD:P.s(this.$D,2,"0"),d:String(this.$W),dd:J(T.weekdaysMin,this.$W,ie,2),ddd:J(T.weekdaysShort,this.$W,ie,3),dddd:ie[this.$W],H:String(j),HH:P.s(j,2,"0"),h:le(1),hh:le(2),a:Z(j,W,!0),A:Z(j,W,!1),m:String(W),mm:P.s(W,2,"0"),s:String(this.$s),ss:P.s(this.$s,2,"0"),SSS:P.s(this.$ms,3,"0"),Z:F};return k.replace(g,function(re,Pe){return Pe||fe[re]||F.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(O,B,T){var k,F=P.p(B),j=D(O),W=(j.utcOffset()-this.utcOffset())*r,q=this-j,ie=P.m(this,j);return ie=(k={},k[h]=ie/12,k[d]=ie,k[f]=ie/3,k[c]=(q-W)/6048e5,k[u]=(q-W)/864e5,k[a]=q/i,k[l]=q/r,k[o]=q/n,k)[F]||q,T?ie:P.a(ie)},R.daysInMonth=function(){return this.endOf(d).$D},R.$locale=function(){return S[this.$L]},R.locale=function(O,B){if(!O)return this.$L;var T=this.clone(),k=A(O,B,!0);return k&&(T.$L=k),T},R.clone=function(){return P.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},I}(),U=V.prototype;return D.prototype=U,[["$ms",s],["$s",o],["$m",l],["$H",a],["$W",u],["$M",d],["$y",h],["$D",m]].forEach(function(I){U[I[1]]=function(R){return this.$g(R,I[0],I[1])}}),D.extend=function(I,R){return I.$i||(I(R,V,D),I.$i=!0),D},D.locale=A,D.isDayjs=_,D.unix=function(I){return D(1e3*I)},D.en=S[b],D.Ls=S,D.p={},D})})(hE);var $i=hE.exports;const mE=Ri($i);var vE={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(De,function(){return function(n,r,i){n=n||{};var s=r.prototype,o={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 l(u,c,d,f){return s.fromToBase(u,c,d,f)}i.en.relativeTime=o,s.fromToBase=function(u,c,d,f,h){for(var m,y,x,g=d.$locale().relativeTime||o,v=n.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"}],E=v.length,w=0;w<E;w+=1){var b=v[w];b.d&&(m=f?i(u).diff(d,b.d,!0):d.diff(u,b.d,!0));var S=(n.rounding||Math.round)(Math.abs(m));if(x=m>0,S<=b.r||!b.r){S<=1&&w>0&&(b=v[w-1]);var _=g[b.l];h&&(S=h(""+S)),y=typeof _=="string"?_.replace("%d",S):_(S,c,b.l,x);break}}if(c)return y;var A=x?g.future:g.past;return typeof A=="function"?A(y):A.replace("%s",y)},s.to=function(u,c){return l(u,c,this,!0)},s.from=function(u,c){return l(u,c,this)};var a=function(u){return u.$u?i.utc():i()};s.toNow=function(u){return this.to(a(this),u)},s.fromNow=function(u){return this.from(a(this),u)}}})})(vE);var B6=vE.exports;const U6=Ri(B6);function z6(e){const{rights:t,creatorId:n}=e,r=t.filter(s=>!s.includes(n));return r.length>1&&!r.includes(n)}var H6={exports:{}};(function(e,t){(function(n,r){e.exports=r($i)})(De,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),s={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 o(a,u,c){var d=s[c];return Array.isArray(d)&&(d=d[u?0:1]),d.replace("%d",a)}var l={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(a){return a+"."},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:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o}};return i.default.locale(l,null,!0),l})})(H6);var V6={exports:{}};(function(e,t){(function(n,r){e.exports=r($i)})(De,function(n){function r(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=r(n),s={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(o){return o+"º"}};return i.default.locale(s,null,!0),s})})(V6);var q6={exports:{}};(function(e,t){(function(n,r){e.exports=r($i)})(De,function(n){function r(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=r(n),s={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(o){return o+"º"},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 i.default.locale(s,null,!0),s})})(q6);var W6={exports:{}};(function(e,t){(function(n,r){e.exports=r($i)})(De,function(n){function r(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=r(n),s={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(o){return""+o+(o===1?"er":"")}};return i.default.locale(s,null,!0),s})})(W6);var Q6={exports:{}};(function(e,t){(function(n,r){e.exports=r($i)})(De,function(n){function r(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=r(n),s={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(o){return o+"º"}};return i.default.locale(s,null,!0),s})})(Q6);mE.extend(U6);const Y6=()=>{const{currentApp:e,currentLanguage:t,i18n:n}=Yt(),{avatar:r}=$f(),{data:i,isFetching:s,fetchNextPage:o}=pE(),l=ln(),a=Mi(),u=cE(),{setSelectedResources:c,setResourceIds:d,openResource:f,setResourceIsTrash:h}=wt(),m=P7({from:{opacity:0},to:{opacity:1}}),x=l.pagination.startIdx+l.pagination.pageSize-1<(l.pagination.maxIdx||0),g=C.useCallback(()=>{o()},[]),v=b=>{b.trashed?(h(!0),d([b.id])):f(b)};function E(b){a.includes(b.id)?(d(a.filter(S=>S!==b.id)),c(u.filter(S=>S.id!==b.id))):(d([...a,b.id]),c([...u,b]))}const w=K("grid ps-0 list-unstyled");return N.jsxs(p.Fragment,{children:[N.jsx(ki.ul,{className:w,children:i==null?void 0:i.pages.map((b,S)=>N.jsx(p.Fragment,{children:b.resources.map(_=>{const{id:A,creatorName:D,name:P,thumbnail:V,updatedAt:U}=_,I=z6(_),R=mE(U).locale(t).fromNow();return N.jsx(ki.li,{className:"g-col-4",style:{...m},children:N.jsx(__,{app:e,className:"c-pointer",creatorName:D,isPublic:_.public,isSelected:a.includes(_.id),isLoading:s,isShared:I,messagePublic:n("tooltip.public"),messageShared:n("tooltip.shared"),name:P,onOpen:()=>v(_),onSelect:()=>E(_),resourceSrc:V,updatedAt:R,userSrc:r})},A)})},S))}),x&&N.jsx("div",{className:"d-grid gap-2 col-4 mx-auto my-24",children:N.jsx(fo,{type:"button",color:"secondary",variant:"filled",onClick:g,children:n("explorer.see.more")})})]})},G6=Object.freeze(Object.defineProperty({__proto__:null,default:Y6},Symbol.toStringTag,{value:"Module"})),Z6=({id:e,selected:t,onSelect:n})=>{const{i18n:r}=Ir();return N.jsx("div",{className:"treeview",children:N.jsx("ul",{role:"tree",className:"m-0 p-0",children:N.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:N.jsx("div",{children:N.jsx("div",{className:"action-container",children:N.jsx("div",{onClick:n,role:"button",tabIndex:0,children:N.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[N.jsx(uS,{width:"20",height:"20"}),N.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},K6=C.lazy(async()=>await He(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),X6=()=>{const e=Mt(),{i18n:t}=Ir(),[n,r]=QC(),i=Ni(),s=Wl(),o=Sp(),{goToTrash:l,selectTreeItem:a,unfoldTreeItem:u,foldTreeItem:c}=wt(),d=async f=>{await u(f,e)};return i?N.jsxs(N.Fragment,{children:[N.jsx(Dk,{data:i,selectedNodesIds:o,onTreeItemSelect:a,onTreeItemFold:c,onTreeItemUnfold:d}),N.jsx(Z6,{id:ut.BIN,selected:s,onSelect:l}),N.jsx("div",{className:"d-grid my-16",children:N.jsx(fo,{disabled:s,type:"button",color:"primary",variant:"outline",leftIcon:N.jsx(AS,{}),onClick:r,children:t("explorer.folder.new")})}),N.jsx(C.Suspense,{fallback:N.jsx(kt,{}),children:n&&N.jsx(K6,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null};function J6(){const{i18n:e}=Yt(),t=Sp(),n=Wl(),r=xo(),{gotoPreviousFolder:i}=wt(),s=e("explorer.tree.trash"),o=e("explorer.filters.mine"),l=(r==null?void 0:r.name)||o;return N.jsx("div",{className:"py-16",children:t.length>1&&!n?N.jsxs("div",{className:"d-flex align-items-center gap-8",children:[N.jsx(Bf,{icon:N.jsx(tS,{}),variant:"ghost",color:"tertiary","aria-label":e("back"),className:"ms-n16",onClick:i}),N.jsx("p",{className:"body py-8 text-truncate",children:N.jsx("strong",{children:l})})]}):N.jsx("h2",{className:"body py-8 fw-bold",children:n?s:o})})}const e8=()=>{const[e,t]=C.useState(!1),[n,r]=C.useState(!0);return C.useEffect(()=>{(async()=>{const s=await Qk();if(s){t(JSON.parse(s==null?void 0:s.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await Yk({onSuccess:()=>r(!1)})},setIsOpen:r}},t8=()=>{const e=dE(),{clearSelectedIds:t,setResourceIsTrash:n}=wt();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),n(!1)}}},n8=C.lazy(async()=>await He(()=>import("./OnboardingTrash.js"),[])),r8=C.lazy(async()=>await He(()=>import("./AppAction.js"),[])),i8=C.lazy(async()=>await He(()=>import("./Library.js"),[])),s8=C.lazy(async()=>await He(()=>import("./TrashedResourceModal.js"),[]));function o8(){const{currentApp:e}=Yt(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:i}=e8(),{data:s}=fE(),{isTrashedModalOpen:o,onTrashedCancel:l}=t8(),a=s==null?void 0:s.find(c=>c.id==="publish"),u=c=>{const d=s==null?void 0:s.filter(f=>f.id===c&&f.available);return d&&d.length>0};return N.jsxs(N.Fragment,{children:[N.jsxs(D6,{children:[N.jsxs(z0,{app:e,isHeading:!0,headingStyle:"h3",level:"h1",children:[N.jsx(jf,{app:e,size:"40"}),N.jsx(z0.Name,{})]}),u("create")&&N.jsx(C.Suspense,{fallback:N.jsx(kt,{}),children:N.jsx(r8,{})})]}),N.jsxs(Cs,{className:"flex-grow-1",children:[N.jsxs(Cs.Col,{sm:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[N.jsx(X6,{}),(a==null?void 0:a.available)&&N.jsx(C.Suspense,{fallback:N.jsx(kt,{}),children:N.jsx(i8,{})})]}),N.jsxs(Cs.Col,{sm:"4",md:"8",lg:"9",children:[N.jsx(J6,{}),N.jsx(j6,{})]}),N.jsx(T6,{}),t&&N.jsx(C.Suspense,{fallback:N.jsx(kt,{}),children:N.jsx(n8,{isOpen:n,setIsOpen:r,handleSavePreference:i})}),o&&N.jsx(C.Suspense,{fallback:N.jsx(kt,{}),children:N.jsx(s8,{isOpen:o,onCancel:l})})]})]})}function a8(){const{init:e}=Yt();return e?e?N.jsx(Pk,{children:N.jsx(o8,{})}):null:N.jsx(kt,{position:!1})}const l8=document.getElementById("root"),u8=new gx({queryCache:new Bm({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});ay(l8).render(N.jsx(C.StrictMode,{children:N.jsxs(D5,{client:u8,children:[N.jsx(G5,{params:Vl(),children:N.jsx(a8,{})}),N.jsx(ZC,{initialIsOpen:!1})]})}));export{up as $,IS as A,fo as B,J8 as C,X8 as D,Wl as E,A1 as F,eR as G,jS as H,Lf as I,y6 as J,Mt as K,zS as L,Go as M,Ni as N,Dk as O,xo as P,tR as Q,p as R,AS as S,r1 as T,nR as U,os as V,ut as W,Q7 as X,Y7 as Y,q8 as Z,S_ as _,bl as a,ki as a0,Q8 as a1,cp as a2,Rm as a3,Mi as a4,at as a5,W8 as a6,uS as a7,jf as a8,fE as a9,pE as aa,wo as ab,P7 as ac,__ as ad,wt as b,z8 as c,S6 as d,K as e,cE as f,Vl as g,Ir as h,ln as i,N as j,gr as k,$f as l,iR as m,rR as n,HC as o,H8 as p,cd as q,C as r,ud as s,Bf as t,Yt as u,ee as v,V8 as w,Y8 as x,wS as y,W7 as z};