ode-explorer 1.3.2-dev.202312191844 → 1.3.2-dev.202401091605
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/ActionBarContainer.js +1 -0
- package/dist/AppAction.js +1 -1
- package/dist/DeleteModal.js +1 -1
- package/dist/DisableModal.js +1 -0
- package/dist/EmptyScreenApp.js +1 -1
- package/dist/EmptyScreenError.js +1 -1
- package/dist/EmptyScreenNoContentInFolder.js +1 -1
- package/dist/EmptyScreenSearch.js +1 -1
- package/dist/EmptyScreenTrash.js +1 -1
- package/dist/FolderModal.js +1 -0
- package/dist/FoldersList.js +1 -1
- package/dist/Library.js +1 -1
- package/dist/MoveModal.js +1 -1
- package/dist/ResourcesList.js +1 -1
- package/dist/{TrashedResourceModal.js → TrashModal.js} +1 -1
- package/dist/index.html +7 -4
- package/dist/index.js +48 -52
- package/dist/style.css +1 -1
- package/dist/version.txt +1 -1
- package/package.json +5 -5
- package/dist/EditFolderModal.js +0 -1
- package/dist/Onboarding.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var tC=Object.defineProperty;var nC=(e,t,n)=>t in e?tC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ei=(e,t,n)=>(nC(e,typeof t!="symbol"?t+"":t,n),n),$d=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var P=(e,t,n)=>($d(e,t,"read from private field"),n?n.call(e):t.get(e)),Y=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},G=(e,t,n,r)=>($d(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Tl=(e,t,n,r)=>({set _(s){G(e,t,s,n)},get _(){return P(e,t,r)}}),se=(e,t,n)=>($d(e,t,"access private method"),n);import{odeServices as ae,APP as Ho,FOLDER as Mt}from"/assets/js/edifice-ts-client/index.js";function sy(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const rC="modulepreload",sC=function(e){return"/"+e},Mg={},Ot=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=sC(i),i in Mg)return;Mg[i]=!0;const o=i.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!r)for(let c=s.length-1;c>=0;c--){const f=s[c];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":rC,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function il(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iy={exports:{}},_c={},oy={exports:{}},le={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var Bb=Object.defineProperty;var zb=(e,t,n)=>t in e?Bb(e,t,{enumerable:!0,config
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var ol=Symbol.for("react.element"),iC=Symbol.for("react.portal"),oC=Symbol.for("react.fragment"),aC=Symbol.for("react.strict_mode"),lC=Symbol.for("react.profiler"),uC=Symbol.for("react.provider"),cC=Symbol.for("react.context"),dC=Symbol.for("react.forward_ref"),fC=Symbol.for("react.suspense"),pC=Symbol.for("react.memo"),hC=Symbol.for("react.lazy"),Lg=Symbol.iterator;function mC(e){return e===null||typeof e!="object"?null:(e=Lg&&e[Lg]||e["@@iterator"],typeof e=="function"?e:null)}var ay={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ly=Object.assign,uy={};function lo(e,t,n){this.props=e,this.context=t,this.refs=uy,this.updater=n||ay}lo.prototype.isReactComponent={};lo.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")};lo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cy(){}cy.prototype=lo.prototype;function Th(e,t,n){this.props=e,this.context=t,this.refs=uy,this.updater=n||ay}var jh=Th.prototype=new cy;jh.constructor=Th;ly(jh,lo.prototype);jh.isPureReactComponent=!0;var Dg=Array.isArray,dy=Object.prototype.hasOwnProperty,Ph={current:null},fy={key:!0,ref:!0,__self:!0,__source:!0};function py(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)dy.call(t,r)&&!fy.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];s.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:ol,type:e,key:i,ref:o,props:s,_owner:Ph.current}}function gC(e,t){return{$$typeof:ol,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Oh(e){return typeof e=="object"&&e!==null&&e.$$typeof===ol}function vC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Fg=/\/+/g;function zd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vC(""+e.key):t.toString(36)}function iu(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ol:case iC:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+zd(o,0):r,Dg(s)?(n="",e!=null&&(n=e.replace(Fg,"$&/")+"/"),iu(s,t,n,"",function(u){return u})):s!=null&&(Oh(s)&&(s=gC(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Fg,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Dg(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+zd(i,l);o+=iu(i,t,n,a,s)}else if(a=mC(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+zd(i,l++),o+=iu(i,t,n,a,s);else if(i==="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 jl(e,t,n){if(e==null)return e;var r=[],s=0;return iu(e,r,"","",function(i){return t.call(n,i,s++)}),r}function yC(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 dt={current:null},ou={transition:null},wC={ReactCurrentDispatcher:dt,ReactCurrentBatchConfig:ou,ReactCurrentOwner:Ph};le.Children={map:jl,forEach:function(e,t,n){jl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return jl(e,function(){t++}),t},toArray:function(e){return jl(e,function(t){return t})||[]},only:function(e){if(!Oh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};le.Component=lo;le.Fragment=oC;le.Profiler=lC;le.PureComponent=Th;le.StrictMode=aC;le.Suspense=fC;le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wC;le.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=ly({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Ph.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)dy.call(t,a)&&!fy.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:ol,type:e.type,key:s,ref:i,props:r,_owner:o}};le.createContext=function(e){return e={$$typeof:cC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:uC,_context:e},e.Consumer=e};le.createElement=py;le.createFactory=function(e){var t=py.bind(null,e);return t.type=e,t};le.createRef=function(){return{current:null}};le.forwardRef=function(e){return{$$typeof:dC,render:e}};le.isValidElement=Oh;le.lazy=function(e){return{$$typeof:hC,_payload:{_status:-1,_result:e},_init:yC}};le.memo=function(e,t){return{$$typeof:pC,type:e,compare:t===void 0?null:t}};le.startTransition=function(e){var t=ou.transition;ou.transition={};try{e()}finally{ou.transition=t}};le.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};le.useCallback=function(e,t){return dt.current.useCallback(e,t)};le.useContext=function(e){return dt.current.useContext(e)};le.useDebugValue=function(){};le.useDeferredValue=function(e){return dt.current.useDeferredValue(e)};le.useEffect=function(e,t){return dt.current.useEffect(e,t)};le.useId=function(){return dt.current.useId()};le.useImperativeHandle=function(e,t,n){return dt.current.useImperativeHandle(e,t,n)};le.useInsertionEffect=function(e,t){return dt.current.useInsertionEffect(e,t)};le.useLayoutEffect=function(e,t){return dt.current.useLayoutEffect(e,t)};le.useMemo=function(e,t){return dt.current.useMemo(e,t)};le.useReducer=function(e,t,n){return dt.current.useReducer(e,t,n)};le.useRef=function(e){return dt.current.useRef(e)};le.useState=function(e){return dt.current.useState(e)};le.useSyncExternalStore=function(e,t,n){return dt.current.useSyncExternalStore(e,t,n)};le.useTransition=function(){return dt.current.useTransition()};le.version="18.2.0";oy.exports=le;var S=oy.exports;const ee=il(S),hy=sy({__proto__:null,default:ee},[S]);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,8 +14,8 @@ var Bb=Object.defineProperty;var zb=(e,t,n)=>t in e?Bb(e,t,{enumerable:!0,config
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var iS=b,oS=Symbol.for("react.element"),aS=Symbol.for("react.fragment"),lS=Object.prototype.hasOwnProperty,uS=iS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cS={key:!0,ref:!0,__self:!0,__source:!0};function uv(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)lS.call(t,r)&&!cS.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:oS,type:e,key:i,ref:o,props:s,_owner:uS.current}}uu.Fragment=aS;uu.jsx=uv;uu.jsxs=uv;Z1.exports=uu;var c=Z1.exports;const dS={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||dS,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new al(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new al(this.logger,t)}}var xn=new al;class cu{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function mi(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function Wp(e){return e==null?"":""+e}function fS(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function Lf(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function s(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(s())return{};const o=r(i.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return s()?{}:{obj:e,k:r(i.shift())}}function Kp(e,t,n){const{obj:r,k:s}=Lf(e,t,Object);r[s]=n}function hS(e,t,n,r){const{obj:s,k:i}=Lf(e,t,Object);s[i]=s[i]||[],r&&(s[i]=s[i].concat(n)),r||s[i].push(n)}function ll(e,t){const{obj:n,k:r}=Lf(e,t);if(n)return n[r]}function pS(e,t,n){const r=ll(e,n);return r!==void 0?r:ll(t,n)}function cv(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):cv(e[r],t[r],n):e[r]=t[r]);return e}function cs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var mS={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function gS(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>mS[t]):e}const vS=[" ",",","?","!",";"];function yS(e,t,n){t=t||"",n=n||"";const r=vS.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(e);if(!i){const o=e.indexOf(n);o>0&&!s.test(e.substring(0,o))&&(i=!0)}return i}function ul(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let i=0;i<r.length;++i){if(!s||typeof s[r[i]]=="string"&&i+1<r.length)return;if(s[r[i]]===void 0){let o=2,a=r.slice(i,i+o).join(n),l=s[a];for(;l===void 0&&r.length>i+o;)o++,a=r.slice(i,i+o).join(n),l=s[a];if(l===void 0)return;if(l===null)return null;if(t.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}const u=r.slice(i+o).join(n);return u?ul(l,u,n):void 0}s=s[r[i]]}return s}function cl(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Gp extends cu{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,n];r&&typeof r!="string"&&(a=a.concat(r)),r&&typeof r=="string"&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."));const l=ll(this.data,a);return l||!o||typeof r!="string"?l:ul(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),s=n,n=a[1]),this.addNamespaces(n),Kp(this.data,a,s),i.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),s=r,r=n,n=a[1]),this.addNamespaces(n);let l=ll(this.data,a)||{};s?cv(l,r,i):l={...l,...r},Kp(this.data,a,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var dv={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,s))}),t}};const Xp={};class dl extends cu{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),fS(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!yS(t,r,s);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(s)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const S=n.nsSeparator||this.options.nsSeparator;return s?{res:`${l}${S}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${S}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const f=this.resolve(t,n);let h=f&&f.res;const p=f&&f.usedKey||o,m=f&&f.exactUsedKey||o,y=Object.prototype.toString.apply(h),w=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&h&&(typeof h!="string"&&typeof h!="boolean"&&typeof h!="number")&&w.indexOf(y)<0&&!(typeof g=="string"&&y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(f.res=S,f.usedParams=this.getUsedParamsDetails(n),f):S}if(i){const S=y==="[object Array]",C=S?[]:{},j=S?m:p;for(const k in h)if(Object.prototype.hasOwnProperty.call(h,k)){const O=`${j}${i}${k}`;C[k]=this.translate(O,{...n,joinArrays:!1,ns:a}),C[k]===O&&(C[k]=h[k])}h=C}}else if(v&&typeof g=="string"&&y==="[object Array]")h=h.join(g),h&&(h=this.extendTranslation(h,t,n,r));else{let S=!1,C=!1;const j=n.count!==void 0&&typeof n.count!="string",k=dl.hasDefaultValue(n),O=j?this.pluralResolver.getSuffix(u,n.count,n):"",A=n.ordinal&&j?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=n[`defaultValue${O}`]||n[`defaultValue${A}`]||n.defaultValue;!this.isValidLookup(h)&&k&&(S=!0,h=_),this.isValidLookup(h)||(C=!0,h=o);const T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:h,$=k&&_!==h&&this.options.updateMissing;if(C||S||$){if(this.logger.log($?"updateKey":"missingKey",u,l,o,$?_:h),i){const L=this.resolve(o,{...n,keySeparator:!1});L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let D=[];const E=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&E&&E[0])for(let L=0;L<E.length;L++)D.push(E[L]);else this.options.saveMissingTo==="all"?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);const N=(L,P,B)=>{const z=k&&B!==h?B:T;this.options.missingKeyHandler?this.options.missingKeyHandler(L,l,P,z,$,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(L,l,P,z,$,n),this.emit("missingKey",L,l,P,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?D.forEach(L=>{this.pluralResolver.getSuffixes(L,n).forEach(P=>{N([L],o+P,n[`defaultValue${P}`]||_)})}):N(D,o,_))}h=this.extendTranslation(h,t,n,f,r),C&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(C||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,S?h:void 0):h=this.options.parseMissingKeyHandler(h))}return s?(f.res=h,f.usedParams=this.getUsedParamsDetails(n),f):h}extendTranslation(t,n,r,s,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const h=t.match(this.interpolator.nestingRegexp);d=h&&h.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),u){const h=t.match(this.interpolator.nestingRegexp),p=h&&h.length;d<p&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return i&&i[0]===p[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):o.translate(...p,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=dv.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,i,o,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),d=u.key;s=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const h=n.count!==void 0&&typeof n.count!="string",p=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(w=>{this.isValidLookup(r)||(a=w,!Xp[`${y[0]}-${w}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Xp[`${y[0]}-${w}`]=!0,this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(g=>{if(this.isValidLookup(r))return;o=g;const v=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,d,g,w,n);else{let S;h&&(S=this.pluralResolver.getSuffix(g,n.count,n));const C=`${this.options.pluralSeparator}zero`,j=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(d+S),n.ordinal&&S.indexOf(j)===0&&v.push(d+S.replace(j,this.options.pluralSeparator)),p&&v.push(d+C)),m){const k=`${d}${this.options.contextSeparator}${n.context}`;v.push(k),h&&(v.push(k+S),n.ordinal&&S.indexOf(j)===0&&v.push(k+S.replace(j,this.options.pluralSeparator)),p&&v.push(k+C))}}let x;for(;x=v.pop();)this.isValidLookup(r)||(i=x,r=this.getResource(g,w,x,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function hc(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Yp{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xn.create("languageUtils")}getScriptPartFromCode(t){if(t=cl(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=cl(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=hc(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=hc(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=hc(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&i.indexOf(s)===0)return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}let xS=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],wS={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const bS=["v1","v2","v3"],SS=["v4"],Jp={zero:0,one:1,two:2,few:3,many:4,other:5};function CS(){const e={};return xS.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:wS[t.fc]}})}),e}class ES{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=xn.create("pluralResolver"),(!this.options.compatibilityJSON||SS.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=CS()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(cl(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,i)=>Jp[s]-Jp[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const i=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!bS.includes(this.options.compatibilityJSON)}}function Zp(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=pS(e,t,n);return!i&&s&&typeof n=="string"&&(i=ul(e,n,r),i===void 0&&(i=ul(t,n,r))),i}class kS{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:gS,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?cs(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?cs(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?cs(n.nestingPrefix):n.nestingPrefixEscaped||cs("$t("),this.nestingSuffix=n.nestingSuffix?cs(n.nestingSuffix):n.nestingSuffixEscaped||cs(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,s){let i,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(m){return m.replace(/\$/g,"$$$$")}const d=m=>{if(m.indexOf(this.formatSeparator)<0){const v=Zp(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...s,...n,interpolationkey:m}):v}const y=m.split(this.formatSeparator),w=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(Zp(n,l,w,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...s,...n,interpolationkey:w})};this.resetRegExp();const f=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>u(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?u(this.escape(m)):u(m)}].forEach(m=>{for(a=0;i=m.regex.exec(t);){const y=i[1].trim();if(o=d(y),o===void 0)if(typeof f=="function"){const g=f(t,i,s);o=typeof g=="string"?g:""}else if(s&&Object.prototype.hasOwnProperty.call(s,y))o="";else if(h){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Wp(o));const w=m.safeValue(o);if(t=t.replace(i[0],w),h?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,o;function a(l,u){const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${d}[ ]*{`));let h=`{${f[1]}`;l=f[0],h=this.interpolate(h,o);const p=h.match(/'/g),m=h.match(/"/g);(p&&p.length%2===0&&!m||m.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o={...u,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${d}${h}`}return delete o.defaultValue,l}for(;s=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const d=s[1].split(this.formatSeparator).map(f=>f.trim());s[1]=d.shift(),l=d,u=!0}if(i=n(a.call(this,s[1].trim(),o),o),i&&s[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=Wp(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=l.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}function jS(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(!o)return;const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function ds(e){const t={};return function(r,s,i){const o=s+JSON.stringify(i);let a=t[o];return a||(a=e(cl(s),i),t[o]=a),a(r)}}class RS{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xn.create("formatter"),this.options=t,this.formats={number:ds((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return i=>s.format(i)}),currency:ds((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>s.format(i)}),datetime:ds((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return i=>s.format(i)}),relativetime:ds((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return i=>s.format(i,r.range||"day")}),list:ds((n,r)=>{const s=new Intl.ListFormat(n,{...r});return i=>s.format(i)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ds(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:d}=jS(l);if(this.formats[u]){let f=a;try{const h=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},p=h.locale||h.lng||s.locale||s.lng||r;f=this.formats[u](a,p,{...d,...s,...h})}catch(h){this.logger.warn(h)}return f}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function OS(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class NS extends cu{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=xn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const i={},o={},a={},l={};return t.forEach(u=>{let d=!0;n.forEach(f=>{const h=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,d=!1,o[h]===void 0&&(o[h]=!0),i[h]===void 0&&(i[h]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(a[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const s=t.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),r&&this.store.addResourceBundle(i,o,r),this.state[t]=n?-1:2;const a={};this.queue.forEach(l=>{hS(l.loaded,[i],o),OS(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const d=l.loaded[u];d.length&&d.forEach(f=>{a[u][f]===void 0&&(a[u][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const a=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,i*2,o)},i);return}o(u,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,s,l):d=u(t,n,r,s),d&&typeof d.then=="function"?d.then(f=>a(null,f)).catch(a):a(null,d)}catch(d){a(d)}else u(t,n,r,s,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}function em(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function tm(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ca(){}function PS(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class no extends cu{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=tm(t),this.services={},this.logger=xn,this.modules={external:[]},PS(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=em();this.options={...s,...this.options,...tm(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?xn.init(i(this.modules.logger),this.options):xn.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=RS);const f=new Yp(this.options);this.store=new Gp(this.options.resources,this.options);const h=this.services;h.logger=xn,h.resourceStore=this.store,h.languageUtils=f,h.pluralResolver=new ES(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(h.formatter=i(d),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new kS(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new NS(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(p){for(var m=arguments.length,y=new Array(m>1?m-1:0),w=1;w<m;w++)y[w-1]=arguments[w];t.emit(p,...y)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new dl(this.services,this.options),this.translator.on("*",function(p){for(var m=arguments.length,y=new Array(m>1?m-1:0),w=1;w<m;w++)y[w-1]=arguments[w];t.emit(p,...y)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ca),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=mi(),u=()=>{const d=(f,h)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(h),r(f,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ca;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const s=mi();return t||(t=this.languages),n||(n=this.options.ns),r||(r=ca),this.services.backendConnector.reload(t,n,i=>{s.resolve(),r(i)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&dv.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=mi();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{o(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),s}getFixedT(t,n,r){var s=this;const i=function(o,a){let l;if(typeof a!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];l=s.options.overloadTranslationOptionHandler([o,a].concat(d))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix=l.keyPrefix||r||i.keyPrefix;const h=s.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(o)?p=o.map(m=>`${l.keyPrefix}${h}${m}`):p=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,s.t(p,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!s||o(i,t)))}loadNamespaces(t,n){const r=mi();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=mi();typeof t=="string"&&(t=[t]);const s=this.options.preload||[],i=t.filter(o=>s.indexOf(o)<0);return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Yp(em());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new no(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ca;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},i=new no(s);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Gp(this.store.data,s),i.services.resourceStore=i.store),i.translator=new dl(i.services,s),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];i.emit(a,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Xe=no.createInstance();Xe.createInstance=no.createInstance;Xe.createInstance;Xe.dir;Xe.init;Xe.loadResources;Xe.reloadResources;Xe.use;Xe.changeLanguage;Xe.getFixedT;const bt=Xe.t;Xe.exists;Xe.setDefaultNamespace;Xe.hasLoadedNamespace;Xe.loadNamespaces;Xe.loadLanguages;function od(e){"@babel/helpers - typeof";return od=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},od(e)}var fv=[],AS=fv.forEach,_S=fv.slice;function ad(e){return AS.call(_S.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function hv(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":od(XMLHttpRequest))==="object"}function TS(e){return!!e&&typeof e.then=="function"}function IS(e){return TS(e)?e:Promise.resolve(e)}function DS(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ld={exports:{}},da={exports:{}},nm;function MS(){return nm||(nm=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof tt<"u"&&tt,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var a=typeof i<"u"&&i||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function u(E){return E&&DataView.prototype.isPrototypeOf(E)}if(l.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(E){return E&&d.indexOf(Object.prototype.toString.call(E))>-1};function h(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(E)||E==="")throw new TypeError('Invalid character in header field name: "'+E+'"');return E.toLowerCase()}function p(E){return typeof E!="string"&&(E=String(E)),E}function m(E){var N={next:function(){var L=E.shift();return{done:L===void 0,value:L}}};return l.iterable&&(N[Symbol.iterator]=function(){return N}),N}function y(E){this.map={},E instanceof y?E.forEach(function(N,L){this.append(L,N)},this):Array.isArray(E)?E.forEach(function(N){this.append(N[0],N[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(N){this.append(N,E[N])},this)}y.prototype.append=function(E,N){E=h(E),N=p(N);var L=this.map[E];this.map[E]=L?L+", "+N:N},y.prototype.delete=function(E){delete this.map[h(E)]},y.prototype.get=function(E){return E=h(E),this.has(E)?this.map[E]:null},y.prototype.has=function(E){return this.map.hasOwnProperty(h(E))},y.prototype.set=function(E,N){this.map[h(E)]=p(N)},y.prototype.forEach=function(E,N){for(var L in this.map)this.map.hasOwnProperty(L)&&E.call(N,this.map[L],L,this)},y.prototype.keys=function(){var E=[];return this.forEach(function(N,L){E.push(L)}),m(E)},y.prototype.values=function(){var E=[];return this.forEach(function(N){E.push(N)}),m(E)},y.prototype.entries=function(){var E=[];return this.forEach(function(N,L){E.push([L,N])}),m(E)},l.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function w(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function g(E){return new Promise(function(N,L){E.onload=function(){N(E.result)},E.onerror=function(){L(E.error)}})}function v(E){var N=new FileReader,L=g(N);return N.readAsArrayBuffer(E),L}function x(E){var N=new FileReader,L=g(N);return N.readAsText(E),L}function S(E){for(var N=new Uint8Array(E),L=new Array(N.length),P=0;P<N.length;P++)L[P]=String.fromCharCode(N[P]);return L.join("")}function C(E){if(E.slice)return E.slice(0);var N=new Uint8Array(E.byteLength);return N.set(new Uint8Array(E)),N.buffer}function j(){return this.bodyUsed=!1,this._initBody=function(E){this.bodyUsed=this.bodyUsed,this._bodyInit=E,E?typeof E=="string"?this._bodyText=E:l.blob&&Blob.prototype.isPrototypeOf(E)?this._bodyBlob=E:l.formData&&FormData.prototype.isPrototypeOf(E)?this._bodyFormData=E:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)?this._bodyText=E.toString():l.arrayBuffer&&l.blob&&u(E)?(this._bodyArrayBuffer=C(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||f(E))?this._bodyArrayBuffer=C(E):this._bodyText=E=Object.prototype.toString.call(E):this._bodyText="",this.headers.get("content-type")||(typeof E=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var E=w(this);if(E)return E;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var E=w(this);return E||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(v)}),this.text=function(){var E=w(this);if(E)return E;if(this._bodyBlob)return x(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(S(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(E){var N=E.toUpperCase();return k.indexOf(N)>-1?N:E}function A(E,N){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');N=N||{};var L=N.body;if(E instanceof A){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,N.headers||(this.headers=new y(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!L&&E._bodyInit!=null&&(L=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=N.credentials||this.credentials||"same-origin",(N.headers||!this.headers)&&(this.headers=new y(N.headers)),this.method=O(N.method||this.method||"GET"),this.mode=N.mode||this.mode||null,this.signal=N.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(L),(this.method==="GET"||this.method==="HEAD")&&(N.cache==="no-store"||N.cache==="no-cache")){var P=/([?&])_=[^&]*/;if(P.test(this.url))this.url=this.url.replace(P,"$1_="+new Date().getTime());else{var B=/\?/;this.url+=(B.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function _(E){var N=new FormData;return E.trim().split("&").forEach(function(L){if(L){var P=L.split("="),B=P.shift().replace(/\+/g," "),z=P.join("=").replace(/\+/g," ");N.append(decodeURIComponent(B),decodeURIComponent(z))}}),N}function F(E){var N=new y,L=E.replace(/\r?\n[\t ]+/g," ");return L.split("\r").map(function(P){return P.indexOf(`
|
|
18
|
-
`)===0?P.substr(1,P.length):P}).forEach(function(P){var B=P.split(":"),z=B.shift().trim();if(z){var ee=B.join(":").trim();N.append(z,ee)}}),N}j.call(A.prototype);function T(E,N){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');N||(N={}),this.type="default",this.status=N.status===void 0?200:N.status,this.ok=this.status>=200&&this.status<300,this.statusText=N.statusText===void 0?"":""+N.statusText,this.headers=new y(N.headers),this.url=N.url||"",this._initBody(E)}j.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},T.error=function(){var E=new T(null,{status:0,statusText:""});return E.type="error",E};var $=[301,302,303,307,308];T.redirect=function(E,N){if($.indexOf(N)===-1)throw new RangeError("Invalid status code");return new T(null,{status:N,headers:{location:E}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(N,L){this.message=N,this.name=L;var P=Error(N);this.stack=P.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function D(E,N){return new Promise(function(L,P){var B=new A(E,N);if(B.signal&&B.signal.aborted)return P(new o.DOMException("Aborted","AbortError"));var z=new XMLHttpRequest;function ee(){z.abort()}z.onload=function(){var le={status:z.status,statusText:z.statusText,headers:F(z.getAllResponseHeaders()||"")};le.url="responseURL"in z?z.responseURL:le.headers.get("X-Request-URL");var te="response"in z?z.response:z.responseText;setTimeout(function(){L(new T(te,le))},0)},z.onerror=function(){setTimeout(function(){P(new TypeError("Network request failed"))},0)},z.ontimeout=function(){setTimeout(function(){P(new TypeError("Network request failed"))},0)},z.onabort=function(){setTimeout(function(){P(new o.DOMException("Aborted","AbortError"))},0)};function J(le){try{return le===""&&a.location.href?a.location.href:le}catch{return le}}z.open(B.method,J(B.url),!0),B.credentials==="include"?z.withCredentials=!0:B.credentials==="omit"&&(z.withCredentials=!1),"responseType"in z&&(l.blob?z.responseType="blob":l.arrayBuffer&&B.headers.get("Content-Type")&&B.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(z.responseType="arraybuffer")),N&&typeof N.headers=="object"&&!(N.headers instanceof y)?Object.getOwnPropertyNames(N.headers).forEach(function(le){z.setRequestHeader(le,p(N.headers[le]))}):B.headers.forEach(function(le,te){z.setRequestHeader(te,le)}),B.signal&&(B.signal.addEventListener("abort",ee),z.onreadystatechange=function(){z.readyState===4&&B.signal.removeEventListener("abort",ee)}),z.send(typeof B._bodyInit>"u"?null:B._bodyInit)})}return D.polyfill=!0,a.fetch||(a.fetch=D,a.Headers=y,a.Request=A,a.Response=T),o.Headers=y,o.Request=A,o.Response=T,o.fetch=D,o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=n.fetch?n:r;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t}(da,da.exports)),da.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof tt<"u"&&tt.fetch?n=tt.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof DS<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||MS();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(ld,ld.exports);var pv=ld.exports;const mv=$o(pv),rm=J1({__proto__:null,default:mv},[pv]);function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}var Ln;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Ln=global.fetch:typeof window<"u"&&window.fetch?Ln=window.fetch:Ln=fetch);var ro;hv()&&(typeof global<"u"&&global.XMLHttpRequest?ro=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(ro=window.XMLHttpRequest));var hl;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?hl=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(hl=window.ActiveXObject));!Ln&&rm&&!ro&&!hl&&(Ln=mv||rm);typeof Ln!="function"&&(Ln=void 0);var ud=function(t,n){if(n&&fl(n)==="object"){var r="";for(var s in n)r+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},sm=function(t,n,r){var s=function(o){if(!o.ok)return r(o.statusText||"Error",{status:o.status});o.text().then(function(a){r(null,{status:o.status,data:a})}).catch(r)};typeof fetch=="function"?fetch(t,n).then(s).catch(r):Ln(t,n).then(s).catch(r)},im=!1,LS=function(t,n,r,s){t.queryStringParams&&(n=ud(n,t.queryStringParams));var i=ad({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=ad({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},im?{}:o);try{sm(n,a,s)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return s(l);try{Object.keys(o).forEach(function(u){delete a[u]}),sm(n,a,s),im=!0}catch(u){s(u)}}},FS=function(t,n,r,s){r&&fl(r)==="object"&&(r=ud("",r).slice(1)),t.queryStringParams&&(n=ud(n,t.queryStringParams));try{var i;ro?i=new ro:i=new hl("MSXML2.XMLHTTP.3.0"),i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)i.setRequestHeader(a,o[a]);i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},$S=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},Ln&&n.indexOf("file:")!==0)return LS(t,n,r,s);if(hv()||typeof ActiveXObject=="function")return FS(t,n,r,s);s(new Error("No fetch and no xhr implementation found!"))};function so(e){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(e)}function BS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function om(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gv(r.key),r)}}function zS(e,t,n){return t&&om(e.prototype,t),n&&om(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function VS(e,t,n){return t=gv(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gv(e){var t=US(e,"string");return so(t)==="symbol"?t:String(t)}function US(e,t){if(so(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(so(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HS=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,s){return VS({},r,s||"")},parseLoadPayload:function(n,r){},request:$S,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},vv=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};BS(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return zS(e,[{key:"init",value:function(n){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=ad(s,this.options||{},HS()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,s){this._readAny(n,n,r,r,s)}},{key:"read",value:function(n,r,s){this._readAny([n],n,[r],r,s)}},{key:"_readAny",value:function(n,r,s,i,o){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,s)),l=IS(l),l.then(function(u){if(!u)return o(null,{});var d=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:s.join("+")});a.loadUrl(d,o,r,i)})}},{key:"loadUrl",value:function(n,r,s,i){var o=this,a=typeof s=="string"?[s]:s,l=typeof i=="string"?[i]:i,u=this.options.parseLoadPayload(a,l);this.options.request(this.options,n,u,function(d,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+n+"; status code: "+f.status,!1);if(!f&&d&&d.message&&d.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+d.message,!0);if(d)return r(d,!1);var h,p;try{typeof f.data=="string"?h=o.options.parse(f.data,s,i):h=f.data}catch{p="failed parsing "+n+" to json"}if(p)return r(p,!1);r(null,h)})}},{key:"create",value:function(n,r,s,i,o){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,s,i),u=0,d=[],f=[];n.forEach(function(h){var p=a.options.addPath;typeof a.options.addPath=="function"&&(p=a.options.addPath(h,r));var m=a.services.interpolator.interpolate(p,{lng:h,ns:r});a.options.request(a.options,m,l,function(y,w){u+=1,d.push(y),f.push(w),u===n.length&&typeof o=="function"&&o(d,f)})})}}},{key:"reload",value:function(){var n=this,r=this.services,s=r.backendConnector,i=r.languageUtils,o=r.logger,a=s.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(f){var h=i.toResolveHierarchy(f);h.forEach(function(p){l.indexOf(p)<0&&l.push(p)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(d){return u(d)}),l.forEach(function(d){n.allOptions.ns.forEach(function(f){s.read(d,f,"read",null,null,function(h,p){h&&o.warn("loading namespace ".concat(f," for language ").concat(d," failed"),h),!h&&p&&o.log("loaded namespace ".concat(f," for language ").concat(d),p),s.loaded("".concat(d,"|").concat(f),h,p)})})})}}}]),e}();vv.type="backend";function qS(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const am={};function cd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&am[t[0]]||(typeof t[0]=="string"&&(am[t[0]]=new Date),qS(...t))}const yv=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function lm(e,t,n){e.loadNamespaces(t,yv(e,n))}function um(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,yv(e,r))}function QS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],s=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=t.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!s||o(i,e)))}function WS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(cd("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}):QS(e,t,n)}const KS=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,GS={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},XS=e=>GS[e],YS=e=>e.replace(KS,XS);let dd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:YS};function JS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dd={...dd,...e}}function ZS(){return dd}let xv;function e4(e){xv=e}function t4(){return xv}const n4={type:"3rdParty",init(e){JS(e.options.react),e4(e)}},r4=b.createContext();class s4{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const i4=(e,t)=>{const n=b.useRef();return b.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function re(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:s}=b.useContext(r4)||{},i=n||r||t4();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new s4),!i){cd("You will need to pass in an i18next instance by using initReactI18next");const x=(C,j)=>typeof j=="string"?j:j&&typeof j=="object"&&typeof j.defaultValue=="string"?j.defaultValue:Array.isArray(C)?C[C.length-1]:C,S=[x,{},!1];return S.t=x,S.i18n={},S.ready=!1,S}i.options.react&&i.options.react.wait!==void 0&&cd("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...ZS(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let u=e||s||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const d=(i.isInitialized||i.initializedStoreOnce)&&u.every(x=>WS(x,i,o));function f(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,p]=b.useState(f);let m=u.join();t.lng&&(m=`${t.lng}${m}`);const y=i4(m),w=b.useRef(!0);b.useEffect(()=>{const{bindI18n:x,bindI18nStore:S}=o;w.current=!0,!d&&!a&&(t.lng?um(i,t.lng,u,()=>{w.current&&p(f)}):lm(i,u,()=>{w.current&&p(f)})),d&&y&&y!==m&&w.current&&p(f);function C(){w.current&&p(f)}return x&&i&&i.on(x,C),S&&i&&i.store.on(S,C),()=>{w.current=!1,x&&i&&x.split(" ").forEach(j=>i.off(j,C)),S&&i&&S.split(" ").forEach(j=>i.store.off(j,C))}},[i,m]);const g=b.useRef(!0);b.useEffect(()=>{w.current&&!g.current&&p(f),g.current=!1},[i,l]);const v=[h,i,d];if(v.t=h,v.i18n=i,v.ready=d,d||!d&&!a)return v;throw new Promise(x=>{t.lng?um(i,t.lng,u,()=>x()):lm(i,u,()=>x())})}Xe.use(vv).use(n4).init({backend:{loadPath:(e,t)=>t.map(r=>r==="common"?"/i18n":`/${r}/i18n`),parse:e=>JSON.parse(e)},defaultNS:"common",ns:["common"],fallbackLng:"fr",lng:"fr",interpolation:{escapeValue:!1,prefix:"[[",suffix:"]]"},debug:!1});class ri{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const io=typeof window>"u"||"Deno"in window;function Dt(){}function o4(e,t){return typeof e=="function"?e(t):e}function fd(e){return typeof e=="number"&&e>=0&&e!==1/0}function wv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ms(e,t,n){return zo(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function a4(e,t,n){return zo(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function Jn(e,t,n){return zo(e)?[{...t,queryKey:e},n]:[e||{},t]}function cm(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(zo(o)){if(r){if(t.queryHash!==Ff(o,t.options))return!1}else if(!pl(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function dm(e,t){const{exact:n,fetching:r,predicate:s,mutationKey:i}=e;if(zo(i)){if(!t.options.mutationKey)return!1;if(n){if($r(t.options.mutationKey)!==$r(i))return!1}else if(!pl(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||s&&!s(t))}function Ff(e,t){return((t==null?void 0:t.queryKeyHashFn)||$r)(e)}function $r(e){return JSON.stringify(e,(t,n)=>hd(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function pl(e,t){return bv(e,t)}function bv(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!bv(e[n],t[n])):!1}function Sv(e,t){if(e===t)return e;const n=fm(e)&&fm(t);if(n||hd(e)&&hd(t)){const r=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let a=0;for(let l=0;l<i;l++){const u=n?l:s[l];o[u]=Sv(e[u],t[u]),o[u]===e[u]&&a++}return r===i&&a===r?e:o}return t}function ml(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function fm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function hd(e){if(!hm(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!hm(n)||!n.hasOwnProperty("isPrototypeOf"))}function hm(e){return Object.prototype.toString.call(e)==="[object Object]"}function zo(e){return Array.isArray(e)}function Cv(e){return new Promise(t=>{setTimeout(t,e)})}function pm(e){Cv(0).then(e)}function l4(){if(typeof AbortController=="function")return new AbortController}function pd(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Sv(e,t):t}class u4 extends ri{constructor(){super(),this.setup=t=>{if(!io&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const gl=new u4,mm=["online","offline"];class c4 extends ri{constructor(){super(),this.setup=t=>{if(!io&&window.addEventListener){const n=()=>t();return mm.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{mm.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const vl=new c4;function d4(e){return Math.min(1e3*2**e,3e4)}function du(e){return(e??"online")==="online"?vl.isOnline():!0}class Ev{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Ba(e){return e instanceof Ev}function kv(e){let t=!1,n=0,r=!1,s,i,o;const a=new Promise((w,g)=>{i=w,o=g}),l=w=>{r||(p(new Ev(w)),e.abort==null||e.abort())},u=()=>{t=!0},d=()=>{t=!1},f=()=>!gl.isFocused()||e.networkMode!=="always"&&!vl.isOnline(),h=w=>{r||(r=!0,e.onSuccess==null||e.onSuccess(w),s==null||s(),i(w))},p=w=>{r||(r=!0,e.onError==null||e.onError(w),s==null||s(),o(w))},m=()=>new Promise(w=>{s=g=>{const v=r||!f();return v&&w(g),v},e.onPause==null||e.onPause()}).then(()=>{s=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let w;try{w=e.fn()}catch(g){w=Promise.reject(g)}Promise.resolve(w).then(h).catch(g=>{var v,x;if(r)return;const S=(v=e.retry)!=null?v:3,C=(x=e.retryDelay)!=null?x:d4,j=typeof C=="function"?C(n,g):C,k=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,g);if(t||!k){p(g);return}n++,e.onFail==null||e.onFail(n,g),Cv(j).then(()=>{if(f())return m()}).then(()=>{t?p(g):y()})})};return du(e.networkMode)?y():m().then(y),{promise:a,cancel:l,continue:()=>(s==null?void 0:s())?a:Promise.resolve(),cancelRetry:u,continueRetry:d}}const $f=console;function f4(){let e=[],t=0,n=d=>{d()},r=d=>{d()};const s=d=>{let f;t++;try{f=d()}finally{t--,t||a()}return f},i=d=>{t?e.push(d):pm(()=>{n(d)})},o=d=>(...f)=>{i(()=>{d(...f)})},a=()=>{const d=e;e=[],d.length&&pm(()=>{r(()=>{d.forEach(f=>{n(f)})})})};return{batch:s,batchCalls:o,schedule:i,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d}}}const ke=f4();class jv{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fd(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(io?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class h4 extends jv{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||$f,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||p4(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=pd(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(Dt).catch(Dt):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||!wv(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,s;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(m=>m.options.queryFn);p&&this.setOptions(p.options)}const o=l4(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(a);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),d={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(d),(r=this.options.behavior)==null||r.onFetch(d),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=d.fetchOptions)==null?void 0:s.meta)){var f;this.dispatch({type:"fetch",meta:(f=d.fetchOptions)==null?void 0:f.meta})}const h=p=>{if(Ba(p)&&p.silent||this.dispatch({type:"error",error:p}),!Ba(p)){var m,y,w,g;(m=(y=this.cache.config).onError)==null||m.call(y,p,this),(w=(g=this.cache.config).onSettled)==null||w.call(g,this.state.data,p,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=kv({fn:d.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:p=>{var m,y,w,g;if(typeof p>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(m=(y=this.cache.config).onSuccess)==null||m.call(y,p,this),(w=(g=this.cache.config).onSettled)==null||w.call(g,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(p,m)=>{this.dispatch({type:"failed",failureCount:p,error:m})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var s,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(s=t.meta)!=null?s:null,fetchStatus:du(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Ba(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ke.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function p4(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 Rv extends ri{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var s;const i=n.queryKey,o=(s=n.queryHash)!=null?s:Ff(i,n);let a=this.get(o);return a||(a=new h4({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ke.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Jn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(s=>cm(r,s))}findAll(t,n){const[r]=Jn(t,n);return Object.keys(r).length>0?this.queries.filter(s=>cm(r,s)):this.queries}notify(t){ke.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ke.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ke.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class m4 extends jv{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||$f,this.observers=[],this.state=t.state||Ov(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var k;return this.retryer=kv({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(O,A)=>{this.dispatch({type:"failed",failureCount:O,error:A})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(k=this.options.retry)!=null?k:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,s,i,o,a,l,u,d;if(!n){var f,h,p,m;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(h=this.mutationCache.config).onMutate)==null?void 0:f.call(h,this.state.variables,this));const O=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,this.state.variables));O!==this.state.context&&this.dispatch({type:"loading",context:O,variables:this.state.variables})}const k=await t();return await((r=(s=this.mutationCache.config).onSuccess)==null?void 0:r.call(s,k,this.state.variables,this.state.context,this)),await((i=(o=this.options).onSuccess)==null?void 0:i.call(o,k,this.state.variables,this.state.context)),await((a=(l=this.mutationCache.config).onSettled)==null?void 0:a.call(l,k,null,this.state.variables,this.state.context,this)),await((u=(d=this.options).onSettled)==null?void 0:u.call(d,k,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:k}),k}catch(k){try{var y,w,g,v,x,S,C,j;throw await((y=(w=this.mutationCache.config).onError)==null?void 0:y.call(w,k,this.state.variables,this.state.context,this)),await((g=(v=this.options).onError)==null?void 0:g.call(v,k,this.state.variables,this.state.context)),await((x=(S=this.mutationCache.config).onSettled)==null?void 0:x.call(S,void 0,k,this.state.variables,this.state.context,this)),await((C=(j=this.options).onSettled)==null?void 0:C.call(j,void 0,k,this.state.variables,this.state.context)),k}finally{this.dispatch({type:"error",error:k})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!du(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),ke.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Ov(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class g4 extends ri{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const s=new m4({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(s),s}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){ke.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=>dm(t,n))}findAll(t){return this.mutations.filter(n=>dm(t,n))}notify(t){ke.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ke.batch(()=>n.reduce((r,s)=>r.then(()=>s.continue().catch(Dt)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function md(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,s,i,o;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(s=r.meta)==null?void 0:s.fetchMore,u=l==null?void 0:l.pageParam,d=(l==null?void 0:l.direction)==="forward",f=(l==null?void 0:l.direction)==="backward",h=((i=e.state.data)==null?void 0:i.pages)||[],p=((o=e.state.data)==null?void 0:o.pageParams)||[];let m=p,y=!1;const w=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>{var k;if((k=e.signal)!=null&&k.aborted)y=!0;else{var O;(O=e.signal)==null||O.addEventListener("abort",()=>{y=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(j,k,O,A)=>(m=A?[k,...m]:[...m,k],A?[O,...j]:[...j,O]),x=(j,k,O,A)=>{if(y)return Promise.reject("Cancelled");if(typeof O>"u"&&!k&&j.length)return Promise.resolve(j);const _={queryKey:e.queryKey,pageParam:O,meta:e.options.meta};w(_);const F=g(_);return Promise.resolve(F).then($=>v(j,O,$,A))};let S;if(!h.length)S=x([]);else if(d){const j=typeof u<"u",k=j?u:gd(e.options,h);S=x(h,j,k)}else if(f){const j=typeof u<"u",k=j?u:Nv(e.options,h);S=x(h,j,k,!0)}else{m=[];const j=typeof e.options.getNextPageParam>"u";S=(a&&h[0]?a(h[0],0,h):!0)?x([],j,p[0]):Promise.resolve(v([],p[0],h[0]));for(let O=1;O<h.length;O++)S=S.then(A=>{if(a&&h[O]?a(h[O],O,h):!0){const F=j?p[O]:gd(e.options,A);return x(A,j,F)}return Promise.resolve(v(A,p[O],h[O]))})}return S.then(j=>({pages:j,pageParams:m}))}}}}function gd(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Nv(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function v4(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=gd(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function y4(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=Nv(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class x4{constructor(t={}){this.queryCache=t.queryCache||new Rv,this.mutationCache=t.mutationCache||new g4,this.logger=t.logger||$f,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=gl.subscribe(()=>{gl.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=vl.subscribe(()=>{vl.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]=Jn(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const s=ms(t,n,r),i=this.getQueryData(s.queryKey);return i?Promise.resolve(i):this.fetchQuery(s)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(t,n,r){const s=this.queryCache.find(t),i=s==null?void 0:s.state.data,o=o4(n,i);if(typeof o>"u")return;const a=ms(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return ke.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Jn(t,n),s=this.queryCache;ke.batch(()=>{s.findAll(r).forEach(i=>{s.remove(i)})})}resetQueries(t,n,r){const[s,i]=Jn(t,n,r),o=this.queryCache,a={type:"active",...s};return ke.batch(()=>(o.findAll(s).forEach(l=>{l.reset()}),this.refetchQueries(a,i)))}cancelQueries(t,n,r){const[s,i={}]=Jn(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const o=ke.batch(()=>this.queryCache.findAll(s).map(a=>a.cancel(i)));return Promise.all(o).then(Dt).catch(Dt)}invalidateQueries(t,n,r){const[s,i]=Jn(t,n,r);return ke.batch(()=>{var o,a;if(this.queryCache.findAll(s).forEach(u=>{u.invalidate()}),s.refetchType==="none")return Promise.resolve();const l={...s,type:(o=(a=s.refetchType)!=null?a:s.type)!=null?o:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[s,i]=Jn(t,n,r),o=ke.batch(()=>this.queryCache.findAll(s).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:s.refetchPage}})}));let a=Promise.all(o).then(Dt);return i!=null&&i.throwOnError||(a=a.catch(Dt)),a}fetchQuery(t,n,r){const s=ms(t,n,r),i=this.defaultQueryOptions(s);typeof i.retry>"u"&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(Dt).catch(Dt)}fetchInfiniteQuery(t,n,r){const s=ms(t,n,r);return s.behavior=md(),this.fetchQuery(s)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Dt).catch(Dt)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(s=>$r(t)===$r(s.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>pl(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(s=>$r(t)===$r(s.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>pl(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=Ff(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 Pv extends ri{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),gm(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vd(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vd(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),ml(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&vm(this.currentQuery,s,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return b4(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Dt)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),io||this.currentResult.isStale||!fd(this.options.staleTime))return;const n=wv(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,!(io||this.options.enabled===!1||!fd(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||gl.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,s=this.options,i=this.currentResult,o=this.currentResultState,a=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,d=l?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:h,error:p,errorUpdatedAt:m,fetchStatus:y,status:w}=f,g=!1,v=!1,x;if(n._optimisticResults){const O=this.hasListeners(),A=!O&&gm(t,n),_=O&&vm(t,r,n,s);(A||_)&&(y=du(t.options.networkMode)?"fetching":"paused",h||(w="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!f.dataUpdatedAt&&d!=null&&d.isSuccess&&w!=="error")x=d.data,h=d.dataUpdatedAt,w=d.status,g=!0;else if(n.select&&typeof f.data<"u")if(i&&f.data===(o==null?void 0:o.data)&&n.select===this.selectFn)x=this.selectResult;else try{this.selectFn=n.select,x=n.select(f.data),x=pd(i==null?void 0:i.data,x,n),this.selectResult=x,this.selectError=null}catch(O){this.selectError=O}else x=f.data;if(typeof n.placeholderData<"u"&&typeof x>"u"&&w==="loading"){let O;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))O=i.data;else if(O=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof O<"u")try{O=n.select(O),this.selectError=null}catch(A){this.selectError=A}typeof O<"u"&&(w="success",x=pd(i==null?void 0:i.data,O,n),v=!0)}this.selectError&&(p=this.selectError,x=this.selectResult,m=Date.now(),w="error");const S=y==="fetching",C=w==="loading",j=w==="error";return{status:w,fetchStatus:y,isLoading:C,isSuccess:w==="success",isError:j,isInitialLoading:C&&S,data:x,dataUpdatedAt:h,error:p,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!C,isLoadingError:j&&f.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:v,isPreviousData:g,isRefetchError:j&&f.dataUpdatedAt!==0,isStale:Bf(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,ml(r,n))return;this.currentResult=r;const s={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!this.trackedProps.size)return!0;const l=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(u=>{const d=u;return this.currentResult[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),this.notify({...s,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!Ba(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ke.batch(()=>{if(t.onSuccess){var n,r,s,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(s=(i=this.options).onSettled)==null||s.call(i,this.currentResult.data,null)}else if(t.onError){var o,a,l,u;(o=(a=this.options).onError)==null||o.call(a,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:d})=>{d(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function w4(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function gm(e,t){return w4(e,t)||e.state.dataUpdatedAt>0&&vd(e,t,t.refetchOnMount)}function vd(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Bf(e,t)}return!1}function vm(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Bf(e,n)}function Bf(e,t){return e.isStaleByTime(t.staleTime)}function b4(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!ml(e.getCurrentResult(),t)}class S4 extends Pv{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:md()},n)}getOptimisticResult(t){return t.behavior=md(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,s,i,o,a,l;const{state:u}=t,d=super.createResult(t,n),{isFetching:f,isRefetching:h}=d,p=f&&((r=u.fetchMeta)==null||(s=r.fetchMore)==null?void 0:s.direction)==="forward",m=f&&((i=u.fetchMeta)==null||(o=i.fetchMore)==null?void 0:o.direction)==="backward";return{...d,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v4(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:y4(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:p,isFetchingPreviousPage:m,isRefetching:h&&!p&&!m}}}let C4=class extends ri{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),ml(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:Ov(),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){ke.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,s,i;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(s=(i=this.mutateOptions).onSettled)==null||s.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,a,l,u;(o=(a=this.mutateOptions).onError)==null||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(u=this.mutateOptions).onSettled)==null||l.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:d})=>{d(this.currentResult)})})}};var Av={exports:{}},At={},_v={exports:{}},Tv={};/**
|
|
17
|
+
*/var xC=S,bC=Symbol.for("react.element"),SC=Symbol.for("react.fragment"),EC=Object.prototype.hasOwnProperty,CC=xC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kC={key:!0,ref:!0,__self:!0,__source:!0};function my(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)EC.call(t,r)&&!kC.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:bC,type:e,key:i,ref:o,props:s,_owner:CC.current}}_c.Fragment=SC;_c.jsx=my;_c.jsxs=my;iy.exports=_c;var d=iy.exports;const TC={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Ru{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||TC,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Ru(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ru(this.logger,t)}}var Dn=new Ru;class Mc{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function wo(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function $g(e){return e==null?"":""+e}function jC(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function Rh(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function s(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(s())return{};const o=r(i.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return s()?{}:{obj:e,k:r(i.shift())}}function zg(e,t,n){const{obj:r,k:s}=Rh(e,t,Object);r[s]=n}function PC(e,t,n,r){const{obj:s,k:i}=Rh(e,t,Object);s[i]=s[i]||[],r&&(s[i]=s[i].concat(n)),r||s[i].push(n)}function Nu(e,t){const{obj:n,k:r}=Rh(e,t);if(n)return n[r]}function OC(e,t,n){const r=Nu(e,n);return r!==void 0?r:Nu(t,n)}function gy(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):gy(e[r],t[r],n):e[r]=t[r]);return e}function ti(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var RC={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function NC(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>RC[t]):e}const AC=[" ",",","?","!",";"];function IC(e,t,n){t=t||"",n=n||"";const r=AC.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(e);if(!i){const o=e.indexOf(n);o>0&&!s.test(e.substring(0,o))&&(i=!0)}return i}function Au(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let i=0;i<r.length;++i){if(!s||typeof s[r[i]]=="string"&&i+1<r.length)return;if(s[r[i]]===void 0){let o=2,l=r.slice(i,i+o).join(n),a=s[l];for(;a===void 0&&r.length>i+o;)o++,l=r.slice(i,i+o).join(n),a=s[l];if(a===void 0)return;if(a===null)return null;if(t.endsWith(l)){if(typeof a=="string")return a;if(l&&typeof a[l]=="string")return a[l]}const u=r.slice(i+o).join(n);return u?Au(a,u,n):void 0}s=s[r[i]]}return s}function Iu(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Bg extends Mc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l=[t,n];r&&typeof r!="string"&&(l=l.concat(r)),r&&typeof r=="string"&&(l=l.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(l=t.split("."));const a=Nu(this.data,l);return a||!o||typeof r!="string"?a:Au(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(l=t.split("."),s=n,n=l[1]),this.addNamespaces(n),zg(this.data,l,s),i.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),s=r,r=n,n=l[1]),this.addNamespaces(n);let a=Nu(this.data,l)||{};s?gy(a,r,i):a={...a,...r},zg(this.data,l,a),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var vy={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,s))}),t}};const Vg={};class _u extends Mc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),jC(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Dn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!IC(t,r,s);if(o&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:i};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(s)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const b=n.nsSeparator||this.options.nsSeparator;return s?{res:`${a}${b}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${b}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:o}const f=this.resolve(t,n);let p=f&&f.res;const h=f&&f.usedKey||o,y=f&&f.exactUsedKey||o,w=Object.prototype.toString.apply(p),x=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&x.indexOf(w)<0&&!(typeof g=="string"&&w==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,p,{...n,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(f.res=b,f.usedParams=this.getUsedParamsDetails(n),f):b}if(i){const b=w==="[object Array]",E=b?[]:{},T=b?y:h;for(const C in p)if(Object.prototype.hasOwnProperty.call(p,C)){const R=`${T}${i}${C}`;E[C]=this.translate(R,{...n,joinArrays:!1,ns:l}),E[C]===R&&(E[C]=p[C])}p=E}}else if(m&&typeof g=="string"&&w==="[object Array]")p=p.join(g),p&&(p=this.extendTranslation(p,t,n,r));else{let b=!1,E=!1;const T=n.count!==void 0&&typeof n.count!="string",C=_u.hasDefaultValue(n),R=T?this.pluralResolver.getSuffix(u,n.count,n):"",j=n.ordinal&&T?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",L=n[`defaultValue${R}`]||n[`defaultValue${j}`]||n.defaultValue;!this.isValidLookup(p)&&C&&(b=!0,p=L),this.isValidLookup(p)||(E=!0,p=o);const N=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:p,M=C&&L!==p&&this.options.updateMissing;if(E||b||M){if(this.logger.log(M?"updateKey":"missingKey",u,a,o,M?L:p),i){const z=this.resolve(o,{...n,keySeparator:!1});z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let D=[];const k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let z=0;z<k.length;z++)D.push(k[z]);else this.options.saveMissingTo==="all"?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);const I=(z,_,$)=>{const V=C&&$!==p?$:N;this.options.missingKeyHandler?this.options.missingKeyHandler(z,a,_,V,M,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(z,a,_,V,M,n),this.emit("missingKey",z,a,_,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?D.forEach(z=>{this.pluralResolver.getSuffixes(z,n).forEach(_=>{I([z],o+_,n[`defaultValue${_}`]||L)})}):I(D,o,L))}p=this.extendTranslation(p,t,n,f,r),E&&p===o&&this.options.appendNamespaceToMissingKey&&(p=`${a}:${o}`),(E||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,b?p:void 0):p=this.options.parseMissingKeyHandler(p))}return s?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(t,n,r,s,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const p=t.match(this.interpolator.nestingRegexp);c=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),u){const p=t.match(this.interpolator.nestingRegexp),h=p&&p.length;c<h&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var p=arguments.length,h=new Array(p),y=0;y<p;y++)h[y]=arguments[y];return i&&i[0]===h[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):o.translate(...h,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,a=typeof l=="string"?[l]:l;return t!=null&&a&&a.length&&r.applyPostProcessor!==!1&&(t=vy.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,i,o,l;return typeof t=="string"&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),c=u.key;s=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",h=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),y=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(x=>{this.isValidLookup(r)||(l=x,!Vg[`${w[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Vg[`${w[0]}-${x}`]=!0,this.logger.warn(`key "${s}" for languages "${w.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(g=>{if(this.isValidLookup(r))return;o=g;const m=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(m,c,g,x,n);else{let b;p&&(b=this.pluralResolver.getSuffix(g,n.count,n));const E=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(m.push(c+b),n.ordinal&&b.indexOf(T)===0&&m.push(c+b.replace(T,this.options.pluralSeparator)),h&&m.push(c+E)),y){const C=`${c}${this.options.contextSeparator}${n.context}`;m.push(C),p&&(m.push(C+b),n.ordinal&&b.indexOf(T)===0&&m.push(C+b.replace(T,this.options.pluralSeparator)),h&&m.push(C+E))}}let v;for(;v=m.pop();)this.isValidLookup(r)||(i=v,r=this.getResource(g,x,v,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Bd(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Ug{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dn.create("languageUtils")}getScriptPartFromCode(t){if(t=Iu(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Iu(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Bd(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Bd(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Bd(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&i.indexOf(s)===0)return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}let _C=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],MC={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const LC=["v1","v2","v3"],DC=["v4"],Hg={zero:0,one:1,two:2,few:3,many:4,other:5};function FC(){const e={};return _C.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:MC[t.fc]}})}),e}class $C{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Dn.create("pluralResolver"),(!this.options.compatibilityJSON||DC.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=FC()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Iu(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,i)=>Hg[s]-Hg[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const i=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!LC.includes(this.options.compatibilityJSON)}}function qg(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=OC(e,t,n);return!i&&s&&typeof n=="string"&&(i=Au(e,n,r),i===void 0&&(i=Au(t,n,r))),i}class zC{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:NC,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?ti(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ti(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ti(n.nestingPrefix):n.nestingPrefixEscaped||ti("$t("),this.nestingSuffix=n.nestingSuffix?ti(n.nestingSuffix):n.nestingSuffixEscaped||ti(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,s){let i,o,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(y){return y.replace(/\$/g,"$$$$")}const c=y=>{if(y.indexOf(this.formatSeparator)<0){const m=qg(n,a,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,{...s,...n,interpolationkey:y}):m}const w=y.split(this.formatSeparator),x=w.shift().trim(),g=w.join(this.formatSeparator).trim();return this.format(qg(n,a,x,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...s,...n,interpolationkey:x})};this.resetRegExp();const f=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,p=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>u(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?u(this.escape(y)):u(y)}].forEach(y=>{for(l=0;i=y.regex.exec(t);){const w=i[1].trim();if(o=c(w),o===void 0)if(typeof f=="function"){const g=f(t,i,s);o=typeof g=="string"?g:""}else if(s&&Object.prototype.hasOwnProperty.call(s,w))o="";else if(p){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=$g(o));const x=y.safeValue(o);if(t=t.replace(i[0],x),p?(y.regex.lastIndex+=o.length,y.regex.lastIndex-=i[0].length):y.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,o;function l(a,u){const c=this.nestingOptionsSeparator;if(a.indexOf(c)<0)return a;const f=a.split(new RegExp(`${c}[ ]*{`));let p=`{${f[1]}`;a=f[0],p=this.interpolate(p,o);const h=p.match(/'/g),y=p.match(/"/g);(h&&h.length%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),u&&(o={...u,...o})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,w),`${a}${c}${p}`}return delete o.defaultValue,a}for(;s=this.nestingRegexp.exec(t);){let a=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(f=>f.trim());s[1]=c.shift(),a=c,u=!0}if(i=n(l.call(this,s[1].trim(),o),o),i&&s[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=$g(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=a.reduce((c,f)=>this.format(c,f,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}function BC(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(!o)return;const[l,...a]=o.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=u),u==="false"&&(n[l.trim()]=!1),u==="true"&&(n[l.trim()]=!0),isNaN(u)||(n[l.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function ni(e){const t={};return function(r,s,i){const o=s+JSON.stringify(i);let l=t[o];return l||(l=e(Iu(s),i),t[o]=l),l(r)}}class VC{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dn.create("formatter"),this.options=t,this.formats={number:ni((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return i=>s.format(i)}),currency:ni((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>s.format(i)}),datetime:ni((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return i=>s.format(i)}),relativetime:ni((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return i=>s.format(i,r.range||"day")}),list:ni((n,r)=>{const s=new Intl.ListFormat(n,{...r});return i=>s.format(i)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ni(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,a)=>{const{formatName:u,formatOptions:c}=BC(a);if(this.formats[u]){let f=l;try{const p=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},h=p.locale||p.lng||s.locale||s.lng||r;f=this.formats[u](l,h,{...c,...s,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}function UC(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class HC extends Mc{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=Dn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const i={},o={},l={},a={};return t.forEach(u=>{let c=!0;n.forEach(f=>{const p=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,c=!1,o[p]===void 0&&(o[p]=!0),i[p]===void 0&&(i[p]=!0),a[f]===void 0&&(a[f]=!0)))}),c||(l[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const s=t.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),r&&this.store.addResourceBundle(i,o,r),this.state[t]=n?-1:2;const l={};this.queue.forEach(a=>{PC(a.loaded,[i],o),UC(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{l[u]||(l[u]={});const c=a.loaded[u];c.length&&c.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const l=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,i*2,o)},i);return}o(u,c)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(c=>l(null,c)).catch(l):l(null,u)}catch(u){l(u)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&l&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,l),this.loaded(t,o,l)})}saveMissing(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,s,a):c=u(t,n,r,s),c&&typeof c.then=="function"?c.then(f=>l(null,f)).catch(l):l(null,c)}catch(c){l(c)}else u(t,n,r,s,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}function Wg(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Gg(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Pl(){}function qC(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class ua extends Mc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Gg(t),this.services={},this.logger=Dn,this.modules={external:[]},qC(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Wg();this.options={...s,...this.options,...Gg(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Dn.init(i(this.modules.logger),this.options):Dn.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=VC);const f=new Ug(this.options);this.store=new Bg(this.options.resources,this.options);const p=this.services;p.logger=Dn,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new $C(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(p.formatter=i(c),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new zC(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new HC(i(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(h){for(var y=arguments.length,w=new Array(y>1?y-1:0),x=1;x<y;x++)w[x-1]=arguments[x];t.emit(h,...w)}),this.modules.languageDetector&&(p.languageDetector=i(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=i(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new _u(this.services,this.options),this.translator.on("*",function(h){for(var y=arguments.length,w=new Array(y>1?y-1:0),x=1;x<y;x++)w[x-1]=arguments[x];t.emit(h,...w)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Pl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const a=wo(),u=()=>{const c=(f,p)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(p),r(f,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pl;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>o(a)),this.options.preload&&this.options.preload.forEach(l=>o(l)),this.services.backendConnector.load(i,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const s=wo();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Pl),this.services.backendConnector.reload(t,n,i=>{s.resolve(),r(i)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&vy.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=wo();this.emit("languageChanging",t);const i=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},o=(a,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=typeof a=="string"?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{o(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,n,r){var s=this;const i=function(o,l){let a;if(typeof l!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),f=2;f<u;f++)c[f-2]=arguments[f];a=s.options.overloadTranslationOptionHandler([o,l].concat(c))}else a={...l};a.lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs,a.ns=a.ns||i.ns,a.keyPrefix=a.keyPrefix||r||i.keyPrefix;const p=s.options.keySeparator||".";let h;return a.keyPrefix&&Array.isArray(o)?h=o.map(y=>`${a.keyPrefix}${p}${y}`):h=a.keyPrefix?`${a.keyPrefix}${p}${o}`:o,s.t(h,a)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,a)=>{const u=this.services.backendConnector.state[`${l}|${a}`];return u===-1||u===2};if(n.precheck){const l=n.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!s||o(i,t)))}loadNamespaces(t,n){const r=wo();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=wo();typeof t=="string"&&(t=[t]);const s=this.options.preload||[],i=t.filter(o=>s.indexOf(o)<0);return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Ug(Wg());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new ua(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pl;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},i=new ua(s);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Bg(this.store.data,s),i.services.resourceStore=i.store),i.translator=new _u(i.services,s),i.translator.on("*",function(l){for(var a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];i.emit(l,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const st=ua.createInstance();st.createInstance=ua.createInstance;st.createInstance;st.dir;st.init;st.loadResources;st.reloadResources;st.use;st.changeLanguage;st.getFixedT;const Pt=st.t;st.exists;st.setDefaultNamespace;st.hasLoadedNamespace;st.loadNamespaces;st.loadLanguages;function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}var yy=[],WC=yy.forEach,GC=yy.slice;function Uf(e){return WC.call(GC.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function wy(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Vf(XMLHttpRequest))==="object"}function QC(e){return!!e&&typeof e.then=="function"}function KC(e){return QC(e)?e:Promise.resolve(e)}function XC(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Hf={exports:{}},Ol={exports:{}},Qg;function YC(){return Qg||(Qg=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof lt<"u"&<,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var l=typeof i<"u"&&i||typeof self<"u"&&self||typeof l<"u"&&l,a={searchParams:"URLSearchParams"in l,iterable:"Symbol"in l&&"iterator"in Symbol,blob:"FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in l,arrayBuffer:"ArrayBuffer"in l};function u(k){return k&&DataView.prototype.isPrototypeOf(k)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(k){return k&&c.indexOf(Object.prototype.toString.call(k))>-1};function p(k){if(typeof k!="string"&&(k=String(k)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(k)||k==="")throw new TypeError('Invalid character in header field name: "'+k+'"');return k.toLowerCase()}function h(k){return typeof k!="string"&&(k=String(k)),k}function y(k){var I={next:function(){var z=k.shift();return{done:z===void 0,value:z}}};return a.iterable&&(I[Symbol.iterator]=function(){return I}),I}function w(k){this.map={},k instanceof w?k.forEach(function(I,z){this.append(z,I)},this):Array.isArray(k)?k.forEach(function(I){this.append(I[0],I[1])},this):k&&Object.getOwnPropertyNames(k).forEach(function(I){this.append(I,k[I])},this)}w.prototype.append=function(k,I){k=p(k),I=h(I);var z=this.map[k];this.map[k]=z?z+", "+I:I},w.prototype.delete=function(k){delete this.map[p(k)]},w.prototype.get=function(k){return k=p(k),this.has(k)?this.map[k]:null},w.prototype.has=function(k){return this.map.hasOwnProperty(p(k))},w.prototype.set=function(k,I){this.map[p(k)]=h(I)},w.prototype.forEach=function(k,I){for(var z in this.map)this.map.hasOwnProperty(z)&&k.call(I,this.map[z],z,this)},w.prototype.keys=function(){var k=[];return this.forEach(function(I,z){k.push(z)}),y(k)},w.prototype.values=function(){var k=[];return this.forEach(function(I){k.push(I)}),y(k)},w.prototype.entries=function(){var k=[];return this.forEach(function(I,z){k.push([z,I])}),y(k)},a.iterable&&(w.prototype[Symbol.iterator]=w.prototype.entries);function x(k){if(k.bodyUsed)return Promise.reject(new TypeError("Already read"));k.bodyUsed=!0}function g(k){return new Promise(function(I,z){k.onload=function(){I(k.result)},k.onerror=function(){z(k.error)}})}function m(k){var I=new FileReader,z=g(I);return I.readAsArrayBuffer(k),z}function v(k){var I=new FileReader,z=g(I);return I.readAsText(k),z}function b(k){for(var I=new Uint8Array(k),z=new Array(I.length),_=0;_<I.length;_++)z[_]=String.fromCharCode(I[_]);return z.join("")}function E(k){if(k.slice)return k.slice(0);var I=new Uint8Array(k.byteLength);return I.set(new Uint8Array(k)),I.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(k){this.bodyUsed=this.bodyUsed,this._bodyInit=k,k?typeof k=="string"?this._bodyText=k:a.blob&&Blob.prototype.isPrototypeOf(k)?this._bodyBlob=k:a.formData&&FormData.prototype.isPrototypeOf(k)?this._bodyFormData=k:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(k)?this._bodyText=k.toString():a.arrayBuffer&&a.blob&&u(k)?(this._bodyArrayBuffer=E(k.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(k)||f(k))?this._bodyArrayBuffer=E(k):this._bodyText=k=Object.prototype.toString.call(k):this._bodyText="",this.headers.get("content-type")||(typeof k=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(k)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var k=x(this);if(k)return k;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var k=x(this);return k||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(m)}),this.text=function(){var k=x(this);if(k)return k;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(b(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(L)}),this.json=function(){return this.text().then(JSON.parse)},this}var C=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function R(k){var I=k.toUpperCase();return C.indexOf(I)>-1?I:k}function j(k,I){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');I=I||{};var z=I.body;if(k instanceof j){if(k.bodyUsed)throw new TypeError("Already read");this.url=k.url,this.credentials=k.credentials,I.headers||(this.headers=new w(k.headers)),this.method=k.method,this.mode=k.mode,this.signal=k.signal,!z&&k._bodyInit!=null&&(z=k._bodyInit,k.bodyUsed=!0)}else this.url=String(k);if(this.credentials=I.credentials||this.credentials||"same-origin",(I.headers||!this.headers)&&(this.headers=new w(I.headers)),this.method=R(I.method||this.method||"GET"),this.mode=I.mode||this.mode||null,this.signal=I.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&z)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(z),(this.method==="GET"||this.method==="HEAD")&&(I.cache==="no-store"||I.cache==="no-cache")){var _=/([?&])_=[^&]*/;if(_.test(this.url))this.url=this.url.replace(_,"$1_="+new Date().getTime());else{var $=/\?/;this.url+=($.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}j.prototype.clone=function(){return new j(this,{body:this._bodyInit})};function L(k){var I=new FormData;return k.trim().split("&").forEach(function(z){if(z){var _=z.split("="),$=_.shift().replace(/\+/g," "),V=_.join("=").replace(/\+/g," ");I.append(decodeURIComponent($),decodeURIComponent(V))}}),I}function A(k){var I=new w,z=k.replace(/\r?\n[\t ]+/g," ");return z.split("\r").map(function(_){return _.indexOf(`
|
|
18
|
+
`)===0?_.substr(1,_.length):_}).forEach(function(_){var $=_.split(":"),V=$.shift().trim();if(V){var ne=$.join(":").trim();I.append(V,ne)}}),I}T.call(j.prototype);function N(k,I){if(!(this instanceof N))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');I||(I={}),this.type="default",this.status=I.status===void 0?200:I.status,this.ok=this.status>=200&&this.status<300,this.statusText=I.statusText===void 0?"":""+I.statusText,this.headers=new w(I.headers),this.url=I.url||"",this._initBody(k)}T.call(N.prototype),N.prototype.clone=function(){return new N(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new w(this.headers),url:this.url})},N.error=function(){var k=new N(null,{status:0,statusText:""});return k.type="error",k};var M=[301,302,303,307,308];N.redirect=function(k,I){if(M.indexOf(I)===-1)throw new RangeError("Invalid status code");return new N(null,{status:I,headers:{location:k}})},o.DOMException=l.DOMException;try{new o.DOMException}catch{o.DOMException=function(I,z){this.message=I,this.name=z;var _=Error(I);this.stack=_.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function D(k,I){return new Promise(function(z,_){var $=new j(k,I);if($.signal&&$.signal.aborted)return _(new o.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function ne(){V.abort()}V.onload=function(){var de={status:V.status,statusText:V.statusText,headers:A(V.getAllResponseHeaders()||"")};de.url="responseURL"in V?V.responseURL:de.headers.get("X-Request-URL");var ye="response"in V?V.response:V.responseText;setTimeout(function(){z(new N(ye,de))},0)},V.onerror=function(){setTimeout(function(){_(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){_(new TypeError("Network request failed"))},0)},V.onabort=function(){setTimeout(function(){_(new o.DOMException("Aborted","AbortError"))},0)};function re(de){try{return de===""&&l.location.href?l.location.href:de}catch{return de}}V.open($.method,re($.url),!0),$.credentials==="include"?V.withCredentials=!0:$.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(a.blob?V.responseType="blob":a.arrayBuffer&&$.headers.get("Content-Type")&&$.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(V.responseType="arraybuffer")),I&&typeof I.headers=="object"&&!(I.headers instanceof w)?Object.getOwnPropertyNames(I.headers).forEach(function(de){V.setRequestHeader(de,h(I.headers[de]))}):$.headers.forEach(function(de,ye){V.setRequestHeader(ye,de)}),$.signal&&($.signal.addEventListener("abort",ne),V.onreadystatechange=function(){V.readyState===4&&$.signal.removeEventListener("abort",ne)}),V.send(typeof $._bodyInit>"u"?null:$._bodyInit)})}return D.polyfill=!0,l.fetch||(l.fetch=D,l.Headers=w,l.Request=j,l.Response=N),o.Headers=w,o.Request=j,o.Response=N,o.fetch=D,o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=n.fetch?n:r;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t}(Ol,Ol.exports)),Ol.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof lt<"u"&<.fetch?n=lt.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof XC<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||YC();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Hf,Hf.exports);var xy=Hf.exports;const by=il(xy),Kg=sy({__proto__:null,default:by},[xy]);function Mu(e){"@babel/helpers - typeof";return Mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mu(e)}var ir;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?ir=global.fetch:typeof window<"u"&&window.fetch?ir=window.fetch:ir=fetch);var ca;wy()&&(typeof global<"u"&&global.XMLHttpRequest?ca=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(ca=window.XMLHttpRequest));var Lu;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Lu=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Lu=window.ActiveXObject));!ir&&Kg&&!ca&&!Lu&&(ir=by||Kg);typeof ir!="function"&&(ir=void 0);var qf=function(t,n){if(n&&Mu(n)==="object"){var r="";for(var s in n)r+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},Xg=function(t,n,r){var s=function(o){if(!o.ok)return r(o.statusText||"Error",{status:o.status});o.text().then(function(l){r(null,{status:o.status,data:l})}).catch(r)};typeof fetch=="function"?fetch(t,n).then(s).catch(r):ir(t,n).then(s).catch(r)},Yg=!1,JC=function(t,n,r,s){t.queryStringParams&&(n=qf(n,t.queryStringParams));var i=Uf({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,l=Uf({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},Yg?{}:o);try{Xg(n,l,s)}catch(a){if(!o||Object.keys(o).length===0||!a.message||a.message.indexOf("not implemented")<0)return s(a);try{Object.keys(o).forEach(function(u){delete l[u]}),Xg(n,l,s),Yg=!0}catch(u){s(u)}}},ZC=function(t,n,r,s){r&&Mu(r)==="object"&&(r=qf("",r).slice(1)),t.queryStringParams&&(n=qf(n,t.queryStringParams));try{var i;ca?i=new ca:i=new Lu("MSXML2.XMLHTTP.3.0"),i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var l in o)i.setRequestHeader(l,o[l]);i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(a){console&&console.log(a)}},e4=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},ir&&n.indexOf("file:")!==0)return JC(t,n,r,s);if(wy()||typeof ActiveXObject=="function")return ZC(t,n,r,s);s(new Error("No fetch and no xhr implementation found!"))};function da(e){"@babel/helpers - typeof";return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},da(e)}function t4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sy(r.key),r)}}function n4(e,t,n){return t&&Jg(e.prototype,t),n&&Jg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function r4(e,t,n){return t=Sy(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sy(e){var t=s4(e,"string");return da(t)==="symbol"?t:String(t)}function s4(e,t){if(da(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(da(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i4=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,s){return r4({},r,s||"")},parseLoadPayload:function(n,r){},request:e4,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Ey=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};t4(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return n4(e,[{key:"init",value:function(n){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=Uf(s,this.options||{},i4()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,s){this._readAny(n,n,r,r,s)}},{key:"read",value:function(n,r,s){this._readAny([n],n,[r],r,s)}},{key:"_readAny",value:function(n,r,s,i,o){var l=this,a=this.options.loadPath;typeof this.options.loadPath=="function"&&(a=this.options.loadPath(n,s)),a=KC(a),a.then(function(u){if(!u)return o(null,{});var c=l.services.interpolator.interpolate(u,{lng:n.join("+"),ns:s.join("+")});l.loadUrl(c,o,r,i)})}},{key:"loadUrl",value:function(n,r,s,i){var o=this,l=typeof s=="string"?[s]:s,a=typeof i=="string"?[i]:i,u=this.options.parseLoadPayload(l,a);this.options.request(this.options,n,u,function(c,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+n+"; status code: "+f.status,!1);if(!f&&c&&c.message&&c.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+c.message,!0);if(c)return r(c,!1);var p,h;try{typeof f.data=="string"?p=o.options.parse(f.data,s,i):p=f.data}catch{h="failed parsing "+n+" to json"}if(h)return r(h,!1);r(null,p)})}},{key:"create",value:function(n,r,s,i,o){var l=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var a=this.options.parsePayload(r,s,i),u=0,c=[],f=[];n.forEach(function(p){var h=l.options.addPath;typeof l.options.addPath=="function"&&(h=l.options.addPath(p,r));var y=l.services.interpolator.interpolate(h,{lng:p,ns:r});l.options.request(l.options,y,a,function(w,x){u+=1,c.push(w),f.push(x),u===n.length&&typeof o=="function"&&o(c,f)})})}}},{key:"reload",value:function(){var n=this,r=this.services,s=r.backendConnector,i=r.languageUtils,o=r.logger,l=s.language;if(!(l&&l.toLowerCase()==="cimode")){var a=[],u=function(f){var p=i.toResolveHierarchy(f);p.forEach(function(h){a.indexOf(h)<0&&a.push(h)})};u(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),a.forEach(function(c){n.allOptions.ns.forEach(function(f){s.read(c,f,"read",null,null,function(p,h){p&&o.warn("loading namespace ".concat(f," for language ").concat(c," failed"),p),!p&&h&&o.log("loaded namespace ".concat(f," for language ").concat(c),h),s.loaded("".concat(c,"|").concat(f),p,h)})})})}}}]),e}();Ey.type="backend";function o4(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const Zg={};function Wf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Zg[t[0]]||(typeof t[0]=="string"&&(Zg[t[0]]=new Date),o4(...t))}const Cy=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function ev(e,t,n){e.loadNamespaces(t,Cy(e,n))}function tv(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,Cy(e,r))}function a4(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],s=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,a)=>{const u=t.services.backendConnector.state[`${l}|${a}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!s||o(i,e)))}function l4(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Wf("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}):a4(e,t,n)}const u4=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,c4={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},d4=e=>c4[e],f4=e=>e.replace(u4,d4);let Gf={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:f4};function p4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gf={...Gf,...e}}function h4(){return Gf}let ky;function m4(e){ky=e}function g4(){return ky}const v4={type:"3rdParty",init(e){p4(e.options.react),m4(e)}},y4=S.createContext();class w4{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const x4=(e,t)=>{const n=S.useRef();return S.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function ue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:s}=S.useContext(y4)||{},i=n||r||g4();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new w4),!i){Wf("You will need to pass in an i18next instance by using initReactI18next");const v=(E,T)=>typeof T=="string"?T:T&&typeof T=="object"&&typeof T.defaultValue=="string"?T.defaultValue:Array.isArray(E)?E[E.length-1]:E,b=[v,{},!1];return b.t=v,b.i18n={},b.ready=!1,b}i.options.react&&i.options.react.wait!==void 0&&Wf("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...h4(),...i.options.react,...t},{useSuspense:l,keyPrefix:a}=o;let u=e||s||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(v=>l4(v,i,o));function f(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],a)}const[p,h]=S.useState(f);let y=u.join();t.lng&&(y=`${t.lng}${y}`);const w=x4(y),x=S.useRef(!0);S.useEffect(()=>{const{bindI18n:v,bindI18nStore:b}=o;x.current=!0,!c&&!l&&(t.lng?tv(i,t.lng,u,()=>{x.current&&h(f)}):ev(i,u,()=>{x.current&&h(f)})),c&&w&&w!==y&&x.current&&h(f);function E(){x.current&&h(f)}return v&&i&&i.on(v,E),b&&i&&i.store.on(b,E),()=>{x.current=!1,v&&i&&v.split(" ").forEach(T=>i.off(T,E)),b&&i&&b.split(" ").forEach(T=>i.store.off(T,E))}},[i,y]);const g=S.useRef(!0);S.useEffect(()=>{x.current&&!g.current&&h(f),g.current=!1},[i,a]);const m=[p,i,c];if(m.t=p,m.i18n=i,m.ready=c,c||!c&&!l)return m;throw new Promise(v=>{t.lng?tv(i,t.lng,u,()=>v()):ev(i,u,()=>v())})}st.use(Ey).use(v4).init({backend:{loadPath:(e,t)=>t.map(r=>r==="common"?"/i18n":`/${r}/i18n`),parse:e=>JSON.parse(e)},defaultNS:"common",ns:["common"],fallbackLng:"fr",lng:"fr",interpolation:{escapeValue:!1,prefix:"[[",suffix:"]]"},debug:!1});var uo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Gi=typeof window>"u"||"Deno"in window;function Kt(){}function b4(e,t){return typeof e=="function"?e(t):e}function Qf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ty(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nv(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Nh(o,t.options))return!1}else if(!pa(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 s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function rv(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(fa(t.options.mutationKey)!==fa(i))return!1}else if(!pa(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Nh(e,t){return((t==null?void 0:t.queryKeyHashFn)||fa)(e)}function fa(e){return JSON.stringify(e,(t,n)=>Kf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function pa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!pa(e[n],t[n])):!1}function jy(e,t){if(e===t)return e;const n=sv(e)&&sv(t);if(n||Kf(e)&&Kf(t)){const r=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let l=0;for(let a=0;a<i;a++){const u=n?a:s[a];o[u]=jy(e[u],t[u]),o[u]===e[u]&&l++}return r===i&&l===r?e:o}return t}function Du(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function sv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Kf(e){if(!iv(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!iv(n)||!n.hasOwnProperty("isPrototypeOf"))}function iv(e){return Object.prototype.toString.call(e)==="[object Object]"}function Py(e){return new Promise(t=>{setTimeout(t,e)})}function ov(e){Py(0).then(e)}function Xf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?jy(e,t):t}function S4(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function E4(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ss,jr,Ni,Q0,C4=(Q0=class extends uo{constructor(){super();Y(this,Ss,void 0);Y(this,jr,void 0);Y(this,Ni,void 0);G(this,Ni,t=>{if(!Gi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,jr)||this.setEventListener(P(this,Ni))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,jr))==null||t.call(this),G(this,jr,void 0))}setEventListener(t){var n;G(this,Ni,t),(n=P(this,jr))==null||n.call(this),G(this,jr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,Ss)!==t&&(G(this,Ss,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof P(this,Ss)=="boolean"?P(this,Ss):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ss=new WeakMap,jr=new WeakMap,Ni=new WeakMap,Q0),Fu=new C4,Ai,Pr,Ii,K0,k4=(K0=class extends uo{constructor(){super();Y(this,Ai,!0);Y(this,Pr,void 0);Y(this,Ii,void 0);G(this,Ii,t=>{if(!Gi&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,Pr)||this.setEventListener(P(this,Ii))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Pr))==null||t.call(this),G(this,Pr,void 0))}setEventListener(t){var n;G(this,Ii,t),(n=P(this,Pr))==null||n.call(this),G(this,Pr,t(this.setOnline.bind(this)))}setOnline(t){P(this,Ai)!==t&&(G(this,Ai,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Ai)}},Ai=new WeakMap,Pr=new WeakMap,Ii=new WeakMap,K0),$u=new k4;function T4(e){return Math.min(1e3*2**e,3e4)}function Lc(e){return(e??"online")==="online"?$u.isOnline():!0}var Oy=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Vd(e){return e instanceof Oy}function Ry(e){let t=!1,n=0,r=!1,s,i,o;const l=new Promise((x,g)=>{i=x,o=g}),a=x=>{var g;r||(h(new Oy(x)),(g=e.abort)==null||g.call(e))},u=()=>{t=!0},c=()=>{t=!1},f=()=>!Fu.isFocused()||e.networkMode!=="always"&&!$u.isOnline(),p=x=>{var g;r||(r=!0,(g=e.onSuccess)==null||g.call(e,x),s==null||s(),i(x))},h=x=>{var g;r||(r=!0,(g=e.onError)==null||g.call(e,x),s==null||s(),o(x))},y=()=>new Promise(x=>{var g;s=m=>{const v=r||!f();return v&&x(m),v},(g=e.onPause)==null||g.call(e)}).then(()=>{var x;s=void 0,r||(x=e.onContinue)==null||x.call(e)}),w=()=>{if(r)return;let x;try{x=e.fn()}catch(g){x=Promise.reject(g)}Promise.resolve(x).then(p).catch(g=>{var T;if(r)return;const m=e.retry??(Gi?0:3),v=e.retryDelay??T4,b=typeof v=="function"?v(n,g):v,E=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,g);if(t||!E){h(g);return}n++,(T=e.onFail)==null||T.call(e,n,g),Py(b).then(()=>{if(f())return y()}).then(()=>{t?h(g):w()})})};return Lc(e.networkMode)?w():y().then(w),{promise:l,cancel:a,continue:()=>(s==null?void 0:s())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}function j4(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const s=c=>{let f;t++;try{f=c()}finally{t--,t||l()}return f},i=c=>{t?e.push(c):ov(()=>{n(c)})},o=c=>(...f)=>{i(()=>{c(...f)})},l=()=>{const c=e;e=[],c.length&&ov(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:s,batchCalls:o,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}var Fe=j4(),Es,X0,Ny=(X0=class{constructor(){Y(this,Es,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qf(this.gcTime)&&G(this,Es,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gi?1/0:5*60*1e3))}clearGcTimeout(){P(this,Es)&&(clearTimeout(P(this,Es)),G(this,Es,void 0))}},Es=new WeakMap,X0),_i,Mi,qt,Or,Wt,Ve,Ga,Cs,Li,au,yn,Xn,Y0,P4=(Y0=class extends Ny{constructor(t){super();Y(this,Li);Y(this,yn);Y(this,_i,void 0);Y(this,Mi,void 0);Y(this,qt,void 0);Y(this,Or,void 0);Y(this,Wt,void 0);Y(this,Ve,void 0);Y(this,Ga,void 0);Y(this,Cs,void 0);G(this,Cs,!1),G(this,Ga,t.defaultOptions),se(this,Li,au).call(this,t.options),G(this,Ve,[]),G(this,qt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,_i,t.state||O4(this.options)),this.state=P(this,_i),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!P(this,Ve).length&&this.state.fetchStatus==="idle"&&P(this,qt).remove(this)}setData(t,n){const r=Xf(this.state.data,t,this.options);return se(this,yn,Xn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){se(this,yn,Xn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=P(this,Or);return(r=P(this,Wt))==null||r.cancel(t),n?n.then(Kt).catch(Kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,_i))}isActive(){return P(this,Ve).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||P(this,Ve).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Ty(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=P(this,Ve).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Wt))==null||n.continue()}onOnline(){var n;const t=P(this,Ve).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Wt))==null||n.continue()}addObserver(t){P(this,Ve).includes(t)||(P(this,Ve).push(t),this.clearGcTimeout(),P(this,qt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){P(this,Ve).includes(t)&&(G(this,Ve,P(this,Ve).filter(n=>n!==t)),P(this,Ve).length||(P(this,Wt)&&(P(this,Cs)?P(this,Wt).cancel({revert:!0}):P(this,Wt).cancelRetry()),this.scheduleGc()),P(this,qt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return P(this,Ve).length}invalidate(){this.state.isInvalidated||se(this,yn,Xn).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f,p;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,Or))return(u=P(this,Wt))==null||u.continueRetry(),P(this,Or)}if(t&&se(this,Li,au).call(this,t),!this.options.queryFn){const h=P(this,Ve).find(y=>y.options.queryFn);h&&se(this,Li,au).call(this,h.options)}const r=new AbortController,s={queryKey:this.queryKey,meta:this.meta},i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(G(this,Cs,!0),r.signal)})};i(s);const o=()=>this.options.queryFn?(G(this,Cs,!1),this.options.persister?this.options.persister(this.options.queryFn,s,this):this.options.queryFn(s)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(l),(c=this.options.behavior)==null||c.onFetch(l,this),G(this,Mi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&se(this,yn,Xn).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta});const a=h=>{var y,w,x,g;Vd(h)&&h.silent||se(this,yn,Xn).call(this,{type:"error",error:h}),Vd(h)||((w=(y=P(this,qt).config).onError)==null||w.call(y,h,this),(g=(x=P(this,qt).config).onSettled)==null||g.call(x,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return G(this,Wt,Ry({fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var y,w,x,g;if(typeof h>"u"){a(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(w=(y=P(this,qt).config).onSuccess)==null||w.call(y,h,this),(g=(x=P(this,qt).config).onSettled)==null||g.call(x,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(h,y)=>{se(this,yn,Xn).call(this,{type:"failed",failureCount:h,error:y})},onPause:()=>{se(this,yn,Xn).call(this,{type:"pause"})},onContinue:()=>{se(this,yn,Xn).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode})),G(this,Or,P(this,Wt).promise),P(this,Or)}},_i=new WeakMap,Mi=new WeakMap,qt=new WeakMap,Or=new WeakMap,Wt=new WeakMap,Ve=new WeakMap,Ga=new WeakMap,Cs=new WeakMap,Li=new WeakSet,au=function(t){this.options={...P(this,Ga),...t},this.updateGcTime(this.options.gcTime)},yn=new WeakSet,Xn=function(t){const n=r=>{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:t.meta??null,fetchStatus:Lc(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Vd(s)&&s.revert&&P(this,Mi)?{...P(this,Mi),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Fe.batch(()=>{P(this,Ve).forEach(r=>{r.onQueryUpdate()}),P(this,qt).notify({query:this,type:"updated",action:t})})},Y0);function O4(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":"pending",fetchStatus:"idle"}}var An,J0,Ay=(J0=class extends uo{constructor(t={}){super();Y(this,An,void 0);this.config=t,G(this,An,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Nh(s,n);let o=this.get(i);return o||(o=new P4({cache:this,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){P(this,An).has(t.queryHash)||(P(this,An).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,An).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,An).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Fe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,An).get(t)}getAll(){return[...P(this,An).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>nv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>nv(t,r)):n}notify(t){Fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Fe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Fe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},An=new WeakMap,J0),In,Qa,Nt,Di,_n,br,Z0,R4=(Z0=class extends Ny{constructor(t){super();Y(this,_n);Y(this,In,void 0);Y(this,Qa,void 0);Y(this,Nt,void 0);Y(this,Di,void 0);this.mutationId=t.mutationId,G(this,Qa,t.defaultOptions),G(this,Nt,t.mutationCache),G(this,In,[]),this.state=t.state||Iy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...P(this,Qa),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,In).includes(t)||(P(this,In).push(t),this.clearGcTimeout(),P(this,Nt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,In,P(this,In).filter(n=>n!==t)),this.scheduleGc(),P(this,Nt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,In).length||(this.state.status==="pending"?this.scheduleGc():P(this,Nt).remove(this))}continue(){var t;return((t=P(this,Di))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,o,l,a,u,c,f,p,h,y,w,x,g,m,v,b,E,T,C;const n=()=>(G(this,Di,Ry({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,j)=>{se(this,_n,br).call(this,{type:"failed",failureCount:R,error:j})},onPause:()=>{se(this,_n,br).call(this,{type:"pause"})},onContinue:()=>{se(this,_n,br).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),P(this,Di).promise),r=this.state.status==="pending";try{if(!r){se(this,_n,br).call(this,{type:"pending",variables:t}),await((i=(s=P(this,Nt).config).onMutate)==null?void 0:i.call(s,t,this));const j=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));j!==this.state.context&&se(this,_n,br).call(this,{type:"pending",context:j,variables:t})}const R=await n();return await((u=(a=P(this,Nt).config).onSuccess)==null?void 0:u.call(a,R,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,R,t,this.state.context)),await((h=(p=P(this,Nt).config).onSettled)==null?void 0:h.call(p,R,null,this.state.variables,this.state.context,this)),await((w=(y=this.options).onSettled)==null?void 0:w.call(y,R,null,t,this.state.context)),se(this,_n,br).call(this,{type:"success",data:R}),R}catch(R){try{throw await((g=(x=P(this,Nt).config).onError)==null?void 0:g.call(x,R,t,this.state.context,this)),await((v=(m=this.options).onError)==null?void 0:v.call(m,R,t,this.state.context)),await((E=(b=P(this,Nt).config).onSettled)==null?void 0:E.call(b,void 0,R,this.state.variables,this.state.context,this)),await((C=(T=this.options).onSettled)==null?void 0:C.call(T,void 0,R,t,this.state.context)),R}finally{se(this,_n,br).call(this,{type:"error",error:R})}}}},In=new WeakMap,Qa=new WeakMap,Nt=new WeakMap,Di=new WeakMap,_n=new WeakSet,br=function(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"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Lc(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};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"}}};this.state=n(this.state),Fe.batch(()=>{P(this,In).forEach(r=>{r.onMutationUpdate(t)}),P(this,Nt).notify({mutation:this,type:"updated",action:t})})},Z0);function Iy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gt,Ka,ks,ey,N4=(ey=class extends uo{constructor(t={}){super();Y(this,Gt,void 0);Y(this,Ka,void 0);Y(this,ks,void 0);this.config=t,G(this,Gt,[]),G(this,Ka,0)}build(t,n,r){const s=new R4({mutationCache:this,mutationId:++Tl(this,Ka)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){P(this,Gt).push(t),this.notify({type:"added",mutation:t})}remove(t){G(this,Gt,P(this,Gt).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Fe.batch(()=>{P(this,Gt).forEach(t=>{this.remove(t)})})}getAll(){return P(this,Gt)}find(t){const n={exact:!0,...t};return P(this,Gt).find(r=>rv(n,r))}findAll(t={}){return P(this,Gt).filter(n=>rv(t,n))}notify(t){Fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return G(this,ks,(P(this,ks)??Promise.resolve()).then(()=>{const t=P(this,Gt).filter(n=>n.state.isPaused);return Fe.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Kt)),Promise.resolve()))}).then(()=>{G(this,ks,void 0)})),P(this,ks)}},Gt=new WeakMap,Ka=new WeakMap,ks=new WeakMap,ey);function Yf(e){return{onFetch:(t,n)=>{const r=async()=>{var y,w,x,g,m;const s=t.options,i=(x=(w=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:w.fetchMore)==null?void 0:x.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],l=((m=t.state.data)==null?void 0:m.pageParams)||[],a={pages:[],pageParams:[]};let u=!1;const c=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),p=async(v,b,E)=>{if(u)return Promise.reject();if(b==null&&v.pages.length)return Promise.resolve(v);const T={queryKey:t.queryKey,pageParam:b,direction:E?"backward":"forward",meta:t.options.meta};c(T);const C=await f(T),{maxPages:R}=t.options,j=E?E4:S4;return{pages:j(v.pages,C,R),pageParams:j(v.pageParams,b,R)}};let h;if(i&&o.length){const v=i==="backward",b=v?_y:Jf,E={pages:o,pageParams:l},T=b(s,E);h=await p(E,T,v)}else{h=await p(a,l[0]??s.initialPageParam);const v=e??o.length;for(let b=1;b<v;b++){const E=Jf(s,h);h=await p(h,E)}}return h};t.options.persister?t.fetchFn=()=>{var s,i;return(i=(s=t.options).persister)==null?void 0:i.call(s,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function Jf(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function _y(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function A4(e,t){return t?Jf(e,t)!=null:!1}function I4(e,t){return!t||!e.getPreviousPageParam?!1:_y(e,t)!=null}var Le,Rr,Nr,Fi,$i,Ar,zi,Bi,ty,_4=(ty=class{constructor(e={}){Y(this,Le,void 0);Y(this,Rr,void 0);Y(this,Nr,void 0);Y(this,Fi,void 0);Y(this,$i,void 0);Y(this,Ar,void 0);Y(this,zi,void 0);Y(this,Bi,void 0);G(this,Le,e.queryCache||new Ay),G(this,Rr,e.mutationCache||new N4),G(this,Nr,e.defaultOptions||{}),G(this,Fi,new Map),G(this,$i,new Map),G(this,Ar,0)}mount(){Tl(this,Ar)._++,P(this,Ar)===1&&(G(this,zi,Fu.subscribe(()=>{Fu.isFocused()&&(this.resumePausedMutations(),P(this,Le).onFocus())})),G(this,Bi,$u.subscribe(()=>{$u.isOnline()&&(this.resumePausedMutations(),P(this,Le).onOnline())})))}unmount(){var e,t;Tl(this,Ar)._--,P(this,Ar)===0&&((e=P(this,zi))==null||e.call(this),G(this,zi,void 0),(t=P(this,Bi))==null||t.call(this),G(this,Bi,void 0))}isFetching(e){return P(this,Le).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,Rr).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=P(this,Le).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=P(this,Le).find({queryKey:e}),s=r==null?void 0:r.state.data,i=b4(t,s);if(typeof i>"u")return;const o=this.defaultQueryOptions({queryKey:e});return P(this,Le).build(this,o).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Fe.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=P(this,Le).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=P(this,Le);Fe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,Le),r={type:"active",...e};return Fe.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Fe.batch(()=>P(this,Le).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Kt).catch(Kt)}invalidateQueries(e={},t={}){return Fe.batch(()=>{if(P(this,Le).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Fe.batch(()=>P(this,Le).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Kt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=P(this,Le).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Kt).catch(Kt)}fetchInfiniteQuery(e){return e.behavior=Yf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Kt).catch(Kt)}resumePausedMutations(){return P(this,Rr).resumePausedMutations()}getQueryCache(){return P(this,Le)}getMutationCache(){return P(this,Rr)}getDefaultOptions(){return P(this,Nr)}setDefaultOptions(e){G(this,Nr,e)}setQueryDefaults(e,t){P(this,Fi).set(fa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,Fi).values()];let n={};return t.forEach(r=>{pa(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){P(this,$i).set(fa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,$i).values()];let n={};return t.forEach(r=>{pa(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...P(this,Nr).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Nh(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,Nr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,Le).clear(),P(this,Rr).clear()}},Le=new WeakMap,Rr=new WeakMap,Nr=new WeakMap,Fi=new WeakMap,$i=new WeakMap,Ar=new WeakMap,zi=new WeakMap,Bi=new WeakMap,ty),vt,me,Vi,tt,Ts,Ui,Mn,Xa,Hi,qi,js,Ps,Ir,Os,Rs,Lo,Ya,Zf,Ja,ep,Za,tp,el,np,tl,rp,nl,sp,rl,ip,Ic,Ly,ny,My=(ny=class extends uo{constructor(t,n){super();Y(this,Rs);Y(this,Ya);Y(this,Ja);Y(this,Za);Y(this,el);Y(this,tl);Y(this,nl);Y(this,rl);Y(this,Ic);Y(this,vt,void 0);Y(this,me,void 0);Y(this,Vi,void 0);Y(this,tt,void 0);Y(this,Ts,void 0);Y(this,Ui,void 0);Y(this,Mn,void 0);Y(this,Xa,void 0);Y(this,Hi,void 0);Y(this,qi,void 0);Y(this,js,void 0);Y(this,Ps,void 0);Y(this,Ir,void 0);Y(this,Os,void 0);G(this,me,void 0),G(this,Vi,void 0),G(this,tt,void 0),G(this,Os,new Set),G(this,vt,t),this.options=n,G(this,Mn,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(P(this,me).addObserver(this),av(P(this,me),this.options)?se(this,Rs,Lo).call(this):this.updateResult(),se(this,el,np).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return op(P(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return op(P(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,se(this,tl,rp).call(this),se(this,nl,sp).call(this),P(this,me).removeObserver(this)}setOptions(t,n){const r=this.options,s=P(this,me);if(this.options=P(this,vt).defaultQueryOptions(t),Du(r,this.options)||P(this,vt).getQueryCache().notify({type:"observerOptionsUpdated",query:P(this,me),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),se(this,rl,ip).call(this);const i=this.hasListeners();i&&lv(P(this,me),s,this.options,r)&&se(this,Rs,Lo).call(this),this.updateResult(n),i&&(P(this,me)!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&se(this,Ya,Zf).call(this);const o=se(this,Ja,ep).call(this);i&&(P(this,me)!==s||this.options.enabled!==r.enabled||o!==P(this,Ir))&&se(this,Za,tp).call(this,o)}getOptimisticResult(t){const n=P(this,vt).getQueryCache().build(P(this,vt),t),r=this.createResult(n,t);return L4(this,r)&&(G(this,tt,r),G(this,Ui,this.options),G(this,Ts,P(this,me).state)),r}getCurrentResult(){return P(this,tt)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(P(this,Os).add(r),t[r])})}),n}getCurrentQuery(){return P(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=P(this,vt).defaultQueryOptions(t),r=P(this,vt).getQueryCache().build(P(this,vt),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return se(this,Rs,Lo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),P(this,tt)))}createResult(t,n){var T;const r=P(this,me),s=this.options,i=P(this,tt),o=P(this,Ts),l=P(this,Ui),u=t!==r?t.state:P(this,Vi),{state:c}=t;let{error:f,errorUpdatedAt:p,fetchStatus:h,status:y}=c,w=!1,x;if(n._optimisticResults){const C=this.hasListeners(),R=!C&&av(t,n),j=C&&lv(t,r,n,s);(R||j)&&(h=Lc(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(y="pending")),n._optimisticResults==="isRestoring"&&(h="idle")}if(n.select&&typeof c.data<"u")if(i&&c.data===(o==null?void 0:o.data)&&n.select===P(this,Xa))x=P(this,Hi);else try{G(this,Xa,n.select),x=n.select(c.data),x=Xf(i==null?void 0:i.data,x,n),G(this,Hi,x),G(this,Mn,null)}catch(C){G(this,Mn,C)}else x=c.data;if(typeof n.placeholderData<"u"&&typeof x>"u"&&y==="pending"){let C;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))C=i.data;else if(C=typeof n.placeholderData=="function"?n.placeholderData((T=P(this,qi))==null?void 0:T.state.data,P(this,qi)):n.placeholderData,n.select&&typeof C<"u")try{C=n.select(C),G(this,Mn,null)}catch(R){G(this,Mn,R)}typeof C<"u"&&(y="success",x=Xf(i==null?void 0:i.data,C,n),w=!0)}P(this,Mn)&&(f=P(this,Mn),x=P(this,Hi),p=Date.now(),y="error");const g=h==="fetching",m=y==="pending",v=y==="error",b=m&&g;return{status:y,fetchStatus:h,isPending:m,isSuccess:y==="success",isError:v,isInitialLoading:b,isLoading:b,data:x,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!m,isLoadingError:v&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:w,isRefetchError:v&&c.dataUpdatedAt!==0,isStale:Ah(t,n),refetch:this.refetch}}updateResult(t){const n=P(this,tt),r=this.createResult(P(this,me),this.options);if(G(this,Ts,P(this,me).state),G(this,Ui,this.options),P(this,Ts).data!==void 0&&G(this,qi,P(this,me)),Du(r,n))return;G(this,tt,r);const s={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!P(this,Os).size)return!0;const a=new Set(l??P(this,Os));return this.options.throwOnError&&a.add("error"),Object.keys(P(this,tt)).some(u=>{const c=u;return P(this,tt)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),se(this,Ic,Ly).call(this,{...s,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&se(this,el,np).call(this)}},vt=new WeakMap,me=new WeakMap,Vi=new WeakMap,tt=new WeakMap,Ts=new WeakMap,Ui=new WeakMap,Mn=new WeakMap,Xa=new WeakMap,Hi=new WeakMap,qi=new WeakMap,js=new WeakMap,Ps=new WeakMap,Ir=new WeakMap,Os=new WeakMap,Rs=new WeakSet,Lo=function(t){se(this,rl,ip).call(this);let n=P(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Kt)),n},Ya=new WeakSet,Zf=function(){if(se(this,tl,rp).call(this),Gi||P(this,tt).isStale||!Qf(this.options.staleTime))return;const n=Ty(P(this,tt).dataUpdatedAt,this.options.staleTime)+1;G(this,js,setTimeout(()=>{P(this,tt).isStale||this.updateResult()},n))},Ja=new WeakSet,ep=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(P(this,me)):this.options.refetchInterval)??!1},Za=new WeakSet,tp=function(t){se(this,nl,sp).call(this),G(this,Ir,t),!(Gi||this.options.enabled===!1||!Qf(P(this,Ir))||P(this,Ir)===0)&&G(this,Ps,setInterval(()=>{(this.options.refetchIntervalInBackground||Fu.isFocused())&&se(this,Rs,Lo).call(this)},P(this,Ir)))},el=new WeakSet,np=function(){se(this,Ya,Zf).call(this),se(this,Za,tp).call(this,se(this,Ja,ep).call(this))},tl=new WeakSet,rp=function(){P(this,js)&&(clearTimeout(P(this,js)),G(this,js,void 0))},nl=new WeakSet,sp=function(){P(this,Ps)&&(clearInterval(P(this,Ps)),G(this,Ps,void 0))},rl=new WeakSet,ip=function(){const t=P(this,vt).getQueryCache().build(P(this,vt),this.options);if(t===P(this,me))return;const n=P(this,me);G(this,me,t),G(this,Vi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Ic=new WeakSet,Ly=function(t){Fe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(P(this,tt))}),P(this,vt).getQueryCache().notify({query:P(this,me),type:"observerResultsUpdated"})})},ny);function M4(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function av(e,t){return M4(e,t)||e.state.dataUpdatedAt>0&&op(e,t,t.refetchOnMount)}function op(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ah(e,t)}return!1}function lv(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Ah(e,n)}function Ah(e,t){return e.isStaleByTime(t.staleTime)}function L4(e,t){return!Du(e.getCurrentResult(),t)}var D4=class extends My{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:Yf()},t)}getOptimisticResult(e){return e.behavior=Yf(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var a,u,c,f;const{state:n}=e,r=super.createResult(e,t),{isFetching:s,isRefetching:i}=r,o=s&&((u=(a=n.fetchMeta)==null?void 0:a.fetchMore)==null?void 0:u.direction)==="forward",l=s&&((f=(c=n.fetchMeta)==null?void 0:c.fetchMore)==null?void 0:f.direction)==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:A4(t,n.data),hasPreviousPage:I4(t,n.data),isFetchingNextPage:o,isFetchingPreviousPage:l,isRefetching:i&&!o&&!l}}},_r,it,Qt,tr,Wi,lu,sl,ap,ry,F4=(ry=class extends uo{constructor(n,r){super();Y(this,Wi);Y(this,sl);Y(this,_r,void 0);Y(this,it,void 0);Y(this,Qt,void 0);Y(this,tr,void 0);G(this,it,void 0),G(this,_r,n),this.setOptions(r),this.bindMethods(),se(this,Wi,lu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=P(this,_r).defaultMutationOptions(n),Du(r,this.options)||P(this,_r).getMutationCache().notify({type:"observerOptionsUpdated",mutation:P(this,Qt),observer:this}),(s=P(this,Qt))==null||s.setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=P(this,Qt))==null||n.removeObserver(this)}onMutationUpdate(n){se(this,Wi,lu).call(this),se(this,sl,ap).call(this,n)}getCurrentResult(){return P(this,it)}reset(){G(this,Qt,void 0),se(this,Wi,lu).call(this),se(this,sl,ap).call(this)}mutate(n,r){var s;return G(this,tr,r),(s=P(this,Qt))==null||s.removeObserver(this),G(this,Qt,P(this,_r).getMutationCache().build(P(this,_r),this.options)),P(this,Qt).addObserver(this),P(this,Qt).execute(n)}},_r=new WeakMap,it=new WeakMap,Qt=new WeakMap,tr=new WeakMap,Wi=new WeakSet,lu=function(){var r;const n=((r=P(this,Qt))==null?void 0:r.state)??Iy();G(this,it,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},sl=new WeakSet,ap=function(n){Fe.batch(()=>{var r,s,i,o,l,a,u,c;P(this,tr)&&this.hasListeners()&&((n==null?void 0:n.type)==="success"?((s=(r=P(this,tr)).onSuccess)==null||s.call(r,n.data,P(this,it).variables,P(this,it).context),(o=(i=P(this,tr)).onSettled)==null||o.call(i,n.data,null,P(this,it).variables,P(this,it).context)):(n==null?void 0:n.type)==="error"&&((a=(l=P(this,tr)).onError)==null||a.call(l,n.error,P(this,it).variables,P(this,it).context),(c=(u=P(this,tr)).onSettled)==null||c.call(u,void 0,n.error,P(this,it).variables,P(this,it).context))),this.listeners.forEach(f=>{f(P(this,it))})})},ry),Dy=S.createContext(void 0),pn=e=>{const t=S.useContext(Dy);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},$4=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.createElement(Dy.Provider,{value:e},t)),Fy=S.createContext(!1),z4=()=>S.useContext(Fy);Fy.Provider;function B4(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var V4=S.createContext(B4()),U4=()=>S.useContext(V4);function $y(e,t){return typeof e=="function"?e(...t):!!e}var H4=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},q4=e=>{S.useEffect(()=>{e.clearReset()},[e])},W4=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&$y(n,[e.error,r]),G4=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Q4=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,K4=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function zy(e,t,n){const r=pn(n),s=z4(),i=U4(),o=r.defaultQueryOptions(e);o._optimisticResults=s?"isRestoring":"optimistic",G4(o),H4(o,i),q4(i);const[l]=S.useState(()=>new t(r,o)),a=l.getOptimisticResult(o);if(S.useSyncExternalStore(S.useCallback(u=>{const c=s?()=>{}:l.subscribe(Fe.batchCalls(u));return l.updateResult(),c},[l,s]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),S.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),Q4(o,a))throw K4(o,l,i);if(W4({result:a,errorResetBoundary:i,throwOnError:o.throwOnError,query:l.getCurrentQuery()}))throw a.error;return o.notifyOnChangeProps?a:l.trackResult(a)}function Ih(e,t){return zy(e,My,t)}function mr(e,t){const n=pn(t),[r]=S.useState(()=>new F4(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const s=S.useSyncExternalStore(S.useCallback(o=>r.subscribe(Fe.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=S.useCallback((o,l)=>{r.mutate(o,l).catch(X4)},[r]);if(s.error&&$y(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}function X4(){}function Y4(e,t){return zy(e,D4,t)}var By={exports:{}},Vt={},Vy={exports:{}},Uy={};/**
|
|
19
19
|
* @license React
|
|
20
20
|
* scheduler.production.min.js
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@ var Bb=Object.defineProperty;var zb=(e,t,n)=>t in e?Bb(e,t,{enumerable:!0,config
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/(function(e){function t(
|
|
26
|
+
*/(function(e){function t(_,$){var V=_.length;_.push($);e:for(;0<V;){var ne=V-1>>>1,re=_[ne];if(0<s(re,$))_[ne]=$,_[V]=re,V=ne;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var $=_[0],V=_.pop();if(V!==$){_[0]=V;e:for(var ne=0,re=_.length,de=re>>>1;ne<de;){var ye=2*(ne+1)-1,he=_[ye],je=ye+1,Ie=_[je];if(0>s(he,V))je<re&&0>s(Ie,he)?(_[ne]=Ie,_[je]=V,ne=je):(_[ne]=he,_[ye]=V,ne=ye);else if(je<re&&0>s(Ie,V))_[ne]=Ie,_[je]=V,ne=je;else break e}}return $}function s(_,$){var V=_.sortIndex-$.sortIndex;return V!==0?V:_.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,p=3,h=!1,y=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(_){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=_)r(u),$.sortIndex=$.expirationTime,t(a,$);else break;$=n(u)}}function b(_){if(w=!1,v(_),!y)if(n(a)!==null)y=!0,I(E);else{var $=n(u);$!==null&&z(b,$.startTime-_)}}function E(_,$){y=!1,w&&(w=!1,g(R),R=-1),h=!0;var V=p;try{for(v($),f=n(a);f!==null&&(!(f.expirationTime>$)||_&&!A());){var ne=f.callback;if(typeof ne=="function"){f.callback=null,p=f.priorityLevel;var re=ne(f.expirationTime<=$);$=e.unstable_now(),typeof re=="function"?f.callback=re:f===n(a)&&r(a),v($)}else r(a);f=n(a)}if(f!==null)var de=!0;else{var ye=n(u);ye!==null&&z(b,ye.startTime-$),de=!1}return de}finally{f=null,p=V,h=!1}}var T=!1,C=null,R=-1,j=5,L=-1;function A(){return!(e.unstable_now()-L<j)}function N(){if(C!==null){var _=e.unstable_now();L=_;var $=!0;try{$=C(!0,_)}finally{$?M():(T=!1,C=null)}}else T=!1}var M;if(typeof m=="function")M=function(){m(N)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,k=D.port2;D.port1.onmessage=N,M=function(){k.postMessage(null)}}else M=function(){x(N,0)};function I(_){C=_,T||(T=!0,M())}function z(_,$){R=x(function(){_(e.unstable_now())},$)}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(_){_.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,I(E))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(p){case 1:case 2:case 3:var $=3;break;default:$=p}var V=p;p=$;try{return _()}finally{p=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,$){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var V=p;p=_;try{return $()}finally{p=V}},e.unstable_scheduleCallback=function(_,$,V){var ne=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ne+V:ne):V=ne,_){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=V+re,_={id:c++,callback:$,priorityLevel:_,startTime:V,expirationTime:re,sortIndex:-1},V>ne?(_.sortIndex=V,t(u,_),n(a)===null&&_===n(u)&&(w?(g(R),R=-1):w=!0,z(b,V-ne))):(_.sortIndex=re,t(a,_),y||h||(y=!0,I(E))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var $=p;return function(){var V=p;p=$;try{return _.apply(this,arguments)}finally{p=V}}}})(Uy);Vy.exports=Uy;var J4=Vy.exports;/**
|
|
27
27
|
* @license React
|
|
28
28
|
* react-dom.production.min.js
|
|
29
29
|
*
|
|
@@ -31,22 +31,14 @@ var Bb=Object.defineProperty;var zb=(e,t,n)=>t in e?Bb(e,t,{enumerable:!0,config
|
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var
|
|
35
|
-
`+
|
|
34
|
+
*/var Hy=S,zt=J4;function H(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 qy=new Set,ha={};function Gs(e,t){Qi(e,t),Qi(e+"Capture",t)}function Qi(e,t){for(ha[e]=t,e=0;e<t.length;e++)qy.add(t[e])}var ar=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lp=Object.prototype.hasOwnProperty,Z4=/^[: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]*$/,uv={},cv={};function e3(e){return lp.call(cv,e)?!0:lp.call(uv,e)?!1:Z4.test(e)?cv[e]=!0:(uv[e]=!0,!1)}function t3(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 n3(e,t,n,r){if(t===null||typeof t>"u"||t3(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 ft(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ke[e]=new ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ke[t]=new ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ke[e]=new ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ke[e]=new ft(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){Ke[e]=new ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ke[e]=new ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ke[e]=new ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ke[e]=new ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ke[e]=new ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var _h=/[\-:]([a-z])/g;function Mh(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(_h,Mh);Ke[t]=new ft(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(_h,Mh);Ke[t]=new ft(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(_h,Mh);Ke[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ke[e]=new ft(e,1,!1,e.toLowerCase(),null,!1,!1)});Ke.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ke[e]=new ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Lh(e,t,n,r){var s=Ke.hasOwnProperty(t)?Ke[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(n3(t,n,s,r)&&(n=null),r||s===null?e3(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var gr=Hy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Rl=Symbol.for("react.element"),oi=Symbol.for("react.portal"),ai=Symbol.for("react.fragment"),Dh=Symbol.for("react.strict_mode"),up=Symbol.for("react.profiler"),Wy=Symbol.for("react.provider"),Gy=Symbol.for("react.context"),Fh=Symbol.for("react.forward_ref"),cp=Symbol.for("react.suspense"),dp=Symbol.for("react.suspense_list"),$h=Symbol.for("react.memo"),Sr=Symbol.for("react.lazy"),Qy=Symbol.for("react.offscreen"),dv=Symbol.iterator;function xo(e){return e===null||typeof e!="object"?null:(e=dv&&e[dv]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Object.assign,Ud;function Do(e){if(Ud===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ud=t&&t[1]||""}return`
|
|
35
|
+
`+Ud+e}var Hd=!1;function qd(e,t){if(!e||Hd)return"";Hd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
|
|
36
36
|
`),i=r.stack.split(`
|
|
37
|
-
`),o=s.length-1,
|
|
38
|
-
`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{mc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_i(e):""}function N4(e){switch(e.tag){case 5:return _i(e.type);case 16:return _i("Lazy");case 13:return _i("Suspense");case 19:return _i("SuspenseList");case 0:case 2:case 15:return e=gc(e.type,!1),e;case 11:return e=gc(e.type.render,!1),e;case 1:return e=gc(e.type,!0),e;default:return""}}function Sd(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 vs:return"Fragment";case gs:return"Portal";case xd:return"Profiler";case Hf:return"StrictMode";case wd:return"Suspense";case bd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lv:return(e.displayName||"Context")+".Consumer";case Mv:return(e._context.displayName||"Context")+".Provider";case qf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qf:return t=e.displayName||null,t!==null?t:Sd(e.type)||"Memo";case Zn:t=e._payload,e=e._init;try{return Sd(e(t))}catch{}}return null}function P4(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 Sd(t);case 8:return t===Hf?"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 wr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $v(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function A4(e){var t=$v(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ha(e){e._valueTracker||(e._valueTracker=A4(e))}function Bv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$v(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yl(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 Cd(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wr(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 zv(e,t){t=t.checked,t!=null&&Uf(e,"checked",t,!1)}function Ed(e,t){zv(e,t);var n=wr(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")?kd(e,t.type,n):t.hasOwnProperty("defaultValue")&&kd(e,t.type,wr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sm(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 kd(e,t,n){(t!=="number"||yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ti=Array.isArray;function As(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+wr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function jd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cm(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(U(92));if(Ti(n)){if(1<n.length)throw Error(U(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:wr(n)}}function Vv(e,t){var n=wr(t.value),r=wr(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 Em(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Uv(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 Rd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Uv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var pa,Hv=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(pa=pa||document.createElement("div"),pa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ao(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $i={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},_4=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){_4.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$i[t]=$i[e]})});function qv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$i.hasOwnProperty(e)&&$i[e]?(""+t).trim():t+"px"}function Qv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=qv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var T4=Se({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 Od(e,t){if(t){if(T4[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Nd(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 Pd=null;function Wf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ad=null,_s=null,Ts=null;function km(e){if(e=Ho(e)){if(typeof Ad!="function")throw Error(U(280));var t=e.stateNode;t&&(t=gu(t),Ad(e.stateNode,e.type,t))}}function Wv(e){_s?Ts?Ts.push(e):Ts=[e]:_s=e}function Kv(){if(_s){var e=_s,t=Ts;if(Ts=_s=null,km(e),t)for(e=0;e<t.length;e++)km(t[e])}}function Gv(e,t){return e(t)}function Xv(){}var vc=!1;function Yv(e,t,n){if(vc)return e(t,n);vc=!0;try{return Gv(e,t,n)}finally{vc=!1,(_s!==null||Ts!==null)&&(Xv(),Kv())}}function lo(e,t){var n=e.stateNode;if(n===null)return null;var r=gu(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(U(231,t,typeof n));return n}var _d=!1;if($n)try{var vi={};Object.defineProperty(vi,"passive",{get:function(){_d=!0}}),window.addEventListener("test",vi,vi),window.removeEventListener("test",vi,vi)}catch{_d=!1}function I4(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Bi=!1,xl=null,wl=!1,Td=null,D4={onError:function(e){Bi=!0,xl=e}};function M4(e,t,n,r,s,i,o,a,l){Bi=!1,xl=null,I4.apply(D4,arguments)}function L4(e,t,n,r,s,i,o,a,l){if(M4.apply(this,arguments),Bi){if(Bi){var u=xl;Bi=!1,xl=null}else throw Error(U(198));wl||(wl=!0,Td=u)}}function is(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 Jv(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 jm(e){if(is(e)!==e)throw Error(U(188))}function F4(e){var t=e.alternate;if(!t){if(t=is(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return jm(s),e;if(i===r)return jm(s),t;i=i.sibling}throw Error(U(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function Zv(e){return e=F4(e),e!==null?e0(e):null}function e0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=e0(e);if(t!==null)return t;e=e.sibling}return null}var t0=Nt.unstable_scheduleCallback,Rm=Nt.unstable_cancelCallback,$4=Nt.unstable_shouldYield,B4=Nt.unstable_requestPaint,Ne=Nt.unstable_now,z4=Nt.unstable_getCurrentPriorityLevel,Kf=Nt.unstable_ImmediatePriority,n0=Nt.unstable_UserBlockingPriority,bl=Nt.unstable_NormalPriority,V4=Nt.unstable_LowPriority,r0=Nt.unstable_IdlePriority,fu=null,bn=null;function U4(e){if(bn&&typeof bn.onCommitFiberRoot=="function")try{bn.onCommitFiberRoot(fu,e,void 0,(e.current.flags&128)===128)}catch{}}var ln=Math.clz32?Math.clz32:Q4,H4=Math.log,q4=Math.LN2;function Q4(e){return e>>>=0,e===0?32:31-(H4(e)/q4|0)|0}var ma=64,ga=4194304;function Ii(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 Sl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Ii(a):(i&=o,i!==0&&(r=Ii(i)))}else o=n&~s,o!==0?r=Ii(o):i!==0&&(r=Ii(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ln(t),s=1<<n,r|=e[n],t&=~s;return r}function W4(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 K4(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-ln(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=W4(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Id(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function s0(){var e=ma;return ma<<=1,!(ma&4194240)&&(ma=64),e}function yc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ln(t),e[t]=n}function G4(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-ln(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Gf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ln(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ce=0;function i0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var o0,Xf,a0,l0,u0,Dd=!1,va=[],cr=null,dr=null,fr=null,uo=new Map,co=new Map,tr=[],X4="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 Om(e,t){switch(e){case"focusin":case"focusout":cr=null;break;case"dragenter":case"dragleave":dr=null;break;case"mouseover":case"mouseout":fr=null;break;case"pointerover":case"pointerout":uo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":co.delete(t.pointerId)}}function yi(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Ho(t),t!==null&&Xf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Y4(e,t,n,r,s){switch(t){case"focusin":return cr=yi(cr,e,t,n,r,s),!0;case"dragenter":return dr=yi(dr,e,t,n,r,s),!0;case"mouseover":return fr=yi(fr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return uo.set(i,yi(uo.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,co.set(i,yi(co.get(i)||null,e,t,n,r,s)),!0}return!1}function c0(e){var t=Br(e.target);if(t!==null){var n=is(t);if(n!==null){if(t=n.tag,t===13){if(t=Jv(n),t!==null){e.blockedOn=t,u0(e.priority,function(){a0(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 za(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Md(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Pd=r,n.target.dispatchEvent(r),Pd=null}else return t=Ho(n),t!==null&&Xf(t),e.blockedOn=n,!1;t.shift()}return!0}function Nm(e,t,n){za(e)&&n.delete(t)}function J4(){Dd=!1,cr!==null&&za(cr)&&(cr=null),dr!==null&&za(dr)&&(dr=null),fr!==null&&za(fr)&&(fr=null),uo.forEach(Nm),co.forEach(Nm)}function xi(e,t){e.blockedOn===t&&(e.blockedOn=null,Dd||(Dd=!0,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,J4)))}function fo(e){function t(s){return xi(s,e)}if(0<va.length){xi(va[0],e);for(var n=1;n<va.length;n++){var r=va[n];r.blockedOn===e&&(r.blockedOn=null)}}for(cr!==null&&xi(cr,e),dr!==null&&xi(dr,e),fr!==null&&xi(fr,e),uo.forEach(t),co.forEach(t),n=0;n<tr.length;n++)r=tr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<tr.length&&(n=tr[0],n.blockedOn===null);)c0(n),n.blockedOn===null&&tr.shift()}var Is=Qn.ReactCurrentBatchConfig,Cl=!0;function Z4(e,t,n,r){var s=ce,i=Is.transition;Is.transition=null;try{ce=1,Yf(e,t,n,r)}finally{ce=s,Is.transition=i}}function e3(e,t,n,r){var s=ce,i=Is.transition;Is.transition=null;try{ce=4,Yf(e,t,n,r)}finally{ce=s,Is.transition=i}}function Yf(e,t,n,r){if(Cl){var s=Md(e,t,n,r);if(s===null)Oc(e,t,r,El,n),Om(e,r);else if(Y4(s,e,t,n,r))r.stopPropagation();else if(Om(e,r),t&4&&-1<X4.indexOf(e)){for(;s!==null;){var i=Ho(s);if(i!==null&&o0(i),i=Md(e,t,n,r),i===null&&Oc(e,t,r,El,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Oc(e,t,r,null,n)}}var El=null;function Md(e,t,n,r){if(El=null,e=Wf(r),e=Br(e),e!==null)if(t=is(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Jv(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 El=e,null}function d0(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(z4()){case Kf:return 1;case n0:return 4;case bl:case V4:return 16;case r0:return 536870912;default:return 16}default:return 16}}var sr=null,Jf=null,Va=null;function f0(){if(Va)return Va;var e,t=Jf,n=t.length,r,s="value"in sr?sr.value:sr.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return Va=s.slice(e,1<r?1-r:void 0)}function Ua(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 ya(){return!0}function Pm(){return!1}function _t(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ya:Pm,this.isPropagationStopped=Pm,this}return Se(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=ya)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ya)},persist:function(){},isPersistent:ya}),t}var si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zf=_t(si),Uo=Se({},si,{view:0,detail:0}),t3=_t(Uo),xc,wc,wi,hu=Se({},Uo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eh,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!==wi&&(wi&&e.type==="mousemove"?(xc=e.screenX-wi.screenX,wc=e.screenY-wi.screenY):wc=xc=0,wi=e),xc)},movementY:function(e){return"movementY"in e?e.movementY:wc}}),Am=_t(hu),n3=Se({},hu,{dataTransfer:0}),r3=_t(n3),s3=Se({},Uo,{relatedTarget:0}),bc=_t(s3),i3=Se({},si,{animationName:0,elapsedTime:0,pseudoElement:0}),o3=_t(i3),a3=Se({},si,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),l3=_t(a3),u3=Se({},si,{data:0}),_m=_t(u3),c3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},d3={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"},f3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function h3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=f3[e])?!!t[e]:!1}function eh(){return h3}var p3=Se({},Uo,{key:function(e){if(e.key){var t=c3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ua(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?d3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eh,charCode:function(e){return e.type==="keypress"?Ua(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ua(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),m3=_t(p3),g3=Se({},hu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tm=_t(g3),v3=Se({},Uo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eh}),y3=_t(v3),x3=Se({},si,{propertyName:0,elapsedTime:0,pseudoElement:0}),w3=_t(x3),b3=Se({},hu,{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}),S3=_t(b3),C3=[9,13,27,32],th=$n&&"CompositionEvent"in window,zi=null;$n&&"documentMode"in document&&(zi=document.documentMode);var E3=$n&&"TextEvent"in window&&!zi,h0=$n&&(!th||zi&&8<zi&&11>=zi),Im=String.fromCharCode(32),Dm=!1;function p0(e,t){switch(e){case"keyup":return C3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function m0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ys=!1;function k3(e,t){switch(e){case"compositionend":return m0(t);case"keypress":return t.which!==32?null:(Dm=!0,Im);case"textInput":return e=t.data,e===Im&&Dm?null:e;default:return null}}function j3(e,t){if(ys)return e==="compositionend"||!th&&p0(e,t)?(e=f0(),Va=Jf=sr=null,ys=!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 h0&&t.locale!=="ko"?null:t.data;default:return null}}var R3={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 Mm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!R3[e.type]:t==="textarea"}function g0(e,t,n,r){Wv(r),t=kl(t,"onChange"),0<t.length&&(n=new Zf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vi=null,ho=null;function O3(e){R0(e,0)}function pu(e){var t=bs(e);if(Bv(t))return e}function N3(e,t){if(e==="change")return t}var v0=!1;if($n){var Sc;if($n){var Cc="oninput"in document;if(!Cc){var Lm=document.createElement("div");Lm.setAttribute("oninput","return;"),Cc=typeof Lm.oninput=="function"}Sc=Cc}else Sc=!1;v0=Sc&&(!document.documentMode||9<document.documentMode)}function Fm(){Vi&&(Vi.detachEvent("onpropertychange",y0),ho=Vi=null)}function y0(e){if(e.propertyName==="value"&&pu(ho)){var t=[];g0(t,ho,e,Wf(e)),Yv(O3,t)}}function P3(e,t,n){e==="focusin"?(Fm(),Vi=t,ho=n,Vi.attachEvent("onpropertychange",y0)):e==="focusout"&&Fm()}function A3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pu(ho)}function _3(e,t){if(e==="click")return pu(t)}function T3(e,t){if(e==="input"||e==="change")return pu(t)}function I3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cn=typeof Object.is=="function"?Object.is:I3;function po(e,t){if(cn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!yd.call(t,s)||!cn(e[s],t[s]))return!1}return!0}function $m(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bm(e,t){var n=$m(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=$m(n)}}function x0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?x0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function w0(){for(var e=window,t=yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yl(e.document)}return t}function nh(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 D3(e){var t=w0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&x0(n.ownerDocument.documentElement,n)){if(r!==null&&nh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Bm(n,i);var o=Bm(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var M3=$n&&"documentMode"in document&&11>=document.documentMode,xs=null,Ld=null,Ui=null,Fd=!1;function zm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fd||xs==null||xs!==yl(r)||(r=xs,"selectionStart"in r&&nh(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}),Ui&&po(Ui,r)||(Ui=r,r=kl(Ld,"onSelect"),0<r.length&&(t=new Zf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xs)))}function xa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ws={animationend:xa("Animation","AnimationEnd"),animationiteration:xa("Animation","AnimationIteration"),animationstart:xa("Animation","AnimationStart"),transitionend:xa("Transition","TransitionEnd")},Ec={},b0={};$n&&(b0=document.createElement("div").style,"AnimationEvent"in window||(delete ws.animationend.animation,delete ws.animationiteration.animation,delete ws.animationstart.animation),"TransitionEvent"in window||delete ws.transitionend.transition);function mu(e){if(Ec[e])return Ec[e];if(!ws[e])return e;var t=ws[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in b0)return Ec[e]=t[n];return e}var S0=mu("animationend"),C0=mu("animationiteration"),E0=mu("animationstart"),k0=mu("transitionend"),j0=new Map,Vm="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 Rr(e,t){j0.set(e,t),ss(t,[e])}for(var kc=0;kc<Vm.length;kc++){var jc=Vm[kc],L3=jc.toLowerCase(),F3=jc[0].toUpperCase()+jc.slice(1);Rr(L3,"on"+F3)}Rr(S0,"onAnimationEnd");Rr(C0,"onAnimationIteration");Rr(E0,"onAnimationStart");Rr("dblclick","onDoubleClick");Rr("focusin","onFocus");Rr("focusout","onBlur");Rr(k0,"onTransitionEnd");Vs("onMouseEnter",["mouseout","mouseover"]);Vs("onMouseLeave",["mouseout","mouseover"]);Vs("onPointerEnter",["pointerout","pointerover"]);Vs("onPointerLeave",["pointerout","pointerover"]);ss("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ss("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ss("onBeforeInput",["compositionend","keypress","textInput","paste"]);ss("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ss("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ss("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Di="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(Di));function Um(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,L4(r,t,void 0,e),e.currentTarget=null}function R0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;Um(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;Um(s,a,u),i=l}}}if(wl)throw e=Td,wl=!1,Td=null,e}function me(e,t){var n=t[Ud];n===void 0&&(n=t[Ud]=new Set);var r=e+"__bubble";n.has(r)||(O0(t,e,2,!1),n.add(r))}function Rc(e,t,n){var r=0;t&&(r|=4),O0(n,e,r,t)}var wa="_reactListening"+Math.random().toString(36).slice(2);function mo(e){if(!e[wa]){e[wa]=!0,Dv.forEach(function(n){n!=="selectionchange"&&($3.has(n)||Rc(n,!1,e),Rc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wa]||(t[wa]=!0,Rc("selectionchange",!1,t))}}function O0(e,t,n,r){switch(d0(t)){case 1:var s=Z4;break;case 4:s=e3;break;default:s=Yf}n=s.bind(null,t,n,e),s=void 0,!_d||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Oc(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Br(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}Yv(function(){var u=i,d=Wf(n),f=[];e:{var h=j0.get(e);if(h!==void 0){var p=Zf,m=e;switch(e){case"keypress":if(Ua(n)===0)break e;case"keydown":case"keyup":p=m3;break;case"focusin":m="focus",p=bc;break;case"focusout":m="blur",p=bc;break;case"beforeblur":case"afterblur":p=bc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Am;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=r3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=y3;break;case S0:case C0:case E0:p=o3;break;case k0:p=w3;break;case"scroll":p=t3;break;case"wheel":p=S3;break;case"copy":case"cut":case"paste":p=l3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Tm}var y=(t&4)!==0,w=!y&&e==="scroll",g=y?h!==null?h+"Capture":null:h;y=[];for(var v=u,x;v!==null;){x=v;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,g!==null&&(S=lo(v,g),S!=null&&y.push(go(v,S,x)))),w)break;v=v.return}0<y.length&&(h=new p(h,m,null,n,d),f.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Pd&&(m=n.relatedTarget||n.fromElement)&&(Br(m)||m[Bn]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?Br(m):null,m!==null&&(w=is(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(y=Am,S="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=Tm,S="onPointerLeave",g="onPointerEnter",v="pointer"),w=p==null?h:bs(p),x=m==null?h:bs(m),h=new y(S,v+"leave",p,n,d),h.target=w,h.relatedTarget=x,S=null,Br(d)===u&&(y=new y(g,v+"enter",m,n,d),y.target=x,y.relatedTarget=w,S=y),w=S,p&&m)t:{for(y=p,g=m,v=0,x=y;x;x=fs(x))v++;for(x=0,S=g;S;S=fs(S))x++;for(;0<v-x;)y=fs(y),v--;for(;0<x-v;)g=fs(g),x--;for(;v--;){if(y===g||g!==null&&y===g.alternate)break t;y=fs(y),g=fs(g)}y=null}else y=null;p!==null&&Hm(f,h,p,y,!1),m!==null&&w!==null&&Hm(f,w,m,y,!0)}}e:{if(h=u?bs(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var C=N3;else if(Mm(h))if(v0)C=T3;else{C=A3;var j=P3}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=_3);if(C&&(C=C(e,u))){g0(f,C,n,d);break e}j&&j(e,h,u),e==="focusout"&&(j=h._wrapperState)&&j.controlled&&h.type==="number"&&kd(h,"number",h.value)}switch(j=u?bs(u):window,e){case"focusin":(Mm(j)||j.contentEditable==="true")&&(xs=j,Ld=u,Ui=null);break;case"focusout":Ui=Ld=xs=null;break;case"mousedown":Fd=!0;break;case"contextmenu":case"mouseup":case"dragend":Fd=!1,zm(f,n,d);break;case"selectionchange":if(M3)break;case"keydown":case"keyup":zm(f,n,d)}var k;if(th)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else ys?p0(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(h0&&n.locale!=="ko"&&(ys||O!=="onCompositionStart"?O==="onCompositionEnd"&&ys&&(k=f0()):(sr=d,Jf="value"in sr?sr.value:sr.textContent,ys=!0)),j=kl(u,O),0<j.length&&(O=new _m(O,e,null,n,d),f.push({event:O,listeners:j}),k?O.data=k:(k=m0(n),k!==null&&(O.data=k)))),(k=E3?k3(e,n):j3(e,n))&&(u=kl(u,"onBeforeInput"),0<u.length&&(d=new _m("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=k))}R0(f,t)})}function go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kl(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=lo(e,n),i!=null&&r.unshift(go(e,i,s)),i=lo(e,t),i!=null&&r.push(go(e,i,s))),e=e.return}return r}function fs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Hm(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=lo(n,i),l!=null&&o.unshift(go(n,l,a))):s||(l=lo(n,i),l!=null&&o.push(go(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var B3=/\r\n?/g,z3=/\u0000|\uFFFD/g;function qm(e){return(typeof e=="string"?e:""+e).replace(B3,`
|
|
39
|
-
`).replace(z3,"")}function ba(e,t,n){if(t=qm(t),qm(e)!==t&&n)throw Error(U(425))}function jl(){}var $d=null,Bd=null;function zd(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 Vd=typeof setTimeout=="function"?setTimeout:void 0,V3=typeof clearTimeout=="function"?clearTimeout:void 0,Qm=typeof Promise=="function"?Promise:void 0,U3=typeof queueMicrotask=="function"?queueMicrotask:typeof Qm<"u"?function(e){return Qm.resolve(null).then(e).catch(H3)}:Vd;function H3(e){setTimeout(function(){throw e})}function Nc(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),fo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);fo(t)}function hr(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 Wm(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 ii=Math.random().toString(36).slice(2),yn="__reactFiber$"+ii,vo="__reactProps$"+ii,Bn="__reactContainer$"+ii,Ud="__reactEvents$"+ii,q3="__reactListeners$"+ii,Q3="__reactHandles$"+ii;function Br(e){var t=e[yn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bn]||n[yn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wm(e);e!==null;){if(n=e[yn])return n;e=Wm(e)}return t}e=n,n=e.parentNode}return null}function Ho(e){return e=e[yn]||e[Bn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function gu(e){return e[vo]||null}var Hd=[],Ss=-1;function Or(e){return{current:e}}function ge(e){0>Ss||(e.current=Hd[Ss],Hd[Ss]=null,Ss--)}function pe(e,t){Ss++,Hd[Ss]=e.current,e.current=t}var br={},Ge=Or(br),mt=Or(!1),Gr=br;function Us(e,t){var n=e.type.contextTypes;if(!n)return br;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function gt(e){return e=e.childContextTypes,e!=null}function Rl(){ge(mt),ge(Ge)}function Km(e,t,n){if(Ge.current!==br)throw Error(U(168));pe(Ge,t),pe(mt,n)}function N0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(U(108,P4(e)||"Unknown",s));return Se({},n,r)}function Ol(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||br,Gr=Ge.current,pe(Ge,e),pe(mt,mt.current),!0}function Gm(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=N0(e,t,Gr),r.__reactInternalMemoizedMergedChildContext=e,ge(mt),ge(Ge),pe(Ge,e)):ge(mt),pe(mt,n)}var Tn=null,vu=!1,Pc=!1;function P0(e){Tn===null?Tn=[e]:Tn.push(e)}function W3(e){vu=!0,P0(e)}function Nr(){if(!Pc&&Tn!==null){Pc=!0;var e=0,t=ce;try{var n=Tn;for(ce=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tn=null,vu=!1}catch(s){throw Tn!==null&&(Tn=Tn.slice(e+1)),t0(Kf,Nr),s}finally{ce=t,Pc=!1}}return null}var Cs=[],Es=0,Nl=null,Pl=0,Lt=[],Ft=0,Xr=null,In=1,Dn="";function Mr(e,t){Cs[Es++]=Pl,Cs[Es++]=Nl,Nl=e,Pl=t}function A0(e,t,n){Lt[Ft++]=In,Lt[Ft++]=Dn,Lt[Ft++]=Xr,Xr=e;var r=In;e=Dn;var s=32-ln(r)-1;r&=~(1<<s),n+=1;var i=32-ln(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,In=1<<32-ln(t)+s|n<<s|r,Dn=i+e}else In=1<<i|n<<s|r,Dn=e}function rh(e){e.return!==null&&(Mr(e,1),A0(e,1,0))}function sh(e){for(;e===Nl;)Nl=Cs[--Es],Cs[Es]=null,Pl=Cs[--Es],Cs[Es]=null;for(;e===Xr;)Xr=Lt[--Ft],Lt[Ft]=null,Dn=Lt[--Ft],Lt[Ft]=null,In=Lt[--Ft],Lt[Ft]=null}var Rt=null,Et=null,ve=!1,rn=null;function _0(e,t){var n=Ut(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 Xm(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Rt=e,Et=hr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rt=e,Et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Xr!==null?{id:In,overflow:Dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ut(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,Et=null,!0):!1;default:return!1}}function qd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qd(e){if(ve){var t=Et;if(t){var n=t;if(!Xm(e,t)){if(qd(e))throw Error(U(418));t=hr(n.nextSibling);var r=Rt;t&&Xm(e,t)?_0(r,n):(e.flags=e.flags&-4097|2,ve=!1,Rt=e)}}else{if(qd(e))throw Error(U(418));e.flags=e.flags&-4097|2,ve=!1,Rt=e}}}function Ym(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function Sa(e){if(e!==Rt)return!1;if(!ve)return Ym(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zd(e.type,e.memoizedProps)),t&&(t=Et)){if(qd(e))throw T0(),Error(U(418));for(;t;)_0(e,t),t=hr(t.nextSibling)}if(Ym(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Et=hr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Et=null}}else Et=Rt?hr(e.stateNode.nextSibling):null;return!0}function T0(){for(var e=Et;e;)e=hr(e.nextSibling)}function Hs(){Et=Rt=null,ve=!1}function ih(e){rn===null?rn=[e]:rn.push(e)}var K3=Qn.ReactCurrentBatchConfig;function en(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Al=Or(null),_l=null,ks=null,oh=null;function ah(){oh=ks=_l=null}function lh(e){var t=Al.current;ge(Al),e._currentValue=t}function Wd(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 Ds(e,t){_l=e,oh=ks=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pt=!0),e.firstContext=null)}function Wt(e){var t=e._currentValue;if(oh!==e)if(e={context:e,memoizedValue:t,next:null},ks===null){if(_l===null)throw Error(U(308));ks=e,_l.dependencies={lanes:0,firstContext:e}}else ks=ks.next=e;return t}var zr=null;function uh(e){zr===null?zr=[e]:zr.push(e)}function I0(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,uh(t)):(n.next=s.next,s.next=n),t.interleaved=n,zn(e,r)}function zn(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 er=!1;function ch(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function D0(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 Fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,zn(e,n)}return s=r.interleaved,s===null?(t.next=t,uh(r)):(t.next=s.next,s.next=t),r.interleaved=t,zn(e,n)}function Ha(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,Gf(e,n)}}function Jm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Tl(e,t,n,r){var s=e.updateQueue;er=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var f=s.baseState;o=0,d=u=l=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(h=t,p=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){f=m.call(p,f,h);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,h=typeof m=="function"?m.call(p,f,h):m,h==null)break e;f=Se({},f,h);break e;case 2:er=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=p,l=f):d=d.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(1);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Jr|=o,e.lanes=o,e.memoizedState=f}}function Zm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(U(191,s));s.call(r)}}}var M0=new Iv.Component().refs;function Kd(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yu={isMounted:function(e){return(e=e._reactInternals)?is(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rt(),s=gr(e),i=Fn(r,s);i.payload=t,n!=null&&(i.callback=n),t=pr(e,i,s),t!==null&&(un(t,e,s,r),Ha(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rt(),s=gr(e),i=Fn(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=pr(e,i,s),t!==null&&(un(t,e,s,r),Ha(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rt(),r=gr(e),s=Fn(n,r);s.tag=2,t!=null&&(s.callback=t),t=pr(e,s,r),t!==null&&(un(t,e,r,n),Ha(t,e,r))}};function eg(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!po(n,r)||!po(s,i):!0}function L0(e,t,n){var r=!1,s=br,i=t.contextType;return typeof i=="object"&&i!==null?i=Wt(i):(s=gt(t)?Gr:Ge.current,r=t.contextTypes,i=(r=r!=null)?Us(e,s):br),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=yu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function tg(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&&yu.enqueueReplaceState(t,t.state,null)}function Gd(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=M0,ch(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Wt(i):(i=gt(t)?Gr:Ge.current,s.context=Us(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Kd(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&yu.enqueueReplaceState(s,s.state,null),Tl(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function bi(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(U(309));var r=n.stateNode}if(!r)throw Error(U(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;a===M0&&(a=s.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(U(284));if(!n._owner)throw Error(U(290,e))}return e}function Ca(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ng(e){var t=e._init;return t(e._payload)}function F0(e){function t(g,v){if(e){var x=g.deletions;x===null?(g.deletions=[v],g.flags|=16):x.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 s(g,v){return g=vr(g,v),g.index=0,g.sibling=null,g}function i(g,v,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<v?(g.flags|=2,v):x):(g.flags|=2,v)):(g.flags|=1048576,v)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,v,x,S){return v===null||v.tag!==6?(v=Lc(x,g.mode,S),v.return=g,v):(v=s(v,x),v.return=g,v)}function l(g,v,x,S){var C=x.type;return C===vs?d(g,v,x.props.children,S,x.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Zn&&ng(C)===v.type)?(S=s(v,x.props),S.ref=bi(g,v,x),S.return=g,S):(S=Xa(x.type,x.key,x.props,null,g.mode,S),S.ref=bi(g,v,x),S.return=g,S)}function u(g,v,x,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Fc(x,g.mode,S),v.return=g,v):(v=s(v,x.children||[]),v.return=g,v)}function d(g,v,x,S,C){return v===null||v.tag!==7?(v=Qr(x,g.mode,S,C),v.return=g,v):(v=s(v,x),v.return=g,v)}function f(g,v,x){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Lc(""+v,g.mode,x),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case fa:return x=Xa(v.type,v.key,v.props,null,g.mode,x),x.ref=bi(g,null,v),x.return=g,x;case gs:return v=Fc(v,g.mode,x),v.return=g,v;case Zn:var S=v._init;return f(g,S(v._payload),x)}if(Ti(v)||gi(v))return v=Qr(v,g.mode,x,null),v.return=g,v;Ca(g,v)}return null}function h(g,v,x,S){var C=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return C!==null?null:a(g,v,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case fa:return x.key===C?l(g,v,x,S):null;case gs:return x.key===C?u(g,v,x,S):null;case Zn:return C=x._init,h(g,v,C(x._payload),S)}if(Ti(x)||gi(x))return C!==null?null:d(g,v,x,S,null);Ca(g,x)}return null}function p(g,v,x,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(x)||null,a(v,g,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case fa:return g=g.get(S.key===null?x:S.key)||null,l(v,g,S,C);case gs:return g=g.get(S.key===null?x:S.key)||null,u(v,g,S,C);case Zn:var j=S._init;return p(g,v,x,j(S._payload),C)}if(Ti(S)||gi(S))return g=g.get(x)||null,d(v,g,S,C,null);Ca(v,S)}return null}function m(g,v,x,S){for(var C=null,j=null,k=v,O=v=0,A=null;k!==null&&O<x.length;O++){k.index>O?(A=k,k=null):A=k.sibling;var _=h(g,k,x[O],S);if(_===null){k===null&&(k=A);break}e&&k&&_.alternate===null&&t(g,k),v=i(_,v,O),j===null?C=_:j.sibling=_,j=_,k=A}if(O===x.length)return n(g,k),ve&&Mr(g,O),C;if(k===null){for(;O<x.length;O++)k=f(g,x[O],S),k!==null&&(v=i(k,v,O),j===null?C=k:j.sibling=k,j=k);return ve&&Mr(g,O),C}for(k=r(g,k);O<x.length;O++)A=p(k,g,O,x[O],S),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?O:A.key),v=i(A,v,O),j===null?C=A:j.sibling=A,j=A);return e&&k.forEach(function(F){return t(g,F)}),ve&&Mr(g,O),C}function y(g,v,x,S){var C=gi(x);if(typeof C!="function")throw Error(U(150));if(x=C.call(x),x==null)throw Error(U(151));for(var j=C=null,k=v,O=v=0,A=null,_=x.next();k!==null&&!_.done;O++,_=x.next()){k.index>O?(A=k,k=null):A=k.sibling;var F=h(g,k,_.value,S);if(F===null){k===null&&(k=A);break}e&&k&&F.alternate===null&&t(g,k),v=i(F,v,O),j===null?C=F:j.sibling=F,j=F,k=A}if(_.done)return n(g,k),ve&&Mr(g,O),C;if(k===null){for(;!_.done;O++,_=x.next())_=f(g,_.value,S),_!==null&&(v=i(_,v,O),j===null?C=_:j.sibling=_,j=_);return ve&&Mr(g,O),C}for(k=r(g,k);!_.done;O++,_=x.next())_=p(k,g,O,_.value,S),_!==null&&(e&&_.alternate!==null&&k.delete(_.key===null?O:_.key),v=i(_,v,O),j===null?C=_:j.sibling=_,j=_);return e&&k.forEach(function(T){return t(g,T)}),ve&&Mr(g,O),C}function w(g,v,x,S){if(typeof x=="object"&&x!==null&&x.type===vs&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case fa:e:{for(var C=x.key,j=v;j!==null;){if(j.key===C){if(C=x.type,C===vs){if(j.tag===7){n(g,j.sibling),v=s(j,x.props.children),v.return=g,g=v;break e}}else if(j.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Zn&&ng(C)===j.type){n(g,j.sibling),v=s(j,x.props),v.ref=bi(g,j,x),v.return=g,g=v;break e}n(g,j);break}else t(g,j);j=j.sibling}x.type===vs?(v=Qr(x.props.children,g.mode,S,x.key),v.return=g,g=v):(S=Xa(x.type,x.key,x.props,null,g.mode,S),S.ref=bi(g,v,x),S.return=g,g=S)}return o(g);case gs:e:{for(j=x.key;v!==null;){if(v.key===j)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(g,v.sibling),v=s(v,x.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Fc(x,g.mode,S),v.return=g,g=v}return o(g);case Zn:return j=x._init,w(g,v,j(x._payload),S)}if(Ti(x))return m(g,v,x,S);if(gi(x))return y(g,v,x,S);Ca(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(n(g,v.sibling),v=s(v,x),v.return=g,g=v):(n(g,v),v=Lc(x,g.mode,S),v.return=g,g=v),o(g)):n(g,v)}return w}var qs=F0(!0),$0=F0(!1),qo={},Sn=Or(qo),yo=Or(qo),xo=Or(qo);function Vr(e){if(e===qo)throw Error(U(174));return e}function dh(e,t){switch(pe(xo,t),pe(yo,e),pe(Sn,qo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Rd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Rd(t,e)}ge(Sn),pe(Sn,t)}function Qs(){ge(Sn),ge(yo),ge(xo)}function B0(e){Vr(xo.current);var t=Vr(Sn.current),n=Rd(t,e.type);t!==n&&(pe(yo,e),pe(Sn,n))}function fh(e){yo.current===e&&(ge(Sn),ge(yo))}var xe=Or(0);function Il(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 Ac=[];function hh(){for(var e=0;e<Ac.length;e++)Ac[e]._workInProgressVersionPrimary=null;Ac.length=0}var qa=Qn.ReactCurrentDispatcher,_c=Qn.ReactCurrentBatchConfig,Yr=0,be=null,Te=null,Me=null,Dl=!1,Hi=!1,wo=0,G3=0;function Qe(){throw Error(U(321))}function ph(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cn(e[n],t[n]))return!1;return!0}function mh(e,t,n,r,s,i){if(Yr=i,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qa.current=e===null||e.memoizedState===null?Z3:eC,e=n(r,s),Hi){i=0;do{if(Hi=!1,wo=0,25<=i)throw Error(U(301));i+=1,Me=Te=null,t.updateQueue=null,qa.current=tC,e=n(r,s)}while(Hi)}if(qa.current=Ml,t=Te!==null&&Te.next!==null,Yr=0,Me=Te=be=null,Dl=!1,t)throw Error(U(300));return e}function gh(){var e=wo!==0;return wo=0,e}function mn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Me===null?be.memoizedState=Me=e:Me=Me.next=e,Me}function Kt(){if(Te===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Me===null?be.memoizedState:Me.next;if(t!==null)Me=t,Te=e;else{if(e===null)throw Error(U(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Me===null?be.memoizedState=Me=e:Me=Me.next=e}return Me}function bo(e,t){return typeof t=="function"?t(e):t}function Tc(e){var t=Kt(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=Te,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var d=u.lane;if((Yr&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=r):l=l.next=f,be.lanes|=d,Jr|=d}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,cn(r,t.memoizedState)||(pt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,be.lanes|=i,Jr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ic(e){var t=Kt(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);cn(i,t.memoizedState)||(pt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function z0(){}function V0(e,t){var n=be,r=Kt(),s=t(),i=!cn(r.memoizedState,s);if(i&&(r.memoizedState=s,pt=!0),r=r.queue,vh(q0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Me!==null&&Me.memoizedState.tag&1){if(n.flags|=2048,So(9,H0.bind(null,n,r,s,t),void 0,null),Le===null)throw Error(U(349));Yr&30||U0(n,t,s)}return s}function U0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function H0(e,t,n,r){t.value=n,t.getSnapshot=r,Q0(t)&&W0(e)}function q0(e,t,n){return n(function(){Q0(t)&&W0(e)})}function Q0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cn(e,n)}catch{return!0}}function W0(e){var t=zn(e,1);t!==null&&un(t,e,1,-1)}function rg(e){var t=mn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bo,lastRenderedState:e},t.queue=e,e=e.dispatch=J3.bind(null,be,e),[t.memoizedState,e]}function So(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.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 K0(){return Kt().memoizedState}function Qa(e,t,n,r){var s=mn();be.flags|=e,s.memoizedState=So(1|t,n,void 0,r===void 0?null:r)}function xu(e,t,n,r){var s=Kt();r=r===void 0?null:r;var i=void 0;if(Te!==null){var o=Te.memoizedState;if(i=o.destroy,r!==null&&ph(r,o.deps)){s.memoizedState=So(t,n,i,r);return}}be.flags|=e,s.memoizedState=So(1|t,n,i,r)}function sg(e,t){return Qa(8390656,8,e,t)}function vh(e,t){return xu(2048,8,e,t)}function G0(e,t){return xu(4,2,e,t)}function X0(e,t){return xu(4,4,e,t)}function Y0(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 J0(e,t,n){return n=n!=null?n.concat([e]):null,xu(4,4,Y0.bind(null,t,e),n)}function yh(){}function Z0(e,t){var n=Kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ph(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ey(e,t){var n=Kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ph(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ty(e,t,n){return Yr&21?(cn(n,t)||(n=s0(),be.lanes|=n,Jr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,pt=!0),e.memoizedState=n)}function X3(e,t){var n=ce;ce=n!==0&&4>n?n:4,e(!0);var r=_c.transition;_c.transition={};try{e(!1),t()}finally{ce=n,_c.transition=r}}function ny(){return Kt().memoizedState}function Y3(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ry(e))sy(t,n);else if(n=I0(e,t,n,r),n!==null){var s=rt();un(n,e,r,s),iy(n,t,r)}}function J3(e,t,n){var r=gr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ry(e))sy(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,cn(a,o)){var l=t.interleaved;l===null?(s.next=s,uh(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=I0(e,t,s,r),n!==null&&(s=rt(),un(n,e,r,s),iy(n,t,r))}}function ry(e){var t=e.alternate;return e===be||t!==null&&t===be}function sy(e,t){Hi=Dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function iy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gf(e,n)}}var Ml={readContext:Wt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},Z3={readContext:Wt,useCallback:function(e,t){return mn().memoizedState=[e,t===void 0?null:t],e},useContext:Wt,useEffect:sg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qa(4194308,4,Y0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qa(4,2,e,t)},useMemo:function(e,t){var n=mn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=mn();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,be,e),[r.memoizedState,e]},useRef:function(e){var t=mn();return e={current:e},t.memoizedState=e},useState:rg,useDebugValue:yh,useDeferredValue:function(e){return mn().memoizedState=e},useTransition:function(){var e=rg(!1),t=e[0];return e=X3.bind(null,e[1]),mn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=be,s=mn();if(ve){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Le===null)throw Error(U(349));Yr&30||U0(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,sg(q0.bind(null,r,i,e),[e]),r.flags|=2048,So(9,H0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=mn(),t=Le.identifierPrefix;if(ve){var n=Dn,r=In;n=(r&~(1<<32-ln(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=G3++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},eC={readContext:Wt,useCallback:Z0,useContext:Wt,useEffect:vh,useImperativeHandle:J0,useInsertionEffect:G0,useLayoutEffect:X0,useMemo:ey,useReducer:Tc,useRef:K0,useState:function(){return Tc(bo)},useDebugValue:yh,useDeferredValue:function(e){var t=Kt();return ty(t,Te.memoizedState,e)},useTransition:function(){var e=Tc(bo)[0],t=Kt().memoizedState;return[e,t]},useMutableSource:z0,useSyncExternalStore:V0,useId:ny,unstable_isNewReconciler:!1},tC={readContext:Wt,useCallback:Z0,useContext:Wt,useEffect:vh,useImperativeHandle:J0,useInsertionEffect:G0,useLayoutEffect:X0,useMemo:ey,useReducer:Ic,useRef:K0,useState:function(){return Ic(bo)},useDebugValue:yh,useDeferredValue:function(e){var t=Kt();return Te===null?t.memoizedState=e:ty(t,Te.memoizedState,e)},useTransition:function(){var e=Ic(bo)[0],t=Kt().memoizedState;return[e,t]},useMutableSource:z0,useSyncExternalStore:V0,useId:ny,unstable_isNewReconciler:!1};function Ws(e,t){try{var n="",r=t;do n+=N4(r),r=r.return;while(r);var s=n}catch(i){s=`
|
|
37
|
+
`),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var a=`
|
|
38
|
+
`+s[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{Hd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Do(e):""}function r3(e){switch(e.tag){case 5:return Do(e.type);case 16:return Do("Lazy");case 13:return Do("Suspense");case 19:return Do("SuspenseList");case 0:case 2:case 15:return e=qd(e.type,!1),e;case 11:return e=qd(e.type.render,!1),e;case 1:return e=qd(e.type,!0),e;default:return""}}function fp(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 ai:return"Fragment";case oi:return"Portal";case up:return"Profiler";case Dh:return"StrictMode";case cp:return"Suspense";case dp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gy:return(e.displayName||"Context")+".Consumer";case Wy:return(e._context.displayName||"Context")+".Provider";case Fh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $h:return t=e.displayName||null,t!==null?t:fp(e.type)||"Memo";case Sr:t=e._payload,e=e._init;try{return fp(e(t))}catch{}}return null}function s3(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 fp(t);case 8:return t===Dh?"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 Zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ky(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i3(e){var t=Ky(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nl(e){e._valueTracker||(e._valueTracker=i3(e))}function Xy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ky(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zu(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 pp(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zr(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 Yy(e,t){t=t.checked,t!=null&&Lh(e,"checked",t,!1)}function hp(e,t){Yy(e,t);var n=Zr(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")?mp(e,t.type,n):t.hasOwnProperty("defaultValue")&&mp(e,t.type,Zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pv(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 mp(e,t,n){(t!=="number"||zu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fo=Array.isArray;function xi(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Zr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function gp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(H(91));return ke({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hv(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(H(92));if(Fo(n)){if(1<n.length)throw Error(H(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Zr(n)}}function Jy(e,t){var n=Zr(t.value),r=Zr(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 mv(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zy(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 vp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Al,ew=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Al=Al||document.createElement("div"),Al.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Al.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ma(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qo={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},o3=["Webkit","ms","Moz","O"];Object.keys(qo).forEach(function(e){o3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qo[t]=qo[e]})});function tw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qo.hasOwnProperty(e)&&qo[e]?(""+t).trim():t+"px"}function nw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=tw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var a3=ke({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 yp(e,t){if(t){if(a3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function wp(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 xp=null;function zh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bp=null,bi=null,Si=null;function gv(e){if(e=ul(e)){if(typeof bp!="function")throw Error(H(280));var t=e.stateNode;t&&(t=Bc(t),bp(e.stateNode,e.type,t))}}function rw(e){bi?Si?Si.push(e):Si=[e]:bi=e}function sw(){if(bi){var e=bi,t=Si;if(Si=bi=null,gv(e),t)for(e=0;e<t.length;e++)gv(t[e])}}function iw(e,t){return e(t)}function ow(){}var Wd=!1;function aw(e,t,n){if(Wd)return e(t,n);Wd=!0;try{return iw(e,t,n)}finally{Wd=!1,(bi!==null||Si!==null)&&(ow(),sw())}}function ga(e,t){var n=e.stateNode;if(n===null)return null;var r=Bc(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(H(231,t,typeof n));return n}var Sp=!1;if(ar)try{var bo={};Object.defineProperty(bo,"passive",{get:function(){Sp=!0}}),window.addEventListener("test",bo,bo),window.removeEventListener("test",bo,bo)}catch{Sp=!1}function l3(e,t,n,r,s,i,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Wo=!1,Bu=null,Vu=!1,Ep=null,u3={onError:function(e){Wo=!0,Bu=e}};function c3(e,t,n,r,s,i,o,l,a){Wo=!1,Bu=null,l3.apply(u3,arguments)}function d3(e,t,n,r,s,i,o,l,a){if(c3.apply(this,arguments),Wo){if(Wo){var u=Bu;Wo=!1,Bu=null}else throw Error(H(198));Vu||(Vu=!0,Ep=u)}}function Qs(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 lw(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 vv(e){if(Qs(e)!==e)throw Error(H(188))}function f3(e){var t=e.alternate;if(!t){if(t=Qs(e),t===null)throw Error(H(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return vv(s),e;if(i===r)return vv(s),t;i=i.sibling}throw Error(H(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,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){for(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)throw Error(H(189))}}if(n.alternate!==r)throw Error(H(190))}if(n.tag!==3)throw Error(H(188));return n.stateNode.current===n?e:t}function uw(e){return e=f3(e),e!==null?cw(e):null}function cw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=cw(e);if(t!==null)return t;e=e.sibling}return null}var dw=zt.unstable_scheduleCallback,yv=zt.unstable_cancelCallback,p3=zt.unstable_shouldYield,h3=zt.unstable_requestPaint,Ae=zt.unstable_now,m3=zt.unstable_getCurrentPriorityLevel,Bh=zt.unstable_ImmediatePriority,fw=zt.unstable_UserBlockingPriority,Uu=zt.unstable_NormalPriority,g3=zt.unstable_LowPriority,pw=zt.unstable_IdlePriority,Dc=null,zn=null;function v3(e){if(zn&&typeof zn.onCommitFiberRoot=="function")try{zn.onCommitFiberRoot(Dc,e,void 0,(e.current.flags&128)===128)}catch{}}var Cn=Math.clz32?Math.clz32:x3,y3=Math.log,w3=Math.LN2;function x3(e){return e>>>=0,e===0?32:31-(y3(e)/w3|0)|0}var Il=64,_l=4194304;function $o(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 Hu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~s;l!==0?r=$o(l):(i&=o,i!==0&&(r=$o(i)))}else o=n&~s,o!==0?r=$o(o):i!==0&&(r=$o(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Cn(t),s=1<<n,r|=e[n],t&=~s;return r}function b3(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 S3(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Cn(i),l=1<<o,a=s[o];a===-1?(!(l&n)||l&r)&&(s[o]=b3(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function Cp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function hw(){var e=Il;return Il<<=1,!(Il&4194240)&&(Il=64),e}function Gd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function al(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Cn(t),e[t]=n}function E3(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Cn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Vh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Cn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var pe=0;function mw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var gw,Uh,vw,yw,ww,kp=!1,Ml=[],Ur=null,Hr=null,qr=null,va=new Map,ya=new Map,Cr=[],C3="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 wv(e,t){switch(e){case"focusin":case"focusout":Ur=null;break;case"dragenter":case"dragleave":Hr=null;break;case"mouseover":case"mouseout":qr=null;break;case"pointerover":case"pointerout":va.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ya.delete(t.pointerId)}}function So(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=ul(t),t!==null&&Uh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function k3(e,t,n,r,s){switch(t){case"focusin":return Ur=So(Ur,e,t,n,r,s),!0;case"dragenter":return Hr=So(Hr,e,t,n,r,s),!0;case"mouseover":return qr=So(qr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return va.set(i,So(va.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ya.set(i,So(ya.get(i)||null,e,t,n,r,s)),!0}return!1}function xw(e){var t=vs(e.target);if(t!==null){var n=Qs(t);if(n!==null){if(t=n.tag,t===13){if(t=lw(n),t!==null){e.blockedOn=t,ww(e.priority,function(){vw(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 uu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Tp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);xp=r,n.target.dispatchEvent(r),xp=null}else return t=ul(n),t!==null&&Uh(t),e.blockedOn=n,!1;t.shift()}return!0}function xv(e,t,n){uu(e)&&n.delete(t)}function T3(){kp=!1,Ur!==null&&uu(Ur)&&(Ur=null),Hr!==null&&uu(Hr)&&(Hr=null),qr!==null&&uu(qr)&&(qr=null),va.forEach(xv),ya.forEach(xv)}function Eo(e,t){e.blockedOn===t&&(e.blockedOn=null,kp||(kp=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,T3)))}function wa(e){function t(s){return Eo(s,e)}if(0<Ml.length){Eo(Ml[0],e);for(var n=1;n<Ml.length;n++){var r=Ml[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ur!==null&&Eo(Ur,e),Hr!==null&&Eo(Hr,e),qr!==null&&Eo(qr,e),va.forEach(t),ya.forEach(t),n=0;n<Cr.length;n++)r=Cr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Cr.length&&(n=Cr[0],n.blockedOn===null);)xw(n),n.blockedOn===null&&Cr.shift()}var Ei=gr.ReactCurrentBatchConfig,qu=!0;function j3(e,t,n,r){var s=pe,i=Ei.transition;Ei.transition=null;try{pe=1,Hh(e,t,n,r)}finally{pe=s,Ei.transition=i}}function P3(e,t,n,r){var s=pe,i=Ei.transition;Ei.transition=null;try{pe=4,Hh(e,t,n,r)}finally{pe=s,Ei.transition=i}}function Hh(e,t,n,r){if(qu){var s=Tp(e,t,n,r);if(s===null)rf(e,t,r,Wu,n),wv(e,r);else if(k3(s,e,t,n,r))r.stopPropagation();else if(wv(e,r),t&4&&-1<C3.indexOf(e)){for(;s!==null;){var i=ul(s);if(i!==null&&gw(i),i=Tp(e,t,n,r),i===null&&rf(e,t,r,Wu,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else rf(e,t,r,null,n)}}var Wu=null;function Tp(e,t,n,r){if(Wu=null,e=zh(r),e=vs(e),e!==null)if(t=Qs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=lw(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 Wu=e,null}function bw(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(m3()){case Bh:return 1;case fw:return 4;case Uu:case g3:return 16;case pw:return 536870912;default:return 16}default:return 16}}var Mr=null,qh=null,cu=null;function Sw(){if(cu)return cu;var e,t=qh,n=t.length,r,s="value"in Mr?Mr.value:Mr.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return cu=s.slice(e,1<r?1-r:void 0)}function du(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 Ll(){return!0}function bv(){return!1}function Ut(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ll:bv,this.isPropagationStopped=bv,this}return ke(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=Ll)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ll)},persist:function(){},isPersistent:Ll}),t}var co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wh=Ut(co),ll=ke({},co,{view:0,detail:0}),O3=Ut(ll),Qd,Kd,Co,Fc=ke({},ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gh,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!==Co&&(Co&&e.type==="mousemove"?(Qd=e.screenX-Co.screenX,Kd=e.screenY-Co.screenY):Kd=Qd=0,Co=e),Qd)},movementY:function(e){return"movementY"in e?e.movementY:Kd}}),Sv=Ut(Fc),R3=ke({},Fc,{dataTransfer:0}),N3=Ut(R3),A3=ke({},ll,{relatedTarget:0}),Xd=Ut(A3),I3=ke({},co,{animationName:0,elapsedTime:0,pseudoElement:0}),_3=Ut(I3),M3=ke({},co,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),L3=Ut(M3),D3=ke({},co,{data:0}),Ev=Ut(D3),F3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$3={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"},z3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=z3[e])?!!t[e]:!1}function Gh(){return B3}var V3=ke({},ll,{key:function(e){if(e.key){var t=F3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=du(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gh,charCode:function(e){return e.type==="keypress"?du(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?du(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),U3=Ut(V3),H3=ke({},Fc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cv=Ut(H3),q3=ke({},ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gh}),W3=Ut(q3),G3=ke({},co,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q3=Ut(G3),K3=ke({},Fc,{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}),X3=Ut(K3),Y3=[9,13,27,32],Qh=ar&&"CompositionEvent"in window,Go=null;ar&&"documentMode"in document&&(Go=document.documentMode);var J3=ar&&"TextEvent"in window&&!Go,Ew=ar&&(!Qh||Go&&8<Go&&11>=Go),kv=String.fromCharCode(32),Tv=!1;function Cw(e,t){switch(e){case"keyup":return Y3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var li=!1;function Z3(e,t){switch(e){case"compositionend":return kw(t);case"keypress":return t.which!==32?null:(Tv=!0,kv);case"textInput":return e=t.data,e===kv&&Tv?null:e;default:return null}}function ek(e,t){if(li)return e==="compositionend"||!Qh&&Cw(e,t)?(e=Sw(),cu=qh=Mr=null,li=!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 Ew&&t.locale!=="ko"?null:t.data;default:return null}}var tk={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 jv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tk[e.type]:t==="textarea"}function Tw(e,t,n,r){rw(r),t=Gu(t,"onChange"),0<t.length&&(n=new Wh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qo=null,xa=null;function nk(e){Dw(e,0)}function $c(e){var t=di(e);if(Xy(t))return e}function rk(e,t){if(e==="change")return t}var jw=!1;if(ar){var Yd;if(ar){var Jd="oninput"in document;if(!Jd){var Pv=document.createElement("div");Pv.setAttribute("oninput","return;"),Jd=typeof Pv.oninput=="function"}Yd=Jd}else Yd=!1;jw=Yd&&(!document.documentMode||9<document.documentMode)}function Ov(){Qo&&(Qo.detachEvent("onpropertychange",Pw),xa=Qo=null)}function Pw(e){if(e.propertyName==="value"&&$c(xa)){var t=[];Tw(t,xa,e,zh(e)),aw(nk,t)}}function sk(e,t,n){e==="focusin"?(Ov(),Qo=t,xa=n,Qo.attachEvent("onpropertychange",Pw)):e==="focusout"&&Ov()}function ik(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $c(xa)}function ok(e,t){if(e==="click")return $c(t)}function ak(e,t){if(e==="input"||e==="change")return $c(t)}function lk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tn=typeof Object.is=="function"?Object.is:lk;function ba(e,t){if(Tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!lp.call(t,s)||!Tn(e[s],t[s]))return!1}return!0}function Rv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nv(e,t){var n=Rv(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=Rv(n)}}function Ow(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ow(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rw(){for(var e=window,t=zu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zu(e.document)}return t}function Kh(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 uk(e){var t=Rw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ow(n.ownerDocument.documentElement,n)){if(r!==null&&Kh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Nv(n,i);var o=Nv(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ck=ar&&"documentMode"in document&&11>=document.documentMode,ui=null,jp=null,Ko=null,Pp=!1;function Av(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pp||ui==null||ui!==zu(r)||(r=ui,"selectionStart"in r&&Kh(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}),Ko&&ba(Ko,r)||(Ko=r,r=Gu(jp,"onSelect"),0<r.length&&(t=new Wh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ui)))}function Dl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ci={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionend:Dl("Transition","TransitionEnd")},Zd={},Nw={};ar&&(Nw=document.createElement("div").style,"AnimationEvent"in window||(delete ci.animationend.animation,delete ci.animationiteration.animation,delete ci.animationstart.animation),"TransitionEvent"in window||delete ci.transitionend.transition);function zc(e){if(Zd[e])return Zd[e];if(!ci[e])return e;var t=ci[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Nw)return Zd[e]=t[n];return e}var Aw=zc("animationend"),Iw=zc("animationiteration"),_w=zc("animationstart"),Mw=zc("transitionend"),Lw=new Map,Iv="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 ss(e,t){Lw.set(e,t),Gs(t,[e])}for(var ef=0;ef<Iv.length;ef++){var tf=Iv[ef],dk=tf.toLowerCase(),fk=tf[0].toUpperCase()+tf.slice(1);ss(dk,"on"+fk)}ss(Aw,"onAnimationEnd");ss(Iw,"onAnimationIteration");ss(_w,"onAnimationStart");ss("dblclick","onDoubleClick");ss("focusin","onFocus");ss("focusout","onBlur");ss(Mw,"onTransitionEnd");Qi("onMouseEnter",["mouseout","mouseover"]);Qi("onMouseLeave",["mouseout","mouseover"]);Qi("onPointerEnter",["pointerout","pointerover"]);Qi("onPointerLeave",["pointerout","pointerover"]);Gs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Gs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Gs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Gs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Gs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Gs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zo="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(" "),pk=new Set("cancel close invalid load scroll toggle".split(" ").concat(zo));function _v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,d3(r,t,void 0,e),e.currentTarget=null}function Dw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&s.isPropagationStopped())break e;_v(s,l,u),i=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&s.isPropagationStopped())break e;_v(s,l,u),i=a}}}if(Vu)throw e=Ep,Vu=!1,Ep=null,e}function we(e,t){var n=t[Ip];n===void 0&&(n=t[Ip]=new Set);var r=e+"__bubble";n.has(r)||(Fw(t,e,2,!1),n.add(r))}function nf(e,t,n){var r=0;t&&(r|=4),Fw(n,e,r,t)}var Fl="_reactListening"+Math.random().toString(36).slice(2);function Sa(e){if(!e[Fl]){e[Fl]=!0,qy.forEach(function(n){n!=="selectionchange"&&(pk.has(n)||nf(n,!1,e),nf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fl]||(t[Fl]=!0,nf("selectionchange",!1,t))}}function Fw(e,t,n,r){switch(bw(t)){case 1:var s=j3;break;case 4:s=P3;break;default:s=Hh}n=s.bind(null,t,n,e),s=void 0,!Sp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function rf(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;o=o.return}for(;l!==null;){if(o=vs(l),o===null)return;if(a=o.tag,a===5||a===6){r=i=o;continue e}l=l.parentNode}}r=r.return}aw(function(){var u=i,c=zh(n),f=[];e:{var p=Lw.get(e);if(p!==void 0){var h=Wh,y=e;switch(e){case"keypress":if(du(n)===0)break e;case"keydown":case"keyup":h=U3;break;case"focusin":y="focus",h=Xd;break;case"focusout":y="blur",h=Xd;break;case"beforeblur":case"afterblur":h=Xd;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=Sv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=N3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=W3;break;case Aw:case Iw:case _w:h=_3;break;case Mw:h=Q3;break;case"scroll":h=O3;break;case"wheel":h=X3;break;case"copy":case"cut":case"paste":h=L3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Cv}var w=(t&4)!==0,x=!w&&e==="scroll",g=w?p!==null?p+"Capture":null:p;w=[];for(var m=u,v;m!==null;){v=m;var b=v.stateNode;if(v.tag===5&&b!==null&&(v=b,g!==null&&(b=ga(m,g),b!=null&&w.push(Ea(m,b,v)))),x)break;m=m.return}0<w.length&&(p=new h(p,y,null,n,c),f.push({event:p,listeners:w}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==xp&&(y=n.relatedTarget||n.fromElement)&&(vs(y)||y[lr]))break e;if((h||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=u,y=y?vs(y):null,y!==null&&(x=Qs(y),y!==x||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=u),h!==y)){if(w=Sv,b="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(w=Cv,b="onPointerLeave",g="onPointerEnter",m="pointer"),x=h==null?p:di(h),v=y==null?p:di(y),p=new w(b,m+"leave",h,n,c),p.target=x,p.relatedTarget=v,b=null,vs(c)===u&&(w=new w(g,m+"enter",y,n,c),w.target=v,w.relatedTarget=x,b=w),x=b,h&&y)t:{for(w=h,g=y,m=0,v=w;v;v=ri(v))m++;for(v=0,b=g;b;b=ri(b))v++;for(;0<m-v;)w=ri(w),m--;for(;0<v-m;)g=ri(g),v--;for(;m--;){if(w===g||g!==null&&w===g.alternate)break t;w=ri(w),g=ri(g)}w=null}else w=null;h!==null&&Mv(f,p,h,w,!1),y!==null&&x!==null&&Mv(f,x,y,w,!0)}}e:{if(p=u?di(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var E=rk;else if(jv(p))if(jw)E=ak;else{E=ik;var T=sk}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=ok);if(E&&(E=E(e,u))){Tw(f,E,n,c);break e}T&&T(e,p,u),e==="focusout"&&(T=p._wrapperState)&&T.controlled&&p.type==="number"&&mp(p,"number",p.value)}switch(T=u?di(u):window,e){case"focusin":(jv(T)||T.contentEditable==="true")&&(ui=T,jp=u,Ko=null);break;case"focusout":Ko=jp=ui=null;break;case"mousedown":Pp=!0;break;case"contextmenu":case"mouseup":case"dragend":Pp=!1,Av(f,n,c);break;case"selectionchange":if(ck)break;case"keydown":case"keyup":Av(f,n,c)}var C;if(Qh)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else li?Cw(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Ew&&n.locale!=="ko"&&(li||R!=="onCompositionStart"?R==="onCompositionEnd"&&li&&(C=Sw()):(Mr=c,qh="value"in Mr?Mr.value:Mr.textContent,li=!0)),T=Gu(u,R),0<T.length&&(R=new Ev(R,e,null,n,c),f.push({event:R,listeners:T}),C?R.data=C:(C=kw(n),C!==null&&(R.data=C)))),(C=J3?Z3(e,n):ek(e,n))&&(u=Gu(u,"onBeforeInput"),0<u.length&&(c=new Ev("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=C))}Dw(f,t)})}function Ea(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gu(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ga(e,n),i!=null&&r.unshift(Ea(e,i,s)),i=ga(e,t),i!=null&&r.push(Ea(e,i,s))),e=e.return}return r}function ri(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mv(e,t,n,r,s){for(var i=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,s?(a=ga(n,i),a!=null&&o.unshift(Ea(n,a,l))):s||(a=ga(n,i),a!=null&&o.push(Ea(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var hk=/\r\n?/g,mk=/\u0000|\uFFFD/g;function Lv(e){return(typeof e=="string"?e:""+e).replace(hk,`
|
|
39
|
+
`).replace(mk,"")}function $l(e,t,n){if(t=Lv(t),Lv(e)!==t&&n)throw Error(H(425))}function Qu(){}var Op=null,Rp=null;function Np(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 Ap=typeof setTimeout=="function"?setTimeout:void 0,gk=typeof clearTimeout=="function"?clearTimeout:void 0,Dv=typeof Promise=="function"?Promise:void 0,vk=typeof queueMicrotask=="function"?queueMicrotask:typeof Dv<"u"?function(e){return Dv.resolve(null).then(e).catch(yk)}:Ap;function yk(e){setTimeout(function(){throw e})}function sf(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),wa(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);wa(t)}function Wr(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 Fv(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 fo=Math.random().toString(36).slice(2),Ln="__reactFiber$"+fo,Ca="__reactProps$"+fo,lr="__reactContainer$"+fo,Ip="__reactEvents$"+fo,wk="__reactListeners$"+fo,xk="__reactHandles$"+fo;function vs(e){var t=e[Ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lr]||n[Ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fv(e);e!==null;){if(n=e[Ln])return n;e=Fv(e)}return t}e=n,n=e.parentNode}return null}function ul(e){return e=e[Ln]||e[lr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function di(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(H(33))}function Bc(e){return e[Ca]||null}var _p=[],fi=-1;function is(e){return{current:e}}function xe(e){0>fi||(e.current=_p[fi],_p[fi]=null,fi--)}function ve(e,t){fi++,_p[fi]=e.current,e.current=t}var es={},rt=is(es),St=is(!1),Ms=es;function Ki(e,t){var n=e.type.contextTypes;if(!n)return es;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Et(e){return e=e.childContextTypes,e!=null}function Ku(){xe(St),xe(rt)}function $v(e,t,n){if(rt.current!==es)throw Error(H(168));ve(rt,t),ve(St,n)}function $w(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(H(108,s3(e)||"Unknown",s));return ke({},n,r)}function Xu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||es,Ms=rt.current,ve(rt,e),ve(St,St.current),!0}function zv(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=$w(e,t,Ms),r.__reactInternalMemoizedMergedChildContext=e,xe(St),xe(rt),ve(rt,e)):xe(St),ve(St,n)}var er=null,Vc=!1,of=!1;function zw(e){er===null?er=[e]:er.push(e)}function bk(e){Vc=!0,zw(e)}function os(){if(!of&&er!==null){of=!0;var e=0,t=pe;try{var n=er;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}er=null,Vc=!1}catch(s){throw er!==null&&(er=er.slice(e+1)),dw(Bh,os),s}finally{pe=t,of=!1}}return null}var pi=[],hi=0,Yu=null,Ju=0,Yt=[],Jt=0,Ls=null,nr=1,rr="";function hs(e,t){pi[hi++]=Ju,pi[hi++]=Yu,Yu=e,Ju=t}function Bw(e,t,n){Yt[Jt++]=nr,Yt[Jt++]=rr,Yt[Jt++]=Ls,Ls=e;var r=nr;e=rr;var s=32-Cn(r)-1;r&=~(1<<s),n+=1;var i=32-Cn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,nr=1<<32-Cn(t)+s|n<<s|r,rr=i+e}else nr=1<<i|n<<s|r,rr=e}function Xh(e){e.return!==null&&(hs(e,1),Bw(e,1,0))}function Yh(e){for(;e===Yu;)Yu=pi[--hi],pi[hi]=null,Ju=pi[--hi],pi[hi]=null;for(;e===Ls;)Ls=Yt[--Jt],Yt[Jt]=null,rr=Yt[--Jt],Yt[Jt]=null,nr=Yt[--Jt],Yt[Jt]=null}var Ft=null,Lt=null,be=!1,xn=null;function Vw(e,t){var n=rn(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 Bv(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,Ft=e,Lt=Wr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ft=e,Lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ls!==null?{id:nr,overflow:rr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=rn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ft=e,Lt=null,!0):!1;default:return!1}}function Mp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Lp(e){if(be){var t=Lt;if(t){var n=t;if(!Bv(e,t)){if(Mp(e))throw Error(H(418));t=Wr(n.nextSibling);var r=Ft;t&&Bv(e,t)?Vw(r,n):(e.flags=e.flags&-4097|2,be=!1,Ft=e)}}else{if(Mp(e))throw Error(H(418));e.flags=e.flags&-4097|2,be=!1,Ft=e}}}function Vv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ft=e}function zl(e){if(e!==Ft)return!1;if(!be)return Vv(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Np(e.type,e.memoizedProps)),t&&(t=Lt)){if(Mp(e))throw Uw(),Error(H(418));for(;t;)Vw(e,t),t=Wr(t.nextSibling)}if(Vv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Lt=Wr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Lt=null}}else Lt=Ft?Wr(e.stateNode.nextSibling):null;return!0}function Uw(){for(var e=Lt;e;)e=Wr(e.nextSibling)}function Xi(){Lt=Ft=null,be=!1}function Jh(e){xn===null?xn=[e]:xn.push(e)}var Sk=gr.ReactCurrentBatchConfig;function gn(e,t){if(e&&e.defaultProps){t=ke({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Zu=is(null),ec=null,mi=null,Zh=null;function em(){Zh=mi=ec=null}function tm(e){var t=Zu.current;xe(Zu),e._currentValue=t}function Dp(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){ec=e,Zh=mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(bt=!0),e.firstContext=null)}function ln(e){var t=e._currentValue;if(Zh!==e)if(e={context:e,memoizedValue:t,next:null},mi===null){if(ec===null)throw Error(H(308));mi=e,ec.dependencies={lanes:0,firstContext:e}}else mi=mi.next=e;return t}var ys=null;function nm(e){ys===null?ys=[e]:ys.push(e)}function Hw(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,nm(t)):(n.next=s.next,s.next=n),t.interleaved=n,ur(e,r)}function ur(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 Er=!1;function rm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qw(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 or(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,ur(e,n)}return s=r.interleaved,s===null?(t.next=t,nm(r)):(t.next=s.next,s.next=t),r.interleaved=t,ur(e,n)}function fu(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,Vh(e,n)}}function Uv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tc(e,t,n,r){var s=e.updateQueue;Er=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?i=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(i!==null){var f=s.baseState;o=0,c=u=a=null,l=i;do{var p=l.lane,h=l.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,w=l;switch(p=t,h=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){f=y.call(h,f,p);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,p=typeof y=="function"?y.call(h,f,p):y,p==null)break e;f=ke({},f,p);break e;case 2:Er=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[l]:p.push(l))}else h={eventTime:h,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=h,a=f):c=c.next=h,o|=p;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;p=l,l=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(1);if(c===null&&(a=f),s.baseState=a,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Fs|=o,e.lanes=o,e.memoizedState=f}}function Hv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(H(191,s));s.call(r)}}}var Ww=new Hy.Component().refs;function Fp(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ke({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Uc={isMounted:function(e){return(e=e._reactInternals)?Qs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ct(),s=Kr(e),i=or(r,s);i.payload=t,n!=null&&(i.callback=n),t=Gr(e,i,s),t!==null&&(kn(t,e,s,r),fu(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ct(),s=Kr(e),i=or(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Gr(e,i,s),t!==null&&(kn(t,e,s,r),fu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ct(),r=Kr(e),s=or(n,r);s.tag=2,t!=null&&(s.callback=t),t=Gr(e,s,r),t!==null&&(kn(t,e,r,n),fu(t,e,r))}};function qv(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!ba(n,r)||!ba(s,i):!0}function Gw(e,t,n){var r=!1,s=es,i=t.contextType;return typeof i=="object"&&i!==null?i=ln(i):(s=Et(t)?Ms:rt.current,r=t.contextTypes,i=(r=r!=null)?Ki(e,s):es),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Uc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Wv(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&&Uc.enqueueReplaceState(t,t.state,null)}function $p(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=Ww,rm(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=ln(i):(i=Et(t)?Ms:rt.current,s.context=Ki(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Fp(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Uc.enqueueReplaceState(s,s.state,null),tc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function ko(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(H(309));var r=n.stateNode}if(!r)throw Error(H(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=s.refs;l===Ww&&(l=s.refs={}),o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(H(284));if(!n._owner)throw Error(H(290,e))}return e}function Bl(e,t){throw e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gv(e){var t=e._init;return t(e._payload)}function Qw(e){function t(g,m){if(e){var v=g.deletions;v===null?(g.deletions=[m],g.flags|=16):v.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function s(g,m){return g=Xr(g,m),g.index=0,g.sibling=null,g}function i(g,m,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<m?(g.flags|=2,m):v):(g.flags|=2,m)):(g.flags|=1048576,m)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,m,v,b){return m===null||m.tag!==6?(m=pf(v,g.mode,b),m.return=g,m):(m=s(m,v),m.return=g,m)}function a(g,m,v,b){var E=v.type;return E===ai?c(g,m,v.props.children,b,v.key):m!==null&&(m.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Sr&&Gv(E)===m.type)?(b=s(m,v.props),b.ref=ko(g,m,v),b.return=g,b):(b=yu(v.type,v.key,v.props,null,g.mode,b),b.ref=ko(g,m,v),b.return=g,b)}function u(g,m,v,b){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=hf(v,g.mode,b),m.return=g,m):(m=s(m,v.children||[]),m.return=g,m)}function c(g,m,v,b,E){return m===null||m.tag!==7?(m=As(v,g.mode,b,E),m.return=g,m):(m=s(m,v),m.return=g,m)}function f(g,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=pf(""+m,g.mode,v),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Rl:return v=yu(m.type,m.key,m.props,null,g.mode,v),v.ref=ko(g,null,m),v.return=g,v;case oi:return m=hf(m,g.mode,v),m.return=g,m;case Sr:var b=m._init;return f(g,b(m._payload),v)}if(Fo(m)||xo(m))return m=As(m,g.mode,v,null),m.return=g,m;Bl(g,m)}return null}function p(g,m,v,b){var E=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:l(g,m,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Rl:return v.key===E?a(g,m,v,b):null;case oi:return v.key===E?u(g,m,v,b):null;case Sr:return E=v._init,p(g,m,E(v._payload),b)}if(Fo(v)||xo(v))return E!==null?null:c(g,m,v,b,null);Bl(g,v)}return null}function h(g,m,v,b,E){if(typeof b=="string"&&b!==""||typeof b=="number")return g=g.get(v)||null,l(m,g,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Rl:return g=g.get(b.key===null?v:b.key)||null,a(m,g,b,E);case oi:return g=g.get(b.key===null?v:b.key)||null,u(m,g,b,E);case Sr:var T=b._init;return h(g,m,v,T(b._payload),E)}if(Fo(b)||xo(b))return g=g.get(v)||null,c(m,g,b,E,null);Bl(m,b)}return null}function y(g,m,v,b){for(var E=null,T=null,C=m,R=m=0,j=null;C!==null&&R<v.length;R++){C.index>R?(j=C,C=null):j=C.sibling;var L=p(g,C,v[R],b);if(L===null){C===null&&(C=j);break}e&&C&&L.alternate===null&&t(g,C),m=i(L,m,R),T===null?E=L:T.sibling=L,T=L,C=j}if(R===v.length)return n(g,C),be&&hs(g,R),E;if(C===null){for(;R<v.length;R++)C=f(g,v[R],b),C!==null&&(m=i(C,m,R),T===null?E=C:T.sibling=C,T=C);return be&&hs(g,R),E}for(C=r(g,C);R<v.length;R++)j=h(C,g,R,v[R],b),j!==null&&(e&&j.alternate!==null&&C.delete(j.key===null?R:j.key),m=i(j,m,R),T===null?E=j:T.sibling=j,T=j);return e&&C.forEach(function(A){return t(g,A)}),be&&hs(g,R),E}function w(g,m,v,b){var E=xo(v);if(typeof E!="function")throw Error(H(150));if(v=E.call(v),v==null)throw Error(H(151));for(var T=E=null,C=m,R=m=0,j=null,L=v.next();C!==null&&!L.done;R++,L=v.next()){C.index>R?(j=C,C=null):j=C.sibling;var A=p(g,C,L.value,b);if(A===null){C===null&&(C=j);break}e&&C&&A.alternate===null&&t(g,C),m=i(A,m,R),T===null?E=A:T.sibling=A,T=A,C=j}if(L.done)return n(g,C),be&&hs(g,R),E;if(C===null){for(;!L.done;R++,L=v.next())L=f(g,L.value,b),L!==null&&(m=i(L,m,R),T===null?E=L:T.sibling=L,T=L);return be&&hs(g,R),E}for(C=r(g,C);!L.done;R++,L=v.next())L=h(C,g,R,L.value,b),L!==null&&(e&&L.alternate!==null&&C.delete(L.key===null?R:L.key),m=i(L,m,R),T===null?E=L:T.sibling=L,T=L);return e&&C.forEach(function(N){return t(g,N)}),be&&hs(g,R),E}function x(g,m,v,b){if(typeof v=="object"&&v!==null&&v.type===ai&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Rl:e:{for(var E=v.key,T=m;T!==null;){if(T.key===E){if(E=v.type,E===ai){if(T.tag===7){n(g,T.sibling),m=s(T,v.props.children),m.return=g,g=m;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Sr&&Gv(E)===T.type){n(g,T.sibling),m=s(T,v.props),m.ref=ko(g,T,v),m.return=g,g=m;break e}n(g,T);break}else t(g,T);T=T.sibling}v.type===ai?(m=As(v.props.children,g.mode,b,v.key),m.return=g,g=m):(b=yu(v.type,v.key,v.props,null,g.mode,b),b.ref=ko(g,m,v),b.return=g,g=b)}return o(g);case oi:e:{for(T=v.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(g,m.sibling),m=s(m,v.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=hf(v,g.mode,b),m.return=g,g=m}return o(g);case Sr:return T=v._init,x(g,m,T(v._payload),b)}if(Fo(v))return y(g,m,v,b);if(xo(v))return w(g,m,v,b);Bl(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,v),m.return=g,g=m):(n(g,m),m=pf(v,g.mode,b),m.return=g,g=m),o(g)):n(g,m)}return x}var Yi=Qw(!0),Kw=Qw(!1),cl={},Bn=is(cl),ka=is(cl),Ta=is(cl);function ws(e){if(e===cl)throw Error(H(174));return e}function sm(e,t){switch(ve(Ta,t),ve(ka,e),ve(Bn,cl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vp(t,e)}xe(Bn),ve(Bn,t)}function Ji(){xe(Bn),xe(ka),xe(Ta)}function Xw(e){ws(Ta.current);var t=ws(Bn.current),n=vp(t,e.type);t!==n&&(ve(ka,e),ve(Bn,n))}function im(e){ka.current===e&&(xe(Bn),xe(ka))}var Se=is(0);function nc(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 af=[];function om(){for(var e=0;e<af.length;e++)af[e]._workInProgressVersionPrimary=null;af.length=0}var pu=gr.ReactCurrentDispatcher,lf=gr.ReactCurrentBatchConfig,Ds=0,Ce=null,De=null,Ue=null,rc=!1,Xo=!1,ja=0,Ek=0;function Ze(){throw Error(H(321))}function am(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tn(e[n],t[n]))return!1;return!0}function lm(e,t,n,r,s,i){if(Ds=i,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pu.current=e===null||e.memoizedState===null?jk:Pk,e=n(r,s),Xo){i=0;do{if(Xo=!1,ja=0,25<=i)throw Error(H(301));i+=1,Ue=De=null,t.updateQueue=null,pu.current=Ok,e=n(r,s)}while(Xo)}if(pu.current=sc,t=De!==null&&De.next!==null,Ds=0,Ue=De=Ce=null,rc=!1,t)throw Error(H(300));return e}function um(){var e=ja!==0;return ja=0,e}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?Ce.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function un(){if(De===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Ue===null?Ce.memoizedState:Ue.next;if(t!==null)Ue=t,De=e;else{if(e===null)throw Error(H(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Ue===null?Ce.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function Pa(e,t){return typeof t=="function"?t(e):t}function uf(e){var t=un(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=De,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=o=null,a=null,u=i;do{var c=u.lane;if((Ds&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 f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,o=r):a=a.next=f,Ce.lanes|=c,Fs|=c}u=u.next}while(u!==null&&u!==i);a===null?o=r:a.next=l,Tn(r,t.memoizedState)||(bt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Ce.lanes|=i,Fs|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function cf(e){var t=un(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Tn(i,t.memoizedState)||(bt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Yw(){}function Jw(e,t){var n=Ce,r=un(),s=t(),i=!Tn(r.memoizedState,s);if(i&&(r.memoizedState=s,bt=!0),r=r.queue,cm(tx.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ue!==null&&Ue.memoizedState.tag&1){if(n.flags|=2048,Oa(9,ex.bind(null,n,r,s,t),void 0,null),He===null)throw Error(H(349));Ds&30||Zw(n,t,s)}return s}function Zw(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ex(e,t,n,r){t.value=n,t.getSnapshot=r,nx(t)&&rx(e)}function tx(e,t,n){return n(function(){nx(t)&&rx(e)})}function nx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tn(e,n)}catch{return!0}}function rx(e){var t=ur(e,1);t!==null&&kn(t,e,1,-1)}function Qv(e){var t=Rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t.queue=e,e=e.dispatch=Tk.bind(null,Ce,e),[t.memoizedState,e]}function Oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.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 sx(){return un().memoizedState}function hu(e,t,n,r){var s=Rn();Ce.flags|=e,s.memoizedState=Oa(1|t,n,void 0,r===void 0?null:r)}function Hc(e,t,n,r){var s=un();r=r===void 0?null:r;var i=void 0;if(De!==null){var o=De.memoizedState;if(i=o.destroy,r!==null&&am(r,o.deps)){s.memoizedState=Oa(t,n,i,r);return}}Ce.flags|=e,s.memoizedState=Oa(1|t,n,i,r)}function Kv(e,t){return hu(8390656,8,e,t)}function cm(e,t){return Hc(2048,8,e,t)}function ix(e,t){return Hc(4,2,e,t)}function ox(e,t){return Hc(4,4,e,t)}function ax(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 lx(e,t,n){return n=n!=null?n.concat([e]):null,Hc(4,4,ax.bind(null,t,e),n)}function dm(){}function ux(e,t){var n=un();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&am(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function cx(e,t){var n=un();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&am(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function dx(e,t,n){return Ds&21?(Tn(n,t)||(n=hw(),Ce.lanes|=n,Fs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bt=!0),e.memoizedState=n)}function Ck(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=lf.transition;lf.transition={};try{e(!1),t()}finally{pe=n,lf.transition=r}}function fx(){return un().memoizedState}function kk(e,t,n){var r=Kr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},px(e))hx(t,n);else if(n=Hw(e,t,n,r),n!==null){var s=ct();kn(n,e,r,s),mx(n,t,r)}}function Tk(e,t,n){var r=Kr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(px(e))hx(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(s.hasEagerState=!0,s.eagerState=l,Tn(l,o)){var a=t.interleaved;a===null?(s.next=s,nm(t)):(s.next=a.next,a.next=s),t.interleaved=s;return}}catch{}finally{}n=Hw(e,t,s,r),n!==null&&(s=ct(),kn(n,e,r,s),mx(n,t,r))}}function px(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function hx(e,t){Xo=rc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vh(e,n)}}var sc={readContext:ln,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},jk={readContext:ln,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:ln,useEffect:Kv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,hu(4194308,4,ax.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hu(4194308,4,e,t)},useInsertionEffect:function(e,t){return hu(4,2,e,t)},useMemo:function(e,t){var n=Rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rn();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=kk.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:Qv,useDebugValue:dm,useDeferredValue:function(e){return Rn().memoizedState=e},useTransition:function(){var e=Qv(!1),t=e[0];return e=Ck.bind(null,e[1]),Rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,s=Rn();if(be){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),He===null)throw Error(H(349));Ds&30||Zw(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Kv(tx.bind(null,r,i,e),[e]),r.flags|=2048,Oa(9,ex.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Rn(),t=He.identifierPrefix;if(be){var n=rr,r=nr;n=(r&~(1<<32-Cn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ja++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ek++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Pk={readContext:ln,useCallback:ux,useContext:ln,useEffect:cm,useImperativeHandle:lx,useInsertionEffect:ix,useLayoutEffect:ox,useMemo:cx,useReducer:uf,useRef:sx,useState:function(){return uf(Pa)},useDebugValue:dm,useDeferredValue:function(e){var t=un();return dx(t,De.memoizedState,e)},useTransition:function(){var e=uf(Pa)[0],t=un().memoizedState;return[e,t]},useMutableSource:Yw,useSyncExternalStore:Jw,useId:fx,unstable_isNewReconciler:!1},Ok={readContext:ln,useCallback:ux,useContext:ln,useEffect:cm,useImperativeHandle:lx,useInsertionEffect:ix,useLayoutEffect:ox,useMemo:cx,useReducer:cf,useRef:sx,useState:function(){return cf(Pa)},useDebugValue:dm,useDeferredValue:function(e){var t=un();return De===null?t.memoizedState=e:dx(t,De.memoizedState,e)},useTransition:function(){var e=cf(Pa)[0],t=un().memoizedState;return[e,t]},useMutableSource:Yw,useSyncExternalStore:Jw,useId:fx,unstable_isNewReconciler:!1};function Zi(e,t){try{var n="",r=t;do n+=r3(r),r=r.return;while(r);var s=n}catch(i){s=`
|
|
40
40
|
Error generating stack: `+i.message+`
|
|
41
|
-
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Dc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var nC=typeof WeakMap=="function"?WeakMap:Map;function oy(e,t,n){n=Fn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fl||(Fl=!0,af=r),Xd(e,t)},n}function ay(e,t,n){n=Fn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Xd(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Xd(e,t),typeof r!="function"&&(mr===null?mr=new Set([this]):mr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ig(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new nC;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=gC.bind(null,e,t,n),t.then(e,e))}function og(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 ag(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Fn(-1,1),t.tag=2,pr(n,t,1))),n.lanes|=1),e)}var rC=Qn.ReactCurrentOwner,pt=!1;function Je(e,t,n,r){t.child=e===null?$0(t,null,n,r):qs(t,e.child,n,r)}function lg(e,t,n,r,s){n=n.render;var i=t.ref;return Ds(t,s),r=mh(e,t,n,r,i,s),n=gh(),e!==null&&!pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Vn(e,t,s)):(ve&&n&&rh(t),t.flags|=1,Je(e,t,r,s),t.child)}function ug(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!jh(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ly(e,t,i,r,s)):(e=Xa(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:po,n(o,r)&&e.ref===t.ref)return Vn(e,t,s)}return t.flags|=1,e=vr(i,r),e.ref=t.ref,e.return=t,t.child=e}function ly(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(po(i,r)&&e.ref===t.ref)if(pt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(pt=!0);else return t.lanes=e.lanes,Vn(e,t,s)}return Yd(e,t,n,r,s)}function uy(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(Rs,St),St|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pe(Rs,St),St|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,pe(Rs,St),St|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,pe(Rs,St),St|=r;return Je(e,t,s,n),t.child}function cy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yd(e,t,n,r,s){var i=gt(n)?Gr:Ge.current;return i=Us(t,i),Ds(t,s),n=mh(e,t,n,r,i,s),r=gh(),e!==null&&!pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Vn(e,t,s)):(ve&&r&&rh(t),t.flags|=1,Je(e,t,n,s),t.child)}function cg(e,t,n,r,s){if(gt(n)){var i=!0;Ol(t)}else i=!1;if(Ds(t,s),t.stateNode===null)Wa(e,t),L0(t,n,r),Gd(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Wt(u):(u=gt(n)?Gr:Ge.current,u=Us(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&tg(t,o,r,u),er=!1;var h=t.memoizedState;o.state=h,Tl(t,r,o,s),l=t.memoizedState,a!==r||h!==l||mt.current||er?(typeof d=="function"&&(Kd(t,n,d,r),l=t.memoizedState),(a=er||eg(t,n,a,r,h,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,D0(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:en(t.type,a),o.props=u,f=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Wt(l):(l=gt(n)?Gr:Ge.current,l=Us(t,l));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&tg(t,o,r,l),er=!1,h=t.memoizedState,o.state=h,Tl(t,r,o,s);var m=t.memoizedState;a!==f||h!==m||mt.current||er?(typeof p=="function"&&(Kd(t,n,p,r),m=t.memoizedState),(u=er||eg(t,n,u,r,h,m,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Jd(e,t,n,r,i,s)}function Jd(e,t,n,r,s,i){cy(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Gm(t,n,!1),Vn(e,t,i);r=t.stateNode,rC.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=qs(t,e.child,null,i),t.child=qs(t,null,a,i)):Je(e,t,a,i),t.memoizedState=r.state,s&&Gm(t,n,!0),t.child}function dy(e){var t=e.stateNode;t.pendingContext?Km(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Km(e,t.context,!1),dh(e,t.containerInfo)}function dg(e,t,n,r,s){return Hs(),ih(s),t.flags|=256,Je(e,t,n,r),t.child}var Zd={dehydrated:null,treeContext:null,retryLane:0};function ef(e){return{baseLanes:e,cachePool:null,transitions:null}}function fy(e,t,n){var r=t.pendingProps,s=xe.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),pe(xe,s&1),e===null)return Qd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Su(o,r,0,null),e=Qr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ef(n),t.memoizedState=Zd,e):xh(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return sC(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=vr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=vr(a,i):(i=Qr(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?ef(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Zd,r}return i=e.child,e=i.sibling,r=vr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function xh(e,t){return t=Su({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ea(e,t,n,r){return r!==null&&ih(r),qs(t,e.child,null,n),e=xh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sC(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Dc(Error(U(422))),Ea(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Su({mode:"visible",children:r.children},s,0,null),i=Qr(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&qs(t,e.child,null,o),t.child.memoizedState=ef(o),t.memoizedState=Zd,i);if(!(t.mode&1))return Ea(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(U(419)),r=Dc(i,r,void 0),Ea(e,t,o,r)}if(a=(o&e.childLanes)!==0,pt||a){if(r=Le,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,zn(e,s),un(r,e,s,-1))}return kh(),r=Dc(Error(U(421))),Ea(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=vC.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Et=hr(s.nextSibling),Rt=t,ve=!0,rn=null,e!==null&&(Lt[Ft++]=In,Lt[Ft++]=Dn,Lt[Ft++]=Xr,In=e.id,Dn=e.overflow,Xr=t),t=xh(t,r.children),t.flags|=4096,t)}function fg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wd(e.return,t,n)}function Mc(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function hy(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Je(e,t,r.children,n),r=xe.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&&fg(e,n,t);else if(e.tag===19)fg(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(pe(xe,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Il(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Mc(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Il(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Mc(t,!0,n,null,i);break;case"together":Mc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=vr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function iC(e,t,n){switch(t.tag){case 3:dy(t),Hs();break;case 5:B0(t);break;case 1:gt(t.type)&&Ol(t);break;case 4:dh(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;pe(Al,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe(xe,xe.current&1),t.flags|=128,null):n&t.child.childLanes?fy(e,t,n):(pe(xe,xe.current&1),e=Vn(e,t,n),e!==null?e.sibling:null);pe(xe,xe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hy(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),pe(xe,xe.current),r)break;return null;case 22:case 23:return t.lanes=0,uy(e,t,n)}return Vn(e,t,n)}var py,tf,my,gy;py=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}};tf=function(){};my=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Vr(Sn.current);var i=null;switch(n){case"input":s=Cd(e,s),r=Cd(e,r),i=[];break;case"select":s=Se({},s,{value:void 0}),r=Se({},r,{value:void 0}),i=[];break;case"textarea":s=jd(e,s),r=jd(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jl)}Od(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(oo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(oo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&me("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};gy=function(e,t,n,r){n!==r&&(t.flags|=4)};function Si(e,t){if(!ve)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 We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function oC(e,t,n){var r=t.pendingProps;switch(sh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return gt(t.type)&&Rl(),We(t),null;case 3:return r=t.stateNode,Qs(),ge(mt),ge(Ge),hh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Sa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,rn!==null&&(cf(rn),rn=null))),tf(e,t),We(t),null;case 5:fh(t);var s=Vr(xo.current);if(n=t.type,e!==null&&t.stateNode!=null)my(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return We(t),null}if(e=Vr(Sn.current),Sa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[yn]=t,r[vo]=i,e=(t.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(s=0;s<Di.length;s++)me(Di[s],r);break;case"source":me("error",r);break;case"img":case"image":case"link":me("error",r),me("load",r);break;case"details":me("toggle",r);break;case"input":bm(r,i),me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},me("invalid",r);break;case"textarea":Cm(r,i),me("invalid",r)}Od(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&ba(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&ba(r.textContent,a,e),s=["children",""+a]):oo.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&me("scroll",r)}switch(n){case"input":ha(r),Sm(r,i,!0);break;case"textarea":ha(r),Em(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=jl)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Uv(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[yn]=t,e[vo]=r,py(e,t,!1,!1),t.stateNode=e;e:{switch(o=Nd(n,r),n){case"dialog":me("cancel",e),me("close",e),s=r;break;case"iframe":case"object":case"embed":me("load",e),s=r;break;case"video":case"audio":for(s=0;s<Di.length;s++)me(Di[s],e);s=r;break;case"source":me("error",e),s=r;break;case"img":case"image":case"link":me("error",e),me("load",e),s=r;break;case"details":me("toggle",e),s=r;break;case"input":bm(e,r),s=Cd(e,r),me("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Se({},r,{value:void 0}),me("invalid",e);break;case"textarea":Cm(e,r),s=jd(e,r),me("invalid",e);break;default:s=r}Od(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Qv(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Hv(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ao(e,l):typeof l=="number"&&ao(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(oo.hasOwnProperty(i)?l!=null&&i==="onScroll"&&me("scroll",e):l!=null&&Uf(e,i,l,o))}switch(n){case"input":ha(e),Sm(e,r,!1);break;case"textarea":ha(e),Em(e);break;case"option":r.value!=null&&e.setAttribute("value",""+wr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?As(e,!!r.multiple,i,!1):r.defaultValue!=null&&As(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=jl)}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 We(t),null;case 6:if(e&&t.stateNode!=null)gy(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(n=Vr(xo.current),Vr(Sn.current),Sa(t)){if(r=t.stateNode,n=t.memoizedProps,r[yn]=t,(i=r.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:ba(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ba(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[yn]=t,t.stateNode=r}return We(t),null;case 13:if(ge(xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&Et!==null&&t.mode&1&&!(t.flags&128))T0(),Hs(),t.flags|=98560,i=!1;else if(i=Sa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(U(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(U(317));i[yn]=t}else Hs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),i=!1}else rn!==null&&(cf(rn),rn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||xe.current&1?Ie===0&&(Ie=3):kh())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return Qs(),tf(e,t),e===null&&mo(t.stateNode.containerInfo),We(t),null;case 10:return lh(t.type._context),We(t),null;case 17:return gt(t.type)&&Rl(),We(t),null;case 19:if(ge(xe),i=t.memoizedState,i===null)return We(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Si(i,!1);else{if(Ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Il(e),o!==null){for(t.flags|=128,Si(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return pe(xe,xe.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ne()>Ks&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304)}else{if(!r)if(e=Il(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Si(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ve)return We(t),null}else 2*Ne()-i.renderingStartTime>Ks&&n!==1073741824&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ne(),t.sibling=null,n=xe.current,pe(xe,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return Eh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?St&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function aC(e,t){switch(sh(t),t.tag){case 1:return gt(t.type)&&Rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qs(),ge(mt),ge(Ge),hh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fh(t),null;case 13:if(ge(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Hs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(xe),null;case 4:return Qs(),null;case 10:return lh(t.type._context),null;case 22:case 23:return Eh(),null;case 24:return null;default:return null}}var ka=!1,Ke=!1,lC=typeof WeakSet=="function"?WeakSet:Set,K=null;function js(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ce(e,t,r)}else n.current=null}function nf(e,t,n){try{n()}catch(r){Ce(e,t,r)}}var hg=!1;function uC(e,t){if($d=Cl,e=w0(),nh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||s!==0&&f.nodeType!==3||(a=o+s),f!==i||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++d===r&&(l=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},Cl=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;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,w=m.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:en(t.type,y),w);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(S){Ce(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return m=hg,hg=!1,m}function qi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&nf(t,n,i)}s=s.next}while(s!==r)}}function wu(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 rf(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 vy(e){var t=e.alternate;t!==null&&(e.alternate=null,vy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[vo],delete t[Ud],delete t[q3],delete t[Q3])),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 yy(e){return e.tag===5||e.tag===3||e.tag===4}function pg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yy(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 sf(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=jl));else if(r!==4&&(e=e.child,e!==null))for(sf(e,t,n),e=e.sibling;e!==null;)sf(e,t,n),e=e.sibling}function of(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(of(e,t,n),e=e.sibling;e!==null;)of(e,t,n),e=e.sibling}var ze=null,nn=!1;function Xn(e,t,n){for(n=n.child;n!==null;)xy(e,t,n),n=n.sibling}function xy(e,t,n){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(fu,n)}catch{}switch(n.tag){case 5:Ke||js(n,t);case 6:var r=ze,s=nn;ze=null,Xn(e,t,n),ze=r,nn=s,ze!==null&&(nn?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(nn?(e=ze,n=n.stateNode,e.nodeType===8?Nc(e.parentNode,n):e.nodeType===1&&Nc(e,n),fo(e)):Nc(ze,n.stateNode));break;case 4:r=ze,s=nn,ze=n.stateNode.containerInfo,nn=!0,Xn(e,t,n),ze=r,nn=s;break;case 0:case 11:case 14:case 15:if(!Ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&nf(n,t,o),s=s.next}while(s!==r)}Xn(e,t,n);break;case 1:if(!Ke&&(js(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ce(n,t,a)}Xn(e,t,n);break;case 21:Xn(e,t,n);break;case 22:n.mode&1?(Ke=(r=Ke)||n.memoizedState!==null,Xn(e,t,n),Ke=r):Xn(e,t,n);break;default:Xn(e,t,n)}}function mg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lC),t.forEach(function(r){var s=yC.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:ze=a.stateNode,nn=!1;break e;case 3:ze=a.stateNode.containerInfo,nn=!0;break e;case 4:ze=a.stateNode.containerInfo,nn=!0;break e}a=a.return}if(ze===null)throw Error(U(160));xy(i,o,s),ze=null,nn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){Ce(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)wy(t,e),t=t.sibling}function wy(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Zt(t,e),hn(e),r&4){try{qi(3,e,e.return),wu(3,e)}catch(y){Ce(e,e.return,y)}try{qi(5,e,e.return)}catch(y){Ce(e,e.return,y)}}break;case 1:Zt(t,e),hn(e),r&512&&n!==null&&js(n,n.return);break;case 5:if(Zt(t,e),hn(e),r&512&&n!==null&&js(n,n.return),e.flags&32){var s=e.stateNode;try{ao(s,"")}catch(y){Ce(e,e.return,y)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&zv(s,i),Nd(a,o);var u=Nd(a,i);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?Qv(s,f):d==="dangerouslySetInnerHTML"?Hv(s,f):d==="children"?ao(s,f):Uf(s,d,f,u)}switch(a){case"input":Ed(s,i);break;case"textarea":Vv(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?As(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?As(s,!!i.multiple,i.defaultValue,!0):As(s,!!i.multiple,i.multiple?[]:"",!1))}s[vo]=i}catch(y){Ce(e,e.return,y)}}break;case 6:if(Zt(t,e),hn(e),r&4){if(e.stateNode===null)throw Error(U(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){Ce(e,e.return,y)}}break;case 3:if(Zt(t,e),hn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{fo(t.containerInfo)}catch(y){Ce(e,e.return,y)}break;case 4:Zt(t,e),hn(e);break;case 13:Zt(t,e),hn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Sh=Ne())),r&4&&mg(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ke=(u=Ke)||d,Zt(t,e),Ke=u):Zt(t,e),hn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(K=e,d=e.child;d!==null;){for(f=K=d;K!==null;){switch(h=K,p=h.child,h.tag){case 0:case 11:case 14:case 15:qi(4,h,h.return);break;case 1:js(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){Ce(r,n,y)}}break;case 5:js(h,h.return);break;case 22:if(h.memoizedState!==null){vg(f);continue}}p!==null?(p.return=h,K=p):vg(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=qv("display",o))}catch(y){Ce(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){Ce(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Zt(t,e),hn(e),r&4&&mg(e);break;case 21:break;default:Zt(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(yy(n)){var r=n;break e}n=n.return}throw Error(U(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(ao(s,""),r.flags&=-33);var i=pg(e);of(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=pg(e);sf(e,a,o);break;default:throw Error(U(161))}}catch(l){Ce(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cC(e,t,n){K=e,by(e)}function by(e,t,n){for(var r=(e.mode&1)!==0;K!==null;){var s=K,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||ka;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Ke;a=ka;var u=Ke;if(ka=o,(Ke=l)&&!u)for(K=s;K!==null;)o=K,l=o.child,o.tag===22&&o.memoizedState!==null?yg(s):l!==null?(l.return=o,K=l):yg(s);for(;i!==null;)K=i,by(i),i=i.sibling;K=s,ka=a,Ke=u}gg(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,K=i):gg(e)}}function gg(e){for(;K!==null;){var t=K;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ke||wu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ke)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:en(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Zm(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Zm(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&fo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}Ke||t.flags&512&&rf(t)}catch(h){Ce(t,t.return,h)}}if(t===e){K=null;break}if(n=t.sibling,n!==null){n.return=t.return,K=n;break}K=t.return}}function vg(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var n=t.sibling;if(n!==null){n.return=t.return,K=n;break}K=t.return}}function yg(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wu(4,t)}catch(l){Ce(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Ce(t,s,l)}}var i=t.return;try{rf(t)}catch(l){Ce(t,i,l)}break;case 5:var o=t.return;try{rf(t)}catch(l){Ce(t,o,l)}}}catch(l){Ce(t,t.return,l)}if(t===e){K=null;break}var a=t.sibling;if(a!==null){a.return=t.return,K=a;break}K=t.return}}var dC=Math.ceil,Ll=Qn.ReactCurrentDispatcher,wh=Qn.ReactCurrentOwner,Ht=Qn.ReactCurrentBatchConfig,oe=0,Le=null,Ae=null,Ve=0,St=0,Rs=Or(0),Ie=0,Co=null,Jr=0,bu=0,bh=0,Qi=null,ht=null,Sh=0,Ks=1/0,An=null,Fl=!1,af=null,mr=null,ja=!1,ir=null,$l=0,Wi=0,lf=null,Ka=-1,Ga=0;function rt(){return oe&6?Ne():Ka!==-1?Ka:Ka=Ne()}function gr(e){return e.mode&1?oe&2&&Ve!==0?Ve&-Ve:K3.transition!==null?(Ga===0&&(Ga=s0()),Ga):(e=ce,e!==0||(e=window.event,e=e===void 0?16:d0(e.type)),e):1}function un(e,t,n,r){if(50<Wi)throw Wi=0,lf=null,Error(U(185));Vo(e,n,r),(!(oe&2)||e!==Le)&&(e===Le&&(!(oe&2)&&(bu|=n),Ie===4&&nr(e,Ve)),vt(e,r),n===1&&oe===0&&!(t.mode&1)&&(Ks=Ne()+500,vu&&Nr()))}function vt(e,t){var n=e.callbackNode;K4(e,t);var r=Sl(e,e===Le?Ve:0);if(r===0)n!==null&&Rm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Rm(n),t===1)e.tag===0?W3(xg.bind(null,e)):P0(xg.bind(null,e)),U3(function(){!(oe&6)&&Nr()}),n=null;else{switch(i0(r)){case 1:n=Kf;break;case 4:n=n0;break;case 16:n=bl;break;case 536870912:n=r0;break;default:n=bl}n=Ny(n,Sy.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Sy(e,t){if(Ka=-1,Ga=0,oe&6)throw Error(U(327));var n=e.callbackNode;if(Ms()&&e.callbackNode!==n)return null;var r=Sl(e,e===Le?Ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Bl(e,r);else{t=r;var s=oe;oe|=2;var i=Ey();(Le!==e||Ve!==t)&&(An=null,Ks=Ne()+500,qr(e,t));do try{pC();break}catch(a){Cy(e,a)}while(1);ah(),Ll.current=i,oe=s,Ae!==null?t=0:(Le=null,Ve=0,t=Ie)}if(t!==0){if(t===2&&(s=Id(e),s!==0&&(r=s,t=uf(e,s))),t===1)throw n=Co,qr(e,0),nr(e,r),vt(e,Ne()),n;if(t===6)nr(e,r);else{if(s=e.current.alternate,!(r&30)&&!fC(s)&&(t=Bl(e,r),t===2&&(i=Id(e),i!==0&&(r=i,t=uf(e,i))),t===1))throw n=Co,qr(e,0),nr(e,r),vt(e,Ne()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(U(345));case 2:Lr(e,ht,An);break;case 3:if(nr(e,r),(r&130023424)===r&&(t=Sh+500-Ne(),10<t)){if(Sl(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){rt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Vd(Lr.bind(null,e,ht,An),t);break}Lr(e,ht,An);break;case 4:if(nr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-ln(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dC(r/1960))-r,10<r){e.timeoutHandle=Vd(Lr.bind(null,e,ht,An),r);break}Lr(e,ht,An);break;case 5:Lr(e,ht,An);break;default:throw Error(U(329))}}}return vt(e,Ne()),e.callbackNode===n?Sy.bind(null,e):null}function uf(e,t){var n=Qi;return e.current.memoizedState.isDehydrated&&(qr(e,t).flags|=256),e=Bl(e,t),e!==2&&(t=ht,ht=n,t!==null&&cf(t)),e}function cf(e){ht===null?ht=e:ht.push.apply(ht,e)}function fC(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!cn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nr(e,t){for(t&=~bh,t&=~bu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ln(t),r=1<<n;e[n]=-1,t&=~r}}function xg(e){if(oe&6)throw Error(U(327));Ms();var t=Sl(e,0);if(!(t&1))return vt(e,Ne()),null;var n=Bl(e,t);if(e.tag!==0&&n===2){var r=Id(e);r!==0&&(t=r,n=uf(e,r))}if(n===1)throw n=Co,qr(e,0),nr(e,t),vt(e,Ne()),n;if(n===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Lr(e,ht,An),vt(e,Ne()),null}function Ch(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(Ks=Ne()+500,vu&&Nr())}}function Zr(e){ir!==null&&ir.tag===0&&!(oe&6)&&Ms();var t=oe;oe|=1;var n=Ht.transition,r=ce;try{if(Ht.transition=null,ce=1,e)return e()}finally{ce=r,Ht.transition=n,oe=t,!(oe&6)&&Nr()}}function Eh(){St=Rs.current,ge(Rs)}function qr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,V3(n)),Ae!==null)for(n=Ae.return;n!==null;){var r=n;switch(sh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Rl();break;case 3:Qs(),ge(mt),ge(Ge),hh();break;case 5:fh(r);break;case 4:Qs();break;case 13:ge(xe);break;case 19:ge(xe);break;case 10:lh(r.type._context);break;case 22:case 23:Eh()}n=n.return}if(Le=e,Ae=e=vr(e.current,null),Ve=St=t,Ie=0,Co=null,bh=bu=Jr=0,ht=Qi=null,zr!==null){for(t=0;t<zr.length;t++)if(n=zr[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}zr=null}return e}function Cy(e,t){do{var n=Ae;try{if(ah(),qa.current=Ml,Dl){for(var r=be.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Dl=!1}if(Yr=0,Me=Te=be=null,Hi=!1,wo=0,wh.current=null,n===null||n.return===null){Ie=1,Co=t,Ae=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=Ve,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=og(o);if(p!==null){p.flags&=-257,ag(p,o,a,i,t),p.mode&1&&ig(i,u,t),t=p,l=u;var m=t.updateQueue;if(m===null){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}else{if(!(t&1)){ig(i,u,t),kh();break e}l=Error(U(426))}}else if(ve&&a.mode&1){var w=og(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),ag(w,o,a,i,t),ih(Ws(l,a));break e}}i=l=Ws(l,a),Ie!==4&&(Ie=2),Qi===null?Qi=[i]:Qi.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=oy(i,l,t);Jm(i,g);break e;case 1:a=l;var v=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(mr===null||!mr.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=ay(i,a,t);Jm(i,S);break e}}i=i.return}while(i!==null)}jy(n)}catch(C){t=C,Ae===n&&n!==null&&(Ae=n=n.return);continue}break}while(1)}function Ey(){var e=Ll.current;return Ll.current=Ml,e===null?Ml:e}function kh(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),Le===null||!(Jr&268435455)&&!(bu&268435455)||nr(Le,Ve)}function Bl(e,t){var n=oe;oe|=2;var r=Ey();(Le!==e||Ve!==t)&&(An=null,qr(e,t));do try{hC();break}catch(s){Cy(e,s)}while(1);if(ah(),oe=n,Ll.current=r,Ae!==null)throw Error(U(261));return Le=null,Ve=0,Ie}function hC(){for(;Ae!==null;)ky(Ae)}function pC(){for(;Ae!==null&&!$4();)ky(Ae)}function ky(e){var t=Oy(e.alternate,e,St);e.memoizedProps=e.pendingProps,t===null?jy(e):Ae=t,wh.current=null}function jy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=aC(n,t),n!==null){n.flags&=32767,Ae=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,Ae=null;return}}else if(n=oC(n,t,St),n!==null){Ae=n;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Ie===0&&(Ie=5)}function Lr(e,t,n){var r=ce,s=Ht.transition;try{Ht.transition=null,ce=1,mC(e,t,n,r)}finally{Ht.transition=s,ce=r}return null}function mC(e,t,n,r){do Ms();while(ir!==null);if(oe&6)throw Error(U(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(G4(e,i),e===Le&&(Ae=Le=null,Ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ja||(ja=!0,Ny(bl,function(){return Ms(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Ht.transition,Ht.transition=null;var o=ce;ce=1;var a=oe;oe|=4,wh.current=null,uC(e,n),wy(n,e),D3(Bd),Cl=!!$d,Bd=$d=null,e.current=n,cC(n),B4(),oe=a,ce=o,Ht.transition=i}else e.current=n;if(ja&&(ja=!1,ir=e,$l=s),i=e.pendingLanes,i===0&&(mr=null),U4(n.stateNode),vt(e,Ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Fl)throw Fl=!1,e=af,af=null,e;return $l&1&&e.tag!==0&&Ms(),i=e.pendingLanes,i&1?e===lf?Wi++:(Wi=0,lf=e):Wi=0,Nr(),null}function Ms(){if(ir!==null){var e=i0($l),t=Ht.transition,n=ce;try{if(Ht.transition=null,ce=16>e?16:e,ir===null)var r=!1;else{if(e=ir,ir=null,$l=0,oe&6)throw Error(U(331));var s=oe;for(oe|=4,K=e.current;K!==null;){var i=K,o=i.child;if(K.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(K=u;K!==null;){var d=K;switch(d.tag){case 0:case 11:case 15:qi(8,d,i)}var f=d.child;if(f!==null)f.return=d,K=f;else for(;K!==null;){d=K;var h=d.sibling,p=d.return;if(vy(d),d===u){K=null;break}if(h!==null){h.return=p,K=h;break}K=p}}}var m=i.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var w=y.sibling;y.sibling=null,y=w}while(y!==null)}}K=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,K=o;else e:for(;K!==null;){if(i=K,i.flags&2048)switch(i.tag){case 0:case 11:case 15:qi(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,K=g;break e}K=i.return}}var v=e.current;for(K=v;K!==null;){o=K;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,K=x;else e:for(o=v;K!==null;){if(a=K,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:wu(9,a)}}catch(C){Ce(a,a.return,C)}if(a===o){K=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,K=S;break e}K=a.return}}if(oe=s,Nr(),bn&&typeof bn.onPostCommitFiberRoot=="function")try{bn.onPostCommitFiberRoot(fu,e)}catch{}r=!0}return r}finally{ce=n,Ht.transition=t}}return!1}function wg(e,t,n){t=Ws(n,t),t=oy(e,t,1),e=pr(e,t,1),t=rt(),e!==null&&(Vo(e,1,t),vt(e,t))}function Ce(e,t,n){if(e.tag===3)wg(e,e,n);else for(;t!==null;){if(t.tag===3){wg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(mr===null||!mr.has(r))){e=Ws(n,e),e=ay(t,e,1),t=pr(t,e,1),e=rt(),t!==null&&(Vo(t,1,e),vt(t,e));break}}t=t.return}}function gC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Ve&n)===n&&(Ie===4||Ie===3&&(Ve&130023424)===Ve&&500>Ne()-Sh?qr(e,0):bh|=n),vt(e,t)}function Ry(e,t){t===0&&(e.mode&1?(t=ga,ga<<=1,!(ga&130023424)&&(ga=4194304)):t=1);var n=rt();e=zn(e,t),e!==null&&(Vo(e,t,n),vt(e,n))}function vC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ry(e,n)}function yC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Ry(e,n)}var Oy;Oy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pt=!1,iC(e,t,n);pt=!!(e.flags&131072)}else pt=!1,ve&&t.flags&1048576&&A0(t,Pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wa(e,t),e=t.pendingProps;var s=Us(t,Ge.current);Ds(t,n),s=mh(null,t,r,e,s,n);var i=gh();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(i=!0,Ol(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,ch(t),s.updater=yu,t.stateNode=s,s._reactInternals=t,Gd(t,r,e,n),t=Jd(null,t,r,!0,i,n)):(t.tag=0,ve&&i&&rh(t),Je(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wa(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=wC(r),e=en(r,e),s){case 0:t=Yd(null,t,r,e,n);break e;case 1:t=cg(null,t,r,e,n);break e;case 11:t=lg(null,t,r,e,n);break e;case 14:t=ug(null,t,r,en(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),Yd(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),cg(e,t,r,s,n);case 3:e:{if(dy(t),e===null)throw Error(U(387));r=t.pendingProps,i=t.memoizedState,s=i.element,D0(e,t),Tl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Ws(Error(U(423)),t),t=dg(e,t,r,n,s);break e}else if(r!==s){s=Ws(Error(U(424)),t),t=dg(e,t,r,n,s);break e}else for(Et=hr(t.stateNode.containerInfo.firstChild),Rt=t,ve=!0,rn=null,n=$0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hs(),r===s){t=Vn(e,t,n);break e}Je(e,t,r,n)}t=t.child}return t;case 5:return B0(t),e===null&&Qd(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,zd(r,s)?o=null:i!==null&&zd(r,i)&&(t.flags|=32),cy(e,t),Je(e,t,o,n),t.child;case 6:return e===null&&Qd(t),null;case 13:return fy(e,t,n);case 4:return dh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qs(t,null,r,n):Je(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),lg(e,t,r,s,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,pe(Al,r._currentValue),r._currentValue=o,i!==null)if(cn(i.value,o)){if(i.children===s.children&&!mt.current){t=Vn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Fn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Wd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(U(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Wd(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Je(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ds(t,n),s=Wt(s),r=r(s),t.flags|=1,Je(e,t,r,n),t.child;case 14:return r=t.type,s=en(r,t.pendingProps),s=en(r.type,s),ug(e,t,r,s,n);case 15:return ly(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),Wa(e,t),t.tag=1,gt(r)?(e=!0,Ol(t)):e=!1,Ds(t,n),L0(t,r,s),Gd(t,r,s,n),Jd(null,t,r,!0,e,n);case 19:return hy(e,t,n);case 22:return uy(e,t,n)}throw Error(U(156,t.tag))};function Ny(e,t){return t0(e,t)}function xC(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 Ut(e,t,n,r){return new xC(e,t,n,r)}function jh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wC(e){if(typeof e=="function")return jh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qf)return 11;if(e===Qf)return 14}return 2}function vr(e,t){var n=e.alternate;return n===null?(n=Ut(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 Xa(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")jh(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case vs:return Qr(n.children,s,i,t);case Hf:o=8,s|=8;break;case xd:return e=Ut(12,n,t,s|2),e.elementType=xd,e.lanes=i,e;case wd:return e=Ut(13,n,t,s),e.elementType=wd,e.lanes=i,e;case bd:return e=Ut(19,n,t,s),e.elementType=bd,e.lanes=i,e;case Fv:return Su(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mv:o=10;break e;case Lv:o=9;break e;case qf:o=11;break e;case Qf:o=14;break e;case Zn:o=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Ut(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Qr(e,t,n,r){return e=Ut(7,e,r,t),e.lanes=n,e}function Su(e,t,n,r){return e=Ut(22,e,r,t),e.elementType=Fv,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function Fc(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bC(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yc(0),this.expirationTimes=yc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yc(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Rh(e,t,n,r,s,i,o,a,l){return e=new bC(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ut(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ch(i),e}function SC(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Py(e){if(!e)return br;e=e._reactInternals;e:{if(is(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var n=e.type;if(gt(n))return N0(e,n,t)}return t}function Ay(e,t,n,r,s,i,o,a,l){return e=Rh(n,r,!0,e,s,i,o,a,l),e.context=Py(null),n=e.current,r=rt(),s=gr(n),i=Fn(r,s),i.callback=t??null,pr(n,i,s),e.current.lanes=s,Vo(e,s,r),vt(e,r),e}function Cu(e,t,n,r){var s=t.current,i=rt(),o=gr(s);return n=Py(n),t.context===null?t.context=n:t.pendingContext=n,t=Fn(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=pr(s,t,o),e!==null&&(un(e,s,o,i),Ha(e,s,o)),o}function zl(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 bg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Oh(e,t){bg(e,t),(e=e.alternate)&&bg(e,t)}function CC(){return null}var _y=typeof reportError=="function"?reportError:function(e){console.error(e)};function Nh(e){this._internalRoot=e}Eu.prototype.render=Nh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));Cu(e,t,null,null)};Eu.prototype.unmount=Nh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zr(function(){Cu(null,e,null,null)}),t[Bn]=null}};function Eu(e){this._internalRoot=e}Eu.prototype.unstable_scheduleHydration=function(e){if(e){var t=l0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tr.length&&t!==0&&t<tr[n].priority;n++);tr.splice(n,0,e),n===0&&c0(e)}};function Ph(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ku(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sg(){}function EC(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=zl(o);i.call(u)}}var o=Ay(t,r,e,0,null,!1,!1,"",Sg);return e._reactRootContainer=o,e[Bn]=o.current,mo(e.nodeType===8?e.parentNode:e),Zr(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=zl(l);a.call(u)}}var l=Rh(e,0,!1,null,null,!1,!1,"",Sg);return e._reactRootContainer=l,e[Bn]=l.current,mo(e.nodeType===8?e.parentNode:e),Zr(function(){Cu(t,l,n,r)}),l}function ju(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=zl(o);a.call(l)}}Cu(t,o,e,s)}else o=EC(n,t,e,s,r);return zl(o)}o0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ii(t.pendingLanes);n!==0&&(Gf(t,n|1),vt(t,Ne()),!(oe&6)&&(Ks=Ne()+500,Nr()))}break;case 13:Zr(function(){var r=zn(e,1);if(r!==null){var s=rt();un(r,e,1,s)}}),Oh(e,1)}};Xf=function(e){if(e.tag===13){var t=zn(e,134217728);if(t!==null){var n=rt();un(t,e,134217728,n)}Oh(e,134217728)}};a0=function(e){if(e.tag===13){var t=gr(e),n=zn(e,t);if(n!==null){var r=rt();un(n,e,t,r)}Oh(e,t)}};l0=function(){return ce};u0=function(e,t){var n=ce;try{return ce=e,t()}finally{ce=n}};Ad=function(e,t,n){switch(t){case"input":if(Ed(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=gu(r);if(!s)throw Error(U(90));Bv(r),Ed(r,s)}}}break;case"textarea":Vv(e,n);break;case"select":t=n.value,t!=null&&As(e,!!n.multiple,t,!1)}};Gv=Ch;Xv=Zr;var kC={usingClientEntryPoint:!1,Events:[Ho,bs,gu,Wv,Kv,Ch]},Ci={findFiberByHostInstance:Br,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},jC={bundleType:Ci.bundleType,version:Ci.version,rendererPackageName:Ci.rendererPackageName,rendererConfig:Ci.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Qn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zv(e),e===null?null:e.stateNode},findFiberByHostInstance:Ci.findFiberByHostInstance||CC,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 Ra=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ra.isDisabled&&Ra.supportsFiber)try{fu=Ra.inject(jC),bn=Ra}catch{}}At.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kC;At.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ph(t))throw Error(U(200));return SC(e,t,null,n)};At.createRoot=function(e,t){if(!Ph(e))throw Error(U(299));var n=!1,r="",s=_y;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Rh(e,1,!1,null,null,n,!1,r,s),e[Bn]=t.current,mo(e.nodeType===8?e.parentNode:e),new Nh(t)};At.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(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=Zv(t),e=e===null?null:e.stateNode,e};At.flushSync=function(e){return Zr(e)};At.hydrate=function(e,t,n){if(!ku(t))throw Error(U(200));return ju(null,e,t,!0,n)};At.hydrateRoot=function(e,t,n){if(!Ph(e))throw Error(U(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=_y;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Ay(t,null,e,1,n??null,s,!1,i,o),e[Bn]=t.current,mo(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Eu(t)};At.render=function(e,t,n){if(!ku(t))throw Error(U(200));return ju(null,e,t,!1,n)};At.unmountComponentAtNode=function(e){if(!ku(e))throw Error(U(40));return e._reactRootContainer?(Zr(function(){ju(null,null,e,!1,function(){e._reactRootContainer=null,e[Bn]=null})}),!0):!1};At.unstable_batchedUpdates=Ch;At.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ku(n))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return ju(e,t,n,!1,r)};At.version="18.2.0-next-9e3b772b8-20220608";function Ty(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ty)}catch(e){console.error(e)}}Ty(),Av.exports=At;var Wn=Av.exports,Iy={exports:{}},Dy={};/**
|
|
42
|
-
* @license React
|
|
43
|
-
* use-sync-external-store-shim.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 Gs=b;function RC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OC=typeof Object.is=="function"?Object.is:RC,NC=Gs.useState,PC=Gs.useEffect,AC=Gs.useLayoutEffect,_C=Gs.useDebugValue;function TC(e,t){var n=t(),r=NC({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return AC(function(){s.value=n,s.getSnapshot=t,$c(s)&&i({inst:s})},[e,n,t]),PC(function(){return $c(s)&&i({inst:s}),e(function(){$c(s)&&i({inst:s})})},[e]),_C(n),n}function $c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!OC(e,n)}catch{return!0}}function IC(e,t){return t()}var DC=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?IC:TC;Dy.useSyncExternalStore=Gs.useSyncExternalStore!==void 0?Gs.useSyncExternalStore:DC;Iy.exports=Dy;var My=Iy.exports;const Ly=My.useSyncExternalStore,Cg=b.createContext(void 0),Fy=b.createContext(!1);function $y(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Cg),window.ReactQueryClientContext):Cg)}const Tt=({context:e}={})=>{const t=b.useContext($y(e,b.useContext(Fy)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MC=({client:e,children:t,context:n,contextSharing:r=!1})=>{b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const s=$y(n,r);return b.createElement(Fy.Provider,{value:!n&&r},b.createElement(s.Provider,{value:e},t))},By=b.createContext(!1),LC=()=>b.useContext(By);By.Provider;function FC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const $C=b.createContext(FC()),BC=()=>b.useContext($C);function zy(e,t){return typeof e=="function"?e(...t):!!e}const zC=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},VC=e=>{b.useEffect(()=>{e.clearReset()},[e])},UC=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&zy(n,[e.error,r]),HC=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},qC=(e,t)=>e.isLoading&&e.isFetching&&!t,QC=(e,t,n)=>(e==null?void 0:e.suspense)&&qC(t,n),WC=(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 Vy(e,t){const n=Tt({context:e.context}),r=LC(),s=BC(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ke.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ke.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ke.batchCalls(i.onSettled)),HC(i),zC(i,s),VC(s);const[o]=b.useState(()=>new t(n,i)),a=o.getOptimisticResult(i);if(Ly(b.useCallback(l=>{const u=r?()=>{}:o.subscribe(ke.batchCalls(l));return o.updateResult(),u},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),b.useEffect(()=>{o.setOptions(i,{listeners:!1})},[i,o]),QC(i,a,r))throw WC(i,o,s);if(UC({result:a,errorResetBoundary:s,useErrorBoundary:i.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return i.notifyOnChangeProps?a:o.trackResult(a)}function Ah(e,t,n){const r=ms(e,t,n);return Vy(r,Pv)}function Kn(e,t,n){const r=a4(e,t,n),s=Tt({context:r.context}),[i]=b.useState(()=>new C4(s,r));b.useEffect(()=>{i.setOptions(r)},[i,r]);const o=Ly(b.useCallback(l=>i.subscribe(ke.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=b.useCallback((l,u)=>{i.mutate(l,u).catch(KC)},[i]);if(o.error&&zy(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function KC(){}function GC(e,t,n){const r=ms(e,t,n);return Vy(r,S4)}var Qo=e=>e.type==="checkbox",Os=e=>e instanceof Date,Ze=e=>e==null;const Uy=e=>typeof e=="object";var De=e=>!Ze(e)&&!Array.isArray(e)&&Uy(e)&&!Os(e),Hy=e=>De(e)&&e.target?Qo(e.target)?e.target.checked:e.target.value:e,XC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,qy=(e,t)=>e.has(XC(t)),YC=e=>{const t=e.constructor&&e.constructor.prototype;return De(t)&&t.hasOwnProperty("isPrototypeOf")},_h=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function tn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(_h&&(e instanceof Blob||e instanceof FileList))&&(n||De(e)))if(t=n?[]:{},!n&&!YC(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=tn(e[r]));else return e;return t}var Wo=e=>Array.isArray(e)?e.filter(Boolean):[],Ee=e=>e===void 0,Q=(e,t,n)=>{if(!t||!De(e))return n;const r=Wo(t.split(/[,[\].]+?/)).reduce((s,i)=>Ze(s)?s:s[i],e);return Ee(r)||r===e?Ee(e[t])?n:e[t]:r},$t=e=>typeof e=="boolean";const Vl={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},on={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Nn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},JC=fe.createContext(null),Th=()=>fe.useContext(JC);var Qy=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==on.all&&(t._proxyFormState[o]=!r||on.all),n&&(n[o]=!0),e[o]}});return s},Mt=e=>De(e)&&!Object.keys(e).length,Wy=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return Mt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||on.all))},Ya=e=>Array.isArray(e)?e:[e],Ky=(e,t,n)=>!e||!t||e===t||Ya(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Ih(e){const t=fe.useRef(e);t.current=e,fe.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function ZC(e){const t=Th(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[o,a]=fe.useState(n._formState),l=fe.useRef(!0),u=fe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=fe.useRef(s);return d.current=s,Ih({disabled:r,next:f=>l.current&&Ky(d.current,f.name,i)&&Wy(f,u.current,n._updateFormState)&&a({...n._formState,...f}),subject:n._subjects.state}),fe.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Qy(o,n,u.current,!1)}var wn=e=>typeof e=="string",Gy=(e,t,n,r,s)=>wn(e)?(r&&t.watch.add(e),Q(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Q(n,i))):(r&&(t.watchAll=!0),n);function eE(e){const t=Th(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e||{},a=fe.useRef(r);a.current=r,Ih({disabled:i,subject:n._subjects.values,next:d=>{Ky(a.current,d.name,o)&&u(tn(Gy(a.current,n._names,d.values||n._formValues,!1,s)))}});const[l,u]=fe.useState(n._getWatch(r,s));return fe.useEffect(()=>n._removeUnmounted()),l}var Dh=e=>/^\w*$/.test(e),Xy=e=>Wo(e.replace(/["|']|\]/g,"").split(/\.|\[/)),he=(e,t,n)=>{let r=-1;const s=Dh(t)?[t]:Xy(t),i=s.length,o=i-1;for(;++r<i;){const a=s[r];let l=n;if(r!==o){const u=e[a];l=De(u)||Array.isArray(u)?u:isNaN(+s[r+1])?{}:[]}e[a]=l,e=e[a]}return e};function tE(e){const t=Th(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=qy(s._names.array,n),a=eE({control:s,name:n,defaultValue:Q(s._formValues,n,Q(s._defaultValues,n,e.defaultValue)),exact:!0}),l=ZC({control:s,name:n}),u=fe.useRef(s.register(n,{...e.rules,value:a,...$t(e.disabled)?{disabled:e.disabled}:{}}));return fe.useEffect(()=>{const d=s._options.shouldUnregister||i,f=(h,p)=>{const m=Q(s._fields,h);m&&(m._f.mount=p)};if(f(n,!0),d){const h=tn(Q(s._options.defaultValues,n));he(s._defaultValues,n,h),Ee(Q(s._formValues,n))&&he(s._formValues,n,h)}return()=>{(o?d&&!s._state.action:d)?s.unregister(n):f(n,!1)}},[n,s,o,i]),fe.useEffect(()=>{Q(s._fields,n)&&s._updateDisabledField({disabled:r,fields:s._fields,name:n,value:Q(s._fields,n)._f.value})},[r,n,s]),{field:{name:n,value:a,...$t(r)||$t(l.disabled)?{disabled:l.disabled||r}:{},onChange:fe.useCallback(d=>u.current.onChange({target:{value:Hy(d),name:n},type:Vl.CHANGE}),[n]),onBlur:fe.useCallback(()=>u.current.onBlur({target:{value:Q(s._formValues,n),name:n},type:Vl.BLUR}),[n,s]),ref:d=>{const f=Q(s._fields,n);f&&d&&(f._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:h=>d.setCustomValidity(h),reportValidity:()=>d.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Q(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Q(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Q(l.touchedFields,n)},error:{enumerable:!0,get:()=>Q(l.errors,n)}})}}const Ru=e=>e.render(tE(e));var nE=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},Eg=e=>({isOnSubmit:!e||e===on.onSubmit,isOnBlur:e===on.onBlur,isOnChange:e===on.onChange,isOnAll:e===on.all,isOnTouch:e===on.onTouched}),kg=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ki=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=Q(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)break;if(o.ref&&t(o.ref,o.name)&&!r)break;Ki(a,t)}else De(a)&&Ki(a,t)}}};var rE=(e,t,n)=>{const r=Wo(Q(e,n));return he(r,"root",t[n]),he(e,n,r),e},Mh=e=>e.type==="file",or=e=>typeof e=="function",Ul=e=>{if(!_h)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ja=e=>wn(e),Lh=e=>e.type==="radio",Hl=e=>e instanceof RegExp;const jg={value:!1,isValid:!1},Rg={value:!0,isValid:!0};var Yy=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ee(e[0].attributes.value)?Ee(e[0].value)||e[0].value===""?Rg:{value:e[0].value,isValid:!0}:Rg:jg}return jg};const Og={isValid:!1,value:null};var Jy=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Og):Og;function Ng(e,t,n="validate"){if(Ja(e)||Array.isArray(e)&&e.every(Ja)||$t(e)&&!e)return{type:n,message:Ja(e)?e:"",ref:t}}var hs=e=>De(e)&&!Hl(e)?e:{value:e,message:""},Pg=async(e,t,n,r,s)=>{const{ref:i,refs:o,required:a,maxLength:l,minLength:u,min:d,max:f,pattern:h,validate:p,name:m,valueAsNumber:y,mount:w,disabled:g}=e._f,v=Q(t,m);if(!w||g)return{};const x=o?o[0]:i,S=T=>{r&&x.reportValidity&&(x.setCustomValidity($t(T)?"":T||""),x.reportValidity())},C={},j=Lh(i),k=Qo(i),O=j||k,A=(y||Mh(i))&&Ee(i.value)&&Ee(v)||Ul(i)&&i.value===""||v===""||Array.isArray(v)&&!v.length,_=nE.bind(null,m,n,C),F=(T,$,D,E=Nn.maxLength,N=Nn.minLength)=>{const L=T?$:D;C[m]={type:T?E:N,message:L,ref:i,..._(T?E:N,L)}};if(s?!Array.isArray(v)||!v.length:a&&(!O&&(A||Ze(v))||$t(v)&&!v||k&&!Yy(o).isValid||j&&!Jy(o).isValid)){const{value:T,message:$}=Ja(a)?{value:!!a,message:a}:hs(a);if(T&&(C[m]={type:Nn.required,message:$,ref:x,..._(Nn.required,$)},!n))return S($),C}if(!A&&(!Ze(d)||!Ze(f))){let T,$;const D=hs(f),E=hs(d);if(!Ze(v)&&!isNaN(v)){const N=i.valueAsNumber||v&&+v;Ze(D.value)||(T=N>D.value),Ze(E.value)||($=N<E.value)}else{const N=i.valueAsDate||new Date(v),L=z=>new Date(new Date().toDateString()+" "+z),P=i.type=="time",B=i.type=="week";wn(D.value)&&v&&(T=P?L(v)>L(D.value):B?v>D.value:N>new Date(D.value)),wn(E.value)&&v&&($=P?L(v)<L(E.value):B?v<E.value:N<new Date(E.value))}if((T||$)&&(F(!!T,D.message,E.message,Nn.max,Nn.min),!n))return S(C[m].message),C}if((l||u)&&!A&&(wn(v)||s&&Array.isArray(v))){const T=hs(l),$=hs(u),D=!Ze(T.value)&&v.length>+T.value,E=!Ze($.value)&&v.length<+$.value;if((D||E)&&(F(D,T.message,$.message),!n))return S(C[m].message),C}if(h&&!A&&wn(v)){const{value:T,message:$}=hs(h);if(Hl(T)&&!v.match(T)&&(C[m]={type:Nn.pattern,message:$,ref:i,..._(Nn.pattern,$)},!n))return S($),C}if(p){if(or(p)){const T=await p(v,t),$=Ng(T,x);if($&&(C[m]={...$,..._(Nn.validate,$.message)},!n))return S($.message),C}else if(De(p)){let T={};for(const $ in p){if(!Mt(T)&&!n)break;const D=Ng(await p[$](v,t),x,$);D&&(T={...D,..._($,D.message)},S(D.message),n&&(C[m]=T))}if(!Mt(T)&&(C[m]={ref:x,...T},!n))return C}}return S(!0),C};function sE(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Ee(e)?r++:e[t[r++]];return e}function iE(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ee(e[t]))return!1;return!0}function Be(e,t){const n=Array.isArray(t)?t:Dh(t)?[t]:Xy(t),r=n.length===1?e:sE(e,n),s=n.length-1,i=n[s];return r&&delete r[i],s!==0&&(De(r)&&Mt(r)||Array.isArray(r)&&iE(r))&&Be(e,n.slice(0,-1)),e}var Bc=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},ql=e=>Ze(e)||!Uy(e);function Ur(e,t){if(ql(e)||ql(t))return e===t;if(Os(e)&&Os(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(Os(i)&&Os(o)||De(i)&&De(o)||Array.isArray(i)&&Array.isArray(o)?!Ur(i,o):i!==o)return!1}}return!0}var Zy=e=>e.type==="select-multiple",oE=e=>Lh(e)||Qo(e),zc=e=>Ul(e)&&e.isConnected,ex=e=>{for(const t in e)if(or(e[t]))return!0;return!1};function Ql(e,t={}){const n=Array.isArray(e);if(De(e)||n)for(const r in e)Array.isArray(e[r])||De(e[r])&&!ex(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ql(e[r],t[r])):Ze(e[r])||(t[r]=!0);return t}function tx(e,t,n){const r=Array.isArray(e);if(De(e)||r)for(const s in e)Array.isArray(e[s])||De(e[s])&&!ex(e[s])?Ee(t)||ql(n[s])?n[s]=Array.isArray(e[s])?Ql(e[s],[]):{...Ql(e[s])}:tx(e[s],Ze(t)?{}:t[s],n[s]):n[s]=!Ur(e[s],t[s]);return n}var Vc=(e,t)=>tx(e,t,Ql(t)),nx=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ee(e)?e:t?e===""?NaN:e&&+e:n&&wn(e)?new Date(e):r?r(e):e;function Uc(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Mh(t)?t.files:Lh(t)?Jy(e.refs).value:Zy(t)?[...t.selectedOptions].map(({value:n})=>n):Qo(t)?Yy(e.refs).value:nx(Ee(t.value)?e.ref.value:t.value,e)}var aE=(e,t,n,r)=>{const s={};for(const i of e){const o=Q(t,i);o&&he(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Ei=e=>Ee(e)?e:Hl(e)?e.source:De(e)?Hl(e.value)?e.value.source:e.value:e,lE=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Ag(e,t,n){const r=Q(e,n);if(r||Dh(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=Q(t,i),a=Q(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var uE=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,cE=(e,t)=>!Wo(Q(e,t)).length&&Be(e,t);const dE={mode:on.onSubmit,reValidateMode:on.onChange,shouldFocusError:!0};function fE(e={},t){let n={...dE,...e},r={submitCount:0,isDirty:!1,isLoading:or(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:!1},s={},i=De(n.defaultValues)||De(n.values)?tn(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:tn(i),a={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,d=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:Bc(),array:Bc(),state:Bc()},p=e.resetOptions&&e.resetOptions.keepDirtyValues,m=Eg(n.mode),y=Eg(n.reValidateMode),w=n.criteriaMode===on.all,g=R=>I=>{clearTimeout(d),d=setTimeout(R,I)},v=async R=>{if(f.isValid||R){const I=n.resolver?Mt((await _()).errors):await T(s,!0);I!==r.isValid&&h.state.next({isValid:I})}},x=R=>f.isValidating&&h.state.next({isValidating:R}),S=(R,I=[],M,W,q=!0,H=!0)=>{if(W&&M){if(a.action=!0,H&&Array.isArray(Q(s,R))){const X=M(Q(s,R),W.argA,W.argB);q&&he(s,R,X)}if(H&&Array.isArray(Q(r.errors,R))){const X=M(Q(r.errors,R),W.argA,W.argB);q&&he(r.errors,R,X),cE(r.errors,R)}if(f.touchedFields&&H&&Array.isArray(Q(r.touchedFields,R))){const X=M(Q(r.touchedFields,R),W.argA,W.argB);q&&he(r.touchedFields,R,X)}f.dirtyFields&&(r.dirtyFields=Vc(i,o)),h.state.next({name:R,isDirty:D(R,I),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else he(o,R,I)},C=(R,I)=>{he(r.errors,R,I),h.state.next({errors:r.errors})},j=R=>{r.errors=R,h.state.next({errors:r.errors,isValid:!1})},k=(R,I,M,W)=>{const q=Q(s,R);if(q){const H=Q(o,R,Ee(M)?Q(i,R):M);Ee(H)||W&&W.defaultChecked||I?he(o,R,I?H:Uc(q._f)):L(R,H),a.mount&&v()}},O=(R,I,M,W,q)=>{let H=!1,X=!1;const ue={name:R},Oe=!!(Q(s,R)&&Q(s,R)._f.disabled);if(!M||W){f.isDirty&&(X=r.isDirty,r.isDirty=ue.isDirty=D(),H=X!==ue.isDirty);const fn=Oe||Ur(Q(i,R),I);X=!!(!Oe&&Q(r.dirtyFields,R)),fn||Oe?Be(r.dirtyFields,R):he(r.dirtyFields,R,!0),ue.dirtyFields=r.dirtyFields,H=H||f.dirtyFields&&X!==!fn}if(M){const fn=Q(r.touchedFields,R);fn||(he(r.touchedFields,R,M),ue.touchedFields=r.touchedFields,H=H||f.touchedFields&&fn!==M)}return H&&q&&h.state.next(ue),H?ue:{}},A=(R,I,M,W)=>{const q=Q(r.errors,R),H=f.isValid&&$t(I)&&r.isValid!==I;if(e.delayError&&M?(u=g(()=>C(R,M)),u(e.delayError)):(clearTimeout(d),u=null,M?he(r.errors,R,M):Be(r.errors,R)),(M?!Ur(q,M):q)||!Mt(W)||H){const X={...W,...H&&$t(I)?{isValid:I}:{},errors:r.errors,name:R};r={...r,...X},h.state.next(X)}x(!1)},_=async R=>n.resolver(o,n.context,aE(R||l.mount,s,n.criteriaMode,n.shouldUseNativeValidation)),F=async R=>{const{errors:I}=await _(R);if(R)for(const M of R){const W=Q(I,M);W?he(r.errors,M,W):Be(r.errors,M)}else r.errors=I;return I},T=async(R,I,M={valid:!0})=>{for(const W in R){const q=R[W];if(q){const{_f:H,...X}=q;if(H){const ue=l.array.has(H.name),Oe=await Pg(q,o,w,n.shouldUseNativeValidation&&!I,ue);if(Oe[H.name]&&(M.valid=!1,I))break;!I&&(Q(Oe,H.name)?ue?rE(r.errors,Oe,H.name):he(r.errors,H.name,Oe[H.name]):Be(r.errors,H.name))}X&&await T(X,I,M)}}return M.valid},$=()=>{for(const R of l.unMount){const I=Q(s,R);I&&(I._f.refs?I._f.refs.every(M=>!zc(M)):!zc(I._f.ref))&&Re(R)}l.unMount=new Set},D=(R,I)=>(R&&I&&he(o,R,I),!Ur(le(),i)),E=(R,I,M)=>Gy(R,l,{...a.mount?o:Ee(I)?i:wn(R)?{[R]:I}:I},M,I),N=R=>Wo(Q(a.mount?o:i,R,e.shouldUnregister?Q(i,R,[]):[])),L=(R,I,M={})=>{const W=Q(s,R);let q=I;if(W){const H=W._f;H&&(!H.disabled&&he(o,R,nx(I,H)),q=Ul(H.ref)&&Ze(I)?"":I,Zy(H.ref)?[...H.ref.options].forEach(X=>X.selected=q.includes(X.value)):H.refs?Qo(H.ref)?H.refs.length>1?H.refs.forEach(X=>(!X.defaultChecked||!X.disabled)&&(X.checked=Array.isArray(q)?!!q.find(ue=>ue===X.value):q===X.value)):H.refs[0]&&(H.refs[0].checked=!!q):H.refs.forEach(X=>X.checked=X.value===q):Mh(H.ref)?H.ref.value="":(H.ref.value=q,H.ref.type||h.values.next({name:R,values:{...o}})))}(M.shouldDirty||M.shouldTouch)&&O(R,q,M.shouldTouch,M.shouldDirty,!0),M.shouldValidate&&J(R)},P=(R,I,M)=>{for(const W in I){const q=I[W],H=`${R}.${W}`,X=Q(s,H);(l.array.has(R)||!ql(q)||X&&!X._f)&&!Os(q)?P(H,q,M):L(H,q,M)}},B=(R,I,M={})=>{const W=Q(s,R),q=l.array.has(R),H=tn(I);he(o,R,H),q?(h.array.next({name:R,values:{...o}}),(f.isDirty||f.dirtyFields)&&M.shouldDirty&&h.state.next({name:R,dirtyFields:Vc(i,o),isDirty:D(R,H)})):W&&!W._f&&!Ze(H)?P(R,H,M):L(R,H,M),kg(R,l)&&h.state.next({...r}),h.values.next({name:R,values:{...o}}),!a.mount&&t()},z=async R=>{const I=R.target;let M=I.name,W=!0;const q=Q(s,M),H=()=>I.type?Uc(q._f):Hy(R),X=ue=>{W=Number.isNaN(ue)||ue===Q(o,M,ue)};if(q){let ue,Oe;const fn=H(),ls=R.type===Vl.BLUR||R.type===Vl.FOCUS_OUT,Lb=!lE(q._f)&&!n.resolver&&!Q(r.errors,M)&&!q._f.deps||uE(ls,Q(r.touchedFields,M),r.isSubmitted,y,m),cc=kg(M,l,ls);he(o,M,fn),ls?(q._f.onBlur&&q._f.onBlur(R),u&&u(0)):q._f.onChange&&q._f.onChange(R);const dc=O(M,fn,ls,!1),Fb=!Mt(dc)||cc;if(!ls&&h.values.next({name:M,type:R.type,values:{...o}}),Lb)return f.isValid&&v(),Fb&&h.state.next({name:M,...cc?{}:dc});if(!ls&&cc&&h.state.next({...r}),x(!0),n.resolver){const{errors:zp}=await _([M]);if(X(fn),W){const $b=Ag(r.errors,s,M),Vp=Ag(zp,s,$b.name||M);ue=Vp.error,M=Vp.name,Oe=Mt(zp)}}else ue=(await Pg(q,o,w,n.shouldUseNativeValidation))[M],X(fn),W&&(ue?Oe=!1:f.isValid&&(Oe=await T(s,!0)));W&&(q._f.deps&&J(q._f.deps),A(M,Oe,ue,dc))}},ee=(R,I)=>{if(Q(r.errors,I)&&R.focus)return R.focus(),1},J=async(R,I={})=>{let M,W;const q=Ya(R);if(x(!0),n.resolver){const H=await F(Ee(R)?R:q);M=Mt(H),W=R?!q.some(X=>Q(H,X)):M}else R?(W=(await Promise.all(q.map(async H=>{const X=Q(s,H);return await T(X&&X._f?{[H]:X}:X)}))).every(Boolean),!(!W&&!r.isValid)&&v()):W=M=await T(s);return h.state.next({...!wn(R)||f.isValid&&M!==r.isValid?{}:{name:R},...n.resolver||!R?{isValid:M}:{},errors:r.errors,isValidating:!1}),I.shouldFocus&&!W&&Ki(s,ee,R?q:l.mount),W},le=R=>{const I={...i,...a.mount?o:{}};return Ee(R)?I:wn(R)?Q(I,R):R.map(M=>Q(I,M))},te=(R,I)=>({invalid:!!Q((I||r).errors,R),isDirty:!!Q((I||r).dirtyFields,R),isTouched:!!Q((I||r).touchedFields,R),error:Q((I||r).errors,R)}),ae=R=>{R&&Ya(R).forEach(I=>Be(r.errors,I)),h.state.next({errors:R?r.errors:{}})},de=(R,I,M)=>{const W=(Q(s,R,{_f:{}})._f||{}).ref;he(r.errors,R,{...I,ref:W}),h.state.next({name:R,errors:r.errors,isValid:!1}),M&&M.shouldFocus&&W&&W.focus&&W.focus()},ye=(R,I)=>or(R)?h.values.subscribe({next:M=>R(E(void 0,I),M)}):E(R,I,!0),Re=(R,I={})=>{for(const M of R?Ya(R):l.mount)l.mount.delete(M),l.array.delete(M),I.keepValue||(Be(s,M),Be(o,M)),!I.keepError&&Be(r.errors,M),!I.keepDirty&&Be(r.dirtyFields,M),!I.keepTouched&&Be(r.touchedFields,M),!n.shouldUnregister&&!I.keepDefaultValue&&Be(i,M);h.values.next({values:{...o}}),h.state.next({...r,...I.keepDirty?{isDirty:D()}:{}}),!I.keepIsValid&&v()},ut=({disabled:R,name:I,field:M,fields:W,value:q})=>{if($t(R)){const H=R?void 0:Ee(q)?Uc(M?M._f:Q(W,I)._f):q;he(o,I,H),O(I,H,!1,!1,!0)}},On=(R,I={})=>{let M=Q(s,R);const W=$t(I.disabled);return he(s,R,{...M||{},_f:{...M&&M._f?M._f:{ref:{name:R}},name:R,mount:!0,...I}}),l.mount.add(R),M?ut({field:M,disabled:I.disabled,name:R,value:I.value}):k(R,!0,I.value),{...W?{disabled:I.disabled}:{},...n.progressive?{required:!!I.required,min:Ei(I.min),max:Ei(I.max),minLength:Ei(I.minLength),maxLength:Ei(I.maxLength),pattern:Ei(I.pattern)}:{},name:R,onChange:z,onBlur:z,ref:q=>{if(q){On(R,I),M=Q(s,R);const H=Ee(q.value)&&q.querySelectorAll&&q.querySelectorAll("input,select,textarea")[0]||q,X=oE(H),ue=M._f.refs||[];if(X?ue.find(Oe=>Oe===H):H===M._f.ref)return;he(s,R,{_f:{...M._f,...X?{refs:[...ue.filter(zc),H,...Array.isArray(Q(i,R))?[{}]:[]],ref:{type:H.type,name:R}}:{ref:H}}}),k(R,!1,void 0,H)}else M=Q(s,R,{}),M._f&&(M._f.mount=!1),(n.shouldUnregister||I.shouldUnregister)&&!(qy(l.array,R)&&a.action)&&l.unMount.add(R)}}},as=()=>n.shouldFocusError&&Ki(s,ee,l.mount),ac=R=>{$t(R)&&(h.state.next({disabled:R}),Ki(s,(I,M)=>{let W=R;const q=Q(s,M);q&&$t(q._f.disabled)&&(W||(W=q._f.disabled)),I.disabled=W},0,!1))},hi=(R,I)=>async M=>{M&&(M.preventDefault&&M.preventDefault(),M.persist&&M.persist());let W=tn(o);if(h.state.next({isSubmitting:!0}),n.resolver){const{errors:q,values:H}=await _();r.errors=q,W=H}else await T(s);Be(r.errors,"root"),Mt(r.errors)?(h.state.next({errors:{}}),await R(W,M)):(I&&await I({...r.errors},M),as(),setTimeout(as)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Mt(r.errors),submitCount:r.submitCount+1,errors:r.errors})},lc=(R,I={})=>{Q(s,R)&&(Ee(I.defaultValue)?B(R,Q(i,R)):(B(R,I.defaultValue),he(i,R,I.defaultValue)),I.keepTouched||Be(r.touchedFields,R),I.keepDirty||(Be(r.dirtyFields,R),r.isDirty=I.defaultValue?D(R,Q(i,R)):D()),I.keepError||(Be(r.errors,R),f.isValid&&v()),h.state.next({...r}))},la=(R,I={})=>{const M=R?tn(R):i,W=tn(M),q=R&&!Mt(R)?W:i;if(I.keepDefaultValues||(i=M),!I.keepValues){if(I.keepDirtyValues||p)for(const H of l.mount)Q(r.dirtyFields,H)?he(q,H,Q(o,H)):B(H,Q(q,H));else{if(_h&&Ee(R))for(const H of l.mount){const X=Q(s,H);if(X&&X._f){const ue=Array.isArray(X._f.refs)?X._f.refs[0]:X._f.ref;if(Ul(ue)){const Oe=ue.closest("form");if(Oe){Oe.reset();break}}}}s={}}o=e.shouldUnregister?I.keepDefaultValues?tn(i):{}:tn(q),h.array.next({values:{...q}}),h.values.next({values:{...q}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!a.mount&&t(),a.mount=!f.isValid||!!I.keepIsValid,a.watch=!!e.shouldUnregister,h.state.next({submitCount:I.keepSubmitCount?r.submitCount:0,isDirty:I.keepDirty?r.isDirty:!!(I.keepDefaultValues&&!Ur(R,i)),isSubmitted:I.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:I.keepDirtyValues?r.dirtyFields:I.keepDefaultValues&&R?Vc(i,R):{},touchedFields:I.keepTouched?r.touchedFields:{},errors:I.keepErrors?r.errors:{},isSubmitSuccessful:I.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},pi=(R,I)=>la(or(R)?R(o):R,I);return{control:{register:On,unregister:Re,getFieldState:te,handleSubmit:hi,setError:de,_executeSchema:_,_getWatch:E,_getDirty:D,_updateValid:v,_removeUnmounted:$,_updateFieldArray:S,_updateDisabledField:ut,_getFieldArray:N,_reset:la,_resetDefaultValues:()=>or(n.defaultValues)&&n.defaultValues().then(R=>{pi(R,n.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:R=>{r={...r,...R}},_disableForm:ac,_subjects:h,_proxyFormState:f,_setErrors:j,get _fields(){return s},get _formValues(){return o},get _state(){return a},set _state(R){a=R},get _defaultValues(){return i},get _names(){return l},set _names(R){l=R},get _formState(){return r},set _formState(R){r=R},get _options(){return n},set _options(R){n={...n,...R}}},trigger:J,register:On,handleSubmit:hi,watch:ye,setValue:B,getValues:le,reset:pi,resetField:lc,clearErrors:ae,unregister:Re,setError:de,setFocus:(R,I={})=>{const M=Q(s,R),W=M&&M._f;if(W){const q=W.refs?W.refs[0]:W.ref;q.focus&&(q.focus(),I.shouldSelect&&q.select())}},getFieldState:te}}function rx(e={}){const t=fe.useRef(),n=fe.useRef(),[r,s]=fe.useState({isDirty:!1,isValidating:!1,isLoading:or(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:!1,defaultValues:or(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...fE(e,()=>s(o=>({...o}))),formState:r});const i=t.current.control;return i._options=e,Ih({subject:i._subjects.state,next:o=>{Wy(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),fe.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),fe.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),fe.useEffect(()=>{e.values&&!Ur(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),fe.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),fe.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=Qy(r,i),t.current}function sx(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=sx(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function G(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=sx(e))&&(r&&(r+=" "),r+=t);return r}const hE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1M11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),pE=hE,mE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0",clipRule:"evenodd"})]}),gE=mE,vE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414",clipRule:"evenodd"})]}),yE=vE,xE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1zM4.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.12"})]}),Fh=xE,wE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5M21 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.5M21 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.5",clipRule:"evenodd"})]}),bE=wE,SE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0",clipRule:"evenodd"})]}),ix=SE,CE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3zm-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.916M3.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.923z",clipRule:"evenodd"})]}),EE=CE,kE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.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.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0",clipRule:"evenodd"})]}),ox=kE,jE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879m-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-.465z",clipRule:"evenodd"})]}),RE=jE,OE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0m9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1M8.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 0",clipRule:"evenodd"})]}),NE=OE,PE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32",clipRule:"evenodd"})]}),AE=PE,_E=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067M4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4z",clipRule:"evenodd"})]}),TE=_E,IE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374zM1 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-2z",clipRule:"evenodd"})]}),DE=IE,ME=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71m4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71m.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13M7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13m7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11",clipRule:"evenodd"})]}),LE=ME,FE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1M13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1",clipRule:"evenodd"})]}),ax=FE,$E=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655",clipRule:"evenodd"})]}),BE=$E,zE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),c.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),c.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),VE=zE,UE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7z",clipRule:"evenodd"})]}),HE=UE,qE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117",clipRule:"evenodd"})]}),Eo=qE,QE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141",clipRule:"evenodd"})]}),WE=QE,KE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141",clipRule:"evenodd"})]}),_g=KE,GE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117",clipRule:"evenodd"})]}),XE=GE,YE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4zm2-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 2zm1 12v6h8v-6z",clipRule:"evenodd"})]}),JE=YE,ZE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0m7-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 1",clipRule:"evenodd"})]}),e5=ZE,t5=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219",clipRule:"evenodd"})]}),n5=t5,r5=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:c.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272M15.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.036M1.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.974M9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0"})}),c.jsx("defs",{children:c.jsx("clipPath",{id:"users_svg__a",children:c.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),s5=r5;function Sr(e){return lx(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gn(e){var t;return(t=(lx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lx(e){return e instanceof Node||e instanceof Ot(e).Node}function kt(e){return e instanceof Element||e instanceof Ot(e).Element}function En(e){return e instanceof HTMLElement||e instanceof Ot(e).HTMLElement}function Tg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot}function Ko(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function i5(e){return["table","td","th"].includes(Sr(e))}function $h(e){const t=Bh(),n=Gt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function o5(e){let t=Xs(e);for(;En(t)&&!Ou(t);){if($h(t))return t;t=Xs(t)}return null}function Bh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ou(e){return["html","body","#document"].includes(Sr(e))}function Gt(e){return Ot(e).getComputedStyle(e)}function Nu(e){return kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Xs(e){if(Sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tg(e)&&e.host||Gn(e);return Tg(t)?t.host:t}function ux(e){const t=Xs(e);return Ou(t)?e.ownerDocument?e.ownerDocument.body:e.body:En(t)&&Ko(t)?t:ux(t)}function ko(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=ux(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Ot(s);return i?t.concat(o,o.visualViewport||[],Ko(s)?s:[],o.frameElement&&n?ko(o.frameElement):[]):t.concat(s,ko(s,[],n))}const jo=Math.min,Bt=Math.max,Wl=Math.round,Oa=Math.floor,Cr=e=>({x:e,y:e}),a5={left:"right",right:"left",bottom:"top",top:"bottom"},l5={start:"end",end:"start"};function Pu(e,t){return typeof e=="function"?e(t):e}function es(e){return e.split("-")[0]}function Go(e){return e.split("-")[1]}function u5(e){return e==="x"?"y":"x"}function cx(e){return e==="y"?"height":"width"}function Au(e){return["top","bottom"].includes(es(e))?"y":"x"}function dx(e){return u5(Au(e))}function c5(e,t,n){n===void 0&&(n=!1);const r=Go(e),s=dx(e),i=cx(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Kl(o)),[o,Kl(o)]}function d5(e){const t=Kl(e);return[df(e),t,df(t)]}function df(e){return e.replace(/start|end/g,t=>l5[t])}function f5(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function h5(e,t,n,r){const s=Go(e);let i=f5(es(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(df)))),i}function Kl(e){return e.replace(/left|right|bottom|top/g,t=>a5[t])}function p5(e){return{top:0,right:0,bottom:0,left:0,...e}}function m5(e){return typeof e!="number"?p5(e):{top:e,right:e,bottom:e,left:e}}function Gl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ig(e,t,n){let{reference:r,floating:s}=e;const i=Au(t),o=dx(t),a=cx(o),l=es(t),u=i==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-s.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-s.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Go(t)){case"start":p[o]-=h*(n&&u?-1:1);break;case"end":p[o]+=h*(n&&u?-1:1);break}return p}const g5=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=Ig(u,r,l),h=r,p={},m=0;for(let y=0;y<a.length;y++){const{name:w,fn:g}=a[y],{x:v,y:x,data:S,reset:C}=await g({x:d,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});if(d=v??d,f=x??f,p={...p,[w]:{...p[w],...S}},C&&m<=50){m++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:d,y:f}=Ig(u,h,l)),y=-1;continue}}return{x:d,y:f,placement:h,strategy:s,middlewareData:p}};async function fx(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=Pu(t,e),m=m5(p),w=a[h?f==="floating"?"reference":"floating":f],g=Gl(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),v=f==="floating"?{...o.floating,x:r,y:s}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},C=Gl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:x,strategy:l}):v);return{top:(g.top-C.top+m.top)/S.y,bottom:(C.bottom-g.bottom+m.bottom)/S.y,left:(g.left-C.left+m.left)/S.x,right:(C.right-g.right+m.right)/S.x}}const v5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...w}=Pu(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=es(s),v=es(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=h||(v||!y?[Kl(a)]:d5(a));!h&&m!=="none"&&S.push(...h5(a,y,m,x));const C=[a,...S],j=await fx(t,w),k=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&k.push(j[g]),f){const T=c5(s,o,x);k.push(j[T[0]],j[T[1]])}if(O=[...O,{placement:s,overflows:k}],!k.every(T=>T<=0)){var A,_;const T=(((A=i.flip)==null?void 0:A.index)||0)+1,$=C[T];if($)return{data:{index:T,overflows:O},reset:{placement:$}};let D=(_=O.filter(E=>E.overflows[0]<=0).sort((E,N)=>E.overflows[1]-N.overflows[1])[0])==null?void 0:_.placement;if(!D)switch(p){case"bestFit":{var F;const E=(F=O.map(N=>[N.placement,N.overflows.filter(L=>L>0).reduce((L,P)=>L+P,0)]).sort((N,L)=>N[1]-L[1])[0])==null?void 0:F[0];E&&(D=E);break}case"initialPlacement":D=a;break}if(s!==D)return{reset:{placement:D}}}return{}}}};async function y5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=es(n),a=Go(n),l=Au(n)==="y",u=["left","top"].includes(o)?-1:1,d=i&&l?-1:1,f=Pu(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),l?{x:p*d,y:h*u}:{x:h*u,y:p*d}}const x5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await y5(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},w5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:i}=t,{apply:o=()=>{},...a}=Pu(e,t),l=await fx(t,a),u=es(n),d=Go(n),f=Au(n)==="y",{width:h,height:p}=r.floating;let m,y;u==="top"||u==="bottom"?(m=u,y=d===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,m=d==="end"?"top":"bottom");const w=p-l[m],g=h-l[y],v=!t.middlewareData.shift;let x=w,S=g;if(f){const j=h-l.left-l.right;S=d||v?jo(g,j):j}else{const j=p-l.top-l.bottom;x=d||v?jo(w,j):j}if(v&&!d){const j=Bt(l.left,0),k=Bt(l.right,0),O=Bt(l.top,0),A=Bt(l.bottom,0);f?S=h-2*(j!==0||k!==0?j+k:Bt(l.left,l.right)):x=p-2*(O!==0||A!==0?O+A:Bt(l.top,l.bottom))}await o({...t,availableWidth:S,availableHeight:x});const C=await s.getDimensions(i.floating);return h!==C.width||p!==C.height?{reset:{rects:!0}}:{}}}};function hx(e){const t=Gt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=En(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Wl(n)!==i||Wl(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function zh(e){return kt(e)?e:e.contextElement}function Ls(e){const t=zh(e);if(!En(t))return Cr(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=hx(t);let o=(i?Wl(n.width):n.width)/r,a=(i?Wl(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const b5=Cr(0);function px(e){const t=Ot(e);return!Bh()||!t.visualViewport?b5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function S5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ot(e)?!1:t}function ts(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=zh(e);let o=Cr(1);t&&(r?kt(r)&&(o=Ls(r)):o=Ls(e));const a=S5(i,n,r)?px(i):Cr(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,d=s.width/o.x,f=s.height/o.y;if(i){const h=Ot(i),p=r&&kt(r)?Ot(r):r;let m=h.frameElement;for(;m&&r&&p!==h;){const y=Ls(m),w=m.getBoundingClientRect(),g=Gt(m),v=w.left+(m.clientLeft+parseFloat(g.paddingLeft))*y.x,x=w.top+(m.clientTop+parseFloat(g.paddingTop))*y.y;l*=y.x,u*=y.y,d*=y.x,f*=y.y,l+=v,u+=x,m=Ot(m).frameElement}}return Gl({width:d,height:f,x:l,y:u})}function C5(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=En(n),i=Gn(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},a=Cr(1);const l=Cr(0);if((s||!s&&r!=="fixed")&&((Sr(n)!=="body"||Ko(i))&&(o=Nu(n)),En(n))){const u=ts(n);a=Ls(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}}function E5(e){return Array.from(e.getClientRects())}function mx(e){return ts(Gn(e)).left+Nu(e).scrollLeft}function k5(e){const t=Gn(e),n=Nu(e),r=e.ownerDocument.body,s=Bt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Bt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+mx(e);const a=-n.scrollTop;return Gt(r).direction==="rtl"&&(o+=Bt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function j5(e,t){const n=Ot(e),r=Gn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=Bh();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function R5(e,t){const n=ts(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=En(e)?Ls(e):Cr(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function Dg(e,t,n){let r;if(t==="viewport")r=j5(e,n);else if(t==="document")r=k5(Gn(e));else if(kt(t))r=R5(t,n);else{const s=px(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return Gl(r)}function gx(e,t){const n=Xs(e);return n===t||!kt(n)||Ou(n)?!1:Gt(n).position==="fixed"||gx(n,t)}function O5(e,t){const n=t.get(e);if(n)return n;let r=ko(e,[],!1).filter(a=>kt(a)&&Sr(a)!=="body"),s=null;const i=Gt(e).position==="fixed";let o=i?Xs(e):e;for(;kt(o)&&!Ou(o);){const a=Gt(o),l=$h(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Ko(o)&&!l&&gx(e,o))?r=r.filter(d=>d!==o):s=a,o=Xs(o)}return t.set(e,r),r}function N5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?O5(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,d)=>{const f=Dg(t,d,s);return u.top=Bt(f.top,u.top),u.right=jo(f.right,u.right),u.bottom=jo(f.bottom,u.bottom),u.left=Bt(f.left,u.left),u},Dg(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function P5(e){return hx(e)}function A5(e,t,n){const r=En(t),s=Gn(t),i=n==="fixed",o=ts(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Cr(0);if(r||!r&&!i)if((Sr(t)!=="body"||Ko(s))&&(a=Nu(t)),r){const u=ts(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else s&&(l.x=mx(s));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function Mg(e,t){return!En(e)||Gt(e).position==="fixed"?null:t?t(e):e.offsetParent}function vx(e,t){const n=Ot(e);if(!En(e))return n;let r=Mg(e,t);for(;r&&i5(r)&&Gt(r).position==="static";)r=Mg(r,t);return r&&(Sr(r)==="html"||Sr(r)==="body"&&Gt(r).position==="static"&&!$h(r))?n:r||o5(e)||n}const _5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||vx,i=this.getDimensions;return{reference:A5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function T5(e){return Gt(e).direction==="rtl"}const I5={convertOffsetParentRelativeRectToViewportRelativeRect:C5,getDocumentElement:Gn,getClippingRect:N5,getOffsetParent:vx,getElementRects:_5,getClientRects:E5,getDimensions:P5,getScale:Ls,isElement:kt,isRTL:T5};function D5(e,t){let n=null,r;const s=Gn(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:d,width:f,height:h}=e.getBoundingClientRect();if(a||t(),!f||!h)return;const p=Oa(d),m=Oa(s.clientWidth-(u+f)),y=Oa(s.clientHeight-(d+h)),w=Oa(u),v={rootMargin:-p+"px "+-m+"px "+-y+"px "+-w+"px",threshold:Bt(0,jo(1,l))||1};let x=!0;function S(C){const j=C[0].intersectionRatio;if(j!==l){if(!x)return o();j?o(!1,j):r=setTimeout(()=>{o(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(S,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return o(!0),i}function M5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=zh(e),d=s||i?[...u?ko(u):[],...ko(t)]:[];d.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const f=u&&a?D5(u,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(g=>{let[v]=g;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let m,y=l?ts(e):null;l&&w();function w(){const g=ts(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,m=requestAnimationFrame(w)}return n(),()=>{d.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),f&&f(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const L5=(e,t,n)=>{const r=new Map,s={platform:I5,...n},i={...s.platform,_c:r};return g5(e,t,{...s,platform:i})};var Za=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Xl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Xl(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Xl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function yx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lg(e,t){const n=yx(e);return Math.round(t*n)/n}function Fg(e){const t=b.useRef(e);return Za(()=>{t.current=e}),t}function F5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=b.useState(r);Xl(h,r)||p(r);const[m,y]=b.useState(null),[w,g]=b.useState(null),v=b.useCallback(N=>{N!=j.current&&(j.current=N,y(N))},[y]),x=b.useCallback(N=>{N!==k.current&&(k.current=N,g(N))},[g]),S=i||m,C=o||w,j=b.useRef(null),k=b.useRef(null),O=b.useRef(d),A=Fg(l),_=Fg(s),F=b.useCallback(()=>{if(!j.current||!k.current)return;const N={placement:t,strategy:n,middleware:h};_.current&&(N.platform=_.current),L5(j.current,k.current,N).then(L=>{const P={...L,isPositioned:!0};T.current&&!Xl(O.current,P)&&(O.current=P,Wn.flushSync(()=>{f(P)}))})},[h,t,n,_]);Za(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[u]);const T=b.useRef(!1);Za(()=>(T.current=!0,()=>{T.current=!1}),[]),Za(()=>{if(S&&(j.current=S),C&&(k.current=C),S&&C){if(A.current)return A.current(S,C,F);F()}},[S,C,F,A]);const $=b.useMemo(()=>({reference:j,floating:k,setReference:v,setFloating:x}),[v,x]),D=b.useMemo(()=>({reference:S,floating:C}),[S,C]),E=b.useMemo(()=>{const N={position:n,left:0,top:0};if(!D.floating)return N;const L=Lg(D.floating,d.x),P=Lg(D.floating,d.y);return a?{...N,transform:"translate("+L+"px, "+P+"px)",...yx(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:P}},[n,a,D.floating,d.x,d.y]);return b.useMemo(()=>({...d,update:F,refs:$,elements:D,floatingStyles:E}),[d,F,$,D,E])}var xx=typeof document<"u"?b.useLayoutEffect:b.useEffect;let Hc=!1,$5=0;const $g=()=>"floating-ui-"+$5++;function B5(){const[e,t]=b.useState(()=>Hc?$g():void 0);return xx(()=>{e==null&&t($g())},[]),b.useEffect(()=>{Hc||(Hc=!0)},[]),e}const z5=lv["useId".toString()],V5=z5||B5;function U5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(s=>s!==n))||[])}}}const H5=b.createContext(null),q5=()=>b.useContext(H5),Q5=lv["useInsertionEffect".toString()],W5=Q5||(e=>e());function K5(e){const t=b.useRef(()=>{});return W5(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function G5(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:s}=e,[i,o]=b.useState(null),a=((t=e.elements)==null?void 0:t.reference)||i,l=F5(e),u=q5(),d=K5((S,C)=>{S&&(h.current.openEvent=C),r==null||r(S,C)}),f=b.useRef(null),h=b.useRef({}),p=b.useState(()=>U5())[0],m=V5(),y=b.useCallback(S=>{const C=kt(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),contextElement:S}:S;l.refs.setReference(C)},[l.refs]),w=b.useCallback(S=>{(kt(S)||S===null)&&(f.current=S,o(S)),(kt(l.refs.reference.current)||l.refs.reference.current===null||S!==null&&!kt(S))&&l.refs.setReference(S)},[l.refs]),g=b.useMemo(()=>({...l.refs,setReference:w,setPositionReference:y,domReference:f}),[l.refs,w,y]),v=b.useMemo(()=>({...l.elements,domReference:a}),[l.elements,a]),x=b.useMemo(()=>({...l,refs:g,elements:v,dataRef:h,nodeId:s,floatingId:m,events:p,open:n,onOpenChange:d}),[l,s,m,p,n,d,g,v]);return xx(()=>{const S=u==null?void 0:u.nodesRef.current.find(C=>C.id===s);S&&(S.context=x)}),b.useMemo(()=>({...l,context:x,refs:g,elements:v}),[l,g,v,x])}let X5={data:""},Y5=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||X5,J5=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Z5=/\/\*[^]*?\*\/| +/g,Bg=/\n+/g,rr=(e,t)=>{let n="",r="",s="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?rr(o,i):i+"{"+rr(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=rr(o,t?t.replace(/([^,])+/g,a=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=rr.p?rr.p(i,o):i+":"+o+";")}return n+(t&&s?t+"{"+s+"}":s)+r},Pn={},wx=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+wx(e[n]);return t}return e},ek=(e,t,n,r,s)=>{let i=wx(e),o=Pn[i]||(Pn[i]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(i));if(!Pn[o]){let l=i!==e?e:(u=>{let d,f,h=[{}];for(;d=J5.exec(u.replace(Z5,""));)d[4]?h.shift():d[3]?(f=d[3].replace(Bg," ").trim(),h.unshift(h[0][f]=h[0][f]||{})):h[0][d[1]]=d[2].replace(Bg," ").trim();return h[0]})(e);Pn[o]=rr(s?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Pn.g?Pn.g:null;return n&&(Pn.g=Pn[o]),((l,u,d,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(Pn[o],t,r,a),o},tk=(e,t,n)=>e.reduce((r,s,i)=>{let o=t[i];if(o&&o.call){let a=o(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;o=l?"."+l:a&&typeof a=="object"?a.props?"":rr(a,""):a===!1?"":a}return r+s+(o??"")},"");function _u(e){let t=this||{},n=e.call?e(t.p):e;return ek(n.unshift?n.raw?tk(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,Y5(t.target),t.g,t.o,t.k)}let bx,ff,hf;_u.bind({g:1});let Un=_u.bind({k:1});function nk(e,t,n,r){rr.p=t,bx=e,ff=n,hf=r}function Pr(e,t){let n=this||{};return function(){let r=arguments;function s(i,o){let a=Object.assign({},i),l=a.className||s.className;n.p=Object.assign({theme:ff&&ff()},a),n.o=/ *go\d+/.test(l),a.className=_u.apply(n,r)+(l?" "+l:""),t&&(a.ref=o);let u=e;return e[0]&&(u=a.as||e,delete a.as),hf&&u[0]&&hf(a),bx(u,a)}return t?t(s):s}}var rk=e=>typeof e=="function",Yl=(e,t)=>rk(e)?e(t):e,sk=(()=>{let e=0;return()=>(++e).toString()})(),Sx=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ik=20,el=new Map,ok=1e3,zg=e=>{if(el.has(e))return;let t=setTimeout(()=>{el.delete(e),os({type:4,toastId:e})},ok);el.set(e,t)},ak=e=>{let t=el.get(e);t&&clearTimeout(t)},pf=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,ik)};case 1:return t.toast.id&&ak(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?pf(e,{type:1,toast:n}):pf(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?zg(r):e.toasts.forEach(i=>{zg(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+s}))}}},tl=[],nl={toasts:[],pausedAt:void 0},os=e=>{nl=pf(nl,e),tl.forEach(t=>{t(nl)})},lk={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},uk=(e={})=>{let[t,n]=b.useState(nl);b.useEffect(()=>(tl.push(n),()=>{let s=tl.indexOf(n);s>-1&&tl.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var i,o;return{...e,...e[s.type],...s,duration:s.duration||((i=e[s.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||lk[s.type],style:{...e.style,...(o=e[s.type])==null?void 0:o.style,...s.style}}});return{...t,toasts:r}},ck=(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)||sk()}),Xo=e=>(t,n)=>{let r=ck(t,e,n);return os({type:2,toast:r}),r.id},jt=(e,t)=>Xo("blank")(e,t);jt.error=Xo("error");jt.success=Xo("success");jt.loading=Xo("loading");jt.custom=Xo("custom");jt.dismiss=e=>{os({type:3,toastId:e})};jt.remove=e=>os({type:4,toastId:e});jt.promise=(e,t,n)=>{let r=jt.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(s=>(jt.success(Yl(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{jt.error(Yl(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var dk=(e,t)=>{os({type:1,toast:{id:e,height:t}})},fk=()=>{os({type:5,time:Date.now()})},hk=e=>{let{toasts:t,pausedAt:n}=uk(e);b.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(l<0){a.visible&&jt.dismiss(a.id);return}return setTimeout(()=>jt.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=b.useCallback(()=>{n&&os({type:6,time:Date.now()})},[n]),s=b.useCallback((i,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},d=t.filter(p=>(p.position||u)===(i.position||u)&&p.height),f=d.findIndex(p=>p.id===i.id),h=d.filter((p,m)=>m<f&&p.visible).length;return d.filter(p=>p.visible).slice(...a?[h+1]:[0,h]).reduce((p,m)=>p+(m.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:dk,startPause:fk,endPause:r,calculateOffset:s}}},pk=Un`
|
|
41
|
+
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function df(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function zp(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Rk=typeof WeakMap=="function"?WeakMap:Map;function gx(e,t,n){n=or(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oc||(oc=!0,Xp=r),zp(e,t)},n}function vx(e,t,n){n=or(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){zp(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){zp(e,t),typeof r!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Xv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rk;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Hk.bind(null,e,t,n),t.then(e,e))}function Yv(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 Jv(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=or(-1,1),t.tag=2,Gr(n,t,1))),n.lanes|=1),e)}var Nk=gr.ReactCurrentOwner,bt=!1;function ot(e,t,n,r){t.child=e===null?Kw(t,null,n,r):Yi(t,e.child,n,r)}function Zv(e,t,n,r,s){n=n.render;var i=t.ref;return Ci(t,s),r=lm(e,t,n,r,i,s),n=um(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,cr(e,t,s)):(be&&n&&Xh(t),t.flags|=1,ot(e,t,r,s),t.child)}function e1(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!wm(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,yx(e,t,i,r,s)):(e=yu(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:ba,n(o,r)&&e.ref===t.ref)return cr(e,t,s)}return t.flags|=1,e=Xr(i,r),e.ref=t.ref,e.return=t,t.child=e}function yx(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(ba(i,r)&&e.ref===t.ref)if(bt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(bt=!0);else return t.lanes=e.lanes,cr(e,t,s)}return Bp(e,t,n,r,s)}function wx(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(vi,At),At|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve(vi,At),At|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ve(vi,At),At|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ve(vi,At),At|=r;return ot(e,t,s,n),t.child}function xx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bp(e,t,n,r,s){var i=Et(n)?Ms:rt.current;return i=Ki(t,i),Ci(t,s),n=lm(e,t,n,r,i,s),r=um(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,cr(e,t,s)):(be&&r&&Xh(t),t.flags|=1,ot(e,t,n,s),t.child)}function t1(e,t,n,r,s){if(Et(n)){var i=!0;Xu(t)}else i=!1;if(Ci(t,s),t.stateNode===null)mu(e,t),Gw(t,n,r),$p(t,n,r,s),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=ln(u):(u=Et(n)?Ms:rt.current,u=Ki(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Wv(t,o,r,u),Er=!1;var p=t.memoizedState;o.state=p,tc(t,r,o,s),a=t.memoizedState,l!==r||p!==a||St.current||Er?(typeof c=="function"&&(Fp(t,n,c,r),a=t.memoizedState),(l=Er||qv(t,n,l,r,p,a,u))?(f||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,qw(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:gn(t.type,l),o.props=u,f=t.pendingProps,p=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=ln(a):(a=Et(n)?Ms:rt.current,a=Ki(t,a));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||p!==a)&&Wv(t,o,r,a),Er=!1,p=t.memoizedState,o.state=p,tc(t,r,o,s);var y=t.memoizedState;l!==f||p!==y||St.current||Er?(typeof h=="function"&&(Fp(t,n,h,r),y=t.memoizedState),(u=Er||qv(t,n,u,r,p,y,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Vp(e,t,n,r,i,s)}function Vp(e,t,n,r,s,i){xx(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&zv(t,n,!1),cr(e,t,i);r=t.stateNode,Nk.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Yi(t,e.child,null,i),t.child=Yi(t,null,l,i)):ot(e,t,l,i),t.memoizedState=r.state,s&&zv(t,n,!0),t.child}function bx(e){var t=e.stateNode;t.pendingContext?$v(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$v(e,t.context,!1),sm(e,t.containerInfo)}function n1(e,t,n,r,s){return Xi(),Jh(s),t.flags|=256,ot(e,t,n,r),t.child}var Up={dehydrated:null,treeContext:null,retryLane:0};function Hp(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sx(e,t,n){var r=t.pendingProps,s=Se.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ve(Se,s&1),e===null)return Lp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Gc(o,r,0,null),e=As(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Hp(n),t.memoizedState=Up,e):fm(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return Ak(e,t,o,r,l,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,l=s.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Xr(s,a),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Xr(l,i):(i=As(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Hp(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Up,r}return i=e.child,e=i.sibling,r=Xr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function fm(e,t){return t=Gc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vl(e,t,n,r){return r!==null&&Jh(r),Yi(t,e.child,null,n),e=fm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ak(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=df(Error(H(422))),Vl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Gc({mode:"visible",children:r.children},s,0,null),i=As(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Yi(t,e.child,null,o),t.child.memoizedState=Hp(o),t.memoizedState=Up,i);if(!(t.mode&1))return Vl(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(H(419)),r=df(i,r,void 0),Vl(e,t,o,r)}if(l=(o&e.childLanes)!==0,bt||l){if(r=He,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,ur(e,s),kn(r,e,s,-1))}return ym(),r=df(Error(H(421))),Vl(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=qk.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Lt=Wr(s.nextSibling),Ft=t,be=!0,xn=null,e!==null&&(Yt[Jt++]=nr,Yt[Jt++]=rr,Yt[Jt++]=Ls,nr=e.id,rr=e.overflow,Ls=t),t=fm(t,r.children),t.flags|=4096,t)}function r1(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Dp(e.return,t,n)}function ff(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function Ex(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(ot(e,t,r.children,n),r=Se.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&r1(e,n,t);else if(e.tag===19)r1(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(ve(Se,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&nc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),ff(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&nc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}ff(t,!0,n,null,i);break;case"together":ff(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=Xr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ik(e,t,n){switch(t.tag){case 3:bx(t),Xi();break;case 5:Xw(t);break;case 1:Et(t.type)&&Xu(t);break;case 4:sm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ve(Zu,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ve(Se,Se.current&1),t.flags|=128,null):n&t.child.childLanes?Sx(e,t,n):(ve(Se,Se.current&1),e=cr(e,t,n),e!==null?e.sibling:null);ve(Se,Se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ex(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ve(Se,Se.current),r)break;return null;case 22:case 23:return t.lanes=0,wx(e,t,n)}return cr(e,t,n)}var Cx,qp,kx,Tx;Cx=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}};qp=function(){};kx=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ws(Bn.current);var i=null;switch(n){case"input":s=pp(e,s),r=pp(e,r),i=[];break;case"select":s=ke({},s,{value:void 0}),r=ke({},r,{value:void 0}),i=[];break;case"textarea":s=gp(e,s),r=gp(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Qu)}yp(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ha.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=s!=null?s[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||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ha.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&we("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Tx=function(e,t,n,r){n!==r&&(t.flags|=4)};function To(e,t){if(!be)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 et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _k(e,t,n){var r=t.pendingProps;switch(Yh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return Et(t.type)&&Ku(),et(t),null;case 3:return r=t.stateNode,Ji(),xe(St),xe(rt),om(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xn!==null&&(Zp(xn),xn=null))),qp(e,t),et(t),null;case 5:im(t);var s=ws(Ta.current);if(n=t.type,e!==null&&t.stateNode!=null)kx(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(H(166));return et(t),null}if(e=ws(Bn.current),zl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ln]=t,r[Ca]=i,e=(t.mode&1)!==0,n){case"dialog":we("cancel",r),we("close",r);break;case"iframe":case"object":case"embed":we("load",r);break;case"video":case"audio":for(s=0;s<zo.length;s++)we(zo[s],r);break;case"source":we("error",r);break;case"img":case"image":case"link":we("error",r),we("load",r);break;case"details":we("toggle",r);break;case"input":fv(r,i),we("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},we("invalid",r);break;case"textarea":hv(r,i),we("invalid",r)}yp(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&$l(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&$l(r.textContent,l,e),s=["children",""+l]):ha.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&we("scroll",r)}switch(n){case"input":Nl(r),pv(r,i,!0);break;case"textarea":Nl(r),mv(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Qu)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Zy(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[Ln]=t,e[Ca]=r,Cx(e,t,!1,!1),t.stateNode=e;e:{switch(o=wp(n,r),n){case"dialog":we("cancel",e),we("close",e),s=r;break;case"iframe":case"object":case"embed":we("load",e),s=r;break;case"video":case"audio":for(s=0;s<zo.length;s++)we(zo[s],e);s=r;break;case"source":we("error",e),s=r;break;case"img":case"image":case"link":we("error",e),we("load",e),s=r;break;case"details":we("toggle",e),s=r;break;case"input":fv(e,r),s=pp(e,r),we("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ke({},r,{value:void 0}),we("invalid",e);break;case"textarea":hv(e,r),s=gp(e,r),we("invalid",e);break;default:s=r}yp(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?nw(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&ew(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ma(e,a):typeof a=="number"&&ma(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ha.hasOwnProperty(i)?a!=null&&i==="onScroll"&&we("scroll",e):a!=null&&Lh(e,i,a,o))}switch(n){case"input":Nl(e),pv(e,r,!1);break;case"textarea":Nl(e),mv(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Zr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?xi(e,!!r.multiple,i,!1):r.defaultValue!=null&&xi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Qu)}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 et(t),null;case 6:if(e&&t.stateNode!=null)Tx(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(n=ws(Ta.current),ws(Bn.current),zl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ln]=t,(i=r.nodeValue!==n)&&(e=Ft,e!==null))switch(e.tag){case 3:$l(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$l(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ln]=t,t.stateNode=r}return et(t),null;case 13:if(xe(Se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&Lt!==null&&t.mode&1&&!(t.flags&128))Uw(),Xi(),t.flags|=98560,i=!1;else if(i=zl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(H(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(H(317));i[Ln]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),i=!1}else xn!==null&&(Zp(xn),xn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Se.current&1?$e===0&&($e=3):ym())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return Ji(),qp(e,t),e===null&&Sa(t.stateNode.containerInfo),et(t),null;case 10:return tm(t.type._context),et(t),null;case 17:return Et(t.type)&&Ku(),et(t),null;case 19:if(xe(Se),i=t.memoizedState,i===null)return et(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)To(i,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=nc(e),o!==null){for(t.flags|=128,To(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ve(Se,Se.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>eo&&(t.flags|=128,r=!0,To(i,!1),t.lanes=4194304)}else{if(!r)if(e=nc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),To(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!be)return et(t),null}else 2*Ae()-i.renderingStartTime>eo&&n!==1073741824&&(t.flags|=128,r=!0,To(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,n=Se.current,ve(Se,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return vm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?At&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function Mk(e,t){switch(Yh(t),t.tag){case 1:return Et(t.type)&&Ku(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ji(),xe(St),xe(rt),om(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return im(t),null;case 13:if(xe(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(Se),null;case 4:return Ji(),null;case 10:return tm(t.type._context),null;case 22:case 23:return vm(),null;case 24:return null;default:return null}}var Ul=!1,nt=!1,Lk=typeof WeakSet=="function"?WeakSet:Set,X=null;function gi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Wp(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var s1=!1;function Dk(e,t){if(Op=qu,e=Rw(),Kh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var h;f!==n||s!==0&&f.nodeType!==3||(l=o+s),f!==i||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===s&&(l=o),p===i&&++c===r&&(a=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rp={focusedElem:e,selectionRange:n},qu=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,x=y.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?w:gn(t.type,w),x);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(b){Pe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return y=s1,s1=!1,y}function Yo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Wp(t,n,i)}s=s.next}while(s!==r)}}function qc(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 Gp(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 jx(e){var t=e.alternate;t!==null&&(e.alternate=null,jx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ln],delete t[Ca],delete t[Ip],delete t[wk],delete t[xk])),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 Px(e){return e.tag===5||e.tag===3||e.tag===4}function i1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Px(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 Qp(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=Qu));else if(r!==4&&(e=e.child,e!==null))for(Qp(e,t,n),e=e.sibling;e!==null;)Qp(e,t,n),e=e.sibling}function Kp(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(Kp(e,t,n),e=e.sibling;e!==null;)Kp(e,t,n),e=e.sibling}var We=null,wn=!1;function wr(e,t,n){for(n=n.child;n!==null;)Ox(e,t,n),n=n.sibling}function Ox(e,t,n){if(zn&&typeof zn.onCommitFiberUnmount=="function")try{zn.onCommitFiberUnmount(Dc,n)}catch{}switch(n.tag){case 5:nt||gi(n,t);case 6:var r=We,s=wn;We=null,wr(e,t,n),We=r,wn=s,We!==null&&(wn?(e=We,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):We.removeChild(n.stateNode));break;case 18:We!==null&&(wn?(e=We,n=n.stateNode,e.nodeType===8?sf(e.parentNode,n):e.nodeType===1&&sf(e,n),wa(e)):sf(We,n.stateNode));break;case 4:r=We,s=wn,We=n.stateNode.containerInfo,wn=!0,wr(e,t,n),We=r,wn=s;break;case 0:case 11:case 14:case 15:if(!nt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Wp(n,t,o),s=s.next}while(s!==r)}wr(e,t,n);break;case 1:if(!nt&&(gi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Pe(n,t,l)}wr(e,t,n);break;case 21:wr(e,t,n);break;case 22:n.mode&1?(nt=(r=nt)||n.memoizedState!==null,wr(e,t,n),nt=r):wr(e,t,n);break;default:wr(e,t,n)}}function o1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lk),t.forEach(function(r){var s=Wk.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function mn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:We=l.stateNode,wn=!1;break e;case 3:We=l.stateNode.containerInfo,wn=!0;break e;case 4:We=l.stateNode.containerInfo,wn=!0;break e}l=l.return}if(We===null)throw Error(H(160));Ox(i,o,s),We=null,wn=!1;var a=s.alternate;a!==null&&(a.return=null),s.return=null}catch(u){Pe(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rx(t,e),t=t.sibling}function Rx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mn(t,e),On(e),r&4){try{Yo(3,e,e.return),qc(3,e)}catch(w){Pe(e,e.return,w)}try{Yo(5,e,e.return)}catch(w){Pe(e,e.return,w)}}break;case 1:mn(t,e),On(e),r&512&&n!==null&&gi(n,n.return);break;case 5:if(mn(t,e),On(e),r&512&&n!==null&&gi(n,n.return),e.flags&32){var s=e.stateNode;try{ma(s,"")}catch(w){Pe(e,e.return,w)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Yy(s,i),wp(l,o);var u=wp(l,i);for(o=0;o<a.length;o+=2){var c=a[o],f=a[o+1];c==="style"?nw(s,f):c==="dangerouslySetInnerHTML"?ew(s,f):c==="children"?ma(s,f):Lh(s,c,f,u)}switch(l){case"input":hp(s,i);break;case"textarea":Jy(s,i);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?xi(s,!!i.multiple,h,!1):p!==!!i.multiple&&(i.defaultValue!=null?xi(s,!!i.multiple,i.defaultValue,!0):xi(s,!!i.multiple,i.multiple?[]:"",!1))}s[Ca]=i}catch(w){Pe(e,e.return,w)}}break;case 6:if(mn(t,e),On(e),r&4){if(e.stateNode===null)throw Error(H(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(w){Pe(e,e.return,w)}}break;case 3:if(mn(t,e),On(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{wa(t.containerInfo)}catch(w){Pe(e,e.return,w)}break;case 4:mn(t,e),On(e);break;case 13:mn(t,e),On(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(mm=Ae())),r&4&&o1(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(nt=(u=nt)||c,mn(t,e),nt=u):mn(t,e),On(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(X=e,c=e.child;c!==null;){for(f=X=c;X!==null;){switch(p=X,h=p.child,p.tag){case 0:case 11:case 14:case 15:Yo(4,p,p.return);break;case 1:gi(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(w){Pe(r,n,w)}}break;case 5:gi(p,p.return);break;case 22:if(p.memoizedState!==null){l1(f);continue}}h!==null?(h.return=p,X=h):l1(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=tw("display",o))}catch(w){Pe(e,e.return,w)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(w){Pe(e,e.return,w)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:mn(t,e),On(e),r&4&&o1(e);break;case 21:break;default:mn(t,e),On(e)}}function On(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Px(n)){var r=n;break e}n=n.return}throw Error(H(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(ma(s,""),r.flags&=-33);var i=i1(e);Kp(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,l=i1(e);Qp(e,l,o);break;default:throw Error(H(161))}}catch(a){Pe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fk(e,t,n){X=e,Nx(e)}function Nx(e,t,n){for(var r=(e.mode&1)!==0;X!==null;){var s=X,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Ul;if(!o){var l=s.alternate,a=l!==null&&l.memoizedState!==null||nt;l=Ul;var u=nt;if(Ul=o,(nt=a)&&!u)for(X=s;X!==null;)o=X,a=o.child,o.tag===22&&o.memoizedState!==null?u1(s):a!==null?(a.return=o,X=a):u1(s);for(;i!==null;)X=i,Nx(i),i=i.sibling;X=s,Ul=l,nt=u}a1(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,X=i):a1(e)}}function a1(e){for(;X!==null;){var t=X;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:nt||qc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!nt)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:gn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Hv(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Hv(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 f=c.dehydrated;f!==null&&wa(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}nt||t.flags&512&&Gp(t)}catch(p){Pe(t,t.return,p)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function l1(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var n=t.sibling;if(n!==null){n.return=t.return,X=n;break}X=t.return}}function u1(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{qc(4,t)}catch(a){Pe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(a){Pe(t,s,a)}}var i=t.return;try{Gp(t)}catch(a){Pe(t,i,a)}break;case 5:var o=t.return;try{Gp(t)}catch(a){Pe(t,o,a)}}}catch(a){Pe(t,t.return,a)}if(t===e){X=null;break}var l=t.sibling;if(l!==null){l.return=t.return,X=l;break}X=t.return}}var $k=Math.ceil,ic=gr.ReactCurrentDispatcher,pm=gr.ReactCurrentOwner,sn=gr.ReactCurrentBatchConfig,ce=0,He=null,Me=null,Ge=0,At=0,vi=is(0),$e=0,Ra=null,Fs=0,Wc=0,hm=0,Jo=null,xt=null,mm=0,eo=1/0,Jn=null,oc=!1,Xp=null,Qr=null,Hl=!1,Lr=null,ac=0,Zo=0,Yp=null,gu=-1,vu=0;function ct(){return ce&6?Ae():gu!==-1?gu:gu=Ae()}function Kr(e){return e.mode&1?ce&2&&Ge!==0?Ge&-Ge:Sk.transition!==null?(vu===0&&(vu=hw()),vu):(e=pe,e!==0||(e=window.event,e=e===void 0?16:bw(e.type)),e):1}function kn(e,t,n,r){if(50<Zo)throw Zo=0,Yp=null,Error(H(185));al(e,n,r),(!(ce&2)||e!==He)&&(e===He&&(!(ce&2)&&(Wc|=n),$e===4&&kr(e,Ge)),Ct(e,r),n===1&&ce===0&&!(t.mode&1)&&(eo=Ae()+500,Vc&&os()))}function Ct(e,t){var n=e.callbackNode;S3(e,t);var r=Hu(e,e===He?Ge:0);if(r===0)n!==null&&yv(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yv(n),t===1)e.tag===0?bk(c1.bind(null,e)):zw(c1.bind(null,e)),vk(function(){!(ce&6)&&os()}),n=null;else{switch(mw(r)){case 1:n=Bh;break;case 4:n=fw;break;case 16:n=Uu;break;case 536870912:n=pw;break;default:n=Uu}n=$x(n,Ax.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ax(e,t){if(gu=-1,vu=0,ce&6)throw Error(H(327));var n=e.callbackNode;if(ki()&&e.callbackNode!==n)return null;var r=Hu(e,e===He?Ge:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=lc(e,r);else{t=r;var s=ce;ce|=2;var i=_x();(He!==e||Ge!==t)&&(Jn=null,eo=Ae()+500,Ns(e,t));do try{Vk();break}catch(l){Ix(e,l)}while(1);em(),ic.current=i,ce=s,Me!==null?t=0:(He=null,Ge=0,t=$e)}if(t!==0){if(t===2&&(s=Cp(e),s!==0&&(r=s,t=Jp(e,s))),t===1)throw n=Ra,Ns(e,0),kr(e,r),Ct(e,Ae()),n;if(t===6)kr(e,r);else{if(s=e.current.alternate,!(r&30)&&!zk(s)&&(t=lc(e,r),t===2&&(i=Cp(e),i!==0&&(r=i,t=Jp(e,i))),t===1))throw n=Ra,Ns(e,0),kr(e,r),Ct(e,Ae()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(H(345));case 2:ms(e,xt,Jn);break;case 3:if(kr(e,r),(r&130023424)===r&&(t=mm+500-Ae(),10<t)){if(Hu(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ct(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Ap(ms.bind(null,e,xt,Jn),t);break}ms(e,xt,Jn);break;case 4:if(kr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Cn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$k(r/1960))-r,10<r){e.timeoutHandle=Ap(ms.bind(null,e,xt,Jn),r);break}ms(e,xt,Jn);break;case 5:ms(e,xt,Jn);break;default:throw Error(H(329))}}}return Ct(e,Ae()),e.callbackNode===n?Ax.bind(null,e):null}function Jp(e,t){var n=Jo;return e.current.memoizedState.isDehydrated&&(Ns(e,t).flags|=256),e=lc(e,t),e!==2&&(t=xt,xt=n,t!==null&&Zp(t)),e}function Zp(e){xt===null?xt=e:xt.push.apply(xt,e)}function zk(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Tn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function kr(e,t){for(t&=~hm,t&=~Wc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Cn(t),r=1<<n;e[n]=-1,t&=~r}}function c1(e){if(ce&6)throw Error(H(327));ki();var t=Hu(e,0);if(!(t&1))return Ct(e,Ae()),null;var n=lc(e,t);if(e.tag!==0&&n===2){var r=Cp(e);r!==0&&(t=r,n=Jp(e,r))}if(n===1)throw n=Ra,Ns(e,0),kr(e,t),Ct(e,Ae()),n;if(n===6)throw Error(H(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ms(e,xt,Jn),Ct(e,Ae()),null}function gm(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(eo=Ae()+500,Vc&&os())}}function $s(e){Lr!==null&&Lr.tag===0&&!(ce&6)&&ki();var t=ce;ce|=1;var n=sn.transition,r=pe;try{if(sn.transition=null,pe=1,e)return e()}finally{pe=r,sn.transition=n,ce=t,!(ce&6)&&os()}}function vm(){At=vi.current,xe(vi)}function Ns(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,gk(n)),Me!==null)for(n=Me.return;n!==null;){var r=n;switch(Yh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ku();break;case 3:Ji(),xe(St),xe(rt),om();break;case 5:im(r);break;case 4:Ji();break;case 13:xe(Se);break;case 19:xe(Se);break;case 10:tm(r.type._context);break;case 22:case 23:vm()}n=n.return}if(He=e,Me=e=Xr(e.current,null),Ge=At=t,$e=0,Ra=null,hm=Wc=Fs=0,xt=Jo=null,ys!==null){for(t=0;t<ys.length;t++)if(n=ys[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}ys=null}return e}function Ix(e,t){do{var n=Me;try{if(em(),pu.current=sc,rc){for(var r=Ce.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}rc=!1}if(Ds=0,Ue=De=Ce=null,Xo=!1,ja=0,pm.current=null,n===null||n.return===null){$e=1,Ra=t,Me=null;break}e:{var i=e,o=n.return,l=n,a=t;if(t=Ge,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Yv(o);if(h!==null){h.flags&=-257,Jv(h,o,l,i,t),h.mode&1&&Xv(i,u,t),t=h,a=u;var y=t.updateQueue;if(y===null){var w=new Set;w.add(a),t.updateQueue=w}else y.add(a);break e}else{if(!(t&1)){Xv(i,u,t),ym();break e}a=Error(H(426))}}else if(be&&l.mode&1){var x=Yv(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Jv(x,o,l,i,t),Jh(Zi(a,l));break e}}i=a=Zi(a,l),$e!==4&&($e=2),Jo===null?Jo=[i]:Jo.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=gx(i,a,t);Uv(i,g);break e;case 1:l=a;var m=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Qr===null||!Qr.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=vx(i,l,t);Uv(i,b);break e}}i=i.return}while(i!==null)}Lx(n)}catch(E){t=E,Me===n&&n!==null&&(Me=n=n.return);continue}break}while(1)}function _x(){var e=ic.current;return ic.current=sc,e===null?sc:e}function ym(){($e===0||$e===3||$e===2)&&($e=4),He===null||!(Fs&268435455)&&!(Wc&268435455)||kr(He,Ge)}function lc(e,t){var n=ce;ce|=2;var r=_x();(He!==e||Ge!==t)&&(Jn=null,Ns(e,t));do try{Bk();break}catch(s){Ix(e,s)}while(1);if(em(),ce=n,ic.current=r,Me!==null)throw Error(H(261));return He=null,Ge=0,$e}function Bk(){for(;Me!==null;)Mx(Me)}function Vk(){for(;Me!==null&&!p3();)Mx(Me)}function Mx(e){var t=Fx(e.alternate,e,At);e.memoizedProps=e.pendingProps,t===null?Lx(e):Me=t,pm.current=null}function Lx(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Mk(n,t),n!==null){n.flags&=32767,Me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,Me=null;return}}else if(n=_k(n,t,At),n!==null){Me=n;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);$e===0&&($e=5)}function ms(e,t,n){var r=pe,s=sn.transition;try{sn.transition=null,pe=1,Uk(e,t,n,r)}finally{sn.transition=s,pe=r}return null}function Uk(e,t,n,r){do ki();while(Lr!==null);if(ce&6)throw Error(H(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(H(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(E3(e,i),e===He&&(Me=He=null,Ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Hl||(Hl=!0,$x(Uu,function(){return ki(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=sn.transition,sn.transition=null;var o=pe;pe=1;var l=ce;ce|=4,pm.current=null,Dk(e,n),Rx(n,e),uk(Rp),qu=!!Op,Rp=Op=null,e.current=n,Fk(n),h3(),ce=l,pe=o,sn.transition=i}else e.current=n;if(Hl&&(Hl=!1,Lr=e,ac=s),i=e.pendingLanes,i===0&&(Qr=null),v3(n.stateNode),Ct(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(oc)throw oc=!1,e=Xp,Xp=null,e;return ac&1&&e.tag!==0&&ki(),i=e.pendingLanes,i&1?e===Yp?Zo++:(Zo=0,Yp=e):Zo=0,os(),null}function ki(){if(Lr!==null){var e=mw(ac),t=sn.transition,n=pe;try{if(sn.transition=null,pe=16>e?16:e,Lr===null)var r=!1;else{if(e=Lr,Lr=null,ac=0,ce&6)throw Error(H(331));var s=ce;for(ce|=4,X=e.current;X!==null;){var i=X,o=i.child;if(X.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(X=u;X!==null;){var c=X;switch(c.tag){case 0:case 11:case 15:Yo(8,c,i)}var f=c.child;if(f!==null)f.return=c,X=f;else for(;X!==null;){c=X;var p=c.sibling,h=c.return;if(jx(c),c===u){X=null;break}if(p!==null){p.return=h,X=p;break}X=h}}}var y=i.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var x=w.sibling;w.sibling=null,w=x}while(w!==null)}}X=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,X=o;else e:for(;X!==null;){if(i=X,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Yo(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,X=g;break e}X=i.return}}var m=e.current;for(X=m;X!==null;){o=X;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,X=v;else e:for(o=m;X!==null;){if(l=X,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:qc(9,l)}}catch(E){Pe(l,l.return,E)}if(l===o){X=null;break e}var b=l.sibling;if(b!==null){b.return=l.return,X=b;break e}X=l.return}}if(ce=s,os(),zn&&typeof zn.onPostCommitFiberRoot=="function")try{zn.onPostCommitFiberRoot(Dc,e)}catch{}r=!0}return r}finally{pe=n,sn.transition=t}}return!1}function d1(e,t,n){t=Zi(n,t),t=gx(e,t,1),e=Gr(e,t,1),t=ct(),e!==null&&(al(e,1,t),Ct(e,t))}function Pe(e,t,n){if(e.tag===3)d1(e,e,n);else for(;t!==null;){if(t.tag===3){d1(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qr===null||!Qr.has(r))){e=Zi(n,e),e=vx(t,e,1),t=Gr(t,e,1),e=ct(),t!==null&&(al(t,1,e),Ct(t,e));break}}t=t.return}}function Hk(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ct(),e.pingedLanes|=e.suspendedLanes&n,He===e&&(Ge&n)===n&&($e===4||$e===3&&(Ge&130023424)===Ge&&500>Ae()-mm?Ns(e,0):hm|=n),Ct(e,t)}function Dx(e,t){t===0&&(e.mode&1?(t=_l,_l<<=1,!(_l&130023424)&&(_l=4194304)):t=1);var n=ct();e=ur(e,t),e!==null&&(al(e,t,n),Ct(e,n))}function qk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dx(e,n)}function Wk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),Dx(e,n)}var Fx;Fx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||St.current)bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bt=!1,Ik(e,t,n);bt=!!(e.flags&131072)}else bt=!1,be&&t.flags&1048576&&Bw(t,Ju,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;mu(e,t),e=t.pendingProps;var s=Ki(t,rt.current);Ci(t,n),s=lm(null,t,r,e,s,n);var i=um();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Et(r)?(i=!0,Xu(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,rm(t),s.updater=Uc,t.stateNode=s,s._reactInternals=t,$p(t,r,e,n),t=Vp(null,t,r,!0,i,n)):(t.tag=0,be&&i&&Xh(t),ot(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(mu(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Qk(r),e=gn(r,e),s){case 0:t=Bp(null,t,r,e,n);break e;case 1:t=t1(null,t,r,e,n);break e;case 11:t=Zv(null,t,r,e,n);break e;case 14:t=e1(null,t,r,gn(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gn(r,s),Bp(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gn(r,s),t1(e,t,r,s,n);case 3:e:{if(bx(t),e===null)throw Error(H(387));r=t.pendingProps,i=t.memoizedState,s=i.element,qw(e,t),tc(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Zi(Error(H(423)),t),t=n1(e,t,r,n,s);break e}else if(r!==s){s=Zi(Error(H(424)),t),t=n1(e,t,r,n,s);break e}else for(Lt=Wr(t.stateNode.containerInfo.firstChild),Ft=t,be=!0,xn=null,n=Kw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xi(),r===s){t=cr(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return Xw(t),e===null&&Lp(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Np(r,s)?o=null:i!==null&&Np(r,i)&&(t.flags|=32),xx(e,t),ot(e,t,o,n),t.child;case 6:return e===null&&Lp(t),null;case 13:return Sx(e,t,n);case 4:return sm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yi(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gn(r,s),Zv(e,t,r,s,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,ve(Zu,r._currentValue),r._currentValue=o,i!==null)if(Tn(i.value,o)){if(i.children===s.children&&!St.current){t=cr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=or(-1,n&-n),a.tag=2;var u=i.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}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Dp(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(H(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Dp(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ot(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ci(t,n),s=ln(s),r=r(s),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,s=gn(r,t.pendingProps),s=gn(r.type,s),e1(e,t,r,s,n);case 15:return yx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gn(r,s),mu(e,t),t.tag=1,Et(r)?(e=!0,Xu(t)):e=!1,Ci(t,n),Gw(t,r,s),$p(t,r,s,n),Vp(null,t,r,!0,e,n);case 19:return Ex(e,t,n);case 22:return wx(e,t,n)}throw Error(H(156,t.tag))};function $x(e,t){return dw(e,t)}function Gk(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 rn(e,t,n,r){return new Gk(e,t,n,r)}function wm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qk(e){if(typeof e=="function")return wm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fh)return 11;if(e===$h)return 14}return 2}function Xr(e,t){var n=e.alternate;return n===null?(n=rn(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 yu(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")wm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ai:return As(n.children,s,i,t);case Dh:o=8,s|=8;break;case up:return e=rn(12,n,t,s|2),e.elementType=up,e.lanes=i,e;case cp:return e=rn(13,n,t,s),e.elementType=cp,e.lanes=i,e;case dp:return e=rn(19,n,t,s),e.elementType=dp,e.lanes=i,e;case Qy:return Gc(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wy:o=10;break e;case Gy:o=9;break e;case Fh:o=11;break e;case $h:o=14;break e;case Sr:o=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=rn(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function As(e,t,n,r){return e=rn(7,e,r,t),e.lanes=n,e}function Gc(e,t,n,r){return e=rn(22,e,r,t),e.elementType=Qy,e.lanes=n,e.stateNode={isHidden:!1},e}function pf(e,t,n){return e=rn(6,e,null,t),e.lanes=n,e}function hf(e,t,n){return t=rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kk(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gd(0),this.expirationTimes=Gd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gd(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function xm(e,t,n,r,s,i,o,l,a){return e=new Kk(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rm(i),e}function Xk(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:oi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zx(e){if(!e)return es;e=e._reactInternals;e:{if(Qs(e)!==e||e.tag!==1)throw Error(H(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(H(171))}if(e.tag===1){var n=e.type;if(Et(n))return $w(e,n,t)}return t}function Bx(e,t,n,r,s,i,o,l,a){return e=xm(n,r,!0,e,s,i,o,l,a),e.context=zx(null),n=e.current,r=ct(),s=Kr(n),i=or(r,s),i.callback=t??null,Gr(n,i,s),e.current.lanes=s,al(e,s,r),Ct(e,r),e}function Qc(e,t,n,r){var s=t.current,i=ct(),o=Kr(s);return n=zx(n),t.context===null?t.context=n:t.pendingContext=n,t=or(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Gr(s,t,o),e!==null&&(kn(e,s,o,i),fu(e,s,o)),o}function uc(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 f1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bm(e,t){f1(e,t),(e=e.alternate)&&f1(e,t)}function Yk(){return null}var Vx=typeof reportError=="function"?reportError:function(e){console.error(e)};function Sm(e){this._internalRoot=e}Kc.prototype.render=Sm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));Qc(e,t,null,null)};Kc.prototype.unmount=Sm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$s(function(){Qc(null,e,null,null)}),t[lr]=null}};function Kc(e){this._internalRoot=e}Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=yw();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cr.length&&t!==0&&t<Cr[n].priority;n++);Cr.splice(n,0,e),n===0&&xw(e)}};function Em(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function p1(){}function Jk(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=uc(o);i.call(u)}}var o=Bx(t,r,e,0,null,!1,!1,"",p1);return e._reactRootContainer=o,e[lr]=o.current,Sa(e.nodeType===8?e.parentNode:e),$s(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=uc(a);l.call(u)}}var a=xm(e,0,!1,null,null,!1,!1,"",p1);return e._reactRootContainer=a,e[lr]=a.current,Sa(e.nodeType===8?e.parentNode:e),$s(function(){Qc(t,a,n,r)}),a}function Yc(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var a=uc(o);l.call(a)}}Qc(t,o,e,s)}else o=Jk(n,t,e,s,r);return uc(o)}gw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=$o(t.pendingLanes);n!==0&&(Vh(t,n|1),Ct(t,Ae()),!(ce&6)&&(eo=Ae()+500,os()))}break;case 13:$s(function(){var r=ur(e,1);if(r!==null){var s=ct();kn(r,e,1,s)}}),bm(e,1)}};Uh=function(e){if(e.tag===13){var t=ur(e,134217728);if(t!==null){var n=ct();kn(t,e,134217728,n)}bm(e,134217728)}};vw=function(e){if(e.tag===13){var t=Kr(e),n=ur(e,t);if(n!==null){var r=ct();kn(n,e,t,r)}bm(e,t)}};yw=function(){return pe};ww=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};bp=function(e,t,n){switch(t){case"input":if(hp(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Bc(r);if(!s)throw Error(H(90));Xy(r),hp(r,s)}}}break;case"textarea":Jy(e,n);break;case"select":t=n.value,t!=null&&xi(e,!!n.multiple,t,!1)}};iw=gm;ow=$s;var Zk={usingClientEntryPoint:!1,Events:[ul,di,Bc,rw,sw,gm]},jo={findFiberByHostInstance:vs,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},eT={bundleType:jo.bundleType,version:jo.version,rendererPackageName:jo.rendererPackageName,rendererConfig:jo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=uw(e),e===null?null:e.stateNode},findFiberByHostInstance:jo.findFiberByHostInstance||Yk,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 ql=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ql.isDisabled&&ql.supportsFiber)try{Dc=ql.inject(eT),zn=ql}catch{}}Vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zk;Vt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Em(t))throw Error(H(200));return Xk(e,t,null,n)};Vt.createRoot=function(e,t){if(!Em(e))throw Error(H(299));var n=!1,r="",s=Vx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=xm(e,1,!1,null,null,n,!1,r,s),e[lr]=t.current,Sa(e.nodeType===8?e.parentNode:e),new Sm(t)};Vt.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(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=uw(t),e=e===null?null:e.stateNode,e};Vt.flushSync=function(e){return $s(e)};Vt.hydrate=function(e,t,n){if(!Xc(t))throw Error(H(200));return Yc(null,e,t,!0,n)};Vt.hydrateRoot=function(e,t,n){if(!Em(e))throw Error(H(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Vx;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Bx(t,null,e,1,n??null,s,!1,i,o),e[lr]=t.current,Sa(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Kc(t)};Vt.render=function(e,t,n){if(!Xc(t))throw Error(H(200));return Yc(null,e,t,!1,n)};Vt.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(H(40));return e._reactRootContainer?($s(function(){Yc(null,null,e,!1,function(){e._reactRootContainer=null,e[lr]=null})}),!0):!1};Vt.unstable_batchedUpdates=gm;Vt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(H(200));if(e==null||e._reactInternals===void 0)throw Error(H(38));return Yc(e,t,n,!1,r)};Vt.version="18.2.0-next-9e3b772b8-20220608";function Ux(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ux)}catch(e){console.error(e)}}Ux(),By.exports=Vt;var vr=By.exports,dl=e=>e.type==="checkbox",yi=e=>e instanceof Date,at=e=>e==null;const Hx=e=>typeof e=="object";var Be=e=>!at(e)&&!Array.isArray(e)&&Hx(e)&&!yi(e),qx=e=>Be(e)&&e.target?dl(e.target)?e.target.checked:e.target.value:e,tT=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Wx=(e,t)=>e.has(tT(t)),nT=e=>{const t=e.constructor&&e.constructor.prototype;return Be(t)&&t.hasOwnProperty("isPrototypeOf")},Cm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function vn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Cm&&(e instanceof Blob||e instanceof FileList))&&(n||Be(e)))if(t=n?[]:{},!n&&!nT(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=vn(e[r]));else return e;return t}var fl=e=>Array.isArray(e)?e.filter(Boolean):[],Oe=e=>e===void 0,Q=(e,t,n)=>{if(!t||!Be(e))return n;const r=fl(t.split(/[,[\].]+?/)).reduce((s,i)=>at(s)?s:s[i],e);return Oe(r)||r===e?Oe(e[t])?n:e[t]:r},Zt=e=>typeof e=="boolean";const cc={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Sn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Qn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},rT=ee.createContext(null),km=()=>ee.useContext(rT);var Gx=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Sn.all&&(t._proxyFormState[o]=!r||Sn.all),n&&(n[o]=!0),e[o]}});return s},Xt=e=>Be(e)&&!Object.keys(e).length,Qx=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return Xt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||Sn.all))},wu=e=>Array.isArray(e)?e:[e],Kx=(e,t,n)=>!e||!t||e===t||wu(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Tm(e){const t=ee.useRef(e);t.current=e,ee.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function sT(e){const t=km(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[o,l]=ee.useState(n._formState),a=ee.useRef(!0),u=ee.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=ee.useRef(s);return c.current=s,Tm({disabled:r,next:f=>a.current&&Kx(c.current,f.name,i)&&Qx(f,u.current,n._updateFormState)&&l({...n._formState,...f}),subject:n._subjects.state}),ee.useEffect(()=>(a.current=!0,u.current.isValid&&n._updateValid(!0),()=>{a.current=!1}),[n]),Gx(o,n,u.current,!1)}var Fn=e=>typeof e=="string",Xx=(e,t,n,r,s)=>Fn(e)?(r&&t.watch.add(e),Q(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Q(n,i))):(r&&(t.watchAll=!0),n);function iT(e){const t=km(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e||{},l=ee.useRef(r);l.current=r,Tm({disabled:i,subject:n._subjects.values,next:c=>{Kx(l.current,c.name,o)&&u(vn(Xx(l.current,n._names,c.values||n._formValues,!1,s)))}});const[a,u]=ee.useState(n._getWatch(r,s));return ee.useEffect(()=>n._removeUnmounted()),a}var jm=e=>/^\w*$/.test(e),Yx=e=>fl(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ge=(e,t,n)=>{let r=-1;const s=jm(t)?[t]:Yx(t),i=s.length,o=i-1;for(;++r<i;){const l=s[r];let a=n;if(r!==o){const u=e[l];a=Be(u)||Array.isArray(u)?u:isNaN(+s[r+1])?{}:[]}e[l]=a,e=e[l]}return e};function oT(e){const t=km(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=Wx(s._names.array,n),l=iT({control:s,name:n,defaultValue:Q(s._formValues,n,Q(s._defaultValues,n,e.defaultValue)),exact:!0}),a=sT({control:s,name:n}),u=ee.useRef(s.register(n,{...e.rules,value:l,...Zt(e.disabled)?{disabled:e.disabled}:{}}));return ee.useEffect(()=>{const c=s._options.shouldUnregister||i,f=(p,h)=>{const y=Q(s._fields,p);y&&(y._f.mount=h)};if(f(n,!0),c){const p=vn(Q(s._options.defaultValues,n));ge(s._defaultValues,n,p),Oe(Q(s._formValues,n))&&ge(s._formValues,n,p)}return()=>{(o?c&&!s._state.action:c)?s.unregister(n):f(n,!1)}},[n,s,o,i]),ee.useEffect(()=>{Q(s._fields,n)&&s._updateDisabledField({disabled:r,fields:s._fields,name:n,value:Q(s._fields,n)._f.value})},[r,n,s]),{field:{name:n,value:l,...Zt(r)||Zt(a.disabled)?{disabled:a.disabled||r}:{},onChange:ee.useCallback(c=>u.current.onChange({target:{value:qx(c),name:n},type:cc.CHANGE}),[n]),onBlur:ee.useCallback(()=>u.current.onBlur({target:{value:Q(s._formValues,n),name:n},type:cc.BLUR}),[n,s]),ref:c=>{const f=Q(s._fields,n);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:a,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Q(a.errors,n)},isDirty:{enumerable:!0,get:()=>!!Q(a.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Q(a.touchedFields,n)},error:{enumerable:!0,get:()=>Q(a.errors,n)}})}}const Jc=e=>e.render(oT(e));var aT=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},h1=e=>({isOnSubmit:!e||e===Sn.onSubmit,isOnBlur:e===Sn.onBlur,isOnChange:e===Sn.onChange,isOnAll:e===Sn.all,isOnTouch:e===Sn.onTouched}),m1=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ea=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=Q(e,s);if(i){const{_f:o,...l}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)break;if(o.ref&&t(o.ref,o.name)&&!r)break;ea(l,t)}else Be(l)&&ea(l,t)}}};var lT=(e,t,n)=>{const r=fl(Q(e,n));return ge(r,"root",t[n]),ge(e,n,r),e},Pm=e=>e.type==="file",Dr=e=>typeof e=="function",dc=e=>{if(!Cm)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},xu=e=>Fn(e),Om=e=>e.type==="radio",fc=e=>e instanceof RegExp;const g1={value:!1,isValid:!1},v1={value:!0,isValid:!0};var Jx=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Oe(e[0].attributes.value)?Oe(e[0].value)||e[0].value===""?v1:{value:e[0].value,isValid:!0}:v1:g1}return g1};const y1={isValid:!1,value:null};var Zx=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,y1):y1;function w1(e,t,n="validate"){if(xu(e)||Array.isArray(e)&&e.every(xu)||Zt(e)&&!e)return{type:n,message:xu(e)?e:"",ref:t}}var si=e=>Be(e)&&!fc(e)?e:{value:e,message:""},x1=async(e,t,n,r,s)=>{const{ref:i,refs:o,required:l,maxLength:a,minLength:u,min:c,max:f,pattern:p,validate:h,name:y,valueAsNumber:w,mount:x,disabled:g}=e._f,m=Q(t,y);if(!x||g)return{};const v=o?o[0]:i,b=N=>{r&&v.reportValidity&&(v.setCustomValidity(Zt(N)?"":N||""),v.reportValidity())},E={},T=Om(i),C=dl(i),R=T||C,j=(w||Pm(i))&&Oe(i.value)&&Oe(m)||dc(i)&&i.value===""||m===""||Array.isArray(m)&&!m.length,L=aT.bind(null,y,n,E),A=(N,M,D,k=Qn.maxLength,I=Qn.minLength)=>{const z=N?M:D;E[y]={type:N?k:I,message:z,ref:i,...L(N?k:I,z)}};if(s?!Array.isArray(m)||!m.length:l&&(!R&&(j||at(m))||Zt(m)&&!m||C&&!Jx(o).isValid||T&&!Zx(o).isValid)){const{value:N,message:M}=xu(l)?{value:!!l,message:l}:si(l);if(N&&(E[y]={type:Qn.required,message:M,ref:v,...L(Qn.required,M)},!n))return b(M),E}if(!j&&(!at(c)||!at(f))){let N,M;const D=si(f),k=si(c);if(!at(m)&&!isNaN(m)){const I=i.valueAsNumber||m&&+m;at(D.value)||(N=I>D.value),at(k.value)||(M=I<k.value)}else{const I=i.valueAsDate||new Date(m),z=V=>new Date(new Date().toDateString()+" "+V),_=i.type=="time",$=i.type=="week";Fn(D.value)&&m&&(N=_?z(m)>z(D.value):$?m>D.value:I>new Date(D.value)),Fn(k.value)&&m&&(M=_?z(m)<z(k.value):$?m<k.value:I<new Date(k.value))}if((N||M)&&(A(!!N,D.message,k.message,Qn.max,Qn.min),!n))return b(E[y].message),E}if((a||u)&&!j&&(Fn(m)||s&&Array.isArray(m))){const N=si(a),M=si(u),D=!at(N.value)&&m.length>+N.value,k=!at(M.value)&&m.length<+M.value;if((D||k)&&(A(D,N.message,M.message),!n))return b(E[y].message),E}if(p&&!j&&Fn(m)){const{value:N,message:M}=si(p);if(fc(N)&&!m.match(N)&&(E[y]={type:Qn.pattern,message:M,ref:i,...L(Qn.pattern,M)},!n))return b(M),E}if(h){if(Dr(h)){const N=await h(m,t),M=w1(N,v);if(M&&(E[y]={...M,...L(Qn.validate,M.message)},!n))return b(M.message),E}else if(Be(h)){let N={};for(const M in h){if(!Xt(N)&&!n)break;const D=w1(await h[M](m,t),v,M);D&&(N={...D,...L(M,D.message)},b(D.message),n&&(E[y]=N))}if(!Xt(N)&&(E[y]={ref:v,...N},!n))return E}}return b(!0),E};function uT(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Oe(e)?r++:e[t[r++]];return e}function cT(e){for(const t in e)if(e.hasOwnProperty(t)&&!Oe(e[t]))return!1;return!0}function qe(e,t){const n=Array.isArray(t)?t:jm(t)?[t]:Yx(t),r=n.length===1?e:uT(e,n),s=n.length-1,i=n[s];return r&&delete r[i],s!==0&&(Be(r)&&Xt(r)||Array.isArray(r)&&cT(r))&&qe(e,n.slice(0,-1)),e}var mf=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},pc=e=>at(e)||!Hx(e);function xs(e,t){if(pc(e)||pc(t))return e===t;if(yi(e)&&yi(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(yi(i)&&yi(o)||Be(i)&&Be(o)||Array.isArray(i)&&Array.isArray(o)?!xs(i,o):i!==o)return!1}}return!0}var eb=e=>e.type==="select-multiple",dT=e=>Om(e)||dl(e),gf=e=>dc(e)&&e.isConnected,tb=e=>{for(const t in e)if(Dr(e[t]))return!0;return!1};function hc(e,t={}){const n=Array.isArray(e);if(Be(e)||n)for(const r in e)Array.isArray(e[r])||Be(e[r])&&!tb(e[r])?(t[r]=Array.isArray(e[r])?[]:{},hc(e[r],t[r])):at(e[r])||(t[r]=!0);return t}function nb(e,t,n){const r=Array.isArray(e);if(Be(e)||r)for(const s in e)Array.isArray(e[s])||Be(e[s])&&!tb(e[s])?Oe(t)||pc(n[s])?n[s]=Array.isArray(e[s])?hc(e[s],[]):{...hc(e[s])}:nb(e[s],at(t)?{}:t[s],n[s]):n[s]=!xs(e[s],t[s]);return n}var vf=(e,t)=>nb(e,t,hc(t)),rb=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Oe(e)?e:t?e===""?NaN:e&&+e:n&&Fn(e)?new Date(e):r?r(e):e;function yf(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Pm(t)?t.files:Om(t)?Zx(e.refs).value:eb(t)?[...t.selectedOptions].map(({value:n})=>n):dl(t)?Jx(e.refs).value:rb(Oe(t.value)?e.ref.value:t.value,e)}var fT=(e,t,n,r)=>{const s={};for(const i of e){const o=Q(t,i);o&&ge(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Po=e=>Oe(e)?e:fc(e)?e.source:Be(e)?fc(e.value)?e.value.source:e.value:e,pT=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function b1(e,t,n){const r=Q(e,n);if(r||jm(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=Q(t,i),l=Q(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};s.pop()}return{name:n}}var hT=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,mT=(e,t)=>!fl(Q(e,t)).length&&qe(e,t);const gT={mode:Sn.onSubmit,reValidateMode:Sn.onChange,shouldFocusError:!0};function vT(e={},t){let n={...gT,...e},r={submitCount:0,isDirty:!1,isLoading:Dr(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:!1},s={},i=Be(n.defaultValues)||Be(n.values)?vn(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:vn(i),l={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:mf(),array:mf(),state:mf()},h=e.resetOptions&&e.resetOptions.keepDirtyValues,y=h1(n.mode),w=h1(n.reValidateMode),x=n.criteriaMode===Sn.all,g=O=>F=>{clearTimeout(c),c=setTimeout(O,F)},m=async O=>{if(f.isValid||O){const F=n.resolver?Xt((await L()).errors):await N(s,!0);F!==r.isValid&&p.state.next({isValid:F})}},v=O=>f.isValidating&&p.state.next({isValidating:O}),b=(O,F=[],B,K,W=!0,q=!0)=>{if(K&&B){if(l.action=!0,q&&Array.isArray(Q(s,O))){const Z=B(Q(s,O),K.argA,K.argB);W&&ge(s,O,Z)}if(q&&Array.isArray(Q(r.errors,O))){const Z=B(Q(r.errors,O),K.argA,K.argB);W&&ge(r.errors,O,Z),mT(r.errors,O)}if(f.touchedFields&&q&&Array.isArray(Q(r.touchedFields,O))){const Z=B(Q(r.touchedFields,O),K.argA,K.argB);W&&ge(r.touchedFields,O,Z)}f.dirtyFields&&(r.dirtyFields=vf(i,o)),p.state.next({name:O,isDirty:D(O,F),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ge(o,O,F)},E=(O,F)=>{ge(r.errors,O,F),p.state.next({errors:r.errors})},T=O=>{r.errors=O,p.state.next({errors:r.errors,isValid:!1})},C=(O,F,B,K)=>{const W=Q(s,O);if(W){const q=Q(o,O,Oe(B)?Q(i,O):B);Oe(q)||K&&K.defaultChecked||F?ge(o,O,F?q:yf(W._f)):z(O,q),l.mount&&m()}},R=(O,F,B,K,W)=>{let q=!1,Z=!1;const fe={name:O},Ne=!!(Q(s,O)&&Q(s,O)._f.disabled);if(!B||K){f.isDirty&&(Z=r.isDirty,r.isDirty=fe.isDirty=D(),q=Z!==fe.isDirty);const Pn=Ne||xs(Q(i,O),F);Z=!!(!Ne&&Q(r.dirtyFields,O)),Pn||Ne?qe(r.dirtyFields,O):ge(r.dirtyFields,O,!0),fe.dirtyFields=r.dirtyFields,q=q||f.dirtyFields&&Z!==!Pn}if(B){const Pn=Q(r.touchedFields,O);Pn||(ge(r.touchedFields,O,B),fe.touchedFields=r.touchedFields,q=q||f.touchedFields&&Pn!==B)}return q&&W&&p.state.next(fe),q?fe:{}},j=(O,F,B,K)=>{const W=Q(r.errors,O),q=f.isValid&&Zt(F)&&r.isValid!==F;if(e.delayError&&B?(u=g(()=>E(O,B)),u(e.delayError)):(clearTimeout(c),u=null,B?ge(r.errors,O,B):qe(r.errors,O)),(B?!xs(W,B):W)||!Xt(K)||q){const Z={...K,...q&&Zt(F)?{isValid:F}:{},errors:r.errors,name:O};r={...r,...Z},p.state.next(Z)}v(!1)},L=async O=>n.resolver(o,n.context,fT(O||a.mount,s,n.criteriaMode,n.shouldUseNativeValidation)),A=async O=>{const{errors:F}=await L(O);if(O)for(const B of O){const K=Q(F,B);K?ge(r.errors,B,K):qe(r.errors,B)}else r.errors=F;return F},N=async(O,F,B={valid:!0})=>{for(const K in O){const W=O[K];if(W){const{_f:q,...Z}=W;if(q){const fe=a.array.has(q.name),Ne=await x1(W,o,x,n.shouldUseNativeValidation&&!F,fe);if(Ne[q.name]&&(B.valid=!1,F))break;!F&&(Q(Ne,q.name)?fe?lT(r.errors,Ne,q.name):ge(r.errors,q.name,Ne[q.name]):qe(r.errors,q.name))}Z&&await N(Z,F,B)}}return B.valid},M=()=>{for(const O of a.unMount){const F=Q(s,O);F&&(F._f.refs?F._f.refs.every(B=>!gf(B)):!gf(F._f.ref))&&Je(O)}a.unMount=new Set},D=(O,F)=>(O&&F&&ge(o,O,F),!xs(de(),i)),k=(O,F,B)=>Xx(O,a,{...l.mount?o:Oe(F)?i:Fn(O)?{[O]:F}:F},B,F),I=O=>fl(Q(l.mount?o:i,O,e.shouldUnregister?Q(i,O,[]):[])),z=(O,F,B={})=>{const K=Q(s,O);let W=F;if(K){const q=K._f;q&&(!q.disabled&&ge(o,O,rb(F,q)),W=dc(q.ref)&&at(F)?"":F,eb(q.ref)?[...q.ref.options].forEach(Z=>Z.selected=W.includes(Z.value)):q.refs?dl(q.ref)?q.refs.length>1?q.refs.forEach(Z=>(!Z.defaultChecked||!Z.disabled)&&(Z.checked=Array.isArray(W)?!!W.find(fe=>fe===Z.value):W===Z.value)):q.refs[0]&&(q.refs[0].checked=!!W):q.refs.forEach(Z=>Z.checked=Z.value===W):Pm(q.ref)?q.ref.value="":(q.ref.value=W,q.ref.type||p.values.next({name:O,values:{...o}})))}(B.shouldDirty||B.shouldTouch)&&R(O,W,B.shouldTouch,B.shouldDirty,!0),B.shouldValidate&&re(O)},_=(O,F,B)=>{for(const K in F){const W=F[K],q=`${O}.${K}`,Z=Q(s,q);(a.array.has(O)||!pc(W)||Z&&!Z._f)&&!yi(W)?_(q,W,B):z(q,W,B)}},$=(O,F,B={})=>{const K=Q(s,O),W=a.array.has(O),q=vn(F);ge(o,O,q),W?(p.array.next({name:O,values:{...o}}),(f.isDirty||f.dirtyFields)&&B.shouldDirty&&p.state.next({name:O,dirtyFields:vf(i,o),isDirty:D(O,q)})):K&&!K._f&&!at(q)?_(O,q,B):z(O,q,B),m1(O,a)&&p.state.next({...r}),p.values.next({name:O,values:{...o}}),!l.mount&&t()},V=async O=>{const F=O.target;let B=F.name,K=!0;const W=Q(s,B),q=()=>F.type?yf(W._f):qx(O),Z=fe=>{K=Number.isNaN(fe)||fe===Q(o,B,fe)};if(W){let fe,Ne;const Pn=q(),Zs=O.type===cc.BLUR||O.type===cc.FOCUS_OUT,JE=!pT(W._f)&&!n.resolver&&!Q(r.errors,B)&&!W._f.deps||hT(Zs,Q(r.touchedFields,B),r.isSubmitted,w,y),Dd=m1(B,a,Zs);ge(o,B,Pn),Zs?(W._f.onBlur&&W._f.onBlur(O),u&&u(0)):W._f.onChange&&W._f.onChange(O);const Fd=R(B,Pn,Zs,!1),ZE=!Xt(Fd)||Dd;if(!Zs&&p.values.next({name:B,type:O.type,values:{...o}}),JE)return f.isValid&&m(),ZE&&p.state.next({name:B,...Dd?{}:Fd});if(!Zs&&Dd&&p.state.next({...r}),v(!0),n.resolver){const{errors:Ig}=await L([B]);if(Z(Pn),K){const eC=b1(r.errors,s,B),_g=b1(Ig,s,eC.name||B);fe=_g.error,B=_g.name,Ne=Xt(Ig)}}else fe=(await x1(W,o,x,n.shouldUseNativeValidation))[B],Z(Pn),K&&(fe?Ne=!1:f.isValid&&(Ne=await N(s,!0)));K&&(W._f.deps&&re(W._f.deps),j(B,Ne,fe,Fd))}},ne=(O,F)=>{if(Q(r.errors,F)&&O.focus)return O.focus(),1},re=async(O,F={})=>{let B,K;const W=wu(O);if(v(!0),n.resolver){const q=await A(Oe(O)?O:W);B=Xt(q),K=O?!W.some(Z=>Q(q,Z)):B}else O?(K=(await Promise.all(W.map(async q=>{const Z=Q(s,q);return await N(Z&&Z._f?{[q]:Z}:Z)}))).every(Boolean),!(!K&&!r.isValid)&&m()):K=B=await N(s);return p.state.next({...!Fn(O)||f.isValid&&B!==r.isValid?{}:{name:O},...n.resolver||!O?{isValid:B}:{},errors:r.errors,isValidating:!1}),F.shouldFocus&&!K&&ea(s,ne,O?W:a.mount),K},de=O=>{const F={...i,...l.mount?o:{}};return Oe(O)?F:Fn(O)?Q(F,O):O.map(B=>Q(F,B))},ye=(O,F)=>({invalid:!!Q((F||r).errors,O),isDirty:!!Q((F||r).dirtyFields,O),isTouched:!!Q((F||r).touchedFields,O),error:Q((F||r).errors,O)}),he=O=>{O&&wu(O).forEach(F=>qe(r.errors,F)),p.state.next({errors:O?r.errors:{}})},je=(O,F,B)=>{const K=(Q(s,O,{_f:{}})._f||{}).ref;ge(r.errors,O,{...F,ref:K}),p.state.next({name:O,errors:r.errors,isValid:!1}),B&&B.shouldFocus&&K&&K.focus&&K.focus()},Ie=(O,F)=>Dr(O)?p.values.subscribe({next:B=>O(k(void 0,F),B)}):k(O,F,!0),Je=(O,F={})=>{for(const B of O?wu(O):a.mount)a.mount.delete(B),a.array.delete(B),F.keepValue||(qe(s,B),qe(o,B)),!F.keepError&&qe(r.errors,B),!F.keepDirty&&qe(r.dirtyFields,B),!F.keepTouched&&qe(r.touchedFields,B),!n.shouldUnregister&&!F.keepDefaultValue&&qe(i,B);p.values.next({values:{...o}}),p.state.next({...r,...F.keepDirty?{isDirty:D()}:{}}),!F.keepIsValid&&m()},gt=({disabled:O,name:F,field:B,fields:K,value:W})=>{if(Zt(O)){const q=O?void 0:Oe(W)?yf(B?B._f:Q(K,F)._f):W;ge(o,F,q),R(F,q,!1,!1,!0)}},Gn=(O,F={})=>{let B=Q(s,O);const K=Zt(F.disabled);return ge(s,O,{...B||{},_f:{...B&&B._f?B._f:{ref:{name:O}},name:O,mount:!0,...F}}),a.mount.add(O),B?gt({field:B,disabled:F.disabled,name:O,value:F.value}):C(O,!0,F.value),{...K?{disabled:F.disabled}:{},...n.progressive?{required:!!F.required,min:Po(F.min),max:Po(F.max),minLength:Po(F.minLength),maxLength:Po(F.maxLength),pattern:Po(F.pattern)}:{},name:O,onChange:V,onBlur:V,ref:W=>{if(W){Gn(O,F),B=Q(s,O);const q=Oe(W.value)&&W.querySelectorAll&&W.querySelectorAll("input,select,textarea")[0]||W,Z=dT(q),fe=B._f.refs||[];if(Z?fe.find(Ne=>Ne===q):q===B._f.ref)return;ge(s,O,{_f:{...B._f,...Z?{refs:[...fe.filter(gf),q,...Array.isArray(Q(i,O))?[{}]:[]],ref:{type:q.type,name:O}}:{ref:q}}}),C(O,!1,void 0,q)}else B=Q(s,O,{}),B._f&&(B._f.mount=!1),(n.shouldUnregister||F.shouldUnregister)&&!(Wx(a.array,O)&&l.action)&&a.unMount.add(O)}}},Js=()=>n.shouldFocusError&&ea(s,ne,a.mount),_d=O=>{Zt(O)&&(p.state.next({disabled:O}),ea(s,(F,B)=>{let K=O;const W=Q(s,B);W&&Zt(W._f.disabled)&&(K||(K=W._f.disabled)),F.disabled=K},0,!1))},vo=(O,F)=>async B=>{B&&(B.preventDefault&&B.preventDefault(),B.persist&&B.persist());let K=vn(o);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:W,values:q}=await L();r.errors=W,K=q}else await N(s);qe(r.errors,"root"),Xt(r.errors)?(p.state.next({errors:{}}),await O(K,B)):(F&&await F({...r.errors},B),Js(),setTimeout(Js)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Xt(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Md=(O,F={})=>{Q(s,O)&&(Oe(F.defaultValue)?$(O,Q(i,O)):($(O,F.defaultValue),ge(i,O,F.defaultValue)),F.keepTouched||qe(r.touchedFields,O),F.keepDirty||(qe(r.dirtyFields,O),r.isDirty=F.defaultValue?D(O,Q(i,O)):D()),F.keepError||(qe(r.errors,O),f.isValid&&m()),p.state.next({...r}))},kl=(O,F={})=>{const B=O?vn(O):i,K=vn(B),W=O&&!Xt(O)?K:i;if(F.keepDefaultValues||(i=B),!F.keepValues){if(F.keepDirtyValues||h)for(const q of a.mount)Q(r.dirtyFields,q)?ge(W,q,Q(o,q)):$(q,Q(W,q));else{if(Cm&&Oe(O))for(const q of a.mount){const Z=Q(s,q);if(Z&&Z._f){const fe=Array.isArray(Z._f.refs)?Z._f.refs[0]:Z._f.ref;if(dc(fe)){const Ne=fe.closest("form");if(Ne){Ne.reset();break}}}}s={}}o=e.shouldUnregister?F.keepDefaultValues?vn(i):{}:vn(W),p.array.next({values:{...W}}),p.values.next({values:{...W}})}a={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!f.isValid||!!F.keepIsValid,l.watch=!!e.shouldUnregister,p.state.next({submitCount:F.keepSubmitCount?r.submitCount:0,isDirty:F.keepDirty?r.isDirty:!!(F.keepDefaultValues&&!xs(O,i)),isSubmitted:F.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:F.keepDirtyValues?r.dirtyFields:F.keepDefaultValues&&O?vf(i,O):{},touchedFields:F.keepTouched?r.touchedFields:{},errors:F.keepErrors?r.errors:{},isSubmitSuccessful:F.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},yo=(O,F)=>kl(Dr(O)?O(o):O,F);return{control:{register:Gn,unregister:Je,getFieldState:ye,handleSubmit:vo,setError:je,_executeSchema:L,_getWatch:k,_getDirty:D,_updateValid:m,_removeUnmounted:M,_updateFieldArray:b,_updateDisabledField:gt,_getFieldArray:I,_reset:kl,_resetDefaultValues:()=>Dr(n.defaultValues)&&n.defaultValues().then(O=>{yo(O,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:O=>{r={...r,...O}},_disableForm:_d,_subjects:p,_proxyFormState:f,_setErrors:T,get _fields(){return s},get _formValues(){return o},get _state(){return l},set _state(O){l=O},get _defaultValues(){return i},get _names(){return a},set _names(O){a=O},get _formState(){return r},set _formState(O){r=O},get _options(){return n},set _options(O){n={...n,...O}}},trigger:re,register:Gn,handleSubmit:vo,watch:Ie,setValue:$,getValues:de,reset:yo,resetField:Md,clearErrors:he,unregister:Je,setError:je,setFocus:(O,F={})=>{const B=Q(s,O),K=B&&B._f;if(K){const W=K.refs?K.refs[0]:K.ref;W.focus&&(W.focus(),F.shouldSelect&&W.select())}},getFieldState:ye}}function sb(e={}){const t=ee.useRef(),n=ee.useRef(),[r,s]=ee.useState({isDirty:!1,isValidating:!1,isLoading:Dr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:!1,defaultValues:Dr(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...vT(e,()=>s(o=>({...o}))),formState:r});const i=t.current.control;return i._options=e,Tm({subject:i._subjects.state,next:o=>{Qx(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),ee.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),ee.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),ee.useEffect(()=>{e.values&&!xs(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),ee.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),ee.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=Gx(r,i),t.current}function ib(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=ib(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function J(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ib(e))&&(r&&(r+=" "),r+=t);return r}const yT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1M11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),wT=yT,xT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0",clipRule:"evenodd"})]}),bT=xT,ST=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414",clipRule:"evenodd"})]}),ET=ST,CT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1zM4.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.12"})]}),Rm=CT,kT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5M21 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.5M21 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.5",clipRule:"evenodd"})]}),TT=kT,jT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0",clipRule:"evenodd"})]}),ob=jT,PT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3zm-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.916M3.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.923z",clipRule:"evenodd"})]}),OT=PT,RT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.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.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0",clipRule:"evenodd"})]}),ab=RT,NT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879m-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-.465z",clipRule:"evenodd"})]}),AT=NT,IT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0m9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1M8.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 0",clipRule:"evenodd"})]}),_T=IT,MT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32",clipRule:"evenodd"})]}),i7=MT,LT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067M4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4z",clipRule:"evenodd"})]}),DT=LT,FT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374zM1 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-2z",clipRule:"evenodd"})]}),$T=FT,zT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71m4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71m.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13M7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13m7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11",clipRule:"evenodd"})]}),o7=zT,BT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1M13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1",clipRule:"evenodd"})]}),lb=BT,VT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655",clipRule:"evenodd"})]}),UT=VT,HT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),d.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),d.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),qT=HT,WT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7z",clipRule:"evenodd"})]}),GT=WT,QT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117",clipRule:"evenodd"})]}),Na=QT,KT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141",clipRule:"evenodd"})]}),XT=KT,YT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141",clipRule:"evenodd"})]}),S1=YT,JT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117",clipRule:"evenodd"})]}),ZT=JT,e5=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4zm2-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 2zm1 12v6h8v-6z",clipRule:"evenodd"})]}),t5=e5,n5=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0m7-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 1",clipRule:"evenodd"})]}),r5=n5,s5=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219",clipRule:"evenodd"})]}),i5=s5,o5=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:d.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272M15.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.036M1.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.974M9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0"})}),d.jsx("defs",{children:d.jsx("clipPath",{id:"users_svg__a",children:d.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),a7=o5;function a5(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wl(e){return e instanceof Element||e instanceof a5(e).Element}const Aa=Math.min,en=Math.max,mc=Math.round,Gl=Math.floor,ts=e=>({x:e,y:e}),l5={left:"right",right:"left",bottom:"top",top:"bottom"},u5={start:"end",end:"start"};function Zc(e,t){return typeof e=="function"?e(t):e}function zs(e){return e.split("-")[0]}function pl(e){return e.split("-")[1]}function c5(e){return e==="x"?"y":"x"}function ub(e){return e==="y"?"height":"width"}function ed(e){return["top","bottom"].includes(zs(e))?"y":"x"}function cb(e){return c5(ed(e))}function d5(e,t,n){n===void 0&&(n=!1);const r=pl(e),s=cb(e),i=ub(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=gc(o)),[o,gc(o)]}function f5(e){const t=gc(e);return[eh(e),t,eh(t)]}function eh(e){return e.replace(/start|end/g,t=>u5[t])}function p5(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function h5(e,t,n,r){const s=pl(e);let i=p5(zs(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(eh)))),i}function gc(e){return e.replace(/left|right|bottom|top/g,t=>l5[t])}function m5(e){return{top:0,right:0,bottom:0,left:0,...e}}function g5(e){return typeof e!="number"?m5(e):{top:e,right:e,bottom:e,left:e}}function vc(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function E1(e,t,n){let{reference:r,floating:s}=e;const i=ed(t),o=cb(t),l=ub(o),a=zs(t),u=i==="y",c=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,p=r[l]/2-s[l]/2;let h;switch(a){case"top":h={x:c,y:r.y-s.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-s.width,y:f};break;default:h={x:r.x,y:r.y}}switch(pl(t)){case"start":h[o]-=p*(n&&u?-1:1);break;case"end":h[o]+=p*(n&&u?-1:1);break}return h}const v5=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),a=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=E1(u,r,a),p=r,h={},y=0;for(let w=0;w<l.length;w++){const{name:x,fn:g}=l[w],{x:m,y:v,data:b,reset:E}=await g({x:c,y:f,initialPlacement:r,placement:p,strategy:s,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=m??c,f=v??f,h={...h,[x]:{...h[x],...b}},E&&y<=50){y++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(u=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:c,y:f}=E1(u,p,a)),w=-1;continue}}return{x:c,y:f,placement:p,strategy:s,middlewareData:h}};async function db(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Zc(t,e),y=g5(h),x=l[p?f==="floating"?"reference":"floating":f],g=vc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:a})),m=f==="floating"?{...o.floating,x:r,y:s}:o.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),b=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},E=vc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:m,offsetParent:v,strategy:a}):m);return{top:(g.top-E.top+y.top)/b.y,bottom:(E.bottom-g.bottom+y.bottom)/b.y,left:(g.left-E.left+y.left)/b.x,right:(E.right-g.right+y.right)/b.x}}const y5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:w=!0,...x}=Zc(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=zs(s),m=zs(l)===l,v=await(a.isRTL==null?void 0:a.isRTL(u.floating)),b=p||(m||!w?[gc(l)]:f5(l));!p&&y!=="none"&&b.push(...h5(l,w,y,v));const E=[l,...b],T=await db(t,x),C=[];let R=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&C.push(T[g]),f){const N=d5(s,o,v);C.push(T[N[0]],T[N[1]])}if(R=[...R,{placement:s,overflows:C}],!C.every(N=>N<=0)){var j,L;const N=(((j=i.flip)==null?void 0:j.index)||0)+1,M=E[N];if(M)return{data:{index:N,overflows:R},reset:{placement:M}};let D=(L=R.filter(k=>k.overflows[0]<=0).sort((k,I)=>k.overflows[1]-I.overflows[1])[0])==null?void 0:L.placement;if(!D)switch(h){case"bestFit":{var A;const k=(A=R.map(I=>[I.placement,I.overflows.filter(z=>z>0).reduce((z,_)=>z+_,0)]).sort((I,z)=>I[1]-z[1])[0])==null?void 0:A[0];k&&(D=k);break}case"initialPlacement":D=l;break}if(s!==D)return{reset:{placement:D}}}return{}}}};async function w5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=zs(n),l=pl(n),a=ed(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&a?-1:1,f=Zc(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof y=="number"&&(h=l==="end"?y*-1:y),a?{x:h*c,y:p*u}:{x:p*u,y:h*c}}const x5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:l}=t,a=await w5(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+a.x,y:i+a.y,data:{...a,placement:o}}}}},b5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:i}=t,{apply:o=()=>{},...l}=Zc(e,t),a=await db(t,l),u=zs(n),c=pl(n),f=ed(n)==="y",{width:p,height:h}=r.floating;let y,w;u==="top"||u==="bottom"?(y=u,w=c===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(w=u,y=c==="end"?"top":"bottom");const x=h-a[y],g=p-a[w],m=!t.middlewareData.shift;let v=x,b=g;if(f){const T=p-a.left-a.right;b=c||m?Aa(g,T):T}else{const T=h-a.top-a.bottom;v=c||m?Aa(x,T):T}if(m&&!c){const T=en(a.left,0),C=en(a.right,0),R=en(a.top,0),j=en(a.bottom,0);f?b=p-2*(T!==0||C!==0?T+C:en(a.left,a.right)):v=h-2*(R!==0||j!==0?R+j:en(a.top,a.bottom))}await o({...t,availableWidth:b,availableHeight:v});const E=await s.getDimensions(i.floating);return p!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function ns(e){return fb(e)?(e.nodeName||"").toLowerCase():"#document"}function $t(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yr(e){var t;return(t=(fb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fb(e){return e instanceof Node||e instanceof $t(e).Node}function dr(e){return e instanceof Element||e instanceof $t(e).Element}function Un(e){return e instanceof HTMLElement||e instanceof $t(e).HTMLElement}function C1(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $t(e).ShadowRoot}function hl(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=cn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function S5(e){return["table","td","th"].includes(ns(e))}function Nm(e){const t=Am(),n=cn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function E5(e){let t=to(e);for(;Un(t)&&!td(t);){if(Nm(t))return t;t=to(t)}return null}function Am(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function td(e){return["html","body","#document"].includes(ns(e))}function cn(e){return $t(e).getComputedStyle(e)}function nd(e){return dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function to(e){if(ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||C1(e)&&e.host||yr(e);return C1(t)?t.host:t}function pb(e){const t=to(e);return td(t)?e.ownerDocument?e.ownerDocument.body:e.body:Un(t)&&hl(t)?t:pb(t)}function Ia(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=pb(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=$t(s);return i?t.concat(o,o.visualViewport||[],hl(s)?s:[],o.frameElement&&n?Ia(o.frameElement):[]):t.concat(s,Ia(s,[],n))}function hb(e){const t=cn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Un(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,l=mc(n)!==i||mc(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function Im(e){return dr(e)?e:e.contextElement}function Ti(e){const t=Im(e);if(!Un(t))return ts(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=hb(t);let o=(i?mc(n.width):n.width)/r,l=(i?mc(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const C5=ts(0);function mb(e){const t=$t(e);return!Am()||!t.visualViewport?C5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function k5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$t(e)?!1:t}function Bs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Im(e);let o=ts(1);t&&(r?dr(r)&&(o=Ti(r)):o=Ti(e));const l=k5(i,n,r)?mb(i):ts(0);let a=(s.left+l.x)/o.x,u=(s.top+l.y)/o.y,c=s.width/o.x,f=s.height/o.y;if(i){const p=$t(i),h=r&&dr(r)?$t(r):r;let y=p.frameElement;for(;y&&r&&h!==p;){const w=Ti(y),x=y.getBoundingClientRect(),g=cn(y),m=x.left+(y.clientLeft+parseFloat(g.paddingLeft))*w.x,v=x.top+(y.clientTop+parseFloat(g.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,f*=w.y,a+=m,u+=v,y=$t(y).frameElement}}return vc({width:c,height:f,x:a,y:u})}function T5(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Un(n),i=yr(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},l=ts(1);const a=ts(0);if((s||!s&&r!=="fixed")&&((ns(n)!=="body"||hl(i))&&(o=nd(n)),Un(n))){const u=Bs(n);l=Ti(n),a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-o.scrollLeft*l.x+a.x,y:t.y*l.y-o.scrollTop*l.y+a.y}}function j5(e){return Array.from(e.getClientRects())}function gb(e){return Bs(yr(e)).left+nd(e).scrollLeft}function P5(e){const t=yr(e),n=nd(e),r=e.ownerDocument.body,s=en(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=en(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+gb(e);const l=-n.scrollTop;return cn(r).direction==="rtl"&&(o+=en(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:l}}function O5(e,t){const n=$t(e),r=yr(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,a=0;if(s){i=s.width,o=s.height;const u=Am();(!u||u&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}return{width:i,height:o,x:l,y:a}}function R5(e,t){const n=Bs(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Un(e)?Ti(e):ts(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,a=s*i.x,u=r*i.y;return{width:o,height:l,x:a,y:u}}function k1(e,t,n){let r;if(t==="viewport")r=O5(e,n);else if(t==="document")r=P5(yr(e));else if(dr(t))r=R5(t,n);else{const s=mb(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return vc(r)}function vb(e,t){const n=to(e);return n===t||!dr(n)||td(n)?!1:cn(n).position==="fixed"||vb(n,t)}function N5(e,t){const n=t.get(e);if(n)return n;let r=Ia(e,[],!1).filter(l=>dr(l)&&ns(l)!=="body"),s=null;const i=cn(e).position==="fixed";let o=i?to(e):e;for(;dr(o)&&!td(o);){const l=cn(o),a=Nm(o);!a&&l.position==="fixed"&&(s=null),(i?!a&&!s:!a&&l.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||hl(o)&&!a&&vb(e,o))?r=r.filter(c=>c!==o):s=l,o=to(o)}return t.set(e,r),r}function A5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?N5(t,this._c):[].concat(n),r],l=o[0],a=o.reduce((u,c)=>{const f=k1(t,c,s);return u.top=en(f.top,u.top),u.right=Aa(f.right,u.right),u.bottom=Aa(f.bottom,u.bottom),u.left=en(f.left,u.left),u},k1(t,l,s));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function I5(e){const{width:t,height:n}=hb(e);return{width:t,height:n}}function _5(e,t,n){const r=Un(t),s=yr(t),i=n==="fixed",o=Bs(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=ts(0);if(r||!r&&!i)if((ns(t)!=="body"||hl(s))&&(l=nd(t)),r){const u=Bs(t,!0,i,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else s&&(a.x=gb(s));return{x:o.left+l.scrollLeft-a.x,y:o.top+l.scrollTop-a.y,width:o.width,height:o.height}}function T1(e,t){return!Un(e)||cn(e).position==="fixed"?null:t?t(e):e.offsetParent}function yb(e,t){const n=$t(e);if(!Un(e))return n;let r=T1(e,t);for(;r&&S5(r)&&cn(r).position==="static";)r=T1(r,t);return r&&(ns(r)==="html"||ns(r)==="body"&&cn(r).position==="static"&&!Nm(r))?n:r||E5(e)||n}const M5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||yb,i=this.getDimensions;return{reference:_5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function L5(e){return cn(e).direction==="rtl"}const D5={convertOffsetParentRelativeRectToViewportRelativeRect:T5,getDocumentElement:yr,getClippingRect:A5,getOffsetParent:yb,getElementRects:M5,getClientRects:j5,getDimensions:I5,getScale:Ti,isElement:dr,isRTL:L5};function F5(e,t){let n=null,r;const s=yr(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function o(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:u,top:c,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;const h=Gl(c),y=Gl(s.clientWidth-(u+f)),w=Gl(s.clientHeight-(c+p)),x=Gl(u),m={rootMargin:-h+"px "+-y+"px "+-w+"px "+-x+"px",threshold:en(0,Aa(1,a))||1};let v=!0;function b(E){const T=E[0].intersectionRatio;if(T!==a){if(!v)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(b,{...m,root:s.ownerDocument})}catch{n=new IntersectionObserver(b,m)}n.observe(e)}return o(!0),i}function $5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Im(e),c=s||i?[...u?Ia(u):[],...Ia(t)]:[];c.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const f=u&&l?F5(u,n):null;let p=-1,h=null;o&&(h=new ResizeObserver(g=>{let[m]=g;m&&m.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),u&&!a&&h.observe(u),h.observe(t));let y,w=a?Bs(e):null;a&&x();function x(){const g=Bs(e);w&&(g.x!==w.x||g.y!==w.y||g.width!==w.width||g.height!==w.height)&&n(),w=g,y=requestAnimationFrame(x)}return n(),()=>{c.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),f&&f(),h&&h.disconnect(),h=null,a&&cancelAnimationFrame(y)}}const z5=y5,B5=b5,V5=(e,t,n)=>{const r=new Map,s={platform:D5,...n},i={...s.platform,_c:r};return v5(e,t,{...s,platform:i})};var bu=typeof document<"u"?S.useLayoutEffect:S.useEffect;function yc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!yc(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!yc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function wb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function j1(e,t){const n=wb(e);return Math.round(t*n)/n}function P1(e){const t=S.useRef(e);return bu(()=>{t.current=e}),t}function U5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,f]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=S.useState(r);yc(p,r)||h(r);const[y,w]=S.useState(null),[x,g]=S.useState(null),m=S.useCallback(I=>{I!=T.current&&(T.current=I,w(I))},[w]),v=S.useCallback(I=>{I!==C.current&&(C.current=I,g(I))},[g]),b=i||y,E=o||x,T=S.useRef(null),C=S.useRef(null),R=S.useRef(c),j=P1(a),L=P1(s),A=S.useCallback(()=>{if(!T.current||!C.current)return;const I={placement:t,strategy:n,middleware:p};L.current&&(I.platform=L.current),V5(T.current,C.current,I).then(z=>{const _={...z,isPositioned:!0};N.current&&!yc(R.current,_)&&(R.current=_,vr.flushSync(()=>{f(_)}))})},[p,t,n,L]);bu(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(I=>({...I,isPositioned:!1})))},[u]);const N=S.useRef(!1);bu(()=>(N.current=!0,()=>{N.current=!1}),[]),bu(()=>{if(b&&(T.current=b),E&&(C.current=E),b&&E){if(j.current)return j.current(b,E,A);A()}},[b,E,A,j]);const M=S.useMemo(()=>({reference:T,floating:C,setReference:m,setFloating:v}),[m,v]),D=S.useMemo(()=>({reference:b,floating:E}),[b,E]),k=S.useMemo(()=>{const I={position:n,left:0,top:0};if(!D.floating)return I;const z=j1(D.floating,c.x),_=j1(D.floating,c.y);return l?{...I,transform:"translate("+z+"px, "+_+"px)",...wb(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:_}},[n,l,D.floating,c.x,c.y]);return S.useMemo(()=>({...c,update:A,refs:M,elements:D,floatingStyles:k}),[c,A,M,D,k])}var xb=typeof document<"u"?S.useLayoutEffect:S.useEffect;let wf=!1,H5=0;const O1=()=>"floating-ui-"+H5++;function q5(){const[e,t]=S.useState(()=>wf?O1():void 0);return xb(()=>{e==null&&t(O1())},[]),S.useEffect(()=>{wf||(wf=!0)},[]),e}const W5=hy["useId".toString()],G5=W5||q5;function Q5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(s=>s!==n))||[])}}}const K5=S.createContext(null),X5=()=>S.useContext(K5),Y5=hy["useInsertionEffect".toString()],J5=Y5||(e=>e());function Z5(e){const t=S.useRef(()=>{});return J5(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function ej(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:s}=e,[i,o]=S.useState(null),l=((t=e.elements)==null?void 0:t.reference)||i,a=U5(e),u=X5(),c=Z5((b,E)=>{b&&(p.current.openEvent=E),r==null||r(b,E)}),f=S.useRef(null),p=S.useRef({}),h=S.useState(()=>Q5())[0],y=G5(),w=S.useCallback(b=>{const E=Wl(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;a.refs.setReference(E)},[a.refs]),x=S.useCallback(b=>{(Wl(b)||b===null)&&(f.current=b,o(b)),(Wl(a.refs.reference.current)||a.refs.reference.current===null||b!==null&&!Wl(b))&&a.refs.setReference(b)},[a.refs]),g=S.useMemo(()=>({...a.refs,setReference:x,setPositionReference:w,domReference:f}),[a.refs,x,w]),m=S.useMemo(()=>({...a.elements,domReference:l}),[a.elements,l]),v=S.useMemo(()=>({...a,refs:g,elements:m,dataRef:p,nodeId:s,floatingId:y,events:h,open:n,onOpenChange:c}),[a,s,y,h,n,c,g,m]);return xb(()=>{const b=u==null?void 0:u.nodesRef.current.find(E=>E.id===s);b&&(b.context=v)}),S.useMemo(()=>({...a,context:v,refs:g,elements:m}),[a,g,m,v])}let tj={data:""},nj=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||tj,rj=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,sj=/\/\*[^]*?\*\/| +/g,R1=/\n+/g,Tr=(e,t)=>{let n="",r="",s="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?Tr(o,i):i+"{"+Tr(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=Tr(o,t?t.replace(/([^,])+/g,l=>i.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,l):l?l+" "+a:a)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=Tr.p?Tr.p(i,o):i+":"+o+";")}return n+(t&&s?t+"{"+s+"}":s)+r},Kn={},bb=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+bb(e[n]);return t}return e},ij=(e,t,n,r,s)=>{let i=bb(e),o=Kn[i]||(Kn[i]=(a=>{let u=0,c=11;for(;u<a.length;)c=101*c+a.charCodeAt(u++)>>>0;return"go"+c})(i));if(!Kn[o]){let a=i!==e?e:(u=>{let c,f,p=[{}];for(;c=rj.exec(u.replace(sj,""));)c[4]?p.shift():c[3]?(f=c[3].replace(R1," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][c[1]]=c[2].replace(R1," ").trim();return p[0]})(e);Kn[o]=Tr(s?{["@keyframes "+o]:a}:a,n?"":"."+o)}let l=n&&Kn.g?Kn.g:null;return n&&(Kn.g=Kn[o]),((a,u,c,f)=>{f?u.data=u.data.replace(f,a):u.data.indexOf(a)===-1&&(u.data=c?a+u.data:u.data+a)})(Kn[o],t,r,l),o},oj=(e,t,n)=>e.reduce((r,s,i)=>{let o=t[i];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?"":Tr(l,""):l===!1?"":l}return r+s+(o??"")},"");function rd(e){let t=this||{},n=e.call?e(t.p):e;return ij(n.unshift?n.raw?oj(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,nj(t.target),t.g,t.o,t.k)}let Sb,th,nh;rd.bind({g:1});let fr=rd.bind({k:1});function aj(e,t,n,r){Tr.p=t,Sb=e,th=n,nh=r}function as(e,t){let n=this||{};return function(){let r=arguments;function s(i,o){let l=Object.assign({},i),a=l.className||s.className;n.p=Object.assign({theme:th&&th()},l),n.o=/ *go\d+/.test(a),l.className=rd.apply(n,r)+(a?" "+a:""),t&&(l.ref=o);let u=e;return e[0]&&(u=l.as||e,delete l.as),nh&&u[0]&&nh(l),Sb(u,l)}return t?t(s):s}}var lj=e=>typeof e=="function",wc=(e,t)=>lj(e)?e(t):e,uj=(()=>{let e=0;return()=>(++e).toString()})(),Eb=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),cj=20,Su=new Map,dj=1e3,N1=e=>{if(Su.has(e))return;let t=setTimeout(()=>{Su.delete(e),Ks({type:4,toastId:e})},dj);Su.set(e,t)},fj=e=>{let t=Su.get(e);t&&clearTimeout(t)},rh=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,cj)};case 1:return t.toast.id&&fj(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?rh(e,{type:1,toast:n}):rh(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?N1(r):e.toasts.forEach(i=>{N1(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+s}))}}},Eu=[],Cu={toasts:[],pausedAt:void 0},Ks=e=>{Cu=rh(Cu,e),Eu.forEach(t=>{t(Cu)})},pj={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},hj=(e={})=>{let[t,n]=S.useState(Cu);S.useEffect(()=>(Eu.push(n),()=>{let s=Eu.indexOf(n);s>-1&&Eu.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var i,o;return{...e,...e[s.type],...s,duration:s.duration||((i=e[s.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||pj[s.type],style:{...e.style,...(o=e[s.type])==null?void 0:o.style,...s.style}}});return{...t,toasts:r}},mj=(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)||uj()}),ml=e=>(t,n)=>{let r=mj(t,e,n);return Ks({type:2,toast:r}),r.id},Dt=(e,t)=>ml("blank")(e,t);Dt.error=ml("error");Dt.success=ml("success");Dt.loading=ml("loading");Dt.custom=ml("custom");Dt.dismiss=e=>{Ks({type:3,toastId:e})};Dt.remove=e=>Ks({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(s=>(Dt.success(wc(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{Dt.error(wc(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var gj=(e,t)=>{Ks({type:1,toast:{id:e,height:t}})},vj=()=>{Ks({type:5,time:Date.now()})},yj=e=>{let{toasts:t,pausedAt:n}=hj(e);S.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(l=>{if(l.duration===1/0)return;let a=(l.duration||0)+l.pauseDuration-(i-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=S.useCallback(()=>{n&&Ks({type:6,time:Date.now()})},[n]),s=S.useCallback((i,o)=>{let{reverseOrder:l=!1,gutter:a=8,defaultPosition:u}=o||{},c=t.filter(h=>(h.position||u)===(i.position||u)&&h.height),f=c.findIndex(h=>h.id===i.id),p=c.filter((h,y)=>y<f&&h.visible).length;return c.filter(h=>h.visible).slice(...l?[p+1]:[0,p]).reduce((h,y)=>h+(y.height||0)+a,0)},[t]);return{toasts:t,handlers:{updateHeight:gj,startPause:vj,endPause:r,calculateOffset:s}}},wj=fr`
|
|
50
42
|
from {
|
|
51
43
|
transform: scale(0) rotate(45deg);
|
|
52
44
|
opacity: 0;
|
|
@@ -54,7 +46,7 @@ from {
|
|
|
54
46
|
to {
|
|
55
47
|
transform: scale(1) rotate(45deg);
|
|
56
48
|
opacity: 1;
|
|
57
|
-
}`,
|
|
49
|
+
}`,xj=fr`
|
|
58
50
|
from {
|
|
59
51
|
transform: scale(0);
|
|
60
52
|
opacity: 0;
|
|
@@ -62,7 +54,7 @@ from {
|
|
|
62
54
|
to {
|
|
63
55
|
transform: scale(1);
|
|
64
56
|
opacity: 1;
|
|
65
|
-
}`,
|
|
57
|
+
}`,bj=fr`
|
|
66
58
|
from {
|
|
67
59
|
transform: scale(0) rotate(90deg);
|
|
68
60
|
opacity: 0;
|
|
@@ -70,7 +62,7 @@ from {
|
|
|
70
62
|
to {
|
|
71
63
|
transform: scale(1) rotate(90deg);
|
|
72
64
|
opacity: 1;
|
|
73
|
-
}`,
|
|
65
|
+
}`,Sj=as("div")`
|
|
74
66
|
width: 20px;
|
|
75
67
|
opacity: 0;
|
|
76
68
|
height: 20px;
|
|
@@ -79,14 +71,14 @@ to {
|
|
|
79
71
|
position: relative;
|
|
80
72
|
transform: rotate(45deg);
|
|
81
73
|
|
|
82
|
-
animation: ${
|
|
74
|
+
animation: ${wj} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
83
75
|
forwards;
|
|
84
76
|
animation-delay: 100ms;
|
|
85
77
|
|
|
86
78
|
&:after,
|
|
87
79
|
&:before {
|
|
88
80
|
content: '';
|
|
89
|
-
animation: ${
|
|
81
|
+
animation: ${xj} 0.15s ease-out forwards;
|
|
90
82
|
animation-delay: 150ms;
|
|
91
83
|
position: absolute;
|
|
92
84
|
border-radius: 3px;
|
|
@@ -99,18 +91,18 @@ to {
|
|
|
99
91
|
}
|
|
100
92
|
|
|
101
93
|
&:before {
|
|
102
|
-
animation: ${
|
|
94
|
+
animation: ${bj} 0.15s ease-out forwards;
|
|
103
95
|
animation-delay: 180ms;
|
|
104
96
|
transform: rotate(90deg);
|
|
105
97
|
}
|
|
106
|
-
`,
|
|
98
|
+
`,Ej=fr`
|
|
107
99
|
from {
|
|
108
100
|
transform: rotate(0deg);
|
|
109
101
|
}
|
|
110
102
|
to {
|
|
111
103
|
transform: rotate(360deg);
|
|
112
104
|
}
|
|
113
|
-
`,
|
|
105
|
+
`,Cj=as("div")`
|
|
114
106
|
width: 12px;
|
|
115
107
|
height: 12px;
|
|
116
108
|
box-sizing: border-box;
|
|
@@ -118,8 +110,8 @@ to {
|
|
|
118
110
|
border-radius: 100%;
|
|
119
111
|
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
120
112
|
border-right-color: ${e=>e.primary||"#616161"};
|
|
121
|
-
animation: ${
|
|
122
|
-
`,
|
|
113
|
+
animation: ${Ej} 1s linear infinite;
|
|
114
|
+
`,kj=fr`
|
|
123
115
|
from {
|
|
124
116
|
transform: scale(0) rotate(45deg);
|
|
125
117
|
opacity: 0;
|
|
@@ -127,7 +119,7 @@ from {
|
|
|
127
119
|
to {
|
|
128
120
|
transform: scale(1) rotate(45deg);
|
|
129
121
|
opacity: 1;
|
|
130
|
-
}`,
|
|
122
|
+
}`,Tj=fr`
|
|
131
123
|
0% {
|
|
132
124
|
height: 0;
|
|
133
125
|
width: 0;
|
|
@@ -141,7 +133,7 @@ to {
|
|
|
141
133
|
100% {
|
|
142
134
|
opacity: 1;
|
|
143
135
|
height: 10px;
|
|
144
|
-
}`,
|
|
136
|
+
}`,jj=as("div")`
|
|
145
137
|
width: 20px;
|
|
146
138
|
opacity: 0;
|
|
147
139
|
height: 20px;
|
|
@@ -150,13 +142,13 @@ to {
|
|
|
150
142
|
position: relative;
|
|
151
143
|
transform: rotate(45deg);
|
|
152
144
|
|
|
153
|
-
animation: ${
|
|
145
|
+
animation: ${kj} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
154
146
|
forwards;
|
|
155
147
|
animation-delay: 100ms;
|
|
156
148
|
&:after {
|
|
157
149
|
content: '';
|
|
158
150
|
box-sizing: border-box;
|
|
159
|
-
animation: ${
|
|
151
|
+
animation: ${Tj} 0.2s ease-out forwards;
|
|
160
152
|
opacity: 0;
|
|
161
153
|
animation-delay: 200ms;
|
|
162
154
|
position: absolute;
|
|
@@ -168,16 +160,16 @@ to {
|
|
|
168
160
|
height: 10px;
|
|
169
161
|
width: 6px;
|
|
170
162
|
}
|
|
171
|
-
`,
|
|
163
|
+
`,Pj=as("div")`
|
|
172
164
|
position: absolute;
|
|
173
|
-
`,
|
|
165
|
+
`,Oj=as("div")`
|
|
174
166
|
position: relative;
|
|
175
167
|
display: flex;
|
|
176
168
|
justify-content: center;
|
|
177
169
|
align-items: center;
|
|
178
170
|
min-width: 20px;
|
|
179
171
|
min-height: 20px;
|
|
180
|
-
`,
|
|
172
|
+
`,Rj=fr`
|
|
181
173
|
from {
|
|
182
174
|
transform: scale(0.6);
|
|
183
175
|
opacity: 0.4;
|
|
@@ -185,20 +177,20 @@ from {
|
|
|
185
177
|
to {
|
|
186
178
|
transform: scale(1);
|
|
187
179
|
opacity: 1;
|
|
188
|
-
}`,
|
|
180
|
+
}`,Nj=as("div")`
|
|
189
181
|
position: relative;
|
|
190
182
|
transform: scale(0.6);
|
|
191
183
|
opacity: 0.4;
|
|
192
184
|
min-width: 20px;
|
|
193
|
-
animation: ${
|
|
185
|
+
animation: ${Rj} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
194
186
|
forwards;
|
|
195
|
-
`,
|
|
187
|
+
`,Aj=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?S.createElement(Nj,null,t):t:n==="blank"?null:S.createElement(Oj,null,S.createElement(Cj,{...r}),n!=="loading"&&S.createElement(Pj,null,n==="error"?S.createElement(Sj,{...r}):S.createElement(jj,{...r})))},Ij=e=>`
|
|
196
188
|
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
197
189
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
198
|
-
`,
|
|
190
|
+
`,_j=e=>`
|
|
199
191
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
200
192
|
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
201
|
-
`,
|
|
193
|
+
`,Mj="0%{opacity:0;} 100%{opacity:1;}",Lj="0%{opacity:1;} 100%{opacity:0;}",Dj=as("div")`
|
|
202
194
|
display: flex;
|
|
203
195
|
align-items: center;
|
|
204
196
|
background: #fff;
|
|
@@ -210,27 +202,31 @@ to {
|
|
|
210
202
|
pointer-events: auto;
|
|
211
203
|
padding: 8px 10px;
|
|
212
204
|
border-radius: 8px;
|
|
213
|
-
`,
|
|
205
|
+
`,Fj=as("div")`
|
|
214
206
|
display: flex;
|
|
215
207
|
justify-content: center;
|
|
216
208
|
margin: 4px 10px;
|
|
217
209
|
color: inherit;
|
|
218
210
|
flex: 1 1 auto;
|
|
219
211
|
white-space: pre-line;
|
|
220
|
-
|
|
212
|
+
`,$j=(e,t)=>{let n=e.includes("top")?1:-1,[r,s]=Eb()?[Mj,Lj]:[Ij(n),_j(n)];return{animation:t?`${fr(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${fr(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},zj=S.memo(({toast:e,position:t,style:n,children:r})=>{let s=e.height?$j(e.position||t||"top-center",e.visible):{opacity:0},i=S.createElement(Aj,{toast:e}),o=S.createElement(Fj,{...e.ariaProps},wc(e.message,e));return S.createElement(Dj,{className:e.className,style:{...s,...n,...e.style}},typeof r=="function"?r({icon:i,message:o}):S.createElement(S.Fragment,null,i,o))});aj(S.createElement);var Bj=({id:e,className:t,style:n,onHeightUpdate:r,children:s})=>{let i=S.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 S.createElement("div",{ref:i,className:t,style:n},s)},Vj=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Eb()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...s}},Uj=rd`
|
|
221
213
|
z-index: 9999;
|
|
222
214
|
> * {
|
|
223
215
|
pointer-events: auto;
|
|
224
216
|
}
|
|
225
|
-
`,Na=16,$k=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:a,handlers:l}=hk(n);return b.createElement("div",{style:{position:"fixed",zIndex:9999,top:Na,left:Na,right:Na,bottom:Na,pointerEvents:"none",...i},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let d=u.position||t,f=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=Lk(d,f);return b.createElement(Mk,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?Fk:"",style:h},u.type==="custom"?Yl(u.message,u):s?s(u):b.createElement(Dk,{toast:u,position:d}))}))},ki=jt,Bk=Object.defineProperty,zk=(e,t)=>{for(var n in t)Bk(e,n,{get:t[n],enumerable:!0})},dn={};zk(dn,{assign:()=>Hk,colors:()=>yr,createStringInterpolator:()=>Kh,skipAnimation:()=>Nx,to:()=>Ox,willAdvance:()=>Gh});var Vh=Jo(),Z=e=>Yo(e,Vh),Uh=Jo();Z.write=e=>Yo(e,Uh);var Tu=Jo();Z.onStart=e=>Yo(e,Tu);var Hh=Jo();Z.onFrame=e=>Yo(e,Hh);var qh=Jo();Z.onFinish=e=>Yo(e,qh);var Fs=[];Z.setTimeout=(e,t)=>{const n=Z.now()+t,r=()=>{const i=Fs.findIndex(o=>o.cancel==r);~i&&Fs.splice(i,1),lr-=~i?1:0},s={time:n,handler:e,cancel:r};return Fs.splice(Cx(n),0,s),lr+=1,Ex(),s};var Cx=e=>~(~Fs.findIndex(t=>t.time>e)||~Fs.length);Z.cancel=e=>{Tu.delete(e),Hh.delete(e),qh.delete(e),Vh.delete(e),Uh.delete(e)};Z.sync=e=>{mf=!0,Z.batchedUpdates(e),mf=!1};Z.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...s){t=s,Z.onStart(n)}return r.handler=e,r.cancel=()=>{Tu.delete(n),t=null},r};var Qh=typeof window<"u"?window.requestAnimationFrame:()=>{};Z.use=e=>Qh=e;Z.now=typeof performance<"u"?()=>performance.now():Date.now;Z.batchedUpdates=e=>e();Z.catch=console.error;Z.frameLoop="always";Z.advance=()=>{Z.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):jx()};var ar=-1,lr=0,mf=!1;function Yo(e,t){mf?(t.delete(e),e(0)):(t.add(e),Ex())}function Ex(){ar<0&&(ar=0,Z.frameLoop!=="demand"&&Qh(kx))}function Vk(){ar=-1}function kx(){~ar&&(Qh(kx),Z.batchedUpdates(jx))}function jx(){const e=ar;ar=Z.now();const t=Cx(ar);if(t&&(Rx(Fs.splice(0,t),n=>n.handler()),lr-=t),!lr){Vk();return}Tu.flush(),Vh.flush(e?Math.min(64,ar-e):16.667),Hh.flush(),Uh.flush(),qh.flush()}function Jo(){let e=new Set,t=e;return{add(n){lr+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return lr-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,lr-=t.size,Rx(t,r=>r(n)&&e.add(r)),lr+=e.size,t=e)}}}function Rx(e,t){e.forEach(n=>{try{t(n)}catch(r){Z.catch(r)}})}function gf(){}var Uk=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),V={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 _n(e,t){if(V.arr(e)){if(!V.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 Y=(e,t)=>e.forEach(t);function kn(e,t,n){if(V.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var nt=e=>V.und(e)?[]:V.arr(e)?e:[e];function Gi(e,t){if(e.size){const n=Array.from(e);e.clear(),Y(n,t)}}var Mi=(e,...t)=>Gi(e,n=>n(...t)),Wh=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Kh,Ox,yr=null,Nx=!1,Gh=gf,Hk=e=>{e.to&&(Ox=e.to),e.now&&(Z.now=e.now),e.colors!==void 0&&(yr=e.colors),e.skipAnimation!=null&&(Nx=e.skipAnimation),e.createStringInterpolator&&(Kh=e.createStringInterpolator),e.requestAnimationFrame&&Z.use(e.requestAnimationFrame),e.batchedUpdates&&(Z.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Gh=e.willAdvance),e.frameLoop&&(Z.frameLoop=e.frameLoop)},Xi=new Set,Vt=[],qc=[],Jl=0,Iu={get idle(){return!Xi.size&&!Vt.length},start(e){Jl>e.priority?(Xi.add(e),Z.onStart(qk)):(Px(e),Z(vf))},advance:vf,sort(e){if(Jl)Z.onFrame(()=>Iu.sort(e));else{const t=Vt.indexOf(e);~t&&(Vt.splice(t,1),Ax(e))}},clear(){Vt=[],Xi.clear()}};function qk(){Xi.forEach(Px),Xi.clear(),Z(vf)}function Px(e){Vt.includes(e)||Ax(e)}function Ax(e){Vt.splice(Qk(Vt,t=>t.priority>e.priority),0,e)}function vf(e){const t=qc;for(let n=0;n<Vt.length;n++){const r=Vt[n];Jl=r.priority,r.idle||(Gh(r),r.advance(e),r.idle||t.push(r))}return Jl=0,qc=Vt,qc.length=0,Vt=t,Vt.length>0}function Qk(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Wk=(e,t,n)=>Math.min(Math.max(n,e),t),Kk={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},an="[-+]?\\d*\\.?\\d+",Zl=an+"%";function Du(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Gk=new RegExp("rgb"+Du(an,an,an)),Xk=new RegExp("rgba"+Du(an,an,an,an)),Yk=new RegExp("hsl"+Du(an,Zl,Zl)),Jk=new RegExp("hsla"+Du(an,Zl,Zl,an)),Zk=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ej=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,tj=/^#([0-9a-fA-F]{6})$/,nj=/^#([0-9a-fA-F]{8})$/;function rj(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=tj.exec(e))?parseInt(t[1]+"ff",16)>>>0:yr&&yr[e]!==void 0?yr[e]:(t=Gk.exec(e))?(ps(t[1])<<24|ps(t[2])<<16|ps(t[3])<<8|255)>>>0:(t=Xk.exec(e))?(ps(t[1])<<24|ps(t[2])<<16|ps(t[3])<<8|Hg(t[4]))>>>0:(t=Zk.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=nj.exec(e))?parseInt(t[1],16)>>>0:(t=ej.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Yk.exec(e))?(Vg(Ug(t[1]),Pa(t[2]),Pa(t[3]))|255)>>>0:(t=Jk.exec(e))?(Vg(Ug(t[1]),Pa(t[2]),Pa(t[3]))|Hg(t[4]))>>>0:null}function Qc(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 Vg(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r,i=Qc(s,r,e+1/3),o=Qc(s,r,e),a=Qc(s,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function ps(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ug(e){return(parseFloat(e)%360+360)%360/360}function Hg(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Pa(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function qg(e){let t=rj(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,s=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${s}, ${i})`}var Ro=(e,t,n)=>{if(V.fun(e))return e;if(V.arr(e))return Ro({range:e,output:t,extrapolate:n});if(V.str(e.output[0]))return Kh(e);const r=e,s=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const d=ij(u,i);return sj(u,i[d],i[d+1],s[d],s[d+1],l,o,a,r.map)}};function sj(e,t,n,r,s,i,o,a,l){let u=l?l(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===s?r:t===n?e<=t?r:s:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:s===1/0?u=u+r:u=u*(s-r)+r,u)}function ij(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var oj=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,s=t==="end"?Math.floor(r):Math.ceil(r);return Wk(0,1,s/e)},eu=1.70158,Aa=eu*1.525,Qg=eu+1,Wg=2*Math.PI/3,Kg=2*Math.PI/4.5,_a=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,aj={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=>Qg*e*e*e-eu*e*e,easeOutBack:e=>1+Qg*Math.pow(e-1,3)+eu*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Aa+1)*2*e-Aa)/2:(Math.pow(2*e-2,2)*((Aa+1)*(e*2-2)+Aa)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Wg),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Wg)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Kg))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Kg)/2+1,easeInBounce:e=>1-_a(1-e),easeOutBounce:_a,easeInOutBounce:e=>e<.5?(1-_a(1-2*e))/2:(1+_a(2*e-1))/2,steps:oj},Oo=Symbol.for("FluidValue.get"),Ys=Symbol.for("FluidValue.observers"),zt=e=>!!(e&&e[Oo]),dt=e=>e&&e[Oo]?e[Oo]():e,Gg=e=>e[Ys]||null;function lj(e,t){e.eventObserved?e.eventObserved(t):e(t)}function No(e,t){const n=e[Ys];n&&n.forEach(r=>{lj(r,t)})}var _x=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");uj(this,e)}},uj=(e,t)=>Tx(e,Oo,t);function oi(e,t){if(e[Oo]){let n=e[Ys];n||Tx(e,Ys,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Po(e,t){const n=e[Ys];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ys]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Tx=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),rl=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,cj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Xg=new RegExp(`(${rl.source})(%|[a-z]+)`,"i"),dj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Mu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ix=e=>{const[t,n]=fj(e);if(!t||Wh())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);return s||e}else{if(n&&Mu.test(n))return Ix(n);if(n)return n}return e},fj=e=>{const t=Mu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Wc,hj=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,Dx=e=>{Wc||(Wc=yr?new RegExp(`(${Object.keys(yr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>dt(i).replace(Mu,Ix).replace(cj,qg).replace(Wc,qg)),n=t.map(i=>i.match(rl).map(Number)),s=n[0].map((i,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(i=>Ro({...e,output:i}));return i=>{var l;const o=!Xg.test(t[0])&&((l=t.find(u=>Xg.test(u)))==null?void 0:l.replace(rl,""));let a=0;return t[0].replace(rl,()=>`${s[a++](i)}${o||""}`).replace(dj,hj)}},Xh="react-spring: ",Mx=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Xh}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},pj=Mx(console.warn);function mj(){pj(`${Xh}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var gj=Mx(console.warn);function vj(){gj(`${Xh}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 Lu(e){return V.str(e)&&(e[0]=="#"||/\d/.test(e)||!Wh()&&Mu.test(e)||e in(yr||{}))}var Hr=Wh()?b.useEffect:b.useLayoutEffect,yj=()=>{const e=b.useRef(!1);return Hr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Yh(){const e=b.useState()[1],t=yj();return()=>{t.current&&e(Math.random())}}function xj(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&wj(t,i.inputs)||(i={inputs:t,result:e()}):i=n,b.useEffect(()=>{r.current=i,s==n&&(n.inputs=n.result=void 0)},[i]),i.result}function wj(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 Jh=e=>b.useEffect(e,bj),bj=[];function yf(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var Ao=Symbol.for("Animated:node"),Sj=e=>!!e&&e[Ao]===e,gn=e=>e&&e[Ao],Zh=(e,t)=>Uk(e,Ao,t),Fu=e=>e&&e[Ao]&&e[Ao].getPayload(),Lx=class{constructor(){Zh(this,this)}getPayload(){return this.payload||[]}},Zo=class extends Lx{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,V.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Zo(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return V.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,V.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},_o=class extends Zo{constructor(e){super(0),this._string=null,this._toString=Ro({output:[e,e]})}static create(e){return new _o(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(V.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Ro({output:[this.getValue(),e]})),this._value=0,super.reset()}},tu={dependencies:null},$u=class extends Lx{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return kn(this.source,(n,r)=>{Sj(n)?t[r]=n.getValue(e):zt(n)?t[r]=dt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Y(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return kn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){tu.dependencies&&zt(e)&&tu.dependencies.add(e);const t=Fu(e);t&&Y(t,n=>this.add(n))}},Fx=class extends $u{constructor(e){super(e)}static create(e){return new Fx(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Cj)),!0)}};function Cj(e){return(Lu(e)?_o:Zo).create(e)}function xf(e){const t=gn(e);return t?t.constructor:V.arr(e)?Fx:Lu(e)?_o:Zo}var Yg=(e,t)=>{const n=!V.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,s)=>{const i=b.useRef(null),o=n&&b.useCallback(m=>{i.current=jj(s,m)},[s]),[a,l]=kj(r,t),u=Yh(),d=()=>{const m=i.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,a.getValue(!0)):!1)===!1&&u()},f=new Ej(d,l),h=b.useRef();Hr(()=>(h.current=f,Y(l,m=>oi(m,f)),()=>{h.current&&(Y(h.current.deps,m=>Po(m,h.current)),Z.cancel(h.current.update))})),b.useEffect(d,[]),Jh(()=>()=>{const m=h.current;Y(m.deps,y=>Po(y,m))});const p=t.getComponentProps(a.getValue());return b.createElement(e,{...p,ref:o})})},Ej=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Z.write(this.update)}};function kj(e,t){const n=new Set;return tu.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new $u(e),tu.dependencies=null,[e,n]}function jj(e,t){return e&&(V.fun(e)?e(t):e.current=t),t}var Jg=Symbol.for("AnimatedComponent"),Rj=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new $u(s),getComponentProps:r=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const a=Zg(o)||"Anonymous";return V.str(o)?o=i[o]||(i[o]=Yg(o,s)):o=o[Jg]||(o[Jg]=Yg(o,s)),o.displayName=`Animated(${a})`,o};return kn(e,(o,a)=>{V.arr(e)&&(a=Zg(o)),i[a]=i(o)}),{animated:i}},Zg=e=>V.str(e)?e:e&&V.str(e.displayName)?e.displayName:V.fun(e)&&e.name||null;function ft(e,...t){return V.fun(e)?e(...t):e}var Yi=(e,t)=>e===!0||!!(t&&e&&(V.fun(e)?e(t):nt(e).includes(t))),$x=(e,t)=>V.obj(e)?t&&e[t]:e,Bx=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Oj=e=>e,Bu=(e,t=Oj)=>{let n=Nj;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const s of n){const i=t(e[s],s);V.und(i)||(r[s]=i)}return r},Nj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Pj={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 Aj(e){const t={};let n=0;if(kn(e,(r,s)=>{Pj[s]||(t[s]=r,n++)}),n)return t}function ep(e){const t=Aj(e);if(t){const n={to:t};return kn(e,(r,s)=>s in t||(n[s]=r)),n}return{...e}}function To(e){return e=dt(e),V.arr(e)?e.map(To):Lu(e)?dn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function zx(e){for(const t in e)return!0;return!1}function wf(e){return V.fun(e)||V.arr(e)&&V.obj(e[0])}function bf(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Vx(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var _j={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}},Sf={..._j.default,mass:1,damping:1,easing:aj.linear,clamp:!1},Tj=class{constructor(){this.velocity=0,Object.assign(this,Sf)}};function Ij(e,t,n){n&&(n={...n},e1(n,t),t={...n,...t}),e1(e,t),Object.assign(e,t);for(const o in Sf)e[o]==null&&(e[o]=Sf[o]);let{frequency:r,damping:s}=e;const{mass:i}=e;return V.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*s*i/r),e}function e1(e,t){if(!V.und(t.decay))e.duration=void 0;else{const n=!V.und(t.tension)||!V.und(t.friction);(n||!V.und(t.frequency)||!V.und(t.damping)||!V.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var t1=[],Dj=class{constructor(){this.changed=!1,this.values=t1,this.toValues=null,this.fromValues=t1,this.config=new Tj,this.immediate=!1}};function Ux(e,{key:t,props:n,defaultProps:r,state:s,actions:i}){return new Promise((o,a)=>{let l,u,d=Yi(n.cancel??(r==null?void 0:r.cancel),t);if(d)p();else{V.und(n.pause)||(s.paused=Yi(n.pause,t));let m=r==null?void 0:r.pause;m!==!0&&(m=s.paused||Yi(m,t)),l=ft(n.delay||0,t),m?(s.resumeQueue.add(h),i.pause()):(i.resume(),h())}function f(){s.resumeQueue.add(h),s.timeouts.delete(u),u.cancel(),l=u.time-Z.now()}function h(){l>0&&!dn.skipAnimation?(s.delayed=!0,u=Z.setTimeout(p,l),s.pauseQueue.add(f),s.timeouts.add(u)):p()}function p(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(f),s.timeouts.delete(u),e<=(s.cancelId||0)&&(d=!0);try{i.start({...n,callId:e,cancel:d},o)}catch(m){a(m)}}})}var tp=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?$s(e.get()):t.every(n=>n.noop)?Hx(e.get()):sn(e.get(),t.every(n=>n.finished)),Hx=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),sn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),$s=e=>({value:e,cancelled:!0,finished:!1});function qx(e,t,n,r){const{callId:s,parentId:i,onRest:o}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=s,n.asyncTo=e;const u=Bu(t,(w,g)=>g==="onRest"?void 0:w);let d,f;const h=new Promise((w,g)=>(d=w,f=g)),p=w=>{const g=s<=(n.cancelId||0)&&$s(r)||s!==n.asyncId&&sn(r,!1);if(g)throw w.result=g,f(w),w},m=(w,g)=>{const v=new n1,x=new r1;return(async()=>{if(dn.skipAnimation)throw Io(n),x.result=sn(r,!1),f(x),x;p(v);const S=V.obj(w)?{...w}:{...g,to:w};S.parentId=s,kn(u,(j,k)=>{V.und(S[k])&&(S[k]=j)});const C=await r.start(S);return p(v),n.paused&&await new Promise(j=>{n.resumeQueue.add(j)}),C})()};let y;if(dn.skipAnimation)return Io(n),sn(r,!1);try{let w;V.arr(e)?w=(async g=>{for(const v of g)await m(v)})(e):w=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([w.then(d),h]),y=sn(r.get(),!0,!1)}catch(w){if(w instanceof n1)y=w.result;else if(w instanceof r1)y=w.result;else throw w}finally{s==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return V.fun(o)&&Z.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function Io(e,t){Gi(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var n1=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.")}},r1=class extends Error{constructor(){super("SkipAnimationSignal")}},Cf=e=>e instanceof np,Mj=1,np=class extends _x{constructor(){super(...arguments),this.id=Mj++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=gn(this);return e&&e.getValue()}to(...e){return dn.to(this,e)}interpolate(...e){return mj(),dn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){No(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Iu.sort(this),No(this,{type:"priority",parent:this,priority:e})}},ns=Symbol.for("SpringPhase"),Qx=1,Ef=2,kf=4,Kc=e=>(e[ns]&Qx)>0,Yn=e=>(e[ns]&Ef)>0,ji=e=>(e[ns]&kf)>0,s1=(e,t)=>t?e[ns]|=Ef|Qx:e[ns]&=~Ef,i1=(e,t)=>t?e[ns]|=kf:e[ns]&=~kf,Lj=class extends np{constructor(e,t){if(super(),this.animation=new Dj,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!V.und(e)||!V.und(t)){const n=V.obj(e)?{...e}:{...t,from:e};V.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Yn(this)||this._state.asyncTo)||ji(this)}get goal(){return dt(this.animation.to)}get velocity(){const e=gn(this);return e instanceof Zo?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Kc(this)}get isAnimating(){return Yn(this)}get isPaused(){return ji(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:s}=r;const{config:i}=r,o=Fu(r.to);!o&&zt(r.to)&&(s=nt(dt(r.to))),r.values.forEach((u,d)=>{if(u.done)return;const f=u.constructor==_o?1:o?o[d].lastPosition:s[d];let h=r.immediate,p=f;if(!h){if(p=u.lastPosition,i.tension<=0){u.done=!0;return}let m=u.elapsedTime+=e;const y=r.fromValues[d],w=u.v0!=null?u.v0:u.v0=V.arr(i.velocity)?i.velocity[d]:i.velocity;let g;const v=i.precision||(y==f?.005:Math.min(1,Math.abs(f-y)*.001));if(V.und(i.duration))if(i.decay){const x=i.decay===!0?.998:i.decay,S=Math.exp(-(1-x)*m);p=y+w/(1-x)*(1-S),h=Math.abs(u.lastPosition-p)<=v,g=w*S}else{g=u.lastVelocity==null?w:u.lastVelocity;const x=i.restVelocity||v/10,S=i.clamp?0:i.bounce,C=!V.und(S),j=y==f?u.v0>0:y<f;let k,O=!1;const A=1,_=Math.ceil(e/A);for(let F=0;F<_&&(k=Math.abs(g)>x,!(!k&&(h=Math.abs(f-p)<=v,h)));++F){C&&(O=p==f||p>f==j,O&&(g=-g*S,p=f));const T=-i.tension*1e-6*(p-f),$=-i.friction*.001*g,D=(T+$)/i.mass;g=g+D*A,p=p+g*A}}else{let x=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,m=u.elapsedTime+=e)),x=(i.progress||0)+m/this._memoizedDuration,x=x>1?1:x<0?0:x,u.durationProgress=x),p=y+i.easing(x)*(f-y),g=(p-u.lastPosition)/e,h=x==1}u.lastVelocity=g,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[d].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(p,i.round)&&(n=!0)});const a=gn(this),l=a.getValue();if(t){const u=dt(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Z.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Yn(this)){const{to:e,config:t}=this.animation;Z.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return V.und(e)?(n=this.queue||[],this.queue=[]):n=[V.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>tp(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Io(this._state,e&&this._lastCallId),Z.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=V.obj(n)?n[t]:n,(n==null||wf(n))&&(n=void 0),r=V.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Kc(this)||(e.reverse&&([n,r]=[r,n]),r=dt(r),V.und(r)?gn(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Bu(e,(o,a)=>/^on/.test(a)?$x(o,n):o)),a1(this,e,"onProps"),Oi(this,"onProps",e,this);const s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Ux(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ji(this)||(i1(this,!0),Mi(i.pauseQueue),Oi(this,"onPause",sn(this,Ri(this,this.animation.to)),this))},resume:()=>{ji(this)&&(i1(this,!1),Yn(this)&&this._resume(),Mi(i.resumeQueue),Oi(this,"onResume",sn(this,Ri(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=Wx(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n($s(this));const r=!V.und(e.to),s=!V.und(e.from);if(r||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n($s(this));const{key:i,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:d=l,from:f=u}=e;s&&!r&&(!t.default||V.und(d))&&(d=f),t.reverse&&([d,f]=[f,d]);const h=!_n(f,u);h&&(a.from=f),f=dt(f);const p=!_n(d,l);p&&this._focus(d);const m=wf(t.to),{config:y}=a,{decay:w,velocity:g}=y;(r||s)&&(y.velocity=0),t.config&&!m&&Ij(y,ft(t.config,i),t.config!==o.config?ft(o.config,i):void 0);let v=gn(this);if(!v||V.und(d))return n(sn(this,!0));const x=V.und(t.reset)?s&&!t.default:!V.und(f)&&Yi(t.reset,i),S=x?f:this.get(),C=To(d),j=V.num(C)||V.arr(C)||Lu(C),k=!m&&(!j||Yi(o.immediate||t.immediate,i));if(p){const F=xf(d);if(F!==v.constructor)if(k)v=this._set(C);else throw Error(`Cannot animate between ${v.constructor.name} and ${F.name}, as the "to" prop suggests`)}const O=v.constructor;let A=zt(d),_=!1;if(!A){const F=x||!Kc(this)&&h;(p||F)&&(_=_n(To(S),C),A=!_),(!_n(a.immediate,k)&&!k||!_n(y.decay,w)||!_n(y.velocity,g))&&(A=!0)}if(_&&Yn(this)&&(a.changed&&!x?A=!0:A||this._stop(l)),!m&&((A||zt(l))&&(a.values=v.getPayload(),a.toValues=zt(d)?null:O==_o?[1]:nt(C)),a.immediate!=k&&(a.immediate=k,!k&&!x&&this._set(l)),A)){const{onRest:F}=a;Y($j,$=>a1(this,t,$));const T=sn(this,Ri(this,l));Mi(this._pendingCalls,T),this._pendingCalls.add(n),a.changed&&Z.batchedUpdates(()=>{var $;a.changed=!x,F==null||F(T,this),x?ft(o.onRest,T):($=a.onStart)==null||$.call(a,T,this)})}x&&this._set(S),m?n(qx(t.to,t,this._state,this)):A?this._start():Yn(this)&&!p?this._pendingCalls.add(n):n(Hx(S))}_focus(e){const t=this.animation;e!==t.to&&(Gg(this)&&this._detach(),t.to=e,Gg(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;zt(t)&&(oi(t,this),Cf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;zt(e)&&Po(e,this)}_set(e,t=!0){const n=dt(e);if(!V.und(n)){const r=gn(this);if(!r||!_n(n,r.getValue())){const s=xf(n);!r||r.constructor!=s?Zh(this,s.create(n)):r.setValue(n),r&&Z.batchedUpdates(()=>{this._onChange(n,t)})}}return gn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Oi(this,"onStart",sn(this,Ri(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ft(this.animation.onChange,e,this)),ft(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;gn(this).reset(dt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Yn(this)||(s1(this,!0),ji(this)||this._resume())}_resume(){dn.skipAnimation?this.finish():Iu.start(this)}_stop(e,t){if(Yn(this)){s1(this,!1);const n=this.animation;Y(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),No(this,{type:"idle",parent:this});const r=t?$s(this.get()):sn(this.get(),Ri(this,e??n.to));Mi(this._pendingCalls,r),n.changed&&(n.changed=!1,Oi(this,"onRest",r,this))}}};function Ri(e,t){const n=To(t),r=To(e.get());return _n(r,n)}function Wx(e,t=e.loop,n=e.to){const r=ft(t);if(r){const s=r!==!0&&ep(r),i=(s||e).reverse,o=!s||s.reset;return Do({...e,loop:t,default:!1,pause:void 0,to:!i||wf(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function Do(e){const{to:t,from:n}=e=ep(e),r=new Set;return V.obj(t)&&o1(t,r),V.obj(n)&&o1(n,r),e.keys=r.size?Array.from(r):null,e}function Fj(e){const t=Do(e);return V.und(t.default)&&(t.default=Bu(t)),t}function o1(e,t){kn(e,(n,r)=>n!=null&&t.add(r))}var $j=["onStart","onRest","onChange","onPause","onResume"];function a1(e,t,n){e.animation[n]=t[n]!==Bx(t,n)?$x(t[n],e.key):void 0}function Oi(e,t,...n){var r,s,i,o;(s=(r=e.animation)[t])==null||s.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var Bj=["onStart","onChange","onRest"],zj=1,Kx=class{constructor(e,t){this.id=zj++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];V.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Do(e)),this}start(e){let{queue:t}=this;return e?t=nt(e).map(Do):this.queue=[],this._flush?this._flush(this,t):(Zx(this,t),jf(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Y(nt(t),r=>n[r].stop(!!e))}else Io(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(V.und(e))this.start({pause:!0});else{const t=this.springs;Y(nt(e),n=>t[n].pause())}return this}resume(e){if(V.und(e))this.start({pause:!1});else{const t=this.springs;Y(nt(e),n=>t[n].resume())}return this}each(e){kn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,Gi(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,o=s||i&&n.size?this.get():null;s&&t.size&&Gi(t,([a,l])=>{l.value=o,a(l,this,this._item)}),i&&(this._started=!1,Gi(n,([a,l])=>{l.value=o,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Z.onFrame(this._onFrame)}};function jf(e,t){return Promise.all(t.map(n=>Gx(e,n))).then(n=>tp(e,n))}async function Gx(e,t,n){const{keys:r,to:s,from:i,loop:o,onRest:a,onResolve:l}=t,u=V.obj(t.default)&&t.default;o&&(t.loop=!1),s===!1&&(t.to=null),i===!1&&(t.from=null);const d=V.arr(s)||V.fun(s)?s:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Y(Bj,y=>{const w=t[y];if(V.fun(w)){const g=e._events[y];t[y]=({finished:v,cancelled:x})=>{const S=g.get(w);S?(v||(S.finished=!1),x&&(S.cancelled=!0)):g.set(w,{value:null,finished:v||!1,cancelled:x||!1})},u&&(u[y]=t[y])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,Mi(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),p=t.cancel===!0||Bx(t,"cancel")===!0;(d||p&&f.asyncId)&&h.push(Ux(++e._lastAsyncId,{props:t,state:f,actions:{pause:gf,resume:gf,start(y,w){p?(Io(f,e._lastAsyncId),w($s(e))):(y.onRest=a,w(qx(d,y,f,e)))}}})),f.paused&&await new Promise(y=>{f.resumeQueue.add(y)});const m=tp(e,await Promise.all(h));if(o&&m.finished&&!(n&&m.noop)){const y=Wx(t,o,s);if(y)return Zx(e,[y]),Gx(e,y,!0)}return l&&Z.batchedUpdates(()=>l(m,e,e.item)),m}function Rf(e,t){const n={...e.springs};return t&&Y(nt(t),r=>{V.und(r.keys)&&(r=Do(r)),V.obj(r.to)||(r={...r,to:void 0}),Jx(n,r,s=>Yx(s))}),Xx(e,n),n}function Xx(e,t){kn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,oi(n,e))})}function Yx(e,t){const n=new Lj;return n.key=e,t&&oi(n,t),n}function Jx(e,t,n){t.keys&&Y(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Zx(e,t){Y(t,n=>{Jx(e.springs,n,r=>Yx(r,e))})}var ea=({children:e,...t})=>{const n=b.useContext(nu),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=xj(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=nu;return b.createElement(i,{value:t},e)},nu=Vj(ea,{});ea.Provider=nu.Provider;ea.Consumer=nu.Consumer;function Vj(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var ew=()=>{const e=[],t=function(r){vj();const s=[];return Y(e,(i,o)=>{if(V.und(r))s.push(i.start());else{const a=n(r,i,o);a&&s.push(i.start(a))}}),s};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const s=e.indexOf(r);~s&&e.splice(s,1)},t.pause=function(){return Y(e,r=>r.pause(...arguments)),this},t.resume=function(){return Y(e,r=>r.resume(...arguments)),this},t.set=function(r){Y(e,(s,i)=>{const o=V.fun(r)?r(i,s):r;o&&s.set(o)})},t.start=function(r){const s=[];return Y(e,(i,o)=>{if(V.und(r))s.push(i.start());else{const a=this._getProps(r,i,o);a&&s.push(i.start(a))}}),s},t.stop=function(){return Y(e,r=>r.stop(...arguments)),this},t.update=function(r){return Y(e,(s,i)=>s.update(this._getProps(r,s,i))),this};const n=function(r,s,i){return V.fun(r)?r(i,s):r};return t._getProps=n,t};function Uj(e,t,n){const r=V.fun(t)&&t;r&&!n&&(n=[]);const s=b.useMemo(()=>r||arguments.length==3?ew():void 0,[]),i=b.useRef(0),o=Yh(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(g,v){const x=Rf(g,v);return i.current>0&&!a.queue.length&&!Object.keys(x).some(C=>!g.springs[C])?jf(g,v):new Promise(C=>{Xx(g,x),a.queue.push(()=>{C(jf(g,v))}),o()})}}),[]),l=b.useRef([...a.ctrls]),u=[],d=yf(e)||0;b.useMemo(()=>{Y(l.current.slice(e,d),g=>{bf(g,s),g.stop(!0)}),l.current.length=e,f(d,e)},[e]),b.useMemo(()=>{f(0,Math.min(d,e))},n);function f(g,v){for(let x=g;x<v;x++){const S=l.current[x]||(l.current[x]=new Kx(null,a.flush)),C=r?r(x,S):t[x];C&&(u[x]=Fj(C))}}const h=l.current.map((g,v)=>Rf(g,u[v])),p=b.useContext(ea),m=yf(p),y=p!==m&&zx(p);Hr(()=>{i.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],Y(g,v=>v())),Y(l.current,(v,x)=>{s==null||s.add(v),y&&v.start({default:p});const S=u[x];S&&(Vx(v,S.ref),v.ref?v.queue.push(S):v.start(S))})}),Jh(()=>()=>{Y(a.ctrls,g=>g.stop(!0))});const w=h.map(g=>({...g}));return s?[w,s]:w}function R7(e,t){const n=V.fun(e),[[r],s]=Uj(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,s]:r}function rp(e,t,n){const r=V.fun(t)&&t,{reset:s,sort:i,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:d,config:f}=r?r():t,h=b.useMemo(()=>r||arguments.length==3?ew():void 0,[]),p=nt(e),m=[],y=b.useRef(null),w=s?null:y.current;Hr(()=>{y.current=m}),Jh(()=>(Y(m,D=>{h==null||h.add(D.ctrl),D.ctrl.ref=h}),()=>{Y(y.current,D=>{D.expired&&clearTimeout(D.expirationId),bf(D.ctrl,h),D.ctrl.stop(!0)})}));const g=qj(p,r?r():t,w),v=s&&y.current||[];Hr(()=>Y(v,({ctrl:D,item:E,key:N})=>{bf(D,h),ft(u,E,N)}));const x=[];if(w&&Y(w,(D,E)=>{D.expired?(clearTimeout(D.expirationId),v.push(D)):(E=x[E]=g.indexOf(D.key),~E&&(m[E]=D))}),Y(p,(D,E)=>{m[E]||(m[E]={key:g[E],item:D,phase:"mount",ctrl:new Kx},m[E].ctrl.item=D)}),x.length){let D=-1;const{leave:E}=r?r():t;Y(x,(N,L)=>{const P=w[L];~N?(D=m.indexOf(P),m[D]={...P,item:p[N]}):E&&m.splice(++D,0,P)})}V.fun(i)&&m.sort((D,E)=>i(D.item,E.item));let S=-o;const C=Yh(),j=Bu(t),k=new Map,O=b.useRef(new Map),A=b.useRef(!1);Y(m,(D,E)=>{const N=D.key,L=D.phase,P=r?r():t;let B,z;const ee=ft(P.delay||0,N);if(L=="mount")B=P.enter,z="enter";else{const ae=g.indexOf(N)<0;if(L!="leave")if(ae)B=P.leave,z="leave";else if(B=P.update)z="update";else return;else if(!ae)B=P.enter,z="enter";else return}if(B=ft(B,D.item,E),B=V.obj(B)?ep(B):{to:B},!B.config){const ae=f||j.config;B.config=ft(ae,D.item,E,z)}S+=o;const J={...j,delay:ee+S,ref:d,immediate:P.immediate,reset:!1,...B};if(z=="enter"&&V.und(J.from)){const ae=r?r():t,de=V.und(ae.initial)||w?ae.from:ae.initial;J.from=ft(de,D.item,E)}const{onResolve:le}=J;J.onResolve=ae=>{ft(le,ae);const de=y.current,ye=de.find(Re=>Re.key===N);if(ye&&!(ae.cancelled&&ye.phase!="update")&&ye.ctrl.idle){const Re=de.every(ut=>ut.ctrl.idle);if(ye.phase=="leave"){const ut=ft(a,ye.item);if(ut!==!1){const On=ut===!0?0:ut;if(ye.expired=!0,!Re&&On>0){On<=2147483647&&(ye.expirationId=setTimeout(C,On));return}}}Re&&de.some(ut=>ut.expired)&&(O.current.delete(ye),l&&(A.current=!0),C())}};const te=Rf(D.ctrl,J);z==="leave"&&l?O.current.set(D,{phase:z,springs:te,payload:J}):k.set(D,{phase:z,springs:te,payload:J})});const _=b.useContext(ea),F=yf(_),T=_!==F&&zx(_);Hr(()=>{T&&Y(m,D=>{D.ctrl.start({default:_})})},[_]),Y(k,(D,E)=>{if(O.current.size){const N=m.findIndex(L=>L.key===E.key);m.splice(N,1)}}),Hr(()=>{Y(O.current.size?O.current:k,({phase:D,payload:E},N)=>{const{ctrl:L}=N;N.phase=D,h==null||h.add(L),T&&D=="enter"&&L.start({default:_}),E&&(Vx(L,E.ref),(L.ref||h)&&!A.current?L.update(E):(L.start(E),A.current&&(A.current=!1)))})},s?void 0:n);const $=D=>b.createElement(b.Fragment,null,m.map((E,N)=>{const{springs:L}=k.get(E)||E.ctrl,P=D({...L},E.item,E,N);return P&&P.type?b.createElement(P.type,{...P.props,key:V.str(E.key)||V.num(E.key)?E.key:E.ctrl.id,ref:P.ref}):P}));return h?[$,h]:$}var Hj=1;function qj(e,{key:t,keys:n=t},r){if(n===null){const s=new Set;return e.map(i=>{const o=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!s.has(a));return o?(s.add(o),o.key):Hj++})}return V.und(n)?e:V.fun(n)?e.map(n):nt(n)}var Qj=class extends np{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ro(...t);const n=this._get(),r=xf(n);Zh(this,r.create(n))}advance(e){const t=this._get(),n=this.get();_n(t,n)||(gn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&l1(this._active)&&Gc(this)}_get(){const e=V.arr(this.source)?this.source.map(dt):nt(dt(this.source));return this.calc(...e)}_start(){this.idle&&!l1(this._active)&&(this.idle=!1,Y(Fu(this),e=>{e.done=!1}),dn.skipAnimation?(Z.batchedUpdates(()=>this.advance()),Gc(this)):Iu.start(this))}_attach(){let e=1;Y(nt(this.source),t=>{zt(t)&&oi(t,this),Cf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Y(nt(this.source),e=>{zt(e)&&Po(e,this)}),this._active.clear(),Gc(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=nt(this.source).reduce((t,n)=>Math.max(t,(Cf(n)?n.priority:0)+1),0))}};function Wj(e){return e.idle!==!1}function l1(e){return!e.size||Array.from(e).every(Wj)}function Gc(e){e.idle||(e.idle=!0,Y(Fu(e),t=>{t.done=!0}),No(e,{type:"idle",parent:e}))}dn.assign({createStringInterpolator:Dx,to:(e,t)=>new Qj(e,t)});var tw=/^--/;function Kj(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!tw.test(e)&&!(Ji.hasOwnProperty(e)&&Ji[e])?t+"px":(""+t).trim()}var u1={};function Gj(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:s,scrollTop:i,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),d=Object.keys(l).map(f=>n||e.hasAttribute(f)?f:u1[f]||(u1[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));s!==void 0&&(e.textContent=s);for(const f in r)if(r.hasOwnProperty(f)){const h=Kj(f,r[f]);tw.test(f)?e.style.setProperty(f,h):e.style[f]=h}d.forEach((f,h)=>{e.setAttribute(f,u[h])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var Ji={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},Xj=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Yj=["Webkit","Ms","Moz","O"];Ji=Object.keys(Ji).reduce((e,t)=>(Yj.forEach(n=>e[Xj(n,t)]=e[t]),e),Ji);var Jj=/^(matrix|translate|scale|rotate|skew)/,Zj=/^(translate)/,eR=/^(rotate|skew)/,Xc=(e,t)=>V.num(e)&&e!==0?e+t:e,sl=(e,t)=>V.arr(e)?e.every(n=>sl(n,t)):V.num(e)?e===t:parseFloat(e)===t,tR=class extends $u{constructor({x:e,y:t,z:n,...r}){const s=[],i=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(a=>Xc(a,"px")).join(",")})`,sl(o,0)])),kn(r,(o,a)=>{if(a==="transform")s.push([o||""]),i.push(l=>[l,l===""]);else if(Jj.test(a)){if(delete r[a],V.und(o))return;const l=Zj.test(a)?"px":eR.test(a)?"deg":"";s.push(nt(o)),i.push(a==="rotate3d"?([u,d,f,h])=>[`rotate3d(${u},${d},${f},${Xc(h,l)})`,sl(h,0)]:u=>[`${a}(${u.map(d=>Xc(d,l)).join(",")})`,sl(u,a.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new nR(s,i)),super(r)}},nR=class extends _x{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Y(this.inputs,(n,r)=>{const s=dt(n[0]),[i,o]=this.transforms[r](V.arr(s)?s:n.map(dt));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Y(this.inputs,t=>Y(t,n=>zt(n)&&oi(n,this)))}observerRemoved(e){e==0&&Y(this.inputs,t=>Y(t,n=>zt(n)&&Po(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),No(this,e)}},rR=["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"];dn.assign({batchedUpdates:Wn.unstable_batchedUpdates,createStringInterpolator:Dx,colors:Kk});var sR=Rj(rR,{applyAnimatedValues:Gj,createAnimatedStyle:e=>new tR(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),ru=sR.animated,c1=function(t){return t.reduce(function(n,r){var s=r[0],i=r[1];return n[s]=i,n},{})},d1=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,yt="top",Xt="bottom",Yt="right",xt="left",sp="auto",ta=[yt,Xt,Yt,xt],Js="start",Mo="end",iR="clippingParents",nw="viewport",Ni="popper",oR="reference",f1=ta.reduce(function(e,t){return e.concat([t+"-"+Js,t+"-"+Mo])},[]),rw=[].concat(ta,[sp]).reduce(function(e,t){return e.concat([t,t+"-"+Js,t+"-"+Mo])},[]),aR="beforeRead",lR="read",uR="afterRead",cR="beforeMain",dR="main",fR="afterMain",hR="beforeWrite",pR="write",mR="afterWrite",gR=[aR,lR,uR,cR,dR,fR,hR,pR,mR];function jn(e){return e?(e.nodeName||"").toLowerCase():null}function Pt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rs(e){var t=Pt(e).Element;return e instanceof t||e instanceof Element}function qt(e){var t=Pt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ip(e){if(typeof ShadowRoot>"u")return!1;var t=Pt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vR(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!qt(i)||!jn(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(o){var a=s[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function yR(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 s=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(l,u){return l[u]="",l},{});!qt(s)||!jn(s)||(Object.assign(s.style,a),Object.keys(i).forEach(function(l){s.removeAttribute(l)}))})}}const xR={name:"applyStyles",enabled:!0,phase:"write",fn:vR,effect:yR,requires:["computeStyles"]};function Cn(e){return e.split("-")[0]}var Wr=Math.max,su=Math.min,Zs=Math.round;function Of(){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 sw(){return!/^((?!chrome|android).)*safari/i.test(Of())}function ei(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,i=1;t&&qt(e)&&(s=e.offsetWidth>0&&Zs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Zs(r.height)/e.offsetHeight||1);var o=rs(e)?Pt(e):window,a=o.visualViewport,l=!sw()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/s,d=(r.top+(l&&a?a.offsetTop:0))/i,f=r.width/s,h=r.height/i;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u,x:u,y:d}}function op(e){var t=ei(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 iw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ip(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hn(e){return Pt(e).getComputedStyle(e)}function wR(e){return["table","td","th"].indexOf(jn(e))>=0}function Ar(e){return((rs(e)?e.ownerDocument:e.document)||window.document).documentElement}function zu(e){return jn(e)==="html"?e:e.assignedSlot||e.parentNode||(ip(e)?e.host:null)||Ar(e)}function h1(e){return!qt(e)||Hn(e).position==="fixed"?null:e.offsetParent}function bR(e){var t=/firefox/i.test(Of()),n=/Trident/i.test(Of());if(n&&qt(e)){var r=Hn(e);if(r.position==="fixed")return null}var s=zu(e);for(ip(s)&&(s=s.host);qt(s)&&["html","body"].indexOf(jn(s))<0;){var i=Hn(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function na(e){for(var t=Pt(e),n=h1(e);n&&wR(n)&&Hn(n).position==="static";)n=h1(n);return n&&(jn(n)==="html"||jn(n)==="body"&&Hn(n).position==="static")?t:n||bR(e)||t}function ap(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zi(e,t,n){return Wr(e,su(t,n))}function SR(e,t,n){var r=Zi(e,t,n);return r>n?n:r}function ow(){return{top:0,right:0,bottom:0,left:0}}function aw(e){return Object.assign({},ow(),e)}function lw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var CR=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,aw(typeof t!="number"?t:lw(t,ta))};function ER(e){var t,n=e.state,r=e.name,s=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Cn(n.placement),l=ap(a),u=[xt,Yt].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!o)){var f=CR(s.padding,n),h=op(i),p=l==="y"?yt:xt,m=l==="y"?Xt:Yt,y=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],w=o[l]-n.rects.reference[l],g=na(i),v=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,x=y/2-w/2,S=f[p],C=v-h[d]-f[m],j=v/2-h[d]/2+x,k=Zi(S,j,C),O=l;n.modifiersData[r]=(t={},t[O]=k,t.centerOffset=k-j,t)}}function kR(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||iw(t.elements.popper,s)&&(t.elements.arrow=s))}const jR={name:"arrow",enabled:!0,phase:"main",fn:ER,effect:kR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ti(e){return e.split("-")[1]}var RR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function OR(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:Zs(n*s)/s||0,y:Zs(r*s)/s||0}}function p1(e){var t,n=e.popper,r=e.popperRect,s=e.placement,i=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=o.x,p=h===void 0?0:h,m=o.y,y=m===void 0?0:m,w=typeof d=="function"?d({x:p,y}):{x:p,y};p=w.x,y=w.y;var g=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),x=xt,S=yt,C=window;if(u){var j=na(n),k="clientHeight",O="clientWidth";if(j===Pt(n)&&(j=Ar(n),Hn(j).position!=="static"&&a==="absolute"&&(k="scrollHeight",O="scrollWidth")),j=j,s===yt||(s===xt||s===Yt)&&i===Mo){S=Xt;var A=f&&j===C&&C.visualViewport?C.visualViewport.height:j[k];y-=A-r.height,y*=l?1:-1}if(s===xt||(s===yt||s===Xt)&&i===Mo){x=Yt;var _=f&&j===C&&C.visualViewport?C.visualViewport.width:j[O];p-=_-r.width,p*=l?1:-1}}var F=Object.assign({position:a},u&&RR),T=d===!0?OR({x:p,y},Pt(n)):{x:p,y};if(p=T.x,y=T.y,l){var $;return Object.assign({},F,($={},$[S]=v?"0":"",$[x]=g?"0":"",$.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",$))}return Object.assign({},F,(t={},t[S]=v?y+"px":"",t[x]=g?p+"px":"",t.transform="",t))}function NR(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Cn(t.placement),variation:ti(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,p1(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,p1(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const PR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:NR,data:{}};var Ta={passive:!0};function AR(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,i=s===void 0?!0:s,o=r.resize,a=o===void 0?!0:o,l=Pt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ta)}),a&&l.addEventListener("resize",n.update,Ta),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ta)}),a&&l.removeEventListener("resize",n.update,Ta)}}const _R={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:AR,data:{}};var TR={left:"right",right:"left",bottom:"top",top:"bottom"};function il(e){return e.replace(/left|right|bottom|top/g,function(t){return TR[t]})}var IR={start:"end",end:"start"};function m1(e){return e.replace(/start|end/g,function(t){return IR[t]})}function lp(e){var t=Pt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function up(e){return ei(Ar(e)).left+lp(e).scrollLeft}function DR(e,t){var n=Pt(e),r=Ar(e),s=n.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;var u=sw();(u||!u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a+up(e),y:l}}function MR(e){var t,n=Ar(e),r=lp(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=Wr(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Wr(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-r.scrollLeft+up(e),l=-r.scrollTop;return Hn(s||n).direction==="rtl"&&(a+=Wr(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:o,x:a,y:l}}function cp(e){var t=Hn(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function uw(e){return["html","body","#document"].indexOf(jn(e))>=0?e.ownerDocument.body:qt(e)&&cp(e)?e:uw(zu(e))}function eo(e,t){var n;t===void 0&&(t=[]);var r=uw(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=Pt(r),o=s?[i].concat(i.visualViewport||[],cp(r)?r:[]):r,a=t.concat(o);return s?a:a.concat(eo(zu(o)))}function Nf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function LR(e,t){var n=ei(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 g1(e,t,n){return t===nw?Nf(DR(e,n)):rs(t)?LR(t,n):Nf(MR(Ar(e)))}function FR(e){var t=eo(zu(e)),n=["absolute","fixed"].indexOf(Hn(e).position)>=0,r=n&&qt(e)?na(e):e;return rs(r)?t.filter(function(s){return rs(s)&&iw(s,r)&&jn(s)!=="body"}):[]}function $R(e,t,n,r){var s=t==="clippingParents"?FR(e):[].concat(t),i=[].concat(s,[n]),o=i[0],a=i.reduce(function(l,u){var d=g1(e,u,r);return l.top=Wr(d.top,l.top),l.right=su(d.right,l.right),l.bottom=su(d.bottom,l.bottom),l.left=Wr(d.left,l.left),l},g1(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function cw(e){var t=e.reference,n=e.element,r=e.placement,s=r?Cn(r):null,i=r?ti(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(s){case yt:l={x:o,y:t.y-n.height};break;case Xt:l={x:o,y:t.y+t.height};break;case Yt:l={x:t.x+t.width,y:a};break;case xt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=s?ap(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Js:l[u]=l[u]-(t[d]/2-n[d]/2);break;case Mo:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function Lo(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?iR:a,u=n.rootBoundary,d=u===void 0?nw:u,f=n.elementContext,h=f===void 0?Ni:f,p=n.altBoundary,m=p===void 0?!1:p,y=n.padding,w=y===void 0?0:y,g=aw(typeof w!="number"?w:lw(w,ta)),v=h===Ni?oR:Ni,x=e.rects.popper,S=e.elements[m?v:h],C=$R(rs(S)?S:S.contextElement||Ar(e.elements.popper),l,d,o),j=ei(e.elements.reference),k=cw({reference:j,element:x,strategy:"absolute",placement:s}),O=Nf(Object.assign({},x,k)),A=h===Ni?O:j,_={top:C.top-A.top+g.top,bottom:A.bottom-C.bottom+g.bottom,left:C.left-A.left+g.left,right:A.right-C.right+g.right},F=e.modifiersData.offset;if(h===Ni&&F){var T=F[s];Object.keys(_).forEach(function($){var D=[Yt,Xt].indexOf($)>=0?1:-1,E=[yt,Xt].indexOf($)>=0?"y":"x";_[$]+=T[E]*D})}return _}function BR(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,i=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?rw:l,d=ti(r),f=d?a?f1:f1.filter(function(m){return ti(m)===d}):ta,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,y){return m[y]=Lo(e,{placement:y,boundary:s,rootBoundary:i,padding:o})[Cn(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function zR(e){if(Cn(e)===sp)return[];var t=il(e);return[m1(e),t,m1(t)]}function VR(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,y=n.allowedAutoPlacements,w=t.options.placement,g=Cn(w),v=g===w,x=l||(v||!m?[il(w)]:zR(w)),S=[w].concat(x).reduce(function(te,ae){return te.concat(Cn(ae)===sp?BR(t,{placement:ae,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:y}):ae)},[]),C=t.rects.reference,j=t.rects.popper,k=new Map,O=!0,A=S[0],_=0;_<S.length;_++){var F=S[_],T=Cn(F),$=ti(F)===Js,D=[yt,Xt].indexOf(T)>=0,E=D?"width":"height",N=Lo(t,{placement:F,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),L=D?$?Yt:xt:$?Xt:yt;C[E]>j[E]&&(L=il(L));var P=il(L),B=[];if(i&&B.push(N[T]<=0),a&&B.push(N[L]<=0,N[P]<=0),B.every(function(te){return te})){A=F,O=!1;break}k.set(F,B)}if(O)for(var z=m?3:1,ee=function(ae){var de=S.find(function(ye){var Re=k.get(ye);if(Re)return Re.slice(0,ae).every(function(ut){return ut})});if(de)return A=de,"break"},J=z;J>0;J--){var le=ee(J);if(le==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const UR={name:"flip",enabled:!0,phase:"main",fn:VR,requiresIfExists:["offset"],data:{_skip:!1}};function v1(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 y1(e){return[yt,Yt,Xt,xt].some(function(t){return e[t]>=0})}function HR(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,o=Lo(t,{elementContext:"reference"}),a=Lo(t,{altBoundary:!0}),l=v1(o,r),u=v1(a,s,i),d=y1(l),f=y1(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const qR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:HR};function QR(e,t,n){var r=Cn(e),s=[xt,yt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],a=i[1];return o=o||0,a=(a||0)*s,[xt,Yt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function WR(e){var t=e.state,n=e.options,r=e.name,s=n.offset,i=s===void 0?[0,0]:s,o=rw.reduce(function(d,f){return d[f]=QR(f,t.rects,i),d},{}),a=o[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const KR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:WR};function GR(e){var t=e.state,n=e.name;t.modifiersData[n]=cw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const XR={name:"popperOffsets",enabled:!0,phase:"read",fn:GR,data:{}};function YR(e){return e==="x"?"y":"x"}function JR(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,m=n.tetherOffset,y=m===void 0?0:m,w=Lo(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),g=Cn(t.placement),v=ti(t.placement),x=!v,S=ap(g),C=YR(S),j=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,_=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(j){if(i){var $,D=S==="y"?yt:xt,E=S==="y"?Xt:Yt,N=S==="y"?"height":"width",L=j[S],P=L+w[D],B=L-w[E],z=p?-O[N]/2:0,ee=v===Js?k[N]:O[N],J=v===Js?-O[N]:-k[N],le=t.elements.arrow,te=p&&le?op(le):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ow(),de=ae[D],ye=ae[E],Re=Zi(0,k[N],te[N]),ut=x?k[N]/2-z-Re-de-_.mainAxis:ee-Re-de-_.mainAxis,On=x?-k[N]/2+z+Re+ye+_.mainAxis:J+Re+ye+_.mainAxis,as=t.elements.arrow&&na(t.elements.arrow),ac=as?S==="y"?as.clientTop||0:as.clientLeft||0:0,hi=($=F==null?void 0:F[S])!=null?$:0,lc=L+ut-hi-ac,la=L+On-hi,pi=Zi(p?su(P,lc):P,L,p?Wr(B,la):B);j[S]=pi,T[S]=pi-L}if(a){var uc,$p=S==="x"?yt:xt,Bp=S==="x"?Xt:Yt,R=j[C],I=C==="y"?"height":"width",M=R+w[$p],W=R-w[Bp],q=[yt,xt].indexOf(g)!==-1,H=(uc=F==null?void 0:F[C])!=null?uc:0,X=q?M:R-k[I]-O[I]-H+_.altAxis,ue=q?R+k[I]+O[I]-H-_.altAxis:W,Oe=p&&q?SR(X,R,ue):Zi(p?X:M,R,p?ue:W);j[C]=Oe,T[C]=Oe-R}t.modifiersData[r]=T}}const ZR={name:"preventOverflow",enabled:!0,phase:"main",fn:JR,requiresIfExists:["offset"]};function e8(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function t8(e){return e===Pt(e)||!qt(e)?lp(e):e8(e)}function n8(e){var t=e.getBoundingClientRect(),n=Zs(t.width)/e.offsetWidth||1,r=Zs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function r8(e,t,n){n===void 0&&(n=!1);var r=qt(t),s=qt(t)&&n8(t),i=Ar(t),o=ei(e,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((jn(t)!=="body"||cp(i))&&(a=t8(t)),qt(t)?(l=ei(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=up(i))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function s8(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&s(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),r}function i8(e){var t=s8(e);return gR.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function o8(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function a8(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var x1={placement:"bottom",modifiers:[],strategy:"absolute"};function w1(){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 l8(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?x1:s;return function(a,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},x1,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],h=!1,p={state:d,setOptions:function(g){var v=typeof g=="function"?g(d.options):g;y(),d.options=Object.assign({},i,d.options,v),d.scrollParents={reference:rs(a)?eo(a):a.contextElement?eo(a.contextElement):[],popper:eo(l)};var x=i8(a8([].concat(r,d.options.modifiers)));return d.orderedModifiers=x.filter(function(S){return S.enabled}),m(),p.update()},forceUpdate:function(){if(!h){var g=d.elements,v=g.reference,x=g.popper;if(w1(v,x)){d.rects={reference:r8(v,na(x),d.options.strategy==="fixed"),popper:op(x)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(_){return d.modifiersData[_.name]=Object.assign({},_.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var C=d.orderedModifiers[S],j=C.fn,k=C.options,O=k===void 0?{}:k,A=C.name;typeof j=="function"&&(d=j({state:d,options:O,name:A,instance:p})||d)}}}},update:o8(function(){return new Promise(function(w){p.forceUpdate(),w(d)})}),destroy:function(){y(),h=!0}};if(!w1(a,l))return p;p.setOptions(u).then(function(w){!h&&u.onFirstUpdate&&u.onFirstUpdate(w)});function m(){d.orderedModifiers.forEach(function(w){var g=w.name,v=w.options,x=v===void 0?{}:v,S=w.effect;if(typeof S=="function"){var C=S({state:d,name:g,instance:p,options:x}),j=function(){};f.push(C||j)}})}function y(){f.forEach(function(w){return w()}),f=[]}return p}}var u8=[_R,XR,PR,xR,KR,UR,ZR,jR,qR],c8=l8({defaultModifiers:u8}),d8=typeof Element<"u",f8=typeof Map=="function",h8=typeof Set=="function",p8=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ol(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,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ol(e[r],t[r]))return!1;return!0}var i;if(f8&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ol(r.value[1],t.get(r.value[0])))return!1;return!0}if(h8&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(p8&&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(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(d8&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!ol(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var m8=function(t,n){try{return ol(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 g8=$o(m8);var v8=[],y8=function(t,n,r){r===void 0&&(r={});var s=b.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||v8},o=b.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],l=o[1],u=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var m=p.state,y=Object.keys(m.elements);Wn.flushSync(function(){l({styles:c1(y.map(function(w){return[w,m.styles[w]||{}]})),attributes:c1(y.map(function(w){return[w,m.attributes[w]]}))})})},requires:["computeStyles"]}},[]),d=b.useMemo(function(){var h={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return g8(s.current,h)?s.current||h:(s.current=h,h)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=b.useRef();return d1(function(){f.current&&f.current.setOptions(d)},[d]),d1(function(){if(!(t==null||n==null)){var h=r.createPopper||c8,p=h(t,n,d);return f.current=p,function(){p.destroy(),f.current=null}}},[t,n,r.createPopper]),{state:f.current?f.current.state:null,styles:a.styles,attributes:a.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}};const x8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.805c.49.704.733 1.473.733 2.306 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624"})]}),w8=x8,b8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M22.996 13.153c0 1.393-.291 2.722-.873 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.153c0-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.589M13.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.201"})]}),b1=b8,S8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111m3.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.363"})]}),C8=S8,E8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216m7.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-.216m7.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-.216m7.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-.216m7.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-.24m7.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-.24m7.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"})]}),S1=E8,k8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12M7.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-.963M9.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.03",clipRule:"evenodd"})]}),j8=k8,R8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216zm0-2.738V8.573l5.848 3.531zm0-12.084V3.048h23.024v3.387l-11.512 6.847zm17.176 5.67 5.848-3.532v9.946z"})]}),C1=R8,O8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53zm0 4.4v-2.2h-2.14v2.2zM24 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"})]}),N8=O8,P8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M11.685 2C8.66 2 6.7 3.277 5.164 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-6m-.38 14.588c-1.447 0-2.625 1.214-2.625 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706"})]}),A8=P8,_8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334m10.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.996 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-.837",clipRule:"evenodd"})]}),T8=_8,I8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:c.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24m0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51m0 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.3"})}),c.jsx("defs",{children:c.jsx("clipPath",{id:"one-profile_svg__a",children:c.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),dp=I8,D8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628m2.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.486"})]}),M8=D8,L8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),F8=L8,E1=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function $8(e,t){t?t={...E1,...t}:t=E1;const n=dw(t);return n.dispatch(e),n.toString()}const B8=Object.freeze(["prototype","__proto__","constructor"]);function dw(e){let t="",n=new Map;const r=s=>{t+=s};return{toString(){return t},getContext(){return n},dispatch(s){return e.replacer&&(s=e.replacer(s)),this[s===null?"null":typeof s](s)},object(s){if(s&&typeof s.toJSON=="function")return this.object(s.toJSON());const i=Object.prototype.toString.call(s);let o="";const a=i.length;a<10?o="unknown:["+i+"]":o=i.slice(8,a-1),o=o.toLowerCase();let l=null;if((l=n.get(s))===void 0)n.set(s,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(s))return r("buffer:"),r(s.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](s):e.ignoreUnknown||this.unkown(s,o);else{let u=Object.keys(s);e.unorderedObjects&&(u=u.sort());let d=[];e.respectType!==!1&&!k1(s)&&(d=B8),e.excludeKeys&&(u=u.filter(h=>!e.excludeKeys(h)),d=d.filter(h=>!e.excludeKeys(h))),r("object:"+(u.length+d.length)+":");const f=h=>{this.dispatch(h),r(":"),e.excludeValues||this.dispatch(s[h]),r(",")};for(const h of u)f(h);for(const h of d)f(h)}},array(s,i){if(i=i===void 0?e.unorderedArrays!==!1:i,r("array:"+s.length+":"),!i||s.length<=1){for(const l of s)this.dispatch(l);return}const o=new Map,a=s.map(l=>{const u=dw(e);u.dispatch(l);for(const[d,f]of u.getContext())o.set(d,f);return u.toString()});return n=o,a.sort(),this.array(a,!1)},date(s){return r("date:"+s.toJSON())},symbol(s){return r("symbol:"+s.toString())},unkown(s,i){if(r(i),!!s&&(r(":"),s&&typeof s.entries=="function"))return this.array(Array.from(s.entries()),!0)},error(s){return r("error:"+s.toString())},boolean(s){return r("bool:"+s)},string(s){r("string:"+s.length+":"),r(s)},function(s){r("fn:"),k1(s)?this.dispatch("[native]"):this.dispatch(s.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(s.name)),e.respectFunctionProperties&&this.object(s)},number(s){return r("number:"+s)},xml(s){return r("xml:"+s.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(s){return r("regex:"+s.toString())},uint8array(s){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(s))},uint8clampedarray(s){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(s))},int8array(s){return r("int8array:"),this.dispatch(Array.prototype.slice.call(s))},uint16array(s){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(s))},int16array(s){return r("int16array:"),this.dispatch(Array.prototype.slice.call(s))},uint32array(s){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(s))},int32array(s){return r("int32array:"),this.dispatch(Array.prototype.slice.call(s))},float32array(s){return r("float32array:"),this.dispatch(Array.prototype.slice.call(s))},float64array(s){return r("float64array:"),this.dispatch(Array.prototype.slice.call(s))},arraybuffer(s){return r("arraybuffer:"),this.dispatch(new Uint8Array(s))},url(s){return r("url:"+s.toString())},map(s){r("map:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},set(s){r("set:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},file(s){return r("file:"),this.dispatch([s.name,s.size,s.type,s.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported
|
|
217
|
+
`,Ql=16,Hj=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:l,handlers:a}=yj(n);return S.createElement("div",{style:{position:"fixed",zIndex:9999,top:Ql,left:Ql,right:Ql,bottom:Ql,pointerEvents:"none",...i},className:o,onMouseEnter:a.startPause,onMouseLeave:a.endPause},l.map(u=>{let c=u.position||t,f=a.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),p=Vj(c,f);return S.createElement(Bj,{id:u.id,key:u.id,onHeightUpdate:a.updateHeight,className:u.visible?Uj:"",style:p},u.type==="custom"?wc(u.message,u):s?s(u):S.createElement(zj,{toast:u,position:c}))}))},Oo=Dt,qj=Object.defineProperty,Wj=(e,t)=>{for(var n in t)qj(e,n,{get:t[n],enumerable:!0})},jn={};Wj(jn,{assign:()=>Kj,colors:()=>Yr,createStringInterpolator:()=>zm,skipAnimation:()=>Rb,to:()=>Ob,willAdvance:()=>Bm});var _m=vl(),ie=e=>gl(e,_m),Mm=vl();ie.write=e=>gl(e,Mm);var sd=vl();ie.onStart=e=>gl(e,sd);var Lm=vl();ie.onFrame=e=>gl(e,Lm);var Dm=vl();ie.onFinish=e=>gl(e,Dm);var ji=[];ie.setTimeout=(e,t)=>{const n=ie.now()+t,r=()=>{const i=ji.findIndex(o=>o.cancel==r);~i&&ji.splice(i,1),$r-=~i?1:0},s={time:n,handler:e,cancel:r};return ji.splice(Cb(n),0,s),$r+=1,kb(),s};var Cb=e=>~(~ji.findIndex(t=>t.time>e)||~ji.length);ie.cancel=e=>{sd.delete(e),Lm.delete(e),Dm.delete(e),_m.delete(e),Mm.delete(e)};ie.sync=e=>{sh=!0,ie.batchedUpdates(e),sh=!1};ie.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...s){t=s,ie.onStart(n)}return r.handler=e,r.cancel=()=>{sd.delete(n),t=null},r};var Fm=typeof window<"u"?window.requestAnimationFrame:()=>{};ie.use=e=>Fm=e;ie.now=typeof performance<"u"?()=>performance.now():Date.now;ie.batchedUpdates=e=>e();ie.catch=console.error;ie.frameLoop="always";ie.advance=()=>{ie.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):jb()};var Fr=-1,$r=0,sh=!1;function gl(e,t){sh?(t.delete(e),e(0)):(t.add(e),kb())}function kb(){Fr<0&&(Fr=0,ie.frameLoop!=="demand"&&Fm(Tb))}function Gj(){Fr=-1}function Tb(){~Fr&&(Fm(Tb),ie.batchedUpdates(jb))}function jb(){const e=Fr;Fr=ie.now();const t=Cb(Fr);if(t&&(Pb(ji.splice(0,t),n=>n.handler()),$r-=t),!$r){Gj();return}sd.flush(),_m.flush(e?Math.min(64,Fr-e):16.667),Lm.flush(),Mm.flush(),Dm.flush()}function vl(){let e=new Set,t=e;return{add(n){$r+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return $r-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,$r-=t.size,Pb(t,r=>r(n)&&e.add(r)),$r+=e.size,t=e)}}}function Pb(e,t){e.forEach(n=>{try{t(n)}catch(r){ie.catch(r)}})}function ih(){}var Qj=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),U={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 Zn(e,t){if(U.arr(e)){if(!U.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 te=(e,t)=>e.forEach(t);function Hn(e,t,n){if(U.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var ut=e=>U.und(e)?[]:U.arr(e)?e:[e];function ta(e,t){if(e.size){const n=Array.from(e);e.clear(),te(n,t)}}var Bo=(e,...t)=>ta(e,n=>n(...t)),$m=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),zm,Ob,Yr=null,Rb=!1,Bm=ih,Kj=e=>{e.to&&(Ob=e.to),e.now&&(ie.now=e.now),e.colors!==void 0&&(Yr=e.colors),e.skipAnimation!=null&&(Rb=e.skipAnimation),e.createStringInterpolator&&(zm=e.createStringInterpolator),e.requestAnimationFrame&&ie.use(e.requestAnimationFrame),e.batchedUpdates&&(ie.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Bm=e.willAdvance),e.frameLoop&&(ie.frameLoop=e.frameLoop)},na=new Set,nn=[],xf=[],xc=0,id={get idle(){return!na.size&&!nn.length},start(e){xc>e.priority?(na.add(e),ie.onStart(Xj)):(Nb(e),ie(oh))},advance:oh,sort(e){if(xc)ie.onFrame(()=>id.sort(e));else{const t=nn.indexOf(e);~t&&(nn.splice(t,1),Ab(e))}},clear(){nn=[],na.clear()}};function Xj(){na.forEach(Nb),na.clear(),ie(oh)}function Nb(e){nn.includes(e)||Ab(e)}function Ab(e){nn.splice(Yj(nn,t=>t.priority>e.priority),0,e)}function oh(e){const t=xf;for(let n=0;n<nn.length;n++){const r=nn[n];xc=r.priority,r.idle||(Bm(r),r.advance(e),r.idle||t.push(r))}return xc=0,xf=nn,xf.length=0,nn=t,nn.length>0}function Yj(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Jj=(e,t,n)=>Math.min(Math.max(n,e),t),Zj={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},En="[-+]?\\d*\\.?\\d+",bc=En+"%";function od(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var eP=new RegExp("rgb"+od(En,En,En)),tP=new RegExp("rgba"+od(En,En,En,En)),nP=new RegExp("hsl"+od(En,bc,bc)),rP=new RegExp("hsla"+od(En,bc,bc,En)),sP=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,iP=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,oP=/^#([0-9a-fA-F]{6})$/,aP=/^#([0-9a-fA-F]{8})$/;function lP(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=oP.exec(e))?parseInt(t[1]+"ff",16)>>>0:Yr&&Yr[e]!==void 0?Yr[e]:(t=eP.exec(e))?(ii(t[1])<<24|ii(t[2])<<16|ii(t[3])<<8|255)>>>0:(t=tP.exec(e))?(ii(t[1])<<24|ii(t[2])<<16|ii(t[3])<<8|_1(t[4]))>>>0:(t=sP.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=aP.exec(e))?parseInt(t[1],16)>>>0:(t=iP.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=nP.exec(e))?(A1(I1(t[1]),Kl(t[2]),Kl(t[3]))|255)>>>0:(t=rP.exec(e))?(A1(I1(t[1]),Kl(t[2]),Kl(t[3]))|_1(t[4]))>>>0:null}function bf(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 A1(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r,i=bf(s,r,e+1/3),o=bf(s,r,e),l=bf(s,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(l*255)<<8}function ii(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function I1(e){return(parseFloat(e)%360+360)%360/360}function _1(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Kl(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function M1(e){let t=lP(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,s=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${s}, ${i})`}var _a=(e,t,n)=>{if(U.fun(e))return e;if(U.arr(e))return _a({range:e,output:t,extrapolate:n});if(U.str(e.output[0]))return zm(e);const r=e,s=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",a=r.easing||(u=>u);return u=>{const c=cP(u,i);return uP(u,i[c],i[c+1],s[c],s[c+1],a,o,l,r.map)}};function uP(e,t,n,r,s,i,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===s?r:t===n?e<=t?r:s:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:s===1/0?u=u+r:u=u*(s-r)+r,u)}function cP(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var dP=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,s=t==="end"?Math.floor(r):Math.ceil(r);return Jj(0,1,s/e)},Sc=1.70158,Xl=Sc*1.525,L1=Sc+1,D1=2*Math.PI/3,F1=2*Math.PI/4.5,Yl=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,fP={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-Sc*e*e,easeOutBack:e=>1+L1*Math.pow(e-1,3)+Sc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Xl+1)*2*e-Xl)/2:(Math.pow(2*e-2,2)*((Xl+1)*(e*2-2)+Xl)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*D1),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*D1)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*F1))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*F1)/2+1,easeInBounce:e=>1-Yl(1-e),easeOutBounce:Yl,easeInOutBounce:e=>e<.5?(1-Yl(1-2*e))/2:(1+Yl(2*e-1))/2,steps:dP},Ma=Symbol.for("FluidValue.get"),no=Symbol.for("FluidValue.observers"),tn=e=>!!(e&&e[Ma]),yt=e=>e&&e[Ma]?e[Ma]():e,$1=e=>e[no]||null;function pP(e,t){e.eventObserved?e.eventObserved(t):e(t)}function La(e,t){const n=e[no];n&&n.forEach(r=>{pP(r,t)})}var Ib=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");hP(this,e)}},hP=(e,t)=>_b(e,Ma,t);function po(e,t){if(e[Ma]){let n=e[no];n||_b(e,no,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Da(e,t){const n=e[no];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[no]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var _b=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ku=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,mP=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,z1=new RegExp(`(${ku.source})(%|[a-z]+)`,"i"),gP=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ad=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Mb=e=>{const[t,n]=vP(e);if(!t||$m())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);return s||e}else{if(n&&ad.test(n))return Mb(n);if(n)return n}return e},vP=e=>{const t=ad.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Sf,yP=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,Lb=e=>{Sf||(Sf=Yr?new RegExp(`(${Object.keys(Yr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>yt(i).replace(ad,Mb).replace(mP,M1).replace(Sf,M1)),n=t.map(i=>i.match(ku).map(Number)),s=n[0].map((i,o)=>n.map(l=>{if(!(o in l))throw Error('The arity of each "output" value must be equal');return l[o]})).map(i=>_a({...e,output:i}));return i=>{var a;const o=!z1.test(t[0])&&((a=t.find(u=>z1.test(u)))==null?void 0:a.replace(ku,""));let l=0;return t[0].replace(ku,()=>`${s[l++](i)}${o||""}`).replace(gP,yP)}},Vm="react-spring: ",Db=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Vm}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},wP=Db(console.warn);function xP(){wP(`${Vm}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var bP=Db(console.warn);function SP(){bP(`${Vm}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 ld(e){return U.str(e)&&(e[0]=="#"||/\d/.test(e)||!$m()&&ad.test(e)||e in(Yr||{}))}var bs=$m()?S.useEffect:S.useLayoutEffect,EP=()=>{const e=S.useRef(!1);return bs(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Um(){const e=S.useState()[1],t=EP();return()=>{t.current&&e(Math.random())}}function CP(e,t){const[n]=S.useState(()=>({inputs:t,result:e()})),r=S.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&kP(t,i.inputs)||(i={inputs:t,result:e()}):i=n,S.useEffect(()=>{r.current=i,s==n&&(n.inputs=n.result=void 0)},[i]),i.result}function kP(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 Hm=e=>S.useEffect(e,TP),TP=[];function ah(e){const t=S.useRef();return S.useEffect(()=>{t.current=e}),t.current}var Fa=Symbol.for("Animated:node"),jP=e=>!!e&&e[Fa]===e,Nn=e=>e&&e[Fa],qm=(e,t)=>Qj(e,Fa,t),ud=e=>e&&e[Fa]&&e[Fa].getPayload(),Fb=class{constructor(){qm(this,this)}getPayload(){return this.payload||[]}},yl=class extends Fb{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,U.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yl(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return U.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,U.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},$a=class extends yl{constructor(e){super(0),this._string=null,this._toString=_a({output:[e,e]})}static create(e){return new $a(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(U.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=_a({output:[this.getValue(),e]})),this._value=0,super.reset()}},Ec={dependencies:null},cd=class extends Fb{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Hn(this.source,(n,r)=>{jP(n)?t[r]=n.getValue(e):tn(n)?t[r]=yt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&te(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Hn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ec.dependencies&&tn(e)&&Ec.dependencies.add(e);const t=ud(e);t&&te(t,n=>this.add(n))}},$b=class extends cd{constructor(e){super(e)}static create(e){return new $b(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(PP)),!0)}};function PP(e){return(ld(e)?$a:yl).create(e)}function lh(e){const t=Nn(e);return t?t.constructor:U.arr(e)?$b:ld(e)?$a:yl}var B1=(e,t)=>{const n=!U.fun(e)||e.prototype&&e.prototype.isReactComponent;return S.forwardRef((r,s)=>{const i=S.useRef(null),o=n&&S.useCallback(y=>{i.current=NP(s,y)},[s]),[l,a]=RP(r,t),u=Um(),c=()=>{const y=i.current;if(n&&!y)return;(y?t.applyAnimatedValues(y,l.getValue(!0)):!1)===!1&&u()},f=new OP(c,a),p=S.useRef();bs(()=>(p.current=f,te(a,y=>po(y,f)),()=>{p.current&&(te(p.current.deps,y=>Da(y,p.current)),ie.cancel(p.current.update))})),S.useEffect(c,[]),Hm(()=>()=>{const y=p.current;te(y.deps,w=>Da(w,y))});const h=t.getComponentProps(l.getValue());return S.createElement(e,{...h,ref:o})})},OP=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&ie.write(this.update)}};function RP(e,t){const n=new Set;return Ec.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new cd(e),Ec.dependencies=null,[e,n]}function NP(e,t){return e&&(U.fun(e)?e(t):e.current=t),t}var V1=Symbol.for("AnimatedComponent"),AP=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new cd(s),getComponentProps:r=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const l=U1(o)||"Anonymous";return U.str(o)?o=i[o]||(i[o]=B1(o,s)):o=o[V1]||(o[V1]=B1(o,s)),o.displayName=`Animated(${l})`,o};return Hn(e,(o,l)=>{U.arr(e)&&(l=U1(o)),i[l]=i(o)}),{animated:i}},U1=e=>U.str(e)?e:e&&U.str(e.displayName)?e.displayName:U.fun(e)&&e.name||null;function wt(e,...t){return U.fun(e)?e(...t):e}var ra=(e,t)=>e===!0||!!(t&&e&&(U.fun(e)?e(t):ut(e).includes(t))),zb=(e,t)=>U.obj(e)?t&&e[t]:e,Bb=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,IP=e=>e,dd=(e,t=IP)=>{let n=_P;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const s of n){const i=t(e[s],s);U.und(i)||(r[s]=i)}return r},_P=["config","onProps","onStart","onChange","onPause","onResume","onRest"],MP={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 LP(e){const t={};let n=0;if(Hn(e,(r,s)=>{MP[s]||(t[s]=r,n++)}),n)return t}function Wm(e){const t=LP(e);if(t){const n={to:t};return Hn(e,(r,s)=>s in t||(n[s]=r)),n}return{...e}}function za(e){return e=yt(e),U.arr(e)?e.map(za):ld(e)?jn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Vb(e){for(const t in e)return!0;return!1}function uh(e){return U.fun(e)||U.arr(e)&&U.obj(e[0])}function ch(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Ub(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var DP={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}},dh={...DP.default,mass:1,damping:1,easing:fP.linear,clamp:!1},FP=class{constructor(){this.velocity=0,Object.assign(this,dh)}};function $P(e,t,n){n&&(n={...n},H1(n,t),t={...n,...t}),H1(e,t),Object.assign(e,t);for(const o in dh)e[o]==null&&(e[o]=dh[o]);let{frequency:r,damping:s}=e;const{mass:i}=e;return U.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*s*i/r),e}function H1(e,t){if(!U.und(t.decay))e.duration=void 0;else{const n=!U.und(t.tension)||!U.und(t.friction);(n||!U.und(t.frequency)||!U.und(t.damping)||!U.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var q1=[],zP=class{constructor(){this.changed=!1,this.values=q1,this.toValues=null,this.fromValues=q1,this.config=new FP,this.immediate=!1}};function Hb(e,{key:t,props:n,defaultProps:r,state:s,actions:i}){return new Promise((o,l)=>{let a,u,c=ra(n.cancel??(r==null?void 0:r.cancel),t);if(c)h();else{U.und(n.pause)||(s.paused=ra(n.pause,t));let y=r==null?void 0:r.pause;y!==!0&&(y=s.paused||ra(y,t)),a=wt(n.delay||0,t),y?(s.resumeQueue.add(p),i.pause()):(i.resume(),p())}function f(){s.resumeQueue.add(p),s.timeouts.delete(u),u.cancel(),a=u.time-ie.now()}function p(){a>0&&!jn.skipAnimation?(s.delayed=!0,u=ie.setTimeout(h,a),s.pauseQueue.add(f),s.timeouts.add(u)):h()}function h(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(f),s.timeouts.delete(u),e<=(s.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},o)}catch(y){l(y)}}})}var Gm=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Pi(e.get()):t.every(n=>n.noop)?qb(e.get()):bn(e.get(),t.every(n=>n.finished)),qb=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),bn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Pi=e=>({value:e,cancelled:!0,finished:!1});function Wb(e,t,n,r){const{callId:s,parentId:i,onRest:o}=t,{asyncTo:l,promise:a}=n;return!i&&e===l&&!t.reset?a:n.promise=(async()=>{n.asyncId=s,n.asyncTo=e;const u=dd(t,(x,g)=>g==="onRest"?void 0:x);let c,f;const p=new Promise((x,g)=>(c=x,f=g)),h=x=>{const g=s<=(n.cancelId||0)&&Pi(r)||s!==n.asyncId&&bn(r,!1);if(g)throw x.result=g,f(x),x},y=(x,g)=>{const m=new W1,v=new G1;return(async()=>{if(jn.skipAnimation)throw Ba(n),v.result=bn(r,!1),f(v),v;h(m);const b=U.obj(x)?{...x}:{...g,to:x};b.parentId=s,Hn(u,(T,C)=>{U.und(b[C])&&(b[C]=T)});const E=await r.start(b);return h(m),n.paused&&await new Promise(T=>{n.resumeQueue.add(T)}),E})()};let w;if(jn.skipAnimation)return Ba(n),bn(r,!1);try{let x;U.arr(e)?x=(async g=>{for(const m of g)await y(m)})(e):x=Promise.resolve(e(y,r.stop.bind(r))),await Promise.all([x.then(c),p]),w=bn(r.get(),!0,!1)}catch(x){if(x instanceof W1)w=x.result;else if(x instanceof G1)w=x.result;else throw x}finally{s==n.asyncId&&(n.asyncId=i,n.asyncTo=i?l:void 0,n.promise=i?a:void 0)}return U.fun(o)&&ie.batchedUpdates(()=>{o(w,r,r.item)}),w})()}function Ba(e,t){ta(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var W1=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.")}},G1=class extends Error{constructor(){super("SkipAnimationSignal")}},fh=e=>e instanceof Qm,BP=1,Qm=class extends Ib{constructor(){super(...arguments),this.id=BP++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Nn(this);return e&&e.getValue()}to(...e){return jn.to(this,e)}interpolate(...e){return xP(),jn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){La(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||id.sort(this),La(this,{type:"priority",parent:this,priority:e})}},Vs=Symbol.for("SpringPhase"),Gb=1,ph=2,hh=4,Ef=e=>(e[Vs]&Gb)>0,xr=e=>(e[Vs]&ph)>0,Ro=e=>(e[Vs]&hh)>0,Q1=(e,t)=>t?e[Vs]|=ph|Gb:e[Vs]&=~ph,K1=(e,t)=>t?e[Vs]|=hh:e[Vs]&=~hh,VP=class extends Qm{constructor(e,t){if(super(),this.animation=new zP,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!U.und(e)||!U.und(t)){const n=U.obj(e)?{...e}:{...t,from:e};U.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(xr(this)||this._state.asyncTo)||Ro(this)}get goal(){return yt(this.animation.to)}get velocity(){const e=Nn(this);return e instanceof yl?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Ef(this)}get isAnimating(){return xr(this)}get isPaused(){return Ro(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:s}=r;const{config:i}=r,o=ud(r.to);!o&&tn(r.to)&&(s=ut(yt(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const f=u.constructor==$a?1:o?o[c].lastPosition:s[c];let p=r.immediate,h=f;if(!p){if(h=u.lastPosition,i.tension<=0){u.done=!0;return}let y=u.elapsedTime+=e;const w=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=U.arr(i.velocity)?i.velocity[c]:i.velocity;let g;const m=i.precision||(w==f?.005:Math.min(1,Math.abs(f-w)*.001));if(U.und(i.duration))if(i.decay){const v=i.decay===!0?.998:i.decay,b=Math.exp(-(1-v)*y);h=w+x/(1-v)*(1-b),p=Math.abs(u.lastPosition-h)<=m,g=x*b}else{g=u.lastVelocity==null?x:u.lastVelocity;const v=i.restVelocity||m/10,b=i.clamp?0:i.bounce,E=!U.und(b),T=w==f?u.v0>0:w<f;let C,R=!1;const j=1,L=Math.ceil(e/j);for(let A=0;A<L&&(C=Math.abs(g)>v,!(!C&&(p=Math.abs(f-h)<=m,p)));++A){E&&(R=h==f||h>f==T,R&&(g=-g*b,h=f));const N=-i.tension*1e-6*(h-f),M=-i.friction*.001*g,D=(N+M)/i.mass;g=g+D*j,h=h+g*j}}else{let v=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,y=u.elapsedTime+=e)),v=(i.progress||0)+y/this._memoizedDuration,v=v>1?1:v<0?0:v,u.durationProgress=v),h=w+i.easing(v)*(f-w),g=(h-u.lastPosition)/e,p=v==1}u.lastVelocity=g,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),p=!0)}o&&!o[c].done&&(p=!1),p?u.done=!0:t=!1,u.setValue(h,i.round)&&(n=!0)});const l=Nn(this),a=l.getValue();if(t){const u=yt(r.to);(a!==u||n)&&!i.decay?(l.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(a),this._stop()}else n&&this._onChange(a)}set(e){return ie.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(xr(this)){const{to:e,config:t}=this.animation;ie.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return U.und(e)?(n=this.queue||[],this.queue=[]):n=[U.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Gm(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ba(this._state,e&&this._lastCallId),ie.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=U.obj(n)?n[t]:n,(n==null||uh(n))&&(n=void 0),r=U.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Ef(this)||(e.reverse&&([n,r]=[r,n]),r=yt(r),U.und(r)?Nn(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,dd(e,(o,l)=>/^on/.test(l)?zb(o,n):o)),Y1(this,e,"onProps"),Ao(this,"onProps",e,this);const s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Hb(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ro(this)||(K1(this,!0),Bo(i.pauseQueue),Ao(this,"onPause",bn(this,No(this,this.animation.to)),this))},resume:()=>{Ro(this)&&(K1(this,!1),xr(this)&&this._resume(),Bo(i.resumeQueue),Ao(this,"onResume",bn(this,No(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const l=Qb(e);if(l)return this._update(l,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Pi(this));const r=!U.und(e.to),s=!U.und(e.from);if(r||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Pi(this));const{key:i,defaultProps:o,animation:l}=this,{to:a,from:u}=l;let{to:c=a,from:f=u}=e;s&&!r&&(!t.default||U.und(c))&&(c=f),t.reverse&&([c,f]=[f,c]);const p=!Zn(f,u);p&&(l.from=f),f=yt(f);const h=!Zn(c,a);h&&this._focus(c);const y=uh(t.to),{config:w}=l,{decay:x,velocity:g}=w;(r||s)&&(w.velocity=0),t.config&&!y&&$P(w,wt(t.config,i),t.config!==o.config?wt(o.config,i):void 0);let m=Nn(this);if(!m||U.und(c))return n(bn(this,!0));const v=U.und(t.reset)?s&&!t.default:!U.und(f)&&ra(t.reset,i),b=v?f:this.get(),E=za(c),T=U.num(E)||U.arr(E)||ld(E),C=!y&&(!T||ra(o.immediate||t.immediate,i));if(h){const A=lh(c);if(A!==m.constructor)if(C)m=this._set(E);else throw Error(`Cannot animate between ${m.constructor.name} and ${A.name}, as the "to" prop suggests`)}const R=m.constructor;let j=tn(c),L=!1;if(!j){const A=v||!Ef(this)&&p;(h||A)&&(L=Zn(za(b),E),j=!L),(!Zn(l.immediate,C)&&!C||!Zn(w.decay,x)||!Zn(w.velocity,g))&&(j=!0)}if(L&&xr(this)&&(l.changed&&!v?j=!0:j||this._stop(a)),!y&&((j||tn(a))&&(l.values=m.getPayload(),l.toValues=tn(c)?null:R==$a?[1]:ut(E)),l.immediate!=C&&(l.immediate=C,!C&&!v&&this._set(a)),j)){const{onRest:A}=l;te(HP,M=>Y1(this,t,M));const N=bn(this,No(this,a));Bo(this._pendingCalls,N),this._pendingCalls.add(n),l.changed&&ie.batchedUpdates(()=>{var M;l.changed=!v,A==null||A(N,this),v?wt(o.onRest,N):(M=l.onStart)==null||M.call(l,N,this)})}v&&this._set(b),y?n(Wb(t.to,t,this._state,this)):j?this._start():xr(this)&&!h?this._pendingCalls.add(n):n(qb(b))}_focus(e){const t=this.animation;e!==t.to&&($1(this)&&this._detach(),t.to=e,$1(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;tn(t)&&(po(t,this),fh(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;tn(e)&&Da(e,this)}_set(e,t=!0){const n=yt(e);if(!U.und(n)){const r=Nn(this);if(!r||!Zn(n,r.getValue())){const s=lh(n);!r||r.constructor!=s?qm(this,s.create(n)):r.setValue(n),r&&ie.batchedUpdates(()=>{this._onChange(n,t)})}}return Nn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ao(this,"onStart",bn(this,No(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),wt(this.animation.onChange,e,this)),wt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Nn(this).reset(yt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),xr(this)||(Q1(this,!0),Ro(this)||this._resume())}_resume(){jn.skipAnimation?this.finish():id.start(this)}_stop(e,t){if(xr(this)){Q1(this,!1);const n=this.animation;te(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),La(this,{type:"idle",parent:this});const r=t?Pi(this.get()):bn(this.get(),No(this,e??n.to));Bo(this._pendingCalls,r),n.changed&&(n.changed=!1,Ao(this,"onRest",r,this))}}};function No(e,t){const n=za(t),r=za(e.get());return Zn(r,n)}function Qb(e,t=e.loop,n=e.to){const r=wt(t);if(r){const s=r!==!0&&Wm(r),i=(s||e).reverse,o=!s||s.reset;return Va({...e,loop:t,default:!1,pause:void 0,to:!i||uh(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function Va(e){const{to:t,from:n}=e=Wm(e),r=new Set;return U.obj(t)&&X1(t,r),U.obj(n)&&X1(n,r),e.keys=r.size?Array.from(r):null,e}function UP(e){const t=Va(e);return U.und(t.default)&&(t.default=dd(t)),t}function X1(e,t){Hn(e,(n,r)=>n!=null&&t.add(r))}var HP=["onStart","onRest","onChange","onPause","onResume"];function Y1(e,t,n){e.animation[n]=t[n]!==Bb(t,n)?zb(t[n],e.key):void 0}function Ao(e,t,...n){var r,s,i,o;(s=(r=e.animation)[t])==null||s.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var qP=["onStart","onChange","onRest"],WP=1,Kb=class{constructor(e,t){this.id=WP++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];U.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Va(e)),this}start(e){let{queue:t}=this;return e?t=ut(e).map(Va):this.queue=[],this._flush?this._flush(this,t):(e2(this,t),mh(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;te(ut(t),r=>n[r].stop(!!e))}else Ba(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(U.und(e))this.start({pause:!0});else{const t=this.springs;te(ut(e),n=>t[n].pause())}return this}resume(e){if(U.und(e))this.start({pause:!1});else{const t=this.springs;te(ut(e),n=>t[n].resume())}return this}each(e){Hn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,ta(e,([l,a])=>{a.value=this.get(),l(a,this,this._item)}));const i=!r&&this._started,o=s||i&&n.size?this.get():null;s&&t.size&&ta(t,([l,a])=>{a.value=o,l(a,this,this._item)}),i&&(this._started=!1,ta(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;ie.onFrame(this._onFrame)}};function mh(e,t){return Promise.all(t.map(n=>Xb(e,n))).then(n=>Gm(e,n))}async function Xb(e,t,n){const{keys:r,to:s,from:i,loop:o,onRest:l,onResolve:a}=t,u=U.obj(t.default)&&t.default;o&&(t.loop=!1),s===!1&&(t.to=null),i===!1&&(t.from=null);const c=U.arr(s)||U.fun(s)?s:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):te(qP,w=>{const x=t[w];if(U.fun(x)){const g=e._events[w];t[w]=({finished:m,cancelled:v})=>{const b=g.get(x);b?(m||(b.finished=!1),v&&(b.cancelled=!0)):g.set(x,{value:null,finished:m||!1,cancelled:v||!1})},u&&(u[w]=t[w])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,Bo(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map(w=>e.springs[w].start(t)),h=t.cancel===!0||Bb(t,"cancel")===!0;(c||h&&f.asyncId)&&p.push(Hb(++e._lastAsyncId,{props:t,state:f,actions:{pause:ih,resume:ih,start(w,x){h?(Ba(f,e._lastAsyncId),x(Pi(e))):(w.onRest=l,x(Wb(c,w,f,e)))}}})),f.paused&&await new Promise(w=>{f.resumeQueue.add(w)});const y=Gm(e,await Promise.all(p));if(o&&y.finished&&!(n&&y.noop)){const w=Qb(t,o,s);if(w)return e2(e,[w]),Xb(e,w,!0)}return a&&ie.batchedUpdates(()=>a(y,e,e.item)),y}function gh(e,t){const n={...e.springs};return t&&te(ut(t),r=>{U.und(r.keys)&&(r=Va(r)),U.obj(r.to)||(r={...r,to:void 0}),Zb(n,r,s=>Jb(s))}),Yb(e,n),n}function Yb(e,t){Hn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,po(n,e))})}function Jb(e,t){const n=new VP;return n.key=e,t&&po(n,t),n}function Zb(e,t,n){t.keys&&te(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function e2(e,t){te(t,n=>{Zb(e.springs,n,r=>Jb(r,e))})}var wl=({children:e,...t})=>{const n=S.useContext(Cc),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=CP(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=Cc;return S.createElement(i,{value:t},e)},Cc=GP(wl,{});wl.Provider=Cc.Provider;wl.Consumer=Cc.Consumer;function GP(e,t){return Object.assign(e,S.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var t2=()=>{const e=[],t=function(r){SP();const s=[];return te(e,(i,o)=>{if(U.und(r))s.push(i.start());else{const l=n(r,i,o);l&&s.push(i.start(l))}}),s};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const s=e.indexOf(r);~s&&e.splice(s,1)},t.pause=function(){return te(e,r=>r.pause(...arguments)),this},t.resume=function(){return te(e,r=>r.resume(...arguments)),this},t.set=function(r){te(e,(s,i)=>{const o=U.fun(r)?r(i,s):r;o&&s.set(o)})},t.start=function(r){const s=[];return te(e,(i,o)=>{if(U.und(r))s.push(i.start());else{const l=this._getProps(r,i,o);l&&s.push(i.start(l))}}),s},t.stop=function(){return te(e,r=>r.stop(...arguments)),this},t.update=function(r){return te(e,(s,i)=>s.update(this._getProps(r,s,i))),this};const n=function(r,s,i){return U.fun(r)?r(i,s):r};return t._getProps=n,t};function QP(e,t,n){const r=U.fun(t)&&t;r&&!n&&(n=[]);const s=S.useMemo(()=>r||arguments.length==3?t2():void 0,[]),i=S.useRef(0),o=Um(),l=S.useMemo(()=>({ctrls:[],queue:[],flush(g,m){const v=gh(g,m);return i.current>0&&!l.queue.length&&!Object.keys(v).some(E=>!g.springs[E])?mh(g,m):new Promise(E=>{Yb(g,v),l.queue.push(()=>{E(mh(g,m))}),o()})}}),[]),a=S.useRef([...l.ctrls]),u=[],c=ah(e)||0;S.useMemo(()=>{te(a.current.slice(e,c),g=>{ch(g,s),g.stop(!0)}),a.current.length=e,f(c,e)},[e]),S.useMemo(()=>{f(0,Math.min(c,e))},n);function f(g,m){for(let v=g;v<m;v++){const b=a.current[v]||(a.current[v]=new Kb(null,l.flush)),E=r?r(v,b):t[v];E&&(u[v]=UP(E))}}const p=a.current.map((g,m)=>gh(g,u[m])),h=S.useContext(wl),y=ah(h),w=h!==y&&Vb(h);bs(()=>{i.current++,l.ctrls=a.current;const{queue:g}=l;g.length&&(l.queue=[],te(g,m=>m())),te(a.current,(m,v)=>{s==null||s.add(m),w&&m.start({default:h});const b=u[v];b&&(Ub(m,b.ref),m.ref?m.queue.push(b):m.start(b))})}),Hm(()=>()=>{te(l.ctrls,g=>g.stop(!0))});const x=p.map(g=>({...g}));return s?[x,s]:x}function l7(e,t){const n=U.fun(e),[[r],s]=QP(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,s]:r}function n2(e,t,n){const r=U.fun(t)&&t,{reset:s,sort:i,trail:o=0,expires:l=!0,exitBeforeEnter:a=!1,onDestroyed:u,ref:c,config:f}=r?r():t,p=S.useMemo(()=>r||arguments.length==3?t2():void 0,[]),h=ut(e),y=[],w=S.useRef(null),x=s?null:w.current;bs(()=>{w.current=y}),Hm(()=>(te(y,D=>{p==null||p.add(D.ctrl),D.ctrl.ref=p}),()=>{te(w.current,D=>{D.expired&&clearTimeout(D.expirationId),ch(D.ctrl,p),D.ctrl.stop(!0)})}));const g=XP(h,r?r():t,x),m=s&&w.current||[];bs(()=>te(m,({ctrl:D,item:k,key:I})=>{ch(D,p),wt(u,k,I)}));const v=[];if(x&&te(x,(D,k)=>{D.expired?(clearTimeout(D.expirationId),m.push(D)):(k=v[k]=g.indexOf(D.key),~k&&(y[k]=D))}),te(h,(D,k)=>{y[k]||(y[k]={key:g[k],item:D,phase:"mount",ctrl:new Kb},y[k].ctrl.item=D)}),v.length){let D=-1;const{leave:k}=r?r():t;te(v,(I,z)=>{const _=x[z];~I?(D=y.indexOf(_),y[D]={..._,item:h[I]}):k&&y.splice(++D,0,_)})}U.fun(i)&&y.sort((D,k)=>i(D.item,k.item));let b=-o;const E=Um(),T=dd(t),C=new Map,R=S.useRef(new Map),j=S.useRef(!1);te(y,(D,k)=>{const I=D.key,z=D.phase,_=r?r():t;let $,V;const ne=wt(_.delay||0,I);if(z=="mount")$=_.enter,V="enter";else{const he=g.indexOf(I)<0;if(z!="leave")if(he)$=_.leave,V="leave";else if($=_.update)V="update";else return;else if(!he)$=_.enter,V="enter";else return}if($=wt($,D.item,k),$=U.obj($)?Wm($):{to:$},!$.config){const he=f||T.config;$.config=wt(he,D.item,k,V)}b+=o;const re={...T,delay:ne+b,ref:c,immediate:_.immediate,reset:!1,...$};if(V=="enter"&&U.und(re.from)){const he=r?r():t,je=U.und(he.initial)||x?he.from:he.initial;re.from=wt(je,D.item,k)}const{onResolve:de}=re;re.onResolve=he=>{wt(de,he);const je=w.current,Ie=je.find(Je=>Je.key===I);if(Ie&&!(he.cancelled&&Ie.phase!="update")&&Ie.ctrl.idle){const Je=je.every(gt=>gt.ctrl.idle);if(Ie.phase=="leave"){const gt=wt(l,Ie.item);if(gt!==!1){const Gn=gt===!0?0:gt;if(Ie.expired=!0,!Je&&Gn>0){Gn<=2147483647&&(Ie.expirationId=setTimeout(E,Gn));return}}}Je&&je.some(gt=>gt.expired)&&(R.current.delete(Ie),a&&(j.current=!0),E())}};const ye=gh(D.ctrl,re);V==="leave"&&a?R.current.set(D,{phase:V,springs:ye,payload:re}):C.set(D,{phase:V,springs:ye,payload:re})});const L=S.useContext(wl),A=ah(L),N=L!==A&&Vb(L);bs(()=>{N&&te(y,D=>{D.ctrl.start({default:L})})},[L]),te(C,(D,k)=>{if(R.current.size){const I=y.findIndex(z=>z.key===k.key);y.splice(I,1)}}),bs(()=>{te(R.current.size?R.current:C,({phase:D,payload:k},I)=>{const{ctrl:z}=I;I.phase=D,p==null||p.add(z),N&&D=="enter"&&z.start({default:L}),k&&(Ub(z,k.ref),(z.ref||p)&&!j.current?z.update(k):(z.start(k),j.current&&(j.current=!1)))})},s?void 0:n);const M=D=>S.createElement(S.Fragment,null,y.map((k,I)=>{const{springs:z}=C.get(k)||k.ctrl,_=D({...z},k.item,k,I);return _&&_.type?S.createElement(_.type,{..._.props,key:U.str(k.key)||U.num(k.key)?k.key:k.ctrl.id,ref:_.ref}):_}));return p?[M,p]:M}var KP=1;function XP(e,{key:t,keys:n=t},r){if(n===null){const s=new Set;return e.map(i=>{const o=r&&r.find(l=>l.item===i&&l.phase!=="leave"&&!s.has(l));return o?(s.add(o),o.key):KP++})}return U.und(n)?e:U.fun(n)?e.map(n):ut(n)}var YP=class extends Qm{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=_a(...t);const n=this._get(),r=lh(n);qm(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Zn(t,n)||(Nn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&J1(this._active)&&Cf(this)}_get(){const e=U.arr(this.source)?this.source.map(yt):ut(yt(this.source));return this.calc(...e)}_start(){this.idle&&!J1(this._active)&&(this.idle=!1,te(ud(this),e=>{e.done=!1}),jn.skipAnimation?(ie.batchedUpdates(()=>this.advance()),Cf(this)):id.start(this))}_attach(){let e=1;te(ut(this.source),t=>{tn(t)&&po(t,this),fh(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){te(ut(this.source),e=>{tn(e)&&Da(e,this)}),this._active.clear(),Cf(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=ut(this.source).reduce((t,n)=>Math.max(t,(fh(n)?n.priority:0)+1),0))}};function JP(e){return e.idle!==!1}function J1(e){return!e.size||Array.from(e).every(JP)}function Cf(e){e.idle||(e.idle=!0,te(ud(e),t=>{t.done=!0}),La(e,{type:"idle",parent:e}))}jn.assign({createStringInterpolator:Lb,to:(e,t)=>new YP(e,t)});var r2=/^--/;function ZP(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!r2.test(e)&&!(sa.hasOwnProperty(e)&&sa[e])?t+"px":(""+t).trim()}var Z1={};function eO(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:s,scrollTop:i,scrollLeft:o,viewBox:l,...a}=t,u=Object.values(a),c=Object.keys(a).map(f=>n||e.hasAttribute(f)?f:Z1[f]||(Z1[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));s!==void 0&&(e.textContent=s);for(const f in r)if(r.hasOwnProperty(f)){const p=ZP(f,r[f]);r2.test(f)?e.style.setProperty(f,p):e.style[f]=p}c.forEach((f,p)=>{e.setAttribute(f,u[p])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),l!==void 0&&e.setAttribute("viewBox",l)}var sa={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},tO=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),nO=["Webkit","Ms","Moz","O"];sa=Object.keys(sa).reduce((e,t)=>(nO.forEach(n=>e[tO(n,t)]=e[t]),e),sa);var rO=/^(matrix|translate|scale|rotate|skew)/,sO=/^(translate)/,iO=/^(rotate|skew)/,kf=(e,t)=>U.num(e)&&e!==0?e+t:e,Tu=(e,t)=>U.arr(e)?e.every(n=>Tu(n,t)):U.num(e)?e===t:parseFloat(e)===t,oO=class extends cd{constructor({x:e,y:t,z:n,...r}){const s=[],i=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(l=>kf(l,"px")).join(",")})`,Tu(o,0)])),Hn(r,(o,l)=>{if(l==="transform")s.push([o||""]),i.push(a=>[a,a===""]);else if(rO.test(l)){if(delete r[l],U.und(o))return;const a=sO.test(l)?"px":iO.test(l)?"deg":"";s.push(ut(o)),i.push(l==="rotate3d"?([u,c,f,p])=>[`rotate3d(${u},${c},${f},${kf(p,a)})`,Tu(p,0)]:u=>[`${l}(${u.map(c=>kf(c,a)).join(",")})`,Tu(u,l.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new aO(s,i)),super(r)}},aO=class extends Ib{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return te(this.inputs,(n,r)=>{const s=yt(n[0]),[i,o]=this.transforms[r](U.arr(s)?s:n.map(yt));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&te(this.inputs,t=>te(t,n=>tn(n)&&po(n,this)))}observerRemoved(e){e==0&&te(this.inputs,t=>te(t,n=>tn(n)&&Da(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),La(this,e)}},lO=["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"];jn.assign({batchedUpdates:vr.unstable_batchedUpdates,createStringInterpolator:Lb,colors:Zj});var uO=AP(lO,{applyAnimatedValues:eO,createAnimatedStyle:e=>new oO(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),vh=uO.animated,e0=function(t){return t.reduce(function(n,r){var s=r[0],i=r[1];return n[s]=i,n},{})},t0=typeof window<"u"&&window.document&&window.document.createElement?S.useLayoutEffect:S.useEffect,kt="top",dn="bottom",fn="right",Tt="left",Km="auto",xl=[kt,dn,fn,Tt],ro="start",Ua="end",cO="clippingParents",s2="viewport",Io="popper",dO="reference",n0=xl.reduce(function(e,t){return e.concat([t+"-"+ro,t+"-"+Ua])},[]),i2=[].concat(xl,[Km]).reduce(function(e,t){return e.concat([t,t+"-"+ro,t+"-"+Ua])},[]),fO="beforeRead",pO="read",hO="afterRead",mO="beforeMain",gO="main",vO="afterMain",yO="beforeWrite",wO="write",xO="afterWrite",bO=[fO,pO,hO,mO,gO,vO,yO,wO,xO];function qn(e){return e?(e.nodeName||"").toLowerCase():null}function Bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Us(e){var t=Bt(e).Element;return e instanceof t||e instanceof Element}function on(e){var t=Bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Xm(e){if(typeof ShadowRoot>"u")return!1;var t=Bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function SO(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!on(i)||!qn(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(o){var l=s[o];l===!1?i.removeAttribute(o):i.setAttribute(o,l===!0?"":l)}))})}function EO(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 s=t.elements[r],i=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},{});!on(s)||!qn(s)||(Object.assign(s.style,l),Object.keys(i).forEach(function(a){s.removeAttribute(a)}))})}}const CO={name:"applyStyles",enabled:!0,phase:"write",fn:SO,effect:EO,requires:["computeStyles"]};function Vn(e){return e.split("-")[0]}var Is=Math.max,kc=Math.min,so=Math.round;function yh(){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 o2(){return!/^((?!chrome|android).)*safari/i.test(yh())}function io(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,i=1;t&&on(e)&&(s=e.offsetWidth>0&&so(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&so(r.height)/e.offsetHeight||1);var o=Us(e)?Bt(e):window,l=o.visualViewport,a=!o2()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/s,c=(r.top+(a&&l?l.offsetTop:0))/i,f=r.width/s,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function Ym(e){var t=io(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 a2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Xm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pr(e){return Bt(e).getComputedStyle(e)}function kO(e){return["table","td","th"].indexOf(qn(e))>=0}function ls(e){return((Us(e)?e.ownerDocument:e.document)||window.document).documentElement}function fd(e){return qn(e)==="html"?e:e.assignedSlot||e.parentNode||(Xm(e)?e.host:null)||ls(e)}function r0(e){return!on(e)||pr(e).position==="fixed"?null:e.offsetParent}function TO(e){var t=/firefox/i.test(yh()),n=/Trident/i.test(yh());if(n&&on(e)){var r=pr(e);if(r.position==="fixed")return null}var s=fd(e);for(Xm(s)&&(s=s.host);on(s)&&["html","body"].indexOf(qn(s))<0;){var i=pr(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function bl(e){for(var t=Bt(e),n=r0(e);n&&kO(n)&&pr(n).position==="static";)n=r0(n);return n&&(qn(n)==="html"||qn(n)==="body"&&pr(n).position==="static")?t:n||TO(e)||t}function Jm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ia(e,t,n){return Is(e,kc(t,n))}function jO(e,t,n){var r=ia(e,t,n);return r>n?n:r}function l2(){return{top:0,right:0,bottom:0,left:0}}function u2(e){return Object.assign({},l2(),e)}function c2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var PO=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,u2(typeof t!="number"?t:c2(t,xl))};function OO(e){var t,n=e.state,r=e.name,s=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,l=Vn(n.placement),a=Jm(l),u=[Tt,fn].indexOf(l)>=0,c=u?"height":"width";if(!(!i||!o)){var f=PO(s.padding,n),p=Ym(i),h=a==="y"?kt:Tt,y=a==="y"?dn:fn,w=n.rects.reference[c]+n.rects.reference[a]-o[a]-n.rects.popper[c],x=o[a]-n.rects.reference[a],g=bl(i),m=g?a==="y"?g.clientHeight||0:g.clientWidth||0:0,v=w/2-x/2,b=f[h],E=m-p[c]-f[y],T=m/2-p[c]/2+v,C=ia(b,T,E),R=a;n.modifiersData[r]=(t={},t[R]=C,t.centerOffset=C-T,t)}}function RO(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||a2(t.elements.popper,s)&&(t.elements.arrow=s))}const NO={name:"arrow",enabled:!0,phase:"main",fn:OO,effect:RO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oo(e){return e.split("-")[1]}var AO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function IO(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:so(n*s)/s||0,y:so(r*s)/s||0}}function s0(e){var t,n=e.popper,r=e.popperRect,s=e.placement,i=e.variation,o=e.offsets,l=e.position,a=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=o.x,h=p===void 0?0:p,y=o.y,w=y===void 0?0:y,x=typeof c=="function"?c({x:h,y:w}):{x:h,y:w};h=x.x,w=x.y;var g=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),v=Tt,b=kt,E=window;if(u){var T=bl(n),C="clientHeight",R="clientWidth";if(T===Bt(n)&&(T=ls(n),pr(T).position!=="static"&&l==="absolute"&&(C="scrollHeight",R="scrollWidth")),T=T,s===kt||(s===Tt||s===fn)&&i===Ua){b=dn;var j=f&&T===E&&E.visualViewport?E.visualViewport.height:T[C];w-=j-r.height,w*=a?1:-1}if(s===Tt||(s===kt||s===dn)&&i===Ua){v=fn;var L=f&&T===E&&E.visualViewport?E.visualViewport.width:T[R];h-=L-r.width,h*=a?1:-1}}var A=Object.assign({position:l},u&&AO),N=c===!0?IO({x:h,y:w},Bt(n)):{x:h,y:w};if(h=N.x,w=N.y,a){var M;return Object.assign({},A,(M={},M[b]=m?"0":"",M[v]=g?"0":"",M.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+w+"px)":"translate3d("+h+"px, "+w+"px, 0)",M))}return Object.assign({},A,(t={},t[b]=m?w+"px":"",t[v]=g?h+"px":"",t.transform="",t))}function _O(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:Vn(t.placement),variation:oo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,s0(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,s0(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 MO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_O,data:{}};var Jl={passive:!0};function LO(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,i=s===void 0?!0:s,o=r.resize,l=o===void 0?!0:o,a=Bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Jl)}),l&&a.addEventListener("resize",n.update,Jl),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Jl)}),l&&a.removeEventListener("resize",n.update,Jl)}}const DO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LO,data:{}};var FO={left:"right",right:"left",bottom:"top",top:"bottom"};function ju(e){return e.replace(/left|right|bottom|top/g,function(t){return FO[t]})}var $O={start:"end",end:"start"};function i0(e){return e.replace(/start|end/g,function(t){return $O[t]})}function Zm(e){var t=Bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function eg(e){return io(ls(e)).left+Zm(e).scrollLeft}function zO(e,t){var n=Bt(e),r=ls(e),s=n.visualViewport,i=r.clientWidth,o=r.clientHeight,l=0,a=0;if(s){i=s.width,o=s.height;var u=o2();(u||!u&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}return{width:i,height:o,x:l+eg(e),y:a}}function BO(e){var t,n=ls(e),r=Zm(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=Is(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Is(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-r.scrollLeft+eg(e),a=-r.scrollTop;return pr(s||n).direction==="rtl"&&(l+=Is(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:o,x:l,y:a}}function tg(e){var t=pr(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function d2(e){return["html","body","#document"].indexOf(qn(e))>=0?e.ownerDocument.body:on(e)&&tg(e)?e:d2(fd(e))}function oa(e,t){var n;t===void 0&&(t=[]);var r=d2(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=Bt(r),o=s?[i].concat(i.visualViewport||[],tg(r)?r:[]):r,l=t.concat(o);return s?l:l.concat(oa(fd(o)))}function wh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function VO(e,t){var n=io(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 o0(e,t,n){return t===s2?wh(zO(e,n)):Us(t)?VO(t,n):wh(BO(ls(e)))}function UO(e){var t=oa(fd(e)),n=["absolute","fixed"].indexOf(pr(e).position)>=0,r=n&&on(e)?bl(e):e;return Us(r)?t.filter(function(s){return Us(s)&&a2(s,r)&&qn(s)!=="body"}):[]}function HO(e,t,n,r){var s=t==="clippingParents"?UO(e):[].concat(t),i=[].concat(s,[n]),o=i[0],l=i.reduce(function(a,u){var c=o0(e,u,r);return a.top=Is(c.top,a.top),a.right=kc(c.right,a.right),a.bottom=kc(c.bottom,a.bottom),a.left=Is(c.left,a.left),a},o0(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 f2(e){var t=e.reference,n=e.element,r=e.placement,s=r?Vn(r):null,i=r?oo(r):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(s){case kt:a={x:o,y:t.y-n.height};break;case dn:a={x:o,y:t.y+t.height};break;case fn:a={x:t.x+t.width,y:l};break;case Tt:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var u=s?Jm(s):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case ro:a[u]=a[u]-(t[c]/2-n[c]/2);break;case Ua:a[u]=a[u]+(t[c]/2-n[c]/2);break}}return a}function Ha(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,l=n.boundary,a=l===void 0?cO:l,u=n.rootBoundary,c=u===void 0?s2:u,f=n.elementContext,p=f===void 0?Io:f,h=n.altBoundary,y=h===void 0?!1:h,w=n.padding,x=w===void 0?0:w,g=u2(typeof x!="number"?x:c2(x,xl)),m=p===Io?dO:Io,v=e.rects.popper,b=e.elements[y?m:p],E=HO(Us(b)?b:b.contextElement||ls(e.elements.popper),a,c,o),T=io(e.elements.reference),C=f2({reference:T,element:v,strategy:"absolute",placement:s}),R=wh(Object.assign({},v,C)),j=p===Io?R:T,L={top:E.top-j.top+g.top,bottom:j.bottom-E.bottom+g.bottom,left:E.left-j.left+g.left,right:j.right-E.right+g.right},A=e.modifiersData.offset;if(p===Io&&A){var N=A[s];Object.keys(L).forEach(function(M){var D=[fn,dn].indexOf(M)>=0?1:-1,k=[kt,dn].indexOf(M)>=0?"y":"x";L[M]+=N[k]*D})}return L}function qO(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,i=n.rootBoundary,o=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?i2:a,c=oo(r),f=c?l?n0:n0.filter(function(y){return oo(y)===c}):xl,p=f.filter(function(y){return u.indexOf(y)>=0});p.length===0&&(p=f);var h=p.reduce(function(y,w){return y[w]=Ha(e,{placement:w,boundary:s,rootBoundary:i,padding:o})[Vn(w)],y},{});return Object.keys(h).sort(function(y,w){return h[y]-h[w]})}function WO(e){if(Vn(e)===Km)return[];var t=ju(e);return[i0(e),t,i0(t)]}function GO(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,l=o===void 0?!0:o,a=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,y=h===void 0?!0:h,w=n.allowedAutoPlacements,x=t.options.placement,g=Vn(x),m=g===x,v=a||(m||!y?[ju(x)]:WO(x)),b=[x].concat(v).reduce(function(ye,he){return ye.concat(Vn(he)===Km?qO(t,{placement:he,boundary:c,rootBoundary:f,padding:u,flipVariations:y,allowedAutoPlacements:w}):he)},[]),E=t.rects.reference,T=t.rects.popper,C=new Map,R=!0,j=b[0],L=0;L<b.length;L++){var A=b[L],N=Vn(A),M=oo(A)===ro,D=[kt,dn].indexOf(N)>=0,k=D?"width":"height",I=Ha(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),z=D?M?fn:Tt:M?dn:kt;E[k]>T[k]&&(z=ju(z));var _=ju(z),$=[];if(i&&$.push(I[N]<=0),l&&$.push(I[z]<=0,I[_]<=0),$.every(function(ye){return ye})){j=A,R=!1;break}C.set(A,$)}if(R)for(var V=y?3:1,ne=function(he){var je=b.find(function(Ie){var Je=C.get(Ie);if(Je)return Je.slice(0,he).every(function(gt){return gt})});if(je)return j=je,"break"},re=V;re>0;re--){var de=ne(re);if(de==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const QO={name:"flip",enabled:!0,phase:"main",fn:GO,requiresIfExists:["offset"],data:{_skip:!1}};function a0(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 l0(e){return[kt,fn,dn,Tt].some(function(t){return e[t]>=0})}function KO(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,o=Ha(t,{elementContext:"reference"}),l=Ha(t,{altBoundary:!0}),a=a0(o,r),u=a0(l,s,i),c=l0(a),f=l0(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const XO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:KO};function YO(e,t,n){var r=Vn(e),s=[Tt,kt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],l=i[1];return o=o||0,l=(l||0)*s,[Tt,fn].indexOf(r)>=0?{x:l,y:o}:{x:o,y:l}}function JO(e){var t=e.state,n=e.options,r=e.name,s=n.offset,i=s===void 0?[0,0]:s,o=i2.reduce(function(c,f){return c[f]=YO(f,t.rects,i),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 ZO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:JO};function eR(e){var t=e.state,n=e.name;t.modifiersData[n]=f2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const tR={name:"popperOffsets",enabled:!0,phase:"read",fn:eR,data:{}};function nR(e){return e==="x"?"y":"x"}function rR(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,l=o===void 0?!1:o,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,y=n.tetherOffset,w=y===void 0?0:y,x=Ha(t,{boundary:a,rootBoundary:u,padding:f,altBoundary:c}),g=Vn(t.placement),m=oo(t.placement),v=!m,b=Jm(g),E=nR(b),T=t.modifiersData.popperOffsets,C=t.rects.reference,R=t.rects.popper,j=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,L=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(T){if(i){var M,D=b==="y"?kt:Tt,k=b==="y"?dn:fn,I=b==="y"?"height":"width",z=T[b],_=z+x[D],$=z-x[k],V=h?-R[I]/2:0,ne=m===ro?C[I]:R[I],re=m===ro?-R[I]:-C[I],de=t.elements.arrow,ye=h&&de?Ym(de):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:l2(),je=he[D],Ie=he[k],Je=ia(0,C[I],ye[I]),gt=v?C[I]/2-V-Je-je-L.mainAxis:ne-Je-je-L.mainAxis,Gn=v?-C[I]/2+V+Je+Ie+L.mainAxis:re+Je+Ie+L.mainAxis,Js=t.elements.arrow&&bl(t.elements.arrow),_d=Js?b==="y"?Js.clientTop||0:Js.clientLeft||0:0,vo=(M=A==null?void 0:A[b])!=null?M:0,Md=z+gt-vo-_d,kl=z+Gn-vo,yo=ia(h?kc(_,Md):_,z,h?Is($,kl):$);T[b]=yo,N[b]=yo-z}if(l){var Ld,Ng=b==="x"?kt:Tt,Ag=b==="x"?dn:fn,O=T[E],F=E==="y"?"height":"width",B=O+x[Ng],K=O-x[Ag],W=[kt,Tt].indexOf(g)!==-1,q=(Ld=A==null?void 0:A[E])!=null?Ld:0,Z=W?B:O-C[F]-R[F]-q+L.altAxis,fe=W?O+C[F]+R[F]-q-L.altAxis:K,Ne=h&&W?jO(Z,O,fe):ia(h?Z:B,O,h?fe:K);T[E]=Ne,N[E]=Ne-O}t.modifiersData[r]=N}}const sR={name:"preventOverflow",enabled:!0,phase:"main",fn:rR,requiresIfExists:["offset"]};function iR(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function oR(e){return e===Bt(e)||!on(e)?Zm(e):iR(e)}function aR(e){var t=e.getBoundingClientRect(),n=so(t.width)/e.offsetWidth||1,r=so(t.height)/e.offsetHeight||1;return n!==1||r!==1}function lR(e,t,n){n===void 0&&(n=!1);var r=on(t),s=on(t)&&aR(t),i=ls(t),o=io(e,s,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((qn(t)!=="body"||tg(i))&&(l=oR(t)),on(t)?(a=io(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=eg(i))),{x:o.left+l.scrollLeft-a.x,y:o.top+l.scrollTop-a.y,width:o.width,height:o.height}}function uR(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&s(a)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),r}function cR(e){var t=uR(e);return bO.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function dR(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function fR(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var u0={placement:"bottom",modifiers:[],strategy:"absolute"};function c0(){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 pR(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?u0:s;return function(l,a,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},u0,i),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(g){var m=typeof g=="function"?g(c.options):g;w(),c.options=Object.assign({},i,c.options,m),c.scrollParents={reference:Us(l)?oa(l):l.contextElement?oa(l.contextElement):[],popper:oa(a)};var v=cR(fR([].concat(r,c.options.modifiers)));return c.orderedModifiers=v.filter(function(b){return b.enabled}),y(),h.update()},forceUpdate:function(){if(!p){var g=c.elements,m=g.reference,v=g.popper;if(c0(m,v)){c.rects={reference:lR(m,bl(v),c.options.strategy==="fixed"),popper:Ym(v)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(L){return c.modifiersData[L.name]=Object.assign({},L.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var E=c.orderedModifiers[b],T=E.fn,C=E.options,R=C===void 0?{}:C,j=E.name;typeof T=="function"&&(c=T({state:c,options:R,name:j,instance:h})||c)}}}},update:dR(function(){return new Promise(function(x){h.forceUpdate(),x(c)})}),destroy:function(){w(),p=!0}};if(!c0(l,a))return h;h.setOptions(u).then(function(x){!p&&u.onFirstUpdate&&u.onFirstUpdate(x)});function y(){c.orderedModifiers.forEach(function(x){var g=x.name,m=x.options,v=m===void 0?{}:m,b=x.effect;if(typeof b=="function"){var E=b({state:c,name:g,instance:h,options:v}),T=function(){};f.push(E||T)}})}function w(){f.forEach(function(x){return x()}),f=[]}return h}}var hR=[DO,tR,MO,CO,ZO,QO,sR,NO,XO],mR=pR({defaultModifiers:hR}),gR=typeof Element<"u",vR=typeof Map=="function",yR=typeof Set=="function",wR=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Pu(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,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Pu(e[r],t[r]))return!1;return!0}var i;if(vR&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Pu(r.value[1],t.get(r.value[0])))return!1;return!0}if(yR&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(wR&&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(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(gR&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!Pu(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var xR=function(t,n){try{return Pu(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 bR=il(xR);var SR=[],ER=function(t,n,r){r===void 0&&(r={});var s=S.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||SR},o=S.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=o[0],a=o[1],u=S.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var y=h.state,w=Object.keys(y.elements);vr.flushSync(function(){a({styles:e0(w.map(function(x){return[x,y.styles[x]||{}]})),attributes:e0(w.map(function(x){return[x,y.attributes[x]]}))})})},requires:["computeStyles"]}},[]),c=S.useMemo(function(){var p={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return bR(s.current,p)?s.current||p:(s.current=p,p)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=S.useRef();return t0(function(){f.current&&f.current.setOptions(c)},[c]),t0(function(){if(!(t==null||n==null)){var p=r.createPopper||mR,h=p(t,n,c);return f.current=h,function(){h.destroy(),f.current=null}}},[t,n,r.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}};const CR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.805c.49.704.733 1.473.733 2.306 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624"})]}),kR=CR,TR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M22.996 13.153c0 1.393-.291 2.722-.873 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.153c0-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.589M13.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.201"})]}),d0=TR,jR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111m3.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.363"})]}),PR=jR,OR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216m7.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-.216m7.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-.216m7.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-.216m7.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-.24m7.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-.24m7.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"})]}),f0=OR,RR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12M7.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-.963M9.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.03",clipRule:"evenodd"})]}),NR=RR,AR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216zm0-2.738V8.573l5.848 3.531zm0-12.084V3.048h23.024v3.387l-11.512 6.847zm17.176 5.67 5.848-3.532v9.946z"})]}),p0=AR,IR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53zm0 4.4v-2.2h-2.14v2.2zM24 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"})]}),_R=IR,MR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M11.685 2C8.66 2 6.7 3.277 5.164 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-6m-.38 14.588c-1.447 0-2.625 1.214-2.625 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706"})]}),LR=MR,DR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334m10.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.996 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-.837",clipRule:"evenodd"})]}),FR=DR,$R=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:d.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24m0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51m0 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.3"})}),d.jsx("defs",{children:d.jsx("clipPath",{id:"one-profile_svg__a",children:d.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),p2=$R,zR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628m2.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.486"})]}),BR=zR,VR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),UR=VR;function h0(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function ng(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:h0(t[n])&&h0(e[n])&&Object.keys(t[n]).length>0&&ng(e[n],t[n])})}const h2={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Xs(){const e=typeof document<"u"?document:{};return ng(e,h2),e}const HR={document:h2,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Ht(){const e=typeof window<"u"?window:{};return ng(e,HR),e}function qR(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function xh(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function Tc(){return Date.now()}function WR(e){const t=Ht();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function GR(e,t){t===void 0&&(t="x");const n=Ht();let r,s,i;const o=WR(e);return n.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(l=>l.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(s==="none"?"":s)):(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?s=i.m41:r.length===16?s=parseFloat(r[12]):s=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?s=i.m42:r.length===16?s=parseFloat(r[13]):s=parseFloat(r[5])),s||0}function Zl(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function QR(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function It(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!QR(r)){const s=Object.keys(Object(r)).filter(i=>t.indexOf(i)<0);for(let i=0,o=s.length;i<o;i+=1){const l=s[i],a=Object.getOwnPropertyDescriptor(r,l);a!==void 0&&a.enumerable&&(Zl(e[l])&&Zl(r[l])?r[l].__swiper__?e[l]=r[l]:It(e[l],r[l]):!Zl(e[l])&&Zl(r[l])?(e[l]={},r[l].__swiper__?e[l]=r[l]:It(e[l],r[l])):e[l]=r[l])}}}return e}function eu(e,t,n){e.style.setProperty(t,n)}function m2(e){let{swiper:t,targetPosition:n,side:r}=e;const s=Ht(),i=-t.translate;let o=null,l;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(t.cssModeFrameID);const u=n>i?"next":"prev",c=(p,h)=>u==="next"&&p>=h||u==="prev"&&p<=h,f=()=>{l=new Date().getTime(),o===null&&(o=l);const p=Math.max(Math.min((l-o)/a,1),0),h=.5-Math.cos(p*Math.PI)/2;let y=i+h*(n-i);if(c(y,n)&&(y=n),t.wrapperEl.scrollTo({[r]:y}),c(y,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:y})}),s.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=s.requestAnimationFrame(f)};f()}function $n(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function g2(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function KR(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function XR(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function zr(e,t){return Ht().getComputedStyle(e,null).getPropertyValue(t)}function jc(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function v2(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function bh(e,t,n){const r=Ht();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}function YR(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(s=>{if(!n[s]&&n.auto===!0){let i=$n(e.el,`.${r[s]}`)[0];i||(i=g2("div",r[s]),i.className=r[s],e.el.append(i)),n[s]=i,t[s]=i}}),n}function _o(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function JR(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const i="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:m=>m,formatFractionTotal:m=>m,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),t.pagination={el:null,bullets:[]};let o,l=0;const a=m=>(Array.isArray(m)||(m=[m].filter(v=>!!v)),m);function u(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(m,v){const{bulletActiveClass:b}=t.params.pagination;m&&(m=m[`${v==="prev"?"previous":"next"}ElementSibling`],m&&(m.classList.add(`${b}-${v}`),m=m[`${v==="prev"?"previous":"next"}ElementSibling`],m&&m.classList.add(`${b}-${v}-${v}`)))}function f(m){const v=m.target.closest(_o(t.params.pagination.bulletClass));if(!v)return;m.preventDefault();const b=jc(v)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===b)return;const E=t.getSlideIndexByData(b),T=t.getSlideIndexByData(t.realIndex);E>t.slides.length-t.loopedSlides&&t.loopFix({direction:E>T?"next":"prev",activeSlideIndex:E,slideTo:!1}),t.slideToLoop(b)}else t.slideTo(b)}function p(){const m=t.rtl,v=t.params.pagination;if(u())return;let b=t.pagination.el;b=a(b);let E,T;const C=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,R=t.params.loop?Math.ceil(C/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(T=t.previousRealIndex||0,E=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(E=t.snapIndex,T=t.previousSnapIndex):(T=t.previousIndex||0,E=t.activeIndex||0),v.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const j=t.pagination.bullets;let L,A,N;if(v.dynamicBullets&&(o=bh(j[0],t.isHorizontal()?"width":"height",!0),b.forEach(M=>{M.style[t.isHorizontal()?"width":"height"]=`${o*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&T!==void 0&&(l+=E-(T||0),l>v.dynamicMainBullets-1?l=v.dynamicMainBullets-1:l<0&&(l=0)),L=Math.max(E-l,0),A=L+(Math.min(j.length,v.dynamicMainBullets)-1),N=(A+L)/2),j.forEach(M=>{const D=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(k=>`${v.bulletActiveClass}${k}`)].map(k=>typeof k=="string"&&k.includes(" ")?k.split(" "):k).flat();M.classList.remove(...D)}),b.length>1)j.forEach(M=>{const D=jc(M);D===E?M.classList.add(...v.bulletActiveClass.split(" ")):t.isElement&&M.setAttribute("part","bullet"),v.dynamicBullets&&(D>=L&&D<=A&&M.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),D===L&&c(M,"prev"),D===A&&c(M,"next"))});else{const M=j[E];if(M&&M.classList.add(...v.bulletActiveClass.split(" ")),t.isElement&&j.forEach((D,k)=>{D.setAttribute("part",k===E?"bullet-active":"bullet")}),v.dynamicBullets){const D=j[L],k=j[A];for(let I=L;I<=A;I+=1)j[I]&&j[I].classList.add(...`${v.bulletActiveClass}-main`.split(" "));c(D,"prev"),c(k,"next")}}if(v.dynamicBullets){const M=Math.min(j.length,v.dynamicMainBullets+4),D=(o*M-o)/2-N*o,k=m?"right":"left";j.forEach(I=>{I.style[t.isHorizontal()?k:"top"]=`${D}px`})}}b.forEach((j,L)=>{if(v.type==="fraction"&&(j.querySelectorAll(_o(v.currentClass)).forEach(A=>{A.textContent=v.formatFractionCurrent(E+1)}),j.querySelectorAll(_o(v.totalClass)).forEach(A=>{A.textContent=v.formatFractionTotal(R)})),v.type==="progressbar"){let A;v.progressbarOpposite?A=t.isHorizontal()?"vertical":"horizontal":A=t.isHorizontal()?"horizontal":"vertical";const N=(E+1)/R;let M=1,D=1;A==="horizontal"?M=N:D=N,j.querySelectorAll(_o(v.progressbarFillClass)).forEach(k=>{k.style.transform=`translate3d(0,0,0) scaleX(${M}) scaleY(${D})`,k.style.transitionDuration=`${t.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(j.innerHTML=v.renderCustom(t,E+1,R),L===0&&s("paginationRender",j)):(L===0&&s("paginationRender",j),s("paginationUpdate",j)),t.params.watchOverflow&&t.enabled&&j.classList[t.isLocked?"add":"remove"](v.lockClass)})}function h(){const m=t.params.pagination;if(u())return;const v=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;let b=t.pagination.el;b=a(b);let E="";if(m.type==="bullets"){let T=t.params.loop?Math.ceil(v/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&T>v&&(T=v);for(let C=0;C<T;C+=1)m.renderBullet?E+=m.renderBullet.call(t,C,m.bulletClass):E+=`<${m.bulletElement} ${t.isElement?'part="bullet"':""} class="${m.bulletClass}"></${m.bulletElement}>`}m.type==="fraction"&&(m.renderFraction?E=m.renderFraction.call(t,m.currentClass,m.totalClass):E=`<span class="${m.currentClass}"></span> / <span class="${m.totalClass}"></span>`),m.type==="progressbar"&&(m.renderProgressbar?E=m.renderProgressbar.call(t,m.progressbarFillClass):E=`<span class="${m.progressbarFillClass}"></span>`),t.pagination.bullets=[],b.forEach(T=>{m.type!=="custom"&&(T.innerHTML=E||""),m.type==="bullets"&&t.pagination.bullets.push(...T.querySelectorAll(_o(m.bulletClass)))}),m.type!=="custom"&&s("paginationRender",b[0])}function y(){t.params.pagination=YR(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const m=t.params.pagination;if(!m.el)return;let v;typeof m.el=="string"&&t.isElement&&(v=t.el.querySelector(m.el)),!v&&typeof m.el=="string"&&(v=[...document.querySelectorAll(m.el)]),v||(v=m.el),!(!v||v.length===0)&&(t.params.uniqueNavElements&&typeof m.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...t.el.querySelectorAll(m.el)],v.length>1&&(v=v.filter(b=>v2(b,".swiper")[0]===t.el)[0])),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(t.pagination,{el:v}),v=a(v),v.forEach(b=>{m.type==="bullets"&&m.clickable&&b.classList.add(m.clickableClass),b.classList.add(m.modifierClass+m.type),b.classList.add(t.isHorizontal()?m.horizontalClass:m.verticalClass),m.type==="bullets"&&m.dynamicBullets&&(b.classList.add(`${m.modifierClass}${m.type}-dynamic`),l=0,m.dynamicMainBullets<1&&(m.dynamicMainBullets=1)),m.type==="progressbar"&&m.progressbarOpposite&&b.classList.add(m.progressbarOppositeClass),m.clickable&&b.addEventListener("click",f),t.enabled||b.classList.add(m.lockClass)}))}function w(){const m=t.params.pagination;if(u())return;let v=t.pagination.el;v&&(v=a(v),v.forEach(b=>{b.classList.remove(m.hiddenClass),b.classList.remove(m.modifierClass+m.type),b.classList.remove(t.isHorizontal()?m.horizontalClass:m.verticalClass),m.clickable&&b.removeEventListener("click",f)})),t.pagination.bullets&&t.pagination.bullets.forEach(b=>b.classList.remove(...m.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const m=t.params.pagination;let{el:v}=t.pagination;v=a(v),v.forEach(b=>{b.classList.remove(m.horizontalClass,m.verticalClass),b.classList.add(t.isHorizontal()?m.horizontalClass:m.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?g():(y(),h(),p())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&p()}),r("snapIndexChange",()=>{p()}),r("snapGridLengthChange",()=>{h(),p()}),r("destroy",()=>{w()}),r("enable disable",()=>{let{el:m}=t.pagination;m&&(m=a(m),m.forEach(v=>v.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{p()}),r("click",(m,v)=>{const b=v.target,E=a(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&E&&E.length>0&&!b.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&b===t.navigation.nextEl||t.navigation.prevEl&&b===t.navigation.prevEl))return;const T=E[0].classList.contains(t.params.pagination.hiddenClass);s(T===!0?"paginationShow":"paginationHide"),E.forEach(C=>C.classList.toggle(t.params.pagination.hiddenClass))}});const x=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:m}=t.pagination;m&&(m=a(m),m.forEach(v=>v.classList.remove(t.params.pagination.paginationDisabledClass))),y(),h(),p()},g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:m}=t.pagination;m&&(m=a(m),m.forEach(v=>v.classList.add(t.params.pagination.paginationDisabledClass))),w()};Object.assign(t.pagination,{enable:x,disable:g,render:h,update:p,init:y,destroy:w})}let Tf;function ZR(){const e=Ht(),t=Xs();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function y2(){return Tf||(Tf=ZR()),Tf}let jf;function eN(e){let{userAgent:t}=e===void 0?{}:e;const n=y2(),r=Ht(),s=r.navigator.platform,i=t||r.navigator.userAgent,o={ios:!1,android:!1},l=r.screen.width,a=r.screen.height,u=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const f=i.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32";let y=s==="MacIntel";const w=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&y&&n.touch&&w.indexOf(`${l}x${a}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),y=!1),u&&!h&&(o.os="android",o.android=!0),(c||p||f)&&(o.os="ios",o.ios=!0),o}function tN(e){return e===void 0&&(e={}),jf||(jf=eN(e)),jf}let Pf;function nN(){const e=Ht();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[s,i]=r.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));t=s<16||s===16&&i<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function rN(){return Pf||(Pf=nN()),Pf}function sN(e){let{swiper:t,on:n,emit:r}=e;const s=Ht();let i=null,o=null;const l=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},a=()=>{!t||t.destroyed||!t.initialized||(i=new ResizeObserver(f=>{o=s.requestAnimationFrame(()=>{const{width:p,height:h}=t;let y=p,w=h;f.forEach(x=>{let{contentBoxSize:g,contentRect:m,target:v}=x;v&&v!==t.el||(y=m?m.width:(g[0]||g).inlineSize,w=m?m.height:(g[0]||g).blockSize)}),(y!==p||w!==h)&&l()})}),i.observe(t.el))},u=()=>{o&&s.cancelAnimationFrame(o),i&&i.unobserve&&t.el&&(i.unobserve(t.el),i=null)},c=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof s.ResizeObserver<"u"){a();return}s.addEventListener("resize",l),s.addEventListener("orientationchange",c)}),n("destroy",()=>{u(),s.removeEventListener("resize",l),s.removeEventListener("orientationchange",c)})}function iN(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const i=[],o=Ht(),l=function(c,f){f===void 0&&(f={});const p=o.MutationObserver||o.WebkitMutationObserver,h=new p(y=>{if(t.__preventObserver__)return;if(y.length===1){s("observerUpdate",y[0]);return}const w=function(){s("observerUpdate",y[0])};o.requestAnimationFrame?o.requestAnimationFrame(w):o.setTimeout(w,0)});h.observe(c,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),i.push(h)},a=()=>{if(t.params.observer){if(t.params.observeParents){const c=v2(t.el);for(let f=0;f<c.length;f+=1)l(c[f])}l(t.el,{childList:t.params.observeSlideChildren}),l(t.wrapperEl,{attributes:!1})}},u=()=>{i.forEach(c=>{c.disconnect()}),i.splice(0,i.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",a),r("destroy",u)}var oN={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const s=n?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][s](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function s(){r.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];t.apply(r,o)}return s.__emitterProxy=t,r.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((s,i)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&n.eventsListeners[r].splice(i,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return typeof i[0]=="string"||Array.isArray(i[0])?(t=i[0],n=i.slice(1,i.length),r=e):(t=i[0].events,n=i[0].data,r=i[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(a=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[a,...n])}),e.eventsListeners&&e.eventsListeners[a]&&e.eventsListeners[a].forEach(u=>{u.apply(r,n)})}),e}};function aN(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(zr(r,"padding-left")||0,10)-parseInt(zr(r,"padding-right")||0,10),n=n-parseInt(zr(r,"padding-top")||0,10)-parseInt(zr(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function lN(){const e=this;function t(A){return e.isHorizontal()?A:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[A]}function n(A,N){return parseFloat(A.getPropertyValue(t(N))||0)}const r=e.params,{wrapperEl:s,slidesEl:i,size:o,rtlTranslate:l,wrongRTL:a}=e,u=e.virtual&&r.virtual.enabled,c=u?e.virtual.slides.length:e.slides.length,f=$n(i,`.${e.params.slideClass}, swiper-slide`),p=u?e.virtual.slides.length:f.length;let h=[];const y=[],w=[];let x=r.slidesOffsetBefore;typeof x=="function"&&(x=r.slidesOffsetBefore.call(e));let g=r.slidesOffsetAfter;typeof g=="function"&&(g=r.slidesOffsetAfter.call(e));const m=e.snapGrid.length,v=e.slidesGrid.length;let b=r.spaceBetween,E=-x,T=0,C=0;if(typeof o>"u")return;typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*o:typeof b=="string"&&(b=parseFloat(b)),e.virtualSize=-b,f.forEach(A=>{l?A.style.marginLeft="":A.style.marginRight="",A.style.marginBottom="",A.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(eu(s,"--swiper-centered-offset-before",""),eu(s,"--swiper-centered-offset-after",""));const R=r.grid&&r.grid.rows>1&&e.grid;R&&e.grid.initSlides(p);let j;const L=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(A=>typeof r.breakpoints[A].slidesPerView<"u").length>0;for(let A=0;A<p;A+=1){j=0;let N;if(f[A]&&(N=f[A]),R&&e.grid.updateSlide(A,N,p,t),!(f[A]&&zr(N,"display")==="none")){if(r.slidesPerView==="auto"){L&&(f[A].style[t("width")]="");const M=getComputedStyle(N),D=N.style.transform,k=N.style.webkitTransform;if(D&&(N.style.transform="none"),k&&(N.style.webkitTransform="none"),r.roundLengths)j=e.isHorizontal()?bh(N,"width",!0):bh(N,"height",!0);else{const I=n(M,"width"),z=n(M,"padding-left"),_=n(M,"padding-right"),$=n(M,"margin-left"),V=n(M,"margin-right"),ne=M.getPropertyValue("box-sizing");if(ne&&ne==="border-box")j=I+$+V;else{const{clientWidth:re,offsetWidth:de}=N;j=I+z+_+$+V+(de-re)}}D&&(N.style.transform=D),k&&(N.style.webkitTransform=k),r.roundLengths&&(j=Math.floor(j))}else j=(o-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(j=Math.floor(j)),f[A]&&(f[A].style[t("width")]=`${j}px`);f[A]&&(f[A].swiperSlideSize=j),w.push(j),r.centeredSlides?(E=E+j/2+T/2+b,T===0&&A!==0&&(E=E-o/2-b),A===0&&(E=E-o/2-b),Math.abs(E)<1/1e3&&(E=0),r.roundLengths&&(E=Math.floor(E)),C%r.slidesPerGroup===0&&h.push(E),y.push(E)):(r.roundLengths&&(E=Math.floor(E)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&h.push(E),y.push(E),E=E+j+b),e.virtualSize+=j+b,T=j,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+g,l&&a&&(r.effect==="slide"||r.effect==="coverflow")&&(s.style.width=`${e.virtualSize+b}px`),r.setWrapperSize&&(s.style[t("width")]=`${e.virtualSize+b}px`),R&&e.grid.updateWrapperSize(j,h,t),!r.centeredSlides){const A=[];for(let N=0;N<h.length;N+=1){let M=h[N];r.roundLengths&&(M=Math.floor(M)),h[N]<=e.virtualSize-o&&A.push(M)}h=A,Math.floor(e.virtualSize-o)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-o)}if(u&&r.loop){const A=w[0]+b;if(r.slidesPerGroup>1){const N=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),M=A*r.slidesPerGroup;for(let D=0;D<N;D+=1)h.push(h[h.length-1]+M)}for(let N=0;N<e.virtual.slidesBefore+e.virtual.slidesAfter;N+=1)r.slidesPerGroup===1&&h.push(h[h.length-1]+A),y.push(y[y.length-1]+A),e.virtualSize+=A}if(h.length===0&&(h=[0]),b!==0){const A=e.isHorizontal()&&l?"marginLeft":t("marginRight");f.filter((N,M)=>!r.cssMode||r.loop?!0:M!==f.length-1).forEach(N=>{N.style[A]=`${b}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let A=0;w.forEach(M=>{A+=M+(b||0)}),A-=b;const N=A-o;h=h.map(M=>M<=0?-x:M>N?N+g:M)}if(r.centerInsufficientSlides){let A=0;if(w.forEach(N=>{A+=N+(b||0)}),A-=b,A<o){const N=(o-A)/2;h.forEach((M,D)=>{h[D]=M-N}),y.forEach((M,D)=>{y[D]=M+N})}}if(Object.assign(e,{slides:f,snapGrid:h,slidesGrid:y,slidesSizesGrid:w}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){eu(s,"--swiper-centered-offset-before",`${-h[0]}px`),eu(s,"--swiper-centered-offset-after",`${e.size/2-w[w.length-1]/2}px`);const A=-e.snapGrid[0],N=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(M=>M+A),e.slidesGrid=e.slidesGrid.map(M=>M+N)}if(p!==c&&e.emit("slidesLengthChange"),h.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),y.length!==v&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!u&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const A=`${r.containerModifierClass}backface-hidden`,N=e.el.classList.contains(A);p<=r.maxBackfaceHiddenSlides?N||e.el.classList.add(A):N&&e.el.classList.remove(A)}}function uN(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let s=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=l=>r?t.slides[t.getSlideIndexByData(l)]:t.slides[l];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(l=>{n.push(l)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const l=t.activeIndex+i;if(l>t.slides.length&&!r)break;n.push(o(l))}else n.push(o(t.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const l=n[i].offsetHeight;s=l>s?l:s}(s||s===0)&&(t.wrapperEl.style.height=`${s}px`)}function cN(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function dN(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:s,snapGrid:i}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let o=-e;s&&(o=e),r.forEach(a=>{a.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=n.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:typeof l=="string"&&(l=parseFloat(l));for(let a=0;a<r.length;a+=1){const u=r[a];let c=u.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const f=(o+(n.centeredSlides?t.minTranslate():0)-c)/(u.swiperSlideSize+l),p=(o-i[0]+(n.centeredSlides?t.minTranslate():0)-c)/(u.swiperSlideSize+l),h=-(o-c),y=h+t.slidesSizesGrid[a];(h>=0&&h<t.size-1||y>1&&y<=t.size||h<=0&&y>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(a),r[a].classList.add(n.slideVisibleClass)),u.progress=s?-f:f,u.originalProgress=s?-p:p}}function fN(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:i,isEnd:o,progressLoop:l}=t;const a=i,u=o;if(r===0)s=0,i=!0,o=!0;else{s=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;i=c||s<=0,o=f||s>=1,c&&(s=0),f&&(s=1)}if(n.loop){const c=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),p=t.slidesGrid[c],h=t.slidesGrid[f],y=t.slidesGrid[t.slidesGrid.length-1],w=Math.abs(e);w>=p?l=(w-p)/y:l=(w+y-h)/y,l>1&&(l-=1)}Object.assign(t,{progress:s,progressLoop:l,isBeginning:i,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),i&&!a&&t.emit("reachBeginning toEdge"),o&&!u&&t.emit("reachEnd toEdge"),(a&&!i||u&&!o)&&t.emit("fromEdge"),t.emit("progress",s)}function pN(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:s}=e,i=e.virtual&&n.virtual.enabled,o=a=>$n(r,`.${n.slideClass}${a}, swiper-slide${a}`)[0];t.forEach(a=>{a.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let l;if(i)if(n.loop){let a=s-e.virtual.slidesBefore;a<0&&(a=e.virtual.slides.length+a),a>=e.virtual.slides.length&&(a-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${a}"]`)}else l=o(`[data-swiper-slide-index="${s}"]`);else l=t[s];if(l){l.classList.add(n.slideActiveClass);let a=XR(l,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!a&&(a=t[0]),a&&a.classList.add(n.slideNextClass);let u=KR(l,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!u===0&&(u=t[t.length-1]),u&&u.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const Ou=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const s=r.querySelector(`.${e.params.lazyPreloaderClass}`);s&&s.remove()}},Of=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Sh=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const o=s,l=[o-t];l.push(...Array.from({length:t}).map((a,u)=>o+r+u)),e.slides.forEach((a,u)=>{l.includes(a.column)&&Of(e,u)});return}const i=s+r-1;if(e.params.rewind||e.params.loop)for(let o=s-t;o<=i+t;o+=1){const l=(o%n+n)%n;(l<s||l>i)&&Of(e,l)}else for(let o=Math.max(s-t,0);o<=Math.min(i+t,n-1);o+=1)o!==s&&(o>i||o<s)&&Of(e,o)};function hN(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let s;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?r>=t[i]&&r<t[i+1]-(t[i+1]-t[i])/2?s=i:r>=t[i]&&r<t[i+1]&&(s=i+1):r>=t[i]&&(s=i);return n.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function mN(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:s,activeIndex:i,realIndex:o,snapIndex:l}=t;let a=e,u;const c=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof a>"u"&&(a=hN(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const p=Math.min(s.slidesPerGroupSkip,a);u=p+Math.floor((a-p)/s.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),a===i){u!==l&&(t.snapIndex=u,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=c(a));return}let f;t.virtual&&s.virtual.enabled&&s.loop?f=c(a):t.slides[a]?f=parseInt(t.slides[a].getAttribute("data-swiper-slide-index")||a,10):f=a,Object.assign(t,{previousSnapIndex:l,snapIndex:u,previousRealIndex:o,realIndex:f,previousIndex:i,activeIndex:a}),t.initialized&&Sh(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==f&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function gN(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let s=!1,i;if(r){for(let o=0;o<t.slides.length;o+=1)if(t.slides[o]===r){s=!0,i=o;break}}if(r&&s)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=i;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var vN={updateSize:aN,updateSlides:lN,updateAutoHeight:uN,updateSlidesOffset:cN,updateSlidesProgress:dN,updateProgress:fN,updateSlidesClasses:pN,updateActiveIndex:mN,updateClickedSlide:gN};function yN(e){e===void 0&&(e=this.isHorizontal()?"x":"y");const t=this,{params:n,rtlTranslate:r,translate:s,wrapperEl:i}=t;if(n.virtualTranslate)return r?-s:s;if(n.cssMode)return s;let o=GR(i,e);return o+=t.cssOverflowAdjustment(),r&&(o=-o),o||0}function wN(e,t){const n=this,{rtlTranslate:r,params:s,wrapperEl:i,progress:o}=n;let l=0,a=0;const u=0;n.isHorizontal()?l=r?-e:e:a=e,s.roundLengths&&(l=Math.floor(l),a=Math.floor(a)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:a,s.cssMode?i[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-a:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():a-=n.cssOverflowAdjustment(),i.style.transform=`translate3d(${l}px, ${a}px, ${u}px)`);let c;const f=n.maxTranslate()-n.minTranslate();f===0?c=0:c=(e-n.minTranslate())/f,c!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function xN(){return-this.snapGrid[0]}function bN(){return-this.snapGrid[this.snapGrid.length-1]}function SN(e,t,n,r,s){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),r===void 0&&(r=!0);const i=this,{params:o,wrapperEl:l}=i;if(i.animating&&o.preventInteractionOnTransition)return!1;const a=i.minTranslate(),u=i.maxTranslate();let c;if(r&&e>a?c=a:r&&e<u?c=u:c=e,i.updateProgress(c),o.cssMode){const f=i.isHorizontal();if(t===0)l[f?"scrollLeft":"scrollTop"]=-c;else{if(!i.support.smoothScroll)return m2({swiper:i,targetPosition:-c,side:f?"left":"top"}),!0;l.scrollTo({[f?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(c),n&&(i.emit("beforeTransitionStart",t,s),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(c),n&&(i.emit("beforeTransitionStart",t,s),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(p){!i||i.destroyed||p.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,n&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}var EN={getTranslate:yN,setTranslate:wN,minTranslate:xN,maxTranslate:bN,translateTo:SN};function CN(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function w2(e){let{swiper:t,runCallbacks:n,direction:r,step:s}=e;const{activeIndex:i,previousIndex:o}=t;let l=r;if(l||(i>o?l="next":i<o?l="prev":l="reset"),t.emit(`transition${s}`),n&&i!==o){if(l==="reset"){t.emit(`slideResetTransition${s}`);return}t.emit(`slideChangeTransition${s}`),l==="next"?t.emit(`slideNextTransition${s}`):t.emit(`slidePrevTransition${s}`)}}function kN(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),w2({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function TN(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),w2({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var jN={setTransition:CN,transitionStart:kN,transitionEnd:TN};function PN(e,t,n,r,s){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;let o=e;o<0&&(o=0);const{params:l,snapGrid:a,slidesGrid:u,previousIndex:c,activeIndex:f,rtlTranslate:p,wrapperEl:h,enabled:y}=i;if(i.animating&&l.preventInteractionOnTransition||!y&&!r&&!s)return!1;const w=Math.min(i.params.slidesPerGroupSkip,o);let x=w+Math.floor((o-w)/i.params.slidesPerGroup);x>=a.length&&(x=a.length-1);const g=-a[x];if(l.normalizeSlideIndex)for(let v=0;v<u.length;v+=1){const b=-Math.floor(g*100),E=Math.floor(u[v]*100),T=Math.floor(u[v+1]*100);typeof u[v+1]<"u"?b>=E&&b<T-(T-E)/2?o=v:b>=E&&b<T&&(o=v+1):b>=E&&(o=v)}if(i.initialized&&o!==f&&(!i.allowSlideNext&&(p?g>i.translate&&g>i.minTranslate():g<i.translate&&g<i.minTranslate())||!i.allowSlidePrev&&g>i.translate&&g>i.maxTranslate()&&(f||0)!==o))return!1;o!==(c||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(g);let m;if(o>f?m="next":o<f?m="prev":m="reset",p&&-g===i.translate||!p&&g===i.translate)return i.updateActiveIndex(o),l.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),l.effect!=="slide"&&i.setTranslate(g),m!=="reset"&&(i.transitionStart(n,m),i.transitionEnd(n,m)),!1;if(l.cssMode){const v=i.isHorizontal(),b=p?g:-g;if(t===0){const E=i.virtual&&i.params.virtual.enabled;E&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),E&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[v?"scrollLeft":"scrollTop"]=b})):h[v?"scrollLeft":"scrollTop"]=b,E&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1})}else{if(!i.support.smoothScroll)return m2({swiper:i,targetPosition:b,side:v?"left":"top"}),!0;h.scrollTo({[v?"left":"top"]:b,behavior:"smooth"})}return!0}return i.setTransition(t),i.setTranslate(g),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,m),t===0?i.transitionEnd(n,m):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(b){!i||i.destroyed||b.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,m))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function ON(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const s=this;let i=e;return s.params.loop&&(s.virtual&&s.params.virtual.enabled?i=i+s.virtual.slidesBefore:i=s.getSlideIndexByData(i)),s.slideTo(i,t,n,r)}function RN(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this,{enabled:s,params:i,animating:o}=r;if(!s)return r;let l=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(l=Math.max(r.slidesPerViewDynamic("current",!0),1));const a=r.activeIndex<i.slidesPerGroupSkip?1:l,u=r.virtual&&i.virtual.enabled;if(i.loop){if(o&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return i.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+a,e,t,n)}function NN(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this,{params:s,snapGrid:i,slidesGrid:o,rtlTranslate:l,enabled:a,animating:u}=r;if(!a)return r;const c=r.virtual&&s.virtual.enabled;if(s.loop){if(u&&!c&&s.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=l?r.translate:-r.translate;function p(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const h=p(f),y=i.map(g=>p(g));let w=i[y.indexOf(h)-1];if(typeof w>"u"&&s.cssMode){let g;i.forEach((m,v)=>{h>=m&&(g=v)}),typeof g<"u"&&(w=i[g>0?g-1:g])}let x=0;if(typeof w<"u"&&(x=o.indexOf(w),x<0&&(x=r.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(x=x-r.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),s.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}return r.slideTo(x,e,t,n)}function AN(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this;return r.slideTo(r.activeIndex,e,t,n)}function IN(e,t,n,r){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),r===void 0&&(r=.5);const s=this;let i=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,i),l=o+Math.floor((i-o)/s.params.slidesPerGroup),a=s.rtlTranslate?s.translate:-s.translate;if(a>=s.snapGrid[l]){const u=s.snapGrid[l],c=s.snapGrid[l+1];a-u>(c-u)*r&&(i+=s.params.slidesPerGroup)}else{const u=s.snapGrid[l-1],c=s.snapGrid[l];a-u<=(c-u)*r&&(i-=s.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,s.slidesGrid.length-1),s.slideTo(i,e,t,n)}function _N(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let s=e.clickedIndex,i;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?s<e.loopedSlides-r/2||s>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),s=e.getSlideIndex($n(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),xh(()=>{e.slideTo(s)})):e.slideTo(s):s>e.slides.length-r?(e.loopFix(),s=e.getSlideIndex($n(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),xh(()=>{e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}var MN={slideTo:PN,slideToLoop:ON,slideNext:RN,slidePrev:NN,slideReset:AN,slideToClosest:IN,slideToClickedSlide:_N};function LN(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;$n(r,`.${n.slideClass}, swiper-slide`).forEach((i,o)=>{i.setAttribute("data-swiper-slide-index",o)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function DN(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:s,activeSlideIndex:i,byController:o,byMousewheel:l}=e===void 0?{}:e;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:f,slidesEl:p,params:h}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&h.virtual.enabled){n&&(!h.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):h.centeredSlides&&a.snapIndex<h.slidesPerView?a.slideTo(a.virtual.slides.length+a.snapIndex,0,!1,!0):a.snapIndex===a.snapGrid.length-1&&a.slideTo(a.virtual.slidesBefore,0,!1,!0)),a.allowSlidePrev=c,a.allowSlideNext=f,a.emit("loopFix");return}const y=h.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(h.slidesPerView,10));let w=h.loopedSlides||y;w%h.slidesPerGroup!==0&&(w+=h.slidesPerGroup-w%h.slidesPerGroup),a.loopedSlides=w;const x=[],g=[];let m=a.activeIndex;typeof i>"u"?i=a.getSlideIndex(a.slides.filter(C=>C.classList.contains(h.slideActiveClass))[0]):m=i;const v=r==="next"||!r,b=r==="prev"||!r;let E=0,T=0;if(i<w){E=Math.max(w-i,h.slidesPerGroup);for(let C=0;C<w-i;C+=1){const R=C-Math.floor(C/u.length)*u.length;x.push(u.length-R-1)}}else if(i>a.slides.length-w*2){T=Math.max(i-(a.slides.length-w*2),h.slidesPerGroup);for(let C=0;C<T;C+=1){const R=C-Math.floor(C/u.length)*u.length;g.push(R)}}if(b&&x.forEach(C=>{a.slides[C].swiperLoopMoveDOM=!0,p.prepend(a.slides[C]),a.slides[C].swiperLoopMoveDOM=!1}),v&&g.forEach(C=>{a.slides[C].swiperLoopMoveDOM=!0,p.append(a.slides[C]),a.slides[C].swiperLoopMoveDOM=!1}),a.recalcSlides(),h.slidesPerView==="auto"&&a.updateSlides(),h.watchSlidesProgress&&a.updateSlidesOffset(),n){if(x.length>0&&b)if(typeof t>"u"){const C=a.slidesGrid[m],j=a.slidesGrid[m+E]-C;l?a.setTranslate(a.translate-j):(a.slideTo(m+E,0,!1,!0),s&&(a.touches[a.isHorizontal()?"startX":"startY"]+=j))}else s&&a.slideToLoop(t,0,!1,!0);else if(g.length>0&&v)if(typeof t>"u"){const C=a.slidesGrid[m],j=a.slidesGrid[m-T]-C;l?a.setTranslate(a.translate-j):(a.slideTo(m-T,0,!1,!0),s&&(a.touches[a.isHorizontal()?"startX":"startY"]+=j))}else a.slideToLoop(t,0,!1,!0)}if(a.allowSlidePrev=c,a.allowSlideNext=f,a.controller&&a.controller.control&&!o){const C={slideRealIndex:t,slideTo:!1,direction:r,setTranslate:s,activeSlideIndex:i,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(R=>{!R.destroyed&&R.params.loop&&R.loopFix(C)}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix(C)}a.emit("loopFix")}function FN(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(s=>{const i=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;r[i]=s}),e.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),r.forEach(s=>{n.append(s)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var $N={loopCreate:LN,loopFix:DN,loopDestroy:FN};function zN(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function BN(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var VN={setGrabCursor:zN,unsetGrabCursor:BN};function UN(e,t){t===void 0&&(t=this);function n(r){if(!r||r===Xs()||r===Ht())return null;r.assignedSlot&&(r=r.assignedSlot);const s=r.closest(e);return!s&&!r.getRootNode?null:s||n(r.getRootNode().host)}return n(t)}function HN(e){const t=this,n=Xs(),r=Ht(),s=t.touchEventsData;s.evCache.push(e);const{params:i,touches:o,enabled:l}=t;if(!l||!i.simulateTouch&&e.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let a=e;a.originalEvent&&(a=a.originalEvent);let u=a.target;if(i.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(u)||"which"in a&&a.which===3||"button"in a&&a.button>0||s.isTouched&&s.isMoved)return;const c=!!i.noSwipingClass&&i.noSwipingClass!=="",f=e.composedPath?e.composedPath():e.path;c&&a.target&&a.target.shadowRoot&&f&&(u=f[0]);const p=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,h=!!(a.target&&a.target.shadowRoot);if(i.noSwiping&&(h?UN(p,u):u.closest(p))){t.allowClick=!0;return}if(i.swipeHandler&&!u.closest(i.swipeHandler))return;o.currentX=a.pageX,o.currentY=a.pageY;const y=o.currentX,w=o.currentY,x=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,g=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(x&&(y<=g||y>=r.innerWidth-g))if(x==="prevent")e.preventDefault();else return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=y,o.startY=w,s.touchStartTime=Tc(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(s.allowThresholdMove=!1);let m=!0;u.matches(s.focusableElements)&&(m=!1,u.nodeName==="SELECT"&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==u&&n.activeElement.blur();const v=m&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||v)&&!u.isContentEditable&&a.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",a)}function qN(e){const t=Xs(),n=this,r=n.touchEventsData,{params:s,touches:i,rtlTranslate:o,enabled:l}=n;if(!l||!s.simulateTouch&&e.pointerType==="mouse")return;let a=e;if(a.originalEvent&&(a=a.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",a);return}const u=r.evCache.findIndex(T=>T.pointerId===a.pointerId);u>=0&&(r.evCache[u]=a);const c=r.evCache.length>1?r.evCache[0]:a,f=c.pageX,p=c.pageY;if(a.preventedByNestedSwiper){i.startX=f,i.startY=p;return}if(!n.allowTouchMove){a.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(i,{startX:f,startY:p,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:f,currentY:p}),r.touchStartTime=Tc());return}if(s.touchReleaseOnEdges&&!s.loop){if(n.isVertical()){if(p<i.startY&&n.translate<=n.maxTranslate()||p>i.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(f<i.startX&&n.translate<=n.maxTranslate()||f>i.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&a.target===t.activeElement&&a.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;i.currentX=f,i.currentY=p;const h=i.currentX-i.startX,y=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(h**2+y**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let T;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:h*h+y*y>=25&&(T=Math.atan2(Math.abs(y),Math.abs(h))*180/Math.PI,r.isScrolling=n.isHorizontal()?T>s.touchAngle:90-T>s.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",a),typeof r.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!s.cssMode&&a.cancelable&&a.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&a.stopPropagation();let w=n.isHorizontal()?h:y,x=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;s.oneWayMovement&&(w=Math.abs(w)*(o?1:-1),x=Math.abs(x)*(o?1:-1)),i.diff=w,w*=s.touchRatio,o&&(w=-w,x=-x);const g=n.touchesDirection;n.swipeDirection=w>0?"prev":"next",n.touchesDirection=x>0?"prev":"next";const m=n.params.loop&&!s.cssMode;if(!r.isMoved){if(m&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const T=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(T)}r.allowMomentumBounce=!1,s.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",a)}let v;r.isMoved&&g!==n.touchesDirection&&m&&Math.abs(w)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),v=!0),n.emit("sliderMove",a),r.isMoved=!0,r.currentTranslate=w+r.startTranslate;let b=!0,E=s.resistanceRatio;if(s.touchReleaseOnEdges&&(E=0),w>0?(m&&!v&&r.currentTranslate>(s.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(b=!1,s.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+w)**E))):w<0&&(m&&!v&&r.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(s.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(b=!1,s.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-w)**E))),b&&(a.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),s.threshold>0)if(Math.abs(w)>s.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function WN(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(v=>v.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:s,touches:i,rtlTranslate:o,slidesGrid:l,enabled:a}=t;if(!a||!s.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}s.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const c=Tc(),f=c-n.touchStartTime;if(t.allowClick){const v=u.path||u.composedPath&&u.composedPath();t.updateClickedSlide(v&&v[0]||u.target),t.emit("tap click",u),f<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",u)}if(n.lastClickTime=Tc(),xh(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||i.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(s.followFinger?p=o?t.translate:-t.translate:p=-n.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}let h=0,y=t.slidesSizesGrid[0];for(let v=0;v<l.length;v+=v<s.slidesPerGroupSkip?1:s.slidesPerGroup){const b=v<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof l[v+b]<"u"?p>=l[v]&&p<l[v+b]&&(h=v,y=l[v+b]-l[v]):p>=l[v]&&(h=v,y=l[l.length-1]-l[l.length-2])}let w=null,x=null;s.rewind&&(t.isBeginning?x=s.virtual&&s.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(w=0));const g=(p-l[h])/y,m=h<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(f>s.longSwipesMs){if(!s.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(g>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?w:h+m):t.slideTo(h)),t.swipeDirection==="prev"&&(g>1-s.longSwipesRatio?t.slideTo(h+m):x!==null&&g<0&&Math.abs(g)>s.longSwipesRatio?t.slideTo(x):t.slideTo(h))}else{if(!s.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(u.target===t.navigation.nextEl||u.target===t.navigation.prevEl)?u.target===t.navigation.nextEl?t.slideTo(h+m):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(w!==null?w:h+m),t.swipeDirection==="prev"&&t.slideTo(x!==null?x:h))}}function m0(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:s,snapGrid:i}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=o&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!l?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=s,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function GN(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function QN(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let s;const i=e.maxTranslate()-e.minTranslate();i===0?s=0:s=(e.translate-e.minTranslate())/i,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function KN(e){const t=this;Ou(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let g0=!1;function XN(){}const x2=(e,t)=>{const n=Xs(),{params:r,el:s,wrapperEl:i,device:o}=e,l=!!r.nested,a=t==="on"?"addEventListener":"removeEventListener",u=t;s[a]("pointerdown",e.onTouchStart,{passive:!1}),n[a]("pointermove",e.onTouchMove,{passive:!1,capture:l}),n[a]("pointerup",e.onTouchEnd,{passive:!0}),n[a]("pointercancel",e.onTouchEnd,{passive:!0}),n[a]("pointerout",e.onTouchEnd,{passive:!0}),n[a]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&s[a]("click",e.onClick,!0),r.cssMode&&i[a]("scroll",e.onScroll),r.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",m0,!0):e[u]("observerUpdate",m0,!0),s[a]("load",e.onLoad,{capture:!0})};function YN(){const e=this,t=Xs(),{params:n}=e;e.onTouchStart=HN.bind(e),e.onTouchMove=qN.bind(e),e.onTouchEnd=WN.bind(e),n.cssMode&&(e.onScroll=QN.bind(e)),e.onClick=GN.bind(e),e.onLoad=KN.bind(e),g0||(t.addEventListener("touchstart",XN),g0=!0),x2(e,"on")}function JN(){x2(this,"off")}var ZN={attachEvents:YN,detachEvents:JN};const v0=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function e8(){const e=this,{realIndex:t,initialized:n,params:r,el:s}=e,i=r.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const o=e.getBreakpoint(i,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const a=(o in i?i[o]:void 0)||e.originalParams,u=v0(e,r),c=v0(e,a),f=r.enabled;u&&!c?(s.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(s.classList.add(`${r.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&r.grid.fill==="column")&&s.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(w=>{if(typeof a[w]>"u")return;const x=r[w]&&r[w].enabled,g=a[w]&&a[w].enabled;x&&!g&&e[w].disable(),!x&&g&&e[w].enable()});const p=a.direction&&a.direction!==r.direction,h=r.loop&&(a.slidesPerView!==r.slidesPerView||p);p&&n&&e.changeDirection(),It(e.params,a);const y=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!y?e.disable():!f&&y&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",a),h&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",a)}function t8(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const s=Ht(),i=t==="window"?s.innerHeight:n.clientHeight,o=Object.keys(e).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const a=parseFloat(l.substr(1));return{value:i*a,point:l}}return{value:l,point:l}});o.sort((l,a)=>parseInt(l.value,10)-parseInt(a.value,10));for(let l=0;l<o.length;l+=1){const{point:a,value:u}=o[l];t==="window"?s.matchMedia(`(min-width: ${u}px)`).matches&&(r=a):u<=n.clientWidth&&(r=a)}return r||"max"}var n8={setBreakpoint:e8,getBreakpoint:t8};function r8(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(s=>{r[s]&&n.push(t+s)}):typeof r=="string"&&n.push(t+r)}),n}function s8(){const e=this,{classNames:t,params:n,rtl:r,el:s,device:i}=e,o=r8(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),s.classList.add(...t),e.emitContainerClasses()}function i8(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}var o8={addClasses:s8,removeClasses:i8};function a8(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const s=e.slides.length-1,i=e.slidesGrid[s]+e.slidesSizesGrid[s]+r*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var l8={checkOverflow:a8},y0={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function u8(e,t){return function(r){r===void 0&&(r={});const s=Object.keys(r)[0],i=r[s];if(typeof i!="object"||i===null){It(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(s)>=0&&e[s]===!0&&(e[s]={auto:!0}),!(s in e&&"enabled"in i)){It(t,r);return}e[s]===!0&&(e[s]={enabled:!0}),typeof e[s]=="object"&&!("enabled"in e[s])&&(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),It(t,r)}}const Rf={eventsEmitter:oN,update:vN,translate:EN,transition:jN,slide:MN,loop:$N,grabCursor:VN,events:ZN,breakpoints:n8,checkOverflow:l8,classes:o8},Nf={};let qa=class Yn{constructor(){let t,n;for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?n=s[0]:[t,n]=s,n||(n={}),n=It({},n),t&&!n.el&&(n.el=t);const o=Xs();if(n.el&&typeof n.el=="string"&&o.querySelectorAll(n.el).length>1){const c=[];return o.querySelectorAll(n.el).forEach(f=>{const p=It({},n,{el:f});c.push(new Yn(p))}),c}const l=this;l.__swiper__=!0,l.support=y2(),l.device=tN({userAgent:n.userAgent}),l.browser=rN(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],n.modules&&Array.isArray(n.modules)&&l.modules.push(...n.modules);const a={};l.modules.forEach(c=>{c({params:n,swiper:l,extendParams:u8(n,a),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const u=It({},y0,a);return l.params=It({},u,Nf,n),l.originalParams=It({},l.params),l.passedParams=It({},n),l.params&&l.params.on&&Object.keys(l.params.on).forEach(c=>{l.on(c,l.params.on[c])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getSlideIndex(t){const{slidesEl:n,params:r}=this,s=$n(n,`.${r.slideClass}, swiper-slide`),i=jc(s[0]);return jc(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=$n(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const s=r.minTranslate(),o=(r.maxTranslate()-s)*t+s;r.translateTo(o,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const s=t.getSlideClasses(r);n.push({slideEl:r,classNames:s}),t.emit("_slideClass",r,s)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:s,slides:i,slidesGrid:o,slidesSizesGrid:l,size:a,activeIndex:u}=r;let c=1;if(s.centeredSlides){let f=i[u]?i[u].swiperSlideSize:0,p;for(let h=u+1;h<i.length;h+=1)i[h]&&!p&&(f+=i[h].swiperSlideSize,c+=1,f>a&&(p=!0));for(let h=u-1;h>=0;h-=1)i[h]&&!p&&(f+=i[h].swiperSlideSize,c+=1,f>a&&(p=!0))}else if(t==="current")for(let f=u+1;f<i.length;f+=1)(n?o[f]+l[f]-o[u]<a:o[f]-o[u]<a)&&(c+=1);else for(let f=u-1;f>=0;f-=1)o[u]-o[f]<a&&(c+=1);return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&Ou(t,o)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function s(){const o=t.rtlTranslate?t.translate*-1:t.translate,l=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(l),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)s(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const o=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(o.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||s()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,s=r.params.direction;return t||(t=s==="horizontal"?"vertical":"horizontal"),t===s||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${s}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&(n.isElement=!0);const s=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(s()):$n(r,s())[0])();return!o&&n.params.createElements&&(o=g2("div",n.params.wrapperClass),r.append(o),$n(r,`.${n.params.slideClass}`).forEach(l=>{o.append(l)})),Object.assign(n,{el:r,wrapperEl:o,slidesEl:n.isElement?r.parentNode.host:o,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||zr(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||zr(r,"direction")==="rtl"),wrongRTL:zr(o,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete?Ou(n,s):s.addEventListener("load",i=>{Ou(n,i.target)})}),Sh(n),n.initialized=!0,Sh(n),n.emit("init"),n.emit("afterInit")),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:s,el:i,wrapperEl:o,slides:l}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),s.loop&&r.loopDestroy(),n&&(r.removeClasses(),i.removeAttribute("style"),o.removeAttribute("style"),l&&l.length&&l.forEach(a=>{a.classList.remove(s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(a=>{r.off(a)}),t!==!1&&(r.el.swiper=null,qR(r)),r.destroyed=!0),null}static extendDefaults(t){It(Nf,t)}static get extendedDefaults(){return Nf}static get defaults(){return y0}static installModule(t){Yn.prototype.__modules__||(Yn.prototype.__modules__=[]);const n=Yn.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Yn.installModule(n)),Yn):(Yn.installModule(t),Yn)}};Object.keys(Rf).forEach(e=>{Object.keys(Rf[e]).forEach(t=>{qa.prototype[t]=Rf[e][t]})});qa.use([sN,iN]);const b2=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Hs(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Br(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Hs(t[r])&&Hs(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:Br(e[r],t[r]):e[r]=t[r]})}function S2(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function E2(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function C2(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function k2(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function c8(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function d8(e){let{swiper:t,slides:n,passedParams:r,changedParams:s,nextEl:i,prevEl:o,scrollbarEl:l,paginationEl:a}=e;const u=s.filter(j=>j!=="children"&&j!=="direction"&&j!=="wrapperClass"),{params:c,pagination:f,navigation:p,scrollbar:h,virtual:y,thumbs:w}=t;let x,g,m,v,b,E,T,C;s.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(x=!0),s.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(g=!0),s.includes("pagination")&&r.pagination&&(r.pagination.el||a)&&(c.pagination||c.pagination===!1)&&f&&!f.el&&(m=!0),s.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(c.scrollbar||c.scrollbar===!1)&&h&&!h.el&&(v=!0),s.includes("navigation")&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||i)&&(c.navigation||c.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(b=!0);const R=j=>{t[j]&&(t[j].destroy(),j==="navigation"?(t.isElement&&(t[j].prevEl.remove(),t[j].nextEl.remove()),c[j].prevEl=void 0,c[j].nextEl=void 0,t[j].prevEl=void 0,t[j].nextEl=void 0):(t.isElement&&t[j].el.remove(),c[j].el=void 0,t[j].el=void 0))};s.includes("loop")&&t.isElement&&(c.loop&&!r.loop?E=!0:!c.loop&&r.loop?T=!0:C=!0),u.forEach(j=>{if(Hs(c[j])&&Hs(r[j]))Br(c[j],r[j]),(j==="navigation"||j==="pagination"||j==="scrollbar")&&"enabled"in r[j]&&!r[j].enabled&&R(j);else{const L=r[j];(L===!0||L===!1)&&(j==="navigation"||j==="pagination"||j==="scrollbar")?L===!1&&R(j):c[j]=r[j]}}),u.includes("controller")&&!g&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),s.includes("children")&&n&&y&&c.virtual.enabled&&(y.slides=n,y.update(!0)),s.includes("children")&&n&&c.loop&&(C=!0),x&&w.init()&&w.update(!0),g&&(t.controller.control=c.controller.control),m&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),t.el.appendChild(a)),a&&(c.pagination.el=a),f.init(),f.render(),f.update()),v&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),t.el.appendChild(l)),l&&(c.scrollbar.el=l),h.init(),h.updateSize(),h.setTranslate()),b&&(t.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),i.innerHTML=t.hostEl.nextButtonSvg,t.el.appendChild(i)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),i.innerHTML=t.hostEl.prevButtonSvg,t.el.appendChild(o))),i&&(c.navigation.nextEl=i),o&&(c.navigation.prevEl=o),p.init(),p.update()),s.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),s.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),s.includes("direction")&&t.changeDirection(r.direction,!1),(E||C)&&t.loopDestroy(),(T||C)&&t.loopCreate(),t.update()}function f8(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},s={};Br(n,qa.defaults),Br(n,qa.extendedDefaults),n._emitClasses=!0,n.init=!1;const i={},o=b2.map(a=>a.replace(/_/,"")),l=Object.assign({},e);return Object.keys(l).forEach(a=>{typeof e[a]>"u"||(o.indexOf(a)>=0?Hs(e[a])?(n[a]={},s[a]={},Br(n[a],e[a]),Br(s[a],e[a])):(n[a]=e[a],s[a]=e[a]):a.search(/on[A-Z]/)===0&&typeof e[a]=="function"?t?r[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:n.on[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:i[a]=e[a])}),["navigation","pagination","scrollbar"].forEach(a=>{n[a]===!0&&(n[a]={}),n[a]===!1&&delete n[a]}),{params:n,passedParams:s,rest:i,events:r}}function p8(e,t){let{el:n,nextEl:r,prevEl:s,paginationEl:i,scrollbarEl:o,swiper:l}=e;S2(t)&&r&&s&&(l.params.navigation.nextEl=r,l.originalParams.navigation.nextEl=r,l.params.navigation.prevEl=s,l.originalParams.navigation.prevEl=s),E2(t)&&i&&(l.params.pagination.el=i,l.originalParams.pagination.el=i),C2(t)&&o&&(l.params.scrollbar.el=o,l.originalParams.scrollbar.el=o),l.init(n)}function h8(e,t,n,r,s){const i=[];if(!t)return i;const o=a=>{i.indexOf(a)<0&&i.push(a)};if(n&&r){const a=r.map(s),u=n.map(s);a.join("")!==u.join("")&&o("children"),r.length!==n.length&&o("children")}return b2.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in e&&a in t)if(Hs(e[a])&&Hs(t[a])){const u=Object.keys(e[a]),c=Object.keys(t[a]);u.length!==c.length?o(a):(u.forEach(f=>{e[a][f]!==t[a][f]&&o(a)}),c.forEach(f=>{e[a][f]!==t[a][f]&&o(a)}))}else e[a]!==t[a]&&o(a)}),i}const m8=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pc.apply(this,arguments)}function T2(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function j2(e){const t=[];return ee.Children.toArray(e).forEach(n=>{T2(n)?t.push(n):n.props&&n.props.children&&j2(n.props.children).forEach(r=>t.push(r))}),t}function g8(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return ee.Children.toArray(e).forEach(r=>{if(T2(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const s=j2(r.props.children);s.length>0?s.forEach(i=>t.push(i)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function v8(e,t,n){if(!n)return null;const r=c=>{let f=c;return c<0?f=t.length+c:f>=t.length&&(f=f-t.length),f},s=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:i,to:o}=n,l=e.params.loop?-t.length:0,a=e.params.loop?t.length*2:t.length,u=[];for(let c=l;c<a;c+=1)c>=i&&c<=o&&u.push(t[r(c)]);return u.map((c,f)=>ee.cloneElement(c,{swiper:e,style:s,key:`slide-${f}`}))}function aa(e,t){return typeof window>"u"?S.useEffect(e,t):S.useLayoutEffect(e,t)}const w0=S.createContext(null),y8=S.createContext(null),P2=S.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:s="div",children:i,onSwiper:o,...l}=e===void 0?{}:e,a=!1;const[u,c]=S.useState("swiper"),[f,p]=S.useState(null),[h,y]=S.useState(!1),w=S.useRef(!1),x=S.useRef(null),g=S.useRef(null),m=S.useRef(null),v=S.useRef(null),b=S.useRef(null),E=S.useRef(null),T=S.useRef(null),C=S.useRef(null),{params:R,passedParams:j,rest:L,events:A}=f8(l),{slides:N,slots:M}=g8(i),D=()=>{y(!h)};Object.assign(R.on,{_containerClasses($,V){c(V)}});const k=()=>{Object.assign(R.on,A),a=!0;const $={...R};if(delete $.wrapperClass,g.current=new qa($),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=N;const V={cache:!1,slides:N,renderExternal:p,renderExternalUpdate:!1};Br(g.current.params.virtual,V),Br(g.current.originalParams.virtual,V)}};x.current||k(),g.current&&g.current.on("_beforeBreakpoint",D);const I=()=>{a||!A||!g.current||Object.keys(A).forEach($=>{g.current.on($,A[$])})},z=()=>{!A||!g.current||Object.keys(A).forEach($=>{g.current.off($,A[$])})};S.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",D)}),S.useEffect(()=>{!w.current&&g.current&&(g.current.emitSlidesClasses(),w.current=!0)}),aa(()=>{if(t&&(t.current=x.current),!!x.current)return g.current.destroyed&&k(),p8({el:x.current,nextEl:b.current,prevEl:E.current,paginationEl:T.current,scrollbarEl:C.current,swiper:g.current},R),o&&o(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),aa(()=>{I();const $=h8(j,m.current,N,v.current,V=>V.key);return m.current=j,v.current=N,$.length&&g.current&&!g.current.destroyed&&d8({swiper:g.current,slides:N,passedParams:j,changedParams:$,nextEl:b.current,prevEl:E.current,scrollbarEl:C.current,paginationEl:T.current}),()=>{z()}}),aa(()=>{m8(g.current)},[f]);function _(){return R.virtual?v8(g.current,N,f):N.map(($,V)=>ee.cloneElement($,{swiper:g.current,swiperSlideIndex:V}))}return ee.createElement(r,Pc({ref:x,className:k2(`${u}${n?` ${n}`:""}`)},L),ee.createElement(y8.Provider,{value:g.current},M["container-start"],ee.createElement(s,{className:c8(R.wrapperClass)},M["wrapper-start"],_(),M["wrapper-end"]),S2(R)&&ee.createElement(ee.Fragment,null,ee.createElement("div",{ref:E,className:"swiper-button-prev"}),ee.createElement("div",{ref:b,className:"swiper-button-next"})),C2(R)&&ee.createElement("div",{ref:C,className:"swiper-scrollbar"}),E2(R)&&ee.createElement("div",{ref:T,className:"swiper-pagination"}),M["container-end"]))});P2.displayName="Swiper";const O2=S.forwardRef(function(e,t){let{tag:n="div",children:r,className:s="",swiper:i,zoom:o,lazy:l,virtualIndex:a,swiperSlideIndex:u,...c}=e===void 0?{}:e;const f=S.useRef(null),[p,h]=S.useState("swiper-slide"),[y,w]=S.useState(!1);function x(b,E,T){E===f.current&&h(T)}aa(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),t&&(t.current=f.current),!(!f.current||!i)){if(i.destroyed){p!=="swiper-slide"&&h("swiper-slide");return}return i.on("_slideClass",x),()=>{i&&i.off("_slideClass",x)}}}),aa(()=>{i&&f.current&&!i.destroyed&&h(i.getSlideClasses(f.current))},[i]);const g={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},m=()=>typeof r=="function"?r(g):r,v=()=>{w(!0)};return ee.createElement(n,Pc({ref:f,className:k2(`${p}${s?` ${s}`:""}`),"data-swiper-slide-index":a,onLoad:v},c),o&&ee.createElement(w0.Provider,{value:g},ee.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},m(),l&&!y&&ee.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&ee.createElement(w0.Provider,{value:g},m(),l&&!y&&ee.createElement("div",{className:"swiper-lazy-preloader"})))});O2.displayName="SwiperSlide";const x0=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function w8(e,t){t?t={...x0,...t}:t=x0;const n=R2(t);return n.dispatch(e),n.toString()}const x8=Object.freeze(["prototype","__proto__","constructor"]);function R2(e){let t="",n=new Map;const r=s=>{t+=s};return{toString(){return t},getContext(){return n},dispatch(s){return e.replacer&&(s=e.replacer(s)),this[s===null?"null":typeof s](s)},object(s){if(s&&typeof s.toJSON=="function")return this.object(s.toJSON());const i=Object.prototype.toString.call(s);let o="";const l=i.length;l<10?o="unknown:["+i+"]":o=i.slice(8,l-1),o=o.toLowerCase();let a=null;if((a=n.get(s))===void 0)n.set(s,n.size);else return this.dispatch("[CIRCULAR:"+a+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(s))return r("buffer:"),r(s.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](s):e.ignoreUnknown||this.unkown(s,o);else{let u=Object.keys(s);e.unorderedObjects&&(u=u.sort());let c=[];e.respectType!==!1&&!b0(s)&&(c=x8),e.excludeKeys&&(u=u.filter(p=>!e.excludeKeys(p)),c=c.filter(p=>!e.excludeKeys(p))),r("object:"+(u.length+c.length)+":");const f=p=>{this.dispatch(p),r(":"),e.excludeValues||this.dispatch(s[p]),r(",")};for(const p of u)f(p);for(const p of c)f(p)}},array(s,i){if(i=i===void 0?e.unorderedArrays!==!1:i,r("array:"+s.length+":"),!i||s.length<=1){for(const a of s)this.dispatch(a);return}const o=new Map,l=s.map(a=>{const u=R2(e);u.dispatch(a);for(const[c,f]of u.getContext())o.set(c,f);return u.toString()});return n=o,l.sort(),this.array(l,!1)},date(s){return r("date:"+s.toJSON())},symbol(s){return r("symbol:"+s.toString())},unkown(s,i){if(r(i),!!s&&(r(":"),s&&typeof s.entries=="function"))return this.array(Array.from(s.entries()),!0)},error(s){return r("error:"+s.toString())},boolean(s){return r("bool:"+s)},string(s){r("string:"+s.length+":"),r(s)},function(s){r("fn:"),b0(s)?this.dispatch("[native]"):this.dispatch(s.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(s.name)),e.respectFunctionProperties&&this.object(s)},number(s){return r("number:"+s)},xml(s){return r("xml:"+s.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(s){return r("regex:"+s.toString())},uint8array(s){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(s))},uint8clampedarray(s){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(s))},int8array(s){return r("int8array:"),this.dispatch(Array.prototype.slice.call(s))},uint16array(s){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(s))},int16array(s){return r("int16array:"),this.dispatch(Array.prototype.slice.call(s))},uint32array(s){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(s))},int32array(s){return r("int32array:"),this.dispatch(Array.prototype.slice.call(s))},float32array(s){return r("float32array:"),this.dispatch(Array.prototype.slice.call(s))},float64array(s){return r("float64array:"),this.dispatch(Array.prototype.slice.call(s))},arraybuffer(s){return r("arraybuffer:"),this.dispatch(new Uint8Array(s))},url(s){return r("url:"+s.toString())},map(s){r("map:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},set(s){r("set:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},file(s){return r("file:"),this.dispatch([s.name,s.size,s.type,s.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported
|
|
226
218
|
Use "options.replacer" or "options.ignoreUnknown"
|
|
227
|
-
`)},domwindow(){return r("domwindow")},bigint(s){return r("bigint:"+s.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const fw="[native code] }",z8=fw.length;function k1(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-z8)===fw}class xr{constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||V8).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new xr([...this.words])}}const V8={stringify(e){const t=[];for(let n=0;n<e.sigBytes;n++){const r=e.words[n>>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(r&15).toString(16))}return t.join("")}},U8={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let r=0;r<e.sigBytes;r+=3){const s=e.words[r>>>2]>>>24-r%4*8&255,i=e.words[r+1>>>2]>>>24-(r+1)%4*8&255,o=e.words[r+2>>>2]>>>24-(r+2)%4*8&255,a=s<<16|i<<8|o;for(let l=0;l<4&&r*8+l*6<e.sigBytes*8;l++)n.push(t.charAt(a>>>6*(3-l)&63))}return n.join("")}},H8={parse(e){const t=e.length,n=[];for(let r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new xr(n,t)}},q8={parse(e){return H8.parse(unescape(encodeURIComponent(e)))}};class Q8{constructor(){this._data=new xr,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new xr,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=q8.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,r=this._data.sigBytes/(this.blockSize*4);t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const s=r*this.blockSize,i=Math.min(s*4,this._data.sigBytes);if(s){for(let o=0;o<s;o+=this.blockSize)this._doProcessBlock(this._data.words,o);n=this._data.words.splice(0,s),this._data.sigBytes-=i}return new xr(n,i)}}class W8 extends Q8{update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t)}}const j1=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],K8=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Dr=[];class G8 extends W8{constructor(){super(...arguments),this._hash=new xr([...j1])}reset(){super.reset(),this._hash=new xr([...j1])}_doProcessBlock(t,n){const r=this._hash.words;let s=r[0],i=r[1],o=r[2],a=r[3],l=r[4],u=r[5],d=r[6],f=r[7];for(let h=0;h<64;h++){if(h<16)Dr[h]=t[n+h]|0;else{const x=Dr[h-15],S=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,C=Dr[h-2],j=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;Dr[h]=S+Dr[h-7]+j+Dr[h-16]}const p=l&u^~l&d,m=s&i^s&o^i&o,y=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),w=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),g=f+w+p+K8[h]+Dr[h],v=y+m;f=d,d=u,u=l,l=a+g|0,a=o,o=i,i=s,s=g+v|0}r[0]=r[0]+s|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+l|0,r[5]=r[5]+u|0,r[6]=r[6]+d|0,r[7]=r[7]+f|0}finalize(t){super.finalize(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function X8(e){return new G8().finalize(e).toString(U8)}function hw(e,t={}){const n=typeof e=="string"?e:$8(e,t);return X8(n).slice(0,10)}var pw={};Object.defineProperty(pw,"__esModule",{value:!0});const Y8=e=>{const t="ÀÁÂÃÄÅĄĀàáâãäåąāÒÓÔÕÕÖØòóôõöøÈÉÊËĘĒèéêëðęēÇĆČçćčÐÌÍÎÏĪìíîïīÙÚÛÜŪùúûüūÑŅñņŠŚšśŸÿýŽŹŻžźżŁĻłļŃŅńņàáãảạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệđùúủũụưừứửữựòóỏõọôồốổỗộơờớởỡợìíỉĩịäëïîüûñçýỳỹỵỷğışĞİŞĢģĶķ",n="AAAAAAAAaaaaaaaaOOOOOOOooooooEEEEEEeeeeeeeCCCcccDIIIIIiiiiiUUUUUuuuuuNNnnSSssYyyZZZzzzLLllNNnnaaaaaaaaaaaaaaaaaeeeeeeeeeeeduuuuuuuuuuuoooooooooooooooooiiiiiaeiiuuncyyyyygisGISGgKk",r=t.split("").join("|"),s=new RegExp(`(${r})`,"g");function i(o){return n[t.indexOf(o)]||""}return e.replace(s,i)},J8=e=>e.split("").map(t=>`\\${t}`).join(""),R1=(e,t,n=!1)=>{const r=Y8(e).trim().toLowerCase(),s=J8(t);return n?r.replace(/\s+/g,t):r.replace(new RegExp(`[^a-z0-9${s}]+`,"g"),t).replace(new RegExp(`${s}+`,"g"),t).replace(new RegExp(`^${s}`,"g"),"").replace(new RegExp(`${s}$`,"g"),"")},Li=(e,t={delimiter:"-",prefix:""})=>{if(t.delimiter||(t.delimiter="-"),t.prefix||(t.prefix=""),!e||typeof e=="boolean")return"";const{delimiter:n,prefix:r}=t;if(typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number"){const s=R1(r,n,!0),i=R1(String(e),n);return s?`${s}${n}${i}`:i}return"children"in e?Li(e.children):"type"in e?Li(e.props.children,t):Symbol.iterator in e?Li(Array.from(e).map(s=>Li(s,{delimiter:n})).join(n),t):""};var mw=pw.default=Li,fp={},hp={};(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})(hp);var se={},_r=tt&&tt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),to=tt&&tt.__assign||function(){return to=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},to.apply(this,arguments)};Object.defineProperty(se,"__esModule",{value:!0});se.cloneNode=se.hasChildren=se.isDocument=se.isDirective=se.isComment=se.isText=se.isCDATA=se.isTag=se.Element=se.Document=se.CDATA=se.NodeWithChildren=se.ProcessingInstruction=se.Comment=se.Text=se.DataNode=se.Node=void 0;var wt=hp,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),mp(this,t)},e}();se.Node=pp;var Vu=function(e){_r(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);se.DataNode=Vu;var gw=function(e){_r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=wt.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(Vu);se.Text=gw;var vw=function(e){_r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=wt.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(Vu);se.Comment=vw;var yw=function(e){_r(t,e);function t(n,r){var s=e.call(this,r)||this;return s.name=n,s.type=wt.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(Vu);se.ProcessingInstruction=yw;var Uu=function(e){_r(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);se.NodeWithChildren=Uu;var xw=function(e){_r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=wt.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(Uu);se.CDATA=xw;var ww=function(e){_r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=wt.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(Uu);se.Document=ww;var bw=function(e){_r(t,e);function t(n,r,s,i){s===void 0&&(s=[]),i===void 0&&(i=n==="script"?wt.ElementType.Script:n==="style"?wt.ElementType.Style:wt.ElementType.Tag);var o=e.call(this,s)||this;return o.name=n,o.attribs=r,o.type=i,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var s,i;return{name:r,value:n.attribs[r],namespace:(s=n["x-attribsNamespace"])===null||s===void 0?void 0:s[r],prefix:(i=n["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),t}(Uu);se.Element=bw;function Sw(e){return(0,wt.isTag)(e)}se.isTag=Sw;function Cw(e){return e.type===wt.ElementType.CDATA}se.isCDATA=Cw;function Ew(e){return e.type===wt.ElementType.Text}se.isText=Ew;function kw(e){return e.type===wt.ElementType.Comment}se.isComment=kw;function jw(e){return e.type===wt.ElementType.Directive}se.isDirective=jw;function Rw(e){return e.type===wt.ElementType.Root}se.isDocument=Rw;function Z8(e){return Object.prototype.hasOwnProperty.call(e,"children")}se.hasChildren=Z8;function mp(e,t){t===void 0&&(t=!1);var n;if(Ew(e))n=new gw(e.data);else if(kw(e))n=new vw(e.data);else if(Sw(e)){var r=t?Yc(e.children):[],s=new bw(e.name,to({},e.attribs),r);r.forEach(function(l){return l.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=to({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=to({},e["x-attribsPrefix"])),n=s}else if(Cw(e)){var r=t?Yc(e.children):[],i=new xw(r);r.forEach(function(u){return u.parent=i}),n=i}else if(Rw(e)){var r=t?Yc(e.children):[],o=new ww(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(jw(e)){var a=new yw(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}se.cloneNode=mp;function Yc(e){for(var t=e.map(function(r){return mp(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=tt&&tt.__createBinding||(Object.create?function(a,l,u,d){d===void 0&&(d=u);var f=Object.getOwnPropertyDescriptor(l,u);(!f||("get"in f?!l.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,d,f)}:function(a,l,u,d){d===void 0&&(d=u),a[d]=l[u]}),n=tt&&tt.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=hp,s=se;n(se,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,d){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(d=u,u=i),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??i,this.elementCB=d??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(l){this.handleCallback(l)},a.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},a.prototype.onopentag=function(l,u){var d=this.options.xmlMode?r.ElementType.Tag:void 0,f=new s.Element(l,u,void 0,d);this.addNode(f),this.tagStack.push(f)},a.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var d=new s.Text(l);this.addNode(d),this.lastNode=d}},a.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new s.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new s.Text(""),u=new s.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(l,u){var d=new s.ProcessingInstruction(l,u);this.addNode(d)},a.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},a.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],d=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),d&&(l.prev=d,d.next=l),l.parent=u,this.lastNode=null},a}();e.DomHandler=o,e.default=o})(fp);var O1="html",N1="head",Ia="body",eO=/<([a-zA-Z]+[0-9]?)/,P1=/<head[^]*>/i,A1=/<body[^]*>/i,iu=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Pf=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},_1=typeof window=="object"&&window.DOMParser;if(typeof _1=="function"){var tO=new _1,nO="text/html";Pf=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),tO.parseFromString(e,nO)},iu=Pf}if(typeof document=="object"&&document.implementation){var Da=document.implementation.createHTMLDocument();iu=function(e,t){if(t){var n=Da.documentElement.querySelector(t);return n.innerHTML=e,Da}return Da.documentElement.innerHTML=e,Da}}var Jc=typeof document=="object"?document.createElement("template"):{},Af;Jc.content&&(Af=function(e){return Jc.innerHTML=e,Jc.content.childNodes});function rO(e){var t,n=e.match(eO);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case O1:return r=Pf(e),P1.test(e)||(s=r.querySelector(N1),s&&s.parentNode.removeChild(s)),A1.test(e)||(s=r.querySelector(Ia),s&&s.parentNode.removeChild(s)),r.querySelectorAll(O1);case N1:case Ia:return r=iu(e),i=r.querySelectorAll(t),A1.test(e)&&P1.test(e)?i[0].parentNode.childNodes:i;default:return Af?Af(e):(s=iu(e,Ia).querySelector(Ia),s.childNodes)}}var sO=rO,gp={},Ow={};Ow.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 Hu=fp,iO=Ow,T1=iO.CASE_SENSITIVE_TAG_NAMES,oO=Hu.Comment,aO=Hu.Element,lO=Hu.ProcessingInstruction,uO=Hu.Text,Nw={},Zc;for(var ed=0,cO=T1.length;ed<cO;ed++)Zc=T1[ed],Nw[Zc.toLowerCase()]=Zc;function dO(e){return Nw[e]}function Pw(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function fO(e){e=e.toLowerCase();var t=dO(e);return t||e}function Aw(e,t,n){t=t||null;for(var r=[],s,i=0,o=e.length;i<o;i++){var a=e[i],l;switch(a.nodeType){case 1:s=fO(a.nodeName),l=new aO(s,Pw(a.attributes)),l.children=Aw(s==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new uO(a.nodeValue);break;case 8:l=new oO(a.nodeValue);break;default:continue}var u=r[i-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new lO(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=t,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}gp.formatAttributes=Pw;gp.formatDOM=Aw;var hO=sO,pO=gp,mO=pO.formatDOM,gO=/<(![a-zA-Z\s]+)>/;function vO(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(gO),n;return t&&t[1]&&(n=t[1]),mO(hO(e),null,n)}var yO=vO,Jt={},qu={},xO=0;qu.SAME=xO;var wO=1;qu.CAMELCASE=wO;qu.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(Jt,"__esModule",{value:!0});function bO(e,t){return SO(e)||CO(e,t)||EO(e,t)||kO()}function SO(e){if(Array.isArray(e))return e}function CO(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function EO(e,t){if(e){if(typeof e=="string")return I1(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 I1(e,t)}}function I1(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 kO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
228
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var
|
|
229
|
-
`,L1="/",F1="*",Fr="",UO="comment",HO="declaration",qO=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function s(m){var y=m.match(DO);y&&(n+=y.length);var w=m.lastIndexOf(VO);r=~w?m.length-w:r+m.length}function i(){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 a(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 l(m){var y=m.exec(e);if(y){var w=y[0];return s(w),e=e.slice(w.length),y}}function u(){l(MO)}function d(m){var y;for(m=m||[];y=f();)y!==!1&&m.push(y);return m}function f(){var m=i();if(!(L1!=e.charAt(0)||F1!=e.charAt(1))){for(var y=2;Fr!=e.charAt(y)&&(F1!=e.charAt(y)||L1!=e.charAt(y+1));)++y;if(y+=2,Fr===e.charAt(y-1))return a("End of comment missing");var w=e.slice(2,y-2);return r+=2,s(w),e=e.slice(y),r+=2,m({type:UO,comment:w})}}function h(){var m=i(),y=l(LO);if(y){if(f(),!l(FO))return a("property missing ':'");var w=l($O),g=m({type:HO,property:$1(y[0].replace(M1,Fr)),value:w?$1(w[0].replace(M1,Fr)):Fr});return l(BO),g}}function p(){var m=[];d(m);for(var y;y=h();)y!==!1&&(m.push(y),d(m));return m}return u(),p()};function $1(e){return e?e.replace(zO,Fr):Fr}var QO=qO;function Mw(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=QO(e),i=typeof t=="function",o,a,l=0,u=s.length;l<u;l++)r=s[l],o=r.property,a=r.value,i?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}bp.exports=Mw;bp.exports.default=Mw;var WO=bp.exports,Ku={};Ku.__esModule=!0;Ku.camelCase=void 0;var KO=/^--[a-zA-Z0-9-]+$/,GO=/-([a-z])/g,XO=/^[^-]+$/,YO=/^-(webkit|moz|ms|o|khtml)-/,JO=/^-(ms)-/,ZO=function(e){return!e||XO.test(e)||KO.test(e)},eN=function(e,t){return t.toUpperCase()},B1=function(e,t){return"".concat(t,"-")},tN=function(e,t){return t===void 0&&(t={}),ZO(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(JO,B1):e=e.replace(YO,B1),e.replace(GO,eN))};Ku.camelCase=tN;(function(e){var t=tt&&tt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};e.__esModule=!0;var n=t(WO),r=Ku;function s(i,o){var a={};return!i||typeof i!="string"||(0,n.default)(i,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=s})(Dw);var nN=b,rN=Dw.default;function sN(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,s=typeof t=="function",i={},o={};for(n in e){if(r=e[n],s&&(i=t(n,r),i&&i.length===2)){o[i[0]]=i[1];continue}typeof r=="string"&&(o[r]=n)}return o}function iN(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 oN={reactCompat:!0};function aN(e,t){if(e!=null)try{t.style=rN(e,oN)}catch{t.style={}}}var lN=nN.version.split(".")[0]>=16,Lw=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function uN(e){return!Lw.has(e.name)}var Fw={PRESERVE_CUSTOM_ATTRIBUTES:lN,invertObject:sN,isCustomComponent:iN,setStyleProp:aN,canTextBeChildOfNode:uN,elementsWithNoTextChildren:Lw},Fi=Jt,z1=Fw,cN=["checked","value"],dN=["input","select","textarea"],fN={reset:!0,submit:!0},$w=function(t,n){t=t||{};var r,s,i,o,a,l={},u=t.type&&fN[t.type];for(r in t){if(i=t[r],Fi.isCustomAttribute(r)){l[r]=i;continue}if(s=r.toLowerCase(),o=V1(s),o){switch(a=Fi.getPropertyInfo(o),cN.indexOf(o)!==-1&&dN.indexOf(n)!==-1&&!u&&(o=V1("default"+s)),l[o]=i,a&&a.type){case Fi.BOOLEAN:l[o]=!0;break;case Fi.OVERLOADED_BOOLEAN:i===""&&(l[o]=!0);break}continue}z1.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=i)}return z1.setStyleProp(t.style,l),l};function V1(e){return Fi.possibleStandardNames[e]}var hN=b,pN=$w,ou=Fw,mN=ou.setStyleProp,gN=ou.canTextBeChildOfNode;function Bw(e,t){t=t||{};for(var n=t.library||hN,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",d,f,h,p=t.trim,m=0,y=e.length;m<y;m++){if(a=e[m],u&&(d=t.replace(a),i(d))){y>1&&(d=r(d,{key:d.key||m})),o.push(d);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!gN(a.parent)||p&&l)continue;o.push(a.data);continue}switch(f=a.attribs,vN(a)?mN(f.style,f):f&&(f=pN(f,a.name)),h=null,a.type){case"script":case"style":a.children[0]&&(f.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":a.name==="textarea"&&a.children[0]?f.defaultValue=a.children[0].data:a.children&&a.children.length&&(h=Bw(a.children,t));break;default:continue}y>1&&(f.key=m),o.push(s(a.name,f,h))}return o.length===1?o[0]:o}function vN(e){return ou.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&ou.isCustomComponent(e.name,e.attribs)}var yN=Bw,Gu=fp,Ns=yO,xN=$w,zw=yN;Ns=typeof Ns.default=="function"?Ns.default:Ns;var wN={lowerCaseAttributeNames:!1};function Rn(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},zw(Ns(e,t.htmlparser2||wN),t))}Rn.domToReact=zw;Rn.htmlToDOM=Ns;Rn.attributesToProps=xN;Rn.Comment=Gu.Comment;Rn.Element=Gu.Element;Rn.ProcessingInstruction=Gu.ProcessingInstruction;Rn.Text=Gu.Text;var bN=Rn;Rn.default=Rn;const Ir=$o(bN);var Ma=Ir.domToReact;Ir.htmlToDOM;var td=Ir.attributesToProps;Ir.Comment;Ir.Element;Ir.ProcessingInstruction;Ir.Text;const Vw=b.forwardRef(({children:e},t)=>c.jsx("div",{ref:t,className:"actionbar",children:e}));Vw.displayName="ActionBar";const Uw=Vw,Hw=b.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:s=!1,isToast:i=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},d)=>{const[f,h]=b.useState(!0),p=b.useRef(null),m=b.useCallback(()=>{h(!1),l==null||l()},[l]);b.useImperativeHandle(d,()=>({show:y,hide:m,...p.current})),b.useLayoutEffect(()=>{u==null||u(f)},[f,u]),b.useEffect(()=>{o&&f&&setTimeout(()=>{m()},a)},[o,a,m,f]);const y=()=>{h(!0)},w={success:{icon:c.jsx(n5,{}),classModifier:"alert-success"},warning:{icon:c.jsx(pE,{}),classModifier:"alert-warning"},info:{icon:c.jsx(ax,{}),classModifier:"alert-info"},danger:{icon:c.jsx(NE,{}),classModifier:"alert-danger"}},g={"is-dismissible":s,"is-toast ":i},v=G("alert gap-12",w[e].classModifier,g,t);return c.jsx(c.Fragment,{children:f?c.jsxs("div",{ref:p,className:v,role:"alert",children:[w[e].icon,c.jsx("div",{className:"alert-content small",children:n}),r&&c.jsx("div",{className:"ms-12",children:r}),s&&c.jsx("div",{className:"btn-close-container",children:c.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:m})}),o&&c.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});Hw.displayName="Alert";const ur=Hw,qw=b.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=G("d-flex flex-wrap p-16 gap-8 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return c.jsxs("div",{ref:r,className:s,children:[e,t?c.jsx("div",{className:"d-flex align-items-center ms-auto gap-8",children:t()}):null]})});qw.displayName="AppHeader";const Qw=qw;function Sp({appCode:e}){return Ah({queryKey:["conf"],queryFn:async()=>await ne.conf().getConf(e),suspense:!0})}function Ww(){return Ah({queryKey:["session"],queryFn:async()=>await ne.session().getSession(),suspense:!0})}const Cp=b.createContext(null);function Kw({children:e,params:t}){const n=t.app,{t:r}=re(),s=r(n),i=Ww(),o=Sp({appCode:n}),a=(o==null?void 0:o.isSuccess)&&(i==null?void 0:i.isSuccess);b.useEffect(()=>{var u,d;(d=document.querySelector("html"))==null||d.setAttribute("lang",((u=i==null?void 0:i.data)==null?void 0:u.currentLanguage)||"fr")},[i==null?void 0:i.data]),b.useEffect(()=>{document.title=`${s}`},[n,i.data,s]);const l=b.useMemo(()=>{var u,d,f,h,p,m;return{appCode:n,applications:(u=o==null?void 0:o.data)==null?void 0:u.applications,confQuery:o,currentApp:(d=o==null?void 0:o.data)==null?void 0:d.currentApp,currentLanguage:(f=i==null?void 0:i.data)==null?void 0:f.currentLanguage,init:a,sessionQuery:i,user:(h=i==null?void 0:i.data)==null?void 0:h.user,userDescription:(p=i==null?void 0:i.data)==null?void 0:p.userDescription,userProfile:(m=i==null?void 0:i.data)==null?void 0:m.userProfile}},[n,o,a,i]);return c.jsx(Cp.Provider,{value:l,children:e})}function _e(){const e=b.useContext(Cp);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}const Ep=b.createContext(null);function Gw({children:e}){var t;const{appCode:n}=_e(),r=Sp({appCode:n});b.useEffect(()=>{var i,o,a,l,u,d,f,h,p;const m=document.getElementById("favicon");m.href=`${(o=(i=r==null?void 0:r.data)==null?void 0:i.theme)==null?void 0:o.basePath}/img/illustrations/favicon.ico`;const y=(u=(l=(a=r==null?void 0:r.data)==null?void 0:a.theme)==null?void 0:l.bootstrapVersion)==null?void 0:u.split("-"),w=y?y[y.length-1]:void 0;[{data:"data-skin",value:(f=(d=r==null?void 0:r.data)==null?void 0:d.theme)==null?void 0:f.skinName},{data:"data-theme",value:(p=(h=r==null?void 0:r.data)==null?void 0:h.theme)==null?void 0:p.themeName},{data:"data-product",value:w}].forEach(v=>{var x;return(x=document.querySelector("html"))==null?void 0:x.setAttribute(v.data,v.value)})},[r==null?void 0:r.data]);const s=b.useMemo(()=>{var i;return{theme:(i=r==null?void 0:r.data)==null?void 0:i.theme}},[(t=r==null?void 0:r.data)==null?void 0:t.theme]);return c.jsx(Ep.Provider,{value:s,children:e})}function Xu(){const e=b.useContext(Ep);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function Xw(){var e;const{sessionQuery:t}=_e(),n=new Set;return(e=t==null?void 0:t.data)==null?void 0:e.bookmarkedApps.filter(s=>{const i=n.has(s.displayName);return n.add(s.displayName),!i})}function Bs(e){const[t,n]=b.useState();return b.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await ne.rights().sessionHasWorkflowRight(e):await ne.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}const SN=()=>{const e=Bs("fr.openent.zimbra.controllers.ZimbraController|view"),t=Bs("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=b.useState(0),[s,i]=b.useState(""),o=b.useCallback(async()=>{if(e)try{const l=await ne.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});l.status!==200&&r(0),r(l.count)}catch{console.error("error"),r(0)}else try{const l=await ne.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{console.error("error"),r(0)}},[e]),a=b.useCallback(()=>{let l="";ne.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?l="/zimbra/preauth":l=window.location.origin+"/zimbra/zimbra"}catch{l="/zimbra/zimbra"}}),i(l)},[t]);return b.useEffect(()=>{(async()=>{try{await o()}catch(l){console.error(l)}})(),a()},[a,o]),{messages:n,msgLink:s,zimbraWorkflow:e}},Yw=SN,U1=["mousedown","touchstart"];function kp(e,t,n){const r=b.useRef();return b.useEffect(()=>{const s=i=>{const{target:o}=i??{};if(Array.isArray(n)){const a=(o==null?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&o.tagName!=="HTML";n.every(u=>!!u&&!i.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||U1).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||U1).forEach(i=>{document.removeEventListener(i,s)})}},[r,e,n,t]),r}const La="top-right";function at(){return{success:(t,n)=>ki.custom(c.jsx(ur,{type:"success",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??La}),error:(t,n)=>ki.custom(c.jsx(ur,{type:"danger",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??La}),info:(t,n)=>ki.custom(c.jsx(ur,{type:"info",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??La}),warning:(t,n)=>ki.custom(c.jsx(ur,{type:"warning",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??La}),loading:ki.loading}}function jp(){const[e,t]=b.useState(!1),n=b.useRef(null),r=()=>{t(!0)},s=()=>{t(!1)};return b.useEffect(()=>{const i=n.current;if(i)return i.addEventListener("mouseover",r),i.addEventListener("mouseout",s),()=>{i.removeEventListener("mouseover",r),i.removeEventListener("mouseout",s)}},[n]),[n,e]}function Jw({src:e,placeholder:t}){const[n,r]=b.useState(e||t),s=b.useCallback(()=>{r(t)},[t]);return b.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:s}}function Zw(e,t){const n=b.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);b.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function e2(){const e=typeof document<"u",[t,n]=b.useState(()=>document.title);return b.useEffect(()=>{e&&n(document.title)},[e]),t}function Rp(e=!1){const[t,n]=b.useState(e),r=b.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function t2(e,t){const[n,r]=b.useState(e);return b.useEffect(()=>{const s=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(s)}},[e,t]),n}function n2(){const e=b.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return b.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],s=n.querySelectorAll(t),i=e&&(s==null?void 0:s[s.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(i.focus(),a.preventDefault()):document.activeElement===i&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function r2(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const CN=(e,t)=>{const[,n]=b.useState(!1),r=b.useCallback(o=>{o.preventDefault(),o.stopPropagation(),n(!0)},[]),s=o=>{o.preventDefault(),o.stopPropagation(),n(!1)};return{handleDragging:r,handleDragLeave:s,handleDrop:o=>{var a;s(o);const l=(a=o.dataTransfer)==null?void 0:a.files;t(l),e!=null&&e.current&&l&&(e.current.files=l)}}},s2=CN;function i2({user:e,avatar:t}){const{t:n}=re(),r=e2(),[s,i]=b.useState(!0),[o,a]=jp(),l=b.useId(),u=b.useId(),d=t,f=e==null?void 0:e.username,h=n("welcome",{username:e==null?void 0:e.firstName}),p=Xw(),m=Bs("net.atos.entng.community.controllers.CommunityController|view"),y=Bs("org.entcore.conversation.controllers.ConversationController|view"),w=Bs("fr.openent.searchengine.controllers.SearchEngineController|view"),g=b.useCallback(()=>{i(!s)},[s]),v=async()=>{await ne.session().logout(),window.location.href="/auth/login"};return b.useMemo(()=>({title:r,bookmarkedApps:p,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:d,userName:f,welcomeUser:h,communityWorkflow:m,conversationWorflow:y,searchWorkflow:w,isCollapsed:s,toggleCollapsedNav:g,handleLogout:v}),[o,p,m,y,a,s,l,u,w,r,g,d,f,h])}function o2(){const[e,t]=b.useState(!1);b.useEffect(()=>{n()},[]);const n=b.useCallback(async()=>{const r=await ne.session().isAdml();t(r)},[]);return{isAdml:e}}function Yu(){const e={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme"};function t(a){let l="";switch(l=(a==null?void 0:a.icon)!==void 0?a==null?void 0:a.icon.trim().toLowerCase():"placeholder",l&&l.length>0?l.endsWith("-large")&&(l=l.replace("-large","")):l=(a==null?void 0:a.displayName)!==void 0?a==null?void 0:a.displayName.trim().toLowerCase():"",l){case"admin.title":l="admin";break;case"banques des savoirs":l="banquesavoir";break;case"collaborativewall":l="collaborative-wall";break;case"communautés":l="community";break;case"directory.user":l="userbook";break;case"emploi du temps":l="edt";break;case"messagerie":l="conversation";break;case"news":l="actualites";break;case"homeworks":case"cahier de texte":l="cahier-de-texte";break;case"diary":case"cahier de texte 2d":l="cahier-textes";break}return l}function n(a){return a&&(a.startsWith("/")||a.startsWith("http://")||a.startsWith("https://"))}function r(a){const l=t(a);return l?`color-app-${l}`:"color-app-placeholder"}function s(a){const l=t(a);return l?`bg-app-${l}`:"bg-app-placeholder"}function i(a){const l=t(a);return l?`bg-light-${l}`:"bg-light-placeholder"}function o(a){return e[a.platformConf.name]}return{getIconClass:r,getBackgroundIconClass:s,getBackgroundLightIconClass:i,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function ai(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}function ra(){const{user:e,userDescription:t,userProfile:n}=_e(),{theme:r}=Xu();function s(){let i=t==null?void 0:t.picture;return(!i||i==="no-avatar.jpg"||i==="no-avatar.svg")&&(i=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),i}return{user:{...e,type:n},avatar:s(),userDescription:t}}function a2(){const[e,t]=b.useState("pending"),{currentApp:n}=_e();b.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await ne.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(s){console.error("[Xiti] Error Tracking Page Load",s),t(`[Xiti] Error Tracking Page Load: ${s}`)}};return{xitiStatus:e}}const l2=b.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:s,className:i,...o},a)=>{const[l]=ai(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:d,onError:f}=Jw({src:e,placeholder:u}),h={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},p={"object-fit-contain":s==="contain","object-fit-cover":s==="cover","object-fit-fill":s==="fill","object-fit-scale":s==="scale","object-fit-none":s==="none"},m=G({...h}),y=G({...p},i),w=c.jsx("img",{alt:t,onError:f,ref:a,src:d,className:y,...o});return r?c.jsx("div",{className:m,children:w}):w});l2.displayName="Image";const li=l2,u2=b.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Yu(),[,a]=ai(),l=r==="square",u=r==="rounded",d=r==="circle",f=n==="contain",h=n==="ratio",p={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},m={square:l,rounded:u,"rounded-circle":d},y={"icon-contain":f,"icon-ratio":h},w=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",g=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",x=i(w),S=v||"placeholder",C=G("app-icon",{...p,...m,...y,[`bg-light-${S}`]:S&&!f,[`color-app-${S}`]:S});return x?c.jsx(li,{src:w,alt:g,objectFit:"contain",width:t,height:t,className:"h-full"}):c.jsx("div",{className:C,style:{width:t+"px",height:t+"px"},children:c.jsx("svg",{ref:s,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:c.jsx("use",{xlinkHref:`${a}/apps.svg#${S}`})})})});u2.displayName="AppIcon";const Er=u2,c2=b.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},a)=>{const[l]=ai(),u=s||`${l}/avatar/no-avatar.svg`,y=G("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},i);return c.jsx("div",{ref:a,className:y,children:c.jsx(li,{src:r||u,alt:n,imgPlaceholder:u,...o})})});c2.displayName="Avatar";const kr=c2,d2=b.forwardRef(({children:e,className:t,...n},r)=>{const s=G("breadcrumb-item",t);return c.jsx("li",{ref:r,className:s,...n,children:e})});d2.displayName="BreadcrumbItem";const nd=d2,f2=b.forwardRef(({children:e,className:t},n)=>{const r=G("breadcrumb d-flex flex-nowrap align-items-center mb-0",t);return c.jsx("ol",{ref:n,className:r,children:e})});f2.displayName="BreadcrumbList";const EN=f2,h2=b.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=re(),{getIconClass:i}=Yu(),o=G("d-flex align-items-center mb-0",i(t),n),a={"--edifice-breadcrumb-divider":"-"};return c.jsx("nav",{ref:r,className:o,"aria-label":s("breadcrumb"),style:a,children:e})});h2.displayName="BreadcrumbNav";const kN=h2,p2=b.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:s="left",children:i,...o}=e,a=()=>{let u;return r?u=r:u=c.jsx(BE,{...o,"aria-label":"Loading"}),u},l=G("loading",{"is-loading":n});return c.jsxs("div",{className:l,role:"status",ref:t,children:[(!s||s==="left")&&a(),i,s==="right"&&a()]})});p2.displayName="Loading";const Op=p2,m2=b.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:s,loadingIcon:i,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:d="filled",...f},h)=>{const p=G("btn",{[`btn-filled btn-${e}`]:d==="filled",[`btn-${d}-${e}`]:d==="outline"||d==="ghost","btn-icon":!r,"btn-loading":s,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return c.jsx("button",{ref:h,className:p,type:t,...f,children:s?c.jsx(Op,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):c.jsxs("span",{children:[a,r,l]})})});m2.displayName="Button";const Fe=m2,g2=b.forwardRef(({icon:e,className:t,...n},r)=>{const s={...n,className:G("btn-icon btn-sm",t)};return c.jsx(Fe,{ref:r,...s,children:e})});g2.displayName="IconButton";const qn=g2,v2=b.forwardRef(({icon:e=c.jsx(e5,{}),onClick:t,...n},r)=>{const s=G("btn-search");return c.jsx(qn,{ref:r,className:s,icon:e,...n,onClick:t})});v2.displayName="SearchButton";const Np=v2,y2=b.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...s},i)=>{const o=G(t,r);return c.jsx(e,{ref:i,className:o,...s,children:n})});y2.displayName="Heading";const Qt=y2,x2=b.forwardRef(({app:e,name:t},n)=>{const{t:r}=re();return c.jsx(kN,{app:e,ref:n,className:"mw-100",children:c.jsx(EN,{className:"gap-12 mw-100",children:t?c.jsxs(c.Fragment,{children:[c.jsx(nd,{children:c.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[c.jsx(qn,{variant:"ghost",color:"tertiary",icon:c.jsx(WE,{}),"aria-label":r(e==null?void 0:e.displayName)}),c.jsx(Er,{app:e,size:"40"})]})}),c.jsx(nd,{className:"text-truncate",children:c.jsx(Qt,{level:"h1",headingStyle:"h3",className:"text-truncate",children:t})})]}):c.jsxs(nd,{className:"gap-12 d-flex align-items-center",children:[c.jsx(Er,{app:e,size:"40"}),c.jsx(Qt,{level:"h1",headingStyle:"h3",className:"d-none d-md-flex",children:r(e==null?void 0:e.displayName)})]})})})});x2.displayName="Breadcrumb";const w2=x2,b2=({children:e,space:t=null,flexDirection:n="row"})=>{const r=G("card-body",{"p-8":t==="8","gap-8":t==="8","align-items-start":n==="column","flex-column":n==="column"});return c.jsx("div",{className:r,children:e})};b2.displayName="Card.Body";const jN=b2,Pp=b.createContext(null);Pp.displayName="CardContext";const S2=()=>{const e=b.useContext(Pp);if(!e)throw new Error("Cannot be rendered outside the Card component");return e},C2=({children:e})=>c.jsx("div",{className:"card-footer gap-16",children:e});C2.displayName="Card.Footer";const RN=C2,E2=()=>{const{isSelectable:e,isClickable:t,onClick:n,onSelect:r}=S2();return c.jsxs("div",{className:"card-header",children:[e?c.jsx(qn,{"aria-label":"Open Action Bar",className:"z-3 bg-white",color:"secondary",icon:c.jsx(VE,{}),onClick:r,variant:"ghost"}):null,t?c.jsx("button",{onClick:n,className:"position-absolute bottom-0 end-0 top-0 start-0 opacity-0 z-1 w-100","aria-label":"Open resource"}):null]})};E2.displayName="Card.Header";const ON=E2,k2=({imageSrc:e,className:t,variant:n="medium"})=>{const{app:r}=S2(),s=n==="landscape"?{width:"100%",height:"auto"}:null;return c.jsx("div",{className:G("card-image",n),children:e?c.jsx(li,{alt:"",src:e,objectFit:"cover",className:G("h-full",t)}):c.jsx(Er,{app:r,iconFit:"ratio",size:"80",variant:"rounded",...s})})};k2.displayName="Card.Image";const NN=k2,j2=({children:e,className:t})=>{const n=G("card-text small text-break text-truncate text-truncate-1",t);return c.jsx("p",{className:n,children:e})};j2.displayName="Card.Text";const PN=j2,R2=({children:e,className:t})=>{const n=G("card-title body text-break text-truncate text-truncate-1",t);return c.jsx("h3",{className:n,children:c.jsx("strong",{children:e})})};R2.displayName="Card.Title";const AN=R2,O2=({userSrc:e,creatorName:t})=>e?c.jsx(kr,{alt:t||"",size:"xs",src:e,variant:"circle",width:"24",height:"24"}):c.jsx(dp,{});O2.displayName="Card.User";const _N=O2,N2=b.forwardRef(({app:e,isSelectable:t=!0,isClickable:n=!0,isSelected:r=!1,onClick:s,onSelect:i,children:o,className:a},l)=>{const{getIconCode:u}=Yu(),d=e?u(e):"placeholder",f=b.useMemo(()=>({app:e,appCode:d,isSelectable:t,isClickable:n,onClick:s,onSelect:i}),[e,d,t,n,s,i]);return c.jsx(Pp.Provider,{value:f,children:c.jsxs("div",{ref:l,className:G("card",{"is-selected":r},a),children:[c.jsx(P2.Header,{}),typeof o=="function"?o(d):o]})})});N2.displayName="Card";const P2=Object.assign(N2,{Title:AN,Text:PN,Image:NN,Body:jN,User:_N,Footer:RN,Header:ON}),vn=P2,A2=b.forwardRef(({label:e,disabled:t=!1,checked:n=!1,indeterminate:r=!1,...s},i)=>{const o=b.useRef(null);b.useImperativeHandle(i,()=>({...o.current})),b.useEffect(()=>{o.current.indeterminate=r},[o,r]);const a=b.useId(),l={type:"checkbox",checked:n,disabled:t,ref:o,className:G(s.className,"form-check-input c-pointer"),id:a},u={...s,...l};return c.jsxs("div",{className:"form-check d-flex align-items-center gap-8",children:[c.jsx("input",{...u}),e&&c.jsx("label",{className:"form-check-label",htmlFor:u.id,children:e})]})});A2.displayName="Checkbox";const Ju=A2,_2=b.createContext(null),ui=()=>{const e=b.useContext(_2);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},T2=b.createContext(null),Zu=()=>{const e=b.useContext(T2);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},I2=({children:e})=>{const{status:t}=Zu(),n=G("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return c.jsx("p",{className:n,children:c.jsx("em",{children:e})})};I2.displayName="Text";const D2=I2,M2=b.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:s,...i},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:d}=Zu(),f=G({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":d==="invalid","is-valid":d==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return c.jsx("input",{ref:o,id:a,className:f,type:r,placeholder:t,required:l,readOnly:u,...i})});M2.displayName="Input";const jr=M2,L2=b.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:s},i)=>{const{id:o,isOptional:a,isRequired:l}=Zu(),u=G("form-label",{"has-icon":e},s),d=a&&!l,f=l&&!a;return b.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),c.jsxs("label",{ref:i,htmlFor:o,className:u,children:[e,r,d&&c.jsxs("em",{className:"optional",children:["- ",t]}),f&&c.jsx("em",{className:"required",children:n})]})});L2.displayName="Label";const Kr=L2,F2=b.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:s,isRequired:i,status:o,...a},l)=>{const u=b.useMemo(()=>({id:n,isOptional:r,isRequired:i,isReadOnly:s,status:o}),[n,r,s,i,o]);return c.jsx(T2.Provider,{value:u,children:c.jsx("div",{ref:l,className:t,...a,children:e})})}),TN=Object.assign(F2,{Label:Kr,Input:jr,Text:D2});F2.displayName="FormControl";const Ue=TN,IN=({placeholder:e,value:t="",handleSearchInputChange:n})=>{const{triggerProps:r,itemProps:s,setVisible:i}=ui(),o={...r,role:"combobox",onClick:()=>{t.length>2&&i(!0)},onChange:n};return b.useEffect(()=>{i(t.length>2)},[i,t]),c.jsx(Ue,{className:"d-flex align-items-center",id:"search",children:c.jsx(jr,{...o,className:"max-w-512",noValidationIcon:!0,placeholder:e,size:"md",type:"search",onKeyDown:s.onMenuItemKeyDown})})},DN=IN,$2=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=ui(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=b.useId(),d=n.includes(t),f={value:t,model:n,checked:d,readOnly:!0},h=G("dropdown-item c-pointer",{focus:o===u});return c.jsx("div",{id:u,ref:p=>i.current[u]=p,role:"menuitemcheckbox","aria-checked":d,onMouseUp:()=>r(t),onKeyDown:p=>a(p,()=>r(t)),onMouseEnter:l,tabIndex:d?0:-1,className:h,children:c.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,c.jsx(Ju,{...f})]})})};$2.displayName="Dropdown.CheckboxItem";const MN=$2,B2=({type:e="action",icon:t,onClick:n,children:r,...s})=>{const{itemProps:i,itemRefs:o,isFocused:a}=ui(),{onMenuItemKeyDown:l,onMenuItemMouseEnter:u,onMenuItemClick:d}=i,f=()=>{n==null||n(),e==="action"&&d()},h=b.useId(),p=G("dropdown-item",{focus:a===h});return c.jsx("div",{id:h,role:"menuitem",ref:m=>o.current[h]=m,tabIndex:a===h?0:-1,className:p,"aria-current":a===h,onClick:f,onMouseEnter:u,onKeyDown:m=>l(m,n),...s,children:c.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[t,r]})})};B2.displayName="Dropdown.Item";const LN=B2,z2=b.forwardRef(({children:e,block:t,...n},r)=>{const{menuProps:s,visible:i}=ui(),{className:o,...a}=s,l={...a,...n},u=G({"w-100":t},o);return i?c.jsx("div",{ref:r,className:u,...l,children:e}):null});z2.displayName="Dropdown.Menu";const FN=z2,V2=b.forwardRef(({label:e,children:t},n)=>c.jsxs("div",{ref:n,role:"group",children:[c.jsx("span",{className:"small px-4",children:c.jsx("strong",{children:e})}),t]}));V2.displayName="Dropdown.MenuGroup";const $N=V2,U2=b.forwardRef(({model:e,icon:t,label:n=!1,disabled:r=!1,checked:s,...i},o)=>{const a=b.useId(),l={type:"radio",checked:s,disabled:r,ref:o,className:G(i.className,"form-check-input c-pointer",t&&"d-none"),id:a},u={...i,...l};return c.jsxs("div",{className:G("form-check d-flex align-items-center gap-8",t&&"ps-0"),children:[c.jsx("input",{...u}),t&&c.jsx("label",{htmlFor:u.id,className:G("c-pointer",e!==i.value&&"text-muted"),children:t}),!t&&n&&c.jsx("label",{className:"form-check-label",htmlFor:u.id,children:n})]})});U2.displayName="Radio";const au=U2,H2=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=ui(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=b.useId(),f={value:t,model:n,checked:t===n,readOnly:!0},h=G("dropdown-item c-pointer",{focus:o===u});return c.jsx("div",{id:u,ref:p=>i.current[u]=p,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:p=>a(p,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:c.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,c.jsx(au,{...f,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};H2.displayName="Dropdown.RadioItem";const BN=H2,q2=()=>c.jsx("div",{role:"separator",className:"px-4",children:c.jsx("hr",{className:"m-0"})});q2.displayName="Dropdown.Separator";const zN=q2,Q2=b.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i,...o},a)=>{const{triggerProps:l,block:u}=ui(),{className:d,...f}=l,h={...f,...o},p=G(s,n,{"w-100":u},d);return c.jsxs("button",{ref:a,className:p,disabled:r,...h,children:[t||null,e,i?c.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):c.jsx(XE,{width:16,height:16,className:"dropdown-toggle-caret"})]})});Q2.displayName="Dropdown.Trigger";const VN=Q2,UN=e=>{const t=b.useId(),[n,r]=b.useState(!1),[s,i]=b.useState(-1),[o,a]=b.useState(null),{refs:l,floatingStyles:u}=G5({placement:e,open:n,onOpenChange:r,whileElementsMounted:M5,middleware:[x5(4),w5({apply({rects:F,elements:T}){Object.assign(T.floating.style,{minWidth:`${F.reference.width}px`})}}),v5({padding:0})]}),d=b.useRef(null),f=b.useRef(null),h=b.useRef({});b.useEffect(()=>{n?d.current&&(d.current.focus(),i(0)):(i(-1),h.current={})},[n]),b.useEffect(()=>{if(s!==-1){const F=Object.values(h.current)[s];if(F){const T=F.getAttribute("id");a(T),F.focus()}}},[s]);const p=()=>{const T=Object.values(h.current).length;i($=>($+1)%T)},m=()=>{const T=Object.values(h.current).length;i($=>($-1+T)%T)},y=()=>{i(0)},w=()=>{const T=Object.values(h.current).length;i(T-1)},g=b.useCallback(()=>{r(!0)},[]),v=b.useCallback(()=>{f.current&&(f.current.focus(),r(!1))},[]),x=(F,T)=>{F&&(T.stopPropagation(),T.preventDefault())},S=b.useCallback(F=>{let T=!1;switch(F.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":g(),T=!0;break;case"Esc":case"Escape":v(),T=!0;break;case"Up":case"ArrowUp":g(),T=!0;break}x(T,F)},[v,g]),C=F=>{const $=Object.values(h.current).findIndex(D=>D.id===F.currentTarget.getAttribute("id"));i($)},j=b.useCallback((F,T)=>{let $=!1;if(F.shiftKey)F.key==="Tab"&&(v(),$=!0);else{switch(F.code){case"Escape":v();break;case" ":case"Space":case"Enter":s!==-1&&(Object.values(h.current)[s].getAttribute("role")==="menuitem"&&f.current&&(f.current.focus(),r(!1)),T==null||T()),$=!0;break;case"ArrowDown":case"Down":p(),$=!0;break;case"ArrowUp":case"Up":m(),$=!0;break;case"Home":y(),$=!0;break;case"End":w(),$=!0;break}x($,F)}},[s,v]),k=b.useCallback(F=>{r(n!==!0),F.stopPropagation(),F.preventDefault()},[n]),O=b.useCallback(()=>{v()},[v]);function A(F,...T){T.forEach($=>{typeof $=="function"?$(F):$!=null&&($.current=F)})}function _(...F){return T=>{A(T,...F)}}return{isFocused:o,visible:n,itemRefs:h,triggerRef:f,menuRef:d,triggerProps:{ref:_(f,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:k,onKeyDown:S,"aria-activedescendant":o},menuProps:{ref:_(d,l.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,style:{...u}},itemProps:{onMenuItemMouseEnter:C,onMenuItemClick:O,onMenuItemKeyDown:j},setVisible:r}},W2=UN,K2=({children:e,block:t,overflow:n=!0,placement:r="bottom-start"})=>{const{visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,setVisible:d}=W2(r),f=kp(()=>d(!1)),h=b.useMemo(()=>({visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,block:t,setVisible:d}),[s,i,o,a,l,u,t,d]),p=G("dropdown",{"w-100":t,overflow:n});return c.jsx(_2.Provider,{value:h,children:c.jsx("div",{ref:f,className:p,children:typeof e=="function"?e(o,u):e})})};K2.displayName="Dropdown";const HN=Object.assign(K2,{Trigger:VN,Menu:FN,Item:LN,Separator:zN,CheckboxItem:MN,RadioItem:BN,MenuGroup:$N}),we=HN,ec=({onSearchResultsChange:e,onSearchInputChange:t,options:n,value:r,isLoading:s,noResult:i,placeholder:o})=>{const{t:a}=re(),[l,u]=b.useState([]);b.useEffect(()=>{e(l)},[l]);const d=h=>{u([h])},f=()=>s?c.jsxs("div",{className:"d-flex align-items-center p-4",children:[c.jsx(Op,{isLoading:s}),c.jsx("span",{className:"ps-4",children:a("explorer.search.pending")})]}):i?c.jsx("div",{className:"p-4",children:a("portal.no.result")}):n.map((h,p)=>c.jsxs(b.Fragment,{children:[c.jsx(we.Item,{type:"select",onClick:()=>d(h.value),children:h.label}),p<n.length-1&&c.jsx(we.Separator,{})]},p));return c.jsxs(we,{block:!0,children:[c.jsx(ec.Trigger,{placeholder:o,handleSearchInputChange:t,value:r}),c.jsx(we.Menu,{children:f()})]})};ec.Trigger=DN;ec.displayName="Combobox";const G2=ec,X2=({imageSrc:e,imageAlt:t="",title:n,text:r})=>c.jsxs("div",{className:"emptyscreen",children:[e&&c.jsx("div",{className:"emptyscreen-image mb-12",children:c.jsx("img",{className:"mx-auto",src:e,alt:t,width:"250",height:"250"})}),n&&c.jsx(Qt,{level:"h2",headingStyle:"h2",className:"text-secondary mb-8",children:n}),r&&c.jsx("div",{className:"text",children:r})]});X2.displayName="EmptyScreen";const qN=X2,zs=({children:e,className:t,...n})=>{const r=G("grid",t);return c.jsx("div",{className:r,...n,children:e})},Ap=({sm:e,md:t,lg:n,xl:r,children:s,className:i,as:o,...a})=>{const l=o||"div",u=G({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},i);return c.jsx(l,{className:u,...a,children:s})};zs.displayName="Grid";Ap.displayName="Grid.Col";zs.Col=Ap;const Y2=b.forwardRef(({label:e,addButtonLabel:t="Add image",deleteButtonLabel:n="Delete image",src:r,className:s,app:i,onUploadImage:o,onDeleteImage:a},l)=>{const u=b.useRef(null),[d,f]=b.useState(r||""),h=S=>{f("");const C=S==null?void 0:S[0];C&&(f(URL.createObjectURL(C)),o(C))},p=()=>{var S;(S=u.current)==null||S.click()},m=()=>{u.current&&(u.current.value=""),f(""),a()},y=S=>{h(S.target.files)},w=G("image-input",s),{handleDragging:g,handleDragLeave:v,handleDrop:x}=s2(u,h);return c.jsxs(Ue,{id:"image-input",className:w,onDragEnter:g,onDragOver:g,onDragLeave:v,onDrop:x,ref:l,children:[c.jsxs("div",{className:"image-input-actions gap-8",children:[c.jsx(qn,{"aria-label":t,color:"tertiary",icon:c.jsx(RE,{}),onClick:p,type:"button",variant:"ghost"}),c.jsx(qn,{"aria-label":n,color:"danger",disabled:!d,icon:c.jsx(ox,{width:"20",height:"20"}),onClick:m,type:"button",variant:"ghost"})]}),c.jsxs(Ue.Label,{children:[c.jsx("span",{className:"visually-hidden",children:e}),c.jsx(jr,{accept:"image/*",hidden:!0,onChange:y,ref:u,size:"sm",type:"file"}),d?c.jsx(kr,{alt:"",src:d,size:"xl"}):c.jsx(Er,{app:i,iconFit:"ratio",size:"160",variant:"rounded"})]})]})});Y2.displayName="ImagePicker";const _p=Y2,J2=b.forwardRef(({text:e,textButton:t,src:n,alt:r,url:s},i)=>c.jsx(c.Fragment,{children:c.jsxs("div",{ref:i,className:"p-16",children:[c.jsx(li,{width:"270",height:"140",loading:"lazy",className:"rounded",src:n,alt:r}),c.jsx("p",{className:"m-8",children:e}),c.jsx("a",{href:s,target:"_blank",rel:"noreferrer",children:c.jsx(Fe,{rightIcon:c.jsx(yE,{}),className:"py-0 px-8",variant:"ghost",color:"primary",children:t})})]})}));J2.displayName="Library";const QN=J2,Z2=b.forwardRef(({position:e=!0},t)=>{const[n]=ai(),r=`${n}/loading/screen-loading.gif`,s=G("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 c.jsxs(c.Fragment,{children:[c.jsx("div",{ref:t,className:s,children:c.jsx("div",{className:"bg-white rounded-circle mx-auto",children:c.jsx("img",{src:r,alt:"loading"})})}),!e&&c.jsx("div",{className:"modal-backdrop fade show"})]})});Z2.displayName="LoadingScreen";const et=Z2,eb=b.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const s=G("navbar-brand d-none d-md-block"),i=`logo ${t?"ONE":"NEO"}`;return c.jsx("a",{ref:r,className:s,href:"/timeline/timeline","aria-label":n,children:c.jsx("img",{className:"logo",src:e,alt:i,width:"300",height:"52"})})});eb.displayName="Logo";const _f=eb,Tp=b.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});Tp.displayName="ModalContext";const tb=()=>{const e=b.useContext(Tp);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},nb=e=>{const{ariaDescriptionId:t}=tb(),{children:n,className:r}=e,s=G("modal-body",r);return c.jsx("div",{id:t,className:s,children:n})};nb.displayName="Modal.Body";const WN=nb,rb=e=>c.jsx("div",{className:"modal-footer",children:e.children});rb.displayName="Modal.Footer";const KN=rb,sb=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=tb(),i=b.useRef(null);return b.useEffect(()=>{var o;s||(o=i.current)==null||o.focus()},[s]),c.jsxs("div",{className:"modal-header",children:[c.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),c.jsx(qn,{ref:i,"aria-label":"Close",color:"tertiary",icon:c.jsx(ix,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};sb.displayName="Modal.Header";const GN=sb,ib=e=>c.jsx("p",{className:"modal-subtitle",children:e.children});ib.displayName="Modal.Subtitle";const XN=ib,ob=b.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:s,size:i="md",viewport:o=!1,scrollable:a=!1,focusId:l,children:u}=e,d=`aria_label_${n}`,f=`aria_desc_${n}`,h=kp(s),p=n2();Zw(s,["Escape"]),b.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",l)){const v=document.getElementById(l);v==null||v.focus()}return()=>{document.body.style.overflow=""}},[l,r]);const m=G("modal fade",{"show d-block":r,"modal-scrollable":a,viewport:o,[`modal-${i}`]:i}),y=G("modal-dialog"),w={ariaLabelId:d,ariaDescriptionId:f,focusId:l},g=rp(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return c.jsx(Tp.Provider,{value:w,children:g((v,x)=>c.jsxs(c.Fragment,{children:[x&&c.jsx(ru.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":d,"aria-describedby":f,className:m,style:v,tabIndex:-1,children:c.jsx("div",{id:`${n}_ref`,ref:S=>{h.current=S,x&&(p.current=S)},className:y,children:c.jsx("div",{className:"modal-content",children:u})})}),x&&c.jsx(ru.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),YN=Object.assign(ob,{Header:GN,Subtitle:XN,Body:WN,Footer:KN});ob.displayName="Modal";const je=YN,JN=({children:e,className:t})=>{const n=G("popover-header",t);return c.jsx("div",{className:n,children:e})},ab=({children:e,className:t})=>{const n=G("popover-body",t);return c.jsx("div",{className:n,children:e})},lb=({children:e,className:t})=>{const n=G("popover-footer p-8",t);return c.jsx("div",{className:n,children:e})},tc=b.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=G("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return rp(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:{duration:0}})((l,u)=>u&&c.jsx(ru.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:l,...s,children:e}))});tc.displayName="Popover";const ub=e=>c.jsx(we.Trigger,{...e,"aria-haspopup":"listbox",role:"combobox"});ub.displayName="SelectTrigger";const ZN=ub,cb=({icon:e,options:t,overflow:n,block:r,variant:s,size:i,disabled:o,placeholderOption:a,onValueChange:l})=>{const[u,d]=b.useState(),{t:f}=re();b.useEffect(()=>{if(u){const p=typeof u=="object"?u.value:u;l==null||l(p)}},[u]);const h=typeof u=="object"?u.label:u;return c.jsxs(we,{overflow:n,block:r,children:[c.jsx(ZN,{icon:e,label:f(h||a),variant:s,size:i,disabled:o}),c.jsx(we.Menu,{role:"listbox",children:t==null?void 0:t.map(p=>{const m=typeof p=="object"?p.value:p,y=typeof p=="object"?p.label:p;return c.jsx(we.Item,{onClick:()=>d(p),children:y},m)})})]})};cb.displayName="Select";const Ip=cb,eP=({children:e,message:t,icon:n=null,placement:r="auto"})=>{const[s,i]=b.useState(null),[o,a]=b.useState(null),[l,u]=b.useState(null),{styles:d,attributes:f}=y8(s,o,{placement:r,modifiers:[{name:"arrow",options:{element:l}}]}),[h,p]=b.useState(!1);return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"d-inline-block position-relative z-2",ref:i,onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},children:e}),h&&c.jsxs("div",{className:G("tooltip d-block show mb-12","bs-tooltip-auto"),ref:a,style:d.popper,...f.popper,children:[c.jsxs("div",{className:"tooltip-inner shadow-hover d-flex gap-8 align-items-center",children:[n&&n,c.jsx("div",{children:t})]}),c.jsx("div",{className:"tooltip-arrow",ref:u,style:d.arrow})]})]})},lu=eP,db=b.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",height:r="md",className:s,...i},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:d}=Zu(),f=G({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","textarea-height-lg":r==="lg","textarea-height-md":r==="md","textarea-height-sm":r==="sm","is-invalid":d==="invalid","is-valid":d==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return c.jsx("textarea",{ref:o,id:a,className:f,placeholder:t,required:l,readOnly:u,...i})});db.displayName="TextArea";const Dp=db;function tP(e,t,n,r,s,i,o,a,l){const u=w=>{w.preventDefault(),s==null||s(e),w.stopPropagation()},d=w=>{(w.code==="Enter"||w.code==="Space")&&(w.preventDefault(),s==null||s(e),w.stopPropagation())},f=()=>{r(!n),n?i==null||i(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:d,handleItemFoldUnfoldClick:w=>{w.preventDefault(),f(),w.stopPropagation()},handleItemFoldUnfoldKeyDown:w=>{(w.code==="Enter"||w.code==="Space")&&(w.preventDefault(),f(),w.stopPropagation())},handleItemFocus:w=>{w.preventDefault(),a==null||a(e)},handleItemBlur:w=>{w.preventDefault(),l==null||l(e)}}}const fb=e=>{const{nodeId:t,label:n,children:r,section:s,selected:i,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:d,selectedNodesIds:f}=e,[h,p]=b.useState(!1),{handleItemClick:m,handleItemKeyDown:y,handleItemFoldUnfoldClick:w,handleItemFoldUnfoldKeyDown:g,handleItemFocus:v,handleItemBlur:x}=tP(t,n,h,p,o,a,l,u,d);b.useEffect(()=>{if(f!=null&&f.length&&(f==null?void 0:f.length)>=1){const j=f[f.length-1];f.some(k=>k===t&&t!==j?(p(!0),k===t):(p(!1),!1))}else p(!1)},[t,f]);const S=s?16:12,C=()=>c.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"aria-expanded":h,children:c.jsxs("div",{children:[c.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[c.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:w,onKeyDown:g,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&c.jsx(_g,{title:"RafterRight",width:S,height:S}),Array.isArray(r)&&h&&c.jsx(Eo,{title:"RafterDown",width:S,height:S}),!Array.isArray(r)&&c.jsx(_g,{title:"RafterRight",width:S,height:S,"aria-hidden":"true",className:"opacity-0"})]}),c.jsxs("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:x,children:[s&&c.jsx(DE,{title:"Folder",width:20,height:20}),c.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&c.jsx("ul",{role:"group",children:r})]})},t);return s?c.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};fb.displayName="TreeItem";const nP=fb,hb=b.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:s,onTreeItemUnfold:i,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,d]=b.useState("default");b.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?d(l[l.length-1]):d("")},[l]);const f=g=>{d(g),r==null||r(g)},h=g=>{s==null||s(g)},p=g=>{i==null||i(g)},m=g=>{o==null||o(g)},y=g=>{a==null||a(g)},w=g=>c.jsx(nP,{nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:l,selected:u===g.id,onItemSelect:f,onItemFold:h,onItemUnfold:p,onItemFocus:m,onItemBlur:y,children:Array.isArray(g.children)?g.children.map(v=>w(v)):null},g.id);return c.jsx("div",{ref:t,id:"treeview",className:"treeview",children:w(n)})});hb.displayName="TreeView";const pb=hb,mb=b.forwardRef(({children:e},t)=>c.jsx("span",{className:"visually-hidden",ref:t,children:e}));mb.displayName="VisuallyHidden";const Mn=mb,gb=({app:e,name:t,isSelected:n=!1,isSelectable:r=!0,onClick:s,onSelect:i})=>c.jsx(vn,{app:e,isSelectable:r,isSelected:n,onClick:s,onSelect:i,children:o=>c.jsxs(vn.Body,{children:[c.jsx(AE,{width:"48",height:"48",className:`color-app-${o}`}),c.jsx(vn.Title,{children:t})]})});gb.displayName="FolderCard";const rP=gb,sP=()=>{const{t:e}=re();return[{value:"bpr.activityType.classroomActivity",label:e("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:e("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:e("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:e("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:e("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:e("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:e("bpr.activityType.courseElement")},{value:"bpr.other",label:e("bpr.other")}]},iP=({control:e,selectedActivities:t,selectActivities:n})=>{const r=sP(),{t:s}=re();return c.jsx("div",{className:"col d-flex",children:c.jsx(Ru,{name:"activityType",control:e,rules:{required:!0},render:({field:{onChange:i}})=>c.jsxs(we,{block:!0,overflow:!0,children:[c.jsx(we.Trigger,{size:"md",label:s("bpr.form.publication.type"),badgeContent:t==null?void 0:t.length}),c.jsx(we.Menu,{children:r.map((o,a)=>c.jsx(we.CheckboxItem,{value:o.value,model:t,onChange:()=>{n(o.value),i(o.value)},children:o.label},a))})]})})})},oP=["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],H1=({name:e,control:t,placeholderOption:n,validate:r})=>c.jsx(Ru,{name:e,control:t,rules:{required:!0,validate:r},render:({field:{onChange:s}})=>c.jsx(Ip,{block:!0,size:"md",onValueChange:s,options:oP,"aria-required":!0,placeholderOption:n})}),aP=()=>{const{t:e}=re();return[{value:"de_DE",label:e("de_DE")},{value:"en_EN",label:e("en_EN")},{value:"ar_DZ",label:e("ar_DZ")},{value:"es_ES",label:e("es_ES")},{value:"fr_FR",label:e("fr_FR")},{value:"it_IT",label:e("it_IT")},{value:"ja_JP",label:e("ja_JP")},{value:"zh_CN",label:e("zh_CN")},{value:"pt_PT",label:e("pt_PT")},{value:"ru_RU",label:e("ru_RU")},{value:"bpr.other",label:e("bpr.other")}]},lP="bpr.form.publication.language",uP=({control:e})=>{const t=aP();return c.jsx("div",{className:"col",children:c.jsx(Ru,{name:"language",control:e,rules:{required:!0},render:({field:{onChange:n}})=>c.jsx(Ip,{block:!0,size:"md",onValueChange:n,options:t,"aria-required":!0,placeholderOption:lP})})})},cP=()=>{const{t:e}=re(),[t]=ai();return c.jsxs(c.Fragment,{children:[c.jsxs("ul",{className:"mb-12",children:[c.jsxs("li",{children:[e("bpr.form.publication.licence.text.1"),c.jsx("img",{className:"ms-8 d-inline-block",src:`${t}/common/image-creative-commons.png`,alt:"licence creative commons"})]}),c.jsx("li",{children:e("bpr.form.publication.licence.text.2")})]}),c.jsx(ur,{type:"info",className:"mb-12",children:e("bpr.form.publication.licence.text.3")}),c.jsx(ur,{type:"warning",children:e("bpr.form.publication.licence.text.4")})]})},dP=()=>{const{t:e}=re();return[{value:"bpr.subjectArea.artActivity",label:e("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:e("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:e("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:e("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:e("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:e("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:e("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:e("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:e("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:e("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:e("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:e("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:e("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:e("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:e("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:e("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:e("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:e("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:e("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:e("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:e("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:e("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:e("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:e("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:e("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:e("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:e("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:e("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:e("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:e("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:e("bpr.subjectArea.technology")},{value:"bpr.other",label:e("bpr.other")}]},fP=({control:e,selectedSubjectAreas:t,selectSubjects:n})=>{const r=dP(),{t:s}=re();return c.jsx("div",{className:"col d-flex",children:c.jsx(Ru,{name:"subjectArea",control:e,rules:{required:!0},render:({field:{onChange:i}})=>c.jsxs(we,{block:!0,overflow:!0,children:[c.jsx(we.Trigger,{size:"md",label:s("bpr.form.publication.discipline"),badgeContent:t==null?void 0:t.length}),c.jsx(we.Menu,{children:r.map((o,a)=>c.jsx(we.CheckboxItem,{value:o.value,model:t,onChange:()=>{n(o.value),i(o.value)},children:o.label},a))})]})})})};function q1({formData:e}){const{t}=re(),n=r=>r.match(/^\s/);return c.jsxs(c.Fragment,{children:[c.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.error.title")}),c.jsx("p",{className:"pt-24 pb-24",children:c.jsx("strong",{children:t("bpr.form.publication.response.error.content")})}),c.jsxs("ul",{children:[n(e.title)&&c.jsx("li",{className:"pt-2 pb-2",children:c.jsx("strong",{children:t("bpr.form.publication.response.empty.title")})}),n(e.description)&&c.jsx("li",{className:"pt-2 pb-2",children:c.jsx("strong",{children:t("bpr.form.publication.response.empty.description")})})]})]})}function hP({result:e}){const{t}=re();return c.jsxs(c.Fragment,{children:[c.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.success.title")}),c.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.1")}),c.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.2")}),e.details.front_url&&c.jsx("p",{className:"pt-24 pb-24",children:c.jsx("a",{className:"button right-magnet",href:e.details.front_url,target:"_blank",rel:"noreferrer",children:t("bpr.form.publication.response.success.button")})})]})}const pP={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"};function mP({onSuccess:e,resource:t}){const{user:n,appCode:r}=_e(),s=at(),[i,o]=b.useState(t.thumbnail||""),{control:a,register:l,watch:u,setValue:d,handleSubmit:f,formState:{errors:h,isSubmitting:p,isDirty:m,isValid:y}}=rx({mode:"onChange"}),[w,g]=b.useState([]),[v,x]=b.useState([]),S=(_,F,T)=>{let $=[...F];const D=$.findIndex(E=>E===_);F.includes(_)?$=F.filter((E,N)=>N!==D):$=[...F,_],T($)};return{control:a,cover:i,formState:{errors:h,isSubmitting:p,isDirty:m,isValid:y},handleDeleteImage:()=>o(""),handlePublish:async _=>{const F=n?n==null?void 0:n.userId:"";try{let T=new Blob;typeof i=="string"?T=await ne.http().get(i,{responseType:"blob"}):i?T=await ne.http().get(URL.createObjectURL(i),{responseType:"blob"}):t.thumbnail&&(T=await ne.http().get(t.thumbnail,{responseType:"blob"}));const $=await ne.http().get(`/userbook/avatar/${F}?thumbnail=48x48`,{responseType:"blob"}),D=await ne.http().get(`/directory/user/${F}/attachment-school`,{responseType:"json"}),E=pP[r],N={activityType:w,age:[_.ageMin,_.ageMax],application:E,cover:T,description:_.description,keyWords:_.keyWords,language:_.language,licence:"CC-BY",resourceId:t.assetId,resourceEntId:t.assetId,subjectArea:v,teacherAvatar:$,title:_.title,userId:F,userStructureName:D.name||(n==null?void 0:n.structureNames[0])},L=await ne.resource(E).publish(N);L.success?s.success(c.jsx(hP,{result:L}),{duration:1e4}):s.error(c.jsx(q1,{formData:_})),e==null||e()}catch(T){console.error(T),s.error(c.jsx(q1,{formData:_}))}},handleSubmit:f,handleUploadImage:_=>o(_),register:l,selectActivities:_=>{S(_,w,g)},selectedActivities:w,selectedSubjectAreas:v,selectSubjects:_=>{S(_,v,x)},setValue:d,watch:u}}function gP({isOpen:e,resource:t,onSuccess:n,onCancel:r}){const{currentApp:s}=_e(),{t:i}=re(),{control:o,cover:a,formState:{isDirty:l,isValid:u,isSubmitting:d},handleDeleteImage:f,handleSubmit:h,handleUploadImage:p,handlePublish:m,register:y,selectActivities:w,selectedActivities:g,selectedSubjectAreas:v,selectSubjects:x}=mP({resource:t,onSuccess:n}),S="bpr.form.publication.age.min",C="bpr.form.publication.age.max";return Wn.createPortal(c.jsxs(je,{isOpen:e,onModalClose:r,id:"libraryModal",size:"lg",children:[c.jsx(je.Header,{onModalClose:r,children:i("bpr.publish")}),c.jsx(je.Subtitle,{children:i("bpr.form.tip")}),c.jsxs(je.Body,{children:[c.jsx(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.heading.general")}),c.jsxs("form",{id:"libraryModalForm",onSubmit:h(m),children:[c.jsxs("div",{className:"d-block d-md-flex mb-24 gap-24",children:[c.jsxs("div",{style:{maxWidth:"160px"},children:[c.jsx("div",{className:"form-label",children:i("bpr.form.publication.cover.title")}),c.jsx(_p,{app:s,src:t.thumbnail,label:i("bpr.form.publication.cover.upload.label"),addButtonLabel:i("bpr.form.publication.cover.upload.add"),deleteButtonLabel:i("bpr.form.publication.cover.upload.remove"),onUploadImage:p,onDeleteImage:f,className:"align-self-center"}),!a&&c.jsx("p",{className:"form-text is-invalid",children:c.jsx("em",{children:i("bpr.form.publication.cover.upload.required.image")})})]}),c.jsxs("div",{className:"flex-fill",children:[c.jsxs(Ue,{id:"title",className:"mb-16",isRequired:!0,children:[c.jsx(Kr,{children:i("bpr.form.publication.title")}),c.jsx(jr,{type:"text",defaultValue:t.name,...y("title",{required:!0}),placeholder:i("bpr.form.publication.title.placeholder"),size:"md","aria-required":!0})]}),c.jsxs(Ue,{id:"description",isRequired:!0,children:[c.jsx(Kr,{children:i("bpr.form.publication.description")}),c.jsx(Dp,{...y("description",{required:!0}),placeholder:i("bpr.form.publication.description.placeholder"),size:"md"})]})]})]}),c.jsx("hr",{}),c.jsx(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.heading.infos")}),c.jsxs("div",{className:"d-flex flex-column flex-md-row gap-16 row mb-24",children:[c.jsx(iP,{control:o,selectedActivities:g,selectActivities:w}),c.jsx(fP,{control:o,selectedSubjectAreas:v,selectSubjects:x}),c.jsx(uP,{control:o})]}),c.jsxs("div",{className:"mb-24",children:[c.jsx("label",{htmlFor:"",className:"form-label",children:i("bpr.form.publication.age")}),c.jsxs("div",{className:"d-flex gap-8",children:[c.jsx("div",{className:"col col-2",children:c.jsx(H1,{control:o,name:"ageMin",placeholderOption:S,validate:(j,k)=>parseInt(j)<=parseInt(k.ageMax)})}),c.jsx("div",{className:"col col-2",children:c.jsx(H1,{control:o,name:"ageMax",placeholderOption:C,validate:(j,k)=>parseInt(j)>=parseInt(k.ageMin)})})]})]}),c.jsx("div",{className:"mb-24",children:c.jsxs(Ue,{id:"keywords",isOptional:!0,children:[c.jsx(Kr,{children:i("bpr.form.publication.keywords")}),c.jsx(jr,{type:"text",...y("keyWords"),size:"md",placeholder:i("bpr.form.publication.keywords.placeholder")})]})}),c.jsx("hr",{}),c.jsx(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.licence.text")}),c.jsx(cP,{})]})]}),c.jsxs(je.Footer,{children:[c.jsx(Fe,{color:"tertiary",onClick:r,type:"button",variant:"ghost",children:i("cancel")}),c.jsx(Fe,{form:"libraryModalForm",type:"submit",color:"primary",variant:"filled",isLoading:d,disabled:!a||d||!l||!u,children:i("bpr.form.submit")})]})]}),document.getElementById("portal"))}const vb=({app:e,resource:t,time:n,isSelected:r=!1,isSelectable:s=!0,onClick:i,onSelect:o})=>{const a=`/userbook/avatar/${t==null?void 0:t.creatorId}`;function l(h){const{rights:p,creatorId:m}=h||{};return p.filter(w=>!w.includes(m)).length>=1}const u=l(t),d=t==null?void 0:t.public,{t:f}=re();return c.jsx(vn,{app:e,isSelected:r,isSelectable:s,onClick:i,onSelect:o,children:h=>c.jsxs(c.Fragment,{children:[c.jsxs(vn.Body,{children:[c.jsx("div",{className:"card-image medium",children:t!=null&&t.thumbnail?c.jsx(li,{alt:"",src:t==null?void 0:t.thumbnail,objectFit:"cover",className:"h-full"}):c.jsx(Er,{app:e,iconFit:"ratio",size:"80",variant:"rounded"})}),c.jsxs("div",{className:"text-truncate",children:[c.jsx(vn.Title,{children:t==null?void 0:t.name}),c.jsx(vn.Text,{children:c.jsx("em",{children:n})})]})]}),c.jsxs(vn.Footer,{children:[c.jsxs("div",{className:`
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
text-truncate`,children:[a?c.jsx(kr,{alt:(t==null?void 0:t.creatorName)||"",size:"xs",src:a,variant:"circle",width:"24",height:"24"}):c.jsx(dp,{}),c.jsx(vn.Text,{children:t==null?void 0:t.creatorName})]}),c.jsxs("div",{className:"d-inline-flex align-items-center gap-8",children:[u&&c.jsx(lu,{message:f("tooltip.shared",{ns:h}),placement:"top",children:c.jsx(s5,{width:16,height:16})}),d&&c.jsx(lu,{message:f("tooltip.public",{ns:h}),placement:"top",children:c.jsx(LE,{width:16,height:16})})]})]})]})})};vb.displayName="ResourceCard";const vP=vb,yP=({watch:e,selectedResource:t})=>{const[n,r]=b.useState(""),[s,i]=b.useState(!!(t!=null&&t.public)||!1),o=b.useId(),a=e("title"),{t:l}=re(),u=at(),d=`${hw({foo:`${a}${o}`})}-${mw(a)}`;b.useEffect(()=>{if(s){let p="";t&&t.slug?p=t.slug:p=d,r(p)}},[s,t,a,o]);function f(p){i(p)}function h(){navigator.clipboard.writeText(`${window.location.origin}${window.location.pathname}/pub/${n}`),u.success(l("explorer.copy.clipboard"))}return{slug:n,uniqueId:o,isPublic:s,resourceName:a,onPublicChange:f,onCopyToClipBoard:h}},xP=({isUpdating:e,selectedResource:t})=>{const[n,r]=b.useState(e&&(t==null?void 0:t.thumbnail)||"");return{thumbnail:n,handleDeleteImage:()=>r(""),handleUploadImage:o=>r(o)}},wP=({appCode:e,isPublic:t,onCopyToClipBoard:n,onPublicChange:r,register:s,slug:i,resourceName:o})=>{const{t:a}=re();return c.jsxs(c.Fragment,{children:[c.jsxs(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:[a("explorer.resource.editModal.heading.access"),e]}),c.jsx(ur,{type:"info",children:a("explorer.resource.editModal.access.alert")}),c.jsxs(Ue,{id:"flexSwitchCheckDefault",className:"form-switch d-flex gap-8 mt-16 mb-8",children:[c.jsx(Ue.Input,{type:"checkbox",role:"switch",...s("enablePublic",{disabled:!t&&!o,onChange:l=>{r(l.target.checked)}}),className:"form-check-input mt-0",size:"md"}),c.jsx(Ue.Label,{className:"form-check-label mb-0",children:a("explorer.resource.editModal.access.flexSwitchCheckDefault.label")})]}),t&&c.jsxs("div",{className:"d-flex flex-wrap align-items-center gap-4",children:[c.jsxs("p",{className:"text-break",children:[window.location.origin,window.location.pathname,"/pub/",i]}),c.jsx(Fe,{color:"primary",disabled:!t,onClick:n,type:"button",leftIcon:c.jsx(EE,{}),variant:"ghost",className:"text-nowrap",children:a("explorer.resource.editModal.access.url.button")})]})]})},yb=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},bP=({isOpen:e,actions:t,onCancel:n,onSuccess:r,...s})=>{var i,o,a,l,u,d;const{appCode:f,currentApp:h}=_e(),{t:p}=re(),{mode:m}=s,y=b.useId(),w=m==="create",g=m==="update",{watch:v,register:x,handleSubmit:S,formState:{isSubmitting:C,isValid:j}}=rx({mode:"onChange",defaultValues:{description:g?(i=s.selectedResource)==null?void 0:i.description:"",enablePublic:g?(o=s.selectedResource)==null?void 0:o.public:!1,title:g?(a=s.selectedResource)==null?void 0:a.name:""}}),{slug:k,uniqueId:O,isPublic:A,resourceName:_,onPublicChange:F,onCopyToClipBoard:T}=yP({watch:v,selectedResource:g?s.selectedResource:void 0}),$=at(),{thumbnail:D,handleDeleteImage:E,handleUploadImage:N}=xP({isUpdating:g}),L=async function(P){var B,z;try{const ee={description:P.description||"",name:P.title,public:P.enablePublic,thumbnail:D},J=`${hw({foo:`${P.title}${O}`})}-${mw(P.title)}`;w?await s.createResource.mutateAsync({...ee,folder:((B=s.currentFolder)==null?void 0:B.id)==="default"?void 0:parseInt(((z=s.currentFolder)==null?void 0:z.id)||""),slug:P.enablePublic?J:"",app:f}):await s.updateResource.mutateAsync({...ee,slug:P.enablePublic?s.selectedResource&&s.selectedResource.slug?s.selectedResource.slug:J:"",entId:s.selectedResource.assetId,trashed:s.selectedResource.trashed}),$.success(c.jsxs(c.Fragment,{children:[c.jsx("strong",{children:p(w?"explorer.resource.created":"explorer.resource.updated")}),c.jsxs("p",{children:[p("title")," : ",P.title]}),c.jsxs("p",{children:[p("description")," : ",P.description]}),f===Ps.BLOG&&c.jsxs("p",{children:["Public:",P.enablePublic?p("explorer.enable.public.yes"):p("explorer.enable.public.no")]})]})),r()}catch(ee){console.error(ee)}};return Wn.createPortal(c.jsxs(je,{id:`${m}-resource`,size:"lg",isOpen:e,onModalClose:n,children:[c.jsx(je.Header,{onModalClose:n,children:p(`explorer.resource.editModal.header.${w?"create":"edit"}`)}),c.jsxs(je.Body,{children:[c.jsx(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:p("explorer.resource.editModal.heading.general")}),c.jsxs("form",{id:y,onSubmit:S(L),children:[c.jsxs("div",{className:"d-block d-md-flex gap-16 mb-24",children:[c.jsx("div",{children:c.jsx(_p,{app:h,src:g&&((l=s.selectedResource)==null?void 0:l.thumbnail)||"",label:p("explorer.imagepicker.label"),addButtonLabel:p("explorer.imagepicker.button.add"),deleteButtonLabel:p("explorer.imagepicker.button.delete"),onUploadImage:N,onDeleteImage:E,className:"align-self-center mt-8"})}),c.jsxs("div",{className:"col",children:[c.jsxs(Ue,{id:"title",className:"mb-16",isRequired:!0,children:[c.jsx(Kr,{children:p("title")}),c.jsx(jr,{type:"text",defaultValue:g?(u=s.selectedResource)==null?void 0:u.name:"",...x("title",{required:!0,pattern:{value:/[^ ]/,message:"invalid title"}}),placeholder:p("explorer.resource.editModal.title.placeholder"),size:"md","aria-required":!0})]}),c.jsxs(Ue,{id:"description",isOptional:!0,children:[c.jsx(Kr,{children:p("description")}),c.jsx(Dp,{defaultValue:g?(d=s.selectedResource)==null?void 0:d.description:"",...x("description"),placeholder:p("explorer.resource.editModal.description.placeholder"),size:"md"})]})]})]}),f===Ps.BLOG&&yb({workflow:"createPublic",actions:t})&&c.jsx(wP,{appCode:f,isPublic:A,slug:k,onCopyToClipBoard:T,onPublicChange:F,register:x,resourceName:_})]})]}),c.jsxs(je.Footer,{children:[c.jsx(Fe,{color:"tertiary",onClick:n,type:"button",variant:"ghost",children:p("explorer.cancel")}),c.jsx(Fe,{form:y,type:"submit",color:"primary",isLoading:C,variant:"filled",disabled:!j||C,children:p(w?"explorer.create":"save")})]})]}),document.getElementById("portal"))},SP=bP;function CP({radioPublicationValue:e,onRadioPublicationChange:t}){const{appCode:n}=_e(),{t:r}=re(n);return c.jsxs(c.Fragment,{children:[c.jsx("hr",{}),c.jsx(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("explorer.publication.steps")}),c.jsx(au,{label:r("explorer.immediat.publication"),id:"publication-now",name:"publication",value:"IMMEDIATE",model:e,checked:e==="IMMEDIATE",onChange:s=>t(s.target.value)}),c.jsx(au,{label:r("explorer.validate.publication"),id:"publication-validate",name:"publication",value:"RESTRAINT",checked:e==="RESTRAINT",model:e,onChange:s=>t(s.target.value)})]})}const EP={searchInputValue:"",searchResults:[],searchAPIResults:[],searchPending:!1,isLoading:!1};function kP(e,t){switch(t.type){case"onChange":return{...e,searchInputValue:t.payload};case"isSearching":return{...e,isLoading:t.payload};case"addResult":return{...e,searchResults:t.payload};case"addApiResult":return{...e,searchAPIResults:t.payload};case"updateSearchResult":return{...e,searchResults:t.payload};case"emptyResult":return{...e,searchResults:t.payload};default:throw new Error("Unhandled action type")}}const rd=[{id:"read",displayName:"read"},{id:"comment",displayName:"comment"}],jP=({resource:e,shareRights:t,shareDispatch:n})=>{const[r,s]=b.useReducer(kP,EP),i=t2(r.searchInputValue,500),{isAdml:o}=o2(),{appCode:a}=_e();b.useEffect(()=>{u(i)},[i]);const l=m=>{const y=m.target.value;s({type:"onChange",payload:y})},u=async m=>{if(s({type:"isSearching",payload:!0}),!o&&m.length>=1||o&&m.length>=3){const y=await ne.share().searchShareSubjects(a,e.assetId,m);s({type:"addApiResult",payload:y});const w=y.filter(g=>!t.rights.find(v=>v.id===g.id)).filter(g=>!(g.type==="user"&&g.id===e.creatorId)).map(g=>({value:g.id,label:g.displayName,icon:g.type==="sharebookmark"?Fh:null}));s({type:"addResult",payload:w})}else s({type:"emptyResult",payload:[]}),Promise.resolve();s({type:"isSearching",payload:!1})};return{state:r,showSearchAdmlHint:()=>o&&r.searchInputValue.length<3,showSearchLoading:()=>r.searchPending&&r.searchInputValue.length>0,showSearchNoResults:()=>!r.searchPending&&!o&&i.length>0&&r.searchResults.length===0||!r.searchPending&&o&&i.length>3&&r.searchResults.length===0,handleSearchInputChange:l,handleSearchResultsChange:async m=>{const y=r.searchAPIResults.find(w=>w.id===m[0]);if(y){let w=[];if(y.type==="sharebookmark"){const g=await ne.directory().getBookMarkById(y.id);w.push({...g,type:"sharebookmark",avatarUrl:"",directoryUrl:"",actions:rd}),g==null||g.users.filter(v=>!t.rights.find(x=>x.id===v.id)).forEach(v=>{w.push({...v,type:"user",avatarUrl:"",directoryUrl:"",actions:rd,isBookmarkMember:!0})}),g.groups.filter(v=>!t.rights.find(x=>x.id===v.id)).forEach(v=>{w.push({...v,type:"group",avatarUrl:"",directoryUrl:"",actions:rd,isBookmarkMember:!0})})}else w=[{...y,actions:[{id:"read",displayName:"read"},{id:"comment",displayName:"comment"}]}];n({type:"updateShareRights",payload:{...t,rights:[...t.rights,...w]}}),s({type:"updateSearchResult",payload:r.searchResults.filter(g=>g.value!==m[0])})}}}},RP={isSharing:!1,shareRights:{rights:[],visibleBookmarks:[],visibleGroups:[],visibleUsers:[]},shareRightActions:[]};function OP(e,t){switch(t.type){case"init":return{...e,...t.payload};case"deleteRow":return{...e,shareRights:t.payload};case"updateShareRights":return{...e,shareRights:t.payload};case"toggleRight":return{...e,shareRights:t.payload};case"isSharing":return{...e,isSharing:!0};default:throw new Error("Unhandled action type")}}function NP({onSuccess:e,resource:t,updateResource:n,shareResource:r}){const{appCode:s}=_e(),{user:i,avatar:o}=ra(),[a,l]=b.useReducer(OP,RP);return b.useEffect(()=>{(async()=>{const p=await ne.share().getActionsForApp(s),m=await ne.share().getRightsForResource(s,t.assetId);l({type:"init",payload:{shareRightActions:p,shareRights:m}})})()},[]),{state:a,dispatch:l,currentIsAuthor:()=>!!(t&&t.creatorId===(i==null?void 0:i.userId)),myAvatar:o,handleDeleteRow:p=>{l({type:"deleteRow",payload:{...a.shareRights,rights:a.shareRights.rights.filter(m=>{var y,w;return m.id!==p.id&&!((y=p.users)!=null&&y.find(g=>g.id===m.id))&&!((w=p.groups)!=null&&w.find(g=>g.id===m.id))})}})},handleShare:async p=>{l({type:"isSharing",payload:!0});try{const m=t.rights.filter(w=>i&&w.includes(`user:${i.userId}`)).map(w=>w.split(":")[2]).filter(w=>!!w),y=[...a.shareRights.rights];if(m.length>0){const w=m.map(g=>({displayName:g,id:g}));y.push({actions:w,avatarUrl:"",directoryUrl:"",displayName:i.username,id:i.userId,type:"user"})}s==="blog"?await n.mutateAsync(p):await n.mutateAsync({entId:t.assetId||"",trashed:t.trashed||!1,name:t.name||"",thumbnail:t.thumbnail||"",description:t.description||"",public:t.public||!1,slug:t.slug||""}),await r.mutateAsync({resourceId:t.assetId,rights:y}),e==null||e()}catch(m){console.error("Failed to save share",m)}finally{l({type:"isSharing",payload:!1})}},toggleRight:(p,m)=>{var y,w;const{rights:g,...v}=a.shareRights,x=[...g],S=x.findIndex(k=>k.id===p.id),C=a.shareRightActions.filter(k=>k.id===m)[0];if(x[S].actions.findIndex(k=>k.id===m)>-1){let k=x[S].actions.filter(A=>A.id!==m);const O=a.shareRightActions.filter(A=>{var _;return(_=A.requires)==null?void 0:_.includes(m)});k=k.filter(A=>!O.find(_=>_.id===A.id)),x[S]={...x[S],actions:k}}else{const k=a.shareRightActions.filter(O=>{var A;return((A=C.requires)==null?void 0:A.includes(O.id))&&!x[S].actions.find(_=>_.id===O.id)});x[S]={...x[S],actions:[...x[S].actions,C,...k]}}p.type==="sharebookmark"&&((y=x[S].users)==null||y.forEach(k=>{const O=x.findIndex(A=>A.id===k.id);x[O]={...x[O],actions:x[S].actions}}),(w=x[S].groups)==null||w.forEach(k=>{const O=x.findIndex(A=>A.id===k.id);x[O]={...x[O],actions:x[S].actions}})),l({type:"toggleRight",payload:{rights:x,...v}})}}}function PP({resource:e}){const{assetId:t,description:n,thumbnail:r,name:s,public:i,trashed:o,slug:a,"publish-type":l}=e||{"publish-type":"",assetId:"",description:"",name:"",public:!1,slug:"",thumbnail:"",trashed:!1},[u,d]=b.useState(l||"RESTRAINT"),[f,h]=b.useState({description:n||"",entId:t,name:s,public:!!i,slug:a||"",thumbnail:r,trashed:o,"publish-type":l});return b.useEffect(()=>{u&&h(m=>({...m,"publish-type":u}))},[u]),{radioPublicationValue:u,shareBlogPayload:f,handleRadioPublicationChange:async m=>{d(m)}}}const AP=({shareRights:e,shareDispatch:t})=>{const n=at(),{t:r}=re(),s=b.useRef(null),[i,o]=b.useState({name:"",id:b.useId()}),[a,l]=Rp(!1),[u,d]=b.useState(!1),f=()=>{l()},h=()=>{o(y=>{var w;return{...y,name:((w=s.current)==null?void 0:w.value)||""}})},p=async y=>{try{const w=await ne.directory().saveBookmarks(y,{users:e.rights.filter(g=>g.type==="user").map(g=>g.id),groups:e.rights.filter(g=>g.type==="group").map(g=>g.id),bookmarks:e.rights.filter(g=>g.type==="sharebookmark").map(g=>g.id)});n.success(r("explorer.bookmarked.status.saved")),t({type:"updateShareRights",payload:{...e,visibleBookmarks:[...e.visibleBookmarks,{displayName:y,id:w.id}]}}),o(g=>({...g,bookmarkId:g.id+new Date().getTime().toString()})),d(!1)}catch(w){console.error("Failed to save bookmark",w),n.error(r("explorer.bookmarked.status.error"))}};return{refBookmark:s,showBookmark:a,showBookmarkInput:u,bookmark:i,handleBookmarkChange:h,setBookmark:o,handleOnSave:()=>{var y;const w=((y=s.current)==null?void 0:y.value)||"";p(w)},toggleBookmark:f,toggleBookmarkInput:d}},_P=({bookmark:e,refBookmark:t,onBookmarkChange:n,onSave:r})=>{const{t:s}=re();return c.jsx("div",{className:"mt-16",children:c.jsxs(Ue,{id:"bookmarkName",className:"d-flex flex-wrap align-items-center gap-16",children:[c.jsx("div",{className:"flex-fill",children:c.jsx(Ue.Input,{ref:t,onChange:n,placeholder:s("explorer.modal.share.sharebookmark.placeholder"),size:"sm",type:"text"},e.id)}),c.jsx(Fe,{type:"button",color:"primary",variant:"ghost",disabled:e.name.length===0,leftIcon:c.jsx(JE,{}),onClick:r,className:"text-nowrap",children:s("explorer.modal.share.sharebookmark.save")})]})})},TP=(e,t)=>e.actions.filter(n=>t.id===n.id).length>0,IP=(e,t)=>e.isBookmarkMember&&t||!e.isBookmarkMember,DP=({shareRights:e,showBookmark:t,toggleBookmark:n,shareRightActions:r,toggleRight:s,onDeleteRow:i})=>{const{t:o}=re();return e==null?void 0:e.rights.map(a=>IP(a,t)&&c.jsxs("tr",{className:a.isBookmarkMember?"bg-light":"",children:[c.jsxs("td",{children:[a.type!=="sharebookmark"&&c.jsx(kr,{alt:o("explorer.modal.share.avatar.shared.alt"),size:"xs",src:a.avatarUrl,variant:"circle"}),a.type==="sharebookmark"&&c.jsx(Fh,{})]}),c.jsx("td",{children:c.jsxs("div",{className:"d-flex",children:[a.type==="sharebookmark"&&c.jsx(Fe,{color:"tertiary",rightIcon:c.jsx(Eo,{title:"Show",className:"w-16 min-w-0",style:{transition:"rotate 0.2s ease-out",rotate:t?"-180deg":"0deg"}}),type:"button",variant:"ghost",className:"fw-normal ps-0",onClick:n,children:a.displayName}),a.type!=="sharebookmark"&&a.displayName]})}),r.map(l=>c.jsx("td",{style:{width:"80px"},className:"text-center text-white",children:c.jsx(Ju,{checked:TP(a,l),onChange:()=>s(a,l.id)})},l.displayName)),c.jsx("td",{children:!a.isBookmarkMember&&c.jsx(qn,{"aria-label":"Delete",color:"tertiary",icon:c.jsx(ix,{}),type:"button",variant:"ghost",title:"Delete",onClick:()=>i(a)})})]},a.id))};function MP({isOpen:e,resource:t,updateResource:n,shareResource:r,onSuccess:s,onCancel:i}){const{appCode:o}=_e(),{radioPublicationValue:a,shareBlogPayload:l,handleRadioPublicationChange:u}=PP({resource:t}),{state:{isSharing:d,shareRights:f,shareRightActions:h},dispatch:p,myAvatar:m,currentIsAuthor:y,handleShare:w,toggleRight:g,handleDeleteRow:v}=NP({resource:t,updateResource:n,shareResource:r,onSuccess:s}),{state:{searchResults:x,searchInputValue:S},showSearchAdmlHint:C,showSearchLoading:j,showSearchNoResults:k,handleSearchInputChange:O,handleSearchResultsChange:A}=jP({resource:t,shareRights:f,shareDispatch:p}),{refBookmark:_,showBookmark:F,handleBookmarkChange:T,toggleBookmark:$,bookmark:D,handleOnSave:E,showBookmarkInput:N,toggleBookmarkInput:L}=AP({shareRights:f,shareDispatch:p}),{t:P}=re(),B=C()?P("explorer.search.adml.hint"):P("explorer.modal.share.search.placeholder");return Wn.createPortal(c.jsxs(je,{id:"share_modal",size:"lg",isOpen:e,onModalClose:i,children:[c.jsx(je.Header,{onModalClose:i,children:P("share.title")}),c.jsxs(je.Body,{children:[c.jsx(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:P("explorer.modal.share.usersWithAccess")}),c.jsx("div",{className:"table-responsive",children:c.jsxs("table",{className:"table border align-middle mb-0",children:[c.jsx("thead",{className:"bg-secondary",children:c.jsxs("tr",{children:[c.jsx("th",{scope:"col",className:"w-32",children:c.jsx(Mn,{children:P("explorer.modal.share.avatar.shared.alt")})}),c.jsx("th",{scope:"col",children:c.jsx(Mn,{children:P("explorer.modal.share.search.placeholder")})}),h.map(z=>c.jsx("th",{scope:"col",className:"text-center text-white",children:P(z.displayName)},z.displayName)),c.jsx("th",{scope:"col",children:c.jsx(Mn,{children:P("close")})})]})}),c.jsxs("tbody",{children:[y()&&c.jsxs("tr",{children:[c.jsx("th",{scope:"row",children:c.jsx(kr,{alt:P("explorer.modal.share.avatar.me.alt"),size:"xs",src:m,variant:"circle"})}),c.jsx("td",{children:P("share.me")}),h.map(z=>c.jsx("td",{style:{width:"80px"},className:"text-center text-white",children:c.jsx(Ju,{checked:!0,disabled:!0})},z.displayName)),c.jsx("td",{})]}),c.jsx(DP,{showBookmark:F,shareRightActions:h,shareRights:f,onDeleteRow:v,toggleRight:g,toggleBookmark:$})]})]})}),c.jsxs("div",{className:"mt-16",children:[c.jsx(Fe,{color:"tertiary",leftIcon:c.jsx(Fh,{}),rightIcon:c.jsx(Eo,{title:"Show",className:"w-16 min-w-0",style:{transition:"rotate 0.2s ease-out",rotate:N?"-180deg":"0deg"}}),type:"button",variant:"ghost",className:"fw-normal",onClick:()=>L(!N),children:P("share.save.sharebookmark")}),N&&c.jsx(_P,{refBookmark:_,bookmark:D,onBookmarkChange:T,onSave:E})]}),c.jsx("hr",{}),c.jsxs(Qt,{headingStyle:"h4",level:"h3",className:"mb-16 d-flex align-items-center",children:[c.jsx("div",{className:"me-8",children:P("explorer.modal.share.search")}),c.jsx(lu,{message:"Vos favoris de partage s’affichent en priorité dans votre liste lorsque vous recherchez un groupe ou une personne, vous pouvez les retrouver dans l’annuaire.",placement:"top",children:c.jsx(ax,{className:"c-pointer",height:"18"})})]}),c.jsx("div",{className:"row",children:c.jsx("div",{className:"col-10",children:c.jsx(G2,{value:S,placeholder:B,isLoading:j(),noResult:k(),options:x,onSearchInputChange:O,onSearchResultsChange:A})})}),o==="blog"&&c.jsx(CP,{radioPublicationValue:a,onRadioPublicationChange:u})]}),c.jsxs(je.Footer,{children:[c.jsx(Fe,{type:"button",color:"tertiary",variant:"ghost",onClick:i,children:P("explorer.cancel")}),c.jsx(Fe,{type:"button",color:"primary",variant:"filled",isLoading:d,onClick:()=>w(l),disabled:d,children:P("share")})]})]}),document.getElementById("portal"))}function sd({children:e}){return c.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function id({children:e,className:t,...n}){const r=G("navbar",t);return c.jsx("nav",{className:r,...n,children:e})}function Q1({children:e,className:t,...n}){const r=G("navbar-nav",t);return c.jsx("ul",{className:r,...n,children:e})}const Pe=b.forwardRef(({children:e,className:t,...n},r)=>{const s=G("nav-item",t);return c.jsx("li",{ref:r,className:s,...n,children:e})});Pe.displayName="NavItem";function Pi({link:e,className:t,children:n,translate:r,...s}){const i=G("nav-link",t);return c.jsxs("a",{href:e,className:i,...s,children:[n,r&&c.jsx(Mn,{children:c.jsx("span",{className:"nav-text",children:r})})]})}const LP=()=>{const{t:e}=re();return c.jsx("div",{className:"widget-footer",children:c.jsx("div",{className:"widget-footer-action",children:c.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},FP=({bookmarkedApps:e})=>{const{t}=re();return c.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&c.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>c.jsx("a",{href:n.address,className:"bookmarked-app",children:c.jsx(Er,{app:n,size:"32"})},r))]})};function W1({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=re(),o=()=>{t(!1)};return e?Wn.createPortal(c.jsxs(je,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"lg",children:[c.jsx(je.Header,{onModalClose:o,children:i("navbar.help")}),c.jsx(je.Subtitle,{children:s?i("help.notfound.title"):n}),c.jsx(je.Body,{className:s?"d-flex":null,children:s?i("help.notfound.text"):r})]}),document.getElementById("portal")):null}function $P(){var e;const{appCode:t}=_e(),{theme:n}=Xu(),[r,s]=b.useState(""),[i,o]=b.useState(!0),[a,l]=b.useState(!1),[u,d]=b.useState(!1),f=n!=null&&n.is1d?"/help-1d":"/help-2d";b.useEffect(()=>{(async()=>{let w="";w=f+"/application/"+t+"/",!t&&window.location.pathname!=="/adapter"?w=f+"/application/portal/":window.location.pathname==="/adapter"?w=f+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?w=f+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(w=f+"/application/userbook/");try{const g=await fetch(w),v=await g.text();if(g.status===404){d(!0);return}s(v),d(!1)}catch(g){d(!0),console.error(g)}})()},[t,f]);const p=Ir(r,{replace:w=>{const g=w;if(g.attribs&&g.attribs.id==="TOC")return c.jsxs("nav",{id:"TOC",children:[c.jsx(Fe,{onClick:()=>{o(!i)},children:c.jsx(bE,{})}),Ma(g.children,{replace:v=>{const x=v;if(x.attribs&&x.name==="ul")return c.jsx("ul",{id:"TOC-list",style:{display:i?"block":"none"},children:Ma(x.children,{replace:S=>{const C=S;if(C.attribs&&C.name==="a")return c.jsx("a",{...td(C.attribs),children:c.jsx("span",{onClick:()=>{o(!1)},children:Ma(C.children)})})}})})}})]});if(g.attribs&&g.attribs.class==="section level2"){const v=td(w.attribs);return c.jsx("div",{...v,className:"section level2",style:{display:g.attribs.id!=="présentation"?"none":"block"},children:Ma(g.children,{replace:x=>{const S=x;if(S.attribs&&S.name==="img"){const C=x.attribs.src;return c.jsx("img",{...td(S.attribs),src:`${f}/${C}`,alt:""})}}})})}}}),m=(e=p==null?void 0:p.props)==null?void 0:e.children.find(w=>w.type==="body").props.children,y=m==null?void 0:m.find(w=>w.type==="p").props.children;return{html:r,visibility:i,isModalOpen:a,setIsModalOpen:l,parsedContent:m,parsedHeadline:y,error:u}}const xb=()=>{const[e,t]=jp(),n=b.useRef(null),r=b.useId(),{t:s}=re();function i(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return c.jsxs(Pe,{id:r,ref:e,className:"position-relative","aria-haspopup":"true","aria-expanded":t,children:[c.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[c.jsx(M8,{className:"icon search"}),c.jsx("span",{className:"nav-text",children:s("navbar.search")})]}),c.jsx(tc,{id:r,isVisible:t,className:"d-none d-md-flex",children:c.jsxs(Ue,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[c.jsx(Ue.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),c.jsx(Np,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};xb.displayName="SearchEngine";const BP=xb,wb=({is1d:e=!1,src:t=""})=>{const{t:n}=re(),{messages:r,msgLink:s,zimbraWorkflow:i}=Yw(),{user:o,avatar:a}=ra(),{isModalOpen:l,setIsModalOpen:u,parsedContent:d,parsedHeadline:f,error:h}=$P(),p=G("header",{"no-2d":e,"no-1d":!e}),{title:m,bookmarkedApps:y,appsRef:w,isAppsHovered:g,popoverAppsId:v,userAvatar:x,userName:S,welcomeUser:C,communityWorkflow:j,conversationWorflow:k,searchWorkflow:O,isCollapsed:A,toggleCollapsedNav:_,handleLogout:F}=i2({user:o,avatar:a}),T=r>0;return c.jsx("header",{className:p,children:e?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"container-fluid",children:c.jsxs(id,{children:[c.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:m}),c.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[c.jsx(kr,{alt:S,size:"sm",src:x,variant:"circle",width:"32",height:"32"}),c.jsx("span",{className:"navbar-text",children:C})]}),c.jsxs(Q1,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[k&&c.jsx(Pe,{children:c.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[c.jsx(T8,{className:"icon notification"}),T&&c.jsx(sd,{children:r}),c.jsx(Mn,{children:n("navbar.messages")})]})}),c.jsx(Pe,{children:c.jsx(Pi,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:c.jsx(dp,{className:"icon user"})})}),c.jsxs(Pe,{children:[c.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[c.jsx(A8,{className:"icon help"}),c.jsx(Mn,{children:n("navbar.help")})]}),c.jsx(W1,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:d,parsedHeadline:f,error:h})]}),c.jsx(Pe,{children:c.jsxs("button",{className:"nav-link",onClick:F,children:[c.jsx(b1,{className:"icon logout"}),c.jsx(Mn,{children:n("navbar.disconnect")})]})}),c.jsx(Pe,{className:"d-md-none",children:c.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!A,"aria-label":n("navbar.secondary.navigation"),onClick:_,children:c.jsx(Eo,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),c.jsx(id,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:c.jsx("div",{className:"container-fluid",children:c.jsxs("div",{className:`collapse navbar-collapse ${A?"":"show"}`,id:"navbarCollapsed",children:[c.jsx(_f,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),c.jsxs(Q1,{className:"gap-8",children:[c.jsx(Pe,{children:c.jsxs("a",{href:"/timeline/timeline",className:"button",children:[c.jsx(N8,{color:"#fff",className:"d-md-none"}),c.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),c.jsx(Pe,{children:c.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[c.jsx(F8,{color:"#fff",className:"d-md-none"}),c.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),c.jsx(Pe,{children:c.jsxs("a",{href:"/welcome",className:"button",children:[c.jsx(S1,{color:"#fff",className:"d-md-none"}),c.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):c.jsx(id,{className:"navbar-expand-md",children:c.jsxs("div",{className:"container-fluid",children:[c.jsx(_f,{src:`${t}/img/illustrations/logo.png`}),c.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:m}),c.jsxs("ul",{className:"navbar-nav",children:[c.jsx(Pe,{children:c.jsx(Pi,{link:"/timeline/timeline",translate:n("navbar.home"),children:c.jsx(C8,{color:"#fff"})})}),c.jsxs(Pe,{className:"position-relative",ref:w,id:v,"aria-haspopup":"true","aria-expanded":g,children:[c.jsx(Pi,{link:"/welcome",translate:n("navbar.applications"),children:c.jsx(S1,{color:"#fff"})}),c.jsxs(tc,{className:"top-100 widget",id:v,isVisible:g,children:[c.jsx(ab,{children:c.jsx(FP,{bookmarkedApps:y})}),c.jsx(lb,{className:"widget-footer border-top border-ghost",children:c.jsx(LP,{})})]})]}),k&&c.jsx(Pe,{children:c.jsxs(Pi,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[c.jsx(C1,{color:"#fff"}),T&&c.jsx(sd,{children:r})]})}),i&&c.jsx(Pe,{children:c.jsxs(Pi,{className:"position-relative",link:s,translate:n("conversation"),children:[c.jsx(C1,{color:"#fff"}),T&&c.jsx(sd,{children:r})]})}),c.jsxs(Pe,{children:[c.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[c.jsx(j8,{color:"#fff"}),c.jsx(Mn,{children:n("support")})]}),c.jsx(W1,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:d,parsedHeadline:f,error:h})]}),c.jsx(Pe,{children:c.jsxs("div",{className:"dropdown",children:[c.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!A,"aria-label":n("navbar.open.menu"),onClick:_,children:c.jsx(Eo,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),c.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${A?"":"show"}`,id:"dropdown-navbar",children:[j&&c.jsx(Pe,{children:c.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[c.jsx(w8,{className:"icon community"}),c.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),O?c.jsx(BP,{}):null,c.jsx(Pe,{children:c.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[c.jsx(kr,{alt:S,size:"sm",src:x,variant:"circle",className:"bg-white",width:"32",height:"32"}),c.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),c.jsx(Pe,{children:c.jsx("hr",{className:"dropdown-divider"})}),c.jsx(Pe,{children:c.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[c.jsx(b1,{className:"icon logout"}),c.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};wb.displayName="Header";const zP=wb;function bb({children:e,className:t,...n}){const r=G("container-fluid",t);return c.jsx("main",{className:r,...n,children:e})}bb.displayName="Main";const Sb=({children:e,...t})=>{const{theme:n}=Xu();return c.jsxs(c.Fragment,{children:[c.jsx(zP,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),c.jsx(bb,{className:G("d-flex flex-column bg-white",{"rounded-4 border":n==null?void 0:n.is1d,"mt-24":n==null?void 0:n.is1d}),...t,children:e}),c.jsx($k,{toastOptions:{position:"top-right"}})]})};Sb.displayName="Layout";const Cb=Sb,VP=({children:e})=>c.jsx("div",{className:"widget-footer",children:c.jsx("div",{className:"widget-footer-action",children:c.jsx("a",{href:"/welcome",className:"link",children:e})})}),UP=({children:e})=>c.jsxs("div",{className:"widget-header",children:[c.jsx("div",{className:"subtitle",children:e}),c.jsx("div",{className:"widget-options",children:c.jsx("div",{className:"widget-handle",children:c.jsx("i",{className:"fas fa-grip-vertical"})})})]}),HP=({children:e})=>c.jsx("div",{className:"widget-body p-12 d-flex flex-wrap",children:e});function sa({children:e}){return c.jsx("div",{className:"widget",children:e})}sa.Header=UP;sa.Body=HP;sa.Footer=VP;sa.displayName="Widget";const Eb=({data:e})=>e.length>0?e.slice(0,6).map((t,n)=>c.jsx("a",{href:t.address,className:"bookmarked-app",children:c.jsx(Er,{app:t,size:"32"})},n)):c.jsx("div",{className:"text-dark mx-auto",children:c.jsx("a",{href:"/welcome",children:"Sélectionner vos applications favorites"})});Eb.displayName="BookmarkedApps";const qP=Eb,Mp=Object.freeze(Object.defineProperty({__proto__:null,ActionBar:Uw,Alert:ur,AppHeader:Qw,AppIcon:Er,Avatar:kr,BookmarkedApps:qP,Breadcrumb:w2,Button:Fe,Card:vn,Checkbox:Ju,Column:Ap,Combobox:G2,Dropdown:we,EmptyScreen:qN,FolderCard:rP,FormControl:Ue,FormText:D2,Grid:zs,Heading:Qt,IconButton:qn,Image:li,ImagePicker:_p,Input:jr,Label:Kr,Layout:Cb,Library:QN,Loading:Op,LoadingScreen:et,Logo:_f,Modal:je,OdeClientContext:Cp,OdeClientProvider:Kw,Popover:tc,PopoverBody:ab,PopoverFooter:lb,PopoverHeader:JN,PublishModal:gP,Radio:au,ResourceCard:vP,ResourceModal:SP,SearchButton:Np,Select:Ip,ShareModal:MP,TextArea:Dp,ThemeContext:Ep,ThemeProvider:Gw,Tooltip:lu,TreeView:pb,VisuallyHidden:Mn,Widget:sa,isActionAvailable:yb,useBookmark:Xw,useClickOutside:kp,useConf:Sp,useConversation:Yw,useDebounce:t2,useDropdown:W2,useDropzone:s2,useHasWorkflow:Bs,useHeader:i2,useHover:jp,useImage:Jw,useIsAdml:o2,useKeyPress:Zw,useOdeClient:_e,useOdeIcons:Yu,useOdeTheme:Xu,usePaths:ai,useScrollToTop:r2,useSession:Ww,useTitle:e2,useToast:at,useToggle:Rp,useTrapFocus:n2,useUser:ra,useXitiTrackPageLoad:a2},Symbol.toStringTag,{value:"Module"})),QP=function(){return null};var kb,K1=Wn;kb=K1.createRoot,K1.hydrateRoot;const G1=e=>{let t;const n=new Set,r=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??typeof d!="object"?d:Object.assign({},t,d),n.forEach(h=>h(t,f))}},s=()=>t,a={setState:r,getState:s,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,s,a),a},WP=e=>e?G1(e):G1;var jb={exports:{}},Rb={};/**
|
|
219
|
+
`)},domwindow(){return r("domwindow")},bigint(s){return r("bigint:"+s.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const N2="[native code] }",b8=N2.length;function b0(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-b8)===N2}class Jr{constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||S8).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new Jr([...this.words])}}const S8={stringify(e){const t=[];for(let n=0;n<e.sigBytes;n++){const r=e.words[n>>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(r&15).toString(16))}return t.join("")}},E8={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let r=0;r<e.sigBytes;r+=3){const s=e.words[r>>>2]>>>24-r%4*8&255,i=e.words[r+1>>>2]>>>24-(r+1)%4*8&255,o=e.words[r+2>>>2]>>>24-(r+2)%4*8&255,l=s<<16|i<<8|o;for(let a=0;a<4&&r*8+a*6<e.sigBytes*8;a++)n.push(t.charAt(l>>>6*(3-a)&63))}return n.join("")}},C8={parse(e){const t=e.length,n=[];for(let r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new Jr(n,t)}},k8={parse(e){return C8.parse(unescape(encodeURIComponent(e)))}};class T8{constructor(){this._data=new Jr,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new Jr,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=k8.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,r=this._data.sigBytes/(this.blockSize*4);t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const s=r*this.blockSize,i=Math.min(s*4,this._data.sigBytes);if(s){for(let o=0;o<s;o+=this.blockSize)this._doProcessBlock(this._data.words,o);n=this._data.words.splice(0,s),this._data.sigBytes-=i}return new Jr(n,i)}}class j8 extends T8{update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t)}}const S0=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],P8=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],fs=[];class O8 extends j8{constructor(){super(...arguments),this._hash=new Jr([...S0])}reset(){super.reset(),this._hash=new Jr([...S0])}_doProcessBlock(t,n){const r=this._hash.words;let s=r[0],i=r[1],o=r[2],l=r[3],a=r[4],u=r[5],c=r[6],f=r[7];for(let p=0;p<64;p++){if(p<16)fs[p]=t[n+p]|0;else{const v=fs[p-15],b=(v<<25|v>>>7)^(v<<14|v>>>18)^v>>>3,E=fs[p-2],T=(E<<15|E>>>17)^(E<<13|E>>>19)^E>>>10;fs[p]=b+fs[p-7]+T+fs[p-16]}const h=a&u^~a&c,y=s&i^s&o^i&o,w=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),x=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),g=f+x+h+P8[p]+fs[p],m=w+y;f=c,c=u,u=a,a=l+g|0,l=o,o=i,i=s,s=g+m|0}r[0]=r[0]+s|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+l|0,r[4]=r[4]+a|0,r[5]=r[5]+u|0,r[6]=r[6]+c|0,r[7]=r[7]+f|0}finalize(t){super.finalize(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function R8(e){return new O8().finalize(e).toString(E8)}function A2(e,t={}){const n=typeof e=="string"?e:w8(e,t);return R8(n).slice(0,10)}var I2={};Object.defineProperty(I2,"__esModule",{value:!0});const N8=e=>{const t="ÀÁÂÃÄÅĄĀàáâãäåąāÒÓÔÕÕÖØòóôõöøÈÉÊËĘĒèéêëðęēÇĆČçćčÐÌÍÎÏĪìíîïīÙÚÛÜŪùúûüūÑŅñņŠŚšśŸÿýŽŹŻžźżŁĻłļŃŅńņàáãảạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệđùúủũụưừứửữựòóỏõọôồốổỗộơờớởỡợìíỉĩịäëïîüûñçýỳỹỵỷğışĞİŞĢģĶķ",n="AAAAAAAAaaaaaaaaOOOOOOOooooooEEEEEEeeeeeeeCCCcccDIIIIIiiiiiUUUUUuuuuuNNnnSSssYyyZZZzzzLLllNNnnaaaaaaaaaaaaaaaaaeeeeeeeeeeeduuuuuuuuuuuoooooooooooooooooiiiiiaeiiuuncyyyyygisGISGgKk",r=t.split("").join("|"),s=new RegExp(`(${r})`,"g");function i(o){return n[t.indexOf(o)]||""}return e.replace(s,i)},A8=e=>e.split("").map(t=>`\\${t}`).join(""),E0=(e,t,n=!1)=>{const r=N8(e).trim().toLowerCase(),s=A8(t);return n?r.replace(/\s+/g,t):r.replace(new RegExp(`[^a-z0-9${s}]+`,"g"),t).replace(new RegExp(`${s}+`,"g"),t).replace(new RegExp(`^${s}`,"g"),"").replace(new RegExp(`${s}$`,"g"),"")},Vo=(e,t={delimiter:"-",prefix:""})=>{if(t.delimiter||(t.delimiter="-"),t.prefix||(t.prefix=""),!e||typeof e=="boolean")return"";const{delimiter:n,prefix:r}=t;if(typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number"){const s=E0(r,n,!0),i=E0(String(e),n);return s?`${s}${n}${i}`:i}return"children"in e?Vo(e.children):"type"in e?Vo(e.props.children,t):Symbol.iterator in e?Vo(Array.from(e).map(s=>Vo(s,{delimiter:n})).join(n),t):""};var _2=I2.default=Vo,rg={},sg={};(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})(sg);var oe={},us=lt&<.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),la=lt&<.__assign||function(){return la=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},la.apply(this,arguments)};Object.defineProperty(oe,"__esModule",{value:!0});oe.cloneNode=oe.hasChildren=oe.isDocument=oe.isDirective=oe.isComment=oe.isText=oe.isCDATA=oe.isTag=oe.Element=oe.Document=oe.CDATA=oe.NodeWithChildren=oe.ProcessingInstruction=oe.Comment=oe.Text=oe.DataNode=oe.Node=void 0;var jt=sg,ig=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),og(this,t)},e}();oe.Node=ig;var pd=function(e){us(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}(ig);oe.DataNode=pd;var M2=function(e){us(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=jt.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(pd);oe.Text=M2;var L2=function(e){us(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=jt.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(pd);oe.Comment=L2;var D2=function(e){us(t,e);function t(n,r){var s=e.call(this,r)||this;return s.name=n,s.type=jt.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(pd);oe.ProcessingInstruction=D2;var hd=function(e){us(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}(ig);oe.NodeWithChildren=hd;var F2=function(e){us(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=jt.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(hd);oe.CDATA=F2;var $2=function(e){us(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=jt.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(hd);oe.Document=$2;var z2=function(e){us(t,e);function t(n,r,s,i){s===void 0&&(s=[]),i===void 0&&(i=n==="script"?jt.ElementType.Script:n==="style"?jt.ElementType.Style:jt.ElementType.Tag);var o=e.call(this,s)||this;return o.name=n,o.attribs=r,o.type=i,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var s,i;return{name:r,value:n.attribs[r],namespace:(s=n["x-attribsNamespace"])===null||s===void 0?void 0:s[r],prefix:(i=n["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),t}(hd);oe.Element=z2;function B2(e){return(0,jt.isTag)(e)}oe.isTag=B2;function V2(e){return e.type===jt.ElementType.CDATA}oe.isCDATA=V2;function U2(e){return e.type===jt.ElementType.Text}oe.isText=U2;function H2(e){return e.type===jt.ElementType.Comment}oe.isComment=H2;function q2(e){return e.type===jt.ElementType.Directive}oe.isDirective=q2;function W2(e){return e.type===jt.ElementType.Root}oe.isDocument=W2;function I8(e){return Object.prototype.hasOwnProperty.call(e,"children")}oe.hasChildren=I8;function og(e,t){t===void 0&&(t=!1);var n;if(U2(e))n=new M2(e.data);else if(H2(e))n=new L2(e.data);else if(B2(e)){var r=t?Af(e.children):[],s=new z2(e.name,la({},e.attribs),r);r.forEach(function(a){return a.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=la({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=la({},e["x-attribsPrefix"])),n=s}else if(V2(e)){var r=t?Af(e.children):[],i=new F2(r);r.forEach(function(u){return u.parent=i}),n=i}else if(W2(e)){var r=t?Af(e.children):[],o=new $2(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(q2(e)){var l=new D2(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}oe.cloneNode=og;function Af(e){for(var t=e.map(function(r){return og(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=lt&<.__createBinding||(Object.create?function(l,a,u,c){c===void 0&&(c=u);var f=Object.getOwnPropertyDescriptor(a,u);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[u]}}),Object.defineProperty(l,c,f)}:function(l,a,u,c){c===void 0&&(c=u),l[c]=a[u]}),n=lt&<.__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=sg,s=oe;n(oe,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function l(a,u,c){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=i),typeof a=="object"&&(u=a,a=void 0),this.callback=a??null,this.options=u??i,this.elementCB=c??null}return l.prototype.onparserinit=function(a){this.parser=a},l.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},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,f=new s.Element(a,u,void 0,c);this.addNode(f),this.tagStack.push(f)},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 s.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 s.Comment(a);this.addNode(u),this.lastNode=u},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var a=new s.Text(""),u=new s.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 s.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})(rg);var C0="html",k0="head",tu="body",_8=/<([a-zA-Z]+[0-9]?)/,T0=/<head[^]*>/i,j0=/<body[^]*>/i,Oc=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Eh=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},P0=typeof window=="object"&&window.DOMParser;if(typeof P0=="function"){var M8=new P0,L8="text/html";Eh=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),M8.parseFromString(e,L8)},Oc=Eh}if(typeof document=="object"&&document.implementation){var nu=document.implementation.createHTMLDocument();Oc=function(e,t){if(t){var n=nu.documentElement.querySelector(t);return n.innerHTML=e,nu}return nu.documentElement.innerHTML=e,nu}}var If=typeof document=="object"?document.createElement("template"):{},Ch;If.content&&(Ch=function(e){return If.innerHTML=e,If.content.childNodes});function D8(e){var t,n=e.match(_8);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case C0:return r=Eh(e),T0.test(e)||(s=r.querySelector(k0),s&&s.parentNode.removeChild(s)),j0.test(e)||(s=r.querySelector(tu),s&&s.parentNode.removeChild(s)),r.querySelectorAll(C0);case k0:case tu:return r=Oc(e),i=r.querySelectorAll(t),j0.test(e)&&T0.test(e)?i[0].parentNode.childNodes:i;default:return Ch?Ch(e):(s=Oc(e,tu).querySelector(tu),s.childNodes)}}var F8=D8,ag={},G2={};G2.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 md=rg,$8=G2,O0=$8.CASE_SENSITIVE_TAG_NAMES,z8=md.Comment,B8=md.Element,V8=md.ProcessingInstruction,U8=md.Text,Q2={},_f;for(var Mf=0,H8=O0.length;Mf<H8;Mf++)_f=O0[Mf],Q2[_f.toLowerCase()]=_f;function q8(e){return Q2[e]}function K2(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function W8(e){e=e.toLowerCase();var t=q8(e);return t||e}function X2(e,t,n){t=t||null;for(var r=[],s,i=0,o=e.length;i<o;i++){var l=e[i],a;switch(l.nodeType){case 1:s=W8(l.nodeName),a=new B8(s,K2(l.attributes)),a.children=X2(s==="template"?l.content.childNodes:l.childNodes,a);break;case 3:a=new U8(l.nodeValue);break;case 8:a=new z8(l.nodeValue);break;default:continue}var u=r[i-1]||null;u&&(u.next=a),a.parent=t,a.prev=u,a.next=null,r.push(a)}return n&&(a=new V8(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}ag.formatAttributes=K2;ag.formatDOM=X2;var G8=F8,Q8=ag,K8=Q8.formatDOM,X8=/<(![a-zA-Z\s]+)>/;function Y8(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(X8),n;return t&&t[1]&&(n=t[1]),K8(G8(e),null,n)}var J8=Y8,hn={},gd={},Z8=0;gd.SAME=Z8;var eA=1;gd.CAMELCASE=eA;gd.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(hn,"__esModule",{value:!0});function tA(e,t){return nA(e)||rA(e,t)||sA(e,t)||iA()}function nA(e){if(Array.isArray(e))return e}function rA(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,l;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(a){i=!0,l=a}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function sA(e,t){if(e){if(typeof e=="string")return R0(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 R0(e,t)}}function R0(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 iA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
220
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Y2=0,cs=1,vd=2,yd=3,lg=4,J2=5,Z2=6;function oA(e){return Xe.hasOwnProperty(e)?Xe[e]:null}function pt(e,t,n,r,s,i,o){this.acceptsBooleans=t===vd||t===yd||t===lg,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Xe={},aA=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];aA.forEach(function(e){Xe[e]=new pt(e,Y2,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=tA(e,2),n=t[0],r=t[1];Xe[n]=new pt(n,cs,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new pt(e,vd,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new pt(e,vd,!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){Xe[e]=new pt(e,yd,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new pt(e,yd,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new pt(e,lg,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new pt(e,Z2,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new pt(e,J2,!1,e.toLowerCase(),null,!1,!1)});var ug=/[\-\:]([a-z])/g,cg=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(ug,cg);Xe[t]=new pt(t,cs,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ug,cg);Xe[t]=new pt(t,cs,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ug,cg);Xe[t]=new pt(t,cs,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new pt(e,cs,!1,e.toLowerCase(),null,!1,!1)});var lA="xlinkHref";Xe[lA]=new pt("xlinkHref",cs,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new pt(e,cs,!1,e.toLowerCase(),null,!0,!0)});var dg=gd,uA=dg.CAMELCASE,cA=dg.SAME,N0=dg.possibleStandardNames,dA=":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",fA=dA+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",pA=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+fA+"]*$")),hA=Object.keys(N0).reduce(function(e,t){var n=N0[t];return n===cA?e[t]=t:n===uA?e[t.toLowerCase()]=t:e[t]=n,e},{});hn.BOOLEAN=yd;hn.BOOLEANISH_STRING=vd;hn.NUMERIC=J2;hn.OVERLOADED_BOOLEAN=lg;hn.POSITIVE_NUMERIC=Z2;hn.RESERVED=Y2;hn.STRING=cs;hn.getPropertyInfo=oA;hn.isCustomAttribute=pA;hn.possibleStandardNames=hA;var eS={},fg={exports:{}},A0=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mA=/\n/g,gA=/^\s*/,vA=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,yA=/^:\s*/,wA=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,xA=/^[;\s]*/,bA=/^\s+|\s+$/g,SA=`
|
|
221
|
+
`,I0="/",_0="*",gs="",EA="comment",CA="declaration",kA=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function s(y){var w=y.match(mA);w&&(n+=w.length);var x=y.lastIndexOf(SA);r=~x?y.length-x:r+y.length}function i(){var y={line:n,column:r};return function(w){return w.position=new o(y),u(),w}}function o(y){this.start=y,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function l(y){var w=new Error(t.source+":"+n+":"+r+": "+y);if(w.reason=y,w.filename=t.source,w.line=n,w.column=r,w.source=e,!t.silent)throw w}function a(y){var w=y.exec(e);if(w){var x=w[0];return s(x),e=e.slice(x.length),w}}function u(){a(gA)}function c(y){var w;for(y=y||[];w=f();)w!==!1&&y.push(w);return y}function f(){var y=i();if(!(I0!=e.charAt(0)||_0!=e.charAt(1))){for(var w=2;gs!=e.charAt(w)&&(_0!=e.charAt(w)||I0!=e.charAt(w+1));)++w;if(w+=2,gs===e.charAt(w-1))return l("End of comment missing");var x=e.slice(2,w-2);return r+=2,s(x),e=e.slice(w),r+=2,y({type:EA,comment:x})}}function p(){var y=i(),w=a(vA);if(w){if(f(),!a(yA))return l("property missing ':'");var x=a(wA),g=y({type:CA,property:M0(w[0].replace(A0,gs)),value:x?M0(x[0].replace(A0,gs)):gs});return a(xA),g}}function h(){var y=[];c(y);for(var w;w=p();)w!==!1&&(y.push(w),c(y));return y}return u(),h()};function M0(e){return e?e.replace(bA,gs):gs}var TA=kA;function tS(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=TA(e),i=typeof t=="function",o,l,a=0,u=s.length;a<u;a++)r=s[a],o=r.property,l=r.value,i?t(o,l,r):l&&(n||(n={}),n[o]=l);return n}fg.exports=tS;fg.exports.default=tS;var jA=fg.exports,wd={};wd.__esModule=!0;wd.camelCase=void 0;var PA=/^--[a-zA-Z0-9-]+$/,OA=/-([a-z])/g,RA=/^[^-]+$/,NA=/^-(webkit|moz|ms|o|khtml)-/,AA=/^-(ms)-/,IA=function(e){return!e||RA.test(e)||PA.test(e)},_A=function(e,t){return t.toUpperCase()},L0=function(e,t){return"".concat(t,"-")},MA=function(e,t){return t===void 0&&(t={}),IA(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(AA,L0):e=e.replace(NA,L0),e.replace(OA,_A))};wd.camelCase=MA;(function(e){var t=lt&<.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};e.__esModule=!0;var n=t(jA),r=wd;function s(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,u){a&&u&&(l[(0,r.camelCase)(a,o)]=u)}),l}e.default=s})(eS);var LA=S,DA=eS.default;function FA(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,s=typeof t=="function",i={},o={};for(n in e){if(r=e[n],s&&(i=t(n,r),i&&i.length===2)){o[i[0]]=i[1];continue}typeof r=="string"&&(o[r]=n)}return o}function $A(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 zA={reactCompat:!0};function BA(e,t){if(e!=null)try{t.style=DA(e,zA)}catch{t.style={}}}var VA=LA.version.split(".")[0]>=16,nS=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function UA(e){return!nS.has(e.name)}var rS={PRESERVE_CUSTOM_ATTRIBUTES:VA,invertObject:FA,isCustomComponent:$A,setStyleProp:BA,canTextBeChildOfNode:UA,elementsWithNoTextChildren:nS},Uo=hn,D0=rS,HA=["checked","value"],qA=["input","select","textarea"],WA={reset:!0,submit:!0},sS=function(t,n){t=t||{};var r,s,i,o,l,a={},u=t.type&&WA[t.type];for(r in t){if(i=t[r],Uo.isCustomAttribute(r)){a[r]=i;continue}if(s=r.toLowerCase(),o=F0(s),o){switch(l=Uo.getPropertyInfo(o),HA.indexOf(o)!==-1&&qA.indexOf(n)!==-1&&!u&&(o=F0("default"+s)),a[o]=i,l&&l.type){case Uo.BOOLEAN:a[o]=!0;break;case Uo.OVERLOADED_BOOLEAN:i===""&&(a[o]=!0);break}continue}D0.PRESERVE_CUSTOM_ATTRIBUTES&&(a[r]=i)}return D0.setStyleProp(t.style,a),a};function F0(e){return Uo.possibleStandardNames[e]}var GA=S,QA=sS,Rc=rS,KA=Rc.setStyleProp,XA=Rc.canTextBeChildOfNode;function iS(e,t){t=t||{};for(var n=t.library||GA,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],l,a,u=typeof t.replace=="function",c,f,p,h=t.trim,y=0,w=e.length;y<w;y++){if(l=e[y],u&&(c=t.replace(l),i(c))){w>1&&(c=r(c,{key:c.key||y})),o.push(c);continue}if(l.type==="text"){if(a=!l.data.trim().length,a&&l.parent&&!XA(l.parent)||h&&a)continue;o.push(l.data);continue}switch(f=l.attribs,YA(l)?KA(f.style,f):f&&(f=QA(f,l.name)),p=null,l.type){case"script":case"style":l.children[0]&&(f.dangerouslySetInnerHTML={__html:l.children[0].data});break;case"tag":l.name==="textarea"&&l.children[0]?f.defaultValue=l.children[0].data:l.children&&l.children.length&&(p=iS(l.children,t));break;default:continue}w>1&&(f.key=y),o.push(s(l.name,f,p))}return o.length===1?o[0]:o}function YA(e){return Rc.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Rc.isCustomComponent(e.name,e.attribs)}var JA=iS,xd=rg,wi=J8,ZA=sS,oS=JA;wi=typeof wi.default=="function"?wi.default:wi;var eI={lowerCaseAttributeNames:!1};function Wn(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},oS(wi(e,t.htmlparser2||eI),t))}Wn.domToReact=oS;Wn.htmlToDOM=wi;Wn.attributesToProps=ZA;Wn.Comment=xd.Comment;Wn.Element=xd.Element;Wn.ProcessingInstruction=xd.ProcessingInstruction;Wn.Text=xd.Text;var tI=Wn;Wn.default=Wn;const ds=il(tI);var ru=ds.domToReact;ds.htmlToDOM;var Lf=ds.attributesToProps;ds.Comment;ds.Element;ds.ProcessingInstruction;ds.Text;const aS=S.forwardRef(({children:e},t)=>d.jsx("div",{ref:t,className:"actionbar",children:e}));aS.displayName="ActionBar";const nI=aS,lS=S.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:s=!1,isToast:i=!1,autoClose:o=!1,autoCloseDelay:l=3e3,onClose:a,onVisibilityChange:u},c)=>{const[f,p]=S.useState(!0),h=S.useRef(null),y=S.useCallback(()=>{p(!1),a==null||a()},[a]);S.useImperativeHandle(c,()=>({show:w,hide:y,...h.current})),S.useLayoutEffect(()=>{u==null||u(f)},[f,u]),S.useEffect(()=>{o&&f&&setTimeout(()=>{y()},l)},[o,l,y,f]);const w=()=>{p(!0)},x={success:{icon:d.jsx(i5,{}),classModifier:"alert-success"},warning:{icon:d.jsx(wT,{}),classModifier:"alert-warning"},info:{icon:d.jsx(lb,{}),classModifier:"alert-info"},danger:{icon:d.jsx(_T,{}),classModifier:"alert-danger"}},g={"is-dismissible":s,"is-toast ":i},m=J("alert gap-12",x[e].classModifier,g,t);return d.jsx(d.Fragment,{children:f?d.jsxs("div",{ref:h,className:m,role:"alert",children:[x[e].icon,d.jsx("div",{className:"alert-content small",children:n}),r&&d.jsx("div",{className:"ms-12",children:r}),s&&d.jsx("div",{className:"btn-close-container",children:d.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:y})}),o&&d.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});lS.displayName="Alert";const Vr=lS,uS=S.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=J("d-flex flex-wrap p-16 gap-8 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return d.jsxs("div",{ref:r,className:s,children:[e,t?d.jsx("div",{className:"d-flex align-items-center ms-auto gap-8",children:t()}):null]})});uS.displayName="AppHeader";const cS=uS;function pg({appCode:e}){return Ih({queryKey:["conf"],queryFn:async()=>await ae.conf().getConf(e),suspense:!0})}function dS(){return Ih({queryKey:["session"],queryFn:async()=>await ae.session().getSession(),suspense:!0})}const hg=S.createContext(null);function fS({children:e,params:t}){const n=t.app,{t:r}=ue(),s=r(n),i=dS(),o=pg({appCode:n}),l=(o==null?void 0:o.isSuccess)&&(i==null?void 0:i.isSuccess);S.useEffect(()=>{var u,c;(c=document.querySelector("html"))==null||c.setAttribute("lang",((u=i==null?void 0:i.data)==null?void 0:u.currentLanguage)||"fr")},[i==null?void 0:i.data]),S.useEffect(()=>{document.title=`${s}`},[n,i.data,s]);const a=S.useMemo(()=>{var u,c,f,p,h,y;return{appCode:n,applications:(u=o==null?void 0:o.data)==null?void 0:u.applications,confQuery:o,currentApp:(c=o==null?void 0:o.data)==null?void 0:c.currentApp,currentLanguage:(f=i==null?void 0:i.data)==null?void 0:f.currentLanguage,init:l,sessionQuery:i,user:(p=i==null?void 0:i.data)==null?void 0:p.user,userDescription:(h=i==null?void 0:i.data)==null?void 0:h.userDescription,userProfile:(y=i==null?void 0:i.data)==null?void 0:y.userProfile}},[n,o,l,i]);return d.jsx(hg.Provider,{value:a,children:e})}function Te(){const e=S.useContext(hg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}const mg=S.createContext(null);function pS({children:e}){var t;const{appCode:n}=Te(),r=pg({appCode:n});S.useEffect(()=>{var i,o,l,a,u,c,f,p,h;const y=document.getElementById("favicon");y.href=`${(o=(i=r==null?void 0:r.data)==null?void 0:i.theme)==null?void 0:o.basePath}/img/illustrations/favicon.ico`;const w=(u=(a=(l=r==null?void 0:r.data)==null?void 0:l.theme)==null?void 0:a.bootstrapVersion)==null?void 0:u.split("-"),x=w?w[w.length-1]:void 0;[{data:"data-skin",value:(f=(c=r==null?void 0:r.data)==null?void 0:c.theme)==null?void 0:f.skinName},{data:"data-theme",value:(h=(p=r==null?void 0:r.data)==null?void 0:p.theme)==null?void 0:h.themeName},{data:"data-product",value:x}].forEach(m=>{var v;return(v=document.querySelector("html"))==null?void 0:v.setAttribute(m.data,m.value)})},[r==null?void 0:r.data]);const s=S.useMemo(()=>{var i;return{theme:(i=r==null?void 0:r.data)==null?void 0:i.theme}},[(t=r==null?void 0:r.data)==null?void 0:t.theme]);return d.jsx(mg.Provider,{value:s,children:e})}function bd(){const e=S.useContext(mg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function hS(){var e;const{sessionQuery:t}=Te(),n=new Set;return(e=t==null?void 0:t.data)==null?void 0:e.bookmarkedApps.filter(s=>{const i=n.has(s.displayName);return n.add(s.displayName),!i})}function Oi(e){const[t,n]=S.useState();return S.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await ae.rights().sessionHasWorkflowRight(e):await ae.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}const rI=()=>{const e=Oi("fr.openent.zimbra.controllers.ZimbraController|view"),t=Oi("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=S.useState(0),[s,i]=S.useState(""),o=S.useCallback(async()=>{if(e)try{const a=await ae.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});a.status!==200&&r(0),r(a.count)}catch{console.error("error"),r(0)}else try{const a=await ae.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(a.count)}catch{console.error("error"),r(0)}},[e]),l=S.useCallback(()=>{let a="";ae.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?a="/zimbra/preauth":a=window.location.origin+"/zimbra/zimbra"}catch{a="/zimbra/zimbra"}}),i(a)},[t]);return S.useEffect(()=>{(async()=>{try{await o()}catch(a){console.error(a)}})(),l()},[l,o]),{messages:n,msgLink:s,zimbraWorkflow:e}},mS=rI,$0=["mousedown","touchstart"];function gg(e,t,n){const r=S.useRef();return S.useEffect(()=>{const s=i=>{const{target:o}=i??{};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(u=>!!u&&!i.composedPath().includes(u))&&!l&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||$0).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||$0).forEach(i=>{document.removeEventListener(i,s)})}},[r,e,n,t]),r}const su="top-right";function ht(){return{success:(t,n)=>Oo.custom(d.jsx(Vr,{type:"success",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??su}),error:(t,n)=>Oo.custom(d.jsx(Vr,{type:"danger",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??su}),info:(t,n)=>Oo.custom(d.jsx(Vr,{type:"info",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??su}),warning:(t,n)=>Oo.custom(d.jsx(Vr,{type:"warning",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??su}),loading:Oo.loading}}function vg(){const[e,t]=S.useState(!1),n=S.useRef(null),r=()=>{t(!0)},s=()=>{t(!1)};return S.useEffect(()=>{const i=n.current;if(i)return i.addEventListener("mouseover",r),i.addEventListener("mouseout",s),()=>{i.removeEventListener("mouseover",r),i.removeEventListener("mouseout",s)}},[n]),[n,e]}function gS({src:e,placeholder:t}){const[n,r]=S.useState(e||t),s=S.useCallback(()=>{r(t)},[t]);return S.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:s}}function vS(e,t){const n=S.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);S.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function yS(){const e=typeof document<"u",[t,n]=S.useState(()=>document.title);return S.useEffect(()=>{e&&n(document.title)},[e]),t}function yg(e=!1){const[t,n]=S.useState(e),r=S.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function wS(e,t){const[n,r]=S.useState(e);return S.useEffect(()=>{const s=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(s)}},[e,t]),n}function xS(){const e=S.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return S.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],s=n.querySelectorAll(t),i=e&&(s==null?void 0:s[s.length-1]),o=l=>{l.key==="Tab"&&(l.shiftKey?document.activeElement===r&&(i.focus(),l.preventDefault()):document.activeElement===i&&(r.focus(),l.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function bS(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const sI=(e,t)=>{const[,n]=S.useState(!1),r=S.useCallback(o=>{o.preventDefault(),o.stopPropagation(),n(!0)},[]),s=o=>{o.preventDefault(),o.stopPropagation(),n(!1)};return{handleDragging:r,handleDragLeave:s,handleDrop:o=>{var l;s(o);const a=(l=o.dataTransfer)==null?void 0:l.files;t(a),e!=null&&e.current&&a&&(e.current.files=a)}}},SS=sI;function ES({user:e,avatar:t}){const{t:n}=ue(),r=yS(),[s,i]=S.useState(!0),[o,l]=vg(),a=S.useId(),u=S.useId(),c=t,f=e==null?void 0:e.username,p=n("welcome",{username:e==null?void 0:e.firstName}),h=hS(),y=Oi("net.atos.entng.community.controllers.CommunityController|view"),w=Oi("org.entcore.conversation.controllers.ConversationController|view"),x=Oi("fr.openent.searchengine.controllers.SearchEngineController|view"),g=S.useCallback(()=>{i(!s)},[s]),m=async()=>{await ae.session().logout(),window.location.href="/auth/login"};return S.useMemo(()=>({title:r,bookmarkedApps:h,appsRef:o,isAppsHovered:l,popoverAppsId:a,popoverSearchId:u,userAvatar:c,userName:f,welcomeUser:p,communityWorkflow:y,conversationWorflow:w,searchWorkflow:x,isCollapsed:s,toggleCollapsedNav:g,handleLogout:m}),[o,h,y,w,l,s,a,u,x,r,g,c,f,p])}function CS(){const[e,t]=S.useState(!1);S.useEffect(()=>{n()},[]);const n=S.useCallback(async()=>{const r=await ae.session().isAdml();t(r)},[]);return{isAdml:e}}const wg={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"},iI=()=>{var e;const{user:t,appCode:n}=Te(),r=wg[n],s=(e=t.apps.find(u=>u.isExternal&&u.address.includes("library")&&u.name.includes("library")))==null?void 0:e.address.split("?");let i=s==null?void 0:s[0];i!=null&&i.endsWith("/")||(i=`${i}/`);const o=s==null?void 0:s[1],l=`application%5B0%5D=${r}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${i}search/?${o}&${l}`}},oI=iI;function Sd(){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 s(l){const a=t(l);return a?`bg-app-${a}`:"bg-app-placeholder"}function i(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:s,getBackgroundLightIconClass:i,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function Ys(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}function Ed(){const{user:e,userDescription:t,userProfile:n}=Te(),{theme:r}=bd();function s(){let i=t==null?void 0:t.picture;return(!i||i==="no-avatar.jpg"||i==="no-avatar.svg")&&(i=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),i}return{user:{...e,type:n},avatar:s(),userDescription:t}}function kS(){const[e,t]=S.useState("pending"),{currentApp:n}=Te();S.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await ae.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(s){console.error("[Xiti] Error Tracking Page Load",s),t(`[Xiti] Error Tracking Page Load: ${s}`)}};return{xitiStatus:e}}const TS=S.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:s,className:i,...o},l)=>{const[a]=Ys(),u=n??`${a}/common/image-placeholder.png`,{imgSrc:c,onError:f}=gS({src:e,placeholder:u}),p={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},h={"object-fit-contain":s==="contain","object-fit-cover":s==="cover","object-fit-fill":s==="fill","object-fit-scale":s==="scale","object-fit-none":s==="none"},y=J({...p}),w=J({...h},i),x=d.jsx("img",{alt:t,onError:f,ref:l,src:c,className:w,...o});return r?d.jsx("div",{className:y,children:x}):x});TS.displayName="Image";const ho=TS,jS=S.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Sd(),[,l]=Ys(),a=r==="square",u=r==="rounded",c=r==="circle",f=n==="contain",p=n==="ratio",h={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},y={square:a,rounded:u,"rounded-circle":c},w={"icon-contain":f,"icon-ratio":p},x=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",g=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",m=e?o(e):"",v=i(x),b=m||"placeholder",E=J("app-icon",{...h,...y,...w,[`bg-light-${b}`]:b&&!f,[`color-app-${b}`]:b});return v?d.jsx(ho,{src:x,alt:g,objectFit:"contain",width:t,height:t,className:"h-full"}):d.jsx("div",{className:E,style:{width:t+"px",height:t+"px"},children:d.jsx("svg",{ref:s,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:d.jsx("use",{xlinkHref:`${l}/apps.svg#${b}`})})})});jS.displayName="AppIcon";const qs=jS,PS=S.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},l)=>{const[a]=Ys(),u=s||`${a}/avatar/no-avatar.svg`,w=J("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},i);return d.jsx("div",{ref:l,className:w,children:d.jsx(ho,{src:r||u,alt:n,imgPlaceholder:u,...o})})});PS.displayName="Avatar";const Ws=PS,OS=S.forwardRef(({children:e,className:t,...n},r)=>{const s=J("breadcrumb-item",t);return d.jsx("li",{ref:r,className:s,...n,children:e})});OS.displayName="BreadcrumbItem";const Df=OS,RS=S.forwardRef(({children:e,className:t},n)=>{const r=J("breadcrumb d-flex flex-nowrap align-items-center mb-0",t);return d.jsx("ol",{ref:n,className:r,children:e})});RS.displayName="BreadcrumbList";const aI=RS,NS=S.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=ue(),{getIconClass:i}=Sd(),o=J("d-flex align-items-center mb-0",i(t),n),l={"--edifice-breadcrumb-divider":"-"};return d.jsx("nav",{ref:r,className:o,"aria-label":s("breadcrumb"),style:l,children:e})});NS.displayName="BreadcrumbNav";const lI=NS,AS=S.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:s="left",children:i,...o}=e,l=()=>{let u;return r?u=r:u=d.jsx(UT,{...o,"aria-label":"Loading"}),u},a=J("loading",{"is-loading":n});return d.jsxs("div",{className:a,role:"status",ref:t,children:[(!s||s==="left")&&l(),i,s==="right"&&l()]})});AS.displayName="Loading";const xg=AS,IS=S.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:s,loadingIcon:i,loadingPosition:o,leftIcon:l,rightIcon:a,className:u,variant:c="filled",...f},p)=>{const h=J("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":s,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return d.jsx("button",{ref:p,className:h,type:t,...f,children:s?d.jsx(xg,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):d.jsxs("span",{children:[l,r,a]})})});IS.displayName="Button";const ze=IS,_S=S.forwardRef(({icon:e,className:t,...n},r)=>{const s={...n,className:J("btn-icon btn-sm",t)};return d.jsx(ze,{ref:r,...s,children:e})});_S.displayName="IconButton";const hr=_S,MS=S.forwardRef(({icon:e=d.jsx(r5,{}),onClick:t,...n},r)=>{const s=J("btn-search");return d.jsx(hr,{ref:r,className:s,icon:e,...n,onClick:t})});MS.displayName="SearchButton";const bg=MS,LS=S.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...s},i)=>{const o=J(t,r);return d.jsx(e,{ref:i,className:o,...s,children:n})});LS.displayName="Heading";const an=LS,DS=S.forwardRef(({app:e,name:t},n)=>{const{t:r}=ue();return d.jsx(lI,{app:e,ref:n,className:"mw-100",children:d.jsx(aI,{className:"gap-12 mw-100",children:t?d.jsxs(d.Fragment,{children:[d.jsx(Df,{children:d.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[d.jsx(hr,{variant:"ghost",color:"tertiary",icon:d.jsx(XT,{}),"aria-label":r(e==null?void 0:e.displayName)}),d.jsx(qs,{app:e,size:"40"})]})}),d.jsx(Df,{className:"text-truncate",children:d.jsx(an,{level:"h1",headingStyle:"h3",className:"text-truncate",children:t})})]}):d.jsxs(Df,{className:"gap-12 d-flex align-items-center",children:[d.jsx(qs,{app:e,size:"40"}),d.jsx(an,{level:"h1",headingStyle:"h3",className:"d-none d-md-flex",children:r(e==null?void 0:e.displayName)})]})})})});DS.displayName="Breadcrumb";const FS=DS,$S=({children:e,space:t=null,flexDirection:n="row"})=>{const r=J("card-body",{"p-8":t==="8","gap-8":t==="8","align-items-start":n==="column","flex-column":n==="column"});return d.jsx("div",{className:r,children:e})};$S.displayName="Card.Body";const uI=$S,Sg=S.createContext(null);Sg.displayName="CardContext";const zS=()=>{const e=S.useContext(Sg);if(!e)throw new Error("Cannot be rendered outside the Card component");return e},BS=({children:e})=>d.jsx("div",{className:"card-footer gap-16",children:e});BS.displayName="Card.Footer";const cI=BS,VS=()=>{const{isSelectable:e,isClickable:t,onClick:n,onSelect:r}=zS();return d.jsxs("div",{className:"card-header",children:[e?d.jsx(hr,{"aria-label":"Open Action Bar",className:"z-3 bg-white",color:"secondary",icon:d.jsx(qT,{}),onClick:r,variant:"ghost"}):null,t?d.jsx("button",{onClick:n,className:"position-absolute bottom-0 end-0 top-0 start-0 opacity-0 z-1 w-100","aria-label":"Open resource"}):null]})};VS.displayName="Card.Header";const dI=VS,US=({imageSrc:e,className:t,variant:n="medium"})=>{const{app:r}=zS(),s=n==="landscape"?{width:"100%",height:"auto"}:null;return d.jsx("div",{className:J("card-image",n),children:e?d.jsx(ho,{alt:"",src:e,objectFit:"cover",className:J("h-full",t)}):d.jsx(qs,{app:r,iconFit:"ratio",size:"80",variant:"rounded",...s})})};US.displayName="Card.Image";const fI=US,HS=({children:e,className:t})=>{const n=J("card-text small text-break text-truncate text-truncate-1",t);return d.jsx("p",{className:n,children:e})};HS.displayName="Card.Text";const pI=HS,qS=({children:e,className:t})=>{const n=J("card-title body text-break text-truncate text-truncate-1",t);return d.jsx("h3",{className:n,children:d.jsx("strong",{children:e})})};qS.displayName="Card.Title";const hI=qS,WS=({userSrc:e,creatorName:t})=>e?d.jsx(Ws,{alt:t||"",size:"xs",src:e,variant:"circle",width:"24",height:"24"}):d.jsx(p2,{});WS.displayName="Card.User";const mI=WS,GS=S.forwardRef(({app:e,isSelectable:t=!0,isClickable:n=!0,isSelected:r=!1,onClick:s,onSelect:i,children:o,className:l},a)=>{const{getIconCode:u}=Sd(),c=e?u(e):"placeholder",f=S.useMemo(()=>({app:e,appCode:c,isSelectable:t,isClickable:n,onClick:s,onSelect:i}),[e,c,t,n,s,i]);return d.jsx(Sg.Provider,{value:f,children:d.jsxs("div",{ref:a,className:J("card",{"is-selected":r},l),children:[d.jsx(QS.Header,{}),typeof o=="function"?o(c):o]})})});GS.displayName="Card";const QS=Object.assign(GS,{Title:hI,Text:pI,Image:fI,Body:uI,User:mI,Footer:cI,Header:dI}),gI=QS,KS=S.forwardRef(({label:e,disabled:t=!1,checked:n=!1,indeterminate:r=!1,...s},i)=>{const o=S.useRef(null);S.useImperativeHandle(i,()=>({...o.current})),S.useEffect(()=>{o.current.indeterminate=r},[o,r]);const l=S.useId(),a={type:"checkbox",checked:n,disabled:t,ref:o,className:J(s.className,"form-check-input c-pointer"),id:l},u={...s,...a};return d.jsxs("div",{className:"form-check d-flex align-items-center gap-8",children:[d.jsx("input",{...u}),e&&d.jsx("label",{className:"form-check-label",htmlFor:u.id,children:e})]})});KS.displayName="Checkbox";const Cd=KS,XS=S.createContext(null),mo=()=>{const e=S.useContext(XS);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},YS=S.createContext(null),kd=()=>{const e=S.useContext(YS);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},JS=({children:e})=>{const{status:t}=kd(),n=J("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return d.jsx("p",{className:n,children:d.jsx("em",{children:e})})};JS.displayName="Text";const ZS=JS,eE=S.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:s,...i},o)=>{const{id:l,isRequired:a,isReadOnly:u,status:c}=kd(),f=J({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return d.jsx("input",{ref:o,id:l,className:f,type:r,placeholder:t,required:a,readOnly:u,...i})});eE.displayName="Input";const rs=eE,tE=S.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:s},i)=>{const{id:o,isOptional:l,isRequired:a}=kd(),u=J("form-label",{"has-icon":e},s),c=l&&!a,f=a&&!l;return S.useEffect(()=>{if(l&&a)throw new Error("Cannot be optional and required at the same time")},[l,a]),d.jsxs("label",{ref:i,htmlFor:o,className:u,children:[e,r,c&&d.jsxs("em",{className:"optional",children:["- ",t]}),f&&d.jsx("em",{className:"required",children:n})]})});tE.displayName="Label";const _s=tE,nE=S.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:s,isRequired:i,status:o,...l},a)=>{const u=S.useMemo(()=>({id:n,isOptional:r,isRequired:i,isReadOnly:s,status:o}),[n,r,s,i,o]);return d.jsx(YS.Provider,{value:u,children:d.jsx("div",{ref:a,className:t,...l,children:e})})}),vI=Object.assign(nE,{Label:_s,Input:rs,Text:ZS});nE.displayName="FormControl";const Qe=vI,yI=({placeholder:e,value:t="",handleSearchInputChange:n})=>{const{triggerProps:r,itemProps:s,setVisible:i}=mo(),o={...r,role:"combobox",onClick:()=>{t.length>2&&i(!0)},onChange:n};return S.useEffect(()=>{i(t.length>2)},[i,t]),d.jsx(Qe,{className:"d-flex align-items-center",id:"search",children:d.jsx(rs,{...o,className:"max-w-512",noValidationIcon:!0,placeholder:e,size:"md",type:"search",onKeyDown:s.onMenuItemKeyDown})})},wI=yI,rE=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=mo(),{onMenuItemKeyDown:l,onMenuItemMouseEnter:a}=s,u=S.useId(),c=n.includes(t),f={value:t,model:n,checked:c,readOnly:!0},p=J("dropdown-item c-pointer",{focus:o===u});return d.jsx("div",{id:u,ref:h=>i.current[u]=h,role:"menuitemcheckbox","aria-checked":c,onMouseUp:()=>r(t),onKeyDown:h=>l(h,()=>r(t)),onMouseEnter:a,tabIndex:c?0:-1,className:p,children:d.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,d.jsx(Cd,{...f})]})})};rE.displayName="Dropdown.CheckboxItem";const xI=rE,sE=({type:e="action",icon:t,onClick:n,children:r,...s})=>{const{itemProps:i,itemRefs:o,isFocused:l}=mo(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:u,onMenuItemClick:c}=i,f=()=>{n==null||n(),e==="action"&&c()},p=S.useId(),h=J("dropdown-item",{focus:l===p});return d.jsx("div",{id:p,role:"menuitem",ref:y=>o.current[p]=y,tabIndex:l===p?0:-1,className:h,"aria-current":l===p,onClick:f,onMouseEnter:u,onKeyDown:y=>a(y,n),...s,children:d.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[t,r]})})};sE.displayName="Dropdown.Item";const bI=sE,iE=S.forwardRef(({children:e,block:t,...n},r)=>{const{menuProps:s,visible:i}=mo(),{className:o,...l}=s,a={...l,...n},u=J({"w-100":t},o);return i?d.jsx("div",{ref:r,className:u,...a,children:e}):null});iE.displayName="Dropdown.Menu";const SI=iE,oE=S.forwardRef(({label:e,children:t},n)=>d.jsxs("div",{ref:n,role:"group",children:[d.jsx("span",{className:"small px-4",children:d.jsx("strong",{children:e})}),t]}));oE.displayName="Dropdown.MenuGroup";const EI=oE,aE=S.forwardRef(({model:e,icon:t,label:n=!1,disabled:r=!1,checked:s,...i},o)=>{const l=S.useId(),a={type:"radio",checked:s,disabled:r,ref:o,className:J(i.className,"form-check-input c-pointer",t&&"d-none"),id:l},u={...i,...a};return d.jsxs("div",{className:J("form-check d-flex align-items-center gap-8",t&&"ps-0"),children:[d.jsx("input",{...u}),t&&d.jsx("label",{htmlFor:u.id,className:J("c-pointer",e!==i.value&&"text-muted"),children:t}),!t&&n&&d.jsx("label",{className:"form-check-label",htmlFor:u.id,children:n})]})});aE.displayName="Radio";const Nc=aE,lE=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=mo(),{onMenuItemKeyDown:l,onMenuItemMouseEnter:a}=s,u=S.useId(),f={value:t,model:n,checked:t===n,readOnly:!0},p=J("dropdown-item c-pointer",{focus:o===u});return d.jsx("div",{id:u,ref:h=>i.current[u]=h,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:h=>l(h,()=>r(t)),onMouseEnter:a,tabIndex:t===n?0:-1,className:p,children:d.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,d.jsx(Nc,{...f,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};lE.displayName="Dropdown.RadioItem";const CI=lE,uE=()=>d.jsx("div",{role:"separator",className:"px-4",children:d.jsx("hr",{className:"m-0"})});uE.displayName="Dropdown.Separator";const kI=uE,cE=S.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i,...o},l)=>{const{triggerProps:a,block:u}=mo(),{className:c,...f}=a,p={...f,...o},h=J(s,n,{"w-100":u},c);return d.jsxs("button",{ref:l,className:h,disabled:r,...p,children:[t||null,e,i?d.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):d.jsx(ZT,{width:16,height:16,className:"dropdown-toggle-caret"})]})});cE.displayName="Dropdown.Trigger";const TI=cE,jI=e=>{const t=S.useId(),[n,r]=S.useState(!1),[s,i]=S.useState(-1),[o,l]=S.useState(null),{refs:a,floatingStyles:u}=ej({placement:e,open:n,onOpenChange:r,whileElementsMounted:$5,middleware:[x5(4),B5({apply({rects:A,elements:N}){Object.assign(N.floating.style,{minWidth:`${A.reference.width}px`})}}),z5({padding:0})]}),c=S.useRef(null),f=S.useRef(null),p=S.useRef({});S.useEffect(()=>{n?c.current&&(c.current.focus(),i(0)):(i(-1),p.current={})},[n]),S.useEffect(()=>{if(s!==-1){const A=Object.values(p.current)[s];if(A){const N=A.getAttribute("id");l(N),A.focus()}}},[s]);const h=()=>{const N=Object.values(p.current).length;i(M=>(M+1)%N)},y=()=>{const N=Object.values(p.current).length;i(M=>(M-1+N)%N)},w=()=>{i(0)},x=()=>{const N=Object.values(p.current).length;i(N-1)},g=S.useCallback(()=>{r(!0)},[]),m=S.useCallback(()=>{f.current&&(f.current.focus(),r(!1))},[]),v=(A,N)=>{A&&(N.stopPropagation(),N.preventDefault())},b=S.useCallback(A=>{let N=!1;switch(A.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":g(),N=!0;break;case"Esc":case"Escape":m(),N=!0;break;case"Up":case"ArrowUp":g(),N=!0;break}v(N,A)},[m,g]),E=A=>{const M=Object.values(p.current).findIndex(D=>D.id===A.currentTarget.getAttribute("id"));i(M)},T=S.useCallback((A,N)=>{let M=!1;if(A.shiftKey)A.key==="Tab"&&(m(),M=!0);else{switch(A.code){case"Escape":m();break;case" ":case"Space":case"Enter":s!==-1&&(Object.values(p.current)[s].getAttribute("role")==="menuitem"&&f.current&&(f.current.focus(),r(!1)),N==null||N()),M=!0;break;case"ArrowDown":case"Down":h(),M=!0;break;case"ArrowUp":case"Up":y(),M=!0;break;case"Home":w(),M=!0;break;case"End":x(),M=!0;break}v(M,A)}},[s,m]),C=S.useCallback(A=>{r(n!==!0),A.stopPropagation(),A.preventDefault()},[n]),R=S.useCallback(()=>{m()},[m]);function j(A,...N){N.forEach(M=>{typeof M=="function"?M(A):M!=null&&(M.current=A)})}function L(...A){return N=>{j(N,...A)}}return{isFocused:o,visible:n,itemRefs:p,triggerRef:f,menuRef:c,triggerProps:{ref:L(f,a.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:C,onKeyDown:b,"aria-activedescendant":o},menuProps:{ref:L(c,a.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,style:{...u}},itemProps:{onMenuItemMouseEnter:E,onMenuItemClick:R,onMenuItemKeyDown:T},setVisible:r}},dE=jI,fE=({children:e,block:t,overflow:n=!0,placement:r="bottom-start"})=>{const{visible:s,isFocused:i,triggerProps:o,menuProps:l,itemProps:a,itemRefs:u,setVisible:c}=dE(r),f=gg(()=>c(!1)),p=S.useMemo(()=>({visible:s,isFocused:i,triggerProps:o,menuProps:l,itemProps:a,itemRefs:u,block:t,setVisible:c}),[s,i,o,l,a,u,t,c]),h=J("dropdown",{"w-100":t,overflow:n});return d.jsx(XS.Provider,{value:p,children:d.jsx("div",{ref:f,className:h,children:typeof e=="function"?e(o,u):e})})};fE.displayName="Dropdown";const PI=Object.assign(fE,{Trigger:TI,Menu:SI,Item:bI,Separator:kI,CheckboxItem:xI,RadioItem:CI,MenuGroup:EI}),Ee=PI,Td=({onSearchResultsChange:e,onSearchInputChange:t,options:n,value:r,isLoading:s,noResult:i,placeholder:o})=>{const{t:l}=ue(),[a,u]=S.useState([]);S.useEffect(()=>{e(a)},[a]);const c=p=>{u([p])},f=()=>s?d.jsxs("div",{className:"d-flex align-items-center p-4",children:[d.jsx(xg,{isLoading:s}),d.jsx("span",{className:"ps-4",children:l("explorer.search.pending")})]}):i?d.jsx("div",{className:"p-4",children:l("portal.no.result")}):n.map((p,h)=>d.jsxs(S.Fragment,{children:[d.jsx(Ee.Item,{type:"select",onClick:()=>c(p.value),children:p.label}),h<n.length-1&&d.jsx(Ee.Separator,{})]},h));return d.jsxs(Ee,{block:!0,children:[d.jsx(Td.Trigger,{placeholder:o,handleSearchInputChange:t,value:r}),d.jsx(Ee.Menu,{children:f()})]})};Td.Trigger=wI;Td.displayName="Combobox";const pE=Td,hE=({imageSrc:e,imageAlt:t="",title:n,text:r})=>d.jsxs("div",{className:"emptyscreen",children:[e&&d.jsx("div",{className:"emptyscreen-image mb-12",children:d.jsx("img",{className:"mx-auto",src:e,alt:t,width:"250",height:"250"})}),n&&d.jsx(an,{level:"h2",headingStyle:"h2",className:"text-secondary mb-8",children:n}),r&&d.jsx("div",{className:"text",children:r})]});hE.displayName="EmptyScreen";const OI=hE,Ri=({children:e,className:t,...n})=>{const r=J("grid",t);return d.jsx("div",{className:r,...n,children:e})},Eg=({sm:e,md:t,lg:n,xl:r,children:s,className:i,as:o,...l})=>{const a=o||"div",u=J({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},i);return d.jsx(a,{className:u,...l,children:s})};Ri.displayName="Grid";Eg.displayName="Grid.Col";Ri.Col=Eg;const mE=S.forwardRef(({label:e,addButtonLabel:t="Add image",deleteButtonLabel:n="Delete image",src:r,className:s,app:i,onUploadImage:o,onDeleteImage:l},a)=>{const u=S.useRef(null),[c,f]=S.useState(r||""),p=b=>{f("");const E=b==null?void 0:b[0];E&&(f(URL.createObjectURL(E)),o(E))},h=()=>{var b;(b=u.current)==null||b.click()},y=()=>{u.current&&(u.current.value=""),f(""),l()},w=b=>{p(b.target.files)},x=J("image-input",s),{handleDragging:g,handleDragLeave:m,handleDrop:v}=SS(u,p);return d.jsxs(Qe,{id:"image-input",className:x,onDragEnter:g,onDragOver:g,onDragLeave:m,onDrop:v,ref:a,children:[d.jsxs("div",{className:"image-input-actions gap-8",children:[d.jsx(hr,{"aria-label":t,color:"tertiary",icon:d.jsx(AT,{}),onClick:h,type:"button",variant:"ghost"}),d.jsx(hr,{"aria-label":n,color:"danger",disabled:!c,icon:d.jsx(ab,{width:"20",height:"20"}),onClick:y,type:"button",variant:"ghost"})]}),d.jsxs(Qe.Label,{children:[d.jsx("span",{className:"visually-hidden",children:e}),d.jsx(rs,{accept:"image/*",hidden:!0,onChange:w,ref:u,size:"sm",type:"file"}),c?d.jsx(Ws,{alt:"",src:c,size:"xl"}):d.jsx(qs,{app:i,iconFit:"ratio",size:"160",variant:"rounded"})]})]})});mE.displayName="ImagePicker";const Cg=mE,gE=S.forwardRef(({text:e,textButton:t,src:n,alt:r,url:s},i)=>d.jsx(d.Fragment,{children:d.jsxs("div",{ref:i,className:"p-16",children:[d.jsx(ho,{width:"270",height:"140",loading:"lazy",className:"rounded",src:n,alt:r}),d.jsx("p",{className:"m-8",children:e}),d.jsx("a",{href:s,target:"_blank",rel:"noreferrer",children:d.jsx(ze,{rightIcon:d.jsx(ET,{}),className:"py-0 px-8",variant:"ghost",color:"primary",children:t})})]})}));gE.displayName="Library";const RI=gE,vE=S.forwardRef(({position:e=!0},t)=>{const[n]=Ys(),r=`${n}/loading/screen-loading.gif`,s=J("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 d.jsxs(d.Fragment,{children:[d.jsx("div",{ref:t,className:s,children:d.jsx("div",{className:"bg-white rounded-circle mx-auto",children:d.jsx("img",{src:r,alt:"loading"})})}),!e&&d.jsx("div",{className:"modal-backdrop fade show"})]})});vE.displayName="LoadingScreen";const _t=vE,yE=S.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const s=J("navbar-brand d-none d-md-block"),i=`logo ${t?"ONE":"NEO"}`;return d.jsx("a",{ref:r,className:s,href:"/timeline/timeline","aria-label":n,children:d.jsx("img",{className:"logo",src:e,alt:i,width:"300",height:"52"})})});yE.displayName="Logo";const kh=yE,kg=S.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});kg.displayName="ModalContext";const wE=()=>{const e=S.useContext(kg);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},xE=e=>{const{ariaDescriptionId:t}=wE(),{children:n,className:r}=e,s=J("modal-body",r);return d.jsx("div",{id:t,className:s,children:n})};xE.displayName="Modal.Body";const NI=xE,bE=e=>d.jsx("div",{className:"modal-footer",children:e.children});bE.displayName="Modal.Footer";const AI=bE,SE=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=wE(),i=S.useRef(null);return S.useEffect(()=>{var o;s||(o=i.current)==null||o.focus()},[s]),d.jsxs("div",{className:"modal-header",children:[d.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),d.jsx(hr,{ref:i,"aria-label":"Close",color:"tertiary",icon:d.jsx(ob,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};SE.displayName="Modal.Header";const II=SE,EE=e=>d.jsx("p",{className:"modal-subtitle",children:e.children});EE.displayName="Modal.Subtitle";const _I=EE,CE=S.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:s,size:i="md",viewport:o=!1,scrollable:l=!1,focusId:a,children:u}=e,c=`aria_label_${n}`,f=`aria_desc_${n}`,p=gg(s),h=xS();vS(s,["Escape"]),S.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",a)){const m=document.getElementById(a);m==null||m.focus()}return()=>{document.body.style.overflow=""}},[a,r]);const y=J("modal fade",{"show d-block":r,"modal-scrollable":l,viewport:o,[`modal-${i}`]:i}),w=J("modal-dialog"),x={ariaLabelId:c,ariaDescriptionId:f,focusId:a},g=n2(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return d.jsx(kg.Provider,{value:x,children:g((m,v)=>d.jsxs(d.Fragment,{children:[v&&d.jsx(vh.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":c,"aria-describedby":f,className:y,style:m,tabIndex:-1,children:d.jsx("div",{id:`${n}_ref`,ref:b=>{p.current=b,v&&(h.current=b)},className:w,children:d.jsx("div",{className:"modal-content",children:u})})}),v&&d.jsx(vh.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),MI=Object.assign(CE,{Header:II,Subtitle:_I,Body:NI,Footer:AI});CE.displayName="Modal";const Re=MI,LI=({children:e,className:t})=>{const n=J("popover-header",t);return d.jsx("div",{className:n,children:e})},kE=({children:e,className:t})=>{const n=J("popover-body",t);return d.jsx("div",{className:n,children:e})},TE=({children:e,className:t})=>{const n=J("popover-footer p-8",t);return d.jsx("div",{className:n,children:e})},jd=S.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=J("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return n2(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:{duration:0}})((a,u)=>u&&d.jsx(vh.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:a,...s,children:e}))});jd.displayName="Popover";const jE=e=>d.jsx(Ee.Trigger,{...e,"aria-haspopup":"listbox",role:"combobox"});jE.displayName="SelectTrigger";const DI=jE,PE=({icon:e,options:t,overflow:n,block:r,variant:s,size:i,disabled:o,placeholderOption:l,onValueChange:a})=>{const[u,c]=S.useState(),{t:f}=ue();S.useEffect(()=>{if(u){const h=typeof u=="object"?u.value:u;a==null||a(h)}},[u]);const p=typeof u=="object"?u.label:u;return d.jsxs(Ee,{overflow:n,block:r,children:[d.jsx(DI,{icon:e,label:f(p||l),variant:s,size:i,disabled:o}),d.jsx(Ee.Menu,{role:"listbox",children:t==null?void 0:t.map(h=>{const y=typeof h=="object"?h.value:h,w=typeof h=="object"?h.label:h;return d.jsx(Ee.Item,{onClick:()=>c(h),children:w},y)})})]})};PE.displayName="Select";const Tg=PE,FI=({children:e,message:t,icon:n=null,placement:r="auto"})=>{const[s,i]=S.useState(null),[o,l]=S.useState(null),[a,u]=S.useState(null),{styles:c,attributes:f}=ER(s,o,{placement:r,modifiers:[{name:"arrow",options:{element:a}}]}),[p,h]=S.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"d-inline-block position-relative z-2",ref:i,onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},children:e}),p&&d.jsxs("div",{className:J("tooltip d-block show mb-12","bs-tooltip-auto"),ref:l,style:c.popper,...f.popper,children:[d.jsxs("div",{className:"tooltip-inner shadow-hover d-flex gap-8 align-items-center",children:[n&&n,d.jsx("div",{children:t})]}),d.jsx("div",{className:"tooltip-arrow",ref:u,style:c.arrow})]})]})},OE=FI,RE=S.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",height:r="md",className:s,...i},o)=>{const{id:l,isRequired:a,isReadOnly:u,status:c}=kd(),f=J({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","textarea-height-lg":r==="lg","textarea-height-md":r==="md","textarea-height-sm":r==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return d.jsx("textarea",{ref:o,id:l,className:f,placeholder:t,required:a,readOnly:u,...i})});RE.displayName="TextArea";const jg=RE;function $I(e,t,n,r,s,i,o,l,a){const u=x=>{x.preventDefault(),s==null||s(e),x.stopPropagation()},c=x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),s==null||s(e),x.stopPropagation())},f=()=>{r(!n),n?i==null||i(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:x=>{x.preventDefault(),f(),x.stopPropagation()},handleItemFoldUnfoldKeyDown:x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),f(),x.stopPropagation())},handleItemFocus:x=>{x.preventDefault(),l==null||l(e)},handleItemBlur:x=>{x.preventDefault(),a==null||a(e)}}}const NE=e=>{const{nodeId:t,label:n,children:r,section:s,selected:i,onItemSelect:o,onItemFold:l,onItemUnfold:a,onItemFocus:u,onItemBlur:c,selectedNodesIds:f}=e,[p,h]=S.useState(!1),{handleItemClick:y,handleItemKeyDown:w,handleItemFoldUnfoldClick:x,handleItemFoldUnfoldKeyDown:g,handleItemFocus:m,handleItemBlur:v}=$I(t,n,p,h,o,l,a,u,c);S.useEffect(()=>{if(f!=null&&f.length&&(f==null?void 0:f.length)>=1){const T=f[f.length-1];f.some(C=>C===t&&t!==T?(h(!0),C===t):(h(!1),!1))}else h(!1)},[t,f]);const b=s?16:12,E=()=>d.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"aria-expanded":p,children:d.jsxs("div",{children:[d.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[d.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:x,onKeyDown:g,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!p&&d.jsx(S1,{title:"RafterRight",width:b,height:b}),Array.isArray(r)&&p&&d.jsx(Na,{title:"RafterDown",width:b,height:b}),!Array.isArray(r)&&d.jsx(S1,{title:"RafterRight",width:b,height:b,"aria-hidden":"true",className:"opacity-0"})]}),d.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:y,onKeyDown:w,onFocus:m,onBlur:v,children:[s&&d.jsx($T,{title:"Folder",width:20,height:20}),d.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&d.jsx("ul",{role:"group",children:r})]})},t);return s?d.jsx("ul",{role:"tree",className:"m-0 p-0",children:E()}):E()};NE.displayName="TreeItem";const zI=NE,AE=S.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:s,onTreeItemUnfold:i,onTreeItemFocus:o,onTreeItemBlur:l,selectedNodesIds:a}=e,[u,c]=S.useState("default");S.useEffect(()=>{a!=null&&a.length&&(a==null?void 0:a.length)>=1?c(a[a.length-1]):c("")},[a]);const f=g=>{c(g),r==null||r(g)},p=g=>{s==null||s(g)},h=g=>{i==null||i(g)},y=g=>{o==null||o(g)},w=g=>{l==null||l(g)},x=g=>d.jsx(zI,{nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:a,selected:u===g.id,onItemSelect:f,onItemFold:p,onItemUnfold:h,onItemFocus:y,onItemBlur:w,children:Array.isArray(g.children)?g.children.map(m=>x(m)):null},g.id);return d.jsx("div",{ref:t,id:"treeview",className:"treeview",children:x(n)})});AE.displayName="TreeView";const IE=AE,_E=S.forwardRef(({children:e},t)=>d.jsx("span",{className:"visually-hidden",ref:t,children:e}));_E.displayName="VisuallyHidden";const sr=_E,BI=async e=>await ae.conf().getPreference(e),VI=async e=>await ae.conf().savePreference(e,JSON.stringify({showOnboardingTrash:!1})),UI=e=>{const[t,n]=S.useState(!0),[r,s]=S.useState(!1);return S.useEffect(()=>{(async()=>{const o=await BI(e);if(o){const{showOnboardingTrash:l}=o;s(l);return}s(!0)})()},[e]),{isOpen:t,setIsOpen:n,isOnboardingTrash:r,handleSavePreference:async()=>{await VI(e),n(!1)}}},ME=({id:e,items:t,modalOptions:n})=>{const[r]=Ys(),[s,i]=S.useState(),[o,l]=S.useState(0),{isOpen:a,isOnboardingTrash:u,setIsOpen:c,handleSavePreference:f}=UI(e),{t:p}=ue(),{title:h,prevText:y,closeText:w,nextText:x}=n;return u?vr.createPortal(d.jsxs(Re,{id:"onboarding-modal",size:"md",isOpen:a,focusId:"nextButtonId",onModalClose:()=>c(!1),children:[d.jsx(Re.Header,{onModalClose:()=>c(!1),children:p(h||"explorer.modal.onboarding.trash.title")}),d.jsx(Re.Body,{children:d.jsx(P2,{modules:[JR],onSwiper:g=>{i(g)},onSlideChange:g=>{l(g.progress)},pagination:{clickable:!0},children:t.map((g,m)=>d.jsxs(O2,{children:[d.jsx(ho,{width:"270",height:"140",className:"mx-auto my-12",loading:"lazy",src:`${r}/${g.src}`,alt:p(g.alt)}),d.jsx("p",{children:p(g.text)})]},m))})}),d.jsxs(Re.Footer,{children:[d.jsx(ze,{type:"button",color:"tertiary",variant:"ghost",onClick:()=>c(!1),children:p("explorer.modal.onboarding.trash.later")}),o>0&&d.jsx(ze,{type:"button",color:"primary",variant:"outline",onClick:()=>s.slidePrev(),children:p(y||"explorer.modal.onboarding.trash.prev")}),o<1&&d.jsx(ze,{id:"nextButtonId",type:"button",color:"primary",variant:"filled",onClick:()=>s.slideNext(),children:p(x||"explorer.modal.onboarding.trash.next")}),o===1&&d.jsx(ze,{type:"button",color:"primary",variant:"filled",onClick:f,children:p(w||"explorer.modal.onboarding.trash.close")})]})]}),document.getElementById("portal")):null};ME.displayName="OnboardingModal";const HI=ME,qI=()=>{const{t:e}=ue();return[{value:"bpr.activityType.classroomActivity",label:e("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:e("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:e("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:e("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:e("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:e("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:e("bpr.activityType.courseElement")},{value:"bpr.other",label:e("bpr.other")}]},WI=({control:e,selectedActivities:t,selectActivities:n})=>{const r=qI(),{t:s}=ue();return d.jsx("div",{className:"col d-flex",children:d.jsx(Jc,{name:"activityType",control:e,rules:{required:!0},render:({field:{onChange:i}})=>d.jsxs(Ee,{block:!0,overflow:!0,children:[d.jsx(Ee.Trigger,{size:"md",label:s("bpr.form.publication.type"),badgeContent:t==null?void 0:t.length}),d.jsx(Ee.Menu,{children:r.map((o,l)=>d.jsx(Ee.CheckboxItem,{value:o.value,model:t,onChange:()=>{n(o.value),i(o.value)},children:o.label},l))})]})})})},GI=["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],z0=({name:e,control:t,placeholderOption:n,validate:r})=>d.jsx(Jc,{name:e,control:t,rules:{required:!0,validate:r},render:({field:{onChange:s}})=>d.jsx(Tg,{block:!0,size:"md",onValueChange:s,options:GI,"aria-required":!0,placeholderOption:n})}),QI=()=>{const{t:e}=ue();return[{value:"de_DE",label:e("de_DE")},{value:"en_EN",label:e("en_EN")},{value:"ar_DZ",label:e("ar_DZ")},{value:"es_ES",label:e("es_ES")},{value:"fr_FR",label:e("fr_FR")},{value:"it_IT",label:e("it_IT")},{value:"ja_JP",label:e("ja_JP")},{value:"zh_CN",label:e("zh_CN")},{value:"pt_PT",label:e("pt_PT")},{value:"ru_RU",label:e("ru_RU")},{value:"bpr.other",label:e("bpr.other")}]},KI="bpr.form.publication.language",XI=({control:e})=>{const t=QI();return d.jsx("div",{className:"col",children:d.jsx(Jc,{name:"language",control:e,rules:{required:!0},render:({field:{onChange:n}})=>d.jsx(Tg,{block:!0,size:"md",onValueChange:n,options:t,"aria-required":!0,placeholderOption:KI})})})},YI=()=>{const{t:e}=ue(),[t]=Ys();return d.jsxs(d.Fragment,{children:[d.jsxs("ul",{className:"mb-12",children:[d.jsxs("li",{children:[e("bpr.form.publication.licence.text.1"),d.jsx("img",{className:"ms-8 d-inline-block",src:`${t}/common/image-creative-commons.png`,alt:"licence creative commons"})]}),d.jsx("li",{children:e("bpr.form.publication.licence.text.2")})]}),d.jsx(Vr,{type:"info",className:"mb-12",children:e("bpr.form.publication.licence.text.3")}),d.jsx(Vr,{type:"warning",children:e("bpr.form.publication.licence.text.4")})]})},JI=()=>{const{t:e}=ue();return[{value:"bpr.subjectArea.artActivity",label:e("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:e("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:e("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:e("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:e("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:e("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:e("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:e("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:e("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:e("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:e("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:e("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:e("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:e("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:e("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:e("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:e("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:e("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:e("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:e("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:e("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:e("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:e("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:e("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:e("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:e("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:e("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:e("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:e("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:e("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:e("bpr.subjectArea.technology")},{value:"bpr.other",label:e("bpr.other")}]},ZI=({control:e,selectedSubjectAreas:t,selectSubjects:n})=>{const r=JI(),{t:s}=ue();return d.jsx("div",{className:"col d-flex",children:d.jsx(Jc,{name:"subjectArea",control:e,rules:{required:!0},render:({field:{onChange:i}})=>d.jsxs(Ee,{block:!0,overflow:!0,children:[d.jsx(Ee.Trigger,{size:"md",label:s("bpr.form.publication.discipline"),badgeContent:t==null?void 0:t.length}),d.jsx(Ee.Menu,{children:r.map((o,l)=>d.jsx(Ee.CheckboxItem,{value:o.value,model:t,onChange:()=>{n(o.value),i(o.value)},children:o.label},l))})]})})})};function B0({formData:e}){const{t}=ue(),n=r=>r.match(/^\s/);return d.jsxs(d.Fragment,{children:[d.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.error.title")}),d.jsx("p",{className:"pt-24 pb-24",children:d.jsx("strong",{children:t("bpr.form.publication.response.error.content")})}),d.jsxs("ul",{children:[n(e.title)&&d.jsx("li",{className:"pt-2 pb-2",children:d.jsx("strong",{children:t("bpr.form.publication.response.empty.title")})}),n(e.description)&&d.jsx("li",{className:"pt-2 pb-2",children:d.jsx("strong",{children:t("bpr.form.publication.response.empty.description")})})]})]})}function e6({result:e}){const{t}=ue();return d.jsxs(d.Fragment,{children:[d.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.success.title")}),d.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.1")}),d.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.2")}),e.details.front_url&&d.jsx("p",{className:"pt-24 pb-24",children:d.jsx("a",{className:"button right-magnet",href:e.details.front_url,target:"_blank",rel:"noreferrer",children:t("bpr.form.publication.response.success.button")})})]})}function t6({onSuccess:e,resource:t}){const{user:n,appCode:r}=Te(),s=ht(),[i,o]=S.useState(t.thumbnail||""),{control:l,register:a,watch:u,setValue:c,handleSubmit:f,formState:{errors:p,isSubmitting:h,isDirty:y,isValid:w}}=sb({mode:"onChange"}),[x,g]=S.useState([]),[m,v]=S.useState([]),b=(L,A,N)=>{let M=[...A];const D=M.findIndex(k=>k===L);A.includes(L)?M=A.filter((k,I)=>I!==D):M=[...A,L],N(M)};return{control:l,cover:i,formState:{errors:p,isSubmitting:h,isDirty:y,isValid:w},handleDeleteImage:()=>o(""),handlePublish:async L=>{const A=n?n==null?void 0:n.userId:"";try{let N=new Blob;typeof i=="string"?N=await ae.http().get(i,{responseType:"blob"}):i?N=await ae.http().get(URL.createObjectURL(i),{responseType:"blob"}):t.thumbnail&&(N=await ae.http().get(t.thumbnail,{responseType:"blob"}));const M=await ae.http().get(`/userbook/avatar/${A}?thumbnail=48x48`,{responseType:"blob"}),D=await ae.http().get(`/directory/user/${A}/attachment-school`,{responseType:"json"}),k=wg[r],I={activityType:x,age:[L.ageMin,L.ageMax],application:k,cover:N,description:L.description,keyWords:L.keyWords,language:L.language,licence:"CC-BY",resourceId:t.assetId,resourceEntId:t.assetId,subjectArea:m,teacherAvatar:M,title:L.title,userId:A,userStructureName:D.name||(n==null?void 0:n.structureNames[0])},z=await ae.resource(r).publish(I);z.success?s.success(d.jsx(e6,{result:z}),{duration:1e4}):s.error(d.jsx(B0,{formData:L})),e==null||e()}catch(N){console.error(N),s.error(d.jsx(B0,{formData:L}))}},handleSubmit:f,handleUploadImage:L=>o(L),register:a,selectActivities:L=>{b(L,x,g)},selectedActivities:x,selectedSubjectAreas:m,selectSubjects:L=>{b(L,m,v)},setValue:c,watch:u}}function n6({isOpen:e,resource:t,onSuccess:n,onCancel:r}){const{currentApp:s}=Te(),{t:i}=ue(),{control:o,cover:l,formState:{isDirty:a,isValid:u,isSubmitting:c},handleDeleteImage:f,handleSubmit:p,handleUploadImage:h,handlePublish:y,register:w,selectActivities:x,selectedActivities:g,selectedSubjectAreas:m,selectSubjects:v}=t6({resource:t,onSuccess:n}),b="bpr.form.publication.age.min",E="bpr.form.publication.age.max";return vr.createPortal(d.jsxs(Re,{isOpen:e,onModalClose:r,id:"libraryModal",size:"lg",children:[d.jsx(Re.Header,{onModalClose:r,children:i("bpr.publish")}),d.jsx(Re.Subtitle,{children:i("bpr.form.tip")}),d.jsxs(Re.Body,{children:[d.jsx(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.heading.general")}),d.jsxs("form",{id:"libraryModalForm",onSubmit:p(y),children:[d.jsxs("div",{className:"d-block d-md-flex mb-24 gap-24",children:[d.jsxs("div",{style:{maxWidth:"160px"},children:[d.jsx("div",{className:"form-label",children:i("bpr.form.publication.cover.title")}),d.jsx(Cg,{app:s,src:t.thumbnail,label:i("bpr.form.publication.cover.upload.label"),addButtonLabel:i("bpr.form.publication.cover.upload.add"),deleteButtonLabel:i("bpr.form.publication.cover.upload.remove"),onUploadImage:h,onDeleteImage:f,className:"align-self-center"}),!l&&d.jsx("p",{className:"form-text is-invalid",children:d.jsx("em",{children:i("bpr.form.publication.cover.upload.required.image")})})]}),d.jsxs("div",{className:"flex-fill",children:[d.jsxs(Qe,{id:"title",className:"mb-16",isRequired:!0,children:[d.jsx(_s,{children:i("bpr.form.publication.title")}),d.jsx(rs,{type:"text",defaultValue:t.name,...w("title",{required:!0}),placeholder:i("bpr.form.publication.title.placeholder"),size:"md","aria-required":!0})]}),d.jsxs(Qe,{id:"description",isRequired:!0,children:[d.jsx(_s,{children:i("bpr.form.publication.description")}),d.jsx(jg,{...w("description",{required:!0}),placeholder:i("bpr.form.publication.description.placeholder"),size:"md"})]})]})]}),d.jsx("hr",{}),d.jsx(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.heading.infos")}),d.jsxs("div",{className:"d-flex flex-column flex-md-row gap-16 row mb-24",children:[d.jsx(WI,{control:o,selectedActivities:g,selectActivities:x}),d.jsx(ZI,{control:o,selectedSubjectAreas:m,selectSubjects:v}),d.jsx(XI,{control:o})]}),d.jsxs("div",{className:"mb-24",children:[d.jsx("label",{htmlFor:"",className:"form-label",children:i("bpr.form.publication.age")}),d.jsxs("div",{className:"d-flex gap-8",children:[d.jsx("div",{className:"col col-2",children:d.jsx(z0,{control:o,name:"ageMin",placeholderOption:b,validate:(T,C)=>parseInt(T)<=parseInt(C.ageMax)})}),d.jsx("div",{className:"col col-2",children:d.jsx(z0,{control:o,name:"ageMax",placeholderOption:E,validate:(T,C)=>parseInt(T)>=parseInt(C.ageMin)})})]})]}),d.jsx("div",{className:"mb-24",children:d.jsxs(Qe,{id:"keywords",isOptional:!0,children:[d.jsx(_s,{children:i("bpr.form.publication.keywords")}),d.jsx(rs,{type:"text",...w("keyWords"),size:"md",placeholder:i("bpr.form.publication.keywords.placeholder")})]})}),d.jsx("hr",{}),d.jsx(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.licence.text")}),d.jsx(YI,{})]})]}),d.jsxs(Re.Footer,{children:[d.jsx(ze,{color:"tertiary",onClick:r,type:"button",variant:"ghost",children:i("cancel")}),d.jsx(ze,{form:"libraryModalForm",type:"submit",color:"primary",variant:"filled",isLoading:c,disabled:!l||c||!a||!u,children:i("bpr.form.submit")})]})]}),document.getElementById("portal"))}const r6=({watch:e,selectedResource:t})=>{const[n,r]=S.useState(""),[s,i]=S.useState(!!(t!=null&&t.public)||!1),o=S.useId(),l=e("title"),{t:a}=ue(),u=ht(),c=`${A2({foo:`${l}${o}`})}-${_2(l)}`;S.useEffect(()=>{if(s){let h="";t&&t.slug?h=t.slug:h=c,r(h)}},[s,t,l,o,c]);function f(h){i(h)}function p(){navigator.clipboard.writeText(`${window.location.origin}${window.location.pathname}/pub/${n}`),u.success(a("explorer.copy.clipboard"))}return{slug:n,uniqueId:o,isPublic:s,resourceName:l,onPublicChange:f,onCopyToClipBoard:p}},s6=({isUpdating:e,selectedResource:t})=>{const[n,r]=S.useState(e&&(t==null?void 0:t.thumbnail)||"");return{thumbnail:n,handleDeleteImage:()=>r(""),handleUploadImage:o=>r(o)}},i6=({appCode:e,isPublic:t,onCopyToClipBoard:n,onPublicChange:r,register:s,slug:i,resourceName:o})=>{const{t:l}=ue();return d.jsxs(d.Fragment,{children:[d.jsxs(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:[l("explorer.resource.editModal.heading.access"),e]}),d.jsx(Vr,{type:"info",children:l("explorer.resource.editModal.access.alert")}),d.jsxs(Qe,{id:"flexSwitchCheckDefault",className:"form-switch d-flex gap-8 mt-16 mb-8",children:[d.jsx(Qe.Input,{type:"checkbox",role:"switch",...s("enablePublic",{disabled:!t&&!o,onChange:a=>{r(a.target.checked)}}),className:"form-check-input mt-0",size:"md"}),d.jsx(Qe.Label,{className:"form-check-label mb-0",children:l("explorer.resource.editModal.access.flexSwitchCheckDefault.label")})]}),t&&d.jsxs("div",{className:"d-flex flex-wrap align-items-center gap-4",children:[d.jsxs("p",{className:"text-break",children:[window.location.origin,window.location.pathname,"/pub/",i]}),d.jsx(ze,{color:"primary",disabled:!t,onClick:n,type:"button",leftIcon:d.jsx(OT,{}),variant:"ghost",className:"text-nowrap",children:l("explorer.resource.editModal.access.url.button")})]})]})},Ac=(e,t)=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},o6=({isOpen:e,actions:t,onCancel:n,onSuccess:r,...s})=>{var i,o,l,a,u,c;const{appCode:f,currentApp:p}=Te(),{t:h}=ue(),{mode:y}=s,w=S.useId(),x=y==="create",g=y==="update",{watch:m,register:v,handleSubmit:b,formState:{isSubmitting:E,isValid:T}}=sb({mode:"onChange",defaultValues:{description:g?(i=s.selectedResource)==null?void 0:i.description:"",enablePublic:g?(o=s.selectedResource)==null?void 0:o.public:!1,title:g?(l=s.selectedResource)==null?void 0:l.name:""}}),{slug:C,uniqueId:R,isPublic:j,resourceName:L,onPublicChange:A,onCopyToClipBoard:N}=r6({watch:m,selectedResource:g?s.selectedResource:void 0}),M=ht(),{thumbnail:D,handleDeleteImage:k,handleUploadImage:I}=s6({isUpdating:g}),z=async function(_){var $,V;try{const ne={description:_.description||"",name:_.title,public:_.enablePublic,thumbnail:D},re=`${A2({foo:`${_.title}${R}`})}-${_2(_.title)}`;x?await s.createResource.mutateAsync({...ne,folder:(($=s.currentFolder)==null?void 0:$.id)==="default"?void 0:parseInt(((V=s.currentFolder)==null?void 0:V.id)||""),slug:_.enablePublic?re:"",app:f}):await s.updateResource.mutateAsync({...ne,slug:_.enablePublic?s.selectedResource&&s.selectedResource.slug?s.selectedResource.slug:re:"",entId:s.selectedResource.assetId,trashed:s.selectedResource.trashed}),M.success(d.jsxs(d.Fragment,{children:[d.jsx("strong",{children:h(x?"explorer.resource.created":"explorer.resource.updated")}),d.jsxs("p",{children:[h("title")," : ",_.title]}),d.jsxs("p",{children:[h("description")," : ",_.description]}),f===Ho.BLOG&&d.jsxs("p",{children:["Public:",_.enablePublic?h("explorer.enable.public.yes"):h("explorer.enable.public.no")]})]})),r()}catch(ne){console.error(ne)}};return vr.createPortal(d.jsxs(Re,{id:`${y}-resource`,size:"lg",isOpen:e,onModalClose:n,children:[d.jsx(Re.Header,{onModalClose:n,children:h(`explorer.resource.editModal.header.${x?"create":"edit"}`)}),d.jsxs(Re.Body,{children:[d.jsx(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:h("explorer.resource.editModal.heading.general")}),d.jsxs("form",{id:w,onSubmit:b(z),children:[d.jsxs("div",{className:"d-block d-md-flex gap-16 mb-24",children:[d.jsx("div",{children:d.jsx(Cg,{app:p,src:g&&((a=s.selectedResource)==null?void 0:a.thumbnail)||"",label:h("explorer.imagepicker.label"),addButtonLabel:h("explorer.imagepicker.button.add"),deleteButtonLabel:h("explorer.imagepicker.button.delete"),onUploadImage:I,onDeleteImage:k,className:"align-self-center mt-8"})}),d.jsxs("div",{className:"col",children:[d.jsxs(Qe,{id:"title",className:"mb-16",isRequired:!0,children:[d.jsx(_s,{children:h("title")}),d.jsx(rs,{type:"text",defaultValue:g?(u=s.selectedResource)==null?void 0:u.name:"",...v("title",{required:!0,pattern:{value:/[^ ]/,message:"invalid title"}}),placeholder:h("explorer.resource.editModal.title.placeholder"),size:"md","aria-required":!0})]}),d.jsxs(Qe,{id:"description",isOptional:!0,children:[d.jsx(_s,{children:h("description")}),d.jsx(jg,{defaultValue:g?(c=s.selectedResource)==null?void 0:c.description:"",...v("description"),placeholder:h("explorer.resource.editModal.description.placeholder"),size:"md"})]})]})]}),f===Ho.BLOG&&Ac({workflow:"createPublic",actions:t})&&d.jsx(i6,{appCode:f,isPublic:j,slug:C,onCopyToClipBoard:N,onPublicChange:A,register:v,resourceName:L})]})]}),d.jsxs(Re.Footer,{children:[d.jsx(ze,{color:"tertiary",onClick:n,type:"button",variant:"ghost",children:h("explorer.cancel")}),d.jsx(ze,{form:w,type:"submit",color:"primary",isLoading:E,variant:"filled",disabled:!T||E,children:h(x?"explorer.create":"save")})]})]}),document.getElementById("portal"))},a6=o6;function l6({radioPublicationValue:e,onRadioPublicationChange:t}){const{appCode:n}=Te(),{t:r}=ue(n);return d.jsxs(d.Fragment,{children:[d.jsx("hr",{}),d.jsx(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("explorer.publication.steps")}),d.jsx(Nc,{label:r("explorer.immediat.publication"),id:"publication-now",name:"publication",value:"IMMEDIATE",model:e,checked:e==="IMMEDIATE",onChange:s=>t(s.target.value)}),d.jsx(Nc,{label:r("explorer.validate.publication"),id:"publication-validate",name:"publication",value:"RESTRAINT",checked:e==="RESTRAINT",model:e,onChange:s=>t(s.target.value)})]})}const u6={searchInputValue:"",searchResults:[],searchAPIResults:[],searchPending:!1,isLoading:!1};function c6(e,t){switch(t.type){case"onChange":return{...e,searchInputValue:t.payload};case"isSearching":return{...e,isLoading:t.payload};case"addResult":return{...e,searchResults:t.payload};case"addApiResult":return{...e,searchAPIResults:t.payload};case"updateSearchResult":return{...e,searchResults:t.payload};case"emptyResult":return{...e,searchResults:t.payload};default:throw new Error("Unhandled action type")}}const Ff=[{id:"read",displayName:"read"},{id:"comment",displayName:"comment"}],d6=({resource:e,shareRights:t,shareDispatch:n})=>{const[r,s]=S.useReducer(c6,u6),i=wS(r.searchInputValue,500),{isAdml:o}=CS(),{appCode:l}=Te();S.useEffect(()=>{u(i)},[i]);const a=y=>{const w=y.target.value;s({type:"onChange",payload:w})},u=async y=>{if(s({type:"isSearching",payload:!0}),!o&&y.length>=1||o&&y.length>=3){const w=await ae.share().searchShareSubjects(l,e.assetId,y);s({type:"addApiResult",payload:w});const x=w.filter(g=>!t.rights.find(m=>m.id===g.id)).filter(g=>!(g.type==="user"&&g.id===e.creatorId)).map(g=>({value:g.id,label:g.displayName,icon:g.type==="sharebookmark"?Rm:null}));s({type:"addResult",payload:x})}else s({type:"emptyResult",payload:[]}),Promise.resolve();s({type:"isSearching",payload:!1})};return{state:r,showSearchAdmlHint:()=>o&&r.searchInputValue.length<3,showSearchLoading:()=>r.searchPending&&r.searchInputValue.length>0,showSearchNoResults:()=>!r.searchPending&&!o&&i.length>0&&r.searchResults.length===0||!r.searchPending&&o&&i.length>3&&r.searchResults.length===0,handleSearchInputChange:a,handleSearchResultsChange:async y=>{const w=r.searchAPIResults.find(x=>x.id===y[0]);if(w){let x=[];if(w.type==="sharebookmark"){const g=await ae.directory().getBookMarkById(w.id);x.push({...g,type:"sharebookmark",avatarUrl:"",directoryUrl:"",actions:Ff}),g==null||g.users.filter(m=>!t.rights.find(v=>v.id===m.id)).forEach(m=>{x.push({...m,type:"user",avatarUrl:"",directoryUrl:"",actions:Ff,isBookmarkMember:!0})}),g.groups.filter(m=>!t.rights.find(v=>v.id===m.id)).forEach(m=>{x.push({...m,type:"group",avatarUrl:"",directoryUrl:"",actions:Ff,isBookmarkMember:!0})})}else x=[{...w,actions:[{id:"read",displayName:"read"},{id:"comment",displayName:"comment"}]}];n({type:"updateShareRights",payload:{...t,rights:[...t.rights,...x]}}),s({type:"updateSearchResult",payload:r.searchResults.filter(g=>g.value!==y[0])})}}}},f6={isSharing:!1,shareRights:{rights:[],visibleBookmarks:[],visibleGroups:[],visibleUsers:[]},shareRightActions:[]};function p6(e,t){switch(t.type){case"init":return{...e,...t.payload};case"deleteRow":return{...e,shareRights:t.payload};case"updateShareRights":return{...e,shareRights:t.payload};case"toggleRight":return{...e,shareRights:t.payload};case"isSharing":return{...e,isSharing:!0};default:throw new Error("Unhandled action type")}}function h6({onSuccess:e,resource:t,updateResource:n,shareResource:r}){const{appCode:s}=Te(),{user:i,avatar:o}=Ed(),[l,a]=S.useReducer(p6,f6);return S.useEffect(()=>{(async()=>{const h=await ae.share().getActionsForApp(s),y=await ae.share().getRightsForResource(s,t.assetId);a({type:"init",payload:{shareRightActions:h,shareRights:y}})})()},[]),{state:l,dispatch:a,currentIsAuthor:()=>!!(t&&t.creatorId===(i==null?void 0:i.userId)),myAvatar:o,handleDeleteRow:h=>{a({type:"deleteRow",payload:{...l.shareRights,rights:l.shareRights.rights.filter(y=>{var w,x;return y.id!==h.id&&!((w=h.users)!=null&&w.find(g=>g.id===y.id))&&!((x=h.groups)!=null&&x.find(g=>g.id===y.id))})}})},handleShare:async h=>{a({type:"isSharing",payload:!0});try{const y=t.rights.filter(x=>i&&x.includes(`user:${i.userId}`)).map(x=>x.split(":")[2]).filter(x=>!!x),w=[...l.shareRights.rights];if(y.length>0){const x=y.map(g=>({displayName:g,id:g}));w.push({actions:x,avatarUrl:"",directoryUrl:"",displayName:i.username,id:i.userId,type:"user"})}s==="blog"?await n.mutateAsync(h):await n.mutateAsync({entId:t.assetId||"",trashed:t.trashed||!1,name:t.name||"",thumbnail:t.thumbnail||"",description:t.description||"",public:t.public||!1,slug:t.slug||""}),await r.mutateAsync({resourceId:t.assetId,rights:w}),e==null||e()}catch(y){console.error("Failed to save share",y)}finally{a({type:"isSharing",payload:!1})}},toggleRight:(h,y)=>{var w,x;const{rights:g,...m}=l.shareRights,v=[...g],b=v.findIndex(C=>C.id===h.id),E=l.shareRightActions.filter(C=>C.id===y)[0];if(v[b].actions.findIndex(C=>C.id===y)>-1){let C=v[b].actions.filter(j=>j.id!==y);const R=l.shareRightActions.filter(j=>{var L;return(L=j.requires)==null?void 0:L.includes(y)});C=C.filter(j=>!R.find(L=>L.id===j.id)),v[b]={...v[b],actions:C}}else{const C=l.shareRightActions.filter(R=>{var j;return((j=E.requires)==null?void 0:j.includes(R.id))&&!v[b].actions.find(L=>L.id===R.id)});v[b]={...v[b],actions:[...v[b].actions,E,...C]}}h.type==="sharebookmark"&&((w=v[b].users)==null||w.forEach(C=>{const R=v.findIndex(j=>j.id===C.id);v[R]={...v[R],actions:v[b].actions}}),(x=v[b].groups)==null||x.forEach(C=>{const R=v.findIndex(j=>j.id===C.id);v[R]={...v[R],actions:v[b].actions}})),a({type:"toggleRight",payload:{rights:v,...m}})}}}function m6({resource:e}){const{assetId:t,description:n,thumbnail:r,name:s,public:i,trashed:o,slug:l,"publish-type":a}=e||{"publish-type":"",assetId:"",description:"",name:"",public:!1,slug:"",thumbnail:"",trashed:!1},[u,c]=S.useState(a||"RESTRAINT"),[f,p]=S.useState({description:n||"",entId:t,name:s,public:!!i,slug:l||"",thumbnail:r,trashed:o,"publish-type":a});return S.useEffect(()=>{u&&p(y=>({...y,"publish-type":u}))},[u]),{radioPublicationValue:u,shareBlogPayload:f,handleRadioPublicationChange:async y=>{c(y)}}}const g6=({shareRights:e,shareDispatch:t})=>{const n=ht(),{t:r}=ue(),s=S.useRef(null),[i,o]=S.useState({name:"",id:S.useId()}),[l,a]=yg(!1),[u,c]=S.useState(!1),f=()=>{a()},p=()=>{o(w=>{var x;return{...w,name:((x=s.current)==null?void 0:x.value)||""}})},h=async w=>{try{const x=await ae.directory().saveBookmarks(w,{users:e.rights.filter(g=>g.type==="user").map(g=>g.id),groups:e.rights.filter(g=>g.type==="group").map(g=>g.id),bookmarks:e.rights.filter(g=>g.type==="sharebookmark").map(g=>g.id)});n.success(r("explorer.bookmarked.status.saved")),t({type:"updateShareRights",payload:{...e,visibleBookmarks:[...e.visibleBookmarks,{displayName:w,id:x.id}]}}),o(g=>({...g,bookmarkId:g.id+new Date().getTime().toString()})),c(!1)}catch(x){console.error("Failed to save bookmark",x),n.error(r("explorer.bookmarked.status.error"))}};return{refBookmark:s,showBookmark:l,showBookmarkInput:u,bookmark:i,handleBookmarkChange:p,setBookmark:o,handleOnSave:()=>{var w;const x=((w=s.current)==null?void 0:w.value)||"";h(x)},toggleBookmark:f,toggleBookmarkInput:c}},v6=({bookmark:e,refBookmark:t,onBookmarkChange:n,onSave:r})=>{const{t:s}=ue();return d.jsx("div",{className:"mt-16",children:d.jsxs(Qe,{id:"bookmarkName",className:"d-flex flex-wrap align-items-center gap-16",children:[d.jsx("div",{className:"flex-fill",children:d.jsx(Qe.Input,{ref:t,onChange:n,placeholder:s("explorer.modal.share.sharebookmark.placeholder"),size:"sm",type:"text"},e.id)}),d.jsx(ze,{type:"button",color:"primary",variant:"ghost",disabled:e.name.length===0,leftIcon:d.jsx(t5,{}),onClick:r,className:"text-nowrap",children:s("explorer.modal.share.sharebookmark.save")})]})})},y6=(e,t)=>e.actions.filter(n=>t.id===n.id).length>0,w6=(e,t)=>e.isBookmarkMember&&t||!e.isBookmarkMember,x6=({shareRights:e,showBookmark:t,toggleBookmark:n,shareRightActions:r,toggleRight:s,onDeleteRow:i})=>{const{t:o}=ue();return e==null?void 0:e.rights.map(l=>w6(l,t)&&d.jsxs("tr",{className:l.isBookmarkMember?"bg-light":"",children:[d.jsxs("td",{children:[l.type!=="sharebookmark"&&d.jsx(Ws,{alt:o("explorer.modal.share.avatar.shared.alt"),size:"xs",src:l.avatarUrl,variant:"circle"}),l.type==="sharebookmark"&&d.jsx(Rm,{})]}),d.jsx("td",{children:d.jsxs("div",{className:"d-flex",children:[l.type==="sharebookmark"&&d.jsx(ze,{color:"tertiary",rightIcon:d.jsx(Na,{title:"Show",className:"w-16 min-w-0",style:{transition:"rotate 0.2s ease-out",rotate:t?"-180deg":"0deg"}}),type:"button",variant:"ghost",className:"fw-normal ps-0",onClick:n,children:l.displayName}),l.type!=="sharebookmark"&&l.displayName]})}),r.map(a=>d.jsx("td",{style:{width:"80px"},className:"text-center text-white",children:d.jsx(Cd,{checked:y6(l,a),onChange:()=>s(l,a.id)})},a.displayName)),d.jsx("td",{children:!l.isBookmarkMember&&d.jsx(hr,{"aria-label":"Delete",color:"tertiary",icon:d.jsx(ob,{}),type:"button",variant:"ghost",title:"Delete",onClick:()=>i(l)})})]},l.id))};function b6({isOpen:e,resource:t,updateResource:n,shareResource:r,onSuccess:s,onCancel:i}){const{appCode:o}=Te(),{radioPublicationValue:l,shareBlogPayload:a,handleRadioPublicationChange:u}=m6({resource:t}),{state:{isSharing:c,shareRights:f,shareRightActions:p},dispatch:h,myAvatar:y,currentIsAuthor:w,handleShare:x,toggleRight:g,handleDeleteRow:m}=h6({resource:t,updateResource:n,shareResource:r,onSuccess:s}),{state:{searchResults:v,searchInputValue:b},showSearchAdmlHint:E,showSearchLoading:T,showSearchNoResults:C,handleSearchInputChange:R,handleSearchResultsChange:j}=d6({resource:t,shareRights:f,shareDispatch:h}),{refBookmark:L,showBookmark:A,handleBookmarkChange:N,toggleBookmark:M,bookmark:D,handleOnSave:k,showBookmarkInput:I,toggleBookmarkInput:z}=g6({shareRights:f,shareDispatch:h}),{t:_}=ue(),$=E()?_("explorer.search.adml.hint"):_("explorer.modal.share.search.placeholder");return vr.createPortal(d.jsxs(Re,{id:"share_modal",size:"lg",isOpen:e,onModalClose:i,children:[d.jsx(Re.Header,{onModalClose:i,children:_("share.title")}),d.jsxs(Re.Body,{children:[d.jsx(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:_("explorer.modal.share.usersWithAccess")}),d.jsx("div",{className:"table-responsive",children:d.jsxs("table",{className:"table border align-middle mb-0",children:[d.jsx("thead",{className:"bg-secondary",children:d.jsxs("tr",{children:[d.jsx("th",{scope:"col",className:"w-32",children:d.jsx(sr,{children:_("explorer.modal.share.avatar.shared.alt")})}),d.jsx("th",{scope:"col",children:d.jsx(sr,{children:_("explorer.modal.share.search.placeholder")})}),p.map(V=>d.jsx("th",{scope:"col",className:"text-center text-white",children:_(V.displayName)},V.displayName)),d.jsx("th",{scope:"col",children:d.jsx(sr,{children:_("close")})})]})}),d.jsxs("tbody",{children:[w()&&d.jsxs("tr",{children:[d.jsx("th",{scope:"row",children:d.jsx(Ws,{alt:_("explorer.modal.share.avatar.me.alt"),size:"xs",src:y,variant:"circle"})}),d.jsx("td",{children:_("share.me")}),p.map(V=>d.jsx("td",{style:{width:"80px"},className:"text-center text-white",children:d.jsx(Cd,{checked:!0,disabled:!0})},V.displayName)),d.jsx("td",{})]}),d.jsx(x6,{showBookmark:A,shareRightActions:p,shareRights:f,onDeleteRow:m,toggleRight:g,toggleBookmark:M})]})]})}),d.jsxs("div",{className:"mt-16",children:[d.jsx(ze,{color:"tertiary",leftIcon:d.jsx(Rm,{}),rightIcon:d.jsx(Na,{title:"Show",className:"w-16 min-w-0",style:{transition:"rotate 0.2s ease-out",rotate:I?"-180deg":"0deg"}}),type:"button",variant:"ghost",className:"fw-normal",onClick:()=>z(!I),children:_("share.save.sharebookmark")}),I&&d.jsx(v6,{refBookmark:L,bookmark:D,onBookmarkChange:N,onSave:k})]}),d.jsx("hr",{}),d.jsxs(an,{headingStyle:"h4",level:"h3",className:"mb-16 d-flex align-items-center",children:[d.jsx("div",{className:"me-8",children:_("explorer.modal.share.search")}),d.jsx(OE,{message:"Vos favoris de partage s’affichent en priorité dans votre liste lorsque vous recherchez un groupe ou une personne, vous pouvez les retrouver dans l’annuaire.",placement:"top",children:d.jsx(lb,{className:"c-pointer",height:"18"})})]}),d.jsx("div",{className:"row",children:d.jsx("div",{className:"col-10",children:d.jsx(pE,{value:b,placeholder:$,isLoading:T(),noResult:C(),options:v,onSearchInputChange:R,onSearchResultsChange:j})})}),o==="blog"&&d.jsx(l6,{radioPublicationValue:l,onRadioPublicationChange:u})]}),d.jsxs(Re.Footer,{children:[d.jsx(ze,{type:"button",color:"tertiary",variant:"ghost",onClick:i,children:_("explorer.cancel")}),d.jsx(ze,{type:"button",color:"primary",variant:"filled",isLoading:c,onClick:()=>x(a),disabled:c,children:_("share")})]})]}),document.getElementById("portal"))}function $f({children:e}){return d.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function zf({children:e,className:t,...n}){const r=J("navbar",t);return d.jsx("nav",{className:r,...n,children:e})}function V0({children:e,className:t,...n}){const r=J("navbar-nav",t);return d.jsx("ul",{className:r,...n,children:e})}const _e=S.forwardRef(({children:e,className:t,...n},r)=>{const s=J("nav-item",t);return d.jsx("li",{ref:r,className:s,...n,children:e})});_e.displayName="NavItem";function Mo({link:e,className:t,children:n,translate:r,...s}){const i=J("nav-link",t);return d.jsxs("a",{href:e,className:i,...s,children:[n,r&&d.jsx(sr,{children:d.jsx("span",{className:"nav-text",children:r})})]})}const S6=()=>{const{t:e}=ue();return d.jsx("div",{className:"widget-footer",children:d.jsx("div",{className:"widget-footer-action",children:d.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},E6=({bookmarkedApps:e})=>{const{t}=ue();return d.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&d.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>d.jsx("a",{href:n.address,className:"bookmarked-app",children:d.jsx(qs,{app:n,size:"32"})},r))]})};function U0({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=ue(),o=()=>{t(!1)};return e?vr.createPortal(d.jsxs(Re,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"lg",children:[d.jsx(Re.Header,{onModalClose:o,children:i("navbar.help")}),d.jsx(Re.Subtitle,{children:s?i("help.notfound.title"):n}),d.jsx(Re.Body,{className:s?"d-flex":null,children:s?i("help.notfound.text"):r})]}),document.getElementById("portal")):null}function C6(){var e;const{appCode:t}=Te(),{theme:n}=bd(),[r,s]=S.useState(""),[i,o]=S.useState(!0),[l,a]=S.useState(!1),[u,c]=S.useState(!1),f=n!=null&&n.is1d?"/help-1d":"/help-2d";S.useEffect(()=>{(async()=>{let x="";x=f+"/application/"+t+"/",!t&&window.location.pathname!=="/adapter"?x=f+"/application/portal/":window.location.pathname==="/adapter"?x=f+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?x=f+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(x=f+"/application/userbook/");try{const g=await fetch(x),m=await g.text();if(g.status===404){c(!0);return}s(m),c(!1)}catch(g){c(!0),console.error(g)}})()},[t,f]);const h=ds(r,{replace:x=>{const g=x;if(g.attribs&&g.attribs.id==="TOC")return d.jsxs("nav",{id:"TOC",children:[d.jsx(ze,{onClick:()=>{o(!i)},children:d.jsx(TT,{})}),ru(g.children,{replace:m=>{const v=m;if(v.attribs&&v.name==="ul")return d.jsx("ul",{id:"TOC-list",style:{display:i?"block":"none"},children:ru(v.children,{replace:b=>{const E=b;if(E.attribs&&E.name==="a")return d.jsx("a",{...Lf(E.attribs),children:d.jsx("span",{onClick:()=>{o(!1)},children:ru(E.children)})})}})})}})]});if(g.attribs&&g.attribs.class==="section level2"){const m=Lf(x.attribs);return d.jsx("div",{...m,className:"section level2",style:{display:g.attribs.id!=="présentation"?"none":"block"},children:ru(g.children,{replace:v=>{const b=v;if(b.attribs&&b.name==="img"){const E=v.attribs.src;return d.jsx("img",{...Lf(b.attribs),src:`${f}/${E}`,alt:""})}}})})}}}),y=(e=h==null?void 0:h.props)==null?void 0:e.children.find(x=>x.type==="body").props.children,w=y==null?void 0:y.find(x=>x.type==="p").props.children;return{html:r,visibility:i,isModalOpen:l,setIsModalOpen:a,parsedContent:y,parsedHeadline:w,error:u}}const LE=()=>{const[e,t]=vg(),n=S.useRef(null),r=S.useId(),{t:s}=ue();function i(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return d.jsxs(_e,{id:r,ref:e,className:"position-relative","aria-haspopup":"true","aria-expanded":t,children:[d.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[d.jsx(BR,{className:"icon search"}),d.jsx("span",{className:"nav-text",children:s("navbar.search")})]}),d.jsx(jd,{id:r,isVisible:t,className:"d-none d-md-flex",children:d.jsxs(Qe,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[d.jsx(Qe.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),d.jsx(bg,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};LE.displayName="SearchEngine";const k6=LE,DE=({is1d:e=!1,src:t=""})=>{const{t:n}=ue(),{messages:r,msgLink:s,zimbraWorkflow:i}=mS(),{user:o,avatar:l}=Ed(),{currentLanguage:a}=Te(),{isModalOpen:u,setIsModalOpen:c,parsedContent:f,parsedHeadline:p,error:h}=C6(),y=J("header",{"no-2d":e,"no-1d":!e}),{title:w,bookmarkedApps:x,appsRef:g,isAppsHovered:m,popoverAppsId:v,userAvatar:b,userName:E,welcomeUser:T,communityWorkflow:C,conversationWorflow:R,searchWorkflow:j,isCollapsed:L,toggleCollapsedNav:A,handleLogout:N}=ES({user:o,avatar:l}),M=r>0;return d.jsx("header",{className:y,children:e?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"container-fluid",children:d.jsxs(zf,{children:[d.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:w}),d.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[d.jsx(Ws,{alt:E,size:"sm",src:b,variant:"circle",width:"32",height:"32"}),d.jsx("span",{className:"navbar-text",children:T})]}),d.jsxs(V0,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[R&&d.jsx(_e,{children:d.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[d.jsx(FR,{className:"icon notification"}),M&&d.jsx($f,{children:r}),d.jsx(sr,{children:n("navbar.messages")})]})}),d.jsx(_e,{children:d.jsx(Mo,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:d.jsx(p2,{className:"icon user"})})}),a==="fr"?d.jsxs(_e,{children:[d.jsxs("button",{className:"nav-link",onClick:()=>{c(!0)},children:[d.jsx(LR,{className:"icon help"}),d.jsx(sr,{children:n("navbar.help")})]}),d.jsx(U0,{isHelpOpen:u,setIsHelpOpen:c,parsedContent:f,parsedHeadline:p,error:h})]}):null,d.jsx(_e,{children:d.jsxs("button",{className:"nav-link",onClick:N,children:[d.jsx(d0,{className:"icon logout"}),d.jsx(sr,{children:n("navbar.disconnect")})]})}),d.jsx(_e,{className:"d-md-none",children:d.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!L,"aria-label":n("navbar.secondary.navigation"),onClick:A,children:d.jsx(Na,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),d.jsx(zf,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:d.jsx("div",{className:"container-fluid",children:d.jsxs("div",{className:`collapse navbar-collapse ${L?"":"show"}`,id:"navbarCollapsed",children:[d.jsx(kh,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),d.jsxs(V0,{className:"gap-8",children:[d.jsx(_e,{children:d.jsxs("a",{href:"/timeline/timeline",className:"button",children:[d.jsx(_R,{color:"#fff",className:"d-md-none"}),d.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),d.jsx(_e,{children:d.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[d.jsx(UR,{color:"#fff",className:"d-md-none"}),d.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),d.jsx(_e,{children:d.jsxs("a",{href:"/welcome",className:"button",children:[d.jsx(f0,{color:"#fff",className:"d-md-none"}),d.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):d.jsx(zf,{className:"navbar-expand-md",children:d.jsxs("div",{className:"container-fluid",children:[d.jsx(kh,{src:`${t}/img/illustrations/logo.png`}),d.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:w}),d.jsxs("ul",{className:"navbar-nav",children:[d.jsx(_e,{children:d.jsx(Mo,{link:"/timeline/timeline",translate:n("navbar.home"),children:d.jsx(PR,{color:"#fff"})})}),d.jsxs(_e,{className:"position-relative",ref:g,id:v,"aria-haspopup":"true","aria-expanded":m,children:[d.jsx(Mo,{link:"/welcome",translate:n("navbar.applications"),children:d.jsx(f0,{color:"#fff"})}),d.jsxs(jd,{className:"top-100 widget",id:v,isVisible:m,children:[d.jsx(kE,{children:d.jsx(E6,{bookmarkedApps:x})}),d.jsx(TE,{className:"widget-footer border-top border-ghost",children:d.jsx(S6,{})})]})]}),R&&d.jsx(_e,{children:d.jsxs(Mo,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[d.jsx(p0,{color:"#fff"}),M&&d.jsx($f,{children:r})]})}),i&&d.jsx(_e,{children:d.jsxs(Mo,{className:"position-relative",link:s,translate:n("conversation"),children:[d.jsx(p0,{color:"#fff"}),M&&d.jsx($f,{children:r})]})}),a==="fr"?d.jsxs(_e,{children:[d.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{c(!0)},children:[d.jsx(NR,{color:"#fff"}),d.jsx(sr,{children:n("support")})]}),d.jsx(U0,{isHelpOpen:u,setIsHelpOpen:c,parsedContent:f,parsedHeadline:p,error:h})]}):null,d.jsx(_e,{children:d.jsxs("div",{className:"dropdown",children:[d.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!L,"aria-label":n("navbar.open.menu"),onClick:A,children:d.jsx(Na,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),d.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${L?"":"show"}`,id:"dropdown-navbar",children:[C&&d.jsx(_e,{children:d.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[d.jsx(kR,{className:"icon community"}),d.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),j?d.jsx(k6,{}):null,d.jsx(_e,{children:d.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[d.jsx(Ws,{alt:E,size:"sm",src:b,variant:"circle",className:"bg-white",width:"32",height:"32"}),d.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),d.jsx(_e,{children:d.jsx("hr",{className:"dropdown-divider"})}),d.jsx(_e,{children:d.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[d.jsx(d0,{className:"icon logout"}),d.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};DE.displayName="Header";const T6=DE;function FE({children:e,className:t,...n}){const r=J("container-fluid",t);return d.jsx("main",{className:r,...n,children:e})}FE.displayName="Main";const $E=({children:e,...t})=>{const{theme:n}=bd();return d.jsxs(d.Fragment,{children:[d.jsx(T6,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),d.jsx(FE,{className:J("d-flex flex-column bg-white",{"rounded-4 border":n==null?void 0:n.is1d,"mt-24":n==null?void 0:n.is1d}),...t,children:e}),d.jsx(Hj,{toastOptions:{position:"top-right"}})]})};$E.displayName="Layout";const zE=$E,j6=({children:e})=>d.jsx("div",{className:"widget-footer",children:d.jsx("div",{className:"widget-footer-action",children:d.jsx("a",{href:"/welcome",className:"link",children:e})})}),P6=({children:e})=>d.jsxs("div",{className:"widget-header",children:[d.jsx("div",{className:"subtitle",children:e}),d.jsx("div",{className:"widget-options",children:d.jsx("div",{className:"widget-handle",children:d.jsx("i",{className:"fas fa-grip-vertical"})})})]}),O6=({children:e})=>d.jsx("div",{className:"widget-body p-12 d-flex flex-wrap",children:e});function Sl({children:e}){return d.jsx("div",{className:"widget",children:e})}Sl.Header=P6;Sl.Body=O6;Sl.Footer=j6;Sl.displayName="Widget";const BE=({data:e})=>e.length>0?e.slice(0,6).map((t,n)=>d.jsx("a",{href:t.address,className:"bookmarked-app",children:d.jsx(qs,{app:t,size:"32"})},n)):d.jsx("div",{className:"text-dark mx-auto",children:d.jsx("a",{href:"/welcome",children:"Sélectionner vos applications favorites"})});BE.displayName="BookmarkedApps";const R6=BE,N6=Object.freeze(Object.defineProperty({__proto__:null,ActionBar:nI,Alert:Vr,AppHeader:cS,AppIcon:qs,Avatar:Ws,BookmarkedApps:R6,Breadcrumb:FS,Button:ze,Card:gI,Checkbox:Cd,Column:Eg,Combobox:pE,Dropdown:Ee,EmptyScreen:OI,FormControl:Qe,FormText:ZS,Grid:Ri,Heading:an,IconButton:hr,Image:ho,ImagePicker:Cg,Input:rs,Label:_s,Layout:zE,Library:RI,Loading:xg,LoadingScreen:_t,Logo:kh,Modal:Re,OdeClientContext:hg,OdeClientProvider:fS,OnboardingModal:HI,Popover:jd,PopoverBody:kE,PopoverFooter:TE,PopoverHeader:LI,PublishModal:n6,Radio:Nc,ResourceModal:a6,SearchButton:bg,Select:Tg,ShareModal:b6,TextArea:jg,ThemeContext:mg,ThemeProvider:pS,Tooltip:OE,TreeView:IE,VisuallyHidden:sr,Widget:Sl,isActionAvailable:Ac,libraryMaps:wg,useBookmark:hS,useClickOutside:gg,useConf:pg,useConversation:mS,useDebounce:wS,useDropdown:dE,useDropzone:SS,useHasWorkflow:Oi,useHeader:ES,useHover:vg,useImage:gS,useIsAdml:CS,useKeyPress:vS,useLibraryUrl:oI,useOdeClient:Te,useOdeIcons:Sd,useOdeTheme:bd,usePaths:Ys,useScrollToTop:bS,useSession:dS,useTitle:yS,useToast:ht,useToggle:yg,useTrapFocus:xS,useUser:Ed,useXitiTrackPageLoad:kS},Symbol.toStringTag,{value:"Module"}));var A6=function(){return null},VE,H0=vr;VE=H0.createRoot,H0.hydrateRoot;const ps=document.querySelector("[data-explorer-config]");let q0;function I6(){var e;if((e=ps==null?void 0:ps.dataset)!=null&&e.explorerConfig){const{explorerConfig:t}=ps.dataset;try{const n=JSON.parse(t);q0=Object.assign({},n)}catch(n){console.error("[Explorer Config] could not parse app params from root data attributes:",ps==null?void 0:ps.dataset,n)}}return q0}const W0=e=>{let t;const n=new Set,r=(a,u)=>{const c=typeof a=="function"?a(t):a;if(!Object.is(c,t)){const f=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(p=>p(t,f))}},s=()=>t,l={setState:r,getState:s,subscribe:a=>(n.add(a),()=>n.delete(a)),destroy:()=>{n.clear()}};return t=e(r,s,l),l},_6=e=>e?W0(e):W0;var UE={exports:{}},HE={},qE={exports:{}},WE={};/**
|
|
222
|
+
* @license React
|
|
223
|
+
* use-sync-external-store-shim.production.min.js
|
|
224
|
+
*
|
|
225
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the MIT license found in the
|
|
228
|
+
* LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/var ao=S;function M6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var L6=typeof Object.is=="function"?Object.is:M6,D6=ao.useState,F6=ao.useEffect,$6=ao.useLayoutEffect,z6=ao.useDebugValue;function B6(e,t){var n=t(),r=D6({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return $6(function(){s.value=n,s.getSnapshot=t,Bf(s)&&i({inst:s})},[e,n,t]),F6(function(){return Bf(s)&&i({inst:s}),e(function(){Bf(s)&&i({inst:s})})},[e]),z6(n),n}function Bf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!L6(e,n)}catch{return!0}}function V6(e,t){return t()}var U6=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?V6:B6;WE.useSyncExternalStore=ao.useSyncExternalStore!==void 0?ao.useSyncExternalStore:U6;qE.exports=WE;var H6=qE.exports;/**
|
|
234
230
|
* @license React
|
|
235
231
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
236
232
|
*
|
|
@@ -238,4 +234,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
238
234
|
*
|
|
239
235
|
* This source code is licensed under the MIT license found in the
|
|
240
236
|
* LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/var nc=b,KP=My;function GP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var XP=typeof Object.is=="function"?Object.is:GP,YP=KP.useSyncExternalStore,JP=nc.useRef,ZP=nc.useEffect,e6=nc.useMemo,t6=nc.useDebugValue;Rb.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=JP(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=e6(function(){function l(p){if(!u){if(u=!0,d=p,p=r(p),s!==void 0&&o.hasValue){var m=o.value;if(s(m,p))return f=m}return f=p}if(m=f,XP(d,p))return m;var y=r(p);return s!==void 0&&s(m,y)?m:(d=p,f=y)}var u=!1,d,f,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,s]);var a=YP(e,i[0],i[1]);return ZP(function(){o.hasValue=!0,o.value=a},[a]),t6(a),a};jb.exports=Rb;var n6=jb.exports;const r6=$o(n6),{useDebugValue:s6}=fe,{useSyncExternalStoreWithSelector:i6}=r6;function o6(e,t=e.getState,n){const r=i6(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return s6(r),r}const X1=e=>{const t=typeof e=="function"?WP(e):e,n=(r,s)=>o6(t,r,s);return Object.assign(n,t),n},a6=e=>e?X1(e):X1,Ob=async e=>{const t=await ne.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},l6=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await ne.resource(e.app).createFolder(r)},u6=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const s={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await ne.resource(t.app).updateFolder(s)},c6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await ne.resource(e.app).trashAll(s,n)},d6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await ne.resource(e.app).deleteAll(s,n)},f6=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await ne.resource(e.app).restoreAll(s,r)},h6=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:s})=>{const i={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await ne.resource(e.app).moveToFolder(i,s)},p6=async({app:e,resourceId:t,rights:n})=>await ne.share().saveRights(e,t,n),m6=async({app:e,params:t})=>await ne.resource(e).update(t),g6=async e=>await ne.rights().sessionHasWorkflowRights(e),v6=({searchParams:e,assetId:t})=>ne.resource(e.app).gotoView(t),y6=({searchParams:e,params:t})=>ne.resource(e.app).create(t),x6=({searchParams:e,assetId:t})=>ne.resource(e.app).gotoPrint(t),O7=async e=>await ne.conf().getPreference(e),N7=async e=>await ne.conf().savePreference(e,JSON.stringify({showOnboardingTrash:!1}));function Lp(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Fo(e,t){var r,s;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((s=t==null?void 0:t.children)==null||s.every(i=>(n=Fo(e,i),n===void 0))),n)}function w6(e,t){var r;const n=Fo(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===Ct.BIN?[Ct.BIN]:[Ct.DEFAULT]}const pn=document.querySelector("[data-ode-app]");let Ai;function rc(){var e;if(Ai)return Ai;if(Ai={app:Ps.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=pn==null?void 0:pn.dataset)!=null&&e.odeApp){const{odeApp:t}=pn.dataset;try{const n=JSON.parse(t);Object.assign(Ai,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",pn==null?void 0:pn.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",pn==null?void 0:pn.dataset);return Ai}function Nb(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Nb(t.id,n)):!1}function ia(e,t){return Pb(e,t)||e}function Pb(e,t,n){var s;const r=t(e,n);if((s=r==null?void 0:r.children)!=null&&s.length){const i=[];for(const o of(r==null?void 0:r.children)||[]){const a=Pb(o,t,r);a&&i.push(a)}return{...r,children:i}}return r}class sc{constructor(t){us(this,"id");us(this,"name");us(this,"childNumber");us(this,"section",!1);us(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Ab=(e,t,n)=>ia(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new sc(s))),r)),{app:b6,types:S6,filters:C6,orders:E6}=rc(),lt=a6()((e,t)=>({filters:C6,orders:E6,searchConfig:{minLength:1},searchParams:{app:b6,types:S6,filters:{folder:"default",owner:void 0,shared:void 0,public:void 0},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:Ct.DEFAULT,name:bt("explorer.filters.mine"),section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,status:void 0,updaters:{setSearchConfig:n=>e(r=>({searchConfig:{...r.searchConfig,...n}})),setTreeData:n=>e(()=>({treeData:n})),setSearchParams:n=>{e(r=>{const{searchParams:s}=r;return s.search!==n.search?n.search?{...r,selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...s,...n,trashed:!1,filters:{...s.filters,folder:void 0}}}:{...r,selectedFolders:[],selectedNodesIds:["default"],selectedResources:[],currentFolder:{id:"default"},searchParams:{...s,...n,trashed:!1,filters:{...s.filters}}}:{searchParams:{...s,...n}}})},setSelectedFolders:n=>e(()=>({selectedFolders:n})),setSelectedResources:n=>e(()=>({selectedResources:n})),setFolderIds:n=>e(()=>({folderIds:n})),setResourceIds:n=>e(()=>({resourceIds:n})),setResourceIsTrash:n=>e(()=>({resourceIsTrash:n})),setResourceActionDisable:n=>e(()=>({resourceActionDisable:n})),setCurrentFolder:n=>e(()=>({currentFolder:n})),clearSelectedItems:()=>e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>e(()=>({resourceIds:[],folderIds:[]})),openResource:n=>{try{const{searchParams:r}=t();v6({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:s}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const i=r.find(o=>o.id===s[0]);x6({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,a=w6(n,i),l=Lp([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...s,search:void 0,filters:{...s.filters,folder:n},trashed:n===Ct.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:s,searchParams:i}=t();if(e(o=>({...o,status:"unfold"})),!Nb(n,s)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await Ob({...i,filters:{...i.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Ab(s,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||Ct.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:s}=t().updaters,i=Fo(n,r);r2()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),s({folder:i,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:s}=t().updaters,i=n.length;if(i<2)return;const o=Fo(n[i-2],r);s({folder:o,folderId:(o==null?void 0:o.id)||Ct.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],status:"select",searchParams:{...n.searchParams,search:void 0,filters:{folder:Ct.BIN},trashed:!0},currentFolder:{id:Ct.BIN}}))}})),It=()=>lt(e=>e.searchParams),Fp=()=>lt(e=>e.selectedNodesIds),ci=()=>lt(e=>e.treeData),k6=()=>lt(e=>e.selectedFolders),_b=()=>lt(e=>e.selectedResources),j6=()=>lt(e=>e.searchConfig),oa=()=>lt(e=>e.folderIds),aa=()=>lt(e=>e.resourceIds),ic=()=>lt(e=>e.selectedResources.map(t=>t.assetId)),oc=()=>lt(e=>e.selectedResources.filter(t=>t.assetId===t.id)),di=()=>lt(e=>e.currentFolder),Ye=()=>lt(e=>e.updaters),fi=()=>{const e=di();return(e==null?void 0:e.id)===Ct.BIN},Tb=()=>lt(e=>e.resourceIsTrash),R6=()=>lt(e=>e.resourceActionDisable),O6=()=>{const e=di();return(e==null?void 0:e.id)==="default"},N6=()=>Fp().length>1,P6=()=>lt(e=>e.status),Ib=()=>{const e=It(),[t,n]=b.useState(""),r=j6(),s=P6(),i=b.useRef(null),{setSearchParams:o}=Ye(),a=d=>{const f=d.target.value;n(f.toString())},l=d=>{(d.key==="Enter"||d.key==="Return")&&(d.preventDefault(),o({search:t||void 0}))},u=d=>{d.preventDefault(),o({search:t||void 0})};return b.useEffect(()=>{const f=t.length==0||t.length>=r.minLength?{search:t||void 0}:{};o({...e,...f})},[t,r.minLength]),b.useEffect(()=>{s==="select"&&n("")},[s]),b.useEffect(()=>{n(()=>{var d;return((d=e.search)==null?void 0:d.toString())??""})},[e]),{formRef:i,inputSearch:t,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}};function A6(){const{appCode:e}=_e(),t=Fp(),n=fi(),r=di(),{t:s}=re(["common",e]),{gotoPreviousFolder:i}=Ye(),{inputSearch:o}=Ib(),a=s("explorer.tree.trash"),l=s("explorer.tree.search"),u=s("explorer.filters.mine",{ns:e}),d=(r==null?void 0:r.name)||u;return c.jsx("div",{className:"py-16",children:t.length>1&&!n?c.jsxs("div",{className:"d-flex align-items-center gap-8",children:[c.jsx(qn,{icon:c.jsx(gE,{}),variant:"ghost",color:"tertiary","aria-label":s("back"),className:"ms-n16",onClick:i}),c.jsx("p",{className:"body py-8 text-truncate",children:c.jsx("strong",{children:d})})]}):c.jsx("h2",{className:"body py-8 fw-bold",children:o.length!==0?l:n?a:u})})}function _6(e,{parentId:t,newFolder:n}){return ia(e,r=>{var s;if(r.id===t){const i=[...((s=r.folder)==null?void 0:s.ancestors)||[]],o=Lp([...i,r.id]);return{...r,children:[...r.children||[],new sc({...n,ancestors:o})]}}else return r})}function T6(e,{folders:t}){return ia(e,n=>{if(!t.includes(n.id))return n})}function I6(e,{destinationId:t,folders:n}){return ia(e,(r,s)=>{var i,o;if(t===r.id){const a=[...((i=r.folder)==null?void 0:i.ancestors)||[]],l=Lp([...a,r.id]),u=[...r.children||[]],d=((o=r.children)==null?void 0:o.map(h=>h.id))||[];for(const h of n)if(!d.includes(h)){const p=Fo(h,e);p&&u.push({...p,folder:{...p==null?void 0:p.folder,ancestors:l}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(s==null?void 0:s.id)?void 0:r})}function D6(e,{folderId:t,newFolder:n}){return ia(e,r=>r.id===t?new sc(n):r)}const{actions:Y1,app:M6}=rc(),Db=()=>Ah({queryKey:["actions"],queryFn:async()=>{const e=Y1.map(n=>n.workflow);return await g6(e)},select:e=>Y1.map(t=>({...t,available:e[t.workflow]}))}),L6=()=>{const e=at(),{appCode:t}=_e(),{t:n}=re(),r=Tt(),s=It(),i=di(),o=ci(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=Ye(),{filters:d,trashed:f,search:h}=s,p=["context",{folderId:d.folder,filters:d,trashed:f,search:h}];return GC({queryKey:p,queryFn:async({pageParam:m=0})=>await Ob({...s,pagination:{...s.pagination,startIdx:m}}),onError(m){typeof m=="string"&&e.error(n(m))},onSuccess:async m=>{var w,g,v;await r.cancelQueries({queryKey:p});const y=[...((w=m==null?void 0:m.pages[0])==null?void 0:w.folders)??[]];(g=m==null?void 0:m.pages[0])!=null&&g.searchConfig&&u(m.pages[0].searchConfig),s.search||((i==null?void 0:i.id)==="default"?a({id:Ct.DEFAULT,section:!0,children:y.map(x=>new sc(x)),name:n("explorer.filters.mine",{ns:t})}):a(Ab(o,y,s.filters.folder||Ct.DEFAULT))),l({...s,pagination:(v=m==null?void 0:m.pages[(m==null?void 0:m.pages.length)-1])==null?void 0:v.pagination})},retry:!1,getNextPageParam:m=>m.pagination.startIdx+m.pagination.pageSize})},P7=()=>{const e=at(),t=Tt(),n=It(),r=ci(),s=oa(),i=ic(),o=aa(),a=oc().length>0,l=a?i:o,{clearSelectedItems:u,clearSelectedIds:d,setTreeData:f,setSearchParams:h}=Ye(),{filters:p,trashed:m}=n,y=["context",{folderId:p.folder,filters:p,trashed:m}];return Kn({mutationFn:async()=>await c6({searchParams:n,folderIds:s,resourceIds:l,useAssetIds:a}),onError(w){typeof w=="string"&&e.error(bt(w))},onSuccess:async w=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return e.success(bt("explorer.trash.title")),t.setQueryData(y,v=>{var x;if(v){const S={...v,pages:v==null?void 0:v.pages.map(j=>{var k;return{...j,folders:j.folders.filter(O=>!s.includes(O.id)),pagination:{...j.pagination,maxIdx:((k=j==null?void 0:j.pagination)==null?void 0:k.maxIdx)-w.resources.length},resources:j.resources.filter(O=>a?!i.includes(O.assetId):!l.includes(O.id))}})},C=T6(r,{folders:s});return f(C),h({...n,pagination:{...n.pagination,maxIdx:((x=n.pagination)==null?void 0:x.maxIdx)-w.resources.length}}),S}})},onSettled:()=>{u(),d()}})},F6=()=>{const e=at(),t=Tt(),n=It(),r=oa(),s=ic(),i=aa(),o=oc().length>0,a=o?s:i,{setFolderIds:l,setResourceIds:u,setSelectedResources:d,setSelectedFolders:f}=Ye(),{filters:h,trashed:p}=n,m=["context",{folderId:h.folder,filters:h,trashed:p}];return Kn({mutationFn:async()=>await f6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(y){typeof y=="string"&&e.error(bt(y))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:m}),t.getQueryData(m))return e.success(bt("explorer.trash.toast")),t.setQueryData(m,w=>{if(w)return{...w,pages:w==null?void 0:w.pages.map(g=>({...g,folders:g.folders.filter(v=>!r.includes(v.id)),resources:g.resources.filter(v=>o?!s.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),d([]),l([]),f([])}})},A7=()=>{const e=at(),t=Tt(),n=It(),r=oa(),s=ic(),i=aa(),o=oc().length>0,a=o?s:i,{clearSelectedItems:l,clearSelectedIds:u}=Ye(),{filters:d,trashed:f}=n,h=["context",{folderId:d.folder,filters:d,trashed:f}];return Kn({mutationFn:async()=>await d6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(p){typeof p=="string"&&e.error(bt(p))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:h}),t.getQueryData(h))return e.success(bt("explorer.removed.from.trash")),t.setQueryData(h,m=>{if(m)return{...m,pages:m==null?void 0:m.pages.map(w=>({...w,folders:w.folders.filter(g=>!r.includes(g.id)),resources:w.resources.filter(g=>o?!s.includes(g.assetId):!a.includes(g.id))}))}})},onSettled:()=>{l(),u()}})},_7=()=>{const e=at(),t=Tt(),n=It(),r=ci(),s=oa(),i=ic(),o=aa(),a=oc().length>0,l=a?i:o,{clearSelectedIds:u,clearSelectedItems:d,setTreeData:f,setSearchParams:h}=Ye(),{filters:p,trashed:m}=n,y=["context",{folderId:p.folder,filters:p,trashed:m}];return Kn({mutationFn:async w=>await h6({searchParams:n,folderId:w,folderIds:s,resourceIds:l,useAssetIds:a}),onError(w){typeof w=="string"&&e.error(bt(w))},onSuccess:async(w,g)=>{if(t.getQueryData(y))return t.setQueryData(y,x=>{var S;if(x){const C=I6(r,{destinationId:g,folders:s}),j={...x,pages:x==null?void 0:x.pages.map(k=>{var O;return{...k,folders:k.folders.filter(A=>!s.includes(A.id)),pagination:{...k.pagination,maxIdx:((O=k.pagination)==null?void 0:O.maxIdx)-w.resources.length},resources:k.resources.filter(A=>a?!i.includes(A.assetId):!l.includes(A.id))}})};return f(C),h({...n,pagination:{...n.pagination,maxIdx:((S=n.pagination)==null?void 0:S.maxIdx)-w.resources.length}}),j}})},onSettled:()=>{d(),u()}})},T7=()=>{const e=at(),t=Tt(),n=It(),r=ci(),{setTreeData:s}=Ye(),{filters:i,trashed:o}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return Kn({mutationFn:async({name:l,parentId:u})=>await l6({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(bt(l))},onSuccess:async(l,u)=>{await t.cancelQueries({queryKey:a});const d=t.getQueryData(a),f={...l,parentId:u.parentId,children:[],rights:[`creator:${l==null?void 0:l.creator_id}`]};if(d)return t.setQueryData(a,h=>{if(h){const p={...h,pages:h==null?void 0:h.pages.map(y=>({...y,folders:[...y.folders,f]}))},m=_6(r,{parentId:u.parentId,newFolder:f});return s(m),p}})}})},I7=()=>{const e=at(),t=Tt(),n=It(),r=ci(),{setFolderIds:s,setSelectedFolders:i,setTreeData:o}=Ye(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return Kn({mutationFn:async({folderId:d,name:f,parentId:h})=>await u6({searchParams:n,folderId:d,parentId:h,name:f}),onError(d){typeof d=="string"&&e.error(bt(d))},onSuccess:async(d,f)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,p=>{if(p){const m={...p,pages:p==null?void 0:p.pages.map(w=>({...w,folders:w.folders.map(g=>g.id===d.id?{...d,parentId:f.parentId,rights:g.rights}:g)}))},y=D6(r,{folderId:f.folderId,newFolder:d});return o(y),m}})},onSettled:()=>{s([]),i([])}})},$6=()=>{const e=at(),t=Tt(),n=It(),{setResourceIds:r,setSelectedResources:s}=Ye(),{filters:i,trashed:o,app:a}=n,l=["context",{folderId:i.folder,filters:i,trashed:o}];return Kn({mutationFn:async({resourceId:u,rights:d})=>await p6({app:a,resourceId:u,rights:d}),onError(u){typeof u=="string"&&e.error(bt("explorer.shared.status.error"))},onSuccess:async(u,d)=>{if(await t.cancelQueries({queryKey:l}),t.getQueryData(l))return e.success(bt("explorer.shared.status.saved")),t.setQueryData(l,h=>{if(h)return{...h,pages:h==null?void 0:h.pages.map(p=>({...p,resources:p.resources.map(m=>{if(m.assetId===(d==null?void 0:d.resourceId)){let y=[`creator:${m.creatorId}`];return(d==null?void 0:d.rights.length)>=1&&(y=[...y,...d.rights.flatMap(w=>w.actions.map(g=>`${w.type}:${w.id}:${g.id}`))]),{...m,rights:y}}else return m})}))}})},onSettled:()=>{r([]),s([])}})},B6=()=>{const e=at(),t=Tt(),n=It(),{filters:r,trashed:s,app:i}=n,o=["context",{folderId:r.folder,filters:r,trashed:s}];return Kn({mutationFn:async a=>await m6({app:i,params:a}),onError(a){typeof a=="string"&&e.error(bt(a))},onSuccess:async(a,l)=>{if(await t.cancelQueries({queryKey:o}),t.getQueryData(o))return t.setQueryData(o,d=>{if(d)return{...d,pages:d==null?void 0:d.pages.map(f=>({...f,resources:f.resources.map(h=>{if(h.assetId===(l==null?void 0:l.entId)){const{name:p,thumbnail:m,public:y,description:w,slug:g,...v}=l;return{...h,...v,name:p,thumbnail:typeof m=="string"?m:URL.createObjectURL(m),public:y,description:w,slug:g}}else return h})}))}})}})},D7=()=>{const e=at(),t=Tt(),n=It(),{user:r}=ra(),s=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return Kn({mutationFn:async i=>await y6({searchParams:n,params:i}),onError(i){typeof i=="string"&&e.error(bt(i))},onSuccess:async(i,o)=>{var d,f,h;await t.cancelQueries({queryKey:s});const a=t.getQueryData(s),{thumbnail:l}=o,u={...o,thumbnail:l?URL.createObjectURL(l):"",application:M6,assetId:i._id||i.entId||"",id:i._id||i.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),slug:o.slug||"",modifiedAt:((d=i.modified)==null?void 0:d.$date)||"",modifierId:((f=i.author)==null?void 0:f.userId)||"",modifierName:((h=i.author)==null?void 0:h.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(s,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(m=>({...m,resources:[u,...m.resources]}))}})}})},{trashActions:z6}=rc();function Mb(){const[e,t]=b.useState(!1),[n,r]=b.useState("void"),[s,i]=b.useState(),o=di(),a=aa(),l=_b(),u=k6(),d=oa(),f=fi(),h=F6(),p=Tb(),{openResource:m,printSelectedResource:y,openFolder:w,clearSelectedItems:g,clearSelectedIds:v}=Ye(),{data:x}=Db();b.useEffect(()=>{if(a.length===0&&d.length===0){t(!1);return}if(p){t(!1);return}t(!0)},[a,d]);async function S(te){var ae;switch((ae=document.getElementById("root"))==null||ae.setAttribute("aria-hidden","true"),i(te),te.id){case ct.OPEN:return a.length>0?m(l[0]):w({folder:u[0],folderId:u[0].id});case ct.MOVE:return r("move");case ct.PRINT:return y();case ct.DELETE:return r("delete");case ct.RESTORE:return await k();case ct.PUBLISH:return r("publish");case ct.UPD_PROPS:case"edit":return J();case ct.SHARE:return r("share");default:throw Error(`Unknown action: ${te.id}`)}}function C(te){const ae=a.length+d.length,de=a.length===1||d.length===1,ye=ae===1,Re=d.length===0;switch(te.id){case ct.OPEN:return ye;case ct.MANAGE:return de;case ct.PUBLISH:return de&ℜcase ct.UPD_PROPS:return de&ℜcase ct.SHARE:return Re&&de;case ct.PRINT:return de&ℜcase"edit":return ye;default:return!0}}const j=()=>!0;async function k(){try{if(f)await h.mutate();else throw new Error("Cannot restore untrashed resources");O()}catch(te){console.error(te)}}function O(){var te;r("void"),s!=null&&s.id&&((te=document.getElementById(s==null?void 0:s.id))==null||te.focus())}const A=te=>()=>{n===te&&(O(),g(),v())},_=A("move"),F=A("move"),T=A("delete"),$=A("delete"),D=A("publish"),E=A("publish"),N=A("edit_folder"),L=A("edit_folder"),P=A("edit_resource"),B=A("edit_resource"),z=A("share"),ee=A("share");function J(){a&&a.length>0?r("edit_resource"):r("edit_folder")}function le(te){return te.id==="edit"&&d.length>0?"explorer.rename":`explorer.actions.${te.id}`}return{onRestore:k,actions:f?z6:x,selectedElement:[...l,...u],currentFolderId:o==null?void 0:o.id,overrideLabel:le,handleClick:S,isActivable:f?j:C,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:_,onMoveSuccess:F,isDeleteModalOpen:n==="delete",onDeleteCancel:$,onDeleteSuccess:T,isPublishModalOpen:n==="publish",onPublishCancel:E,onPublishSuccess:D,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:L,onEditFolderSuccess:N,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:B,onEditResourceSuccess:P,isShareResourceOpen:n==="share",onShareResourceCancel:ee,onShareResourceSuccess:z,onClearActionBar:O}}function V6({roles:e,rights:t,action:n}){const[r,s]=b.useState(!1),{user:i}=ra(),o=fi();b.useEffect(()=>{u()},[e,t]);const a=async function(d){const f=d instanceof Array?d:[d];if(e instanceof Array){const h=await ne.rights().sessionHasAtLeastOneResourceRight(e,f);s(h)}else{const h=await ne.rights().sessionHasResourceRight(e,f);s(h)}},l=async function(d){if(e instanceof Array){const f=await ne.rights().sessionHasAtLeastOneResourceRightForEachList(e,d);s(f)}else{const f=await ne.rights().sessionHasResourceRightForEachList(e,d);s(f)}},u=async function(){var d,f,h;if(e===void 0){s(!0);return}if(o&&((f=(d=t[0])==null?void 0:d.trashedBy)!=null&&f.includes(i==null?void 0:i.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){s(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const p=t.map(m=>m.rights);await l(p)}else s(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function U6({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:s}){const{t:i}=re(),{overrideLabel:o}=Mb(),{visible:a}=V6({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=Ye(),u=fi();return a?c.jsx(c.Fragment,{children:r}):s?s():u&&!a?c.jsx(Fe,{type:"button",color:"primary",variant:"filled",onClick:()=>{l(!0)},children:i(o(n))}):c.jsx(c.Fragment,{})}const H6=b.lazy(async()=>({default:(await $e(()=>Promise.resolve().then(()=>Mp),void 0)).ShareModal})),q6=b.lazy(async()=>({default:(await $e(()=>Promise.resolve().then(()=>Mp),void 0)).PublishModal})),Q6=b.lazy(async()=>({default:(await $e(()=>Promise.resolve().then(()=>Mp),void 0)).ResourceModal})),W6=b.lazy(async()=>await $e(()=>import("./DeleteModal.js"),[])),K6=b.lazy(async()=>await $e(()=>import("./MoveModal.js"),[])),G6=b.lazy(async()=>await $e(()=>import("./EditFolderModal.js"),[]));function X6(){const{t:e}=re(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:s,isPublishModalOpen:i,isActionBarOpen:o,isEditFolderOpen:a,overrideLabel:l,onEditFolderCancel:u,onEditFolderSuccess:d,isEditResourceOpen:f,onEditResourceCancel:h,onEditResourceSuccess:p,isShareResourceOpen:m,onShareResourceCancel:y,onShareResourceSuccess:w,onMoveCancel:g,onMoveSuccess:v,onDeleteCancel:x,onDeleteSuccess:S,onPublishCancel:C,onPublishSuccess:j,isActivable:k,handleClick:O}=Mb(),A=_b(),_=$6(),F=B6(),T=rp(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return c.jsxs(c.Fragment,{children:[T(($,D)=>D&&c.jsx(ru.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:$,children:c.jsx(Uw,{children:t==null?void 0:t.filter(E=>E.available&&E.target==="actionbar").map(E=>k(E)&&c.jsx(U6,{resourceRights:n,roleExpected:E.right,action:E,children:c.jsx(Fe,{id:E.id,type:"button",color:"primary",variant:"filled",onClick:()=>{O(E)},children:e(l(E))},E.id)},E.id))})})),c.jsxs(b.Suspense,{fallback:c.jsx(et,{}),children:[r&&c.jsx(K6,{isOpen:r,onCancel:g,onSuccess:v}),s&&c.jsx(W6,{isOpen:s,onCancel:x,onSuccess:S}),i&&c.jsx(q6,{isOpen:i,resource:A[0],onCancel:C,onSuccess:j}),a&&c.jsx(G6,{edit:!0,isOpen:a,onCancel:u,onSuccess:d}),f&&c.jsx(Q6,{mode:"update",actions:t,isOpen:f,selectedResource:A[0],updateResource:F,onCancel:h,onSuccess:p}),m&&c.jsx(H6,{isOpen:m,resource:A[0],updateResource:F,shareResource:_,onCancel:y,onSuccess:w})]})]})}const Y6={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"},J6=()=>{var l;const{user:e,appCode:t}=_e(),n=Y6[t],r=(l=e.apps.find(u=>u.isExternal&&u.address.includes("library")&&u.name.includes("library")))==null?void 0:l.address.split("?");let s=r==null?void 0:r[0];s!=null&&s.endsWith("/")||(s=`${s}/`);const i=r==null?void 0:r[1],o=`application%5B0%5D=${n}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${s}search/?${i}&${o}`}},Z6=b.lazy(async()=>await $e(()=>import("./EmptyScreenApp.js"),[])),e7=b.lazy(async()=>await $e(()=>import("./EmptyScreenSearch.js"),[])),t7=b.lazy(async()=>await $e(()=>import("./EmptyScreenError.js"),[])),n7=b.lazy(async()=>await $e(()=>import("./EmptyScreenNoContentInFolder.js"),[])),r7=b.lazy(async()=>await $e(()=>import("./EmptyScreenTrash.js"),[])),s7=b.lazy(async()=>await $e(()=>import("./FoldersList.js"),[])),i7=b.lazy(async()=>await $e(()=>import("./ResourcesList.js"),[])),o7=()=>{const e=O6(),t=fi(),n=N6(),r=It(),{data:s,isError:i,isLoading:o,isFetching:a,fetchNextPage:l}=L6(),u=(s==null?void 0:s.pages[0].folders.length)===0,d=(s==null?void 0:s.pages[0].resources.length)===0,f=u&&d;return i?c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(t7,{})}):r.search&&f?c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(e7,{})}):!f&&!o?c.jsxs(b.Suspense,{fallback:c.jsx(et,{}),children:[c.jsx(s7,{data:s,isFetching:a}),c.jsx(i7,{data:s,isFetching:a,fetchNextPage:l})]}):e&&f?c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(Z6,{})}):n&&f&&!t?c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(n7,{})}):t&&(s==null?void 0:s.pages[0].resources.length)===0?c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(r7,{})}):null};function a7({isOpen:e,onCancel:t=()=>({})}){const{t:n}=re();return Wn.createPortal(c.jsxs(je,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[c.jsx(je.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),c.jsx(je.Body,{children:c.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),c.jsx(je.Footer,{children:c.jsx(Fe,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const l7=()=>{const{appCode:e,currentApp:t}=_e(),{t:n}=re(),[r,s]=b.useState(""),i=d=>{if(d==="0"){s("");return}s(d)},o=di(),a=It(),{setSearchParams:l}=Ye();b.useEffect(()=>{const d=()=>r.includes("1")?!0:void 0,f=()=>r.includes("2")?!0:void 0,h=()=>r.includes("7")?!0:void 0;l({...a,filters:{owner:d(),public:h(),shared:f(),folder:o?o.id:"default"}})},[o,l,r]);const u=[{label:n("explorer.filter.all",{ns:e}),value:"0"},{label:n("explorer.filter.owner",{ns:e}),value:"1"},{label:n("explorer.filter.shared",{ns:e}),value:"2"},...(t==null?void 0:t.displayName)==Ps.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==Ps.EXERCIZER?[{label:"Exercices à rendre",value:"4"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:"5"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:"6"}]:[],...(t==null?void 0:t.displayName)==Ps.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:"7"}]:[]];return{selectedFilters:r,options:u,handleOnSelectFilter:i}},u7=()=>{const{appCode:e}=_e(),{t}=re(),{selectedFilters:n,options:r,handleOnSelectFilter:s}=l7(),{formRef:i,inputSearch:o,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}=Ib(),d=n.length>0?n.length:void 0;return c.jsxs("form",{noValidate:!0,className:"bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",ref:i,children:[c.jsxs(Ue,{id:"search",className:"input-group",children:[c.jsx(jr,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:o,onChange:a,onKeyDown:l}),c.jsx(Np,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:u})]}),c.jsxs(we,{placement:"bottom-end",children:[c.jsx(we.Trigger,{label:t("explorer.filters"),icon:c.jsx(TE,{width:20}),variant:"ghost",badgeContent:d}),c.jsx(we.Menu,{children:r.map(f=>f.value==="0"?c.jsxs(b.Fragment,{children:[c.jsx(we.RadioItem,{value:f.value,model:n,onChange:()=>s(f.value),children:f.label}),c.jsx(we.Separator,{})]},"0"):c.jsx(we.RadioItem,{value:f.value,model:n,onChange:()=>s(f.value),children:f.label},f.value))})]})]})},c7=({id:e,selected:t,onSelect:n})=>{const{t:r}=re();return c.jsx("div",{className:"treeview",children:c.jsx("ul",{role:"tree",className:"m-0 p-0",children:c.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:c.jsx("div",{children:c.jsx("div",{className:"action-container",children:c.jsx("div",{onClick:n,role:"button",tabIndex:0,children:c.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[c.jsx(ox,{width:"20",height:"20"}),c.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},d7=b.lazy(async()=>await $e(()=>import("./EditFolderModal.js"),[])),f7=()=>{const e=Tt(),{t}=re(),[n,r]=Rp(),s=ci(),i=fi(),o=Fp(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:d,clearSelectedItems:f,clearSelectedIds:h}=Ye(),p=async y=>{await u(y,e)},m=()=>{f(),h(),r()};return s?c.jsxs(c.Fragment,{children:[c.jsx(pb,{data:s,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:d,onTreeItemUnfold:p}),c.jsx(c7,{id:Ct.BIN,selected:i,onSelect:a}),c.jsx("div",{className:"d-grid my-16",children:c.jsx(Fe,{disabled:i,type:"button",color:"primary",variant:"outline",leftIcon:c.jsx(HE,{}),onClick:m,children:t("explorer.folder.new")})}),c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:n&&c.jsx(d7,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},h7=()=>{const e=R6(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Ye();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},p7=()=>{const e=Tb(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Ye();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},m7=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},g7=b.lazy(async()=>await $e(()=>import("./Onboarding.js"),[])),v7=b.lazy(async()=>await $e(()=>import("./AppAction.js"),[])),y7=b.lazy(async()=>await $e(()=>import("./Library.js"),[])),x7=b.lazy(async()=>await $e(()=>import("./TrashedResourceModal.js"),[]));function w7(){const{currentApp:e}=_e(),{data:t}=Db(),{isTrashedModalOpen:n,onTrashedCancel:r}=p7(),{isActionDisableModalOpen:s,onActionDisableCancel:i}=h7(),{libraryUrl:o}=J6();a2();const a=t==null?void 0:t.find(l=>l.id==="publish");return c.jsxs(c.Fragment,{children:[c.jsx(Qw,{render:()=>m7({workflow:"create",actions:t})?c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(v7,{})}):null,children:c.jsx(w2,{app:e})}),c.jsxs(zs,{className:"flex-grow-1",children:[c.jsxs(zs.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[c.jsx(f7,{}),(a==null?void 0:a.available)&&o&&c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(y7,{url:o})})]}),c.jsxs(zs.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[c.jsx(u7,{}),c.jsx(A6,{}),c.jsx(o7,{})]}),c.jsx(X6,{}),c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(g7,{id:"showOnboardingTrash",items:[{src:"onboarding/illu-trash-menu.svg",alt:"explorer.modal.onboarding.trash.screen1.alt",text:"explorer.modal.onboarding.trash.screen1.title"},{src:"onboarding/illu-trash-notif.svg",alt:"explorer.modal.onboarding.trash.screen2.alt",text:"explorer.modal.onboarding.trash.screen2.alt"},{src:"onboarding/illu-trash-delete.svg",alt:"explorer.modal.onboarding.trash.screen3.alt",text:"explorer.modal.onboarding.trash.screen3.title"}],modalOptions:{title:"explorer.modal.onboarding.trash.title",prevText:"explorer.modal.onboarding.trash.prev",nextText:"explorer.modal.onboarding.trash.next",closeText:"explorer.modal.onboarding.trash.close"}})}),n&&c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(x7,{isOpen:n,onCancel:r})}),s&&c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(a7,{isOpen:s,onCancel:i})})]})]})}function b7(){const{init:e}=_e();return e?e?c.jsx(Cb,{children:c.jsx(w7,{})}):null:c.jsx(et,{position:!1})}const S7=document.getElementById("root"),C7=new x4({queryCache:new Rv({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});kb(S7).render(c.jsx(b.StrictMode,{children:c.jsxs(MC,{client:C7,children:[c.jsx(Kw,{params:rc(),children:c.jsx(Gw,{children:c.jsx(b7,{})})}),c.jsx(QP,{initialIsOpen:!1})]})}));export{Kr as A,Fe as B,jr as C,oa as D,qN as E,Ue as F,R7 as G,r2 as H,li as I,ru as J,rP as K,et as L,je as M,tt as N,$o as O,It as P,aa as Q,fe as R,HE as S,pb as T,G as U,vP as V,Mp as W,$e as _,Wn as a,ai as b,Rp as c,_e as d,Ye as e,Db as f,O7 as g,di as h,D7 as i,c as j,Xu as k,QN as l,A7 as m,P7 as n,fi as o,_7 as p,k6 as q,b as r,N7 as s,_b as t,re as u,Tt as v,ci as w,T7 as x,I7 as y,rx as z};
|
|
237
|
+
*/var Pd=S,q6=H6;function W6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var G6=typeof Object.is=="function"?Object.is:W6,Q6=q6.useSyncExternalStore,K6=Pd.useRef,X6=Pd.useEffect,Y6=Pd.useMemo,J6=Pd.useDebugValue;HE.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=K6(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=Y6(function(){function a(h){if(!u){if(u=!0,c=h,h=r(h),s!==void 0&&o.hasValue){var y=o.value;if(s(y,h))return f=y}return f=h}if(y=f,G6(c,h))return y;var w=r(h);return s!==void 0&&s(y,w)?y:(c=h,f=w)}var u=!1,c,f,p=n===void 0?null:n;return[function(){return a(t())},p===null?void 0:function(){return a(p())}]},[t,n,r,s]);var l=Q6(e,i[0],i[1]);return X6(function(){o.hasValue=!0,o.value=l},[l]),J6(l),l};UE.exports=HE;var Z6=UE.exports;const e_=il(Z6),{useDebugValue:t_}=ee,{useSyncExternalStoreWithSelector:n_}=e_;function r_(e,t=e.getState,n){const r=n_(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return t_(r),r}const G0=e=>{const t=typeof e=="function"?_6(e):e,n=(r,s)=>r_(t,r,s);return Object.assign(n,t),n},s_=e=>e?G0(e):G0,GE=async e=>{const t=await ae.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},i_=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await ae.resource(e.app).createFolder(r)},o_=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const s={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await ae.resource(t.app).updateFolder(s)},a_=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await ae.resource(e.app).trashAll(s,n)},l_=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await ae.resource(e.app).deleteAll(s,n)},u_=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await ae.resource(e.app).restoreAll(s,r)},c_=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:s})=>{const i={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await ae.resource(e.app).moveToFolder(i,s)},d_=async({app:e,resourceId:t,rights:n})=>await ae.share().saveRights(e,t,n),f_=async({app:e,params:t})=>await ae.resource(e).update(t),p_=async e=>await ae.rights().sessionHasWorkflowRights(e),h_=({searchParams:e,assetId:t})=>ae.resource(e.app).gotoView(t),m_=({searchParams:e,params:t})=>ae.resource(e.app).create(t),g_=({searchParams:e,assetId:t})=>ae.resource(e.app).gotoPrint(t);function Pg(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Wa(e,t){var r,s;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((s=t==null?void 0:t.children)==null||s.every(i=>(n=Wa(e,i),n===void 0))),n)}function v_(e,t){var r;const n=Wa(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===Mt.BIN?[Mt.BIN]:[Mt.DEFAULT]}function QE(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>QE(t.id,n)):!1}function El(e,t){return KE(e,t)||e}function KE(e,t,n){var s;const r=t(e,n);if((s=r==null?void 0:r.children)!=null&&s.length){const i=[];for(const o of(r==null?void 0:r.children)||[]){const l=KE(o,t,r);l&&i.push(l)}return{...r,children:i}}return r}class Od{constructor(t){ei(this,"id");ei(this,"name");ei(this,"childNumber");ei(this,"section",!1);ei(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const XE=(e,t,n)=>El(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new Od(s))),r)),Ye=s_()((e,t)=>({config:null,searchConfig:{minLength:1},searchParams:{app:"",types:[],filters:{folder:"default",owner:void 0,shared:void 0,public:void 0},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:Mt.DEFAULT,name:Pt("explorer.filters.mine"),section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,status:void 0,updaters:{setConfig:n=>e({config:n}),setSearchConfig:n=>e(r=>({searchConfig:{...r.searchConfig,...n}})),setTreeData:n=>e(()=>({treeData:n})),setSearchParams:n=>{e(r=>{const{searchParams:s}=r;return s.search!==n.search?n.search?{...r,selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...s,...n,trashed:!1,filters:{...s.filters,folder:void 0}}}:{...r,selectedFolders:[],selectedNodesIds:["default"],selectedResources:[],currentFolder:{id:"default"},searchParams:{...s,...n,trashed:!1,filters:{...s.filters}}}:{searchParams:{...s,...n}}})},setSelectedFolders:n=>e(()=>({selectedFolders:n})),setSelectedResources:n=>e(()=>({selectedResources:n})),setFolderIds:n=>e(()=>({folderIds:n})),setResourceIds:n=>e(()=>({resourceIds:n})),setResourceIsTrash:n=>e(()=>({resourceIsTrash:n})),setResourceActionDisable:n=>e(()=>({resourceActionDisable:n})),setCurrentFolder:n=>e(()=>({currentFolder:n})),clearSelectedItems:()=>e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>e(()=>({resourceIds:[],folderIds:[]})),openResource:n=>{try{const{searchParams:r}=t();h_({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:s}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const i=r.find(o=>o.id===s[0]);g_({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,l=v_(n,i),a=Pg([...l,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:a,currentFolder:r||{id:n},searchParams:{...s,search:void 0,filters:{...s.filters,folder:n},trashed:n===Mt.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:s,searchParams:i}=t();if(e(o=>({...o,status:"unfold"})),!QE(n,s)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await GE({...i,filters:{...i.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(l=>{var a;return{...l,treeData:XE(s,(a=o==null?void 0:o.pages[0])==null?void 0:a.folders,n||Mt.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:s}=t().updaters,i=Wa(n,r);bS()(),e(l=>({...l,searchParams:{...l.searchParams,search:void 0},status:"select",selectedResources:[]})),s({folder:i,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:s}=t().updaters,i=n.length;if(i<2)return;const o=Wa(n[i-2],r);s({folder:o,folderId:(o==null?void 0:o.id)||Mt.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],status:"select",searchParams:{...n.searchParams,search:void 0,filters:{folder:Mt.BIN},trashed:!0},currentFolder:{id:Mt.BIN}}))}})),Rt=()=>Ye(e=>e.searchParams),Og=()=>Ye(e=>e.selectedNodesIds),go=()=>Ye(e=>e.treeData),u7=()=>Ye(e=>e.selectedFolders),c7=()=>Ye(e=>e.selectedResources),y_=()=>Ye(e=>e.searchConfig),Rd=()=>Ye(e=>e.folderIds),Nd=()=>Ye(e=>e.resourceIds),Ad=()=>Ye(e=>e.selectedResources.map(t=>t.assetId)),Id=()=>Ye(e=>e.selectedResources.filter(t=>t.assetId===t.id)),Cl=()=>Ye(e=>e.currentFolder),mt=()=>Ye(e=>e.updaters),Rg=()=>{const e=Cl();return(e==null?void 0:e.id)===Mt.BIN},w_=()=>Ye(e=>e.resourceIsTrash),x_=()=>Ye(e=>e.resourceActionDisable),b_=()=>{const e=Cl();return(e==null?void 0:e.id)==="default"},S_=()=>Og().length>1,E_=()=>Ye(e=>e.status),YE=()=>{const e=Rt(),[t,n]=S.useState(""),r=y_(),s=E_(),i=S.useRef(null),{setSearchParams:o}=mt(),l=c=>{const f=c.target.value;n(f.toString())},a=c=>{(c.key==="Enter"||c.key==="Return")&&(c.preventDefault(),o({search:t||void 0}))},u=c=>{c.preventDefault(),o({search:t||void 0})};return S.useEffect(()=>{const f=t.length==0||t.length>=r.minLength?{search:t||void 0}:{};o({...e,...f})},[t,r.minLength]),S.useEffect(()=>{s==="select"&&n("")},[s]),S.useEffect(()=>{n(()=>{var c;return((c=e.search)==null?void 0:c.toString())??""})},[e]),{formRef:i,inputSearch:t,handleInputSearchChange:l,handleKeyPress:a,handleSearchSubmit:u}};function C_(){const{appCode:e}=Te(),{gotoPreviousFolder:t}=mt(),{t:n}=ue(),{inputSearch:r}=YE(),s=Og(),i=Rg(),o=Cl(),l=n("explorer.tree.trash"),a=n("explorer.tree.search"),u=n("explorer.filters.mine",{ns:e}),c=(o==null?void 0:o.name)||u;return d.jsx("div",{className:"py-16",children:s.length>1&&!i?d.jsxs("div",{className:"d-flex align-items-center gap-8",children:[d.jsx(hr,{icon:d.jsx(bT,{}),variant:"ghost",color:"tertiary","aria-label":n("back"),className:"ms-n16",onClick:t}),d.jsx("p",{className:"body py-8 text-truncate",children:d.jsx("strong",{children:c})})]}):d.jsx("h2",{className:"body py-8 fw-bold",children:r.length!==0?a:i?l:u})})}const k_=()=>{const e=x_(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=mt();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},T_=()=>{const e=w_(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=mt();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}};function j_(e,{parentId:t,newFolder:n}){return El(e,r=>{var s;if(r.id===t){const i=[...((s=r.folder)==null?void 0:s.ancestors)||[]],o=Pg([...i,r.id]);return{...r,children:[...r.children||[],new Od({...n,ancestors:o})]}}else return r})}function P_(e,{folders:t}){return El(e,n=>{if(!t.includes(n.id))return n})}function O_(e,{destinationId:t,folders:n}){return El(e,(r,s)=>{var i,o;if(t===r.id){const l=[...((i=r.folder)==null?void 0:i.ancestors)||[]],a=Pg([...l,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(p=>p.id))||[];for(const p of n)if(!c.includes(p)){const h=Wa(p,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!==(s==null?void 0:s.id)?void 0:r})}function R_(e,{folderId:t,newFolder:n}){return El(e,r=>r.id===t?new Od(n):r)}const N_=()=>{const e=Ye(t=>t.config);return Ih({queryKey:["actions"],queryFn:async()=>{const t=e.actions.map(r=>r.workflow);return await p_(t)},select:t=>e.actions.map(n=>({...n,available:t[n.workflow]})),staleTime:1/0,enabled:!!e})},A_=()=>{const e=Ye(o=>o.config),t=Rt(),{filters:n,trashed:r,search:s}=t,i=["context",{folderId:n.folder,filters:n,trashed:r,search:s}];return Y4({queryKey:i,queryFn:async({pageParam:o})=>await GE({...t,app:e==null?void 0:e.app,types:e==null?void 0:e.types,pagination:{...t.pagination,startIdx:o}}),initialPageParam:0,enabled:!!e,retry:!1,getNextPageParam:o=>o.pagination.startIdx+o.pagination.pageSize})},d7=()=>{const e=ht(),t=pn(),n=Rt(),r=go(),s=Rd(),i=Ad(),o=Nd(),l=Id().length>0,a=l?i:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:f,setSearchParams:p}=mt(),{filters:h,trashed:y}=n,w=["context",{folderId:h.folder,filters:h,trashed:y}];return mr({mutationFn:async()=>await a_({searchParams:n,folderIds:s,resourceIds:a,useAssetIds:l}),onError(x){typeof x=="string"&&e.error(Pt(x))},onSuccess:async x=>{if(await t.cancelQueries({queryKey:w}),t.getQueryData(w))return e.success(Pt("explorer.trash.title")),t.setQueryData(w,m=>{var v;if(m){const b={...m,pages:m==null?void 0:m.pages.map(T=>{var C;return{...T,folders:T.folders.filter(R=>!s.includes(R.id)),pagination:{...T.pagination,maxIdx:((C=T==null?void 0:T.pagination)==null?void 0:C.maxIdx)-x.resources.length},resources:T.resources.filter(R=>l?!i.includes(R.assetId):!a.includes(R.id))}})},E=P_(r,{folders:s});return f(E),p({...n,pagination:{...n.pagination,maxIdx:((v=n.pagination)==null?void 0:v.maxIdx)-x.resources.length}}),b}})},onSettled:()=>{u(),c()}})},f7=()=>{const e=ht(),t=pn(),n=Rt(),r=Rd(),s=Ad(),i=Nd(),o=Id().length>0,l=o?s:i,{setFolderIds:a,setResourceIds:u,setSelectedResources:c,setSelectedFolders:f}=mt(),{filters:p,trashed:h}=n,y=["context",{folderId:p.folder,filters:p,trashed:h}];return mr({mutationFn:async()=>await u_({searchParams:n,folderIds:r,resourceIds:l,useAssetIds:o}),onError(w){typeof w=="string"&&e.error(Pt(w))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return e.success(Pt("explorer.trash.toast")),t.setQueryData(y,x=>{if(x)return{...x,pages:x==null?void 0:x.pages.map(g=>({...g,folders:g.folders.filter(m=>!r.includes(m.id)),resources:g.resources.filter(m=>o?!s.includes(m.assetId):!l.includes(m.id))}))}})},onSettled:()=>{u([]),c([]),a([]),f([])}})},p7=()=>{const e=ht(),t=pn(),n=Rt(),r=Rd(),s=Ad(),i=Nd(),o=Id().length>0,l=o?s:i,{clearSelectedItems:a,clearSelectedIds:u}=mt(),{filters:c,trashed:f}=n,p=["context",{folderId:c.folder,filters:c,trashed:f}];return mr({mutationFn:async()=>await l_({searchParams:n,folderIds:r,resourceIds:l,useAssetIds:o}),onError(h){typeof h=="string"&&e.error(Pt(h))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:p}),t.getQueryData(p))return e.success(Pt("explorer.removed.from.trash")),t.setQueryData(p,y=>{if(y)return{...y,pages:y==null?void 0:y.pages.map(x=>({...x,folders:x.folders.filter(g=>!r.includes(g.id)),resources:x.resources.filter(g=>o?!s.includes(g.assetId):!l.includes(g.id))}))}})},onSettled:()=>{a(),u()}})},h7=()=>{const e=ht(),t=pn(),n=Rt(),r=go(),s=Rd(),i=Ad(),o=Nd(),l=Id().length>0,a=l?i:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:f,setSearchParams:p}=mt(),{filters:h,trashed:y}=n,w=["context",{folderId:h.folder,filters:h,trashed:y}];return mr({mutationFn:async x=>await c_({searchParams:n,folderId:x,folderIds:s,resourceIds:a,useAssetIds:l}),onError(x){typeof x=="string"&&e.error(Pt(x))},onSuccess:async(x,g)=>{if(t.getQueryData(w))return t.setQueryData(w,v=>{var b;if(v){const E=O_(r,{destinationId:g,folders:s}),T={...v,pages:v==null?void 0:v.pages.map(C=>{var R;return{...C,folders:C.folders.filter(j=>!s.includes(j.id)),pagination:{...C.pagination,maxIdx:((R=C.pagination)==null?void 0:R.maxIdx)-x.resources.length},resources:C.resources.filter(j=>l?!i.includes(j.assetId):!a.includes(j.id))}})};return f(E),p({...n,pagination:{...n.pagination,maxIdx:((b=n.pagination)==null?void 0:b.maxIdx)-x.resources.length}}),T}})},onSettled:()=>{c(),u()}})},m7=()=>{const e=ht(),t=pn(),n=Rt(),r=go(),{setTreeData:s}=mt(),{filters:i,trashed:o}=n,l=["context",{folderId:i.folder,filters:i,trashed:o}];return mr({mutationFn:async({name:a,parentId:u})=>await i_({searchParams:n,name:a,parentId:u}),onError(a){typeof a=="string"&&e.error(Pt(a))},onSuccess:async(a,u)=>{await t.cancelQueries({queryKey:l});const c=t.getQueryData(l),f={...a,parentId:u.parentId,children:[],rights:[`creator:${a==null?void 0:a.creator_id}`]};if(c)return t.setQueryData(l,p=>{if(p){const h={...p,pages:p==null?void 0:p.pages.map(w=>({...w,folders:[...w.folders,f]}))},y=j_(r,{parentId:u.parentId,newFolder:f});return s(y),h}})}})},g7=()=>{const e=ht(),t=pn(),n=Rt(),r=go(),{setFolderIds:s,setSelectedFolders:i,setTreeData:o}=mt(),{filters:l,trashed:a}=n,u=["context",{folderId:l.folder,filters:l,trashed:a}];return mr({mutationFn:async({folderId:c,name:f,parentId:p})=>await o_({searchParams:n,folderId:c,parentId:p,name:f}),onError(c){typeof c=="string"&&e.error(Pt(c))},onSuccess:async(c,f)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,h=>{if(h){const y={...h,pages:h==null?void 0:h.pages.map(x=>({...x,folders:x.folders.map(g=>g.id===c.id?{...c,parentId:f.parentId,rights:g.rights}:g)}))},w=R_(r,{folderId:f.folderId,newFolder:c});return o(w),y}})},onSettled:()=>{s([]),i([])}})},v7=()=>{const e=ht(),t=pn(),n=Rt(),{setResourceIds:r,setSelectedResources:s}=mt(),{filters:i,trashed:o,app:l}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return mr({mutationFn:async({resourceId:u,rights:c})=>await d_({app:l,resourceId:u,rights:c}),onError(u){typeof u=="string"&&e.error(Pt("explorer.shared.status.error"))},onSuccess:async(u,c)=>{if(await t.cancelQueries({queryKey:a}),t.getQueryData(a))return e.success(Pt("explorer.shared.status.saved")),t.setQueryData(a,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(h=>({...h,resources:h.resources.map(y=>{if(y.assetId===(c==null?void 0:c.resourceId)){let w=[`creator:${y.creatorId}`];return(c==null?void 0:c.rights.length)>=1&&(w=[...w,...c.rights.flatMap(x=>x.actions.map(g=>`${x.type}:${x.id}:${g.id}`))]),{...y,rights:w}}else return y})}))}})},onSettled:()=>{r([]),s([])}})},y7=()=>{const e=ht(),t=pn(),n=Rt(),{filters:r,trashed:s,app:i}=n,o=["context",{folderId:r.folder,filters:r,trashed:s}];return mr({mutationFn:async l=>await f_({app:i,params:l}),onError(l){typeof l=="string"&&e.error(Pt(l))},onSuccess:async(l,a)=>{if(await t.cancelQueries({queryKey:o}),t.getQueryData(o))return t.setQueryData(o,c=>{if(c)return{...c,pages:c==null?void 0:c.pages.map(f=>({...f,resources:f.resources.map(p=>{if(p.assetId===(a==null?void 0:a.entId)){const{name:h,thumbnail:y,public:w,description:x,slug:g,...m}=a;return{...p,...m,name:h,thumbnail:typeof y=="string"?y:URL.createObjectURL(y),public:w,description:x,slug:g}}else return p})}))}})}})},w7=()=>{const e=ht(),t=pn(),n=Rt(),{user:r}=Ed(),{appCode:s}=Te(),i=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return mr({mutationFn:async o=>await m_({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(Pt(o))},onSuccess:async(o,l)=>{var f,p,h;await t.cancelQueries({queryKey:i});const a=t.getQueryData(i),{thumbnail:u}=l,c={...l,thumbnail:u?URL.createObjectURL(u):"",application:s,assetId:o._id||o.entId||"",id:o._id||o.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),slug:l.slug||"",modifiedAt:((f=o.modified)==null?void 0:f.$date)||"",modifierId:((p=o.author)==null?void 0:p.userId)||"",modifierName:((h=o.author)==null?void 0:h.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(i,y=>{if(y)return{...y,pages:y==null?void 0:y.pages.map(w=>({...w,resources:[c,...w.resources]}))}})}})},I_=S.lazy(async()=>await Ot(()=>import("./EmptyScreenApp.js"),[])),__=S.lazy(async()=>await Ot(()=>import("./EmptyScreenSearch.js"),[])),M_=S.lazy(async()=>await Ot(()=>import("./EmptyScreenError.js"),[])),L_=S.lazy(async()=>await Ot(()=>import("./EmptyScreenNoContentInFolder.js"),[])),D_=S.lazy(async()=>await Ot(()=>import("./EmptyScreenTrash.js"),[])),F_=S.lazy(async()=>await Ot(()=>import("./FoldersList.js"),[])),$_=S.lazy(async()=>await Ot(()=>import("./ResourcesList.js"),[])),z_=()=>{const e=b_(),t=Rg(),n=S_(),r=Rt(),s=Cl(),i=go(),o=ht(),{appCode:l}=Te(),{t:a}=ue(),{setSearchParams:u,setSearchConfig:c,setTreeData:f}=mt(),{data:p,isError:h,error:y,isLoading:w,isFetching:x,fetchNextPage:g}=A_(),m=(p==null?void 0:p.pages[0].folders.length)===0,v=(p==null?void 0:p.pages[0].resources.length)===0,b=m&&v;return S.useEffect(()=>{var E,T,C;if(p){const R=[...((E=p==null?void 0:p.pages[0])==null?void 0:E.folders)??[]];(T=p==null?void 0:p.pages[0])!=null&&T.searchConfig&&c(p.pages[0].searchConfig),r.search||((s==null?void 0:s.id)==="default"?f({id:Mt.DEFAULT,section:!0,children:R.map(j=>new Od(j)),name:a("explorer.filters.mine",{ns:l})}):f(XE(i,R,r.filters.folder||Mt.DEFAULT))),u({...r,pagination:(C=p==null?void 0:p.pages[(p==null?void 0:p.pages.length)-1])==null?void 0:C.pagination})}},[p]),S.useEffect(()=>{y&&typeof y=="string"&&o.error(a(y))},[y]),w?d.jsx(_t,{}):h?d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:d.jsx(M_,{})}):r.search&&b?d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:d.jsx(__,{})}):e&&b?d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:d.jsx(I_,{})}):n&&b&&!t?d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:d.jsx(L_,{})}):t&&(p==null?void 0:p.pages[0].resources.length)===0?d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:d.jsx(D_,{})}):d.jsxs(S.Suspense,{fallback:d.jsx(_t,{}),children:[d.jsx(F_,{data:p,isFetching:x}),d.jsx($_,{data:p,isFetching:x,fetchNextPage:g})]})},B_=()=>{const{appCode:e,currentApp:t}=Te(),{t:n}=ue(),[r,s]=S.useState(""),i=c=>{if(c==="0"){s("");return}s(c)},o=Cl(),l=Rt(),{setSearchParams:a}=mt();S.useEffect(()=>{const c=()=>r.includes("1")?!0:void 0,f=()=>r.includes("2")?!0:void 0,p=()=>r.includes("7")?!0:void 0;a({...l,filters:{owner:c(),public:p(),shared:f(),folder:o?o.id:"default"}})},[o,a,r]);const u=[{label:n("explorer.filter.all",{ns:e}),value:"0"},{label:n("explorer.filter.owner",{ns:e}),value:"1"},{label:n("explorer.filter.shared",{ns:e}),value:"2"},...(t==null?void 0:t.displayName)==Ho.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==Ho.EXERCIZER?[{label:"Exercices à rendre",value:"4"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:"5"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:"6"}]:[],...(t==null?void 0:t.displayName)==Ho.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:"7"}]:[]];return{selectedFilters:r,options:u,handleOnSelectFilter:i}},V_=()=>{const{appCode:e}=Te(),{t}=ue(),{selectedFilters:n,options:r,handleOnSelectFilter:s}=B_(),{formRef:i,inputSearch:o,handleInputSearchChange:l,handleKeyPress:a,handleSearchSubmit:u}=YE(),c=n.length>0?n.length:void 0;return d.jsxs("form",{noValidate:!0,className:"bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",ref:i,children:[d.jsxs(Qe,{id:"search",className:"input-group",children:[d.jsx(rs,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:o,onChange:l,onKeyDown:a}),d.jsx(bg,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:u})]}),d.jsxs(Ee,{placement:"bottom-end",children:[d.jsx(Ee.Trigger,{label:t("explorer.filters"),icon:d.jsx(DT,{width:20}),variant:"ghost",badgeContent:c}),d.jsx(Ee.Menu,{children:r.map(f=>f.value==="0"?d.jsxs(S.Fragment,{children:[d.jsx(Ee.RadioItem,{value:f.value,model:n,onChange:()=>s(f.value),children:f.label}),d.jsx(Ee.Separator,{})]},"0"):d.jsx(Ee.RadioItem,{value:f.value,model:n,onChange:()=>s(f.value),children:f.label},f.value))})]})]})},U_=({id:e,selected:t,onSelect:n})=>{const{t:r}=ue();return d.jsx("div",{className:"treeview",children:d.jsx("ul",{role:"tree",className:"m-0 p-0",children:d.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:d.jsx("div",{children:d.jsx("div",{className:"action-container",children:d.jsx("div",{onClick:n,role:"button",tabIndex:0,children:d.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[d.jsx(ab,{width:"20",height:"20"}),d.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},H_=S.lazy(async()=>await Ot(()=>import("./FolderModal.js"),[])),q_=()=>{const e=pn(),[t,n]=yg(),r=go(),s=Rg(),i=Og(),{appCode:o}=Te(),{t:l}=ue(["common",o]),{goToTrash:a,selectTreeItem:u,unfoldTreeItem:c,foldTreeItem:f,clearSelectedItems:p,clearSelectedIds:h}=mt(),y=async x=>{await c(x,e)},w=()=>{p(),h(),n()};return d.jsxs(d.Fragment,{children:[d.jsx(IE,{data:r,selectedNodesIds:i,onTreeItemSelect:u,onTreeItemFold:f,onTreeItemUnfold:y}),d.jsx(U_,{id:Mt.BIN,selected:s,onSelect:a}),d.jsx("div",{className:"d-grid my-16",children:d.jsx(ze,{disabled:s,type:"button",color:"primary",variant:"outline",leftIcon:d.jsx(GT,{}),onClick:w,children:l("explorer.folder.new")})}),d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:t&&d.jsx(H_,{edit:!1,isOpen:t,onSuccess:n,onCancel:n})})]})};const W_=S.lazy(async()=>({default:(await Ot(()=>Promise.resolve().then(()=>N6),void 0)).OnboardingModal})),G_=S.lazy(async()=>await Ot(()=>import("./AppAction.js"),[])),Q_=S.lazy(async()=>await Ot(()=>import("./Library.js"),[])),K_=S.lazy(async()=>await Ot(()=>import("./ActionBarContainer.js"),[])),X_=S.lazy(async()=>await Ot(()=>import("./DisableModal.js"),[])),Y_=S.lazy(async()=>await Ot(()=>import("./TrashModal.js"),[])),J_=({config:e})=>{const t=Rt(),{setConfig:n,setSearchParams:r}=mt();S.useEffect(()=>{n(e||{}),r({...t,app:e.app,types:e.types})},[e]);const{currentApp:s}=Te(),{data:i}=N_(),{isTrashedModalOpen:o,onTrashedCancel:l}=T_(),{isActionDisableModalOpen:a,onActionDisableCancel:u}=k_();kS();const c=Ac("publish",i),f=Ac("create",i);return e&&d.jsxs(d.Fragment,{children:[d.jsx(cS,{render:()=>f?d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:d.jsx(G_,{})}):null,children:d.jsx(FS,{app:s})}),d.jsxs(Ri,{className:"flex-grow-1",children:[d.jsx(Ri.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:d.jsxs(S.Suspense,{fallback:d.jsx(_t,{}),children:[d.jsx(q_,{}),c&&d.jsx(Q_,{})]})}),d.jsxs(Ri.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[d.jsx(V_,{}),d.jsx(C_,{}),d.jsx(z_,{})]}),d.jsxs(S.Suspense,{fallback:d.jsx(_t,{}),children:[d.jsx(K_,{}),d.jsx(W_,{id:"showOnboardingTrash",items:[{src:"onboarding/illu-trash-menu.svg",alt:"explorer.modal.onboarding.trash.screen1.alt",text:"explorer.modal.onboarding.trash.screen1.title"},{src:"onboarding/illu-trash-notif.svg",alt:"explorer.modal.onboarding.trash.screen2.alt",text:"explorer.modal.onboarding.trash.screen2.alt"},{src:"onboarding/illu-trash-delete.svg",alt:"explorer.modal.onboarding.trash.screen3.alt",text:"explorer.modal.onboarding.trash.screen3.title"}],modalOptions:{title:"explorer.modal.onboarding.trash.title",prevText:"explorer.modal.onboarding.trash.prev",nextText:"explorer.modal.onboarding.trash.next",closeText:"explorer.modal.onboarding.trash.close"}}),o&&d.jsx(Y_,{isOpen:o,onCancel:l}),a&&d.jsx(X_,{isOpen:a,onCancel:u})]})]})]})};function Z_(){const{init:e}=Te(),t=I6();return e?d.jsx(zE,{children:d.jsx(J_,{config:t})}):d.jsx(_t,{position:!1})}const e7=document.getElementById("root"),t7=new _4({queryCache:new Ay({onError:e=>{typeof e=="string"&&e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});VE(e7).render(d.jsx(S.StrictMode,{children:d.jsxs($4,{client:t7,children:[d.jsx(fS,{params:{app:"blog"},children:d.jsx(pS,{children:d.jsx(Z_,{})})}),d.jsx(A6,{initialIsOpen:!1})]})}));export{Qe as $,nI as A,ze as B,vr as C,gI as D,OI as E,i7 as F,l7 as G,bS as H,ho as I,qs as J,Ws as K,_t as L,Re as M,p2 as N,a7 as O,o7 as P,lt as Q,il as R,GT as S,OE as T,Rt as U,J as V,ee as W,m7 as X,g7 as Y,sb as Z,Ot as _,Te as a,_s as a0,rs as a1,p7 as a2,d7 as a3,h7 as a4,pn as a5,go as a6,IE as a7,N6 as a8,ue as b,mt as c,N_ as d,Cl as e,w7 as f,bd as g,oI as h,RI as i,d as j,Ys as k,Ed as l,Rg as m,Ye as n,Nd as o,c7 as p,u7 as q,S as r,Rd as s,f7 as t,yg as u,w_ as v,v7 as w,y7 as x,n2 as y,vh as z};
|