@ukpc-lib/react 0.3.23 → 0.3.24
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/components/index.cjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/{index.module-b8bb0879.cjs → index.module-64089a88.cjs} +1 -1
- package/dist/{index.module-77f36577.js → index.module-d2d48785.js} +9 -0
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),T=require("react"),p=require("../index.module-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),T=require("react"),p=require("../index.module-64089a88.cjs"),K=require("moment"),Kt=require("axios"),N=require("@mui/material");require("@r2wc/react-to-web-component");require("react-router-dom");function Xn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const L=Xn(T),Jn=e=>{var n,o;const{tabs:t}=e,r=i=>{e.setCurrentTab(i.target.id)};return console.log("🚀 ~ brandColors:",e.currentTab),c.jsxs(c.Fragment,{children:[c.jsx("style",{children:`
|
|
2
2
|
.tab-title {
|
|
3
3
|
min-width: 90px;
|
|
4
4
|
padding: 5px 16px;
|
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as T, Fragment as qe, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as L from "react";
|
|
3
3
|
import So, { useState as G, useContext as be, useEffect as Q, useRef as ve, useCallback as bt, forwardRef as Eo, createElement as er, PureComponent as Co } from "react";
|
|
4
|
-
import { c as rt, Q as kn, C as Te, p as At, u as fr, S as Oo, a as To, L as No, b as Ar, d as $o, e as mt, f as ko, s as pt, _ as z, g as xe, P as N, h as he, i as Io, o as Mo, j as Ao, k as Po, l as Pr, m as Ro, n as Rr, I as Do, q as zo, r as Dr, D as Fo, t as In, v as Mn, w as Lo, x as jo, y as Ce, z as Vo, A as gt } from "../index.module-
|
|
5
|
-
import { G as Sc, B as Ec, E as Cc } from "../index.module-
|
|
4
|
+
import { c as rt, Q as kn, C as Te, p as At, u as fr, S as Oo, a as To, L as No, b as Ar, d as $o, e as mt, f as ko, s as pt, _ as z, g as xe, P as N, h as he, i as Io, o as Mo, j as Ao, k as Po, l as Pr, m as Ro, n as Rr, I as Do, q as zo, r as Dr, D as Fo, t as In, v as Mn, w as Lo, x as jo, y as Ce, z as Vo, A as gt } from "../index.module-d2d48785.js";
|
|
5
|
+
import { G as Sc, B as Ec, E as Cc } from "../index.module-d2d48785.js";
|
|
6
6
|
import Z from "moment";
|
|
7
7
|
import hr from "axios";
|
|
8
8
|
import { Stack as se, Dialog as Ho, DialogTitle as Bo, Typography as Oe, DialogContent as Wo, DialogActions as Uo, Button as zr, ClickAwayListener as qo, TextField as An, IconButton as Yo, CircularProgress as Go, Fade as Ko, Paper as Zo, Checkbox as Xo } from "@mui/material";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ZL=require("./index.css");const ut=require("react/jsx-runtime"),Cc=require("@mui/material"),Pe=require("react"),Iy=require("axios"),xT=require("moment");require("@r2wc/react-to-web-component");const My=require("react-router-dom"),ST=require("react-query"),Ly=require("react-dom");function CT(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}function TT(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(i,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const kn=CT(Pe),ET=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#ffffff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px}.confirm-btn{background:#e01b00!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
|
|
2
2
|
`;function Fy({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function i(r){var s;((s=r.target)==null?void 0:s.id)==="modal-wrapper"&&e()}return ut.jsxs(ut.Fragment,{children:[ut.jsx("style",{type:"text/css",children:ET}),ut.jsx("div",{onClick:i,className:"modal-overlay",id:"modal-wrapper",children:ut.jsxs("div",{className:"modal-container",children:[ut.jsx("h3",{className:"modal-title",children:"Log out"}),ut.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),ut.jsxs("div",{className:"modal-footer",children:[ut.jsx("button",{className:"modal-button",onClick:e,children:"Cancel"}),ut.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const vo={primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};function jy(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=jy(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function Zs(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=jy(t))&&(i&&(i+=" "),i+=e);return i}const Jc=t=>typeof t=="number"&&!isNaN(t),Fu=t=>typeof t=="string",Wo=t=>typeof t=="function",Wf=t=>Fu(t)||Wo(t)?t:null,Fh=t=>Pe.isValidElement(t)||Fu(t)||Wo(t)||Jc(t);function kT(t,e,n){n===void 0&&(n=300);const{scrollHeight:i,style:r}=t;requestAnimationFrame(()=>{r.minHeight="initial",r.height=i+"px",r.transition=`all ${n}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(e,n)})})}function dd(t){let{enter:e,exit:n,appendPosition:i=!1,collapse:r=!0,collapseDuration:s=300}=t;return function(u){let{children:g,position:p,preventExitTransition:y,done:E,nodeRef:x,isIn:O,playToast:j}=u;const $=i?`${e}--${p}`:e,Y=i?`${n}--${p}`:n,z=Pe.useRef(0);return Pe.useLayoutEffect(()=>{const L=x.current,ne=$.split(" "),te=he=>{he.target===x.current&&(j(),L.removeEventListener("animationend",te),L.removeEventListener("animationcancel",te),z.current===0&&he.type!=="animationcancel"&&L.classList.remove(...ne))};L.classList.add(...ne),L.addEventListener("animationend",te),L.addEventListener("animationcancel",te)},[]),Pe.useEffect(()=>{const L=x.current,ne=()=>{L.removeEventListener("animationend",ne),r?kT(L,E,s):E()};O||(y?ne():(z.current=1,L.className+=` ${Y}`,L.addEventListener("animationend",ne)))},[O]),Pe.createElement(Pe.Fragment,null,g)}}function Gg(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const Ki=new Map;let Qc=[];const jh=new Set,_T=t=>jh.forEach(e=>e(t)),By=()=>Ki.size>0;function Ny(t,e){var n;if(e)return!((n=Ki.get(e))==null||!n.isToastActive(t));let i=!1;return Ki.forEach(r=>{r.isToastActive(t)&&(i=!0)}),i}function Hy(t,e){Fh(t)&&(By()||Qc.push({content:t,options:e}),Ki.forEach(n=>{n.buildToast(t,e)}))}function qg(t,e){Ki.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function PT(t){const{subscribe:e,getSnapshot:n,setProps:i}=Pe.useRef(function(s){const u=s.containerId||1;return{subscribe(g){const p=function(E,x,O){let j=1,$=0,Y=[],z=[],L=[],ne=x;const te=new Map,he=new Set,ie=()=>{L=Array.from(te.values()),he.forEach(ke=>ke())},xe=ke=>{z=ke==null?[]:z.filter(ve=>ve!==ke),ie()},b=ke=>{const{toastId:ve,onOpen:nt,updateId:gt,children:tt}=ke.props,et=gt==null;ke.staleId&&te.delete(ke.staleId),te.set(ve,ke),z=[...z,ke.props.toastId].filter(ft=>ft!==ke.staleId),ie(),O(Gg(ke,et?"added":"updated")),et&&Wo(nt)&&nt(Pe.isValidElement(tt)&&tt.props)};return{id:E,props:ne,observe:ke=>(he.add(ke),()=>he.delete(ke)),toggle:(ke,ve)=>{te.forEach(nt=>{ve!=null&&ve!==nt.props.toastId||Wo(nt.toggle)&&nt.toggle(ke)})},removeToast:xe,toasts:te,clearQueue:()=>{$-=Y.length,Y=[]},buildToast:(ke,ve)=>{if((Ye=>{let{containerId:Ze,toastId:Qe,updateId:Je}=Ye;const Ke=Ze?Ze!==E:E!==1,ht=te.has(Qe)&&Je==null;return Ke||ht})(ve))return;const{toastId:nt,updateId:gt,data:tt,staleId:et,delay:ft}=ve,me=()=>{xe(nt)},Me=gt==null;Me&&$++;const ze={...ne,style:ne.toastStyle,key:j++,...Object.fromEntries(Object.entries(ve).filter(Ye=>{let[Ze,Qe]=Ye;return Qe!=null})),toastId:nt,updateId:gt,data:tt,closeToast:me,isIn:!1,className:Wf(ve.className||ne.toastClassName),bodyClassName:Wf(ve.bodyClassName||ne.bodyClassName),progressClassName:Wf(ve.progressClassName||ne.progressClassName),autoClose:!ve.isLoading&&(qe=ve.autoClose,at=ne.autoClose,qe===!1||Jc(qe)&&qe>0?qe:at),deleteToast(){const Ye=te.get(nt),{onClose:Ze,children:Qe}=Ye.props;Wo(Ze)&&Ze(Pe.isValidElement(Qe)&&Qe.props),O(Gg(Ye,"removed")),te.delete(nt),$--,$<0&&($=0),Y.length>0?b(Y.shift()):ie()}};var qe,at;ze.closeButton=ne.closeButton,ve.closeButton===!1||Fh(ve.closeButton)?ze.closeButton=ve.closeButton:ve.closeButton===!0&&(ze.closeButton=!Fh(ne.closeButton)||ne.closeButton);let _e=ke;Pe.isValidElement(ke)&&!Fu(ke.type)?_e=Pe.cloneElement(ke,{closeToast:me,toastProps:ze,data:tt}):Wo(ke)&&(_e=ke({closeToast:me,toastProps:ze,data:tt}));const Ae={content:_e,props:ze,staleId:et};ne.limit&&ne.limit>0&&$>ne.limit&&Me?Y.push(Ae):Jc(ft)?setTimeout(()=>{b(Ae)},ft):b(Ae)},setProps(ke){ne=ke},setToggle:(ke,ve)=>{te.get(ke).toggle=ve},isToastActive:ke=>z.some(ve=>ve===ke),getSnapshot:()=>ne.newestOnTop?L.reverse():L}}(u,s,_T);Ki.set(u,p);const y=p.observe(g);return Qc.forEach(E=>Hy(E.content,E.options)),Qc=[],()=>{y(),Ki.delete(u)}},setProps(g){var p;(p=Ki.get(u))==null||p.setProps(g)},getSnapshot(){var g;return(g=Ki.get(u))==null?void 0:g.getSnapshot()}}}(t)).current;i(t);const r=Pe.useSyncExternalStore(e,n,n);return{getToastToRender:function(s){if(!r)return[];const u=new Map;return r.forEach(g=>{const{position:p}=g.props;u.has(p)||u.set(p,[]),u.get(p).push(g)}),Array.from(u,g=>s(g[0],g[1]))},isToastActive:Ny,count:r==null?void 0:r.length}}function RT(t){const[e,n]=Pe.useState(!1),[i,r]=Pe.useState(!1),s=Pe.useRef(null),u=Pe.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:g,pauseOnHover:p,closeToast:y,onClick:E,closeOnClick:x}=t;var O,j;function $(){n(!0)}function Y(){n(!1)}function z(te){const he=s.current;u.canDrag&&he&&(u.didMove=!0,e&&Y(),u.delta=t.draggableDirection==="x"?te.clientX-u.start:te.clientY-u.start,u.start!==te.clientX&&(u.canCloseOnClick=!1),he.style.transform=`translate3d(${t.draggableDirection==="x"?`${u.delta}px, var(--y)`:`0, calc(${u.delta}px + var(--y))`},0)`,he.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function L(){document.removeEventListener("pointermove",z),document.removeEventListener("pointerup",L);const te=s.current;if(u.canDrag&&u.didMove&&te){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return r(!0),t.closeToast(),void t.collapseAll();te.style.transition="transform 0.2s, opacity 0.2s",te.style.removeProperty("transform"),te.style.removeProperty("opacity")}}(j=Ki.get((O={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||j.setToggle(O.id,O.fn),Pe.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||Y(),window.addEventListener("focus",$),window.addEventListener("blur",Y),()=>{window.removeEventListener("focus",$),window.removeEventListener("blur",Y)}},[t.pauseOnFocusLoss]);const ne={onPointerDown:function(te){if(t.draggable===!0||t.draggable===te.pointerType){u.didMove=!1,document.addEventListener("pointermove",z),document.addEventListener("pointerup",L);const he=s.current;u.canCloseOnClick=!0,u.canDrag=!0,he.style.transition="none",t.draggableDirection==="x"?(u.start=te.clientX,u.removalDistance=he.offsetWidth*(t.draggablePercent/100)):(u.start=te.clientY,u.removalDistance=he.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(te){const{top:he,bottom:ie,left:xe,right:b}=s.current.getBoundingClientRect();te.nativeEvent.type!=="touchend"&&t.pauseOnHover&&te.clientX>=xe&&te.clientX<=b&&te.clientY>=he&&te.clientY<=ie?Y():$()}};return g&&p&&(ne.onMouseEnter=Y,t.stacked||(ne.onMouseLeave=$)),x&&(ne.onClick=te=>{E&&E(te),u.canCloseOnClick&&y()}),{playToast:$,pauseToast:Y,isRunning:e,preventExitTransition:i,toastRef:s,eventHandlers:ne}}function AT(t){let{delay:e,isRunning:n,closeToast:i,type:r="default",hide:s,className:u,style:g,controlledProgress:p,progress:y,rtl:E,isIn:x,theme:O}=t;const j=s||p&&y===0,$={...g,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};p&&($.transform=`scaleX(${y})`);const Y=Zs("Toastify__progress-bar",p?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${O}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":E}),z=Wo(u)?u({rtl:E,type:r,defaultClassName:Y}):Zs(Y,u),L={[p&&y>=1?"onTransitionEnd":"onAnimationEnd"]:p&&y<1?null:()=>{x&&i()}};return Pe.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":j},Pe.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${O} Toastify__progress-bar--${r}`}),Pe.createElement("div",{role:"progressbar","aria-hidden":j?"true":"false","aria-label":"notification timer",className:z,style:$,...L}))}let OT=1;const Wy=()=>""+OT++;function DT(t){return t&&(Fu(t.toastId)||Jc(t.toastId))?t.toastId:Wy()}function Gc(t,e){return Hy(t,e),e.toastId}function $f(t,e){return{...e,type:e&&e.type||t,toastId:DT(e)}}function kf(t){return(e,n)=>Gc(e,$f(t,n))}function wn(t,e){return Gc(t,$f("default",e))}wn.loading=(t,e)=>Gc(t,$f("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),wn.promise=function(t,e,n){let i,{pending:r,error:s,success:u}=e;r&&(i=Fu(r)?wn.loading(r,n):wn.loading(r.render,{...n,...r}));const g={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},p=(E,x,O)=>{if(x==null)return void wn.dismiss(i);const j={type:E,...g,...n,data:O},$=Fu(x)?{render:x}:x;return i?wn.update(i,{...j,...$}):wn($.render,{...j,...$}),O},y=Wo(t)?t():t;return y.then(E=>p("success",u,E)).catch(E=>p("error",s,E)),y},wn.success=kf("success"),wn.info=kf("info"),wn.error=kf("error"),wn.warning=kf("warning"),wn.warn=wn.warning,wn.dark=(t,e)=>Gc(t,$f("default",{theme:"dark",...e})),wn.dismiss=function(t){(function(e){var n;if(By()){if(e==null||Fu(n=e)||Jc(n))Ki.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var i;(i=Ki.get(e.containerId))!=null&&i.removeToast(e.id)||Ki.forEach(r=>{r.removeToast(e.id)})}}else Qc=Qc.filter(r=>e!=null&&r.options.toastId!==e)})(t)},wn.clearWaitingQueue=function(t){t===void 0&&(t={}),Ki.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},wn.isActive=Ny,wn.update=function(t,e){e===void 0&&(e={});const n=((i,r)=>{var s;let{containerId:u}=r;return(s=Ki.get(u||1))==null?void 0:s.toasts.get(i)})(t,e);if(n){const{props:i,content:r}=n,s={delay:100,...i,...e,toastId:e.toastId||t,updateId:Wy()};s.toastId!==t&&(s.staleId=t);const u=s.render||r;delete s.render,Gc(u,s)}},wn.done=t=>{wn.update(t,{progress:1})},wn.onChange=function(t){return jh.add(t),()=>{jh.delete(t)}},wn.play=t=>qg(!0,t),wn.pause=t=>qg(!1,t);const IT=typeof window<"u"?Pe.useLayoutEffect:Pe.useEffect,_f=t=>{let{theme:e,type:n,isLoading:i,...r}=t;return Pe.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},Qd={info:function(t){return Pe.createElement(_f,{...t},Pe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return Pe.createElement(_f,{...t},Pe.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return Pe.createElement(_f,{...t},Pe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return Pe.createElement(_f,{...t},Pe.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Pe.createElement("div",{className:"Toastify__spinner"})}},MT=t=>{const{isRunning:e,preventExitTransition:n,toastRef:i,eventHandlers:r,playToast:s}=RT(t),{closeButton:u,children:g,autoClose:p,onClick:y,type:E,hideProgressBar:x,closeToast:O,transition:j,position:$,className:Y,style:z,bodyClassName:L,bodyStyle:ne,progressClassName:te,progressStyle:he,updateId:ie,role:xe,progress:b,rtl:ke,toastId:ve,deleteToast:nt,isIn:gt,isLoading:tt,closeOnClick:et,theme:ft}=t,me=Zs("Toastify__toast",`Toastify__toast-theme--${ft}`,`Toastify__toast--${E}`,{"Toastify__toast--rtl":ke},{"Toastify__toast--close-on-click":et}),Me=Wo(Y)?Y({rtl:ke,position:$,type:E,defaultClassName:me}):Zs(me,Y),ze=function(Ae){let{theme:Ye,type:Ze,isLoading:Qe,icon:Je}=Ae,Ke=null;const ht={theme:Ye,type:Ze};return Je===!1||(Wo(Je)?Ke=Je({...ht,isLoading:Qe}):Pe.isValidElement(Je)?Ke=Pe.cloneElement(Je,ht):Qe?Ke=Qd.spinner():(wt=>wt in Qd)(Ze)&&(Ke=Qd[Ze](ht))),Ke}(t),qe=!!b||!p,at={closeToast:O,type:E,theme:ft};let _e=null;return u===!1||(_e=Wo(u)?u(at):Pe.isValidElement(u)?Pe.cloneElement(u,at):function(Ae){let{closeToast:Ye,theme:Ze,ariaLabel:Qe="close"}=Ae;return Pe.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Ze}`,type:"button",onClick:Je=>{Je.stopPropagation(),Ye(Je)},"aria-label":Qe},Pe.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Pe.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(at)),Pe.createElement(j,{isIn:gt,done:nt,position:$,preventExitTransition:n,nodeRef:i,playToast:s},Pe.createElement("div",{id:ve,onClick:y,"data-in":gt,className:Me,...r,style:z,ref:i},Pe.createElement("div",{...gt&&{role:xe},className:Wo(L)?L({type:E}):Zs("Toastify__toast-body",L),style:ne},ze!=null&&Pe.createElement("div",{className:Zs("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!tt})},ze),Pe.createElement("div",null,g)),_e,Pe.createElement(AT,{...ie&&!qe?{key:`pb-${ie}`}:{},rtl:ke,theme:ft,delay:p,isRunning:e,isIn:gt,closeToast:O,hide:x,type:E,style:he,className:te,controlledProgress:qe,progress:b||0})))},hd=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},LT=dd(hd("bounce",!0));dd(hd("slide",!0));dd(hd("zoom"));dd(hd("flip"));const FT={position:"top-right",transition:LT,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function jT(t){let e={...FT,...t};const n=t.stacked,[i,r]=Pe.useState(!0),s=Pe.useRef(null),{getToastToRender:u,isToastActive:g,count:p}=PT(e),{className:y,style:E,rtl:x,containerId:O}=e;function j(Y){const z=Zs("Toastify__toast-container",`Toastify__toast-container--${Y}`,{"Toastify__toast-container--rtl":x});return Wo(y)?y({position:Y,rtl:x,defaultClassName:z}):Zs(z,Wf(y))}function $(){n&&(r(!0),wn.play())}return IT(()=>{if(n){var Y;const z=s.current.querySelectorAll('[data-in="true"]'),L=12,ne=(Y=e.position)==null?void 0:Y.includes("top");let te=0,he=0;Array.from(z).reverse().forEach((ie,xe)=>{const b=ie;b.classList.add("Toastify__toast--stacked"),xe>0&&(b.dataset.collapsed=`${i}`),b.dataset.pos||(b.dataset.pos=ne?"top":"bot");const ke=te*(i?.2:1)+(i?0:L*xe);b.style.setProperty("--y",`${ne?ke:-1*ke}px`),b.style.setProperty("--g",`${L}`),b.style.setProperty("--s",""+(1-(i?he:0))),te+=b.offsetHeight,he+=.025})}},[i,p,n]),Pe.createElement("div",{ref:s,className:"Toastify",id:O,onMouseEnter:()=>{n&&(r(!1),wn.pause())},onMouseLeave:$},u((Y,z)=>{const L=z.length?{...E}:{...E,pointerEvents:"none"};return Pe.createElement("div",{className:j(Y),style:L,key:`container-${Y}`},z.map(ne=>{let{content:te,props:he}=ne;return Pe.createElement(MT,{...he,stacked:n,collapseAll:$,isIn:g(he.toastId,he.containerId),style:he.style,key:`toast-${he.key}`},te)}))}))}function BT(){return ut.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ut.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),ut.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),ut.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function NT(){return ut.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ut.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),ut.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function HT(){return ut.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ut.jsx("path",{d:"M12 7.73684V13.4211M12 21C7.69215 21 5.53823 21 4.29308 20.0953C3.20701 19.3063 2.50676 18.0934 2.36643 16.7583C2.20555 15.2276 3.28252 13.3623 5.43644 9.63158C7.59036 5.90088 8.66732 4.03553 10.0734 3.40952C11.2998 2.86349 12.7002 2.86349 13.9266 3.40952C15.3327 4.03553 16.4096 5.90088 18.5636 9.63158C20.7175 13.3623 21.7944 15.2276 21.6336 16.7583C21.4932 18.0934 20.793 19.3063 19.7069 20.0953C18.4618 21 16.3078 21 12 21Z",stroke:"#FFB600","stroke-width":"1.5","stroke-linecap":"round"}),ut.jsx("path",{d:"M12.9473 16.263C12.9473 16.7863 12.5232 17.2104 12 17.2104C11.4768 17.2104 11.0526 16.7863 11.0526 16.263C11.0526 15.7398 11.4768 15.3157 12 15.3157C12.5232 15.3157 12.9473 15.7398 12.9473 16.263Z",fill:"#FFB600"})]})}const pp={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},WT=({closeToast:t})=>ut.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:ut.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ut.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})}),UT=t=>{wn.success(t,{icon:ut.jsx(NT,{}),bodyStyle:{},position:"bottom-right",style:{...pp,background:vo.successLight,borderColor:vo.success,color:vo.success}})},gp=t=>{wn.error(t,{icon:ut.jsx(BT,{}),position:"bottom-right",style:{...pp,background:vo.dangerLight,borderColor:vo.danger,color:vo.danger}})},VT=t=>{wn.error(t,{icon:ut.jsx(HT,{}),position:"bottom-right",style:{...pp,background:vo.warningLight,borderColor:vo.warning,color:vo.warning}})},zT=t=>{wn(t,{closeButton:WT,toastId:"notify",position:"top-right",closeOnClick:!1,hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:vo.textPrimary}})},Xg=window.location.href,Uy=Pe.createContext({}),$T=({children:t,baseUrl:e,userData:n})=>{const i=()=>{window.location.href=`${e}/authentication/login?callbackUrl=${Xg}`},r=()=>{window.location.href=`${e}/authentication/logout?callbackUrl=${Xg}`};return n!=null&&n.isFetching?ut.jsx(Cc.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:ut.jsx(Cc.CircularProgress,{})}):ut.jsx(Uy.Provider,{value:{user:n==null?void 0:n.data,login:i,logout:r},children:t})},YT=()=>{const{login:t,logout:e,user:n}=Pe.useContext(Uy);return{login:t,logout:e,user:n}},GT={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},Kg=t=>{window.location.href=`${t}/authentication/login?callbackUrl=${window.location.href}`},qT=t=>{window.location.href=`${t}/authentication/logout?callbackUrl=${window.location.href}`};function Uo(t){"@babel/helpers - typeof";return Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uo(t)}function zo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function XT(t,e){if(Uo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Uo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vy(t){var e=XT(t,"string");return Uo(e)=="symbol"?e:String(e)}function Zg(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Vy(i.key),i)}}function $o(t,e,n){return e&&Zg(t.prototype,e),n&&Zg(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yf(t,e){return Yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},Yf(t,e)}function pd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yf(t,e)}function lf(t,e){if(e&&(Uo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qs(t)}function ds(t){return ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ds(t)}function hs(t,e,n){return e=Vy(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zy(t){if(Array.isArray(t))return t}function KT(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Jg(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function $y(t,e){if(t){if(typeof t=="string")return Jg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jg(t,e)}}function Yy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZT(t){return zy(t)||KT(t)||$y(t)||Yy()}function Qg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function em(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qg(Object(n),!0).forEach(function(i){hs(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qg(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var JT={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},QT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};zo(this,t),this.init(e,n)}return $o(t,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=n||JT,this.options=i,this.debug=i.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,i,r,s){return s&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(r).concat(this.prefix," ").concat(n[0])),this.logger[i](n))}},{key:"create",value:function(n){return new t(this.logger,em(em({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),cs=new QT,Ul=function(){function t(){zo(this,t),this.observers={}}return $o(t,[{key:"on",value:function(n,i){var r=this;return n.split(" ").forEach(function(s){r.observers[s]=r.observers[s]||[],r.observers[s].push(i)}),this}},{key:"off",value:function(n,i){if(this.observers[n]){if(!i){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(r){return r!==i})}}},{key:"emit",value:function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];if(this.observers[n]){var u=[].concat(this.observers[n]);u.forEach(function(p){p.apply(void 0,r)})}if(this.observers["*"]){var g=[].concat(this.observers["*"]);g.forEach(function(p){p.apply(p,[n].concat(r))})}}}]),t}();function Hc(){var t,e,n=new Promise(function(i,r){t=i,e=r});return n.resolve=t,n.reject=e,n}function tm(t){return t==null?"":""+t}function eE(t,e,n){t.forEach(function(i){e[i]&&(n[i]=e[i])})}function mp(t,e,n){function i(g){return g&&g.indexOf("###")>-1?g.replace(/###/g,"."):g}function r(){return!t||typeof t=="string"}for(var s=typeof e!="string"?[].concat(e):e.split(".");s.length>1;){if(r())return{};var u=i(s.shift());!t[u]&&n&&(t[u]=new n),Object.prototype.hasOwnProperty.call(t,u)?t=t[u]:t={}}return r()?{}:{obj:t,k:i(s.shift())}}function nm(t,e,n){var i=mp(t,e,Object),r=i.obj,s=i.k;r[s]=n}function tE(t,e,n,i){var r=mp(t,e,Object),s=r.obj,u=r.k;s[u]=s[u]||[],i&&(s[u]=s[u].concat(n)),i||s[u].push(n)}function Gf(t,e){var n=mp(t,e),i=n.obj,r=n.k;if(i)return i[r]}function nE(t,e,n){var i=Gf(t,n);return i!==void 0?i:Gf(e,n)}function Gy(t,e,n){for(var i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?typeof t[i]=="string"||t[i]instanceof String||typeof e[i]=="string"||e[i]instanceof String?n&&(t[i]=e[i]):Gy(t[i],e[i],n):t[i]=e[i]);return t}function pc(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var rE={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function iE(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return rE[e]}):t}var gd=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,oE=[" ",",","?","!",";"];function aE(t,e,n){e=e||"",n=n||"";var i=oE.filter(function(g){return e.indexOf(g)<0&&n.indexOf(g)<0});if(i.length===0)return!0;var r=new RegExp("(".concat(i.map(function(g){return g==="?"?"\\?":g}).join("|"),")")),s=!r.test(t);if(!s){var u=t.indexOf(n);u>0&&!r.test(t.substring(0,u))&&(s=!0)}return s}function qf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var i=e.split(n),r=t,s=0;s<i.length;++s){if(!r||typeof r[i[s]]=="string"&&s+1<i.length)return;if(r[i[s]]===void 0){for(var u=2,g=i.slice(s,s+u).join(n),p=r[g];p===void 0&&i.length>s+u;)u++,g=i.slice(s,s+u).join(n),p=r[g];if(p===void 0)return;if(p===null)return null;if(e.endsWith(g)){if(typeof p=="string")return p;if(g&&typeof p[g]=="string")return p[g]}var y=i.slice(s+u).join(n);return y?qf(p,y,n):void 0}r=r[i[s]]}return r}}function rm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Pf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rm(Object(n),!0).forEach(function(i){hs(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rm(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function sE(t){var e=lE();return function(){var i=ds(t),r;if(e){var s=ds(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return lf(this,r)}}function lE(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var uE=function(t){pd(n,t);var e=sE(n);function n(i){var r,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return zo(this,n),r=e.call(this),gd&&Ul.call(Qs(r)),r.data=i||{},r.options=s,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return $o(n,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var s=this.options.ns.indexOf(r);s>-1&&this.options.ns.splice(s,1)}},{key:"getResource",value:function(r,s,u){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator,y=g.ignoreJSONStructure!==void 0?g.ignoreJSONStructure:this.options.ignoreJSONStructure,E=[r,s];u&&typeof u!="string"&&(E=E.concat(u)),u&&typeof u=="string"&&(E=E.concat(p?u.split(p):u)),r.indexOf(".")>-1&&(E=r.split("."));var x=Gf(this.data,E);return x||!y||typeof u!="string"?x:qf(this.data&&this.data[r]&&this.data[r][s],u,p)}},{key:"addResource",value:function(r,s,u,g){var p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},y=p.keySeparator!==void 0?p.keySeparator:this.options.keySeparator,E=[r,s];u&&(E=E.concat(y?u.split(y):u)),r.indexOf(".")>-1&&(E=r.split("."),g=s,s=E[1]),this.addNamespaces(s),nm(this.data,E,g),p.silent||this.emit("added",r,s,u,g)}},{key:"addResources",value:function(r,s,u){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var p in u)(typeof u[p]=="string"||Object.prototype.toString.apply(u[p])==="[object Array]")&&this.addResource(r,s,p,u[p],{silent:!0});g.silent||this.emit("added",r,s,u)}},{key:"addResourceBundle",value:function(r,s,u,g,p){var y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},E=[r,s];r.indexOf(".")>-1&&(E=r.split("."),g=u,u=s,s=E[1]),this.addNamespaces(s);var x=Gf(this.data,E)||{};g?Gy(x,u,p):x=Pf(Pf({},x),u),nm(this.data,E,x),y.silent||this.emit("added",r,s,u)}},{key:"removeResourceBundle",value:function(r,s){this.hasResourceBundle(r,s)&&delete this.data[r][s],this.removeNamespaces(s),this.emit("removed",r,s)}},{key:"hasResourceBundle",value:function(r,s){return this.getResource(r,s)!==void 0}},{key:"getResourceBundle",value:function(r,s){return s||(s=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Pf(Pf({},{}),this.getResource(r,s)):this.getResource(r,s)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"hasLanguageSomeTranslations",value:function(r){var s=this.getDataByLanguage(r),u=s&&Object.keys(s)||[];return!!u.find(function(g){return s[g]&&Object.keys(s[g]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Ul),qy={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,i,r,s){var u=this;return e.forEach(function(g){u.processors[g]&&(n=u.processors[g].process(n,i,r,s))}),n}};function im(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function ki(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?im(Object(n),!0).forEach(function(i){hs(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):im(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function cE(t){var e=fE();return function(){var i=ds(t),r;if(e){var s=ds(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return lf(this,r)}}function fE(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var om={},am=function(t){pd(n,t);var e=cE(n);function n(i){var r,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return zo(this,n),r=e.call(this),gd&&Ul.call(Qs(r)),eE(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,Qs(r)),r.options=s,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=cs.create("translator"),r}return $o(n,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var u=this.resolve(r,s);return u&&u.res!==void 0}},{key:"extractFromKey",value:function(r,s){var u=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");var g=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,p=s.ns||this.options.defaultNS||[],y=u&&r.indexOf(u)>-1,E=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!aE(r,u,g);if(y&&!E){var x=r.match(this.interpolator.nestingRegexp);if(x&&x.length>0)return{key:r,namespaces:p};var O=r.split(u);(u!==g||u===g&&this.options.ns.indexOf(O[0])>-1)&&(p=O.shift()),r=O.join(g)}return typeof p=="string"&&(p=[p]),{key:r,namespaces:p}}},{key:"translate",value:function(r,s,u){var g=this;if(Uo(s)!=="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),Uo(s)==="object"&&(s=ki({},s)),s||(s={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var p=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,y=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,E=this.extractFromKey(r[r.length-1],s),x=E.key,O=E.namespaces,j=O[O.length-1],$=s.lng||this.language,Y=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if($&&$.toLowerCase()==="cimode"){if(Y){var z=s.nsSeparator||this.options.nsSeparator;return p?{res:"".concat(j).concat(z).concat(x),usedKey:x,exactUsedKey:x,usedLng:$,usedNS:j}:"".concat(j).concat(z).concat(x)}return p?{res:x,usedKey:x,exactUsedKey:x,usedLng:$,usedNS:j}:x}var L=this.resolve(r,s),ne=L&&L.res,te=L&&L.usedKey||x,he=L&&L.exactUsedKey||x,ie=Object.prototype.toString.apply(ne),xe=["[object Number]","[object Function]","[object RegExp]"],b=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,ke=!this.i18nFormat||this.i18nFormat.handleAsObject,ve=typeof ne!="string"&&typeof ne!="boolean"&&typeof ne!="number";if(ke&&ne&&ve&&xe.indexOf(ie)<0&&!(typeof b=="string"&&ie==="[object Array]")){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var nt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(te,ne,ki(ki({},s),{},{ns:O})):"key '".concat(x," (").concat(this.language,")' returned an object instead of string.");return p?(L.res=nt,L):nt}if(y){var gt=ie==="[object Array]",tt=gt?[]:{},et=gt?he:te;for(var ft in ne)if(Object.prototype.hasOwnProperty.call(ne,ft)){var me="".concat(et).concat(y).concat(ft);tt[ft]=this.translate(me,ki(ki({},s),{joinArrays:!1,ns:O})),tt[ft]===me&&(tt[ft]=ne[ft])}ne=tt}}else if(ke&&typeof b=="string"&&ie==="[object Array]")ne=ne.join(b),ne&&(ne=this.extendTranslation(ne,r,s,u));else{var Me=!1,ze=!1,qe=s.count!==void 0&&typeof s.count!="string",at=n.hasDefaultValue(s),_e=qe?this.pluralResolver.getSuffix($,s.count,s):"",Ae=s["defaultValue".concat(_e)]||s.defaultValue;!this.isValidLookup(ne)&&at&&(Me=!0,ne=Ae),this.isValidLookup(ne)||(ze=!0,ne=x);var Ye=s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ze=Ye&&ze?void 0:ne,Qe=at&&Ae!==ne&&this.options.updateMissing;if(ze||Me||Qe){if(this.logger.log(Qe?"updateKey":"missingKey",$,j,x,Qe?Ae:ne),y){var Je=this.resolve(x,ki(ki({},s),{},{keySeparator:!1}));Je&&Je.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.")}var Ke=[],ht=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ht&&ht[0])for(var wt=0;wt<ht.length;wt++)Ke.push(ht[wt]);else this.options.saveMissingTo==="all"?Ke=this.languageUtils.toResolveHierarchy(s.lng||this.language):Ke.push(s.lng||this.language);var xt=function(Tt,Xe,Bt){var Ht=at&&Bt!==ne?Bt:Ze;g.options.missingKeyHandler?g.options.missingKeyHandler(Tt,j,Xe,Ht,Qe,s):g.backendConnector&&g.backendConnector.saveMissing&&g.backendConnector.saveMissing(Tt,j,Xe,Ht,Qe,s),g.emit("missingKey",Tt,j,Xe,ne)};this.options.saveMissing&&(this.options.saveMissingPlurals&&qe?Ke.forEach(function(pt){g.pluralResolver.getSuffixes(pt,s).forEach(function(Tt){xt([pt],x+Tt,s["defaultValue".concat(Tt)]||Ae)})}):xt(Ke,x,Ae))}ne=this.extendTranslation(ne,r,s,L,u),ze&&ne===x&&this.options.appendNamespaceToMissingKey&&(ne="".concat(j,":").concat(x)),(ze||Me)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?ne=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(j,":").concat(x):x,Me?ne:void 0):ne=this.options.parseMissingKeyHandler(ne))}return p?(L.res=ne,L):ne}},{key:"extendTranslation",value:function(r,s,u,g,p){var y=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,ki(ki({},this.options.interpolation.defaultVariables),u),g.usedLng,g.usedNS,g.usedKey,{resolved:g});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init(ki(ki({},u),{interpolation:ki(ki({},this.options.interpolation),u.interpolation)}));var E=typeof r=="string"&&(u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),x;if(E){var O=r.match(this.interpolator.nestingRegexp);x=O&&O.length}var j=u.replace&&typeof u.replace!="string"?u.replace:u;if(this.options.interpolation.defaultVariables&&(j=ki(ki({},this.options.interpolation.defaultVariables),j)),r=this.interpolator.interpolate(r,j,u.lng||this.language,u),E){var $=r.match(this.interpolator.nestingRegexp),Y=$&&$.length;x<Y&&(u.nest=!1)}!u.lng&&this.options.compatibilityAPI!=="v1"&&g&&g.res&&(u.lng=g.usedLng),u.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var ne=arguments.length,te=new Array(ne),he=0;he<ne;he++)te[he]=arguments[he];return p&&p[0]===te[0]&&!u.context?(y.logger.warn("It seems you are nesting recursively key: ".concat(te[0]," in key: ").concat(s[0])),null):y.translate.apply(y,te.concat([s]))},u)),u.interpolation&&this.interpolator.reset()}var z=u.postProcess||this.options.postProcess,L=typeof z=="string"?[z]:z;return r!=null&&L&&L.length&&u.applyPostProcessor!==!1&&(r=qy.handle(L,r,s,this.options&&this.options.postProcessPassResolved?ki({i18nResolved:g},u):u,this)),r}},{key:"resolve",value:function(r){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g,p,y,E,x;return typeof r=="string"&&(r=[r]),r.forEach(function(O){if(!s.isValidLookup(g)){var j=s.extractFromKey(O,u),$=j.key;p=$;var Y=j.namespaces;s.options.fallbackNS&&(Y=Y.concat(s.options.fallbackNS));var z=u.count!==void 0&&typeof u.count!="string",L=z&&!u.ordinal&&u.count===0&&s.pluralResolver.shouldUseIntlApi(),ne=u.context!==void 0&&(typeof u.context=="string"||typeof u.context=="number")&&u.context!=="",te=u.lngs?u.lngs:s.languageUtils.toResolveHierarchy(u.lng||s.language,u.fallbackLng);Y.forEach(function(he){s.isValidLookup(g)||(x=he,!om["".concat(te[0],"-").concat(he)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(x)&&(om["".concat(te[0],"-").concat(he)]=!0,s.logger.warn('key "'.concat(p,'" for languages "').concat(te.join(", "),`" won't get resolved as namespace "`).concat(x,'" 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!!!")),te.forEach(function(ie){if(!s.isValidLookup(g)){E=ie;var xe=[$];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(xe,$,ie,he,u);else{var b;z&&(b=s.pluralResolver.getSuffix(ie,u.count,u));var ke="".concat(s.options.pluralSeparator,"zero");if(z&&(xe.push($+b),L&&xe.push($+ke)),ne){var ve="".concat($).concat(s.options.contextSeparator).concat(u.context);xe.push(ve),z&&(xe.push(ve+b),L&&xe.push(ve+ke))}}for(var nt;nt=xe.pop();)s.isValidLookup(g)||(y=nt,g=s.getResource(ie,he,nt,u))}}))})}}),{res:g,usedKey:p,exactUsedKey:y,usedLng:E,usedNS:x}}},{key:"isValidLookup",value:function(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,s,u){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,s,u,g):this.resourceStore.getResource(r,s,u,g)}}],[{key:"hasDefaultValue",value:function(r){var s="defaultValue";for(var u in r)if(Object.prototype.hasOwnProperty.call(r,u)&&s===u.substring(0,s.length)&&r[u]!==void 0)return!0;return!1}}]),n}(Ul);function eh(t){return t.charAt(0).toUpperCase()+t.slice(1)}var sm=function(){function t(e){zo(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=cs.create("languageUtils")}return $o(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var i=n.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var i=n.split("-");return this.formatLanguageCode(i[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var i=["hans","hant","latn","cyrl","cans","mong","arab"],r=n.split("-");return this.options.lowerCaseLng?r=r.map(function(s){return s.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=eh(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()),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=eh(r[1].toLowerCase())),i.indexOf(r[2].toLowerCase())>-1&&(r[2]=eh(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var i=this;if(!n)return null;var r;return n.forEach(function(s){if(!r){var u=i.formatLanguageCode(s);(!i.options.supportedLngs||i.isSupportedCode(u))&&(r=u)}}),!r&&this.options.supportedLngs&&n.forEach(function(s){if(!r){var u=i.getLanguagePartFromCode(s);if(i.isSupportedCode(u))return r=u;r=i.options.supportedLngs.find(function(g){if(g===u)return g;if(!(g.indexOf("-")<0&&u.indexOf("-")<0)&&g.indexOf(u)===0)return g})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}},{key:"getFallbackCodes",value:function(n,i){if(!n)return[];if(typeof n=="function"&&(n=n(i)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!i)return n.default||[];var r=n[i];return r||(r=n[this.getScriptPartFromCode(i)]),r||(r=n[this.formatLanguageCode(i)]),r||(r=n[this.getLanguagePartFromCode(i)]),r||(r=n.default),r||[]}},{key:"toResolveHierarchy",value:function(n,i){var r=this,s=this.getFallbackCodes(i||this.options.fallbackLng||[],n),u=[],g=function(y){y&&(r.isSupportedCode(y)?u.push(y):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(y)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&g(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&g(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&g(this.getLanguagePartFromCode(n))):typeof n=="string"&&g(this.formatLanguageCode(n)),s.forEach(function(p){u.indexOf(p)<0&&g(r.formatLanguageCode(p))}),u}}]),t}(),dE=[{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}],hE={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}},pE=["v1","v2","v3"],lm={zero:0,one:1,two:2,few:3,many:4,other:5};function gE(){var t={};return dE.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:hE[e.fc]}})}),t}var mE=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};zo(this,t),this.languageUtils=e,this.options=n,this.logger=cs.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(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=gE()}return $o(t,[{key:"addRule",value:function(n,i){this.rules[n]=i}},{key:"getRule",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:i.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(n,i);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,r).map(function(s){return"".concat(i).concat(s)})}},{key:"getSuffixes",value:function(n){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(n,r);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort(function(u,g){return lm[u]-lm[g]}).map(function(u){return"".concat(i.options.prepend).concat(u)}):s.numbers.map(function(u){return i.getSuffix(n,u,r)}):[]}},{key:"getSuffix",value:function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=this.getRule(n,r);return s?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(s.select(i)):this.getSuffixRetroCompatible(s,i):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,i){var r=this,s=n.noAbs?n.plurals(i):n.plurals(Math.abs(i)),u=n.numbers[s];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(u===2?u="plural":u===1&&(u=""));var g=function(){return r.options.prepend&&u.toString()?r.options.prepend+u.toString():u.toString()};return this.options.compatibilityJSON==="v1"?u===1?"":typeof u=="number"?"_plural_".concat(u.toString()):g():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?g():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}},{key:"shouldUseIntlApi",value:function(){return!pE.includes(this.options.compatibilityJSON)}}]),t}();function um(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Fa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?um(Object(n),!0).forEach(function(i){hs(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):um(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function cm(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=nE(t,e,n);return!s&&r&&typeof n=="string"&&(s=qf(t,n,i),s===void 0&&(s=qf(e,n,i))),s}var vE=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zo(this,t),this.logger=cs.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return $o(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var i=n.interpolation;this.escape=i.escape!==void 0?i.escape:iE,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?pc(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?pc(i.suffix):i.suffixEscaped||"}}",this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||",",this.unescapePrefix=i.unescapeSuffix?"":i.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":i.unescapeSuffix||"",this.nestingPrefix=i.nestingPrefix?pc(i.nestingPrefix):i.nestingPrefixEscaped||pc("$t("),this.nestingSuffix=i.nestingSuffix?pc(i.nestingSuffix):i.nestingSuffixEscaped||pc(")"),this.nestingOptionsSeparator=i.nestingOptionsSeparator?i.nestingOptionsSeparator:i.nestingOptionsSeparator||",",this.maxReplaces=i.maxReplaces?i.maxReplaces:1e3,this.alwaysFormat=i.alwaysFormat!==void 0?i.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var i="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(i,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(n,i,r,s){var u=this,g,p,y,E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function x(z){return z.replace(/\$/g,"$$$$")}var O=function(L){if(L.indexOf(u.formatSeparator)<0){var ne=cm(i,E,L,u.options.keySeparator,u.options.ignoreJSONStructure);return u.alwaysFormat?u.format(ne,void 0,r,Fa(Fa(Fa({},s),i),{},{interpolationkey:L})):ne}var te=L.split(u.formatSeparator),he=te.shift().trim(),ie=te.join(u.formatSeparator).trim();return u.format(cm(i,E,he,u.options.keySeparator,u.options.ignoreJSONStructure),ie,r,Fa(Fa(Fa({},s),i),{},{interpolationkey:he}))};this.resetRegExp();var j=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,$=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,Y=[{regex:this.regexpUnescape,safeValue:function(L){return x(L)}},{regex:this.regexp,safeValue:function(L){return u.escapeValue?x(u.escape(L)):x(L)}}];return Y.forEach(function(z){for(y=0;g=z.regex.exec(n);){var L=g[1].trim();if(p=O(L),p===void 0)if(typeof j=="function"){var ne=j(n,g,s);p=typeof ne=="string"?ne:""}else if(s&&Object.prototype.hasOwnProperty.call(s,L))p="";else if($){p=g[0];continue}else u.logger.warn("missed to pass in variable ".concat(L," for interpolating ").concat(n)),p="";else typeof p!="string"&&!u.useRawValueToEscape&&(p=tm(p));var te=z.safeValue(p);if(n=n.replace(g[0],te),$?(z.regex.lastIndex+=p.length,z.regex.lastIndex-=g[0].length):z.regex.lastIndex=0,y++,y>=u.maxReplaces)break}}),n}},{key:"nest",value:function(n,i){var r=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,g,p;function y(j,$){var Y=this.nestingOptionsSeparator;if(j.indexOf(Y)<0)return j;var z=j.split(new RegExp("".concat(Y,"[ ]*{"))),L="{".concat(z[1]);j=z[0],L=this.interpolate(L,p);var ne=L.match(/'/g),te=L.match(/"/g);(ne&&ne.length%2===0&&!te||te.length%2!==0)&&(L=L.replace(/'/g,'"'));try{p=JSON.parse(L),$&&(p=Fa(Fa({},$),p))}catch(he){return this.logger.warn("failed parsing options string in nesting for key ".concat(j),he),"".concat(j).concat(Y).concat(L)}return delete p.defaultValue,j}for(;u=this.nestingRegexp.exec(n);){var E=[];p=Fa({},s),p=p.replace&&typeof p.replace!="string"?p.replace:p,p.applyPostProcessor=!1,delete p.defaultValue;var x=!1;if(u[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(u[1])){var O=u[1].split(this.formatSeparator).map(function(j){return j.trim()});u[1]=O.shift(),E=O,x=!0}if(g=i(y.call(this,u[1].trim(),p),p),g&&u[0]===n&&typeof g!="string")return g;typeof g!="string"&&(g=tm(g)),g||(this.logger.warn("missed to resolve ".concat(u[1]," for nesting ").concat(n)),g=""),x&&(g=E.reduce(function(j,$){return r.format(j,$,s.lng,Fa(Fa({},s),{},{interpolationkey:u[1].trim()}))},g.trim())),n=n.replace(u[0],g),this.regexp.lastIndex=0}return n}}]),t}();function fm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Xs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fm(Object(n),!0).forEach(function(i){hs(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fm(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function yE(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var i=t.split("(");e=i[0].toLowerCase().trim();var r=i[1].substring(0,i[1].length-1);if(e==="currency"&&r.indexOf(":")<0)n.currency||(n.currency=r.trim());else if(e==="relativetime"&&r.indexOf(":")<0)n.range||(n.range=r.trim());else{var s=r.split(";");s.forEach(function(u){if(u){var g=u.split(":"),p=ZT(g),y=p[0],E=p.slice(1),x=E.join(":").trim().replace(/^'+|'+$/g,"");n[y.trim()]||(n[y.trim()]=x),x==="false"&&(n[y.trim()]=!1),x==="true"&&(n[y.trim()]=!0),isNaN(x)||(n[y.trim()]=parseInt(x,10))}})}}return{formatName:e,formatOptions:n}}function gc(t){var e={};return function(i,r,s){var u=r+JSON.stringify(s),g=e[u];return g||(g=t(r,s),e[u]=g),g(i)}}var bE=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zo(this,t),this.logger=cs.create("formatter"),this.options=e,this.formats={number:gc(function(n,i){var r=new Intl.NumberFormat(n,Xs({},i));return function(s){return r.format(s)}}),currency:gc(function(n,i){var r=new Intl.NumberFormat(n,Xs(Xs({},i),{},{style:"currency"}));return function(s){return r.format(s)}}),datetime:gc(function(n,i){var r=new Intl.DateTimeFormat(n,Xs({},i));return function(s){return r.format(s)}}),relativetime:gc(function(n,i){var r=new Intl.RelativeTimeFormat(n,Xs({},i));return function(s){return r.format(s,i.range||"day")}}),list:gc(function(n,i){var r=new Intl.ListFormat(n,Xs({},i));return function(s){return r.format(s)}})},this.init(e)}return $o(t,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=i.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(n,i){this.formats[n.toLowerCase().trim()]=i}},{key:"addCached",value:function(n,i){this.formats[n.toLowerCase().trim()]=gc(i)}},{key:"format",value:function(n,i,r){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=i.split(this.formatSeparator),p=g.reduce(function(y,E){var x=yE(E),O=x.formatName,j=x.formatOptions;if(s.formats[O]){var $=y;try{var Y=u&&u.formatParams&&u.formatParams[u.interpolationkey]||{},z=Y.locale||Y.lng||u.locale||u.lng||r;$=s.formats[O](y,z,Xs(Xs(Xs({},j),u),Y))}catch(L){s.logger.warn(L)}return $}else s.logger.warn("there was no format function for ".concat(O));return y},n);return p}}]),t}();function dm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function hm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dm(Object(n),!0).forEach(function(i){hs(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dm(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function wE(t){var e=xE();return function(){var i=ds(t),r;if(e){var s=ds(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return lf(this,r)}}function xE(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function SE(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var CE=function(t){pd(n,t);var e=wE(n);function n(i,r,s){var u,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return zo(this,n),u=e.call(this),gd&&Ul.call(Qs(u)),u.backend=i,u.store=r,u.services=s,u.languageUtils=s.languageUtils,u.options=g,u.logger=cs.create("backendConnector"),u.waitingReads=[],u.maxParallelReads=g.maxParallelReads||10,u.readingCalls=0,u.maxRetries=g.maxRetries>=0?g.maxRetries:5,u.retryTimeout=g.retryTimeout>=1?g.retryTimeout:350,u.state={},u.queue=[],u.backend&&u.backend.init&&u.backend.init(s,g.backend,g),u}return $o(n,[{key:"queueLoad",value:function(r,s,u,g){var p=this,y={},E={},x={},O={};return r.forEach(function(j){var $=!0;s.forEach(function(Y){var z="".concat(j,"|").concat(Y);!u.reload&&p.store.hasResourceBundle(j,Y)?p.state[z]=2:p.state[z]<0||(p.state[z]===1?E[z]===void 0&&(E[z]=!0):(p.state[z]=1,$=!1,E[z]===void 0&&(E[z]=!0),y[z]===void 0&&(y[z]=!0),O[Y]===void 0&&(O[Y]=!0)))}),$||(x[j]=!0)}),(Object.keys(y).length||Object.keys(E).length)&&this.queue.push({pending:E,pendingCount:Object.keys(E).length,loaded:{},errors:[],callback:g}),{toLoad:Object.keys(y),pending:Object.keys(E),toLoadLanguages:Object.keys(x),toLoadNamespaces:Object.keys(O)}}},{key:"loaded",value:function(r,s,u){var g=r.split("|"),p=g[0],y=g[1];s&&this.emit("failedLoading",p,y,s),u&&this.store.addResourceBundle(p,y,u),this.state[r]=s?-1:2;var E={};this.queue.forEach(function(x){tE(x.loaded,[p],y),SE(x,r),s&&x.errors.push(s),x.pendingCount===0&&!x.done&&(Object.keys(x.loaded).forEach(function(O){E[O]||(E[O]={});var j=x.loaded[O];j.length&&j.forEach(function($){E[O][$]===void 0&&(E[O][$]=!0)})}),x.done=!0,x.errors.length?x.callback(x.errors):x.callback())}),this.emit("loaded",E),this.queue=this.queue.filter(function(x){return!x.done})}},{key:"read",value:function(r,s,u){var g=this,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,E=arguments.length>5?arguments[5]:void 0;if(!r.length)return E(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:s,fcName:u,tried:p,wait:y,callback:E});return}this.readingCalls++;var x=function(Y,z){if(g.readingCalls--,g.waitingReads.length>0){var L=g.waitingReads.shift();g.read(L.lng,L.ns,L.fcName,L.tried,L.wait,L.callback)}if(Y&&z&&p<g.maxRetries){setTimeout(function(){g.read.call(g,r,s,u,p+1,y*2,E)},y);return}E(Y,z)},O=this.backend[u].bind(this.backend);if(O.length===2){try{var j=O(r,s);j&&typeof j.then=="function"?j.then(function($){return x(null,$)}).catch(x):x(null,j)}catch($){x($)}return}return O(r,s,x)}},{key:"prepareLoading",value:function(r,s){var u=this,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=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."),p&&p();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof s=="string"&&(s=[s]);var y=this.queueLoad(r,s,g,p);if(!y.toLoad.length)return y.pending.length||p(),null;y.toLoad.forEach(function(E){u.loadOne(E)})}},{key:"load",value:function(r,s,u){this.prepareLoading(r,s,{},u)}},{key:"reload",value:function(r,s,u){this.prepareLoading(r,s,{reload:!0},u)}},{key:"loadOne",value:function(r){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",g=r.split("|"),p=g[0],y=g[1];this.read(p,y,"read",void 0,void 0,function(E,x){E&&s.logger.warn("".concat(u,"loading namespace ").concat(y," for language ").concat(p," failed"),E),!E&&x&&s.logger.log("".concat(u,"loaded namespace ").concat(y," for language ").concat(p),x),s.loaded(r,E,x)})}},{key:"saveMissing",value:function(r,s,u,g,p){var y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},E=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(s)){this.logger.warn('did not save key "'.concat(u,'" as the namespace "').concat(s,'" 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(!(u==null||u==="")){if(this.backend&&this.backend.create){var x=hm(hm({},y),{},{isUpdate:p}),O=this.backend.create.bind(this.backend);if(O.length<6)try{var j;O.length===5?j=O(r,s,u,g,x):j=O(r,s,u,g),j&&typeof j.then=="function"?j.then(function($){return E(null,$)}).catch(E):E(null,j)}catch($){E($)}else O(r,s,u,g,E,x)}!r||!r[0]||this.store.addResource(r[0],s,u,g)}}}]),n}(Ul);function pm(){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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(Uo(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),Uo(e[2])==="object"||Uo(e[3])==="object"){var i=e[3]||e[2];Object.keys(i).forEach(function(r){n[r]=i[r]})}return n},interpolation:{escapeValue:!0,format:function(e,n,i,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function gm(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function mm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function ls(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mm(Object(n),!0).forEach(function(i){hs(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mm(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function TE(t){var e=EE();return function(){var i=ds(t),r;if(e){var s=ds(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return lf(this,r)}}function EE(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rf(){}function kE(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var Xf=function(t){pd(n,t);var e=TE(n);function n(){var i,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if(zo(this,n),i=e.call(this),gd&&Ul.call(Qs(i)),i.options=gm(r),i.services={},i.logger=cs,i.modules={external:[]},kE(Qs(i)),s&&!i.isInitialized&&!r.isClone){if(!i.options.initImmediate)return i.init(r,s),lf(i,Qs(i));setTimeout(function(){i.init(r,s)},0)}return i}return $o(n,[{key:"init",value:function(){var r=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;typeof s=="function"&&(u=s,s={}),!s.defaultNS&&s.defaultNS!==!1&&s.ns&&(typeof s.ns=="string"?s.defaultNS=s.ns:s.ns.indexOf("translation")<0&&(s.defaultNS=s.ns[0]));var g=pm();this.options=ls(ls(ls({},g),this.options),gm(s)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ls(ls({},g.interpolation),this.options.interpolation)),s.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=s.keySeparator),s.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=s.nsSeparator);function p(L){return L?typeof L=="function"?new L:L:null}if(!this.options.isClone){this.modules.logger?cs.init(p(this.modules.logger),this.options):cs.init(null,this.options);var y;this.modules.formatter?y=this.modules.formatter:typeof Intl<"u"&&(y=bE);var E=new sm(this.options);this.store=new uE(this.options.resources,this.options);var x=this.services;x.logger=cs,x.resourceStore=this.store,x.languageUtils=E,x.pluralResolver=new mE(E,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),y&&(!this.options.interpolation.format||this.options.interpolation.format===g.interpolation.format)&&(x.formatter=p(y),x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new vE(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new CE(p(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",function(L){for(var ne=arguments.length,te=new Array(ne>1?ne-1:0),he=1;he<ne;he++)te[he-1]=arguments[he];r.emit.apply(r,[L].concat(te))}),this.modules.languageDetector&&(x.languageDetector=p(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=p(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new am(this.services,this.options),this.translator.on("*",function(L){for(var ne=arguments.length,te=new Array(ne>1?ne-1:0),he=1;he<ne;he++)te[he-1]=arguments[he];r.emit.apply(r,[L].concat(te))}),this.modules.external.forEach(function(L){L.init&&L.init(r)})}if(this.format=this.options.interpolation.format,u||(u=Rf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var O=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);O.length>0&&O[0]!=="dev"&&(this.options.lng=O[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var j=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];j.forEach(function(L){r[L]=function(){var ne;return(ne=r.store)[L].apply(ne,arguments)}});var $=["addResource","addResources","addResourceBundle","removeResourceBundle"];$.forEach(function(L){r[L]=function(){var ne;return(ne=r.store)[L].apply(ne,arguments),r}});var Y=Hc(),z=function(){var ne=function(he,ie){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),Y.resolve(ie),u(he,ie)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return ne(null,r.t.bind(r));r.changeLanguage(r.options.lng,ne)};return this.options.resources||!this.options.initImmediate?z():setTimeout(z,0),Y}},{key:"loadResources",value:function(r){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rf,g=u,p=typeof r=="string"?r:this.language;if(typeof r=="function"&&(g=r),!this.options.resources||this.options.partialBundledLanguages){if(p&&p.toLowerCase()==="cimode")return g();var y=[],E=function(j){if(j){var $=s.services.languageUtils.toResolveHierarchy(j);$.forEach(function(Y){y.indexOf(Y)<0&&y.push(Y)})}};if(p)E(p);else{var x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.forEach(function(O){return E(O)})}this.options.preload&&this.options.preload.forEach(function(O){return E(O)}),this.services.backendConnector.load(y,this.options.ns,function(O){!O&&!s.resolvedLanguage&&s.language&&s.setResolvedLanguage(s.language),g(O)})}else g(null)}},{key:"reloadResources",value:function(r,s,u){var g=Hc();return r||(r=this.languages),s||(s=this.options.ns),u||(u=Rf),this.services.backendConnector.reload(r,s,function(p){g.resolve(),u(p)}),g}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&qy.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"setResolvedLanguage",value:function(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(var s=0;s<this.languages.length;s++){var u=this.languages[s];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}}},{key:"changeLanguage",value:function(r,s){var u=this;this.isLanguageChangingTo=r;var g=Hc();this.emit("languageChanging",r);var p=function(O){u.language=O,u.languages=u.services.languageUtils.toResolveHierarchy(O),u.resolvedLanguage=void 0,u.setResolvedLanguage(O)},y=function(O,j){j?(p(j),u.translator.changeLanguage(j),u.isLanguageChangingTo=void 0,u.emit("languageChanged",j),u.logger.log("languageChanged",j)):u.isLanguageChangingTo=void 0,g.resolve(function(){return u.t.apply(u,arguments)}),s&&s(O,function(){return u.t.apply(u,arguments)})},E=function(O){!r&&!O&&u.services.languageDetector&&(O=[]);var j=typeof O=="string"?O:u.services.languageUtils.getBestMatchFromCodes(O);j&&(u.language||p(j),u.translator.language||u.translator.changeLanguage(j),u.services.languageDetector&&u.services.languageDetector.cacheUserLanguage&&u.services.languageDetector.cacheUserLanguage(j)),u.loadResources(j,function($){y($,j)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?E(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(E):this.services.languageDetector.detect(E):E(r),g}},{key:"getFixedT",value:function(r,s,u){var g=this,p=function y(E,x){var O;if(Uo(x)!=="object"){for(var j=arguments.length,$=new Array(j>2?j-2:0),Y=2;Y<j;Y++)$[Y-2]=arguments[Y];O=g.options.overloadTranslationOptionHandler([E,x].concat($))}else O=ls({},x);O.lng=O.lng||y.lng,O.lngs=O.lngs||y.lngs,O.ns=O.ns||y.ns,O.keyPrefix=O.keyPrefix||u||y.keyPrefix;var z=g.options.keySeparator||".",L;return O.keyPrefix&&Array.isArray(E)?L=E.map(function(ne){return"".concat(O.keyPrefix).concat(z).concat(ne)}):L=O.keyPrefix?"".concat(O.keyPrefix).concat(z).concat(E):E,g.t(L,O)};return typeof r=="string"?p.lng=r:p.lngs=r,p.ns=s,p.keyPrefix=u,p}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var s=this,u=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;var g=u.lng||this.resolvedLanguage||this.languages[0],p=this.options?this.options.fallbackLng:!1,y=this.languages[this.languages.length-1];if(g.toLowerCase()==="cimode")return!0;var E=function(j,$){var Y=s.services.backendConnector.state["".concat(j,"|").concat($)];return Y===-1||Y===2};if(u.precheck){var x=u.precheck(this,E);if(x!==void 0)return x}return!!(this.hasResourceBundle(g,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||E(g,r)&&(!p||E(y,r)))}},{key:"loadNamespaces",value:function(r,s){var u=this,g=Hc();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(p){u.options.ns.indexOf(p)<0&&u.options.ns.push(p)}),this.loadResources(function(p){g.resolve(),s&&s(p)}),g):(s&&s(),Promise.resolve())}},{key:"loadLanguages",value:function(r,s){var u=Hc();typeof r=="string"&&(r=[r]);var g=this.options.preload||[],p=r.filter(function(y){return g.indexOf(y)<0});return p.length?(this.options.preload=g.concat(p),this.loadResources(function(y){u.resolve(),s&&s(y)}),u):(s&&s(),Promise.resolve())}},{key:"dir",value:function(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";var s=["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"],u=this.services&&this.services.languageUtils||new sm(pm());return s.indexOf(u.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var r=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rf,g=ls(ls(ls({},this.options),s),{isClone:!0}),p=new n(g);(s.debug!==void 0||s.prefix!==void 0)&&(p.logger=p.logger.clone(s));var y=["store","services","language"];return y.forEach(function(E){p[E]=r[E]}),p.services=ls({},this.services),p.services.utils={hasLoadedNamespace:p.hasLoadedNamespace.bind(p)},p.translator=new am(p.services,p.options),p.translator.on("*",function(E){for(var x=arguments.length,O=new Array(x>1?x-1:0),j=1;j<x;j++)O[j-1]=arguments[j];p.emit.apply(p,[E].concat(O))}),p.init(g,u),p.translator.options=p.options,p.translator.backendConnector.services.utils={hasLoadedNamespace:p.hasLoadedNamespace.bind(p)},p}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Ul);hs(Xf,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new Xf(t,e)});var ni=Xf.createInstance();ni.createInstance=Xf.createInstance;ni.createInstance;ni.dir;ni.init;ni.loadResources;ni.reloadResources;ni.use;ni.changeLanguage;ni.getFixedT;var Xy=ni.t;ni.exists;ni.setDefaultNamespace;ni.hasLoadedNamespace;ni.loadNamespaces;ni.loadLanguages;function Ky({config:t,pushError:e=gp}){const n=Iy.create(t);n.interceptors.request.use(async r=>(r.headers={Accept:"application/json","Content-Type":"application/json"},r),r=>Promise.reject(r)),n.interceptors.response.use(r=>r,async r=>i(r));async function i(r){var p,y,E,x;console.error("Error 🚨:",r);const s=r.config,u=(y=(p=r.response)==null?void 0:p.data)==null?void 0:y.errorMessage,g=u===GT.TOKEN_EXPIRED;return((E=r.response)==null?void 0:E.status)===401?g&&!s._retry?(s._retry=!0,n.post("/authentication/api/v1/auth/refresh-token").then(()=>n(s)).catch(()=>Kg(t.baseURL))):((!u||!g)&&Kg(t.baseURL),Promise.reject("Unauthorized! Please login again.")):(((x=r.response)==null?void 0:x.status)===403||e(Xy(`${u||"Something went wrong!"}`)),Promise.reject(r.response.data))}return n}function _E(t,e,n){return n.some(i=>{const r=t[i];return String(r).toLowerCase().includes(e.toLowerCase())})}var Zy=[],PE=Zy.forEach,RE=Zy.slice;function AE(t){return PE.call(RE.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var vm=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,OE=function(e,n,i){var r=i||{};r.path=r.path||"/";var s=encodeURIComponent(n),u="".concat(e,"=").concat(s);if(r.maxAge>0){var g=r.maxAge-0;if(Number.isNaN(g))throw new Error("maxAge should be a Number");u+="; Max-Age=".concat(Math.floor(g))}if(r.domain){if(!vm.test(r.domain))throw new TypeError("option domain is invalid");u+="; Domain=".concat(r.domain)}if(r.path){if(!vm.test(r.path))throw new TypeError("option path is invalid");u+="; Path=".concat(r.path)}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");u+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(u+="; HttpOnly"),r.secure&&(u+="; Secure"),r.sameSite){var p=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(p){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u},ym={create:function(e,n,i,r){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+i*60*1e3)),r&&(s.domain=r),document.cookie=OE(e,encodeURIComponent(n),s)},read:function(e){for(var n="".concat(e,"="),i=document.cookie.split(";"),r=0;r<i.length;r++){for(var s=i[r];s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(n)===0)return s.substring(n.length,s.length)}return null},remove:function(e){this.create(e,"",-1)}},DE={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document<"u"){var i=ym.read(e.lookupCookie);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document<"u"&&ym.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},IE={name:"querystring",lookup:function(e){var n;if(typeof window<"u"){var i=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=i.substring(1),s=r.split("&"),u=0;u<s.length;u++){var g=s[u].indexOf("=");if(g>0){var p=s[u].substring(0,g);p===e.lookupQuerystring&&(n=s[u].substring(g+1))}}}return n}},Wc=null,bm=function(){if(Wc!==null)return Wc;try{Wc=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Wc=!1}return Wc},ME={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&bm()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&bm()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},Uc=null,wm=function(){if(Uc!==null)return Uc;try{Uc=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Uc=!1}return Uc},LE={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&wm()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&wm()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},FE={name:"navigator",lookup:function(e){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var i=0;i<navigator.languages.length;i++)n.push(navigator.languages[i]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},jE={name:"htmlTag",lookup:function(e){var n,i=e.htmlTag||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(n=i.getAttribute("lang")),n}},BE={name:"path",lookup:function(e){var n;if(typeof window<"u"){var i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(i instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof i[e.lookupFromPathIndex]!="string")return;n=i[e.lookupFromPathIndex].replace("/","")}else n=i[0].replace("/","")}return n}},NE={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,i=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[n]}};function HE(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var Jy=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};zo(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return $o(t,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=AE(i,this.options||{},HE()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(s){return s.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(DE),this.addDetector(IE),this.addDetector(ME),this.addDetector(LE),this.addDetector(FE),this.addDetector(jE),this.addDetector(BE),this.addDetector(NE)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var i=this;n||(n=this.options.order);var r=[];return n.forEach(function(s){if(i.detectors[s]){var u=i.detectors[s].lookup(i.options);u&&typeof u=="string"&&(u=[u]),u&&(r=r.concat(u))}}),r=r.map(function(s){return i.options.convertDetectedLanguage(s)}),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(n,i){var r=this;i||(i=this.options.caches),i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||i.forEach(function(s){r.detectors[s]&&r.detectors[s].cacheUserLanguage(n,r.options)}))}}]),t}();Jy.type="languageDetector";function vp(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,s;for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}const WE=Object.freeze(Object.defineProperty({__proto__:null,default:vp},Symbol.toStringTag,{value:"Module"}));var Ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function UE(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}function VE(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var xm={};function Bh(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&xm[e[0]]||(typeof e[0]=="string"&&(xm[e[0]]=new Date),VE.apply(void 0,e))}var Qy=function(e,n){return function(){if(e.isInitialized)n();else{var i=function r(){setTimeout(function(){e.off("initialized",r)},0),n()};e.on("initialized",i)}}};function Sm(t,e,n){t.loadNamespaces(e,Qy(t,n))}function Cm(t,e,n,i){typeof n=="string"&&(n=[n]),n.forEach(function(r){t.options.ns.indexOf(r)<0&&t.options.ns.push(r)}),t.loadLanguages(e,Qy(t,i))}function zE(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=e.languages[0],r=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var u=function(p,y){var E=e.services.backendConnector.state["".concat(p,"|").concat(y)];return E===-1||E===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!u(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(i,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||u(i,t)&&(!r||u(s,t)))}function $E(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return Bh("i18n.languages were undefined or empty",e.languages),!0;var i=e.options.ignoreJSONStructure!==void 0;return i?e.hasLoadedNamespace(t,{lng:n.lng,precheck:function(s,u){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!u(s.isLanguageChangingTo,t))return!1}}):zE(t,e,n)}var YE=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,GE={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},qE=function(e){return GE[e]},XE=function(e){return e.replace(YE,qE)};function Tm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Em(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tm(Object(n),!0).forEach(function(i){hs(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tm(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var Nh={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:XE};function KE(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nh=Em(Em({},Nh),t)}function ZE(){return Nh}var eb;function JE(t){eb=t}function QE(){return eb}var ek={type:"3rdParty",init:function(e){KE(e.options.react),JE(e)}},tb=Pe.createContext(),tk=function(){function t(){zo(this,t),this.usedNamespaces={}}return $o(t,[{key:"addUsedNamespaces",value:function(n){var i=this;n.forEach(function(r){i.usedNamespaces[r]||(i.usedNamespaces[r]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function nk(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,r,s,u,g=[],p=!0,y=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;p=!1}else for(;!(p=(i=s.call(n)).done)&&(g.push(i.value),g.length!==e);p=!0);}catch(E){y=!0,r=E}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(y)throw r}}return g}}function rk(t,e){return zy(t)||nk(t,e)||$y(t,e)||Yy()}function km(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function th(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?km(Object(n),!0).forEach(function(i){hs(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var ik=function(e,n){var i=Pe.useRef();return Pe.useEffect(function(){i.current=n?i.current:e},[e,n]),i.current};function nb(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,i=Pe.useContext(tb)||{},r=i.i18n,s=i.defaultNS,u=n||r||QE();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new tk),!u){Bh("You will need to pass in an i18next instance by using initReactI18next");var g=function(ve,nt){return typeof nt=="string"?nt:nt&&Uo(nt)==="object"&&typeof nt.defaultValue=="string"?nt.defaultValue:Array.isArray(ve)?ve[ve.length-1]:ve},p=[g,{},!1];return p.t=g,p.i18n={},p.ready=!1,p}u.options.react&&u.options.react.wait!==void 0&&Bh("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var y=th(th(th({},ZE()),u.options.react),e),E=y.useSuspense,x=y.keyPrefix,O=t||s||u.options&&u.options.defaultNS;O=typeof O=="string"?[O]:O||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(O);var j=(u.isInitialized||u.initializedStoreOnce)&&O.every(function(ke){return $E(ke,u,y)});function $(){return u.getFixedT(e.lng||null,y.nsMode==="fallback"?O:O[0],x)}var Y=Pe.useState($),z=rk(Y,2),L=z[0],ne=z[1],te=O.join();e.lng&&(te="".concat(e.lng).concat(te));var he=ik(te),ie=Pe.useRef(!0);Pe.useEffect(function(){var ke=y.bindI18n,ve=y.bindI18nStore;ie.current=!0,!j&&!E&&(e.lng?Cm(u,e.lng,O,function(){ie.current&&ne($)}):Sm(u,O,function(){ie.current&&ne($)})),j&&he&&he!==te&&ie.current&&ne($);function nt(){ie.current&&ne($)}return ke&&u&&u.on(ke,nt),ve&&u&&u.store.on(ve,nt),function(){ie.current=!1,ke&&u&&ke.split(" ").forEach(function(gt){return u.off(gt,nt)}),ve&&u&&ve.split(" ").forEach(function(gt){return u.store.off(gt,nt)})}},[u,te]);var xe=Pe.useRef(!0);Pe.useEffect(function(){ie.current&&!xe.current&&ne($),xe.current=!1},[u,x]);var b=[L,u,j];if(b.t=L,b.i18n=u,b.ready=j,j||!j&&!E)return b;throw new Promise(function(ke){e.lng?Cm(u,e.lng,O,function(){return ke()}):Sm(u,O,function(){return ke()})})}function ok(t){var e=t.i18n,n=t.defaultNS,i=t.children,r=Pe.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return Pe.createElement(tb.Provider,{value:r},i)}var rb=[],ak=rb.forEach,sk=rb.slice;function lk(t){return ak.call(sk.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function uk(t){return t?typeof t=="function"?new t:t:null}function ck(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function _m(t,e,n,i){var r=t.read.bind(t);if(r.length===2){try{var s=r(e,n);s&&typeof s.then=="function"?s.then(function(u){return i(null,u)}).catch(i):i(null,s)}catch(u){i(u)}return}r(e,n,i)}var ib=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};zo(this,t),this.backends=[],this.type="backend",this.allOptions=i,this.init(e,n)}return $o(t,[{key:"init",value:function(n){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=lk(r,this.options||{},ck()),this.allOptions=s,this.options.backends&&this.options.backends.forEach(function(u,g){i.backends[g]=i.backends[g]||uk(u),i.backends[g].init(n,i.options.backendOptions&&i.options.backendOptions[g]||{},s)}),this.services&&this.options.reloadInterval&&setInterval(function(){return i.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,i,r){var s=this,u=this.backends.length,g=function y(E){if(E>=u)return r(new Error("non of the backend loaded data",!0));var x=E===u-1,O=s.options.handleEmptyResourcesAsFailed&&!x?0:-1,j=s.backends[E];j.read?_m(j,n,i,function($,Y,z){if(!$&&Y&&Object.keys(Y).length>O){if(r(null,Y,E),p(E-1,Y),j.save&&s.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(s.options.cacheHitMode)>-1){if(z&&s.options.refreshExpirationTime&&z+s.options.refreshExpirationTime>Date.now())return;var L=s.backends[E+1];L&&L.read&&_m(L,n,i,function(ne,te){ne||te&&(Object.keys(te).length<=O||(p(E,te),s.options.cacheHitMode==="refreshAndUpdateStore"&&s.services&&s.services.resourceStore&&s.services.resourceStore.addResourceBundle(n,i,te)))})}}else y(E+1)}):y(E+1)},p=function y(E,x){if(!(E<0)){var O=s.backends[E];O.save&&O.save(n,i,x),y(E-1,x)}};g(0)}},{key:"create",value:function(n,i,r,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(p){if(p.create){var y=p.create.bind(p);if(y.length<6){try{var E;y.length===5?E=y(n,i,r,s,g):E=y(n,i,r,s),E&&typeof E.then=="function"?E.then(function(x){return u(null,x)}).catch(u):u(null,E)}catch(x){u(x)}return}y(n,i,r,s,u,g)}})}},{key:"reload",value:function(){var n=this,i=this.services,r=i.backendConnector,s=i.languageUtils,u=i.logger,g=r.language;if(!(g&&g.toLowerCase()==="cimode")){var p=[],y=function(x){var O=s.toResolveHierarchy(x);O.forEach(function(j){p.indexOf(j)<0&&p.push(j)})};y(g),this.allOptions.preload&&this.allOptions.preload.forEach(function(E){return y(E)}),p.forEach(function(E){n.allOptions.ns.forEach(function(x){r.read(E,x,"read",null,null,function(O,j){O&&u.warn("loading namespace ".concat(x," for language ").concat(E," failed"),O),!O&&j&&u.log("loaded namespace ".concat(x," for language ").concat(E),j),r.loaded("".concat(E,"|").concat(x),O,j)})})})}}}]),t}();ib.type="backend";function Hh(t){"@babel/helpers - typeof";return Hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hh(t)}function ob(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Hh(XMLHttpRequest))==="object"}function fk(t){return!!t&&typeof t.then=="function"}function dk(t){return fk(t)?t:Promise.resolve(t)}function hk(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Wh={exports:{}},Af={exports:{}},Pm;function pk(){return Pm||(Pm=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ho<"u"&&Ho,i=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(u){var g=typeof s<"u"&&s||typeof self<"u"&&self||typeof g<"u"&&g,p={searchParams:"URLSearchParams"in g,iterable:"Symbol"in g&&"iterator"in Symbol,blob:"FileReader"in g&&"Blob"in g&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in g,arrayBuffer:"ArrayBuffer"in g};function y(me){return me&&DataView.prototype.isPrototypeOf(me)}if(p.arrayBuffer)var E=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],x=ArrayBuffer.isView||function(me){return me&&E.indexOf(Object.prototype.toString.call(me))>-1};function O(me){if(typeof me!="string"&&(me=String(me)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(me)||me==="")throw new TypeError('Invalid character in header field name: "'+me+'"');return me.toLowerCase()}function j(me){return typeof me!="string"&&(me=String(me)),me}function $(me){var Me={next:function(){var ze=me.shift();return{done:ze===void 0,value:ze}}};return p.iterable&&(Me[Symbol.iterator]=function(){return Me}),Me}function Y(me){this.map={},me instanceof Y?me.forEach(function(Me,ze){this.append(ze,Me)},this):Array.isArray(me)?me.forEach(function(Me){this.append(Me[0],Me[1])},this):me&&Object.getOwnPropertyNames(me).forEach(function(Me){this.append(Me,me[Me])},this)}Y.prototype.append=function(me,Me){me=O(me),Me=j(Me);var ze=this.map[me];this.map[me]=ze?ze+", "+Me:Me},Y.prototype.delete=function(me){delete this.map[O(me)]},Y.prototype.get=function(me){return me=O(me),this.has(me)?this.map[me]:null},Y.prototype.has=function(me){return this.map.hasOwnProperty(O(me))},Y.prototype.set=function(me,Me){this.map[O(me)]=j(Me)},Y.prototype.forEach=function(me,Me){for(var ze in this.map)this.map.hasOwnProperty(ze)&&me.call(Me,this.map[ze],ze,this)},Y.prototype.keys=function(){var me=[];return this.forEach(function(Me,ze){me.push(ze)}),$(me)},Y.prototype.values=function(){var me=[];return this.forEach(function(Me){me.push(Me)}),$(me)},Y.prototype.entries=function(){var me=[];return this.forEach(function(Me,ze){me.push([ze,Me])}),$(me)},p.iterable&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);function z(me){if(me.bodyUsed)return Promise.reject(new TypeError("Already read"));me.bodyUsed=!0}function L(me){return new Promise(function(Me,ze){me.onload=function(){Me(me.result)},me.onerror=function(){ze(me.error)}})}function ne(me){var Me=new FileReader,ze=L(Me);return Me.readAsArrayBuffer(me),ze}function te(me){var Me=new FileReader,ze=L(Me);return Me.readAsText(me),ze}function he(me){for(var Me=new Uint8Array(me),ze=new Array(Me.length),qe=0;qe<Me.length;qe++)ze[qe]=String.fromCharCode(Me[qe]);return ze.join("")}function ie(me){if(me.slice)return me.slice(0);var Me=new Uint8Array(me.byteLength);return Me.set(new Uint8Array(me)),Me.buffer}function xe(){return this.bodyUsed=!1,this._initBody=function(me){this.bodyUsed=this.bodyUsed,this._bodyInit=me,me?typeof me=="string"?this._bodyText=me:p.blob&&Blob.prototype.isPrototypeOf(me)?this._bodyBlob=me:p.formData&&FormData.prototype.isPrototypeOf(me)?this._bodyFormData=me:p.searchParams&&URLSearchParams.prototype.isPrototypeOf(me)?this._bodyText=me.toString():p.arrayBuffer&&p.blob&&y(me)?(this._bodyArrayBuffer=ie(me.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):p.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(me)||x(me))?this._bodyArrayBuffer=ie(me):this._bodyText=me=Object.prototype.toString.call(me):this._bodyText="",this.headers.get("content-type")||(typeof me=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):p.searchParams&&URLSearchParams.prototype.isPrototypeOf(me)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},p.blob&&(this.blob=function(){var me=z(this);if(me)return me;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 me=z(this);return me||(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(ne)}),this.text=function(){var me=z(this);if(me)return me;if(this._bodyBlob)return te(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(he(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(nt)}),this.json=function(){return this.text().then(JSON.parse)},this}var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ke(me){var Me=me.toUpperCase();return b.indexOf(Me)>-1?Me:me}function ve(me,Me){if(!(this instanceof ve))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Me=Me||{};var ze=Me.body;if(me instanceof ve){if(me.bodyUsed)throw new TypeError("Already read");this.url=me.url,this.credentials=me.credentials,Me.headers||(this.headers=new Y(me.headers)),this.method=me.method,this.mode=me.mode,this.signal=me.signal,!ze&&me._bodyInit!=null&&(ze=me._bodyInit,me.bodyUsed=!0)}else this.url=String(me);if(this.credentials=Me.credentials||this.credentials||"same-origin",(Me.headers||!this.headers)&&(this.headers=new Y(Me.headers)),this.method=ke(Me.method||this.method||"GET"),this.mode=Me.mode||this.mode||null,this.signal=Me.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ze)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(ze),(this.method==="GET"||this.method==="HEAD")&&(Me.cache==="no-store"||Me.cache==="no-cache")){var qe=/([?&])_=[^&]*/;if(qe.test(this.url))this.url=this.url.replace(qe,"$1_="+new Date().getTime());else{var at=/\?/;this.url+=(at.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ve.prototype.clone=function(){return new ve(this,{body:this._bodyInit})};function nt(me){var Me=new FormData;return me.trim().split("&").forEach(function(ze){if(ze){var qe=ze.split("="),at=qe.shift().replace(/\+/g," "),_e=qe.join("=").replace(/\+/g," ");Me.append(decodeURIComponent(at),decodeURIComponent(_e))}}),Me}function gt(me){var Me=new Y,ze=me.replace(/\r?\n[\t ]+/g," ");return ze.split("\r").map(function(qe){return qe.indexOf(`
|
|
4
|
-
`)===0?qe.substr(1,qe.length):qe}).forEach(function(qe){var at=qe.split(":"),_e=at.shift().trim();if(_e){var Ae=at.join(":").trim();Me.append(_e,Ae)}}),Me}xe.call(ve.prototype);function tt(me,Me){if(!(this instanceof tt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Me||(Me={}),this.type="default",this.status=Me.status===void 0?200:Me.status,this.ok=this.status>=200&&this.status<300,this.statusText=Me.statusText===void 0?"":""+Me.statusText,this.headers=new Y(Me.headers),this.url=Me.url||"",this._initBody(me)}xe.call(tt.prototype),tt.prototype.clone=function(){return new tt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},tt.error=function(){var me=new tt(null,{status:0,statusText:""});return me.type="error",me};var et=[301,302,303,307,308];tt.redirect=function(me,Me){if(et.indexOf(Me)===-1)throw new RangeError("Invalid status code");return new tt(null,{status:Me,headers:{location:me}})},u.DOMException=g.DOMException;try{new u.DOMException}catch{u.DOMException=function(Me,ze){this.message=Me,this.name=ze;var qe=Error(Me);this.stack=qe.stack},u.DOMException.prototype=Object.create(Error.prototype),u.DOMException.prototype.constructor=u.DOMException}function ft(me,Me){return new Promise(function(ze,qe){var at=new ve(me,Me);if(at.signal&&at.signal.aborted)return qe(new u.DOMException("Aborted","AbortError"));var _e=new XMLHttpRequest;function Ae(){_e.abort()}_e.onload=function(){var Ze={status:_e.status,statusText:_e.statusText,headers:gt(_e.getAllResponseHeaders()||"")};Ze.url="responseURL"in _e?_e.responseURL:Ze.headers.get("X-Request-URL");var Qe="response"in _e?_e.response:_e.responseText;setTimeout(function(){ze(new tt(Qe,Ze))},0)},_e.onerror=function(){setTimeout(function(){qe(new TypeError("Network request failed"))},0)},_e.ontimeout=function(){setTimeout(function(){qe(new TypeError("Network request failed"))},0)},_e.onabort=function(){setTimeout(function(){qe(new u.DOMException("Aborted","AbortError"))},0)};function Ye(Ze){try{return Ze===""&&g.location.href?g.location.href:Ze}catch{return Ze}}_e.open(at.method,Ye(at.url),!0),at.credentials==="include"?_e.withCredentials=!0:at.credentials==="omit"&&(_e.withCredentials=!1),"responseType"in _e&&(p.blob?_e.responseType="blob":p.arrayBuffer&&at.headers.get("Content-Type")&&at.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(_e.responseType="arraybuffer")),Me&&typeof Me.headers=="object"&&!(Me.headers instanceof Y)?Object.getOwnPropertyNames(Me.headers).forEach(function(Ze){_e.setRequestHeader(Ze,j(Me.headers[Ze]))}):at.headers.forEach(function(Ze,Qe){_e.setRequestHeader(Qe,Ze)}),at.signal&&(at.signal.addEventListener("abort",Ae),_e.onreadystatechange=function(){_e.readyState===4&&at.signal.removeEventListener("abort",Ae)}),_e.send(typeof at._bodyInit>"u"?null:at._bodyInit)})}return ft.polyfill=!0,g.fetch||(g.fetch=ft,g.Headers=Y,g.Request=ve,g.Response=tt),u.Headers=Y,u.Request=ve,u.Response=tt,u.fetch=ft,u})({})})(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=n.fetch?n:i;e=r.fetch,e.default=r.fetch,e.fetch=r.fetch,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,t.exports=e}(Af,Af.exports)),Af.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof Ho<"u"&&Ho.fetch?n=Ho.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof hk<"u"&&(typeof window>"u"||typeof window.document>"u")){var i=n||pk();i.default&&(i=i.default),e.default=i,t.exports=e.default}})(Wh,Wh.exports);var ab=Wh.exports;const sb=uf(ab),Rm=TT({__proto__:null,default:sb},[ab]);function Am(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Om(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Am(Object(n),!0).forEach(function(i){gk(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Am(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function gk(t,e,n){return e=mk(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mk(t){var e=vk(t,"string");return ju(e)=="symbol"?e:String(e)}function vk(t,e){if(ju(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(ju(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ju(t){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ju(t)}var el;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?el=global.fetch:typeof window<"u"&&window.fetch?el=window.fetch:el=fetch);var ef;ob()&&(typeof global<"u"&&global.XMLHttpRequest?ef=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(ef=window.XMLHttpRequest));var Kf;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Kf=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Kf=window.ActiveXObject));!el&&Rm&&!ef&&!Kf&&(el=sb||Rm);typeof el!="function"&&(el=void 0);var Uh=function(e,n){if(n&&ju(n)==="object"){var i="";for(var r in n)i+="&"+encodeURIComponent(r)+"="+encodeURIComponent(n[r]);if(!i)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+i.slice(1)}return e},Dm=function(e,n,i,r){var s=function(p){if(!p.ok)return i(p.statusText||"Error",{status:p.status});p.text().then(function(y){i(null,{status:p.status,data:y})}).catch(i)};if(r){var u=r(e,n);if(u instanceof Promise){u.then(s).catch(i);return}}typeof fetch=="function"?fetch(e,n).then(s).catch(i):el(e,n).then(s).catch(i)},Im=!1,yk=function(e,n,i,r){e.queryStringParams&&(n=Uh(n,e.queryStringParams));var s=Om({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),i&&(s["Content-Type"]="application/json");var u=typeof e.requestOptions=="function"?e.requestOptions(i):e.requestOptions,g=Om({method:i?"POST":"GET",body:i?e.stringify(i):void 0,headers:s},Im?{}:u),p=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{Dm(n,g,r,p)}catch(y){if(!u||Object.keys(u).length===0||!y.message||y.message.indexOf("not implemented")<0)return r(y);try{Object.keys(u).forEach(function(E){delete g[E]}),Dm(n,g,r,p),Im=!0}catch(E){r(E)}}},bk=function(e,n,i,r){i&&ju(i)==="object"&&(i=Uh("",i).slice(1)),e.queryStringParams&&(n=Uh(n,e.queryStringParams));try{var s;ef?s=new ef:s=new Kf("MSXML2.XMLHTTP.3.0"),s.open(i?"POST":"GET",n,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,i&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var u=e.customHeaders;if(u=typeof u=="function"?u():u,u)for(var g in u)s.setRequestHeader(g,u[g]);s.onreadystatechange=function(){s.readyState>3&&r(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(i)}catch(p){console&&console.log(p)}},wk=function(e,n,i,r){if(typeof i=="function"&&(r=i,i=void 0),r=r||function(){},el&&n.indexOf("file:")!==0)return yk(e,n,i,r);if(ob()||typeof ActiveXObject=="function")return bk(e,n,i,r);r(new Error("No fetch and no xhr implementation found!"))};function tf(t){"@babel/helpers - typeof";return tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tf(t)}function Mm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function nh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mm(Object(n),!0).forEach(function(i){lb(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mm(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function xk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lm(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ub(i.key),i)}}function Sk(t,e,n){return e&&Lm(t.prototype,e),n&&Lm(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function lb(t,e,n){return e=ub(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ub(t){var e=Ck(t,"string");return tf(e)=="symbol"?e:String(e)}function Ck(t,e){if(tf(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(tf(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Tk=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,i,r){return lb({},i,r||"")},parseLoadPayload:function(n,i){},request:wk,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},cb=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};xk(this,t),this.services=e,this.options=n,this.allOptions=i,this.type="backend",this.init(e,n,i)}return Sk(t,[{key:"init",value:function(n){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=nh(nh(nh({},Tk()),this.options||{}),r),this.allOptions=s,this.services&&this.options.reloadInterval&&setInterval(function(){return i.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,i,r){this._readAny(n,n,i,i,r)}},{key:"read",value:function(n,i,r){this._readAny([n],n,[i],i,r)}},{key:"_readAny",value:function(n,i,r,s,u){var g=this,p=this.options.loadPath;typeof this.options.loadPath=="function"&&(p=this.options.loadPath(n,r)),p=dk(p),p.then(function(y){if(!y)return u(null,{});var E=g.services.interpolator.interpolate(y,{lng:n.join("+"),ns:r.join("+")});g.loadUrl(E,u,i,s)})}},{key:"loadUrl",value:function(n,i,r,s){var u=this,g=typeof r=="string"?[r]:r,p=typeof s=="string"?[s]:s,y=this.options.parseLoadPayload(g,p);this.options.request(this.options,n,y,function(E,x){if(x&&(x.status>=500&&x.status<600||!x.status))return i("failed loading "+n+"; status code: "+x.status,!0);if(x&&x.status>=400&&x.status<500)return i("failed loading "+n+"; status code: "+x.status,!1);if(!x&&E&&E.message&&E.message.indexOf("Failed to fetch")>-1)return i("failed loading "+n+": "+E.message,!0);if(E)return i(E,!1);var O,j;try{typeof x.data=="string"?O=u.options.parse(x.data,r,s):O=x.data}catch{j="failed parsing "+n+" to json"}if(j)return i(j,!1);i(null,O)})}},{key:"create",value:function(n,i,r,s,u){var g=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var p=this.options.parsePayload(i,r,s),y=0,E=[],x=[];n.forEach(function(O){var j=g.options.addPath;typeof g.options.addPath=="function"&&(j=g.options.addPath(O,i));var $=g.services.interpolator.interpolate(j,{lng:O,ns:i});g.options.request(g.options,$,p,function(Y,z){y+=1,E.push(Y),x.push(z),y===n.length&&typeof u=="function"&&u(E,x)})})}}},{key:"reload",value:function(){var n=this,i=this.services,r=i.backendConnector,s=i.languageUtils,u=i.logger,g=r.language;if(!(g&&g.toLowerCase()==="cimode")){var p=[],y=function(x){var O=s.toResolveHierarchy(x);O.forEach(function(j){p.indexOf(j)<0&&p.push(j)})};y(g),this.allOptions.preload&&this.allOptions.preload.forEach(function(E){return y(E)}),p.forEach(function(E){n.allOptions.ns.forEach(function(x){r.read(E,x,"read",null,null,function(O,j){O&&u.warn("loading namespace ".concat(x," for language ").concat(E," failed"),O),!O&&j&&u.log("loaded namespace ".concat(x," for language ").concat(E),j),r.loaded("".concat(E,"|").concat(x),O,j)})})})}}}]),t}();cb.type="backend";var yp=(t=>(t.en="en",t.de="de",t))(yp||{});const Ek={en:"English",de:"German"};ni.use(ib).use(ek).use(Jy).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(Ek),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[cb],backendOptions:[{loadPath:"https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",crossDomain:!0,cacheHitMode:"refresh"}]}});function kk(){const[t,e]=Pe.useState();return Pe.useEffect(()=>{const n=localStorage.getItem("language");e(n||yp.en)},[]),{language:t,setLanguage:e}}const fb=Pe.createContext({}),_k=()=>Pe.useContext(fb),Pk=ni,Rk=Xy,Ak=()=>nb(),Ok=({children:t})=>{const e=kk();return ut.jsx(fb.Provider,{value:e,children:ut.jsx(ok,{i18n:ni,children:t})})};var db={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fm=Pe.createContext&&Pe.createContext(db),Dk=["attr","size","title"];function Ik(t,e){if(t==null)return{};var n=Mk(t,e),i,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)i=s[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function Mk(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,s;for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function Zf(){return Zf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Zf.apply(this,arguments)}function jm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Jf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jm(Object(n),!0).forEach(function(i){Lk(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Lk(t,e,n){return e=Fk(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fk(t){var e=jk(t,"string");return typeof e=="symbol"?e:String(e)}function jk(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function hb(t){return t&&t.map((e,n)=>Pe.createElement(e.tag,Jf({key:n},e.attr),hb(e.child)))}function pb(t){return e=>Pe.createElement(Bk,Zf({attr:Jf({},t.attr)},e),hb(t.child))}function Bk(t){var e=n=>{var{attr:i,size:r,title:s}=t,u=Ik(t,Dk),g=r||n.size||"1em",p;return n.className&&(p=n.className),t.className&&(p=(p?p+" ":"")+t.className),Pe.createElement("svg",Zf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,u,{className:p,style:Jf(Jf({color:t.color||n.color},n.style),t.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),s&&Pe.createElement("title",null,s),t.children)};return Fm!==void 0?Pe.createElement(Fm.Consumer,null,n=>e(n)):e(db)}function Nk(t){return pb({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(t)}function Hk(t){return pb({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(t)}const gb=t=>{const e={...t.colors};return Cc.createTheme({palette:{primary:{main:e.primary300,contrastText:e.textPrimary},secondary:{main:e.secondary,contrastText:e.textPrimary},warning:{main:e.warning,contrastText:e.textPrimary},error:{main:e.danger,contrastText:e.textPrimary}},typography:{fontFamily:"TT Firs Neue Trl",button:{textTransform:"none",fontSize:"0.875rem",fontWeight:400,boxShadow:"none"},body1:{fontSize:"0.875rem",fontWeight:400},body2:{fontSize:"0.75rem"},h6:{fontSize:"0.875rem",fontWeight:500},h5:{fontSize:"1rem",fontWeight:500},h4:{fontSize:"1.25rem",fontWeight:500},h3:{fontSize:"1.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h1:{fontSize:"2.5rem",fontWeight:500},subtitle1:{fontSize:"0.75rem"},subtitle2:{fontSize:"0.625rem"}},components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:e.primary300,color:e.buttonText,"&:hover":{backgroundColor:e.buttonHover||e.primary300},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"confirm"},style:{backgroundColor:e.danger,color:e.white,"&:hover":{backgroundColor:e.dangerDark},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:e.grey300,color:e.textPrimary,"&:hover":{backgroundColor:e.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:e.primary500,border:"1px solid",borderColor:e.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:e.danger,border:"1px solid",borderColor:e.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:e.appBarBgColor,color:e.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:e.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:e.grey100},"&.Mui-selected":{backgroundColor:e.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.primary200,"&:hover":{backgroundColor:e.primary200}}}}},MuiPaginationItem:{defaultProps:{components:{previous:Nk,next:Hk}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:`${e.primary300}1a !important`},"&.MuiPaginationItem-previousNext":{backgroundColor:e.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"10px",lineHeight:"12px",fontWeight:400,"& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:e.success,backgroundColor:e.successLight},colorWarning:{color:e.warning,backgroundColor:e.warningLight},colorError:{color:e.danger,backgroundColor:e.dangerLight},colorSecondary:{color:e.linkPrimary,backgroundColor:e.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:e.grey600},"& .detail-icon":{stroke:e.grey600},color:e.grey400,"&.Mui-selected":{color:e.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:e.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:e.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:e.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:e.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:e.grey600}},"& .MuiFormLabel-asterisk":{color:e.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${e.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:e.grey600,"&.Mui-checked":{color:e.success},"&.Mui-disabled":{color:e.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"}}}})};function Wk(t,e){const n={...t};return e==null||e.forEach(i=>{i.children&&i.children.forEach(r=>{n[r.key]=r.color.trim()})}),n}function Uk(t){var u,g;const{data:e,isFetching:n}=ST.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(p=>p.json()):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0}),i=Wk(vo,(u=e==null?void 0:e.theme)==null?void 0:u.keyColor);console.log("🚀 ~ useThemeContext ~ isFetching:",n);const r=gb({colors:i}),s=(g=e==null?void 0:e.theme)==null?void 0:g.image;return{colors:i,theme:r,logo:s,isFetching:n}}const mb=Pe.createContext({}),Vk=()=>Pe.useContext(mb),zk=t=>{var s;const{children:e,brandTheme:n}=t,i=Uk(n),r=((s=t.customTheme)==null?void 0:s.call(t,i.colors))||i.theme;return ut.jsx(mb.Provider,{value:i,children:ut.jsx(Cc.ThemeProvider,{theme:r,children:e})})},$k=Ky({config:{withCredentials:!0}}),Yk=({baseUrl:t,notiPath:e,setNotiData:n})=>async()=>{var y;const s=t+(e||"/notification-management/api/v1/notifications"),g=(y=(await $k.get(s,{params:{filter:{notificationFilterType:"all"}},withCredentials:!0})).data)==null?void 0:y.rows,p=g==null?void 0:g.filter(E=>E.isRead===!1);n({all:{rows:g??[],total:(g==null?void 0:g.length)??0},unread:{rows:p??[],total:(p==null?void 0:p.length)??0}})},vb=Pe.createContext({}),Gk=({children:t})=>{const[e,n]=Pe.useState(!0),[i,r]=Pe.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),s=()=>{n(!e)},u=()=>{n(!0)};return ut.jsx(vb.Provider,{value:{isOpen:e,toggleOpen:s,setShowModalFalse:u,notidata:i,setNotiData:r},children:t})};var Pu={};/**
|
|
4
|
+
`)===0?qe.substr(1,qe.length):qe}).forEach(function(qe){var at=qe.split(":"),_e=at.shift().trim();if(_e){var Ae=at.join(":").trim();Me.append(_e,Ae)}}),Me}xe.call(ve.prototype);function tt(me,Me){if(!(this instanceof tt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Me||(Me={}),this.type="default",this.status=Me.status===void 0?200:Me.status,this.ok=this.status>=200&&this.status<300,this.statusText=Me.statusText===void 0?"":""+Me.statusText,this.headers=new Y(Me.headers),this.url=Me.url||"",this._initBody(me)}xe.call(tt.prototype),tt.prototype.clone=function(){return new tt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},tt.error=function(){var me=new tt(null,{status:0,statusText:""});return me.type="error",me};var et=[301,302,303,307,308];tt.redirect=function(me,Me){if(et.indexOf(Me)===-1)throw new RangeError("Invalid status code");return new tt(null,{status:Me,headers:{location:me}})},u.DOMException=g.DOMException;try{new u.DOMException}catch{u.DOMException=function(Me,ze){this.message=Me,this.name=ze;var qe=Error(Me);this.stack=qe.stack},u.DOMException.prototype=Object.create(Error.prototype),u.DOMException.prototype.constructor=u.DOMException}function ft(me,Me){return new Promise(function(ze,qe){var at=new ve(me,Me);if(at.signal&&at.signal.aborted)return qe(new u.DOMException("Aborted","AbortError"));var _e=new XMLHttpRequest;function Ae(){_e.abort()}_e.onload=function(){var Ze={status:_e.status,statusText:_e.statusText,headers:gt(_e.getAllResponseHeaders()||"")};Ze.url="responseURL"in _e?_e.responseURL:Ze.headers.get("X-Request-URL");var Qe="response"in _e?_e.response:_e.responseText;setTimeout(function(){ze(new tt(Qe,Ze))},0)},_e.onerror=function(){setTimeout(function(){qe(new TypeError("Network request failed"))},0)},_e.ontimeout=function(){setTimeout(function(){qe(new TypeError("Network request failed"))},0)},_e.onabort=function(){setTimeout(function(){qe(new u.DOMException("Aborted","AbortError"))},0)};function Ye(Ze){try{return Ze===""&&g.location.href?g.location.href:Ze}catch{return Ze}}_e.open(at.method,Ye(at.url),!0),at.credentials==="include"?_e.withCredentials=!0:at.credentials==="omit"&&(_e.withCredentials=!1),"responseType"in _e&&(p.blob?_e.responseType="blob":p.arrayBuffer&&at.headers.get("Content-Type")&&at.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(_e.responseType="arraybuffer")),Me&&typeof Me.headers=="object"&&!(Me.headers instanceof Y)?Object.getOwnPropertyNames(Me.headers).forEach(function(Ze){_e.setRequestHeader(Ze,j(Me.headers[Ze]))}):at.headers.forEach(function(Ze,Qe){_e.setRequestHeader(Qe,Ze)}),at.signal&&(at.signal.addEventListener("abort",Ae),_e.onreadystatechange=function(){_e.readyState===4&&at.signal.removeEventListener("abort",Ae)}),_e.send(typeof at._bodyInit>"u"?null:at._bodyInit)})}return ft.polyfill=!0,g.fetch||(g.fetch=ft,g.Headers=Y,g.Request=ve,g.Response=tt),u.Headers=Y,u.Request=ve,u.Response=tt,u.fetch=ft,u})({})})(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=n.fetch?n:i;e=r.fetch,e.default=r.fetch,e.fetch=r.fetch,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,t.exports=e}(Af,Af.exports)),Af.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof Ho<"u"&&Ho.fetch?n=Ho.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof hk<"u"&&(typeof window>"u"||typeof window.document>"u")){var i=n||pk();i.default&&(i=i.default),e.default=i,t.exports=e.default}})(Wh,Wh.exports);var ab=Wh.exports;const sb=uf(ab),Rm=TT({__proto__:null,default:sb},[ab]);function Am(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Om(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Am(Object(n),!0).forEach(function(i){gk(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Am(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function gk(t,e,n){return e=mk(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mk(t){var e=vk(t,"string");return ju(e)=="symbol"?e:String(e)}function vk(t,e){if(ju(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(ju(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ju(t){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ju(t)}var el;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?el=global.fetch:typeof window<"u"&&window.fetch?el=window.fetch:el=fetch);var ef;ob()&&(typeof global<"u"&&global.XMLHttpRequest?ef=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(ef=window.XMLHttpRequest));var Kf;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Kf=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Kf=window.ActiveXObject));!el&&Rm&&!ef&&!Kf&&(el=sb||Rm);typeof el!="function"&&(el=void 0);var Uh=function(e,n){if(n&&ju(n)==="object"){var i="";for(var r in n)i+="&"+encodeURIComponent(r)+"="+encodeURIComponent(n[r]);if(!i)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+i.slice(1)}return e},Dm=function(e,n,i,r){var s=function(p){if(!p.ok)return i(p.statusText||"Error",{status:p.status});p.text().then(function(y){i(null,{status:p.status,data:y})}).catch(i)};if(r){var u=r(e,n);if(u instanceof Promise){u.then(s).catch(i);return}}typeof fetch=="function"?fetch(e,n).then(s).catch(i):el(e,n).then(s).catch(i)},Im=!1,yk=function(e,n,i,r){e.queryStringParams&&(n=Uh(n,e.queryStringParams));var s=Om({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),i&&(s["Content-Type"]="application/json");var u=typeof e.requestOptions=="function"?e.requestOptions(i):e.requestOptions,g=Om({method:i?"POST":"GET",body:i?e.stringify(i):void 0,headers:s},Im?{}:u),p=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{Dm(n,g,r,p)}catch(y){if(!u||Object.keys(u).length===0||!y.message||y.message.indexOf("not implemented")<0)return r(y);try{Object.keys(u).forEach(function(E){delete g[E]}),Dm(n,g,r,p),Im=!0}catch(E){r(E)}}},bk=function(e,n,i,r){i&&ju(i)==="object"&&(i=Uh("",i).slice(1)),e.queryStringParams&&(n=Uh(n,e.queryStringParams));try{var s;ef?s=new ef:s=new Kf("MSXML2.XMLHTTP.3.0"),s.open(i?"POST":"GET",n,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,i&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var u=e.customHeaders;if(u=typeof u=="function"?u():u,u)for(var g in u)s.setRequestHeader(g,u[g]);s.onreadystatechange=function(){s.readyState>3&&r(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(i)}catch(p){console&&console.log(p)}},wk=function(e,n,i,r){if(typeof i=="function"&&(r=i,i=void 0),r=r||function(){},el&&n.indexOf("file:")!==0)return yk(e,n,i,r);if(ob()||typeof ActiveXObject=="function")return bk(e,n,i,r);r(new Error("No fetch and no xhr implementation found!"))};function tf(t){"@babel/helpers - typeof";return tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tf(t)}function Mm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function nh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mm(Object(n),!0).forEach(function(i){lb(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mm(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function xk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lm(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ub(i.key),i)}}function Sk(t,e,n){return e&&Lm(t.prototype,e),n&&Lm(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function lb(t,e,n){return e=ub(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ub(t){var e=Ck(t,"string");return tf(e)=="symbol"?e:String(e)}function Ck(t,e){if(tf(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(tf(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Tk=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,i,r){return lb({},i,r||"")},parseLoadPayload:function(n,i){},request:wk,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},cb=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};xk(this,t),this.services=e,this.options=n,this.allOptions=i,this.type="backend",this.init(e,n,i)}return Sk(t,[{key:"init",value:function(n){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=nh(nh(nh({},Tk()),this.options||{}),r),this.allOptions=s,this.services&&this.options.reloadInterval&&setInterval(function(){return i.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,i,r){this._readAny(n,n,i,i,r)}},{key:"read",value:function(n,i,r){this._readAny([n],n,[i],i,r)}},{key:"_readAny",value:function(n,i,r,s,u){var g=this,p=this.options.loadPath;typeof this.options.loadPath=="function"&&(p=this.options.loadPath(n,r)),p=dk(p),p.then(function(y){if(!y)return u(null,{});var E=g.services.interpolator.interpolate(y,{lng:n.join("+"),ns:r.join("+")});g.loadUrl(E,u,i,s)})}},{key:"loadUrl",value:function(n,i,r,s){var u=this,g=typeof r=="string"?[r]:r,p=typeof s=="string"?[s]:s,y=this.options.parseLoadPayload(g,p);this.options.request(this.options,n,y,function(E,x){if(x&&(x.status>=500&&x.status<600||!x.status))return i("failed loading "+n+"; status code: "+x.status,!0);if(x&&x.status>=400&&x.status<500)return i("failed loading "+n+"; status code: "+x.status,!1);if(!x&&E&&E.message&&E.message.indexOf("Failed to fetch")>-1)return i("failed loading "+n+": "+E.message,!0);if(E)return i(E,!1);var O,j;try{typeof x.data=="string"?O=u.options.parse(x.data,r,s):O=x.data}catch{j="failed parsing "+n+" to json"}if(j)return i(j,!1);i(null,O)})}},{key:"create",value:function(n,i,r,s,u){var g=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var p=this.options.parsePayload(i,r,s),y=0,E=[],x=[];n.forEach(function(O){var j=g.options.addPath;typeof g.options.addPath=="function"&&(j=g.options.addPath(O,i));var $=g.services.interpolator.interpolate(j,{lng:O,ns:i});g.options.request(g.options,$,p,function(Y,z){y+=1,E.push(Y),x.push(z),y===n.length&&typeof u=="function"&&u(E,x)})})}}},{key:"reload",value:function(){var n=this,i=this.services,r=i.backendConnector,s=i.languageUtils,u=i.logger,g=r.language;if(!(g&&g.toLowerCase()==="cimode")){var p=[],y=function(x){var O=s.toResolveHierarchy(x);O.forEach(function(j){p.indexOf(j)<0&&p.push(j)})};y(g),this.allOptions.preload&&this.allOptions.preload.forEach(function(E){return y(E)}),p.forEach(function(E){n.allOptions.ns.forEach(function(x){r.read(E,x,"read",null,null,function(O,j){O&&u.warn("loading namespace ".concat(x," for language ").concat(E," failed"),O),!O&&j&&u.log("loaded namespace ".concat(x," for language ").concat(E),j),r.loaded("".concat(E,"|").concat(x),O,j)})})})}}}]),t}();cb.type="backend";var yp=(t=>(t.en="en",t.de="de",t))(yp||{});const Ek={en:"English",de:"German"};ni.use(ib).use(ek).use(Jy).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(Ek),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[cb],backendOptions:[{loadPath:"https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",crossDomain:!0,cacheHitMode:"refresh"}]}});function kk(){const[t,e]=Pe.useState();return Pe.useEffect(()=>{const n=localStorage.getItem("language");e(n||yp.en)},[]),{language:t,setLanguage:e}}const fb=Pe.createContext({}),_k=()=>Pe.useContext(fb),Pk=ni,Rk=Xy,Ak=()=>nb(),Ok=({children:t})=>{const e=kk();return ut.jsx(fb.Provider,{value:e,children:ut.jsx(ok,{i18n:ni,children:t})})};var db={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fm=Pe.createContext&&Pe.createContext(db),Dk=["attr","size","title"];function Ik(t,e){if(t==null)return{};var n=Mk(t,e),i,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)i=s[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function Mk(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,s;for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function Zf(){return Zf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Zf.apply(this,arguments)}function jm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Jf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jm(Object(n),!0).forEach(function(i){Lk(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Lk(t,e,n){return e=Fk(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fk(t){var e=jk(t,"string");return typeof e=="symbol"?e:String(e)}function jk(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function hb(t){return t&&t.map((e,n)=>Pe.createElement(e.tag,Jf({key:n},e.attr),hb(e.child)))}function pb(t){return e=>Pe.createElement(Bk,Zf({attr:Jf({},t.attr)},e),hb(t.child))}function Bk(t){var e=n=>{var{attr:i,size:r,title:s}=t,u=Ik(t,Dk),g=r||n.size||"1em",p;return n.className&&(p=n.className),t.className&&(p=(p?p+" ":"")+t.className),Pe.createElement("svg",Zf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,u,{className:p,style:Jf(Jf({color:t.color||n.color},n.style),t.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),s&&Pe.createElement("title",null,s),t.children)};return Fm!==void 0?Pe.createElement(Fm.Consumer,null,n=>e(n)):e(db)}function Nk(t){return pb({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(t)}function Hk(t){return pb({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(t)}const gb=t=>{const e={...t.colors};return Cc.createTheme({palette:{primary:{main:e.primary300,contrastText:e.textPrimary},secondary:{main:e.secondary,contrastText:e.textPrimary},warning:{main:e.warning,contrastText:e.textPrimary},error:{main:e.danger,contrastText:e.textPrimary}},typography:{fontFamily:"TT Firs Neue Trl",button:{textTransform:"none",fontSize:"0.875rem",fontWeight:400,boxShadow:"none"},body1:{fontSize:"0.875rem",fontWeight:400},body2:{fontSize:"0.75rem"},h6:{fontSize:"0.875rem",fontWeight:500},h5:{fontSize:"1rem",fontWeight:500},h4:{fontSize:"1.25rem",fontWeight:500},h3:{fontSize:"1.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h1:{fontSize:"2.5rem",fontWeight:500},subtitle1:{fontSize:"0.75rem"},subtitle2:{fontSize:"0.625rem"}},components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:e.primary300,color:e.buttonText,"&:hover":{backgroundColor:e.buttonHover||e.primary300},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"confirm"},style:{backgroundColor:e.danger,color:e.white,"&:hover":{backgroundColor:e.dangerDark},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:e.grey300,color:e.textPrimary,"&:hover":{backgroundColor:e.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:e.primary500,border:"1px solid",borderColor:e.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:e.danger,border:"1px solid",borderColor:e.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:e.appBarBgColor,color:e.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:e.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:e.grey100},"&.Mui-selected":{backgroundColor:e.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.primary200,"&:hover":{backgroundColor:e.primary200}}}}},MuiPaginationItem:{defaultProps:{components:{previous:Nk,next:Hk}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:`${e.primary300}1a !important`},"&.MuiPaginationItem-previousNext":{backgroundColor:e.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"10px",lineHeight:"12px",fontWeight:400,"& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:e.success,backgroundColor:e.successLight},colorWarning:{color:e.warning,backgroundColor:e.warningLight},colorError:{color:e.danger,backgroundColor:e.dangerLight},colorSecondary:{color:e.linkPrimary,backgroundColor:e.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:e.grey600},"& .detail-icon":{stroke:e.grey600},color:e.grey400,"&.Mui-selected":{color:e.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:e.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:e.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:e.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:e.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:e.grey600}},"& .MuiFormLabel-asterisk":{color:e.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${e.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:e.grey600,"&.Mui-checked":{color:e.success},"&.Mui-disabled":{color:e.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function Wk(t,e){const n={...t};return e==null||e.forEach(i=>{i.children&&i.children.forEach(r=>{n[r.key]=r.color.trim()})}),n}function Uk(t){var u,g;const{data:e,isFetching:n}=ST.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(p=>p.json()):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0}),i=Wk(vo,(u=e==null?void 0:e.theme)==null?void 0:u.keyColor);console.log("🚀 ~ useThemeContext ~ isFetching:",n);const r=gb({colors:i}),s=(g=e==null?void 0:e.theme)==null?void 0:g.image;return{colors:i,theme:r,logo:s,isFetching:n}}const mb=Pe.createContext({}),Vk=()=>Pe.useContext(mb),zk=t=>{var s;const{children:e,brandTheme:n}=t,i=Uk(n),r=((s=t.customTheme)==null?void 0:s.call(t,i.colors))||i.theme;return ut.jsx(mb.Provider,{value:i,children:ut.jsx(Cc.ThemeProvider,{theme:r,children:e})})},$k=Ky({config:{withCredentials:!0}}),Yk=({baseUrl:t,notiPath:e,setNotiData:n})=>async()=>{var y;const s=t+(e||"/notification-management/api/v1/notifications"),g=(y=(await $k.get(s,{params:{filter:{notificationFilterType:"all"}},withCredentials:!0})).data)==null?void 0:y.rows,p=g==null?void 0:g.filter(E=>E.isRead===!1);n({all:{rows:g??[],total:(g==null?void 0:g.length)??0},unread:{rows:p??[],total:(p==null?void 0:p.length)??0}})},vb=Pe.createContext({}),Gk=({children:t})=>{const[e,n]=Pe.useState(!0),[i,r]=Pe.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),s=()=>{n(!e)},u=()=>{n(!0)};return ut.jsx(vb.Provider,{value:{isOpen:e,toggleOpen:s,setShowModalFalse:u,notidata:i,setNotiData:r},children:t})};var Pu={};/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-dom-server-legacy.browser.production.min.js
|
|
7
7
|
*
|
|
@@ -4693,6 +4693,15 @@ const zE = (t) => {
|
|
|
4693
4693
|
defaultProps: {
|
|
4694
4694
|
placement: "top"
|
|
4695
4695
|
// arrow: true,
|
|
4696
|
+
},
|
|
4697
|
+
styleOverrides: {
|
|
4698
|
+
tooltip: {
|
|
4699
|
+
backgroundColor: e.grey600,
|
|
4700
|
+
color: e.white,
|
|
4701
|
+
"& .MuiTooltip-arrow": {
|
|
4702
|
+
color: e.grey600
|
|
4703
|
+
}
|
|
4704
|
+
}
|
|
4696
4705
|
}
|
|
4697
4706
|
}
|
|
4698
4707
|
}
|
package/dist/share/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../index.module-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../index.module-64089a88.cjs"),c=require("axios"),u=require("react"),i=require("react/jsx-runtime");require("@r2wc/react-to-web-component");require("moment");require("@mui/material");const l=require("react-router-dom"),m=r=>{const[t,n]=u.useState([]);return u.useEffect(()=>{c.get(`${r}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(e=>n(e.data)).catch(e=>{console.error("Getting user permission error:",e)})},[r]),t},a=r=>(t,n)=>{const e=m(r);return n?t.every(o=>e==null?void 0:e.includes(o)):t.some(o=>e==null?void 0:e.includes(o))},P=({baseUrl:r,accessWith:t,requireAll:n,children:e})=>a(r)(t,n)?i.jsx(i.Fragment,{children:e}):null,h=({accessWith:r,requireAll:t,baseUrl:n,unAuthorizedPath:e,children:o})=>a(n)(r,t)?i.jsx(i.Fragment,{children:o}):i.jsx(l.Navigate,{to:e,replace:!0});exports.AuthProvider=s.AuthProvider;exports.SaasThemeProvider=s.SaasThemeProvider;exports.TranslationProvider=s.TranslationProvider;exports.color=s.color;exports.createCustomTheme=s.createCustomTheme;exports.getAxiosInstance=s.getAxiosInstance;exports.search=s.search;exports.translate=s.translate;exports.translationConfig=s.translationConfig;exports.useAuth=s.useAuth;exports.useCustomTranslation=s.useCustomTranslation;exports.useTheme=s.useTheme;exports.useTranslation=s.useTranslation$1;exports.HasPermission=P;exports.PermissionRoute=h;exports.getUseHasPermission=a;exports.useGetPermission=m;
|
package/dist/share/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F, R as G, T as N, c as R, O as S, J as j, q, M as w, K as E, H as I, d as J, m as K, N as M } from "../index.module-
|
|
1
|
+
import { F, R as G, T as N, c as R, O as S, J as j, q, M as w, K as E, H as I, d as J, m as K, N as M } from "../index.module-d2d48785.js";
|
|
2
2
|
import m from "axios";
|
|
3
3
|
import { useState as u, useEffect as c } from "react";
|
|
4
4
|
import { jsx as n, Fragment as a } from "react/jsx-runtime";
|