@ukpc-lib/react 0.3.44 → 0.3.46
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 +2 -2
- package/dist/components/index.js +5 -4
- package/dist/{index.module-bc09f930.js → index.module-0e847207.js} +6058 -6061
- package/dist/{index.module-31b7b1cb.cjs → index.module-50c1929c.cjs} +76 -76
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-2a2590c9.js → index-0db61062.js} +675 -674
- package/web-components-bundle/{index-727d1ad7.cjs → index-5e5489dd.cjs} +3 -3
- package/web-components-bundle/{index-979dc08c.js → index-a33584fd.js} +91 -91
- package/web-components-bundle/{index-0bff620d.cjs → index-ac079ff9.cjs} +2 -2
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
var
|
|
2
|
-
`;function qm({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function i(o){var a;((a=o.target)==null?void 0:a.id)==="modal-wrapper"&&e()}return be.jsxs(be.Fragment,{children:[be.jsx("style",{type:"text/css",children:lC}),be.jsx("div",{onClick:i,className:"modal-overlay",id:"modal-wrapper",children:be.jsxs("div",{className:"modal-container",children:[be.jsx("h3",{className:"modal-title",children:"Log out"}),be.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),be.jsxs("div",{className:"modal-footer",children:[be.jsx("button",{className:"modal-button cancel-btn",onClick:e,children:"Cancel"}),be.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const fn={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 Ym(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=Ym(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function Rr(){for(var t,e,n=0,i="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=Ym(t))&&(i&&(i+=" "),i+=e);return i}const ks=t=>typeof t=="number"&&!isNaN(t),Ui=t=>typeof t=="string",En=t=>typeof t=="function",gu=t=>Ui(t)||En(t)?t:null,tf=t=>te.isValidElement(t)||Ui(t)||En(t)||ks(t);function cC(t,e,n){n===void 0&&(n=300);const{scrollHeight:i,style:o}=t;requestAnimationFrame(()=>{o.minHeight="initial",o.height=i+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(e,n)})})}function Vu(t){let{enter:e,exit:n,appendPosition:i=!1,collapse:o=!0,collapseDuration:a=300}=t;return function(l){let{children:d,position:h,preventExitTransition:m,done:b,nodeRef:w,isIn:_,playToast:E}=l;const I=i?`${e}--${h}`:e,A=i?`${n}--${h}`:n,B=te.useRef(0);return te.useLayoutEffect(()=>{const k=w.current,F=I.split(" "),N=Y=>{Y.target===w.current&&(E(),k.removeEventListener("animationend",N),k.removeEventListener("animationcancel",N),B.current===0&&Y.type!=="animationcancel"&&k.classList.remove(...F))};k.classList.add(...F),k.addEventListener("animationend",N),k.addEventListener("animationcancel",N)},[]),te.useEffect(()=>{const k=w.current,F=()=>{k.removeEventListener("animationend",F),o?cC(k,b,a):b()};_||(m?F():(B.current=1,k.className+=` ${A}`,k.addEventListener("animationend",F)))},[_]),te.createElement(te.Fragment,null,d)}}function up(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 Qt=new Map;let Ds=[];const nf=new Set,fC=t=>nf.forEach(e=>e(t)),Gm=()=>Qt.size>0;function Km(t,e){var n;if(e)return!((n=Qt.get(e))==null||!n.isToastActive(t));let i=!1;return Qt.forEach(o=>{o.isToastActive(t)&&(i=!0)}),i}function Xm(t,e){tf(t)&&(Gm()||Ds.push({content:t,options:e}),Qt.forEach(n=>{n.buildToast(t,e)}))}function lp(t,e){Qt.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 dC(t){const{subscribe:e,getSnapshot:n,setProps:i}=te.useRef(function(a){const l=a.containerId||1;return{subscribe(d){const h=function(b,w,_){let E=1,I=0,A=[],B=[],k=[],F=w;const N=new Map,Y=new Set,$=()=>{k=Array.from(N.values()),Y.forEach(ee=>ee())},ie=ee=>{B=ee==null?[]:B.filter(Z=>Z!==ee),$()},g=ee=>{const{toastId:Z,onOpen:we,updateId:He,children:De}=ee.props,Te=He==null;ee.staleId&&N.delete(ee.staleId),N.set(Z,ee),B=[...B,ee.props.toastId].filter(Le=>Le!==ee.staleId),$(),_(up(ee,Te?"added":"updated")),Te&&En(we)&&we(te.isValidElement(De)&&De.props)};return{id:b,props:F,observe:ee=>(Y.add(ee),()=>Y.delete(ee)),toggle:(ee,Z)=>{N.forEach(we=>{Z!=null&&Z!==we.props.toastId||En(we.toggle)&&we.toggle(ee)})},removeToast:ie,toasts:N,clearQueue:()=>{I-=A.length,A=[]},buildToast:(ee,Z)=>{if((ve=>{let{containerId:me,toastId:ye,updateId:Pe}=ve;const Ce=me?me!==b:b!==1,Ie=N.has(ye)&&Pe==null;return Ce||Ie})(Z))return;const{toastId:we,updateId:He,data:De,staleId:Te,delay:Le}=Z,G=()=>{ie(we)},re=He==null;re&&I++;const de={...F,style:F.toastStyle,key:E++,...Object.fromEntries(Object.entries(Z).filter(ve=>{let[me,ye]=ve;return ye!=null})),toastId:we,updateId:He,data:De,closeToast:G,isIn:!1,className:gu(Z.className||F.toastClassName),bodyClassName:gu(Z.bodyClassName||F.bodyClassName),progressClassName:gu(Z.progressClassName||F.progressClassName),autoClose:!Z.isLoading&&(pe=Z.autoClose,Ae=F.autoClose,pe===!1||ks(pe)&&pe>0?pe:Ae),deleteToast(){const ve=N.get(we),{onClose:me,children:ye}=ve.props;En(me)&&me(te.isValidElement(ye)&&ye.props),_(up(ve,"removed")),N.delete(we),I--,I<0&&(I=0),A.length>0?g(A.shift()):$()}};var pe,Ae;de.closeButton=F.closeButton,Z.closeButton===!1||tf(Z.closeButton)?de.closeButton=Z.closeButton:Z.closeButton===!0&&(de.closeButton=!tf(F.closeButton)||F.closeButton);let Q=ee;te.isValidElement(ee)&&!Ui(ee.type)?Q=te.cloneElement(ee,{closeToast:G,toastProps:de,data:De}):En(ee)&&(Q=ee({closeToast:G,toastProps:de,data:De}));const ae={content:Q,props:de,staleId:Te};F.limit&&F.limit>0&&I>F.limit&&re?A.push(ae):ks(Le)?setTimeout(()=>{g(ae)},Le):g(ae)},setProps(ee){F=ee},setToggle:(ee,Z)=>{N.get(ee).toggle=Z},isToastActive:ee=>B.some(Z=>Z===ee),getSnapshot:()=>F.newestOnTop?k.reverse():k}}(l,a,fC);Qt.set(l,h);const m=h.observe(d);return Ds.forEach(b=>Xm(b.content,b.options)),Ds=[],()=>{m(),Qt.delete(l)}},setProps(d){var h;(h=Qt.get(l))==null||h.setProps(d)},getSnapshot(){var d;return(d=Qt.get(l))==null?void 0:d.getSnapshot()}}}(t)).current;i(t);const o=te.useSyncExternalStore(e,n,n);return{getToastToRender:function(a){if(!o)return[];const l=new Map;return o.forEach(d=>{const{position:h}=d.props;l.has(h)||l.set(h,[]),l.get(h).push(d)}),Array.from(l,d=>a(d[0],d[1]))},isToastActive:Km,count:o==null?void 0:o.length}}function hC(t){const[e,n]=te.useState(!1),[i,o]=te.useState(!1),a=te.useRef(null),l=te.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:d,pauseOnHover:h,closeToast:m,onClick:b,closeOnClick:w}=t;var _,E;function I(){n(!0)}function A(){n(!1)}function B(N){const Y=a.current;l.canDrag&&Y&&(l.didMove=!0,e&&A(),l.delta=t.draggableDirection==="x"?N.clientX-l.start:N.clientY-l.start,l.start!==N.clientX&&(l.canCloseOnClick=!1),Y.style.transform=`translate3d(${t.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`},0)`,Y.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function k(){document.removeEventListener("pointermove",B),document.removeEventListener("pointerup",k);const N=a.current;if(l.canDrag&&l.didMove&&N){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return o(!0),t.closeToast(),void t.collapseAll();N.style.transition="transform 0.2s, opacity 0.2s",N.style.removeProperty("transform"),N.style.removeProperty("opacity")}}(E=Qt.get((_={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||E.setToggle(_.id,_.fn),te.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||A(),window.addEventListener("focus",I),window.addEventListener("blur",A),()=>{window.removeEventListener("focus",I),window.removeEventListener("blur",A)}},[t.pauseOnFocusLoss]);const F={onPointerDown:function(N){if(t.draggable===!0||t.draggable===N.pointerType){l.didMove=!1,document.addEventListener("pointermove",B),document.addEventListener("pointerup",k);const Y=a.current;l.canCloseOnClick=!0,l.canDrag=!0,Y.style.transition="none",t.draggableDirection==="x"?(l.start=N.clientX,l.removalDistance=Y.offsetWidth*(t.draggablePercent/100)):(l.start=N.clientY,l.removalDistance=Y.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(N){const{top:Y,bottom:$,left:ie,right:g}=a.current.getBoundingClientRect();N.nativeEvent.type!=="touchend"&&t.pauseOnHover&&N.clientX>=ie&&N.clientX<=g&&N.clientY>=Y&&N.clientY<=$?A():I()}};return d&&h&&(F.onMouseEnter=A,t.stacked||(F.onMouseLeave=I)),w&&(F.onClick=N=>{b&&b(N),l.canCloseOnClick&&m()}),{playToast:I,pauseToast:A,isRunning:e,preventExitTransition:i,toastRef:a,eventHandlers:F}}function pC(t){let{delay:e,isRunning:n,closeToast:i,type:o="default",hide:a,className:l,style:d,controlledProgress:h,progress:m,rtl:b,isIn:w,theme:_}=t;const E=a||h&&m===0,I={...d,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};h&&(I.transform=`scaleX(${m})`);const A=Rr("Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${_}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":b}),B=En(l)?l({rtl:b,type:o,defaultClassName:A}):Rr(A,l),k={[h&&m>=1?"onTransitionEnd":"onAnimationEnd"]:h&&m<1?null:()=>{w&&i()}};return te.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":E},te.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${_} Toastify__progress-bar--${o}`}),te.createElement("div",{role:"progressbar","aria-hidden":E?"true":"false","aria-label":"notification timer",className:B,style:I,...k}))}let gC=1;const Jm=()=>""+gC++;function mC(t){return t&&(Ui(t.toastId)||ks(t.toastId))?t.toastId:Jm()}function Es(t,e){return Xm(t,e),e.toastId}function bu(t,e){return{...e,type:e&&e.type||t,toastId:mC(e)}}function nu(t){return(e,n)=>Es(e,bu(t,n))}function ft(t,e){return Es(t,bu("default",e))}ft.loading=(t,e)=>Es(t,bu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),ft.promise=function(t,e,n){let i,{pending:o,error:a,success:l}=e;o&&(i=Ui(o)?ft.loading(o,n):ft.loading(o.render,{...n,...o}));const d={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},h=(b,w,_)=>{if(w==null)return void ft.dismiss(i);const E={type:b,...d,...n,data:_},I=Ui(w)?{render:w}:w;return i?ft.update(i,{...E,...I}):ft(I.render,{...E,...I}),_},m=En(t)?t():t;return m.then(b=>h("success",l,b)).catch(b=>h("error",a,b)),m},ft.success=nu("success"),ft.info=nu("info"),ft.error=nu("error"),ft.warning=nu("warning"),ft.warn=ft.warning,ft.dark=(t,e)=>Es(t,bu("default",{theme:"dark",...e})),ft.dismiss=function(t){(function(e){var n;if(Gm()){if(e==null||Ui(n=e)||ks(n))Qt.forEach(o=>{o.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var i;(i=Qt.get(e.containerId))!=null&&i.removeToast(e.id)||Qt.forEach(o=>{o.removeToast(e.id)})}}else Ds=Ds.filter(o=>e!=null&&o.options.toastId!==e)})(t)},ft.clearWaitingQueue=function(t){t===void 0&&(t={}),Qt.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},ft.isActive=Km,ft.update=function(t,e){e===void 0&&(e={});const n=((i,o)=>{var a;let{containerId:l}=o;return(a=Qt.get(l||1))==null?void 0:a.toasts.get(i)})(t,e);if(n){const{props:i,content:o}=n,a={delay:100,...i,...e,toastId:e.toastId||t,updateId:Jm()};a.toastId!==t&&(a.staleId=t);const l=a.render||o;delete a.render,Es(l,a)}},ft.done=t=>{ft.update(t,{progress:1})},ft.onChange=function(t){return nf.add(t),()=>{nf.delete(t)}},ft.play=t=>lp(!0,t),ft.pause=t=>lp(!1,t);const vC=typeof window<"u"?te.useLayoutEffect:te.useEffect,ru=t=>{let{theme:e,type:n,isLoading:i,...o}=t;return te.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},yc={info:function(t){return te.createElement(ru,{...t},te.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 te.createElement(ru,{...t},te.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 te.createElement(ru,{...t},te.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 te.createElement(ru,{...t},te.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 te.createElement("div",{className:"Toastify__spinner"})}},yC=t=>{const{isRunning:e,preventExitTransition:n,toastRef:i,eventHandlers:o,playToast:a}=hC(t),{closeButton:l,children:d,autoClose:h,onClick:m,type:b,hideProgressBar:w,closeToast:_,transition:E,position:I,className:A,style:B,bodyClassName:k,bodyStyle:F,progressClassName:N,progressStyle:Y,updateId:$,role:ie,progress:g,rtl:ee,toastId:Z,deleteToast:we,isIn:He,isLoading:De,closeOnClick:Te,theme:Le}=t,G=Rr("Toastify__toast",`Toastify__toast-theme--${Le}`,`Toastify__toast--${b}`,{"Toastify__toast--rtl":ee},{"Toastify__toast--close-on-click":Te}),re=En(A)?A({rtl:ee,position:I,type:b,defaultClassName:G}):Rr(G,A),de=function(ae){let{theme:ve,type:me,isLoading:ye,icon:Pe}=ae,Ce=null;const Ie={theme:ve,type:me};return Pe===!1||(En(Pe)?Ce=Pe({...Ie,isLoading:ye}):te.isValidElement(Pe)?Ce=te.cloneElement(Pe,Ie):ye?Ce=yc.spinner():(je=>je in yc)(me)&&(Ce=yc[me](Ie))),Ce}(t),pe=!!g||!h,Ae={closeToast:_,type:b,theme:Le};let Q=null;return l===!1||(Q=En(l)?l(Ae):te.isValidElement(l)?te.cloneElement(l,Ae):function(ae){let{closeToast:ve,theme:me,ariaLabel:ye="close"}=ae;return te.createElement("button",{className:`Toastify__close-button Toastify__close-button--${me}`,type:"button",onClick:Pe=>{Pe.stopPropagation(),ve(Pe)},"aria-label":ye},te.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},te.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"})))}(Ae)),te.createElement(E,{isIn:He,done:we,position:I,preventExitTransition:n,nodeRef:i,playToast:a},te.createElement("div",{id:Z,onClick:m,"data-in":He,className:re,...o,style:B,ref:i},te.createElement("div",{...He&&{role:ie},className:En(k)?k({type:b}):Rr("Toastify__toast-body",k),style:F},de!=null&&te.createElement("div",{className:Rr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!De})},de),te.createElement("div",null,d)),Q,te.createElement(pC,{...$&&!pe?{key:`pb-${$}`}:{},rtl:ee,theme:Le,delay:h,isRunning:e,isIn:He,closeToast:_,hide:w,type:b,style:Y,className:N,controlledProgress:pe,progress:g||0})))},Wu=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},bC=Vu(Wu("bounce",!0));Vu(Wu("slide",!0));Vu(Wu("zoom"));Vu(Wu("flip"));const wC={position:"top-right",transition:bC,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function xC(t){let e={...wC,...t};const n=t.stacked,[i,o]=te.useState(!0),a=te.useRef(null),{getToastToRender:l,isToastActive:d,count:h}=dC(e),{className:m,style:b,rtl:w,containerId:_}=e;function E(A){const B=Rr("Toastify__toast-container",`Toastify__toast-container--${A}`,{"Toastify__toast-container--rtl":w});return En(m)?m({position:A,rtl:w,defaultClassName:B}):Rr(B,gu(m))}function I(){n&&(o(!0),ft.play())}return vC(()=>{if(n){var A;const B=a.current.querySelectorAll('[data-in="true"]'),k=12,F=(A=e.position)==null?void 0:A.includes("top");let N=0,Y=0;Array.from(B).reverse().forEach(($,ie)=>{const g=$;g.classList.add("Toastify__toast--stacked"),ie>0&&(g.dataset.collapsed=`${i}`),g.dataset.pos||(g.dataset.pos=F?"top":"bot");const ee=N*(i?.2:1)+(i?0:k*ie);g.style.setProperty("--y",`${F?ee:-1*ee}px`),g.style.setProperty("--g",`${k}`),g.style.setProperty("--s",""+(1-(i?Y:0))),N+=g.offsetHeight,Y+=.025})}},[i,h,n]),te.createElement("div",{ref:a,className:"Toastify",id:_,onMouseEnter:()=>{n&&(o(!1),ft.pause())},onMouseLeave:I},l((A,B)=>{const k=B.length?{...b}:{...b,pointerEvents:"none"};return te.createElement("div",{className:E(A),style:k,key:`container-${A}`},B.map(F=>{let{content:N,props:Y}=F;return te.createElement(yC,{...Y,stacked:n,collapseAll:I,isIn:d(Y.toastId,Y.containerId),style:Y.style,key:`toast-${Y.key}`},N)}))}))}function SC(){return be.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.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"}),be.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),be.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function _C(){return be.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),be.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function CC(){return be.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.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"}),be.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 If={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},EC=({closeToast:t})=>be.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:be.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:be.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"})})}),TC=t=>{ft.success(t,{icon:be.jsx(_C,{}),bodyStyle:{},position:"bottom-right",style:{...If,background:fn.successLight,borderColor:fn.success,color:fn.success}})},Rf=t=>{ft.error(t,{icon:be.jsx(SC,{}),position:"bottom-right",style:{...If,background:fn.dangerLight,borderColor:fn.danger,color:fn.danger}})},OC=t=>{ft.error(t,{icon:be.jsx(CC,{}),position:"bottom-right",style:{...If,background:fn.warningLight,borderColor:fn.warning,color:fn.warning}})},PC=t=>{ft(t,{closeButton:EC,toastId:"notify",position:"top-right",closeOnClick:!1,hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:fn.textPrimary}})},cp=window.location.href,Zm=te.createContext({}),AC=({children:t,baseUrl:e,userData:n})=>{const i=()=>{window.location.href=`${e}/authentication/login?callbackUrl=${cp}`},o=()=>{window.location.href=`${e}/authentication/logout?callbackUrl=${cp}`};return n!=null&&n.isFetching?be.jsx(ko.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:be.jsx(ko.CircularProgress,{})}):be.jsx(Zm.Provider,{value:{user:n==null?void 0:n.data,login:i,logout:o},children:t})},kC=()=>{const{login:t,logout:e,user:n}=te.useContext(Zm);return{login:t,logout:e,user:n}},DC={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},fp=t=>{window.location.href=`${t}/authentication/login?callbackUrl=${window.location.href}`},IC=t=>{window.location.href=`${t}/authentication/logout?callbackUrl=${window.location.href}`};function Tn(t){"@babel/helpers - typeof";return Tn=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},Tn(t)}function Pn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RC(t,e){if(Tn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Tn(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Qm(t){var e=RC(t,"string");return Tn(e)=="symbol"?e:String(e)}function dp(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,Qm(i.key),i)}}function An(t,e,n){return e&&dp(t.prototype,e),n&&dp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Mr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wu(t,e){return wu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},wu(t,e)}function Hu(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&&wu(t,e)}function Fs(t,e){if(e&&(Tn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mr(t)}function pr(t){return pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pr(t)}function gr(t,e,n){return e=Qm(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ev(t){if(Array.isArray(t))return t}function LC(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function hp(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 tv(t,e){if(t){if(typeof t=="string")return hp(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 hp(t,e)}}function nv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MC(t){return ev(t)||LC(t)||tv(t)||nv()}function pp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function gp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var NC={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)}},jC=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Pn(this,t),this.init(e,n)}return An(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||NC,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),o=0;o<n;o++)i[o]=arguments[o];return this.forward(i,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return this.forward(i,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return this.forward(i,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,i,o,a){return a&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(o).concat(this.prefix," ").concat(n[0])),this.logger[i](n))}},{key:"create",value:function(n){return new t(this.logger,gp(gp({},{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}(),dr=new jC,gi=function(){function t(){Pn(this,t),this.observers={}}return An(t,[{key:"on",value:function(n,i){var o=this;return n.split(" ").forEach(function(a){o.observers[a]=o.observers[a]||[],o.observers[a].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(o){return o!==i})}}},{key:"emit",value:function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(this.observers[n]){var l=[].concat(this.observers[n]);l.forEach(function(h){h.apply(void 0,o)})}if(this.observers["*"]){var d=[].concat(this.observers["*"]);d.forEach(function(h){h.apply(h,[n].concat(o))})}}}]),t}();function ys(){var t,e,n=new Promise(function(i,o){t=i,e=o});return n.resolve=t,n.reject=e,n}function mp(t){return t==null?"":""+t}function BC(t,e,n){t.forEach(function(i){e[i]&&(n[i]=e[i])})}function Lf(t,e,n){function i(d){return d&&d.indexOf("###")>-1?d.replace(/###/g,"."):d}function o(){return!t||typeof t=="string"}for(var a=typeof e!="string"?[].concat(e):e.split(".");a.length>1;){if(o())return{};var l=i(a.shift());!t[l]&&n&&(t[l]=new n),Object.prototype.hasOwnProperty.call(t,l)?t=t[l]:t={}}return o()?{}:{obj:t,k:i(a.shift())}}function vp(t,e,n){var i=Lf(t,e,Object),o=i.obj,a=i.k;o[a]=n}function FC(t,e,n,i){var o=Lf(t,e,Object),a=o.obj,l=o.k;a[l]=a[l]||[],i&&(a[l]=a[l].concat(n)),i||a[l].push(n)}function xu(t,e){var n=Lf(t,e),i=n.obj,o=n.k;if(i)return i[o]}function VC(t,e,n){var i=xu(t,n);return i!==void 0?i:xu(e,n)}function rv(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]):rv(t[i],e[i],n):t[i]=e[i]);return t}function xo(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var WC={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function HC(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return WC[e]}):t}var $u=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,$C=[" ",",","?","!",";"];function UC(t,e,n){e=e||"",n=n||"";var i=$C.filter(function(d){return e.indexOf(d)<0&&n.indexOf(d)<0});if(i.length===0)return!0;var o=new RegExp("(".concat(i.map(function(d){return d==="?"?"\\?":d}).join("|"),")")),a=!o.test(t);if(!a){var l=t.indexOf(n);l>0&&!o.test(t.substring(0,l))&&(a=!0)}return a}function Su(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),o=t,a=0;a<i.length;++a){if(!o||typeof o[i[a]]=="string"&&a+1<i.length)return;if(o[i[a]]===void 0){for(var l=2,d=i.slice(a,a+l).join(n),h=o[d];h===void 0&&i.length>a+l;)l++,d=i.slice(a,a+l).join(n),h=o[d];if(h===void 0)return;if(h===null)return null;if(e.endsWith(d)){if(typeof h=="string")return h;if(d&&typeof h[d]=="string")return h[d]}var m=i.slice(a+l).join(n);return m?Su(h,m,n):void 0}o=o[i[a]]}return o}}function yp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function iu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function zC(t){var e=qC();return function(){var i=pr(t),o;if(e){var a=pr(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Fs(this,o)}}function qC(){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 YC=function(t){Hu(n,t);var e=zC(n);function n(i){var o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Pn(this,n),o=e.call(this),$u&&gi.call(Mr(o)),o.data=i||{},o.options=a,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.options.ignoreJSONStructure===void 0&&(o.options.ignoreJSONStructure=!0),o}return An(n,[{key:"addNamespaces",value:function(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}},{key:"removeNamespaces",value:function(o){var a=this.options.ns.indexOf(o);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(o,a,l){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,m=d.ignoreJSONStructure!==void 0?d.ignoreJSONStructure:this.options.ignoreJSONStructure,b=[o,a];l&&typeof l!="string"&&(b=b.concat(l)),l&&typeof l=="string"&&(b=b.concat(h?l.split(h):l)),o.indexOf(".")>-1&&(b=o.split("."));var w=xu(this.data,b);return w||!m||typeof l!="string"?w:Su(this.data&&this.data[o]&&this.data[o][a],l,h)}},{key:"addResource",value:function(o,a,l,d){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},m=h.keySeparator!==void 0?h.keySeparator:this.options.keySeparator,b=[o,a];l&&(b=b.concat(m?l.split(m):l)),o.indexOf(".")>-1&&(b=o.split("."),d=a,a=b[1]),this.addNamespaces(a),vp(this.data,b,d),h.silent||this.emit("added",o,a,l,d)}},{key:"addResources",value:function(o,a,l){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var h in l)(typeof l[h]=="string"||Object.prototype.toString.apply(l[h])==="[object Array]")&&this.addResource(o,a,h,l[h],{silent:!0});d.silent||this.emit("added",o,a,l)}},{key:"addResourceBundle",value:function(o,a,l,d,h){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},b=[o,a];o.indexOf(".")>-1&&(b=o.split("."),d=l,l=a,a=b[1]),this.addNamespaces(a);var w=xu(this.data,b)||{};d?rv(w,l,h):w=iu(iu({},w),l),vp(this.data,b,w),m.silent||this.emit("added",o,a,l)}},{key:"removeResourceBundle",value:function(o,a){this.hasResourceBundle(o,a)&&delete this.data[o][a],this.removeNamespaces(a),this.emit("removed",o,a)}},{key:"hasResourceBundle",value:function(o,a){return this.getResource(o,a)!==void 0}},{key:"getResourceBundle",value:function(o,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?iu(iu({},{}),this.getResource(o,a)):this.getResource(o,a)}},{key:"getDataByLanguage",value:function(o){return this.data[o]}},{key:"hasLanguageSomeTranslations",value:function(o){var a=this.getDataByLanguage(o),l=a&&Object.keys(a)||[];return!!l.find(function(d){return a[d]&&Object.keys(a[d]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(gi),iv={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,i,o,a){var l=this;return e.forEach(function(d){l.processors[d]&&(n=l.processors[d].process(n,i,o,a))}),n}};function bp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function $t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function GC(t){var e=KC();return function(){var i=pr(t),o;if(e){var a=pr(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Fs(this,o)}}function KC(){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 wp={},xp=function(t){Hu(n,t);var e=GC(n);function n(i){var o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Pn(this,n),o=e.call(this),$u&&gi.call(Mr(o)),BC(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,Mr(o)),o.options=a,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.logger=dr.create("translator"),o}return An(n,[{key:"changeLanguage",value:function(o){o&&(this.language=o)}},{key:"exists",value:function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(o==null)return!1;var l=this.resolve(o,a);return l&&l.res!==void 0}},{key:"extractFromKey",value:function(o,a){var l=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");var d=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,h=a.ns||this.options.defaultNS||[],m=l&&o.indexOf(l)>-1,b=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!UC(o,l,d);if(m&&!b){var w=o.match(this.interpolator.nestingRegexp);if(w&&w.length>0)return{key:o,namespaces:h};var _=o.split(l);(l!==d||l===d&&this.options.ns.indexOf(_[0])>-1)&&(h=_.shift()),o=_.join(d)}return typeof h=="string"&&(h=[h]),{key:o,namespaces:h}}},{key:"translate",value:function(o,a,l){var d=this;if(Tn(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),Tn(a)==="object"&&(a=$t({},a)),a||(a={}),o==null)return"";Array.isArray(o)||(o=[String(o)]);var h=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,m=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,b=this.extractFromKey(o[o.length-1],a),w=b.key,_=b.namespaces,E=_[_.length-1],I=a.lng||this.language,A=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(I&&I.toLowerCase()==="cimode"){if(A){var B=a.nsSeparator||this.options.nsSeparator;return h?{res:"".concat(E).concat(B).concat(w),usedKey:w,exactUsedKey:w,usedLng:I,usedNS:E}:"".concat(E).concat(B).concat(w)}return h?{res:w,usedKey:w,exactUsedKey:w,usedLng:I,usedNS:E}:w}var k=this.resolve(o,a),F=k&&k.res,N=k&&k.usedKey||w,Y=k&&k.exactUsedKey||w,$=Object.prototype.toString.apply(F),ie=["[object Number]","[object Function]","[object RegExp]"],g=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,ee=!this.i18nFormat||this.i18nFormat.handleAsObject,Z=typeof F!="string"&&typeof F!="boolean"&&typeof F!="number";if(ee&&F&&Z&&ie.indexOf($)<0&&!(typeof g=="string"&&$==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var we=this.options.returnedObjectHandler?this.options.returnedObjectHandler(N,F,$t($t({},a),{},{ns:_})):"key '".concat(w," (").concat(this.language,")' returned an object instead of string.");return h?(k.res=we,k):we}if(m){var He=$==="[object Array]",De=He?[]:{},Te=He?Y:N;for(var Le in F)if(Object.prototype.hasOwnProperty.call(F,Le)){var G="".concat(Te).concat(m).concat(Le);De[Le]=this.translate(G,$t($t({},a),{joinArrays:!1,ns:_})),De[Le]===G&&(De[Le]=F[Le])}F=De}}else if(ee&&typeof g=="string"&&$==="[object Array]")F=F.join(g),F&&(F=this.extendTranslation(F,o,a,l));else{var re=!1,de=!1,pe=a.count!==void 0&&typeof a.count!="string",Ae=n.hasDefaultValue(a),Q=pe?this.pluralResolver.getSuffix(I,a.count,a):"",ae=a["defaultValue".concat(Q)]||a.defaultValue;!this.isValidLookup(F)&&Ae&&(re=!0,F=ae),this.isValidLookup(F)||(de=!0,F=w);var ve=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,me=ve&&de?void 0:F,ye=Ae&&ae!==F&&this.options.updateMissing;if(de||re||ye){if(this.logger.log(ye?"updateKey":"missingKey",I,E,w,ye?ae:F),m){var Pe=this.resolve(w,$t($t({},a),{},{keySeparator:!1}));Pe&&Pe.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 Ce=[],Ie=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ie&&Ie[0])for(var je=0;je<Ie.length;je++)Ce.push(Ie[je]);else this.options.saveMissingTo==="all"?Ce=this.languageUtils.toResolveHierarchy(a.lng||this.language):Ce.push(a.lng||this.language);var $e=function(Xe,ge,gt){var ht=Ae&>!==F?gt:me;d.options.missingKeyHandler?d.options.missingKeyHandler(Xe,E,ge,ht,ye,a):d.backendConnector&&d.backendConnector.saveMissing&&d.backendConnector.saveMissing(Xe,E,ge,ht,ye,a),d.emit("missingKey",Xe,E,ge,F)};this.options.saveMissing&&(this.options.saveMissingPlurals&&pe?Ce.forEach(function(Me){d.pluralResolver.getSuffixes(Me,a).forEach(function(Xe){$e([Me],w+Xe,a["defaultValue".concat(Xe)]||ae)})}):$e(Ce,w,ae))}F=this.extendTranslation(F,o,a,k,l),de&&F===w&&this.options.appendNamespaceToMissingKey&&(F="".concat(E,":").concat(w)),(de||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?F=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(E,":").concat(w):w,re?F:void 0):F=this.options.parseMissingKeyHandler(F))}return h?(k.res=F,k):F}},{key:"extendTranslation",value:function(o,a,l,d,h){var m=this;if(this.i18nFormat&&this.i18nFormat.parse)o=this.i18nFormat.parse(o,$t($t({},this.options.interpolation.defaultVariables),l),d.usedLng,d.usedNS,d.usedKey,{resolved:d});else if(!l.skipInterpolation){l.interpolation&&this.interpolator.init($t($t({},l),{interpolation:$t($t({},this.options.interpolation),l.interpolation)}));var b=typeof o=="string"&&(l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),w;if(b){var _=o.match(this.interpolator.nestingRegexp);w=_&&_.length}var E=l.replace&&typeof l.replace!="string"?l.replace:l;if(this.options.interpolation.defaultVariables&&(E=$t($t({},this.options.interpolation.defaultVariables),E)),o=this.interpolator.interpolate(o,E,l.lng||this.language,l),b){var I=o.match(this.interpolator.nestingRegexp),A=I&&I.length;w<A&&(l.nest=!1)}!l.lng&&this.options.compatibilityAPI!=="v1"&&d&&d.res&&(l.lng=d.usedLng),l.nest!==!1&&(o=this.interpolator.nest(o,function(){for(var F=arguments.length,N=new Array(F),Y=0;Y<F;Y++)N[Y]=arguments[Y];return h&&h[0]===N[0]&&!l.context?(m.logger.warn("It seems you are nesting recursively key: ".concat(N[0]," in key: ").concat(a[0])),null):m.translate.apply(m,N.concat([a]))},l)),l.interpolation&&this.interpolator.reset()}var B=l.postProcess||this.options.postProcess,k=typeof B=="string"?[B]:B;return o!=null&&k&&k.length&&l.applyPostProcessor!==!1&&(o=iv.handle(k,o,a,this.options&&this.options.postProcessPassResolved?$t({i18nResolved:d},l):l,this)),o}},{key:"resolve",value:function(o){var a=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,h,m,b,w;return typeof o=="string"&&(o=[o]),o.forEach(function(_){if(!a.isValidLookup(d)){var E=a.extractFromKey(_,l),I=E.key;h=I;var A=E.namespaces;a.options.fallbackNS&&(A=A.concat(a.options.fallbackNS));var B=l.count!==void 0&&typeof l.count!="string",k=B&&!l.ordinal&&l.count===0&&a.pluralResolver.shouldUseIntlApi(),F=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",N=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);A.forEach(function(Y){a.isValidLookup(d)||(w=Y,!wp["".concat(N[0],"-").concat(Y)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(w)&&(wp["".concat(N[0],"-").concat(Y)]=!0,a.logger.warn('key "'.concat(h,'" for languages "').concat(N.join(", "),`" won't get resolved as namespace "`).concat(w,'" 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!!!")),N.forEach(function($){if(!a.isValidLookup(d)){b=$;var ie=[I];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(ie,I,$,Y,l);else{var g;B&&(g=a.pluralResolver.getSuffix($,l.count,l));var ee="".concat(a.options.pluralSeparator,"zero");if(B&&(ie.push(I+g),k&&ie.push(I+ee)),F){var Z="".concat(I).concat(a.options.contextSeparator).concat(l.context);ie.push(Z),B&&(ie.push(Z+g),k&&ie.push(Z+ee))}}for(var we;we=ie.pop();)a.isValidLookup(d)||(m=we,d=a.getResource($,Y,we,l))}}))})}}),{res:d,usedKey:h,exactUsedKey:m,usedLng:b,usedNS:w}}},{key:"isValidLookup",value:function(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}},{key:"getResource",value:function(o,a,l){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(o,a,l,d):this.resourceStore.getResource(o,a,l,d)}}],[{key:"hasDefaultValue",value:function(o){var a="defaultValue";for(var l in o)if(Object.prototype.hasOwnProperty.call(o,l)&&a===l.substring(0,a.length)&&o[l]!==void 0)return!0;return!1}}]),n}(gi);function bc(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Sp=function(){function t(e){Pn(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dr.create("languageUtils")}return An(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"],o=n.split("-");return this.options.lowerCaseLng?o=o.map(function(a){return a.toLowerCase()}):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),i.indexOf(o[1].toLowerCase())>-1&&(o[1]=bc(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),i.indexOf(o[1].toLowerCase())>-1&&(o[1]=bc(o[1].toLowerCase())),i.indexOf(o[2].toLowerCase())>-1&&(o[2]=bc(o[2].toLowerCase()))),o.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 o;return n.forEach(function(a){if(!o){var l=i.formatLanguageCode(a);(!i.options.supportedLngs||i.isSupportedCode(l))&&(o=l)}}),!o&&this.options.supportedLngs&&n.forEach(function(a){if(!o){var l=i.getLanguagePartFromCode(a);if(i.isSupportedCode(l))return o=l;o=i.options.supportedLngs.find(function(d){if(d===l)return d;if(!(d.indexOf("-")<0&&l.indexOf("-")<0)&&d.indexOf(l)===0)return d})}}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}},{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 o=n[i];return o||(o=n[this.getScriptPartFromCode(i)]),o||(o=n[this.formatLanguageCode(i)]),o||(o=n[this.getLanguagePartFromCode(i)]),o||(o=n.default),o||[]}},{key:"toResolveHierarchy",value:function(n,i){var o=this,a=this.getFallbackCodes(i||this.options.fallbackLng||[],n),l=[],d=function(m){m&&(o.isSupportedCode(m)?l.push(m):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(m)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(n))):typeof n=="string"&&d(this.formatLanguageCode(n)),a.forEach(function(h){l.indexOf(h)<0&&d(o.formatLanguageCode(h))}),l}}]),t}(),XC=[{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}],JC={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}},ZC=["v1","v2","v3"],_p={zero:0,one:1,two:2,few:3,many:4,other:5};function QC(){var t={};return XC.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:JC[e.fc]}})}),t}var eE=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Pn(this,t),this.languageUtils=e,this.options=n,this.logger=dr.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=QC()}return An(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]:{},o=this.getRule(n,i);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,i){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,o).map(function(a){return"".concat(i).concat(a)})}},{key:"getSuffixes",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(n,o);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(l,d){return _p[l]-_p[d]}).map(function(l){return"".concat(i.options.prepend).concat(l)}):a.numbers.map(function(l){return i.getSuffix(n,l,o)}):[]}},{key:"getSuffix",value:function(n,i){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(n,o);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(i)):this.getSuffixRetroCompatible(a,i):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,i){var o=this,a=n.noAbs?n.plurals(i):n.plurals(Math.abs(i)),l=n.numbers[a];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));var d=function(){return o.options.prepend&&l.toString()?o.options.prepend+l.toString():l.toString()};return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?"_plural_".concat(l.toString()):d():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?d():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!ZC.includes(this.options.compatibilityJSON)}}]),t}();function Cp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Xn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Ep(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=VC(t,e,n);return!a&&o&&typeof n=="string"&&(a=Su(t,n,i),a===void 0&&(a=Su(e,n,i))),a}var tE=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pn(this,t),this.logger=dr.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return An(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:HC,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?xo(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?xo(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?xo(i.nestingPrefix):i.nestingPrefixEscaped||xo("$t("),this.nestingSuffix=i.nestingSuffix?xo(i.nestingSuffix):i.nestingSuffixEscaped||xo(")"),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 o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(o,"g")}},{key:"interpolate",value:function(n,i,o,a){var l=this,d,h,m,b=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function w(B){return B.replace(/\$/g,"$$$$")}var _=function(k){if(k.indexOf(l.formatSeparator)<0){var F=Ep(i,b,k,l.options.keySeparator,l.options.ignoreJSONStructure);return l.alwaysFormat?l.format(F,void 0,o,Xn(Xn(Xn({},a),i),{},{interpolationkey:k})):F}var N=k.split(l.formatSeparator),Y=N.shift().trim(),$=N.join(l.formatSeparator).trim();return l.format(Ep(i,b,Y,l.options.keySeparator,l.options.ignoreJSONStructure),$,o,Xn(Xn(Xn({},a),i),{},{interpolationkey:Y}))};this.resetRegExp();var E=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,I=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,A=[{regex:this.regexpUnescape,safeValue:function(k){return w(k)}},{regex:this.regexp,safeValue:function(k){return l.escapeValue?w(l.escape(k)):w(k)}}];return A.forEach(function(B){for(m=0;d=B.regex.exec(n);){var k=d[1].trim();if(h=_(k),h===void 0)if(typeof E=="function"){var F=E(n,d,a);h=typeof F=="string"?F:""}else if(a&&Object.prototype.hasOwnProperty.call(a,k))h="";else if(I){h=d[0];continue}else l.logger.warn("missed to pass in variable ".concat(k," for interpolating ").concat(n)),h="";else typeof h!="string"&&!l.useRawValueToEscape&&(h=mp(h));var N=B.safeValue(h);if(n=n.replace(d[0],N),I?(B.regex.lastIndex+=h.length,B.regex.lastIndex-=d[0].length):B.regex.lastIndex=0,m++,m>=l.maxReplaces)break}}),n}},{key:"nest",value:function(n,i){var o=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,d,h;function m(E,I){var A=this.nestingOptionsSeparator;if(E.indexOf(A)<0)return E;var B=E.split(new RegExp("".concat(A,"[ ]*{"))),k="{".concat(B[1]);E=B[0],k=this.interpolate(k,h);var F=k.match(/'/g),N=k.match(/"/g);(F&&F.length%2===0&&!N||N.length%2!==0)&&(k=k.replace(/'/g,'"'));try{h=JSON.parse(k),I&&(h=Xn(Xn({},I),h))}catch(Y){return this.logger.warn("failed parsing options string in nesting for key ".concat(E),Y),"".concat(E).concat(A).concat(k)}return delete h.defaultValue,E}for(;l=this.nestingRegexp.exec(n);){var b=[];h=Xn({},a),h=h.replace&&typeof h.replace!="string"?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;var w=!1;if(l[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(l[1])){var _=l[1].split(this.formatSeparator).map(function(E){return E.trim()});l[1]=_.shift(),b=_,w=!0}if(d=i(m.call(this,l[1].trim(),h),h),d&&l[0]===n&&typeof d!="string")return d;typeof d!="string"&&(d=mp(d)),d||(this.logger.warn("missed to resolve ".concat(l[1]," for nesting ").concat(n)),d=""),w&&(d=b.reduce(function(E,I){return o.format(E,I,a.lng,Xn(Xn({},a),{},{interpolationkey:l[1].trim()}))},d.trim())),n=n.replace(l[0],d),this.regexp.lastIndex=0}return n}}]),t}();function Tp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Dr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function nE(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var i=t.split("(");e=i[0].toLowerCase().trim();var o=i[1].substring(0,i[1].length-1);if(e==="currency"&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if(e==="relativetime"&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{var a=o.split(";");a.forEach(function(l){if(l){var d=l.split(":"),h=MC(d),m=h[0],b=h.slice(1),w=b.join(":").trim().replace(/^'+|'+$/g,"");n[m.trim()]||(n[m.trim()]=w),w==="false"&&(n[m.trim()]=!1),w==="true"&&(n[m.trim()]=!0),isNaN(w)||(n[m.trim()]=parseInt(w,10))}})}}return{formatName:e,formatOptions:n}}function So(t){var e={};return function(i,o,a){var l=o+JSON.stringify(a),d=e[l];return d||(d=t(o,a),e[l]=d),d(i)}}var rE=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pn(this,t),this.logger=dr.create("formatter"),this.options=e,this.formats={number:So(function(n,i){var o=new Intl.NumberFormat(n,Dr({},i));return function(a){return o.format(a)}}),currency:So(function(n,i){var o=new Intl.NumberFormat(n,Dr(Dr({},i),{},{style:"currency"}));return function(a){return o.format(a)}}),datetime:So(function(n,i){var o=new Intl.DateTimeFormat(n,Dr({},i));return function(a){return o.format(a)}}),relativetime:So(function(n,i){var o=new Intl.RelativeTimeFormat(n,Dr({},i));return function(a){return o.format(a,i.range||"day")}}),list:So(function(n,i){var o=new Intl.ListFormat(n,Dr({},i));return function(a){return o.format(a)}})},this.init(e)}return An(t,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},o=i.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(n,i){this.formats[n.toLowerCase().trim()]=i}},{key:"addCached",value:function(n,i){this.formats[n.toLowerCase().trim()]=So(i)}},{key:"format",value:function(n,i,o){var a=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},d=i.split(this.formatSeparator),h=d.reduce(function(m,b){var w=nE(b),_=w.formatName,E=w.formatOptions;if(a.formats[_]){var I=m;try{var A=l&&l.formatParams&&l.formatParams[l.interpolationkey]||{},B=A.locale||A.lng||l.locale||l.lng||o;I=a.formats[_](m,B,Dr(Dr(Dr({},E),l),A))}catch(k){a.logger.warn(k)}return I}else a.logger.warn("there was no format function for ".concat(_));return m},n);return h}}]),t}();function Op(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Pp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Op(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Op(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function iE(t){var e=oE();return function(){var i=pr(t),o;if(e){var a=pr(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Fs(this,o)}}function oE(){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 aE=function(t){Hu(n,t);var e=iE(n);function n(i,o,a){var l,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Pn(this,n),l=e.call(this),$u&&gi.call(Mr(l)),l.backend=i,l.store=o,l.services=a,l.languageUtils=a.languageUtils,l.options=d,l.logger=dr.create("backendConnector"),l.waitingReads=[],l.maxParallelReads=d.maxParallelReads||10,l.readingCalls=0,l.maxRetries=d.maxRetries>=0?d.maxRetries:5,l.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,l.state={},l.queue=[],l.backend&&l.backend.init&&l.backend.init(a,d.backend,d),l}return An(n,[{key:"queueLoad",value:function(o,a,l,d){var h=this,m={},b={},w={},_={};return o.forEach(function(E){var I=!0;a.forEach(function(A){var B="".concat(E,"|").concat(A);!l.reload&&h.store.hasResourceBundle(E,A)?h.state[B]=2:h.state[B]<0||(h.state[B]===1?b[B]===void 0&&(b[B]=!0):(h.state[B]=1,I=!1,b[B]===void 0&&(b[B]=!0),m[B]===void 0&&(m[B]=!0),_[A]===void 0&&(_[A]=!0)))}),I||(w[E]=!0)}),(Object.keys(m).length||Object.keys(b).length)&&this.queue.push({pending:b,pendingCount:Object.keys(b).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(m),pending:Object.keys(b),toLoadLanguages:Object.keys(w),toLoadNamespaces:Object.keys(_)}}},{key:"loaded",value:function(o,a,l){var d=o.split("|"),h=d[0],m=d[1];a&&this.emit("failedLoading",h,m,a),l&&this.store.addResourceBundle(h,m,l),this.state[o]=a?-1:2;var b={};this.queue.forEach(function(w){FC(w.loaded,[h],m),sE(w,o),a&&w.errors.push(a),w.pendingCount===0&&!w.done&&(Object.keys(w.loaded).forEach(function(_){b[_]||(b[_]={});var E=w.loaded[_];E.length&&E.forEach(function(I){b[_][I]===void 0&&(b[_][I]=!0)})}),w.done=!0,w.errors.length?w.callback(w.errors):w.callback())}),this.emit("loaded",b),this.queue=this.queue.filter(function(w){return!w.done})}},{key:"read",value:function(o,a,l){var d=this,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,b=arguments.length>5?arguments[5]:void 0;if(!o.length)return b(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:a,fcName:l,tried:h,wait:m,callback:b});return}this.readingCalls++;var w=function(A,B){if(d.readingCalls--,d.waitingReads.length>0){var k=d.waitingReads.shift();d.read(k.lng,k.ns,k.fcName,k.tried,k.wait,k.callback)}if(A&&B&&h<d.maxRetries){setTimeout(function(){d.read.call(d,o,a,l,h+1,m*2,b)},m);return}b(A,B)},_=this.backend[l].bind(this.backend);if(_.length===2){try{var E=_(o,a);E&&typeof E.then=="function"?E.then(function(I){return w(null,I)}).catch(w):w(null,E)}catch(I){w(I)}return}return _(o,a,w)}},{key:"prepareLoading",value:function(o,a){var l=this,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=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."),h&&h();typeof o=="string"&&(o=this.languageUtils.toResolveHierarchy(o)),typeof a=="string"&&(a=[a]);var m=this.queueLoad(o,a,d,h);if(!m.toLoad.length)return m.pending.length||h(),null;m.toLoad.forEach(function(b){l.loadOne(b)})}},{key:"load",value:function(o,a,l){this.prepareLoading(o,a,{},l)}},{key:"reload",value:function(o,a,l){this.prepareLoading(o,a,{reload:!0},l)}},{key:"loadOne",value:function(o){var a=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",d=o.split("|"),h=d[0],m=d[1];this.read(h,m,"read",void 0,void 0,function(b,w){b&&a.logger.warn("".concat(l,"loading namespace ").concat(m," for language ").concat(h," failed"),b),!b&&w&&a.logger.log("".concat(l,"loaded namespace ").concat(m," for language ").concat(h),w),a.loaded(o,b,w)})}},{key:"saveMissing",value:function(o,a,l,d,h){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},b=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(l,'" as the namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(l==null||l==="")){if(this.backend&&this.backend.create){var w=Pp(Pp({},m),{},{isUpdate:h}),_=this.backend.create.bind(this.backend);if(_.length<6)try{var E;_.length===5?E=_(o,a,l,d,w):E=_(o,a,l,d),E&&typeof E.then=="function"?E.then(function(I){return b(null,I)}).catch(b):b(null,E)}catch(I){b(I)}else _(o,a,l,d,b,w)}!o||!o[0]||this.store.addResource(o[0],a,l,d)}}}]),n}(gi);function Ap(){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(Tn(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),Tn(e[2])==="object"||Tn(e[3])==="object"){var i=e[3]||e[2];Object.keys(i).forEach(function(o){n[o]=i[o]})}return n},interpolation:{escapeValue:!0,format:function(e,n,i,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function kp(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 Dp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function cr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function uE(t){var e=lE();return function(){var i=pr(t),o;if(e){var a=pr(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Fs(this,o)}}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}}function ou(){}function cE(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var _u=function(t){Hu(n,t);var e=uE(n);function n(){var i,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(Pn(this,n),i=e.call(this),$u&&gi.call(Mr(i)),i.options=kp(o),i.services={},i.logger=dr,i.modules={external:[]},cE(Mr(i)),a&&!i.isInitialized&&!o.isClone){if(!i.options.initImmediate)return i.init(o,a),Fs(i,Mr(i));setTimeout(function(){i.init(o,a)},0)}return i}return An(n,[{key:"init",value:function(){var o=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(l=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var d=Ap();this.options=cr(cr(cr({},d),this.options),kp(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=cr(cr({},d.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function h(k){return k?typeof k=="function"?new k:k:null}if(!this.options.isClone){this.modules.logger?dr.init(h(this.modules.logger),this.options):dr.init(null,this.options);var m;this.modules.formatter?m=this.modules.formatter:typeof Intl<"u"&&(m=rE);var b=new Sp(this.options);this.store=new YC(this.options.resources,this.options);var w=this.services;w.logger=dr,w.resourceStore=this.store,w.languageUtils=b,w.pluralResolver=new eE(b,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===d.interpolation.format)&&(w.formatter=h(m),w.formatter.init(w,this.options),this.options.interpolation.format=w.formatter.format.bind(w.formatter)),w.interpolator=new tE(this.options),w.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},w.backendConnector=new aE(h(this.modules.backend),w.resourceStore,w,this.options),w.backendConnector.on("*",function(k){for(var F=arguments.length,N=new Array(F>1?F-1:0),Y=1;Y<F;Y++)N[Y-1]=arguments[Y];o.emit.apply(o,[k].concat(N))}),this.modules.languageDetector&&(w.languageDetector=h(this.modules.languageDetector),w.languageDetector.init&&w.languageDetector.init(w,this.options.detection,this.options)),this.modules.i18nFormat&&(w.i18nFormat=h(this.modules.i18nFormat),w.i18nFormat.init&&w.i18nFormat.init(this)),this.translator=new xp(this.services,this.options),this.translator.on("*",function(k){for(var F=arguments.length,N=new Array(F>1?F-1:0),Y=1;Y<F;Y++)N[Y-1]=arguments[Y];o.emit.apply(o,[k].concat(N))}),this.modules.external.forEach(function(k){k.init&&k.init(o)})}if(this.format=this.options.interpolation.format,l||(l=ou),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var _=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);_.length>0&&_[0]!=="dev"&&(this.options.lng=_[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var E=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];E.forEach(function(k){o[k]=function(){var F;return(F=o.store)[k].apply(F,arguments)}});var I=["addResource","addResources","addResourceBundle","removeResourceBundle"];I.forEach(function(k){o[k]=function(){var F;return(F=o.store)[k].apply(F,arguments),o}});var A=ys(),B=function(){var F=function(Y,$){o.isInitialized&&!o.initializedStoreOnce&&o.logger.warn("init: i18next is already initialized. You should call init just once!"),o.isInitialized=!0,o.options.isClone||o.logger.log("initialized",o.options),o.emit("initialized",o.options),A.resolve($),l(Y,$)};if(o.languages&&o.options.compatibilityAPI!=="v1"&&!o.isInitialized)return F(null,o.t.bind(o));o.changeLanguage(o.options.lng,F)};return this.options.resources||!this.options.initImmediate?B():setTimeout(B,0),A}},{key:"loadResources",value:function(o){var a=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ou,d=l,h=typeof o=="string"?o:this.language;if(typeof o=="function"&&(d=o),!this.options.resources||this.options.partialBundledLanguages){if(h&&h.toLowerCase()==="cimode")return d();var m=[],b=function(E){if(E){var I=a.services.languageUtils.toResolveHierarchy(E);I.forEach(function(A){m.indexOf(A)<0&&m.push(A)})}};if(h)b(h);else{var w=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);w.forEach(function(_){return b(_)})}this.options.preload&&this.options.preload.forEach(function(_){return b(_)}),this.services.backendConnector.load(m,this.options.ns,function(_){!_&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),d(_)})}else d(null)}},{key:"reloadResources",value:function(o,a,l){var d=ys();return o||(o=this.languages),a||(a=this.options.ns),l||(l=ou),this.services.backendConnector.reload(o,a,function(h){d.resolve(),l(h)}),d}},{key:"use",value:function(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&iv.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}},{key:"setResolvedLanguage",value:function(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1))for(var a=0;a<this.languages.length;a++){var l=this.languages[a];if(!(["cimode","dev"].indexOf(l)>-1)&&this.store.hasLanguageSomeTranslations(l)){this.resolvedLanguage=l;break}}}},{key:"changeLanguage",value:function(o,a){var l=this;this.isLanguageChangingTo=o;var d=ys();this.emit("languageChanging",o);var h=function(_){l.language=_,l.languages=l.services.languageUtils.toResolveHierarchy(_),l.resolvedLanguage=void 0,l.setResolvedLanguage(_)},m=function(_,E){E?(h(E),l.translator.changeLanguage(E),l.isLanguageChangingTo=void 0,l.emit("languageChanged",E),l.logger.log("languageChanged",E)):l.isLanguageChangingTo=void 0,d.resolve(function(){return l.t.apply(l,arguments)}),a&&a(_,function(){return l.t.apply(l,arguments)})},b=function(_){!o&&!_&&l.services.languageDetector&&(_=[]);var E=typeof _=="string"?_:l.services.languageUtils.getBestMatchFromCodes(_);E&&(l.language||h(E),l.translator.language||l.translator.changeLanguage(E),l.services.languageDetector&&l.services.languageDetector.cacheUserLanguage&&l.services.languageDetector.cacheUserLanguage(E)),l.loadResources(E,function(I){m(I,E)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?b(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(b):this.services.languageDetector.detect(b):b(o),d}},{key:"getFixedT",value:function(o,a,l){var d=this,h=function m(b,w){var _;if(Tn(w)!=="object"){for(var E=arguments.length,I=new Array(E>2?E-2:0),A=2;A<E;A++)I[A-2]=arguments[A];_=d.options.overloadTranslationOptionHandler([b,w].concat(I))}else _=cr({},w);_.lng=_.lng||m.lng,_.lngs=_.lngs||m.lngs,_.ns=_.ns||m.ns,_.keyPrefix=_.keyPrefix||l||m.keyPrefix;var B=d.options.keySeparator||".",k;return _.keyPrefix&&Array.isArray(b)?k=b.map(function(F){return"".concat(_.keyPrefix).concat(B).concat(F)}):k=_.keyPrefix?"".concat(_.keyPrefix).concat(B).concat(b):b,d.t(k,_)};return typeof o=="string"?h.lng=o:h.lngs=o,h.ns=a,h.keyPrefix=l,h}},{key:"t",value:function(){var o;return this.translator&&(o=this.translator).translate.apply(o,arguments)}},{key:"exists",value:function(){var o;return this.translator&&(o=this.translator).exists.apply(o,arguments)}},{key:"setDefaultNamespace",value:function(o){this.options.defaultNS=o}},{key:"hasLoadedNamespace",value:function(o){var a=this,l=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 d=l.lng||this.resolvedLanguage||this.languages[0],h=this.options?this.options.fallbackLng:!1,m=this.languages[this.languages.length-1];if(d.toLowerCase()==="cimode")return!0;var b=function(E,I){var A=a.services.backendConnector.state["".concat(E,"|").concat(I)];return A===-1||A===2};if(l.precheck){var w=l.precheck(this,b);if(w!==void 0)return w}return!!(this.hasResourceBundle(d,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||b(d,o)&&(!h||b(m,o)))}},{key:"loadNamespaces",value:function(o,a){var l=this,d=ys();return this.options.ns?(typeof o=="string"&&(o=[o]),o.forEach(function(h){l.options.ns.indexOf(h)<0&&l.options.ns.push(h)}),this.loadResources(function(h){d.resolve(),a&&a(h)}),d):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(o,a){var l=ys();typeof o=="string"&&(o=[o]);var d=this.options.preload||[],h=o.filter(function(m){return d.indexOf(m)<0});return h.length?(this.options.preload=d.concat(h),this.loadResources(function(m){l.resolve(),a&&a(m)}),l):(a&&a(),Promise.resolve())}},{key:"dir",value:function(o){if(o||(o=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!o)return"rtl";var a=["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"],l=this.services&&this.services.languageUtils||new Sp(Ap());return a.indexOf(l.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var o=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ou,d=cr(cr(cr({},this.options),a),{isClone:!0}),h=new n(d);(a.debug!==void 0||a.prefix!==void 0)&&(h.logger=h.logger.clone(a));var m=["store","services","language"];return m.forEach(function(b){h[b]=o[b]}),h.services=cr({},this.services),h.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},h.translator=new xp(h.services,h.options),h.translator.on("*",function(b){for(var w=arguments.length,_=new Array(w>1?w-1:0),E=1;E<w;E++)_[E-1]=arguments[E];h.emit.apply(h,[b].concat(_))}),h.init(d,l),h.translator.options=h.options,h.translator.backendConnector.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},h}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(gi);gr(_u,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new _u(t,e)});var Lt=_u.createInstance();Lt.createInstance=_u.createInstance;Lt.createInstance;Lt.dir;Lt.init;Lt.loadResources;Lt.reloadResources;Lt.use;Lt.changeLanguage;Lt.getFixedT;var ov=Lt.t;Lt.exists;Lt.setDefaultNamespace;Lt.hasLoadedNamespace;Lt.loadNamespaces;Lt.loadLanguages;function fE({config:t,pushError:e=Rf}){const n=Um.create(t);n.interceptors.request.use(async o=>(o.headers={Accept:"application/json","Content-Type":"application/json"},o),o=>Promise.reject(o)),n.interceptors.response.use(o=>o,async o=>i(o));async function i(o){var h,m,b,w;console.error("Error 🚨:",o);const a=o.config,l=(m=(h=o.response)==null?void 0:h.data)==null?void 0:m.errorMessage,d=l===DC.TOKEN_EXPIRED;return((b=o.response)==null?void 0:b.status)===401?d&&!a._retry?(a._retry=!0,n.post("/authentication/api/v1/auth/refresh-token").then(()=>n(a)).catch(()=>fp(t.baseURL))):((!l||!d)&&fp(t.baseURL),Promise.reject("Unauthorized! Please login again.")):(((w=o.response)==null?void 0:w.status)===403||e(ov(`${l||"Something went wrong!"}`)),Promise.reject(o.response.data))}return n}function dE(t,e,n){return n.some(i=>{const o=t[i];return String(o).toLowerCase().includes(e.toLowerCase())})}var sv=[],hE=sv.forEach,pE=sv.slice;function gE(t){return hE.call(pE.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var Ip=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,mE=function(e,n,i){var o=i||{};o.path=o.path||"/";var a=encodeURIComponent(n),l="".concat(e,"=").concat(a);if(o.maxAge>0){var d=o.maxAge-0;if(Number.isNaN(d))throw new Error("maxAge should be a Number");l+="; Max-Age=".concat(Math.floor(d))}if(o.domain){if(!Ip.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain=".concat(o.domain)}if(o.path){if(!Ip.test(o.path))throw new TypeError("option path is invalid");l+="; Path=".concat(o.path)}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");l+="; Expires=".concat(o.expires.toUTCString())}if(o.httpOnly&&(l+="; HttpOnly"),o.secure&&(l+="; Secure"),o.sameSite){var h=typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite;switch(h){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l},Rp={create:function(e,n,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+i*60*1e3)),o&&(a.domain=o),document.cookie=mE(e,encodeURIComponent(n),a)},read:function(e){for(var n="".concat(e,"="),i=document.cookie.split(";"),o=0;o<i.length;o++){for(var a=i[o];a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(n)===0)return a.substring(n.length,a.length)}return null},remove:function(e){this.create(e,"",-1)}},vE={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document<"u"){var i=Rp.read(e.lookupCookie);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document<"u"&&Rp.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},yE={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 o=i.substring(1),a=o.split("&"),l=0;l<a.length;l++){var d=a[l].indexOf("=");if(d>0){var h=a[l].substring(0,d);h===e.lookupQuerystring&&(n=a[l].substring(d+1))}}}return n}},bs=null,Lp=function(){if(bs!==null)return bs;try{bs=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{bs=!1}return bs},bE={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&Lp()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&Lp()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},ws=null,Mp=function(){if(ws!==null)return ws;try{ws=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{ws=!1}return ws},wE={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&Mp()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&Mp()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},xE={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}},SE={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}},_E={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}},CE={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 EE(){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 av=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Pn(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return An(t,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=gE(i,this.options||{},EE()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(a){return a.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(vE),this.addDetector(yE),this.addDetector(bE),this.addDetector(wE),this.addDetector(xE),this.addDetector(SE),this.addDetector(_E),this.addDetector(CE)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var i=this;n||(n=this.options.order);var o=[];return n.forEach(function(a){if(i.detectors[a]){var l=i.detectors[a].lookup(i.options);l&&typeof l=="string"&&(l=[l]),l&&(o=o.concat(l))}}),o=o.map(function(a){return i.options.convertDetectedLanguage(a)}),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(n,i){var o=this;i||(i=this.options.caches),i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||i.forEach(function(a){o.detectors[a]&&o.detectors[a].cacheUserLanguage(n,o.options)}))}}]),t}();av.type="languageDetector";function Mf(t,e){if(t==null)return{};var n={},i=Object.keys(t),o,a;for(a=0;a<i.length;a++)o=i[a],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}const TE=Object.freeze(Object.defineProperty({__proto__:null,default:Mf},Symbol.toStringTag,{value:"Module"}));var Cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function OE(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 o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,o.get?o:{enumerable:!0,get:function(){return t[i]}})}),n}function PE(){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 Np={};function rf(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&Np[e[0]]||(typeof e[0]=="string"&&(Np[e[0]]=new Date),PE.apply(void 0,e))}var uv=function(e,n){return function(){if(e.isInitialized)n();else{var i=function o(){setTimeout(function(){e.off("initialized",o)},0),n()};e.on("initialized",i)}}};function jp(t,e,n){t.loadNamespaces(e,uv(t,n))}function Bp(t,e,n,i){typeof n=="string"&&(n=[n]),n.forEach(function(o){t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,uv(t,i))}function AE(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=e.languages[0],o=e.options?e.options.fallbackLng:!1,a=e.languages[e.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var l=function(h,m){var b=e.services.backendConnector.state["".concat(h,"|").concat(m)];return b===-1||b===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!l(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(i,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||l(i,t)&&(!o||l(a,t)))}function kE(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return rf("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(a,l){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!l(a.isLanguageChangingTo,t))return!1}}):AE(t,e,n)}var DE=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,IE={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},RE=function(e){return IE[e]},LE=function(e){return e.replace(DE,RE)};function Fp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Vp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var of={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:LE};function ME(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};of=Vp(Vp({},of),t)}function NE(){return of}var lv;function jE(t){lv=t}function BE(){return lv}var FE={type:"3rdParty",init:function(e){ME(e.options.react),jE(e)}},cv=te.createContext(),VE=function(){function t(){Pn(this,t),this.usedNamespaces={}}return An(t,[{key:"addUsedNamespaces",value:function(n){var i=this;n.forEach(function(o){i.usedNamespaces[o]||(i.usedNamespaces[o]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function WE(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,o,a,l,d=[],h=!0,m=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;h=!1}else for(;!(h=(i=a.call(n)).done)&&(d.push(i.value),d.length!==e);h=!0);}catch(b){m=!0,o=b}finally{try{if(!h&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return d}}function HE(t,e){return ev(t)||WE(t,e)||tv(t,e)||nv()}function Wp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function wc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var $E=function(e,n){var i=te.useRef();return te.useEffect(function(){i.current=n?i.current:e},[e,n]),i.current};function fv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,i=te.useContext(cv)||{},o=i.i18n,a=i.defaultNS,l=n||o||BE();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new VE),!l){rf("You will need to pass in an i18next instance by using initReactI18next");var d=function(Z,we){return typeof we=="string"?we:we&&Tn(we)==="object"&&typeof we.defaultValue=="string"?we.defaultValue:Array.isArray(Z)?Z[Z.length-1]:Z},h=[d,{},!1];return h.t=d,h.i18n={},h.ready=!1,h}l.options.react&&l.options.react.wait!==void 0&&rf("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var m=wc(wc(wc({},NE()),l.options.react),e),b=m.useSuspense,w=m.keyPrefix,_=t||a||l.options&&l.options.defaultNS;_=typeof _=="string"?[_]:_||["translation"],l.reportNamespaces.addUsedNamespaces&&l.reportNamespaces.addUsedNamespaces(_);var E=(l.isInitialized||l.initializedStoreOnce)&&_.every(function(ee){return kE(ee,l,m)});function I(){return l.getFixedT(e.lng||null,m.nsMode==="fallback"?_:_[0],w)}var A=te.useState(I),B=HE(A,2),k=B[0],F=B[1],N=_.join();e.lng&&(N="".concat(e.lng).concat(N));var Y=$E(N),$=te.useRef(!0);te.useEffect(function(){var ee=m.bindI18n,Z=m.bindI18nStore;$.current=!0,!E&&!b&&(e.lng?Bp(l,e.lng,_,function(){$.current&&F(I)}):jp(l,_,function(){$.current&&F(I)})),E&&Y&&Y!==N&&$.current&&F(I);function we(){$.current&&F(I)}return ee&&l&&l.on(ee,we),Z&&l&&l.store.on(Z,we),function(){$.current=!1,ee&&l&&ee.split(" ").forEach(function(He){return l.off(He,we)}),Z&&l&&Z.split(" ").forEach(function(He){return l.store.off(He,we)})}},[l,N]);var ie=te.useRef(!0);te.useEffect(function(){$.current&&!ie.current&&F(I),ie.current=!1},[l,w]);var g=[k,l,E];if(g.t=k,g.i18n=l,g.ready=E,E||!E&&!b)return g;throw new Promise(function(ee){e.lng?Bp(l,e.lng,_,function(){return ee()}):jp(l,_,function(){return ee()})})}function UE(t){var e=t.i18n,n=t.defaultNS,i=t.children,o=te.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return te.createElement(cv.Provider,{value:o},i)}var dv=[],zE=dv.forEach,qE=dv.slice;function YE(t){return zE.call(qE.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function GE(t){return t?typeof t=="function"?new t:t:null}function KE(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function Hp(t,e,n,i){var o=t.read.bind(t);if(o.length===2){try{var a=o(e,n);a&&typeof a.then=="function"?a.then(function(l){return i(null,l)}).catch(i):i(null,a)}catch(l){i(l)}return}o(e,n,i)}var hv=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]:{};Pn(this,t),this.backends=[],this.type="backend",this.allOptions=i,this.init(e,n)}return An(t,[{key:"init",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=YE(o,this.options||{},KE()),this.allOptions=a,this.options.backends&&this.options.backends.forEach(function(l,d){i.backends[d]=i.backends[d]||GE(l),i.backends[d].init(n,i.options.backendOptions&&i.options.backendOptions[d]||{},a)}),this.services&&this.options.reloadInterval&&setInterval(function(){return i.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,i,o){var a=this,l=this.backends.length,d=function m(b){if(b>=l)return o(new Error("non of the backend loaded data",!0));var w=b===l-1,_=a.options.handleEmptyResourcesAsFailed&&!w?0:-1,E=a.backends[b];E.read?Hp(E,n,i,function(I,A,B){if(!I&&A&&Object.keys(A).length>_){if(o(null,A,b),h(b-1,A),E.save&&a.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(a.options.cacheHitMode)>-1){if(B&&a.options.refreshExpirationTime&&B+a.options.refreshExpirationTime>Date.now())return;var k=a.backends[b+1];k&&k.read&&Hp(k,n,i,function(F,N){F||N&&(Object.keys(N).length<=_||(h(b,N),a.options.cacheHitMode==="refreshAndUpdateStore"&&a.services&&a.services.resourceStore&&a.services.resourceStore.addResourceBundle(n,i,N)))})}}else m(b+1)}):m(b+1)},h=function m(b,w){if(!(b<0)){var _=a.backends[b];_.save&&_.save(n,i,w),m(b-1,w)}};d(0)}},{key:"create",value:function(n,i,o,a){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(h){if(h.create){var m=h.create.bind(h);if(m.length<6){try{var b;m.length===5?b=m(n,i,o,a,d):b=m(n,i,o,a),b&&typeof b.then=="function"?b.then(function(w){return l(null,w)}).catch(l):l(null,b)}catch(w){l(w)}return}m(n,i,o,a,l,d)}})}},{key:"reload",value:function(){var n=this,i=this.services,o=i.backendConnector,a=i.languageUtils,l=i.logger,d=o.language;if(!(d&&d.toLowerCase()==="cimode")){var h=[],m=function(w){var _=a.toResolveHierarchy(w);_.forEach(function(E){h.indexOf(E)<0&&h.push(E)})};m(d),this.allOptions.preload&&this.allOptions.preload.forEach(function(b){return m(b)}),h.forEach(function(b){n.allOptions.ns.forEach(function(w){o.read(b,w,"read",null,null,function(_,E){_&&l.warn("loading namespace ".concat(w," for language ").concat(b," failed"),_),!_&&E&&l.log("loaded namespace ".concat(w," for language ").concat(b),E),o.loaded("".concat(b,"|").concat(w),_,E)})})})}}}]),t}();hv.type="backend";function sf(t){"@babel/helpers - typeof";return sf=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},sf(t)}function pv(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":sf(XMLHttpRequest))==="object"}function XE(t){return!!t&&typeof t.then=="function"}function JE(t){return XE(t)?t:Promise.resolve(t)}function ZE(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 af={exports:{}},su={exports:{}},$p;function QE(){return $p||($p=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Cn<"u"&&Cn,i=function(){function a(){this.fetch=!1,this.DOMException=n.DOMException}return a.prototype=n,new a}();(function(a){(function(l){var d=typeof a<"u"&&a||typeof self<"u"&&self||typeof d<"u"&&d,h={searchParams:"URLSearchParams"in d,iterable:"Symbol"in d&&"iterator"in Symbol,blob:"FileReader"in d&&"Blob"in d&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in d,arrayBuffer:"ArrayBuffer"in d};function m(G){return G&&DataView.prototype.isPrototypeOf(G)}if(h.arrayBuffer)var b=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],w=ArrayBuffer.isView||function(G){return G&&b.indexOf(Object.prototype.toString.call(G))>-1};function _(G){if(typeof G!="string"&&(G=String(G)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(G)||G==="")throw new TypeError('Invalid character in header field name: "'+G+'"');return G.toLowerCase()}function E(G){return typeof G!="string"&&(G=String(G)),G}function I(G){var re={next:function(){var de=G.shift();return{done:de===void 0,value:de}}};return h.iterable&&(re[Symbol.iterator]=function(){return re}),re}function A(G){this.map={},G instanceof A?G.forEach(function(re,de){this.append(de,re)},this):Array.isArray(G)?G.forEach(function(re){this.append(re[0],re[1])},this):G&&Object.getOwnPropertyNames(G).forEach(function(re){this.append(re,G[re])},this)}A.prototype.append=function(G,re){G=_(G),re=E(re);var de=this.map[G];this.map[G]=de?de+", "+re:re},A.prototype.delete=function(G){delete this.map[_(G)]},A.prototype.get=function(G){return G=_(G),this.has(G)?this.map[G]:null},A.prototype.has=function(G){return this.map.hasOwnProperty(_(G))},A.prototype.set=function(G,re){this.map[_(G)]=E(re)},A.prototype.forEach=function(G,re){for(var de in this.map)this.map.hasOwnProperty(de)&&G.call(re,this.map[de],de,this)},A.prototype.keys=function(){var G=[];return this.forEach(function(re,de){G.push(de)}),I(G)},A.prototype.values=function(){var G=[];return this.forEach(function(re){G.push(re)}),I(G)},A.prototype.entries=function(){var G=[];return this.forEach(function(re,de){G.push([de,re])}),I(G)},h.iterable&&(A.prototype[Symbol.iterator]=A.prototype.entries);function B(G){if(G.bodyUsed)return Promise.reject(new TypeError("Already read"));G.bodyUsed=!0}function k(G){return new Promise(function(re,de){G.onload=function(){re(G.result)},G.onerror=function(){de(G.error)}})}function F(G){var re=new FileReader,de=k(re);return re.readAsArrayBuffer(G),de}function N(G){var re=new FileReader,de=k(re);return re.readAsText(G),de}function Y(G){for(var re=new Uint8Array(G),de=new Array(re.length),pe=0;pe<re.length;pe++)de[pe]=String.fromCharCode(re[pe]);return de.join("")}function $(G){if(G.slice)return G.slice(0);var re=new Uint8Array(G.byteLength);return re.set(new Uint8Array(G)),re.buffer}function ie(){return this.bodyUsed=!1,this._initBody=function(G){this.bodyUsed=this.bodyUsed,this._bodyInit=G,G?typeof G=="string"?this._bodyText=G:h.blob&&Blob.prototype.isPrototypeOf(G)?this._bodyBlob=G:h.formData&&FormData.prototype.isPrototypeOf(G)?this._bodyFormData=G:h.searchParams&&URLSearchParams.prototype.isPrototypeOf(G)?this._bodyText=G.toString():h.arrayBuffer&&h.blob&&m(G)?(this._bodyArrayBuffer=$(G.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):h.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(G)||w(G))?this._bodyArrayBuffer=$(G):this._bodyText=G=Object.prototype.toString.call(G):this._bodyText="",this.headers.get("content-type")||(typeof G=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):h.searchParams&&URLSearchParams.prototype.isPrototypeOf(G)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},h.blob&&(this.blob=function(){var G=B(this);if(G)return G;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 G=B(this);return G||(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(F)}),this.text=function(){var G=B(this);if(G)return G;if(this._bodyBlob)return N(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Y(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},h.formData&&(this.formData=function(){return this.text().then(we)}),this.json=function(){return this.text().then(JSON.parse)},this}var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ee(G){var re=G.toUpperCase();return g.indexOf(re)>-1?re:G}function Z(G,re){if(!(this instanceof Z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');re=re||{};var de=re.body;if(G instanceof Z){if(G.bodyUsed)throw new TypeError("Already read");this.url=G.url,this.credentials=G.credentials,re.headers||(this.headers=new A(G.headers)),this.method=G.method,this.mode=G.mode,this.signal=G.signal,!de&&G._bodyInit!=null&&(de=G._bodyInit,G.bodyUsed=!0)}else this.url=String(G);if(this.credentials=re.credentials||this.credentials||"same-origin",(re.headers||!this.headers)&&(this.headers=new A(re.headers)),this.method=ee(re.method||this.method||"GET"),this.mode=re.mode||this.mode||null,this.signal=re.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&de)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(de),(this.method==="GET"||this.method==="HEAD")&&(re.cache==="no-store"||re.cache==="no-cache")){var pe=/([?&])_=[^&]*/;if(pe.test(this.url))this.url=this.url.replace(pe,"$1_="+new Date().getTime());else{var Ae=/\?/;this.url+=(Ae.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Z.prototype.clone=function(){return new Z(this,{body:this._bodyInit})};function we(G){var re=new FormData;return G.trim().split("&").forEach(function(de){if(de){var pe=de.split("="),Ae=pe.shift().replace(/\+/g," "),Q=pe.join("=").replace(/\+/g," ");re.append(decodeURIComponent(Ae),decodeURIComponent(Q))}}),re}function He(G){var re=new A,de=G.replace(/\r?\n[\t ]+/g," ");return de.split("\r").map(function(pe){return pe.indexOf(`
|
|
4
|
-
`)===0?pe.substr(1,pe.length):pe}).forEach(function(pe){var Ae=pe.split(":"),Q=Ae.shift().trim();if(Q){var ae=Ae.join(":").trim();re.append(Q,ae)}}),re}ie.call(Z.prototype);function De(G,re){if(!(this instanceof De))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');re||(re={}),this.type="default",this.status=re.status===void 0?200:re.status,this.ok=this.status>=200&&this.status<300,this.statusText=re.statusText===void 0?"":""+re.statusText,this.headers=new A(re.headers),this.url=re.url||"",this._initBody(G)}ie.call(De.prototype),De.prototype.clone=function(){return new De(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new A(this.headers),url:this.url})},De.error=function(){var G=new De(null,{status:0,statusText:""});return G.type="error",G};var Te=[301,302,303,307,308];De.redirect=function(G,re){if(Te.indexOf(re)===-1)throw new RangeError("Invalid status code");return new De(null,{status:re,headers:{location:G}})},l.DOMException=d.DOMException;try{new l.DOMException}catch{l.DOMException=function(re,de){this.message=re,this.name=de;var pe=Error(re);this.stack=pe.stack},l.DOMException.prototype=Object.create(Error.prototype),l.DOMException.prototype.constructor=l.DOMException}function Le(G,re){return new Promise(function(de,pe){var Ae=new Z(G,re);if(Ae.signal&&Ae.signal.aborted)return pe(new l.DOMException("Aborted","AbortError"));var Q=new XMLHttpRequest;function ae(){Q.abort()}Q.onload=function(){var me={status:Q.status,statusText:Q.statusText,headers:He(Q.getAllResponseHeaders()||"")};me.url="responseURL"in Q?Q.responseURL:me.headers.get("X-Request-URL");var ye="response"in Q?Q.response:Q.responseText;setTimeout(function(){de(new De(ye,me))},0)},Q.onerror=function(){setTimeout(function(){pe(new TypeError("Network request failed"))},0)},Q.ontimeout=function(){setTimeout(function(){pe(new TypeError("Network request failed"))},0)},Q.onabort=function(){setTimeout(function(){pe(new l.DOMException("Aborted","AbortError"))},0)};function ve(me){try{return me===""&&d.location.href?d.location.href:me}catch{return me}}Q.open(Ae.method,ve(Ae.url),!0),Ae.credentials==="include"?Q.withCredentials=!0:Ae.credentials==="omit"&&(Q.withCredentials=!1),"responseType"in Q&&(h.blob?Q.responseType="blob":h.arrayBuffer&&Ae.headers.get("Content-Type")&&Ae.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Q.responseType="arraybuffer")),re&&typeof re.headers=="object"&&!(re.headers instanceof A)?Object.getOwnPropertyNames(re.headers).forEach(function(me){Q.setRequestHeader(me,E(re.headers[me]))}):Ae.headers.forEach(function(me,ye){Q.setRequestHeader(ye,me)}),Ae.signal&&(Ae.signal.addEventListener("abort",ae),Q.onreadystatechange=function(){Q.readyState===4&&Ae.signal.removeEventListener("abort",ae)}),Q.send(typeof Ae._bodyInit>"u"?null:Ae._bodyInit)})}return Le.polyfill=!0,d.fetch||(d.fetch=Le,d.Headers=A,d.Request=Z,d.Response=De),l.Headers=A,l.Request=Z,l.Response=De,l.fetch=Le,l})({})})(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;e=o.fetch,e.default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}(su,su.exports)),su.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof Cn<"u"&&Cn.fetch?n=Cn.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof ZE<"u"&&(typeof window>"u"||typeof window.document>"u")){var i=n||QE();i.default&&(i=i.default),e.default=i,t.exports=e.default}})(af,af.exports);var gv=af.exports;const mv=Vs(gv),Up=uC({__proto__:null,default:mv},[gv]);function zp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function qp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zp(Object(n),!0).forEach(function(i){eT(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function eT(t,e,n){return e=tT(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tT(t){var e=nT(t,"string");return zi(e)=="symbol"?e:String(e)}function nT(t,e){if(zi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(zi(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zi(t){"@babel/helpers - typeof";return zi=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},zi(t)}var Nr;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Nr=global.fetch:typeof window<"u"&&window.fetch?Nr=window.fetch:Nr=fetch);var Is;pv()&&(typeof global<"u"&&global.XMLHttpRequest?Is=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Is=window.XMLHttpRequest));var Cu;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Cu=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Cu=window.ActiveXObject));!Nr&&Up&&!Is&&!Cu&&(Nr=mv||Up);typeof Nr!="function"&&(Nr=void 0);var uf=function(e,n){if(n&&zi(n)==="object"){var i="";for(var o in n)i+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);if(!i)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+i.slice(1)}return e},Yp=function(e,n,i,o){var a=function(h){if(!h.ok)return i(h.statusText||"Error",{status:h.status});h.text().then(function(m){i(null,{status:h.status,data:m})}).catch(i)};if(o){var l=o(e,n);if(l instanceof Promise){l.then(a).catch(i);return}}typeof fetch=="function"?fetch(e,n).then(a).catch(i):Nr(e,n).then(a).catch(i)},Gp=!1,rT=function(e,n,i,o){e.queryStringParams&&(n=uf(n,e.queryStringParams));var a=qp({},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&&(a["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),i&&(a["Content-Type"]="application/json");var l=typeof e.requestOptions=="function"?e.requestOptions(i):e.requestOptions,d=qp({method:i?"POST":"GET",body:i?e.stringify(i):void 0,headers:a},Gp?{}:l),h=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{Yp(n,d,o,h)}catch(m){if(!l||Object.keys(l).length===0||!m.message||m.message.indexOf("not implemented")<0)return o(m);try{Object.keys(l).forEach(function(b){delete d[b]}),Yp(n,d,o,h),Gp=!0}catch(b){o(b)}}},iT=function(e,n,i,o){i&&zi(i)==="object"&&(i=uf("",i).slice(1)),e.queryStringParams&&(n=uf(n,e.queryStringParams));try{var a;Is?a=new Is:a=new Cu("MSXML2.XMLHTTP.3.0"),a.open(i?"POST":"GET",n,1),e.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!e.withCredentials,i&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var l=e.customHeaders;if(l=typeof l=="function"?l():l,l)for(var d in l)a.setRequestHeader(d,l[d]);a.onreadystatechange=function(){a.readyState>3&&o(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(i)}catch(h){console&&console.log(h)}},oT=function(e,n,i,o){if(typeof i=="function"&&(o=i,i=void 0),o=o||function(){},Nr&&n.indexOf("file:")!==0)return rT(e,n,i,o);if(pv()||typeof ActiveXObject=="function")return iT(e,n,i,o);o(new Error("No fetch and no xhr implementation found!"))};function Rs(t){"@babel/helpers - typeof";return Rs=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},Rs(t)}function Kp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function xc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kp(Object(n),!0).forEach(function(i){vv(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function sT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xp(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,yv(i.key),i)}}function aT(t,e,n){return e&&Xp(t.prototype,e),n&&Xp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vv(t,e,n){return e=yv(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yv(t){var e=uT(t,"string");return Rs(e)=="symbol"?e:String(e)}function uT(t,e){if(Rs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Rs(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var lT=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,o){return vv({},i,o||"")},parseLoadPayload:function(n,i){},request:oT,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},bv=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]:{};sT(this,t),this.services=e,this.options=n,this.allOptions=i,this.type="backend",this.init(e,n,i)}return aT(t,[{key:"init",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=xc(xc(xc({},lT()),this.options||{}),o),this.allOptions=a,this.services&&this.options.reloadInterval&&setInterval(function(){return i.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,i,o){this._readAny(n,n,i,i,o)}},{key:"read",value:function(n,i,o){this._readAny([n],n,[i],i,o)}},{key:"_readAny",value:function(n,i,o,a,l){var d=this,h=this.options.loadPath;typeof this.options.loadPath=="function"&&(h=this.options.loadPath(n,o)),h=JE(h),h.then(function(m){if(!m)return l(null,{});var b=d.services.interpolator.interpolate(m,{lng:n.join("+"),ns:o.join("+")});d.loadUrl(b,l,i,a)})}},{key:"loadUrl",value:function(n,i,o,a){var l=this,d=typeof o=="string"?[o]:o,h=typeof a=="string"?[a]:a,m=this.options.parseLoadPayload(d,h);this.options.request(this.options,n,m,function(b,w){if(w&&(w.status>=500&&w.status<600||!w.status))return i("failed loading "+n+"; status code: "+w.status,!0);if(w&&w.status>=400&&w.status<500)return i("failed loading "+n+"; status code: "+w.status,!1);if(!w&&b&&b.message&&b.message.indexOf("Failed to fetch")>-1)return i("failed loading "+n+": "+b.message,!0);if(b)return i(b,!1);var _,E;try{typeof w.data=="string"?_=l.options.parse(w.data,o,a):_=w.data}catch{E="failed parsing "+n+" to json"}if(E)return i(E,!1);i(null,_)})}},{key:"create",value:function(n,i,o,a,l){var d=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var h=this.options.parsePayload(i,o,a),m=0,b=[],w=[];n.forEach(function(_){var E=d.options.addPath;typeof d.options.addPath=="function"&&(E=d.options.addPath(_,i));var I=d.services.interpolator.interpolate(E,{lng:_,ns:i});d.options.request(d.options,I,h,function(A,B){m+=1,b.push(A),w.push(B),m===n.length&&typeof l=="function"&&l(b,w)})})}}},{key:"reload",value:function(){var n=this,i=this.services,o=i.backendConnector,a=i.languageUtils,l=i.logger,d=o.language;if(!(d&&d.toLowerCase()==="cimode")){var h=[],m=function(w){var _=a.toResolveHierarchy(w);_.forEach(function(E){h.indexOf(E)<0&&h.push(E)})};m(d),this.allOptions.preload&&this.allOptions.preload.forEach(function(b){return m(b)}),h.forEach(function(b){n.allOptions.ns.forEach(function(w){o.read(b,w,"read",null,null,function(_,E){_&&l.warn("loading namespace ".concat(w," for language ").concat(b," failed"),_),!_&&E&&l.log("loaded namespace ".concat(w," for language ").concat(b),E),o.loaded("".concat(b,"|").concat(w),_,E)})})})}}}]),t}();bv.type="backend";var Nf=(t=>(t.en="en",t.de="de",t))(Nf||{});const cT={en:"English",de:"German"};Lt.use(hv).use(FE).use(av).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(cT),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[bv],backendOptions:[{loadPath:"https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",crossDomain:!0,cacheHitMode:"refresh"}]}});function fT(){const[t,e]=te.useState();return te.useEffect(()=>{const n=localStorage.getItem("language");e(n||Nf.en)},[]),{language:t,setLanguage:e}}const wv=te.createContext({}),dT=()=>te.useContext(wv),hT=Lt,pT=ov,gT=()=>fv(),mT=({children:t})=>{const e=fT();return be.jsx(wv.Provider,{value:e,children:be.jsx(UE,{i18n:Lt,children:t})})};var xv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Jp=te.createContext&&te.createContext(xv),vT=["attr","size","title"];function yT(t,e){if(t==null)return{};var n=bT(t,e),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)i=a[o],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function bT(t,e){if(t==null)return{};var n={},i=Object.keys(t),o,a;for(a=0;a<i.length;a++)o=i[a],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Eu(){return Eu=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},Eu.apply(this,arguments)}function Zp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Tu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zp(Object(n),!0).forEach(function(i){wT(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function wT(t,e,n){return e=xT(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xT(t){var e=ST(t,"string");return typeof e=="symbol"?e:String(e)}function ST(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 Sv(t){return t&&t.map((e,n)=>te.createElement(e.tag,Tu({key:n},e.attr),Sv(e.child)))}function _v(t){return e=>te.createElement(_T,Eu({attr:Tu({},t.attr)},e),Sv(t.child))}function _T(t){var e=n=>{var{attr:i,size:o,title:a}=t,l=yT(t,vT),d=o||n.size||"1em",h;return n.className&&(h=n.className),t.className&&(h=(h?h+" ":"")+t.className),te.createElement("svg",Eu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,l,{className:h,style:Tu(Tu({color:t.color||n.color},n.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),a&&te.createElement("title",null,a),t.children)};return Jp!==void 0?te.createElement(Jp.Consumer,null,n=>e(n)):e(xv)}function CT(t){return _v({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 ET(t){return _v({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 Cv=t=>{const e={...t.colors};return ko.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:"contained",color:"error"},style:{color:e.white}},{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:CT,next:ET}},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:{fontSize:"10px",backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function TT(t,e){const n={...t};return e==null||e.forEach(i=>{i.children&&i.children.forEach(o=>{n[o.key]=o.color.trim()})}),n}function OT(t){var l,d;const{data:e,isFetching:n}=oC.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(h=>h.json()):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0}),i=TT(fn,(l=e==null?void 0:e.theme)==null?void 0:l.keyColor);console.log("🚀 ~ useThemeContext ~ isFetching:",n);const o=Cv({colors:i}),a=(d=e==null?void 0:e.theme)==null?void 0:d.image;return{colors:i,theme:o,logo:a,isFetching:n}}const Ev=te.createContext({}),PT=()=>te.useContext(Ev),AT=t=>{var a;const{children:e,brandTheme:n}=t,i=OT(n),o=((a=t.customTheme)==null?void 0:a.call(t,i.colors))||i.theme;return be.jsx(Ev.Provider,{value:i,children:be.jsx(ko.ThemeProvider,{theme:o,children:e})})},Tv=te.createContext({}),kT=({children:t})=>{const[e,n]=te.useState(!0),[i,o]=te.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),a=()=>{n(!e)},l=()=>{n(!0)};return be.jsx(Tv.Provider,{value:{isOpen:e,toggleOpen:a,setShowModalFalse:l,notidata:i,setNotiData:o},children:t})},DT=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
|
|
5
|
-
`;function Ov({children:t,styles:e=[],...n}){return be.jsxs("div",{...n,children:[[DT,...e].map((i,o)=>be.jsx("style",{type:"text/css",children:i},o)),t]})}var IT=typeof global=="object"&&global&&global.Object===Object&&global;const RT=IT;var LT=typeof self=="object"&&self&&self.Object===Object&&self,MT=RT||LT||Function("return this")();const Pv=MT;var NT=Pv.Symbol;const Ou=NT;var Av=Object.prototype,jT=Av.hasOwnProperty,BT=Av.toString,xs=Ou?Ou.toStringTag:void 0;function FT(t){var e=jT.call(t,xs),n=t[xs];try{t[xs]=void 0;var i=!0}catch{}var o=BT.call(t);return i&&(e?t[xs]=n:delete t[xs]),o}var VT=Object.prototype,WT=VT.toString;function HT(t){return WT.call(t)}var $T="[object Null]",UT="[object Undefined]",Qp=Ou?Ou.toStringTag:void 0;function zT(t){return t==null?t===void 0?UT:$T:Qp&&Qp in Object(t)?FT(t):HT(t)}function qT(t){return t!=null&&typeof t=="object"}var YT="[object Symbol]";function GT(t){return typeof t=="symbol"||qT(t)&&zT(t)==YT}var KT=/\s/;function XT(t){for(var e=t.length;e--&&KT.test(t.charAt(e)););return e}var JT=/^\s+/;function ZT(t){return t&&t.slice(0,XT(t)+1).replace(JT,"")}function Pu(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var eg=0/0,QT=/^[-+]0x[0-9a-f]+$/i,eO=/^0b[01]+$/i,tO=/^0o[0-7]+$/i,nO=parseInt;function tg(t){if(typeof t=="number")return t;if(GT(t))return eg;if(Pu(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Pu(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=ZT(t);var n=eO.test(t);return n||tO.test(t)?nO(t.slice(2),n?2:8):QT.test(t)?eg:+t}var rO=function(){return Pv.Date.now()};const Sc=rO;var iO="Expected a function",oO=Math.max,sO=Math.min;function mu(t,e,n){var i,o,a,l,d,h,m=0,b=!1,w=!1,_=!0;if(typeof t!="function")throw new TypeError(iO);e=tg(e)||0,Pu(n)&&(b=!!n.leading,w="maxWait"in n,a=w?oO(tg(n.maxWait)||0,e):a,_="trailing"in n?!!n.trailing:_);function E(ie){var g=i,ee=o;return i=o=void 0,m=ie,l=t.apply(ee,g),l}function I(ie){return m=ie,d=setTimeout(k,e),b?E(ie):l}function A(ie){var g=ie-h,ee=ie-m,Z=e-g;return w?sO(Z,a-ee):Z}function B(ie){var g=ie-h,ee=ie-m;return h===void 0||g>=e||g<0||w&&ee>=a}function k(){var ie=Sc();if(B(ie))return F(ie);d=setTimeout(k,A(ie))}function F(ie){return d=void 0,_&&i?E(ie):(i=o=void 0,l)}function N(){d!==void 0&&clearTimeout(d),m=0,i=h=o=d=void 0}function Y(){return d===void 0?l:F(Sc())}function $(){var ie=Sc(),g=B(ie);if(i=arguments,o=this,h=ie,g){if(d===void 0)return I(h);if(w)return clearTimeout(d),d=setTimeout(k,e),E(h)}return d===void 0&&(d=setTimeout(k,e)),l}return $.cancel=N,$.flush=Y,$}var aO="Expected a function";function uO(t,e,n){var i=!0,o=!0;if(typeof t!="function")throw new TypeError(aO);return Pu(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),mu(t,e,{leading:i,maxWait:e,trailing:o})}var lO=!!(typeof window<"u"&&window.document&&window.document.createElement),cO=lO;const kv=Vs(cO);var Eo=function(){return Eo=Object.assign||function(e){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Eo.apply(this,arguments)},_o=null,ng=null;kv&&window.addEventListener("resize",function(){ng!==window.devicePixelRatio&&(ng=window.devicePixelRatio,_o=null)});function rg(){if(_o===null){if(typeof document>"u")return _o=0,_o;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),_o=n}return _o}function Dv(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function Iv(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Rv=function(t){var e={},n=Array.prototype.reduce.call(t,function(i,o){var a=o.name.match(/data-simplebar-(.+)/);if(a){var l=a[1].replace(/\W+(.)/g,function(d,h){return h.toUpperCase()});switch(o.value){case"true":i[l]=!0;break;case"false":i[l]=!1;break;case void 0:i[l]=!0;break;default:i[l]=o.value}}return i},e);return n};function Lv(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function Mv(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function Nv(t){return".".concat(t.split(" ").join("."))}var fO=Object.freeze({__proto__:null,getElementWindow:Dv,getElementDocument:Iv,getOptions:Rv,addClasses:Lv,removeClasses:Mv,classNamesToQuery:Nv}),oi=Dv,_c=Iv,dO=Rv,si=Lv,ai=Mv,cn=Nv,au=function(){function t(e,n){n===void 0&&(n={});var i=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var o=oi(i.el);i.scrollXTicking||(o.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(o.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0),i.isScrolling||(i.isScrolling=!0,si(i.el,i.classNames.scrolling)),i.showScrollbar("x"),i.showScrollbar("y"),i.onStopScrolling()},this.scrollX=function(){i.axis.x.isOverflowing&&i.positionScrollbar("x"),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&i.positionScrollbar("y"),i.scrollYTicking=!1},this._onStopScrolling=function(){ai(i.el,i.classNames.scrolling),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isScrolling=!1},this.onMouseEnter=function(){i.isMouseEntering||(si(i.el,i.classNames.mouseEntered),i.showScrollbar("x"),i.showScrollbar("y"),i.isMouseEntering=!0),i.onMouseEntered()},this._onMouseEntered=function(){ai(i.el,i.classNames.mouseEntered),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isMouseEntering=!1},this._onMouseMove=function(o){i.mouseX=o.clientX,i.mouseY=o.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this._onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.onPointerEvent=function(o){if(!(!i.axis.x.track.el||!i.axis.y.track.el||!i.axis.x.scrollbar.el||!i.axis.y.scrollbar.el)){var a,l;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(a=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(l=i.isWithinBounds(i.axis.y.track.rect)),(a||l)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(a&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(o,"x"):i.onTrackClick(o,"x")),l&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(o,"y"):i.onTrackClick(o,"y"))))}},this.drag=function(o){var a,l,d,h,m,b,w,_,E,I,A;if(!(!i.draggedAxis||!i.contentWrapperEl)){var B,k=i.axis[i.draggedAxis].track,F=(l=(a=k.rect)===null||a===void 0?void 0:a[i.axis[i.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,N=i.axis[i.draggedAxis].scrollbar,Y=(h=(d=i.contentWrapperEl)===null||d===void 0?void 0:d[i.axis[i.draggedAxis].scrollSizeAttr])!==null&&h!==void 0?h:0,$=parseInt((b=(m=i.elStyles)===null||m===void 0?void 0:m[i.axis[i.draggedAxis].sizeAttr])!==null&&b!==void 0?b:"0px",10);o.preventDefault(),o.stopPropagation(),i.draggedAxis==="y"?B=o.pageY:B=o.pageX;var ie=B-((_=(w=k.rect)===null||w===void 0?void 0:w[i.axis[i.draggedAxis].offsetAttr])!==null&&_!==void 0?_:0)-i.axis[i.draggedAxis].dragOffset;ie=i.draggedAxis==="x"&&i.isRtl?((I=(E=k.rect)===null||E===void 0?void 0:E[i.axis[i.draggedAxis].sizeAttr])!==null&&I!==void 0?I:0)-N.size-ie:ie;var g=ie/(F-N.size),ee=g*(Y-$);i.draggedAxis==="x"&&i.isRtl&&(ee=!((A=t.getRtlHelpers())===null||A===void 0)&&A.isScrollingToNegative?-ee:ee),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=ee}},this.onEndDrag=function(o){var a=_c(i.el),l=oi(i.el);o.preventDefault(),o.stopPropagation(),ai(i.el,i.classNames.dragging),a.removeEventListener("mousemove",i.drag,!0),a.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=l.setTimeout(function(){a.removeEventListener("click",i.preventClick,!0),a.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=e,this.options=Eo(Eo({},t.defaultOptions),n),this.classNames=Eo(Eo({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=uO(this._onMouseMove,64),this.onWindowResize=mu(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=mu(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=mu(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,i=n==null?void 0:n.firstElementChild;if(!i)return null;document.body.appendChild(n),n.scrollLeft=0;var o=t.getOffset(n),a=t.getOffset(i);n.scrollLeft=-999;var l=t.getOffset(i);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:o.left!==a.left,isScrollingToNegative:a.left!==l.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:rg()}catch{return rg()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),i=_c(e),o=oi(e);return{top:n.top+(o.pageYOffset||i.documentElement.scrollTop),left:n.left+(o.pageXOffset||i.documentElement.scrollLeft)}},t.prototype.init=function(){kv&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(cn(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(cn(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(cn(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(cn(this.classNames.offset)),this.maskEl=this.el.querySelector(cn(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,cn(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(cn(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(cn(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(cn(this.classNames.track)).concat(cn(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(cn(this.classNames.track)).concat(cn(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(cn(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(cn(this.classNames.scrollbar)))||null,this.options.autoHide||(si(this.axis.x.scrollbar.el,this.classNames.visible),si(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,i=oi(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),i.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var o=!1,a=i.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){o&&i.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),i.requestAnimationFrame(function(){o=!0})}this.mutationObserver=new i.MutationObserver(function(){i.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=oi(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||n>0,a=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,d=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var h=this.contentEl.scrollHeight,m=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=o?"".concat(n||m,"px"):"auto",this.placeholderEl.style.height="".concat(h,"px");var b=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&m>n,this.axis.y.isOverflowing=h>b,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=d==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var w=this.axis.x.isOverflowing?this.scrollbarWidth:0,_=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&m>a-_,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&h>b-w,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,i;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var o=this.contentEl[this.axis[e].scrollSizeAttr],a=(i=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&i!==void 0?i:0,l=a/o,d;return d=Math.max(~~(l*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(d=Math.min(d,this.options.scrollbarMaxSize)),d},t.prototype.positionScrollbar=function(e){var n,i,o;e===void 0&&(e="y");var a=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[e].scrollSizeAttr],d=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,h=parseInt(this.elStyles[this.axis[e].sizeAttr],10),m=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];m=e==="x"&&this.isRtl&&(!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollOriginAtZero)?-m:m,e==="x"&&this.isRtl&&(m=!((o=t.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?m:-m);var b=m/(l-h),w=~~((d-a.size)*b);w=e==="x"&&this.isRtl?-w+(d-a.size):w,a.el.style.transform=e==="x"?"translate3d(".concat(w,"px, 0, 0)"):"translate3d(0, ".concat(w,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,i=this.axis[e].scrollbar.el;!n||!i||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?i.style.display="block":i.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(si(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(ai(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),si(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?si(n.scrollbar.el,this.classNames.hover):ai(n.scrollbar.el,this.classNames.hover)):(ai(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),ai(this.axis[e].track.el,this.classNames.hover),ai(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var i;n===void 0&&(n="y");var o=_c(this.el),a=oi(this.el),l=this.axis[n].scrollbar,d=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=d-(((i=l.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])||0),this.draggedAxis=n,si(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var i=this,o,a,l,d;n===void 0&&(n="y");var h=this.axis[n];if(!(!this.options.clickOnTrack||!h.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var m=oi(this.el);this.axis[n].scrollbar.rect=h.scrollbar.el.getBoundingClientRect();var b=this.axis[n].scrollbar,w=(a=(o=b.rect)===null||o===void 0?void 0:o[this.axis[n].offsetAttr])!==null&&a!==void 0?a:0,_=parseInt((d=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[n].sizeAttr])!==null&&d!==void 0?d:"0px",10),E=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],I=n==="y"?this.mouseY-w:this.mouseX-w,A=I<0?-1:1,B=A===-1?E-_:E+_,k=40,F=function(){i.contentWrapperEl&&(A===-1?E>B&&(E-=k,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=E,m.requestAnimationFrame(F)):E<B&&(E+=k,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=E,m.requestAnimationFrame(F)))};F()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=oi(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(o){return i.call(o,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=dO,t.helpers=fO,t}(),_n=function(){return _n=Object.assign||function(e){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_n.apply(this,arguments)};function hO(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]]);return n}var jv=pt.forwardRef(function(t,e){var n=t.children,i=t.scrollableNodeProps,o=i===void 0?{}:i,a=hO(t,["children","scrollableNodeProps"]),l=pt.useRef(),d=pt.useRef(),h=pt.useRef(),m={},b={};Object.keys(a).forEach(function(E){Object.prototype.hasOwnProperty.call(au.defaultOptions,E)?m[E]=a[E]:b[E]=a[E]});var w=_n(_n({},au.defaultOptions.classNames),m.classNames),_=_n(_n({},o),{className:"".concat(w.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:0,role:"region","aria-label":m.ariaLabel||au.defaultOptions.ariaLabel});return pt.useEffect(function(){var E;return d.current=_.ref?_.ref.current:d.current,l.current&&(E=new au(l.current,_n(_n(_n({},m),d.current&&{scrollableNode:d.current}),h.current&&{contentNode:h.current})),typeof e=="function"?e(E):e&&(e.current=E)),function(){E==null||E.unMount(),E=null,typeof e=="function"&&e(null)}},[]),pt.createElement("div",_n({"data-simplebar":"init",ref:l},b),pt.createElement("div",{className:w.wrapper},pt.createElement("div",{className:w.heightAutoObserverWrapperEl},pt.createElement("div",{className:w.heightAutoObserverEl})),pt.createElement("div",{className:w.mask},pt.createElement("div",{className:w.offset},typeof n=="function"?n({scrollableNodeRef:d,scrollableNodeProps:_n(_n({},_),{ref:d}),contentNodeRef:h,contentNodeProps:{className:w.contentEl,ref:h}}):pt.createElement("div",_n({},_),pt.createElement("div",{className:w.contentEl},n)))),pt.createElement("div",{className:w.placeholder})),pt.createElement("div",{className:"".concat(w.track," simplebar-horizontal")},pt.createElement("div",{className:w.scrollbar})),pt.createElement("div",{className:"".concat(w.track," simplebar-vertical")},pt.createElement("div",{className:w.scrollbar})))});jv.displayName="SimpleBar";const pO=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
6
|
-
`,Bv=te.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Uu=te.createContext({}),jf=te.createContext(null),zu=typeof document<"u",gO=zu?te.useLayoutEffect:te.useEffect,Fv=te.createContext({strict:!1}),Bf=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),mO="framerAppearId",Vv="data-"+Bf(mO);function vO(t,e,n,i){const{visualElement:o}=te.useContext(Uu),a=te.useContext(Fv),l=te.useContext(jf),d=te.useContext(Bv).reducedMotion,h=te.useRef();i=i||a.renderer,!h.current&&i&&(h.current=i(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d}));const m=h.current;te.useInsertionEffect(()=>{m&&m.update(n,l)});const b=te.useRef(!!(n[Vv]&&!window.HandoffComplete));return gO(()=>{m&&(m.render(),b.current&&m.animationState&&m.animationState.animateChanges())}),te.useEffect(()=>{m&&(m.updateFeatures(),!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(b.current=!1,window.HandoffComplete=!0))}),m}function To(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function yO(t,e,n){return te.useCallback(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):To(n)&&(n.current=i))},[e])}function Ls(t){return typeof t=="string"||Array.isArray(t)}function qu(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ff=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vf=["initial",...Ff];function Yu(t){return qu(t.animate)||Vf.some(e=>Ls(t[e]))}function Wv(t){return!!(Yu(t)||t.variants)}function bO(t,e){if(Yu(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Ls(n)?n:void 0,animate:Ls(i)?i:void 0}}return t.inherit!==!1?e:{}}function wO(t){const{initial:e,animate:n}=bO(t,te.useContext(Uu));return te.useMemo(()=>({initial:e,animate:n}),[ig(e),ig(n)])}function ig(t){return Array.isArray(t)?t.join(" "):t}const og={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ms={};for(const t in og)Ms[t]={isEnabled:e=>og[t].some(n=>!!e[n])};function xO(t){for(const e in t)Ms[e]={...Ms[e],...t[e]}}const Hv=te.createContext({}),$v=te.createContext({}),SO=Symbol.for("motionComponentSymbol");function _O({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:o}){t&&xO(t);function a(d,h){let m;const b={...te.useContext(Bv),...d,layoutId:CO(d)},{isStatic:w}=b,_=wO(d),E=i(d,w);if(!w&&zu){_.visualElement=vO(o,E,b,e);const I=te.useContext($v),A=te.useContext(Fv).strict;_.visualElement&&(m=_.visualElement.loadFeatures(b,A,t,I))}return pt.createElement(Uu.Provider,{value:_},m&&_.visualElement?pt.createElement(m,{visualElement:_.visualElement,...b}):null,n(o,d,yO(E,_.visualElement,h),E,w,_.visualElement))}const l=te.forwardRef(a);return l[SO]=o,l}function CO({layoutId:t}){const e=te.useContext(Hv).id;return e&&t!==void 0?e+"-"+t:t}function EO(t){function e(i,o={}){return _O(t(i,o))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(i,o)=>(n.has(o)||n.set(o,e(o)),n.get(o))})}const TO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Wf(t){return typeof t!="string"||t.includes("-")?!1:!!(TO.indexOf(t)>-1||/[A-Z]/.test(t))}const Au={};function OO(t){Object.assign(Au,t)}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ji=new Set(Ws);function Uv(t,{layout:e,layoutId:n}){return Ji.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Au[t]||t==="opacity")}const dn=t=>!!(t&&t.getVelocity),PO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},AO=Ws.length;function kO(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},i,o){let a="";for(let l=0;l<AO;l++){const d=Ws[l];if(t[d]!==void 0){const h=PO[d]||d;a+=`${h}(${t[d]}) `}}return e&&!t.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(t,i?"":a):n&&i&&(a="none"),a}const zv=t=>e=>typeof e=="string"&&e.startsWith(t),qv=zv("--"),lf=zv("var(--"),DO=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,IO=(t,e)=>e&&typeof t=="number"?e.transform(t):t,mi=(t,e,n)=>Math.min(Math.max(n,t),e),Zi={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ts={...Zi,transform:t=>mi(0,1,t)},uu={...Zi,default:1},Os=t=>Math.round(t*1e5)/1e5,Gu=/(-)?([\d]*\.?[\d])+/g,Yv=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,RO=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Hs(t){return typeof t=="string"}const $s=t=>({test:e=>Hs(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ui=$s("deg"),hr=$s("%"),We=$s("px"),LO=$s("vh"),MO=$s("vw"),sg={...hr,parse:t=>hr.parse(t)/100,transform:t=>hr.transform(t*100)},ag={...Zi,transform:Math.round},Gv={borderWidth:We,borderTopWidth:We,borderRightWidth:We,borderBottomWidth:We,borderLeftWidth:We,borderRadius:We,radius:We,borderTopLeftRadius:We,borderTopRightRadius:We,borderBottomRightRadius:We,borderBottomLeftRadius:We,width:We,maxWidth:We,height:We,maxHeight:We,size:We,top:We,right:We,bottom:We,left:We,padding:We,paddingTop:We,paddingRight:We,paddingBottom:We,paddingLeft:We,margin:We,marginTop:We,marginRight:We,marginBottom:We,marginLeft:We,rotate:ui,rotateX:ui,rotateY:ui,rotateZ:ui,scale:uu,scaleX:uu,scaleY:uu,scaleZ:uu,skew:ui,skewX:ui,skewY:ui,distance:We,translateX:We,translateY:We,translateZ:We,x:We,y:We,z:We,perspective:We,transformPerspective:We,opacity:Ts,originX:sg,originY:sg,originZ:We,zIndex:ag,fillOpacity:Ts,strokeOpacity:Ts,numOctaves:ag};function Hf(t,e,n,i){const{style:o,vars:a,transform:l,transformOrigin:d}=t;let h=!1,m=!1,b=!0;for(const w in e){const _=e[w];if(qv(w)){a[w]=_;continue}const E=Gv[w],I=IO(_,E);if(Ji.has(w)){if(h=!0,l[w]=I,!b)continue;_!==(E.default||0)&&(b=!1)}else w.startsWith("origin")?(m=!0,d[w]=I):o[w]=I}if(e.transform||(h||i?o.transform=kO(t.transform,n,b,i):o.transform&&(o.transform="none")),m){const{originX:w="50%",originY:_="50%",originZ:E=0}=d;o.transformOrigin=`${w} ${_} ${E}`}}const $f=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Kv(t,e,n){for(const i in e)!dn(e[i])&&!Uv(i,n)&&(t[i]=e[i])}function NO({transformTemplate:t},e,n){return te.useMemo(()=>{const i=$f();return Hf(i,e,{enableHardwareAcceleration:!n},t),Object.assign({},i.vars,i.style)},[e])}function jO(t,e,n){const i=t.style||{},o={};return Kv(o,i,t),Object.assign(o,NO(t,e,n)),t.transformValues?t.transformValues(o):o}function BO(t,e,n){const i={},o=jO(t,e,n);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=o,i}const FO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ku(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||FO.has(t)}let Xv=t=>!ku(t);function VO(t){t&&(Xv=e=>e.startsWith("on")?!ku(e):t(e))}try{VO(require("@emotion/is-prop-valid").default)}catch{}function WO(t,e,n){const i={};for(const o in t)o==="values"&&typeof t.values=="object"||(Xv(o)||n===!0&&ku(o)||!e&&!ku(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}function ug(t,e,n){return typeof t=="string"?t:We.transform(e+n*t)}function HO(t,e,n){const i=ug(e,t.x,t.width),o=ug(n,t.y,t.height);return`${i} ${o}`}const $O={offset:"stroke-dashoffset",array:"stroke-dasharray"},UO={offset:"strokeDashoffset",array:"strokeDasharray"};function zO(t,e,n=1,i=0,o=!0){t.pathLength=1;const a=o?$O:UO;t[a.offset]=We.transform(-i);const l=We.transform(e),d=We.transform(n);t[a.array]=`${l} ${d}`}function Uf(t,{attrX:e,attrY:n,attrScale:i,originX:o,originY:a,pathLength:l,pathSpacing:d=1,pathOffset:h=0,...m},b,w,_){if(Hf(t,m,b,_),w){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:E,style:I,dimensions:A}=t;E.transform&&(A&&(I.transform=E.transform),delete E.transform),A&&(o!==void 0||a!==void 0||I.transform)&&(I.transformOrigin=HO(A,o!==void 0?o:.5,a!==void 0?a:.5)),e!==void 0&&(E.x=e),n!==void 0&&(E.y=n),i!==void 0&&(E.scale=i),l!==void 0&&zO(E,l,d,h,!1)}const Jv=()=>({...$f(),attrs:{}}),zf=t=>typeof t=="string"&&t.toLowerCase()==="svg";function qO(t,e,n,i){const o=te.useMemo(()=>{const a=Jv();return Uf(a,e,{enableHardwareAcceleration:!1},zf(i),t.transformTemplate),{...a.attrs,style:{...a.style}}},[e]);if(t.style){const a={};Kv(a,t.style,t),o.style={...a,...o.style}}return o}function YO(t=!1){return(n,i,o,{latestValues:a},l)=>{const h=(Wf(n)?qO:BO)(i,a,l,n),b={...WO(i,typeof n=="string",t),...h,ref:o},{children:w}=i,_=te.useMemo(()=>dn(w)?w.get():w,[w]);return te.createElement(n,{...b,children:_})}}function Zv(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const a in n)t.style.setProperty(a,n[a])}const Qv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ey(t,e,n,i){Zv(t,e,void 0,i);for(const o in e.attrs)t.setAttribute(Qv.has(o)?o:Bf(o),e.attrs[o])}function qf(t,e){const{style:n}=t,i={};for(const o in n)(dn(n[o])||e.style&&dn(e.style[o])||Uv(o,t))&&(i[o]=n[o]);return i}function ty(t,e){const n=qf(t,e);for(const i in t)if(dn(t[i])||dn(e[i])){const o=Ws.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[o]=t[i]}return n}function Yf(t,e,n,i={},o={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,i,o)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,i,o)),e}function GO(t){const e=te.useRef(null);return e.current===null&&(e.current=t()),e.current}const Du=t=>Array.isArray(t),KO=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),XO=t=>Du(t)?t[t.length-1]||0:t;function vu(t){const e=dn(t)?t.get():t;return KO(e)?e.toValue():e}function JO({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,o,a){const l={latestValues:ZO(i,o,a,t),renderState:e()};return n&&(l.mount=d=>n(i,d,l)),l}const ny=t=>(e,n)=>{const i=te.useContext(Uu),o=te.useContext(jf),a=()=>JO(t,e,i,o);return n?a():GO(a)};function ZO(t,e,n,i){const o={},a=i(t,{});for(const _ in a)o[_]=vu(a[_]);let{initial:l,animate:d}=t;const h=Yu(t),m=Wv(t);e&&m&&!h&&t.inherit!==!1&&(l===void 0&&(l=e.initial),d===void 0&&(d=e.animate));let b=n?n.initial===!1:!1;b=b||l===!1;const w=b?d:l;return w&&typeof w!="boolean"&&!qu(w)&&(Array.isArray(w)?w:[w]).forEach(E=>{const I=Yf(t,E);if(!I)return;const{transitionEnd:A,transition:B,...k}=I;for(const F in k){let N=k[F];if(Array.isArray(N)){const Y=b?N.length-1:0;N=N[Y]}N!==null&&(o[F]=N)}for(const F in A)o[F]=A[F]}),o}const _t=t=>t;class lg{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function QO(t){let e=new lg,n=new lg,i=0,o=!1,a=!1;const l=new WeakSet,d={schedule:(h,m=!1,b=!1)=>{const w=b&&o,_=w?e:n;return m&&l.add(h),_.add(h)&&w&&o&&(i=e.order.length),h},cancel:h=>{n.remove(h),l.delete(h)},process:h=>{if(o){a=!0;return}if(o=!0,[e,n]=[n,e],n.clear(),i=e.order.length,i)for(let m=0;m<i;m++){const b=e.order[m];b(h),l.has(b)&&(d.schedule(b),t())}o=!1,a&&(a=!1,d.process(h))}};return d}const lu=["prepare","read","update","preRender","render","postRender"],eP=40;function tP(t,e){let n=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=lu.reduce((w,_)=>(w[_]=QO(()=>n=!0),w),{}),l=w=>a[w].process(o),d=()=>{const w=performance.now();n=!1,o.delta=i?1e3/60:Math.max(Math.min(w-o.timestamp,eP),1),o.timestamp=w,o.isProcessing=!0,lu.forEach(l),o.isProcessing=!1,n&&e&&(i=!1,t(d))},h=()=>{n=!0,i=!0,o.isProcessing||t(d)};return{schedule:lu.reduce((w,_)=>{const E=a[_];return w[_]=(I,A=!1,B=!1)=>(n||h(),E.schedule(I,A,B)),w},{}),cancel:w=>lu.forEach(_=>a[_].cancel(w)),state:o,steps:a}}const{schedule:vt,cancel:Vr,state:Ut,steps:Cc}=tP(typeof requestAnimationFrame<"u"?requestAnimationFrame:_t,!0),nP={useVisualState:ny({scrapeMotionValuesFromProps:ty,createRenderState:Jv,onMount:(t,e,{renderState:n,latestValues:i})=>{vt.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),vt.render(()=>{Uf(n,i,{enableHardwareAcceleration:!1},zf(e.tagName),t.transformTemplate),ey(e,n)})}})},rP={useVisualState:ny({scrapeMotionValuesFromProps:qf,createRenderState:$f})};function iP(t,{forwardMotionProps:e=!1},n,i){return{...Wf(t)?nP:rP,preloadedFeatures:n,useRender:YO(e),createVisualElement:i,Component:t}}function Lr(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const ry=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Ku(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const oP=t=>e=>ry(e)&&t(e,Ku(e));function jr(t,e,n,i){return Lr(t,e,oP(n),i)}const sP=(t,e)=>n=>e(t(n)),fi=(...t)=>t.reduce(sP);function iy(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const cg=iy("dragHorizontal"),fg=iy("dragVertical");function oy(t){let e=!1;if(t==="y")e=fg();else if(t==="x")e=cg();else{const n=cg(),i=fg();n&&i?e=()=>{n(),i()}:(n&&n(),i&&i())}return e}function sy(){const t=oy(!0);return t?(t(),!1):!0}class bi{constructor(e){this.isMounted=!1,this.node=e}update(){}}function dg(t,e){const n="pointer"+(e?"enter":"leave"),i="onHover"+(e?"Start":"End"),o=(a,l)=>{if(a.pointerType==="touch"||sy())return;const d=t.getProps();t.animationState&&d.whileHover&&t.animationState.setActive("whileHover",e),d[i]&&vt.update(()=>d[i](a,l))};return jr(t.current,n,o,{passive:!t.getProps()[i]})}class aP extends bi{mount(){this.unmount=fi(dg(this.node,!0),dg(this.node,!1))}unmount(){}}class uP extends bi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=fi(Lr(this.node.current,"focus",()=>this.onFocus()),Lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ay=(t,e)=>e?t===e?!0:ay(t,e.parentElement):!1;function Ec(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Ku(n))}class lP extends bi{constructor(){super(...arguments),this.removeStartListeners=_t,this.removeEndListeners=_t,this.removeAccessibleListeners=_t,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),a=jr(window,"pointerup",(d,h)=>{if(!this.checkPressEnd())return;const{onTap:m,onTapCancel:b,globalTapTarget:w}=this.node.getProps();vt.update(()=>{!w&&!ay(this.node.current,d.target)?b&&b(d,h):m&&m(d,h)})},{passive:!(i.onTap||i.onPointerUp)}),l=jr(window,"pointercancel",(d,h)=>this.cancelPress(d,h),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=fi(a,l),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=a=>{if(a.key!=="Enter"||this.isPressing)return;const l=d=>{d.key!=="Enter"||!this.checkPressEnd()||Ec("up",(h,m)=>{const{onTap:b}=this.node.getProps();b&&vt.update(()=>b(h,m))})};this.removeEndListeners(),this.removeEndListeners=Lr(this.node.current,"keyup",l),Ec("down",(d,h)=>{this.startPress(d,h)})},n=Lr(this.node.current,"keydown",e),i=()=>{this.isPressing&&Ec("cancel",(a,l)=>this.cancelPress(a,l))},o=Lr(this.node.current,"blur",i);this.removeAccessibleListeners=fi(n,o)}}startPress(e,n){this.isPressing=!0;const{onTapStart:i,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&vt.update(()=>i(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!sy()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&vt.update(()=>i(e,n))}mount(){const e=this.node.getProps(),n=jr(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),i=Lr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=fi(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const cf=new WeakMap,Tc=new WeakMap,cP=t=>{const e=cf.get(t.target);e&&e(t)},fP=t=>{t.forEach(cP)};function dP({root:t,...e}){const n=t||document;Tc.has(n)||Tc.set(n,{});const i=Tc.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(fP,{root:t,...e})),i[o]}function hP(t,e,n){const i=dP(e);return cf.set(t,n),i.observe(t),()=>{cf.delete(t),i.unobserve(t)}}const pP={some:0,all:1};class gP extends bi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:a}=e,l={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:pP[o]},d=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,a&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:b,onViewportLeave:w}=this.node.getProps(),_=m?b:w;_&&_(h)};return hP(this.node.current,l,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(mP(e,n))&&this.startObserver()}unmount(){}}function mP({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const vP={inView:{Feature:gP},tap:{Feature:lP},focus:{Feature:uP},hover:{Feature:aP}};function uy(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function yP(t){const e={};return t.values.forEach((n,i)=>e[i]=n.get()),e}function bP(t){const e={};return t.values.forEach((n,i)=>e[i]=n.getVelocity()),e}function Xu(t,e,n){const i=t.getProps();return Yf(i,e,n!==void 0?n:i.custom,yP(t),bP(t))}let Us=_t,Jn=_t;process.env.NODE_ENV!=="production"&&(Us=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Jn=(t,e)=>{if(!t)throw new Error(e)});const di=t=>t*1e3,Br=t=>t/1e3,wP={current:!1},ly=t=>Array.isArray(t)&&typeof t[0]=="number";function cy(t){return!!(!t||typeof t=="string"&&fy[t]||ly(t)||Array.isArray(t)&&t.every(cy))}const Cs=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,fy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cs([0,.65,.55,1]),circOut:Cs([.55,0,1,.45]),backIn:Cs([.31,.01,.66,-.59]),backOut:Cs([.33,1.53,.69,.99])};function dy(t){if(t)return ly(t)?Cs(t):Array.isArray(t)?t.map(dy):fy[t]}function xP(t,e,n,{delay:i=0,duration:o,repeat:a=0,repeatType:l="loop",ease:d,times:h}={}){const m={[e]:n};h&&(m.offset=h);const b=dy(d);return Array.isArray(b)&&(m.easing=b),t.animate(m,{delay:i,duration:o,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:a+1,direction:l==="reverse"?"alternate":"normal"})}function SP(t,{repeat:e,repeatType:n="loop"}){const i=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[i]}const hy=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,_P=1e-7,CP=12;function EP(t,e,n,i,o){let a,l,d=0;do l=e+(n-e)/2,a=hy(l,i,o)-t,a>0?n=l:e=l;while(Math.abs(a)>_P&&++d<CP);return l}function zs(t,e,n,i){if(t===e&&n===i)return _t;const o=a=>EP(a,0,1,t,n);return a=>a===0||a===1?a:hy(o(a),e,i)}const TP=zs(.42,0,1,1),OP=zs(0,0,.58,1),py=zs(.42,0,.58,1),PP=t=>Array.isArray(t)&&typeof t[0]!="number",gy=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,my=t=>e=>1-t(1-e),Gf=t=>1-Math.sin(Math.acos(t)),vy=my(Gf),AP=gy(Gf),yy=zs(.33,1.53,.69,.99),Kf=my(yy),kP=gy(Kf),DP=t=>(t*=2)<1?.5*Kf(t):.5*(2-Math.pow(2,-10*(t-1))),hg={linear:_t,easeIn:TP,easeInOut:py,easeOut:OP,circIn:Gf,circInOut:AP,circOut:vy,backIn:Kf,backInOut:kP,backOut:yy,anticipate:DP},pg=t=>{if(Array.isArray(t)){Jn(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,o]=t;return zs(e,n,i,o)}else if(typeof t=="string")return Jn(hg[t]!==void 0,`Invalid easing type '${t}'`),hg[t];return t},Xf=(t,e)=>n=>!!(Hs(n)&&RO.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),by=(t,e,n)=>i=>{if(!Hs(i))return i;const[o,a,l,d]=i.match(Gu);return{[t]:parseFloat(o),[e]:parseFloat(a),[n]:parseFloat(l),alpha:d!==void 0?parseFloat(d):1}},IP=t=>mi(0,255,t),Oc={...Zi,transform:t=>Math.round(IP(t))},Hi={test:Xf("rgb","red"),parse:by("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Oc.transform(t)+", "+Oc.transform(e)+", "+Oc.transform(n)+", "+Os(Ts.transform(i))+")"};function RP(t){let e="",n="",i="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const ff={test:Xf("#"),parse:RP,transform:Hi.transform},Oo={test:Xf("hsl","hue"),parse:by("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+hr.transform(Os(e))+", "+hr.transform(Os(n))+", "+Os(Ts.transform(i))+")"},Zt={test:t=>Hi.test(t)||ff.test(t)||Oo.test(t),parse:t=>Hi.test(t)?Hi.parse(t):Oo.test(t)?Oo.parse(t):ff.parse(t),transform:t=>Hs(t)?t:t.hasOwnProperty("red")?Hi.transform(t):Oo.transform(t)},xt=(t,e,n)=>-n*t+n*e+t;function Pc(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function LP({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let o=0,a=0,l=0;if(!e)o=a=l=n;else{const d=n<.5?n*(1+e):n+e-n*e,h=2*n-d;o=Pc(h,d,t+1/3),a=Pc(h,d,t),l=Pc(h,d,t-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(l*255),alpha:i}}const Ac=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},MP=[ff,Hi,Oo],NP=t=>MP.find(e=>e.test(t));function gg(t){const e=NP(t);Jn(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===Oo&&(n=LP(n)),n}const wy=(t,e)=>{const n=gg(t),i=gg(e),o={...n};return a=>(o.red=Ac(n.red,i.red,a),o.green=Ac(n.green,i.green,a),o.blue=Ac(n.blue,i.blue,a),o.alpha=xt(n.alpha,i.alpha,a),Hi.transform(o))};function jP(t){var e,n;return isNaN(t)&&Hs(t)&&(((e=t.match(Gu))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Yv))===null||n===void 0?void 0:n.length)||0)>0}const xy={regex:DO,countKey:"Vars",token:"${v}",parse:_t},Sy={regex:Yv,countKey:"Colors",token:"${c}",parse:Zt.parse},_y={regex:Gu,countKey:"Numbers",token:"${n}",parse:Zi.parse};function kc(t,{regex:e,countKey:n,token:i,parse:o}){const a=t.tokenised.match(e);a&&(t["num"+n]=a.length,t.tokenised=t.tokenised.replace(e,i),t.values.push(...a.map(o)))}function Iu(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&kc(n,xy),kc(n,Sy),kc(n,_y),n}function Cy(t){return Iu(t).values}function Ey(t){const{values:e,numColors:n,numVars:i,tokenised:o}=Iu(t),a=e.length;return l=>{let d=o;for(let h=0;h<a;h++)h<i?d=d.replace(xy.token,l[h]):h<i+n?d=d.replace(Sy.token,Zt.transform(l[h])):d=d.replace(_y.token,Os(l[h]));return d}}const BP=t=>typeof t=="number"?0:t;function FP(t){const e=Cy(t);return Ey(t)(e.map(BP))}const vi={test:jP,parse:Cy,createTransformer:Ey,getAnimatableNone:FP},Ty=(t,e)=>n=>`${n>0?e:t}`;function Oy(t,e){return typeof t=="number"?n=>xt(t,e,n):Zt.test(t)?wy(t,e):t.startsWith("var(")?Ty(t,e):Ay(t,e)}const Py=(t,e)=>{const n=[...t],i=n.length,o=t.map((a,l)=>Oy(a,e[l]));return a=>{for(let l=0;l<i;l++)n[l]=o[l](a);return n}},VP=(t,e)=>{const n={...t,...e},i={};for(const o in n)t[o]!==void 0&&e[o]!==void 0&&(i[o]=Oy(t[o],e[o]));return o=>{for(const a in i)n[a]=i[a](o);return n}},Ay=(t,e)=>{const n=vi.createTransformer(e),i=Iu(t),o=Iu(e);return i.numVars===o.numVars&&i.numColors===o.numColors&&i.numNumbers>=o.numNumbers?fi(Py(i.values,o.values),n):(Us(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ty(t,e))},Ns=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},mg=(t,e)=>n=>xt(t,e,n);function WP(t){return typeof t=="number"?mg:typeof t=="string"?Zt.test(t)?wy:Ay:Array.isArray(t)?Py:typeof t=="object"?VP:mg}function HP(t,e,n){const i=[],o=n||WP(t[0]),a=t.length-1;for(let l=0;l<a;l++){let d=o(t[l],t[l+1]);if(e){const h=Array.isArray(e)?e[l]||_t:e;d=fi(h,d)}i.push(d)}return i}function ky(t,e,{clamp:n=!0,ease:i,mixer:o}={}){const a=t.length;if(Jn(a===e.length,"Both input and output ranges must be the same length"),a===1)return()=>e[0];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=HP(e,i,o),d=l.length,h=m=>{let b=0;if(d>1)for(;b<t.length-2&&!(m<t[b+1]);b++);const w=Ns(t[b],t[b+1],m);return l[b](w)};return n?m=>h(mi(t[0],t[a-1],m)):h}function $P(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const o=Ns(0,e,i);t.push(xt(n,1,o))}}function UP(t){const e=[0];return $P(e,t.length-1),e}function zP(t,e){return t.map(n=>n*e)}function qP(t,e){return t.map(()=>e||py).splice(0,t.length-1)}function Ru({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const o=PP(i)?i.map(pg):pg(i),a={done:!1,value:e[0]},l=zP(n&&n.length===e.length?n:UP(e),t),d=ky(l,e,{ease:Array.isArray(o)?o:qP(e,o)});return{calculatedDuration:t,next:h=>(a.value=d(h),a.done=h>=t,a)}}function Dy(t,e){return e?t*(1e3/e):0}const YP=5;function Iy(t,e,n){const i=Math.max(e-YP,0);return Dy(n-t(i),e-i)}const Dc=.001,GP=.01,vg=10,KP=.05,XP=1;function JP({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let o,a;Us(t<=di(vg),"Spring duration must be 10 seconds or less");let l=1-e;l=mi(KP,XP,l),t=mi(GP,vg,Br(t)),l<1?(o=m=>{const b=m*l,w=b*t,_=b-n,E=df(m,l),I=Math.exp(-w);return Dc-_/E*I},a=m=>{const w=m*l*t,_=w*n+n,E=Math.pow(l,2)*Math.pow(m,2)*t,I=Math.exp(-w),A=df(Math.pow(m,2),l);return(-o(m)+Dc>0?-1:1)*((_-E)*I)/A}):(o=m=>{const b=Math.exp(-m*t),w=(m-n)*t+1;return-Dc+b*w},a=m=>{const b=Math.exp(-m*t),w=(n-m)*(t*t);return b*w});const d=5/t,h=QP(o,a,d);if(t=di(t),isNaN(h))return{stiffness:100,damping:10,duration:t};{const m=Math.pow(h,2)*i;return{stiffness:m,damping:l*2*Math.sqrt(i*m),duration:t}}}const ZP=12;function QP(t,e,n){let i=n;for(let o=1;o<ZP;o++)i=i-t(i)/e(i);return i}function df(t,e){return t*Math.sqrt(1-e*e)}const eA=["duration","bounce"],tA=["stiffness","damping","mass"];function yg(t,e){return e.some(n=>t[n]!==void 0)}function nA(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!yg(t,tA)&&yg(t,eA)){const n=JP(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Ry({keyframes:t,restDelta:e,restSpeed:n,...i}){const o=t[0],a=t[t.length-1],l={done:!1,value:o},{stiffness:d,damping:h,mass:m,duration:b,velocity:w,isResolvedFromDuration:_}=nA({...i,velocity:-Br(i.velocity||0)}),E=w||0,I=h/(2*Math.sqrt(d*m)),A=a-o,B=Br(Math.sqrt(d/m)),k=Math.abs(A)<5;n||(n=k?.01:2),e||(e=k?.005:.5);let F;if(I<1){const N=df(B,I);F=Y=>{const $=Math.exp(-I*B*Y);return a-$*((E+I*B*A)/N*Math.sin(N*Y)+A*Math.cos(N*Y))}}else if(I===1)F=N=>a-Math.exp(-B*N)*(A+(E+B*A)*N);else{const N=B*Math.sqrt(I*I-1);F=Y=>{const $=Math.exp(-I*B*Y),ie=Math.min(N*Y,300);return a-$*((E+I*B*A)*Math.sinh(ie)+N*A*Math.cosh(ie))/N}}return{calculatedDuration:_&&b||null,next:N=>{const Y=F(N);if(_)l.done=N>=b;else{let $=E;N!==0&&(I<1?$=Iy(F,N,Y):$=0);const ie=Math.abs($)<=n,g=Math.abs(a-Y)<=e;l.done=ie&&g}return l.value=l.done?a:Y,l}}}function bg({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:l,min:d,max:h,restDelta:m=.5,restSpeed:b}){const w=t[0],_={done:!1,value:w},E=ee=>d!==void 0&&ee<d||h!==void 0&&ee>h,I=ee=>d===void 0?h:h===void 0||Math.abs(d-ee)<Math.abs(h-ee)?d:h;let A=n*e;const B=w+A,k=l===void 0?B:l(B);k!==B&&(A=k-w);const F=ee=>-A*Math.exp(-ee/i),N=ee=>k+F(ee),Y=ee=>{const Z=F(ee),we=N(ee);_.done=Math.abs(Z)<=m,_.value=_.done?k:we};let $,ie;const g=ee=>{E(_.value)&&($=ee,ie=Ry({keyframes:[_.value,I(_.value)],velocity:Iy(N,ee,_.value),damping:o,stiffness:a,restDelta:m,restSpeed:b}))};return g(0),{calculatedDuration:null,next:ee=>{let Z=!1;return!ie&&$===void 0&&(Z=!0,Y(ee),g(ee)),$!==void 0&&ee>$?ie.next(ee-$):(!Z&&Y(ee),_)}}}const rA=t=>{const e=({timestamp:n})=>t(n);return{start:()=>vt.update(e,!0),stop:()=>Vr(e),now:()=>Ut.isProcessing?Ut.timestamp:performance.now()}},wg=2e4;function xg(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<wg;)e+=n,i=t.next(e);return e>=wg?1/0:e}const iA={decay:bg,inertia:bg,tween:Ru,keyframes:Ru,spring:Ry};function Lu({autoplay:t=!0,delay:e=0,driver:n=rA,keyframes:i,type:o="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:d="loop",onPlay:h,onStop:m,onComplete:b,onUpdate:w,..._}){let E=1,I=!1,A,B;const k=()=>{B=new Promise(ae=>{A=ae})};k();let F;const N=iA[o]||Ru;let Y;N!==Ru&&typeof i[0]!="number"&&(process.env.NODE_ENV!=="production"&&Jn(i.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`),Y=ky([0,100],i,{clamp:!1}),i=[0,100]);const $=N({..._,keyframes:i});let ie;d==="mirror"&&(ie=N({..._,keyframes:[...i].reverse(),velocity:-(_.velocity||0)}));let g="idle",ee=null,Z=null,we=null;$.calculatedDuration===null&&a&&($.calculatedDuration=xg($));const{calculatedDuration:He}=$;let De=1/0,Te=1/0;He!==null&&(De=He+l,Te=De*(a+1)-l);let Le=0;const G=ae=>{if(Z===null)return;E>0&&(Z=Math.min(Z,ae)),E<0&&(Z=Math.min(ae-Te/E,Z)),ee!==null?Le=ee:Le=Math.round(ae-Z)*E;const ve=Le-e*(E>=0?1:-1),me=E>=0?ve<0:ve>Te;Le=Math.max(ve,0),g==="finished"&&ee===null&&(Le=Te);let ye=Le,Pe=$;if(a){const $e=Math.min(Le,Te)/De;let Me=Math.floor($e),Xe=$e%1;!Xe&&$e>=1&&(Xe=1),Xe===1&&Me--,Me=Math.min(Me,a+1),!!(Me%2)&&(d==="reverse"?(Xe=1-Xe,l&&(Xe-=l/De)):d==="mirror"&&(Pe=ie)),ye=mi(0,1,Xe)*De}const Ce=me?{done:!1,value:i[0]}:Pe.next(ye);Y&&(Ce.value=Y(Ce.value));let{done:Ie}=Ce;!me&&He!==null&&(Ie=E>=0?Le>=Te:Le<=0);const je=ee===null&&(g==="finished"||g==="running"&&Ie);return w&&w(Ce.value),je&&pe(),Ce},re=()=>{F&&F.stop(),F=void 0},de=()=>{g="idle",re(),A(),k(),Z=we=null},pe=()=>{g="finished",b&&b(),re(),A()},Ae=()=>{if(I)return;F||(F=n(G));const ae=F.now();h&&h(),ee!==null?Z=ae-ee:(!Z||g==="finished")&&(Z=ae),g==="finished"&&k(),we=Z,ee=null,g="running",F.start()};t&&Ae();const Q={then(ae,ve){return B.then(ae,ve)},get time(){return Br(Le)},set time(ae){ae=di(ae),Le=ae,ee!==null||!F||E===0?ee=ae:Z=F.now()-ae/E},get duration(){const ae=$.calculatedDuration===null?xg($):$.calculatedDuration;return Br(ae)},get speed(){return E},set speed(ae){ae===E||!F||(E=ae,Q.time=Br(Le))},get state(){return g},play:Ae,pause:()=>{g="paused",ee=Le},stop:()=>{I=!0,g!=="idle"&&(g="idle",m&&m(),de())},cancel:()=>{we!==null&&G(we),de()},complete:()=>{g="finished"},sample:ae=>(Z=0,G(ae))};return Q}function oA(t){let e;return()=>(e===void 0&&(e=t()),e)}const sA=oA(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),aA=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),cu=10,uA=2e4,lA=(t,e)=>e.type==="spring"||t==="backgroundColor"||!cy(e.ease);function cA(t,e,{onUpdate:n,onComplete:i,...o}){if(!(sA()&&aA.has(e)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let l=!1,d,h,m=!1;const b=()=>{h=new Promise(N=>{d=N})};b();let{keyframes:w,duration:_=300,ease:E,times:I}=o;if(lA(e,o)){const N=Lu({...o,repeat:0,delay:0});let Y={done:!1,value:w[0]};const $=[];let ie=0;for(;!Y.done&&ie<uA;)Y=N.sample(ie),$.push(Y.value),ie+=cu;I=void 0,w=$,_=ie-cu,E="linear"}const A=xP(t.owner.current,e,w,{...o,duration:_,ease:E,times:I}),B=()=>{m=!1,A.cancel()},k=()=>{m=!0,vt.update(B),d(),b()};return A.onfinish=()=>{m||(t.set(SP(w,o)),i&&i(),k())},{then(N,Y){return h.then(N,Y)},attachTimeline(N){return A.timeline=N,A.onfinish=null,_t},get time(){return Br(A.currentTime||0)},set time(N){A.currentTime=di(N)},get speed(){return A.playbackRate},set speed(N){A.playbackRate=N},get duration(){return Br(_)},play:()=>{l||(A.play(),Vr(B))},pause:()=>A.pause(),stop:()=>{if(l=!0,A.playState==="idle")return;const{currentTime:N}=A;if(N){const Y=Lu({...o,autoplay:!1});t.setWithVelocity(Y.sample(N-cu).value,Y.sample(N).value,cu)}k()},complete:()=>{m||A.finish()},cancel:k}}function fA({keyframes:t,delay:e,onUpdate:n,onComplete:i}){const o=()=>(n&&n(t[t.length-1]),i&&i(),{time:0,speed:1,duration:0,play:_t,pause:_t,stop:_t,then:a=>(a(),Promise.resolve()),cancel:_t,complete:_t});return e?Lu({keyframes:[0,1],duration:0,delay:e,onComplete:o}):o()}const dA={type:"spring",stiffness:500,damping:25,restSpeed:10},hA=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),pA={type:"keyframes",duration:.8},gA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},mA=(t,{keyframes:e})=>e.length>2?pA:Ji.has(t)?t.startsWith("scale")?hA(e[1]):dA:gA,hf=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vi.test(e)||e==="0")&&!e.startsWith("url(")),vA=new Set(["brightness","contrast","saturate","opacity"]);function yA(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Gu)||[];if(!i)return t;const o=n.replace(i,"");let a=vA.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+o+")"}const bA=/([a-z-]*)\(.*?\)/g,pf={...vi,getAnimatableNone:t=>{const e=t.match(bA);return e?e.map(yA).join(" "):t}},wA={...Gv,color:Zt,backgroundColor:Zt,outlineColor:Zt,fill:Zt,stroke:Zt,borderColor:Zt,borderTopColor:Zt,borderRightColor:Zt,borderBottomColor:Zt,borderLeftColor:Zt,filter:pf,WebkitFilter:pf},Jf=t=>wA[t];function Ly(t,e){let n=Jf(t);return n!==pf&&(n=vi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const My=t=>/^0[^.\s]+$/.test(t);function xA(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||My(t)}function SA(t,e,n,i){const o=hf(e,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const l=i.from!==void 0?i.from:t.get();let d;const h=[];for(let m=0;m<a.length;m++)a[m]===null&&(a[m]=m===0?l:a[m-1]),xA(a[m])&&h.push(m),typeof a[m]=="string"&&a[m]!=="none"&&a[m]!=="0"&&(d=a[m]);if(o&&h.length&&d)for(let m=0;m<h.length;m++){const b=h[m];a[b]=Ly(e,d)}return a}function _A({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:a,repeatType:l,repeatDelay:d,from:h,elapsed:m,...b}){return!!Object.keys(b).length}function Zf(t,e){return t[e]||t.default||t}const CA={skipAnimations:!1},Qf=(t,e,n,i={})=>o=>{const a=Zf(i,t)||{},l=a.delay||i.delay||0;let{elapsed:d=0}=i;d=d-di(l);const h=SA(e,t,n,a),m=h[0],b=h[h.length-1],w=hf(t,m),_=hf(t,b);Us(w===_,`You are trying to animate ${t} from "${m}" to "${b}". ${m} is not an animatable value - to enable this animation set ${m} to a value animatable to ${b} via the \`style\` property.`);let E={keyframes:h,velocity:e.getVelocity(),ease:"easeOut",...a,delay:-d,onUpdate:I=>{e.set(I),a.onUpdate&&a.onUpdate(I)},onComplete:()=>{o(),a.onComplete&&a.onComplete()}};if(_A(a)||(E={...E,...mA(t,E)}),E.duration&&(E.duration=di(E.duration)),E.repeatDelay&&(E.repeatDelay=di(E.repeatDelay)),!w||!_||wP.current||a.type===!1||CA.skipAnimations)return fA(E);if(!i.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const I=cA(e,t,E);if(I)return I}return Lu(E)};function Mu(t){return!!(dn(t)&&t.add)}const Ny=t=>/^\-?\d*\.?\d+$/.test(t);function ed(t,e){t.indexOf(e)===-1&&t.push(e)}function td(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class nd{constructor(){this.subscriptions=[]}add(e){return ed(this.subscriptions,e),()=>td(this.subscriptions,e)}notify(e,n,i){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,i);else for(let a=0;a<o;a++){const l=this.subscriptions[a];l&&l(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Sg=new Set;function rd(t,e,n){t||Sg.has(e)||(console.warn(e),n&&console.warn(n),Sg.add(e))}const EA=t=>!isNaN(parseFloat(t));class TA{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(i,o=!0)=>{this.prev=this.current,this.current=i;const{delta:a,timestamp:l}=Ut;this.lastUpdated!==l&&(this.timeDelta=a,this.lastUpdated=l,vt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>vt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:i})=>{i!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=EA(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&rd(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new nd);const i=this.events[e].add(n);return e==="change"?()=>{i(),vt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=e,this.timeDelta=i}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Dy(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Do(t,e){return new TA(t,e)}const jy=t=>e=>e.test(t),OA={test:t=>t==="auto",parse:t=>t},By=[Zi,We,hr,ui,MO,LO,OA],Ss=t=>By.find(jy(t)),PA=[...By,Zt,vi],AA=t=>PA.find(jy(t));function kA(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Do(n))}function DA(t,e){const n=Xu(t,e);let{transitionEnd:i={},transition:o={},...a}=n?t.makeTargetAnimatable(n,!1):{};a={...a,...i};for(const l in a){const d=XO(a[l]);kA(t,l,d)}}function IA(t,e,n){var i,o;const a=Object.keys(e).filter(d=>!t.hasValue(d)),l=a.length;if(l)for(let d=0;d<l;d++){const h=a[d],m=e[h];let b=null;Array.isArray(m)&&(b=m[0]),b===null&&(b=(o=(i=n[h])!==null&&i!==void 0?i:t.readValue(h))!==null&&o!==void 0?o:e[h]),b!=null&&(typeof b=="string"&&(Ny(b)||My(b))?b=parseFloat(b):!AA(b)&&vi.test(m)&&(b=Ly(h,m)),t.addValue(h,Do(b,{owner:t})),n[h]===void 0&&(n[h]=b),b!==null&&t.setBaseTarget(h,b))}}function RA(t,e){return e?(e[t]||e.default||e).from:void 0}function LA(t,e,n){const i={};for(const o in t){const a=RA(o,e);if(a!==void 0)i[o]=a;else{const l=n.getValue(o);l&&(i[o]=l.get())}}return i}function MA({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function NA(t,e){const n=t.get();if(Array.isArray(e)){for(let i=0;i<e.length;i++)if(e[i]!==n)return!0}else return n!==e}function Fy(t,e,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:a=t.getDefaultTransition(),transitionEnd:l,...d}=t.makeTargetAnimatable(e);const h=t.getValue("willChange");i&&(a=i);const m=[],b=o&&t.animationState&&t.animationState.getState()[o];for(const w in d){const _=t.getValue(w),E=d[w];if(!_||E===void 0||b&&MA(b,w))continue;const I={delay:n,elapsed:0,...Zf(a||{},w)};if(window.HandoffAppearAnimations){const k=t.getProps()[Vv];if(k){const F=window.HandoffAppearAnimations(k,w,_,vt);F!==null&&(I.elapsed=F,I.isHandoff=!0)}}let A=!I.isHandoff&&!NA(_,E);if(I.type==="spring"&&(_.getVelocity()||I.velocity)&&(A=!1),_.animation&&(A=!1),A)continue;_.start(Qf(w,_,E,t.shouldReduceMotion&&Ji.has(w)?{type:!1}:I));const B=_.animation;Mu(h)&&(h.add(w),B.then(()=>h.remove(w))),m.push(B)}return l&&Promise.all(m).then(()=>{l&&DA(t,l)}),m}function gf(t,e,n={}){const i=Xu(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(Fy(t,i,n)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:b,staggerDirection:w}=o;return jA(t,e,m+h,b,w,n)}:()=>Promise.resolve(),{when:d}=o;if(d){const[h,m]=d==="beforeChildren"?[a,l]:[l,a];return h().then(()=>m())}else return Promise.all([a(),l(n.delay)])}function jA(t,e,n=0,i=0,o=1,a){const l=[],d=(t.variantChildren.size-1)*i,h=o===1?(m=0)=>m*i:(m=0)=>d-m*i;return Array.from(t.variantChildren).sort(BA).forEach((m,b)=>{m.notify("AnimationStart",e),l.push(gf(m,e,{...a,delay:n+h(b)}).then(()=>m.notify("AnimationComplete",e)))}),Promise.all(l)}function BA(t,e){return t.sortNodePosition(e)}function FA(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const o=e.map(a=>gf(t,a,n));i=Promise.all(o)}else if(typeof e=="string")i=gf(t,e,n);else{const o=typeof e=="function"?Xu(t,e,n.custom):e;i=Promise.all(Fy(t,o,n))}return i.then(()=>t.notify("AnimationComplete",e))}const VA=[...Ff].reverse(),WA=Ff.length;function HA(t){return e=>Promise.all(e.map(({animation:n,options:i})=>FA(t,n,i)))}function $A(t){let e=HA(t);const n=zA();let i=!0;const o=(h,m)=>{const b=Xu(t,m);if(b){const{transition:w,transitionEnd:_,...E}=b;h={...h,...E,..._}}return h};function a(h){e=h(t)}function l(h,m){const b=t.getProps(),w=t.getVariantContext(!0)||{},_=[],E=new Set;let I={},A=1/0;for(let k=0;k<WA;k++){const F=VA[k],N=n[F],Y=b[F]!==void 0?b[F]:w[F],$=Ls(Y),ie=F===m?N.isActive:null;ie===!1&&(A=k);let g=Y===w[F]&&Y!==b[F]&&$;if(g&&i&&t.manuallyAnimateOnMount&&(g=!1),N.protectedKeys={...I},!N.isActive&&ie===null||!Y&&!N.prevProp||qu(Y)||typeof Y=="boolean")continue;let Z=UA(N.prevProp,Y)||F===m&&N.isActive&&!g&&$||k>A&&$,we=!1;const He=Array.isArray(Y)?Y:[Y];let De=He.reduce(o,{});ie===!1&&(De={});const{prevResolvedValues:Te={}}=N,Le={...Te,...De},G=re=>{Z=!0,E.has(re)&&(we=!0,E.delete(re)),N.needsAnimating[re]=!0};for(const re in Le){const de=De[re],pe=Te[re];if(I.hasOwnProperty(re))continue;let Ae=!1;Du(de)&&Du(pe)?Ae=!uy(de,pe):Ae=de!==pe,Ae?de!==void 0?G(re):E.add(re):de!==void 0&&E.has(re)?G(re):N.protectedKeys[re]=!0}N.prevProp=Y,N.prevResolvedValues=De,N.isActive&&(I={...I,...De}),i&&t.blockInitialAnimation&&(Z=!1),Z&&(!g||we)&&_.push(...He.map(re=>({animation:re,options:{type:F,...h}})))}if(E.size){const k={};E.forEach(F=>{const N=t.getBaseTarget(F);N!==void 0&&(k[F]=N)}),_.push({animation:k})}let B=!!_.length;return i&&(b.initial===!1||b.initial===b.animate)&&!t.manuallyAnimateOnMount&&(B=!1),i=!1,B?e(_):Promise.resolve()}function d(h,m,b){var w;if(n[h].isActive===m)return Promise.resolve();(w=t.variantChildren)===null||w===void 0||w.forEach(E=>{var I;return(I=E.animationState)===null||I===void 0?void 0:I.setActive(h,m)}),n[h].isActive=m;const _=l(b,h);for(const E in n)n[E].protectedKeys={};return _}return{animateChanges:l,setActive:d,setAnimateFunction:a,getState:()=>n}}function UA(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!uy(e,t):!1}function Bi(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zA(){return{animate:Bi(!0),whileInView:Bi(),whileHover:Bi(),whileTap:Bi(),whileDrag:Bi(),whileFocus:Bi(),exit:Bi()}}class qA extends bi{constructor(e){super(e),e.animationState||(e.animationState=$A(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),qu(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let YA=0;class GA extends bi{constructor(){super(...arguments),this.id=YA++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:i}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===o)return;const a=this.node.animationState.setActive("exit",!e,{custom:i??this.node.getProps().custom});n&&!e&&a.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const KA={animation:{Feature:qA},exit:{Feature:GA}},_g=(t,e)=>Math.abs(t-e);function XA(t,e){const n=_g(t.x,e.x),i=_g(t.y,e.y);return Math.sqrt(n**2+i**2)}class Vy{constructor(e,n,{transformPagePoint:i,contextWindow:o,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Rc(this.lastMoveEventInfo,this.history),_=this.startEvent!==null,E=XA(w.offset,{x:0,y:0})>=3;if(!_&&!E)return;const{point:I}=w,{timestamp:A}=Ut;this.history.push({...I,timestamp:A});const{onStart:B,onMove:k}=this.handlers;_||(B&&B(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,w)},this.handlePointerMove=(w,_)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=Ic(_,this.transformPagePoint),vt.update(this.updatePoint,!0)},this.handlePointerUp=(w,_)=>{this.end();const{onEnd:E,onSessionEnd:I,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const B=Rc(w.type==="pointercancel"?this.lastMoveEventInfo:Ic(_,this.transformPagePoint),this.history);this.startEvent&&E&&E(w,B),I&&I(w,B)},!ry(e))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=i,this.contextWindow=o||window;const l=Ku(e),d=Ic(l,this.transformPagePoint),{point:h}=d,{timestamp:m}=Ut;this.history=[{...h,timestamp:m}];const{onSessionStart:b}=n;b&&b(e,Rc(d,this.history)),this.removeListeners=fi(jr(this.contextWindow,"pointermove",this.handlePointerMove),jr(this.contextWindow,"pointerup",this.handlePointerUp),jr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Vr(this.updatePoint)}}function Ic(t,e){return e?{point:e(t.point)}:t}function Cg(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Rc({point:t},e){return{point:t,delta:Cg(t,Wy(e)),offset:Cg(t,JA(e)),velocity:ZA(e,.1)}}function JA(t){return t[0]}function Wy(t){return t[t.length-1]}function ZA(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=Wy(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>di(e)));)n--;if(!i)return{x:0,y:0};const a=Br(o.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const l={x:(o.x-i.x)/a,y:(o.y-i.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function On(t){return t.max-t.min}function mf(t,e=0,n=.01){return Math.abs(t-e)<=n}function Eg(t,e,n,i=.5){t.origin=i,t.originPoint=xt(e.min,e.max,t.origin),t.scale=On(n)/On(e),(mf(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=xt(n.min,n.max,t.origin)-t.originPoint,(mf(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ps(t,e,n,i){Eg(t.x,e.x,n.x,i?i.originX:void 0),Eg(t.y,e.y,n.y,i?i.originY:void 0)}function Tg(t,e,n){t.min=n.min+e.min,t.max=t.min+On(e)}function QA(t,e,n){Tg(t.x,e.x,n.x),Tg(t.y,e.y,n.y)}function Og(t,e,n){t.min=e.min-n.min,t.max=t.min+On(e)}function As(t,e,n){Og(t.x,e.x,n.x),Og(t.y,e.y,n.y)}function ek(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?xt(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?xt(n,t,i.max):Math.min(t,n)),t}function Pg(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function tk(t,{top:e,left:n,bottom:i,right:o}){return{x:Pg(t.x,n,o),y:Pg(t.y,e,i)}}function Ag(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function nk(t,e){return{x:Ag(t.x,e.x),y:Ag(t.y,e.y)}}function rk(t,e){let n=.5;const i=On(t),o=On(e);return o>i?n=Ns(e.min,e.max-i,t.min):i>o&&(n=Ns(t.min,t.max-o,e.min)),mi(0,1,n)}function ik(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const vf=.35;function ok(t=vf){return t===!1?t=0:t===!0&&(t=vf),{x:kg(t,"left","right"),y:kg(t,"top","bottom")}}function kg(t,e,n){return{min:Dg(t,e),max:Dg(t,n)}}function Dg(t,e){return typeof t=="number"?t:t[e]||0}const Ig=()=>({translate:0,scale:1,origin:0,originPoint:0}),Po=()=>({x:Ig(),y:Ig()}),Rg=()=>({min:0,max:0}),Ot=()=>({x:Rg(),y:Rg()});function Wn(t){return[t("x"),t("y")]}function Hy({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function sk({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ak(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Lc(t){return t===void 0||t===1}function yf({scale:t,scaleX:e,scaleY:n}){return!Lc(t)||!Lc(e)||!Lc(n)}function Fi(t){return yf(t)||$y(t)||t.z||t.rotate||t.rotateX||t.rotateY}function $y(t){return Lg(t.x)||Lg(t.y)}function Lg(t){return t&&t!=="0%"}function Nu(t,e,n){const i=t-n,o=e*i;return n+o}function Mg(t,e,n,i,o){return o!==void 0&&(t=Nu(t,o,i)),Nu(t,n,i)+e}function bf(t,e=0,n=1,i,o){t.min=Mg(t.min,e,n,i,o),t.max=Mg(t.max,e,n,i,o)}function Uy(t,{x:e,y:n}){bf(t.x,e.translate,e.scale,e.originPoint),bf(t.y,n.translate,n.scale,n.originPoint)}function uk(t,e,n,i=!1){const o=n.length;if(!o)return;e.x=e.y=1;let a,l;for(let d=0;d<o;d++){a=n[d],l=a.projectionDelta;const h=a.instance;h&&h.style&&h.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Ao(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,Uy(t,l)),i&&Fi(a.latestValues)&&Ao(t,a.latestValues))}e.x=Ng(e.x),e.y=Ng(e.y)}function Ng(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function li(t,e){t.min=t.min+e,t.max=t.max+e}function jg(t,e,[n,i,o]){const a=e[o]!==void 0?e[o]:.5,l=xt(t.min,t.max,a);bf(t,e[n],e[i],l,e.scale)}const lk=["x","scaleX","originX"],ck=["y","scaleY","originY"];function Ao(t,e){jg(t.x,e,lk),jg(t.y,e,ck)}function zy(t,e){return Hy(ak(t.getBoundingClientRect(),e))}function fk(t,e,n){const i=zy(t,n),{scroll:o}=e;return o&&(li(i.x,o.offset.x),li(i.y,o.offset.y)),i}const qy=({current:t})=>t?t.ownerDocument.defaultView:null,dk=new WeakMap;class hk{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ot(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=b=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ku(b,"page").point)},a=(b,w)=>{const{drag:_,dragPropagation:E,onDragStart:I}=this.getProps();if(_&&!E&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=oy(_),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wn(B=>{let k=this.getAxisMotionValue(B).get()||0;if(hr.test(k)){const{projection:F}=this.visualElement;if(F&&F.layout){const N=F.layout.layoutBox[B];N&&(k=On(N)*(parseFloat(k)/100))}}this.originPoint[B]=k}),I&&vt.update(()=>I(b,w),!1,!0);const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},l=(b,w)=>{const{dragPropagation:_,dragDirectionLock:E,onDirectionLock:I,onDrag:A}=this.getProps();if(!_&&!this.openGlobalLock)return;const{offset:B}=w;if(E&&this.currentDirection===null){this.currentDirection=pk(B),this.currentDirection!==null&&I&&I(this.currentDirection);return}this.updateAxis("x",w.point,B),this.updateAxis("y",w.point,B),this.visualElement.render(),A&&A(b,w)},d=(b,w)=>this.stop(b,w),h=()=>Wn(b=>{var w;return this.getAnimationState(b)==="paused"&&((w=this.getAxisMotionValue(b).animation)===null||w===void 0?void 0:w.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new Vy(e,{onSessionStart:o,onStart:a,onMove:l,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:qy(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&vt.update(()=>a(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:o}=this.getProps();if(!i||!fu(e,o,this.currentDirection))return;const a=this.getAxisMotionValue(e);let l=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(l=ek(l,this.constraints[e],this.elastic[e])),a.set(l)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,a=this.constraints;n&&To(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=tk(o.layoutBox,n):this.constraints=!1,this.elastic=ok(i),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Wn(l=>{this.getAxisMotionValue(l)&&(this.constraints[l]=ik(o.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!To(e))return!1;const i=e.current;Jn(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=fk(i,o.root,this.visualElement.getTransformPagePoint());let l=nk(o.layout.layoutBox,a);if(n){const d=n(sk(l));this.hasMutatedConstraints=!!d,d&&(l=Hy(d))}return l}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},m=Wn(b=>{if(!fu(b,n,this.currentDirection))return;let w=h&&h[b]||{};l&&(w={min:0,max:0});const _=o?200:1e6,E=o?40:1e7,I={type:"inertia",velocity:i?e[b]:0,bounceStiffness:_,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...a,...w};return this.startAxisValueAnimation(b,I)});return Promise.all(m).then(d)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return i.start(Qf(e,i,0,n))}stopAnimation(){Wn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Wn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Wn(n=>{const{drag:i}=this.getProps();if(!fu(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:d}=o.layout.layoutBox[n];a.set(e[n]-xt(l,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!To(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Wn(l=>{const d=this.getAxisMotionValue(l);if(d){const h=d.get();o[l]=rk({min:h,max:h},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Wn(l=>{if(!fu(l,e,null))return;const d=this.getAxisMotionValue(l),{min:h,max:m}=this.constraints[l];d.set(xt(h,m,o[l]))})}addListeners(){if(!this.visualElement.current)return;dk.set(this.visualElement,this);const e=this.visualElement.current,n=jr(e,"pointerdown",h=>{const{drag:m,dragListener:b=!0}=this.getProps();m&&b&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();To(h)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),i();const l=Lr(window,"resize",()=>this.scalePositionWithinConstraints()),d=o.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(Wn(b=>{const w=this.getAxisMotionValue(b);w&&(this.originPoint[b]+=h[b].translate,w.set(w.get()+h[b].translate))}),this.visualElement.render())});return()=>{l(),n(),a(),d&&d()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:l=vf,dragMomentum:d=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:a,dragElastic:l,dragMomentum:d}}}function fu(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function pk(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class gk extends bi{constructor(e){super(e),this.removeGroupControls=_t,this.removeListeners=_t,this.controls=new hk(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_t}unmount(){this.removeGroupControls(),this.removeListeners()}}const Bg=t=>(e,n)=>{t&&vt.update(()=>t(e,n))};class mk extends bi{constructor(){super(...arguments),this.removePointerDownListener=_t}onPointerDown(e){this.session=new Vy(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qy(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:Bg(e),onStart:Bg(n),onMove:i,onEnd:(a,l)=>{delete this.session,o&&vt.update(()=>o(a,l))}}}mount(){this.removePointerDownListener=jr(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function vk(){const t=te.useContext(jf);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,o=te.useId();return te.useEffect(()=>i(o),[]),!e&&n?[!1,()=>n&&n(o)]:[!0]}const yu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Fg(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const _s={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(We.test(t))t=parseFloat(t);else return t;const n=Fg(t,e.target.x),i=Fg(t,e.target.y);return`${n}% ${i}%`}},yk={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=vi.parse(t);if(o.length>5)return i;const a=vi.createTransformer(t),l=typeof o[0]!="number"?1:0,d=n.x.scale*e.x,h=n.y.scale*e.y;o[0+l]/=d,o[1+l]/=h;const m=xt(d,h,.5);return typeof o[2+l]=="number"&&(o[2+l]/=m),typeof o[3+l]=="number"&&(o[3+l]/=m),a(o)}};class bk extends te.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:a}=e;OO(wk),a&&(n.group&&n.group.add(a),i&&i.register&&o&&i.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),yu.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:o,isPresent:a}=this.props,l=i.projection;return l&&(l.isPresent=a,o||e.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?l.promote():l.relegate()||vt.postRender(()=>{const d=l.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Yy(t){const[e,n]=vk(),i=te.useContext(Hv);return te.createElement(bk,{...t,layoutGroup:i,switchLayoutGroup:te.useContext($v),isPresent:e,safeToRemove:n})}const wk={borderRadius:{..._s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_s,borderTopRightRadius:_s,borderBottomLeftRadius:_s,borderBottomRightRadius:_s,boxShadow:yk},Gy=["TopLeft","TopRight","BottomLeft","BottomRight"],xk=Gy.length,Vg=t=>typeof t=="string"?parseFloat(t):t,Wg=t=>typeof t=="number"||We.test(t);function Sk(t,e,n,i,o,a){o?(t.opacity=xt(0,n.opacity!==void 0?n.opacity:1,_k(i)),t.opacityExit=xt(e.opacity!==void 0?e.opacity:1,0,Ck(i))):a&&(t.opacity=xt(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let l=0;l<xk;l++){const d=`border${Gy[l]}Radius`;let h=Hg(e,d),m=Hg(n,d);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||Wg(h)===Wg(m)?(t[d]=Math.max(xt(Vg(h),Vg(m),i),0),(hr.test(m)||hr.test(h))&&(t[d]+="%")):t[d]=m}(e.rotate||n.rotate)&&(t.rotate=xt(e.rotate||0,n.rotate||0,i))}function Hg(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const _k=Ky(0,.5,vy),Ck=Ky(.5,.95,_t);function Ky(t,e,n){return i=>i<t?0:i>e?1:n(Ns(t,e,i))}function $g(t,e){t.min=e.min,t.max=e.max}function Vn(t,e){$g(t.x,e.x),$g(t.y,e.y)}function Ug(t,e,n,i,o){return t-=e,t=Nu(t,1/n,i),o!==void 0&&(t=Nu(t,1/o,i)),t}function Ek(t,e=0,n=1,i=.5,o,a=t,l=t){if(hr.test(e)&&(e=parseFloat(e),e=xt(l.min,l.max,e/100)-l.min),typeof e!="number")return;let d=xt(a.min,a.max,i);t===a&&(d-=e),t.min=Ug(t.min,e,n,d,o),t.max=Ug(t.max,e,n,d,o)}function zg(t,e,[n,i,o],a,l){Ek(t,e[n],e[i],e[o],e.scale,a,l)}const Tk=["x","scaleX","originX"],Ok=["y","scaleY","originY"];function qg(t,e,n,i){zg(t.x,e,Tk,n?n.x:void 0,i?i.x:void 0),zg(t.y,e,Ok,n?n.y:void 0,i?i.y:void 0)}function Yg(t){return t.translate===0&&t.scale===1}function Xy(t){return Yg(t.x)&&Yg(t.y)}function Pk(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Jy(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Gg(t){return On(t.x)/On(t.y)}class Ak{constructor(){this.members=[]}add(e){ed(this.members,e),e.scheduleRender()}remove(e){if(td(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){i=a;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Kg(t,e,n){let i="";const o=t.x.translate/e.x,a=t.y.translate/e.y;if((o||a)&&(i=`translate3d(${o}px, ${a}px, 0) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:h,rotateX:m,rotateY:b}=n;h&&(i+=`rotate(${h}deg) `),m&&(i+=`rotateX(${m}deg) `),b&&(i+=`rotateY(${b}deg) `)}const l=t.x.scale*e.x,d=t.y.scale*e.y;return(l!==1||d!==1)&&(i+=`scale(${l}, ${d})`),i||"none"}const kk=(t,e)=>t.depth-e.depth;class Dk{constructor(){this.children=[],this.isDirty=!1}add(e){ed(this.children,e),this.isDirty=!0}remove(e){td(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(kk),this.isDirty=!1,this.children.forEach(e)}}function Ik(t,e){const n=performance.now(),i=({timestamp:o})=>{const a=o-n;a>=e&&(Vr(i),t(a-e))};return vt.read(i,!0),()=>Vr(i)}function Rk(t){window.MotionDebug&&window.MotionDebug.record(t)}function Lk(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Mk(t,e,n){const i=dn(t)?t:Do(t);return i.start(Qf("",i,e,n)),i.animation}const Xg=["","X","Y","Z"],Nk={visibility:"hidden"},Jg=1e3;let jk=0;const Vi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Zy({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(l={},d=e==null?void 0:e()){this.id=jk++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Vi.totalNodes=Vi.resolvedTargetDeltas=Vi.recalculatedProjection=0,this.nodes.forEach(Vk),this.nodes.forEach(zk),this.nodes.forEach(qk),this.nodes.forEach(Wk),Rk(Vi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new Dk)}addEventListener(l,d){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new nd),this.eventHandlers.get(l).add(d)}notifyListeners(l,...d){const h=this.eventHandlers.get(l);h&&h.notify(...d)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Lk(l),this.instance=l;const{layoutId:h,layout:m,visualElement:b}=this.options;if(b&&!b.current&&b.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(m||h)&&(this.isLayoutDirty=!0),t){let w;const _=()=>this.root.updateBlockedByResize=!1;t(l,()=>{this.root.updateBlockedByResize=!0,w&&w(),w=Ik(_,250),yu.hasAnimatedSinceResize&&(yu.hasAnimatedSinceResize=!1,this.nodes.forEach(Qg))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&b&&(h||m)&&this.addEventListener("didUpdate",({delta:w,hasLayoutChanged:_,hasRelativeTargetChanged:E,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||b.getDefaultTransition()||Jk,{onLayoutAnimationStart:B,onLayoutAnimationComplete:k}=b.getProps(),F=!this.targetLayout||!Jy(this.targetLayout,I)||E,N=!_&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||N||_&&(F||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(w,N);const Y={...Zf(A,"layout"),onPlay:B,onComplete:k};(b.shouldReduceMotion||this.options.layoutRoot)&&(Y.delay=0,Y.type=!1),this.startAnimation(Y)}else _||Qg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=I})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Yk),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b<this.path.length;b++){const w=this.path[b];w.shouldResetTransform=!0,w.updateScroll("snapshot"),w.options.layoutRoot&&w.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Zg);return}this.isUpdating||this.nodes.forEach($k),this.isUpdating=!1,this.nodes.forEach(Uk),this.nodes.forEach(Bk),this.nodes.forEach(Fk),this.clearAllSnapshots();const d=performance.now();Ut.delta=mi(0,1e3/60,d-Ut.timestamp),Ut.timestamp=d,Ut.isProcessing=!0,Cc.update.process(Ut),Cc.preRender.process(Ut),Cc.render.process(Ut),Ut.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Hk),this.sharedNodes.forEach(Gk)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){vt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ot(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let d=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(d=!1),d&&(this.scroll={animationId:this.root.animationId,phase:l,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const l=this.isLayoutDirty||this.shouldResetTransform,d=this.projectionDelta&&!Xy(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,b=m!==this.prevTransformTemplateValue;l&&(d||Fi(this.latestValues)||b)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return l&&(h=this.removeTransform(h)),Zk(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Ot();const d=l.measureViewportBox(),{scroll:h}=this.root;return h&&(li(d.x,h.offset.x),li(d.y,h.offset.y)),d}removeElementScroll(l){const d=Ot();Vn(d,l);for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:b,options:w}=m;if(m!==this.root&&b&&w.layoutScroll){if(b.isRoot){Vn(d,l);const{scroll:_}=this.root;_&&(li(d.x,-_.offset.x),li(d.y,-_.offset.y))}li(d.x,b.offset.x),li(d.y,b.offset.y)}}return d}applyTransform(l,d=!1){const h=Ot();Vn(h,l);for(let m=0;m<this.path.length;m++){const b=this.path[m];!d&&b.options.layoutScroll&&b.scroll&&b!==b.root&&Ao(h,{x:-b.scroll.offset.x,y:-b.scroll.offset.y}),Fi(b.latestValues)&&Ao(h,b.latestValues)}return Fi(this.latestValues)&&Ao(h,this.latestValues),h}removeTransform(l){const d=Ot();Vn(d,l);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!Fi(m.latestValues))continue;yf(m.latestValues)&&m.updateSnapshot();const b=Ot(),w=m.measurePageBox();Vn(b,w),qg(d,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,b)}return Fi(this.latestValues)&&qg(d,this.latestValues),d}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ut.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var d;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(l||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:w,layoutId:_}=this.options;if(!(!this.layout||!(w||_))){if(this.resolvedRelativeTargetAt=Ut.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ot(),this.relativeTargetOrigin=Ot(),As(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Vn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ot(),this.targetWithTransforms=Ot()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),QA(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Vn(this.target,this.layout.layoutBox),Uy(this.target,this.targetDelta)):Vn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ot(),this.relativeTargetOrigin=Ot(),As(this.relativeTargetOrigin,this.target,E.target),Vn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Vi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||yf(this.parent.latestValues)||$y(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var l;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Ut.timestamp&&(m=!1),m)return;const{layout:b,layoutId:w}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(b||w))return;Vn(this.layoutCorrected,this.layout.layoutBox);const _=this.treeScale.x,E=this.treeScale.y;uk(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox);const{target:I}=d;if(!I){this.projectionTransform&&(this.projectionDelta=Po(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Po(),this.projectionDeltaWithTransform=Po());const A=this.projectionTransform;Ps(this.projectionDelta,this.layoutCorrected,I,this.latestValues),this.projectionTransform=Kg(this.projectionDelta,this.treeScale),(this.projectionTransform!==A||this.treeScale.x!==_||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I)),Vi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),l){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(l,d=!1){const h=this.snapshot,m=h?h.latestValues:{},b={...this.latestValues},w=Po();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const _=Ot(),E=h?h.source:void 0,I=this.layout?this.layout.source:void 0,A=E!==I,B=this.getStack(),k=!B||B.members.length<=1,F=!!(A&&!k&&this.options.crossfade===!0&&!this.path.some(Xk));this.animationProgress=0;let N;this.mixTargetDelta=Y=>{const $=Y/1e3;em(w.x,l.x,$),em(w.y,l.y,$),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(As(_,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Kk(this.relativeTarget,this.relativeTargetOrigin,_,$),N&&Pk(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=Ot()),Vn(N,this.relativeTarget)),A&&(this.animationValues=b,Sk(b,m,this.latestValues,$,F,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vt.update(()=>{yu.hasAnimatedSinceResize=!0,this.currentAnimation=Mk(0,Jg,{...l,onUpdate:d=>{this.mixTargetDelta(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Jg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:d,target:h,layout:m,latestValues:b}=l;if(!(!d||!h||!m)){if(this!==l&&this.layout&&m&&Qy(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||Ot();const w=On(this.layout.layoutBox.x);h.x.min=l.target.x.min,h.x.max=h.x.min+w;const _=On(this.layout.layoutBox.y);h.y.min=l.target.y.min,h.y.max=h.y.min+_}Vn(d,h),Ao(d,b),Ps(this.projectionDeltaWithTransform,this.layoutCorrected,d,b)}}registerSharedNode(l,d){this.sharedNodes.has(l)||this.sharedNodes.set(l,new Ak),this.sharedNodes.get(l).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(d):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:d}=this.options;return d?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:d}=this.options;return d?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:d,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),l&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetRotation(){const{visualElement:l}=this.options;if(!l)return;let d=!1;const{latestValues:h}=l;if((h.rotate||h.rotateX||h.rotateY||h.rotateZ)&&(d=!0),!d)return;const m={};for(let b=0;b<Xg.length;b++){const w="rotate"+Xg[b];h[w]&&(m[w]=h[w],l.setStaticValue(w,0))}l.render();for(const b in m)l.setStaticValue(b,m[b]);l.scheduleRender()}getProjectionStyles(l){var d,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Nk;const m={visibility:""},b=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=vu(l==null?void 0:l.pointerEvents)||"",m.transform=b?b(this.latestValues,""):"none",m;const w=this.getLead();if(!this.projectionDelta||!this.layout||!w.target){const A={};return this.options.layoutId&&(A.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,A.pointerEvents=vu(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Fi(this.latestValues)&&(A.transform=b?b({},""):"none",this.hasProjected=!1),A}const _=w.animationValues||w.latestValues;this.applyTransformsToTarget(),m.transform=Kg(this.projectionDeltaWithTransform,this.treeScale,_),b&&(m.transform=b(_,m.transform));const{x:E,y:I}=this.projectionDelta;m.transformOrigin=`${E.origin*100}% ${I.origin*100}% 0`,w.animationValues?m.opacity=w===this?(h=(d=_.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:_.opacityExit:m.opacity=w===this?_.opacity!==void 0?_.opacity:"":_.opacityExit!==void 0?_.opacityExit:0;for(const A in Au){if(_[A]===void 0)continue;const{correct:B,applyTo:k}=Au[A],F=m.transform==="none"?_[A]:B(_[A],w);if(k){const N=k.length;for(let Y=0;Y<N;Y++)m[k[Y]]=F}else m[A]=F}return this.options.layoutId&&(m.pointerEvents=w===this?vu(l==null?void 0:l.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var d;return(d=l.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(Zg),this.root.sharedNodes.clear()}}}function Bk(t){t.updateLayout()}function Fk(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=t.layout,{animationType:a}=t.options,l=n.source!==t.layout.source;a==="size"?Wn(w=>{const _=l?n.measuredBox[w]:n.layoutBox[w],E=On(_);_.min=i[w].min,_.max=_.min+E}):Qy(a,n.layoutBox,i)&&Wn(w=>{const _=l?n.measuredBox[w]:n.layoutBox[w],E=On(i[w]);_.max=_.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[w].max=t.relativeTarget[w].min+E)});const d=Po();Ps(d,i,n.layoutBox);const h=Po();l?Ps(h,t.applyTransform(o,!0),n.measuredBox):Ps(h,i,n.layoutBox);const m=!Xy(d);let b=!1;if(!t.resumeFrom){const w=t.getClosestProjectingParent();if(w&&!w.resumeFrom){const{snapshot:_,layout:E}=w;if(_&&E){const I=Ot();As(I,n.layoutBox,_.layoutBox);const A=Ot();As(A,i,E.layoutBox),Jy(I,A)||(b=!0),w.options.layoutRoot&&(t.relativeTarget=A,t.relativeTargetOrigin=I,t.relativeParent=w)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:h,layoutDelta:d,hasLayoutChanged:m,hasRelativeTargetChanged:b})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Vk(t){Vi.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Wk(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Hk(t){t.clearSnapshot()}function Zg(t){t.clearMeasurements()}function $k(t){t.isLayoutDirty=!1}function Uk(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Qg(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function zk(t){t.resolveTargetDelta()}function qk(t){t.calcProjection()}function Yk(t){t.resetRotation()}function Gk(t){t.removeLeadSnapshot()}function em(t,e,n){t.translate=xt(e.translate,0,n),t.scale=xt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function tm(t,e,n,i){t.min=xt(e.min,n.min,i),t.max=xt(e.max,n.max,i)}function Kk(t,e,n,i){tm(t.x,e.x,n.x,i),tm(t.y,e.y,n.y,i)}function Xk(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Jk={duration:.45,ease:[.4,0,.1,1]},nm=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),rm=nm("applewebkit/")&&!nm("chrome/")?Math.round:_t;function im(t){t.min=rm(t.min),t.max=rm(t.max)}function Zk(t){im(t.x),im(t.y)}function Qy(t,e,n){return t==="position"||t==="preserve-aspect"&&!mf(Gg(e),Gg(n),.2)}const Qk=Zy({attachResizeListener:(t,e)=>Lr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Mc={current:void 0},eb=Zy({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Mc.current){const t=new Qk({});t.mount(window),t.setOptions({layoutScroll:!0}),Mc.current=t}return Mc.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),eD={pan:{Feature:mk},drag:{Feature:gk,ProjectionNode:eb,MeasureLayout:Yy}},tD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nD(t){const e=tD.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}const rD=4;function wf(t,e,n=1){Jn(n<=rD,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,o]=nD(t);if(!i)return;const a=window.getComputedStyle(e).getPropertyValue(i);if(a){const l=a.trim();return Ny(l)?parseFloat(l):l}else return lf(o)?wf(o,e,n+1):o}function iD(t,{...e},n){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(o=>{const a=o.get();if(!lf(a))return;const l=wf(a,i);l&&o.set(l)});for(const o in e){const a=e[o];if(!lf(a))continue;const l=wf(a,i);l&&(e[o]=l,n||(n={}),n[o]===void 0&&(n[o]=a))}return{target:e,transitionEnd:n}}const oD=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tb=t=>oD.has(t),sD=t=>Object.keys(t).some(tb),du=t=>t===Zi||t===We,om=(t,e)=>parseFloat(t.split(", ")[e]),sm=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return om(o[1],e);{const a=i.match(/^matrix\((.+)\)$/);return a?om(a[1],t):0}},aD=new Set(["x","y","z"]),uD=Ws.filter(t=>!aD.has(t));function lD(t){const e=[];return uD.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Io={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:sm(4,13),y:sm(5,14)};Io.translateX=Io.x;Io.translateY=Io.y;const cD=(t,e,n)=>{const i=e.measureViewportBox(),o=e.current,a=getComputedStyle(o),{display:l}=a,d={};l==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(m=>{d[m]=Io[m](i,a)}),e.render();const h=e.measureViewportBox();return n.forEach(m=>{const b=e.getValue(m);b&&b.jump(d[m]),t[m]=Io[m](h,a)}),t},fD=(t,e,n={},i={})=>{e={...e},i={...i};const o=Object.keys(e).filter(tb);let a=[],l=!1;const d=[];if(o.forEach(h=>{const m=t.getValue(h);if(!t.hasValue(h))return;let b=n[h],w=Ss(b);const _=e[h];let E;if(Du(_)){const I=_.length,A=_[0]===null?1:0;b=_[A],w=Ss(b);for(let B=A;B<I&&_[B]!==null;B++)E?Jn(Ss(_[B])===E,"All keyframes must be of the same type"):(E=Ss(_[B]),Jn(E===w||du(w)&&du(E),"Keyframes must be of the same dimension as the current value"))}else E=Ss(_);if(w!==E)if(du(w)&&du(E)){const I=m.get();typeof I=="string"&&m.set(parseFloat(I)),typeof _=="string"?e[h]=parseFloat(_):Array.isArray(_)&&E===We&&(e[h]=_.map(parseFloat))}else w!=null&&w.transform&&(E!=null&&E.transform)&&(b===0||_===0)?b===0?m.set(E.transform(b)):e[h]=w.transform(_):(l||(a=lD(t),l=!0),d.push(h),i[h]=i[h]!==void 0?i[h]:e[h],m.jump(_))}),d.length){const h=d.indexOf("height")>=0?window.pageYOffset:null,m=cD(e,t,d);return a.length&&a.forEach(([b,w])=>{t.getValue(b).set(w)}),t.render(),zu&&h!==null&&window.scrollTo({top:h}),{target:m,transitionEnd:i}}else return{target:e,transitionEnd:i}};function dD(t,e,n,i){return sD(e)?fD(t,e,n,i):{target:e,transitionEnd:i}}const hD=(t,e,n,i)=>{const o=iD(t,e,i);return e=o.target,i=o.transitionEnd,dD(t,e,n,i)},xf={current:null},nb={current:!1};function pD(){if(nb.current=!0,!!zu)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>xf.current=t.matches;t.addListener(e),e()}else xf.current=!1}function gD(t,e,n){const{willChange:i}=e;for(const o in e){const a=e[o],l=n[o];if(dn(a))t.addValue(o,a),Mu(i)&&i.add(o),process.env.NODE_ENV==="development"&&rd(a.version==="10.18.0",`Attempting to mix Framer Motion versions ${a.version} with 10.18.0 may not work as expected.`);else if(dn(l))t.addValue(o,Do(a,{owner:t})),Mu(i)&&i.remove(o);else if(l!==a)if(t.hasValue(o)){const d=t.getValue(o);!d.hasAnimated&&d.set(a)}else{const d=t.getStaticValue(o);t.addValue(o,Do(d!==void 0?d:a,{owner:t}))}}for(const o in n)e[o]===void 0&&t.removeValue(o);return e}const am=new WeakMap,rb=Object.keys(Ms),mD=rb.length,um=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],vD=Vf.length;class yD{constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>vt.render(this.render,!1,!0);const{latestValues:d,renderState:h}=a;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=h,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=l,this.isControllingVariants=Yu(n),this.isVariantNode=Wv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:m,...b}=this.scrapeMotionValuesFromProps(n,{});for(const w in b){const _=b[w];d[w]!==void 0&&dn(_)&&(_.set(d[w],!1),Mu(m)&&m.add(w))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,am.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),nb.current||pD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xf.current,process.env.NODE_ENV!=="production"&&rd(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){am.delete(this.current),this.projection&&this.projection.unmount(),Vr(this.notifyUpdate),Vr(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const i=Ji.has(e),o=n.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&vt.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{o(),a()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},i,o,a){let l,d;if(process.env.NODE_ENV!=="production"&&o&&i){const h="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Us(!1,h):Jn(!1,h)}for(let h=0;h<mD;h++){const m=rb[h],{isEnabled:b,Feature:w,ProjectionNode:_,MeasureLayout:E}=Ms[m];_&&(l=_),b(n)&&(!this.features[m]&&w&&(this.features[m]=new w(this)),E&&(d=E))}if((this.type==="html"||this.type==="svg")&&!this.projection&&l){this.projection=new l(this.latestValues,this.parent&&this.parent.projection);const{layoutId:h,layout:m,drag:b,dragConstraints:w,layoutScroll:_,layoutRoot:E}=n;this.projection.setOptions({layoutId:h,layout:m,alwaysMeasureLayout:!!b||w&&To(w),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof m=="string"?m:"both",initialPromotionConfig:a,layoutScroll:_,layoutRoot:E})}return d}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ot()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<um.length;i++){const o=um[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a=e["on"+o];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=gD(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const i=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}const n={};for(let i=0;i<vD;i++){const o=Vf[i],a=this.props[o];(Ls(a)||a===!1)&&(n[o]=a)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Do(n,{owner:this}),this.addValue(e,i)),i}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props,o=typeof i=="string"||typeof i=="object"?(n=Yf(this.props,i))===null||n===void 0?void 0:n[e]:void 0;if(i&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,e);return a!==void 0&&!dn(a)?a:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new nd),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ib extends yD{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...i},{transformValues:o},a){let l=LA(i,e||{},this);if(o&&(n&&(n=o(n)),i&&(i=o(i)),l&&(l=o(l))),a){IA(this,i,l);const d=hD(this,i,l,n);n=d.transitionEnd,i=d.target}return{transition:e,transitionEnd:n,...i}}}function bD(t){return window.getComputedStyle(t)}class wD extends ib{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Ji.has(n)){const i=Jf(n);return i&&i.default||0}else{const i=bD(e),o=(qv(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return zy(e,n)}build(e,n,i,o){Hf(e,n,i,o.transformTemplate)}scrapeMotionValuesFromProps(e,n){return qf(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;dn(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,i,o){Zv(e,n,i,o)}}class xD extends ib{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ji.has(n)){const i=Jf(n);return i&&i.default||0}return n=Qv.has(n)?n:Bf(n),e.getAttribute(n)}measureInstanceViewportBox(){return Ot()}scrapeMotionValuesFromProps(e,n){return ty(e,n)}build(e,n,i,o){Uf(e,n,i,this.isSVGTag,o.transformTemplate)}renderInstance(e,n,i,o){ey(e,n,i,o)}mount(e){this.isSVGTag=zf(e.tagName),super.mount(e)}}const SD=(t,e)=>Wf(t)?new xD(e,{enableHardwareAcceleration:!1}):new wD(e,{enableHardwareAcceleration:!0}),_D={layout:{ProjectionNode:eb,MeasureLayout:Yy}},CD={...KA,...vP,...eD,..._D},ED=EO((t,e)=>iP(t,e,CD,SD));function Ro(){return Ro=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},Ro.apply(this,arguments)}const TD=Object.freeze(Object.defineProperty({__proto__:null,default:Ro},Symbol.toStringTag,{value:"Module"}));function ob(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,wu(t,e)}function Nc(t,e,n){if(n||arguments.length===2)for(var i=0,o=e.length,a;i<o;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return t.concat(a||Array.prototype.slice.call(e))}/*!
|
|
1
|
+
var vL=require("./index.css");const Hm=require("axios"),be=require("react/jsx-runtime"),te=require("react"),rC=require("moment"),ko=require("@mui/material");require("@r2wc/react-to-web-component");const $m=require("react-router-dom"),iC=require("react-query"),oC=require("react-dom");function sC(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 aC(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in t)){const a=Object.getOwnPropertyDescriptor(i,o);a&&Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const pt=sC(te),uC=`.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;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}.cancel-btn:hover{background:#C5C5C5}.confirm-btn{background:#e01b00!important}.confirm-btn:hover{background:#BE1700!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
|
|
2
|
+
`;function Um({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function i(o){var a;((a=o.target)==null?void 0:a.id)==="modal-wrapper"&&e()}return be.jsxs(be.Fragment,{children:[be.jsx("style",{type:"text/css",children:uC}),be.jsx("div",{onClick:i,className:"modal-overlay",id:"modal-wrapper",children:be.jsxs("div",{className:"modal-container",children:[be.jsx("h3",{className:"modal-title",children:"Log out"}),be.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),be.jsxs("div",{className:"modal-footer",children:[be.jsx("button",{className:"modal-button cancel-btn",onClick:e,children:"Cancel"}),be.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const fn={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 zm(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=zm(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function Rr(){for(var t,e,n=0,i="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=zm(t))&&(i&&(i+=" "),i+=e);return i}const ks=t=>typeof t=="number"&&!isNaN(t),Ui=t=>typeof t=="string",En=t=>typeof t=="function",gu=t=>Ui(t)||En(t)?t:null,ef=t=>te.isValidElement(t)||Ui(t)||En(t)||ks(t);function lC(t,e,n){n===void 0&&(n=300);const{scrollHeight:i,style:o}=t;requestAnimationFrame(()=>{o.minHeight="initial",o.height=i+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(e,n)})})}function Vu(t){let{enter:e,exit:n,appendPosition:i=!1,collapse:o=!0,collapseDuration:a=300}=t;return function(l){let{children:d,position:h,preventExitTransition:m,done:b,nodeRef:w,isIn:_,playToast:E}=l;const I=i?`${e}--${h}`:e,A=i?`${n}--${h}`:n,B=te.useRef(0);return te.useLayoutEffect(()=>{const k=w.current,F=I.split(" "),N=Y=>{Y.target===w.current&&(E(),k.removeEventListener("animationend",N),k.removeEventListener("animationcancel",N),B.current===0&&Y.type!=="animationcancel"&&k.classList.remove(...F))};k.classList.add(...F),k.addEventListener("animationend",N),k.addEventListener("animationcancel",N)},[]),te.useEffect(()=>{const k=w.current,F=()=>{k.removeEventListener("animationend",F),o?lC(k,b,a):b()};_||(m?F():(B.current=1,k.className+=` ${A}`,k.addEventListener("animationend",F)))},[_]),te.createElement(te.Fragment,null,d)}}function ap(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 Qt=new Map;let Ds=[];const tf=new Set,cC=t=>tf.forEach(e=>e(t)),qm=()=>Qt.size>0;function Ym(t,e){var n;if(e)return!((n=Qt.get(e))==null||!n.isToastActive(t));let i=!1;return Qt.forEach(o=>{o.isToastActive(t)&&(i=!0)}),i}function Gm(t,e){ef(t)&&(qm()||Ds.push({content:t,options:e}),Qt.forEach(n=>{n.buildToast(t,e)}))}function up(t,e){Qt.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 fC(t){const{subscribe:e,getSnapshot:n,setProps:i}=te.useRef(function(a){const l=a.containerId||1;return{subscribe(d){const h=function(b,w,_){let E=1,I=0,A=[],B=[],k=[],F=w;const N=new Map,Y=new Set,$=()=>{k=Array.from(N.values()),Y.forEach(ee=>ee())},ie=ee=>{B=ee==null?[]:B.filter(Z=>Z!==ee),$()},g=ee=>{const{toastId:Z,onOpen:we,updateId:He,children:Ae}=ee.props,Te=He==null;ee.staleId&&N.delete(ee.staleId),N.set(Z,ee),B=[...B,ee.props.toastId].filter(Le=>Le!==ee.staleId),$(),_(ap(ee,Te?"added":"updated")),Te&&En(we)&&we(te.isValidElement(Ae)&&Ae.props)};return{id:b,props:F,observe:ee=>(Y.add(ee),()=>Y.delete(ee)),toggle:(ee,Z)=>{N.forEach(we=>{Z!=null&&Z!==we.props.toastId||En(we.toggle)&&we.toggle(ee)})},removeToast:ie,toasts:N,clearQueue:()=>{I-=A.length,A=[]},buildToast:(ee,Z)=>{if((ve=>{let{containerId:me,toastId:ye,updateId:Pe}=ve;const Ce=me?me!==b:b!==1,Ie=N.has(ye)&&Pe==null;return Ce||Ie})(Z))return;const{toastId:we,updateId:He,data:Ae,staleId:Te,delay:Le}=Z,G=()=>{ie(we)},re=He==null;re&&I++;const de={...F,style:F.toastStyle,key:E++,...Object.fromEntries(Object.entries(Z).filter(ve=>{let[me,ye]=ve;return ye!=null})),toastId:we,updateId:He,data:Ae,closeToast:G,isIn:!1,className:gu(Z.className||F.toastClassName),bodyClassName:gu(Z.bodyClassName||F.bodyClassName),progressClassName:gu(Z.progressClassName||F.progressClassName),autoClose:!Z.isLoading&&(pe=Z.autoClose,ke=F.autoClose,pe===!1||ks(pe)&&pe>0?pe:ke),deleteToast(){const ve=N.get(we),{onClose:me,children:ye}=ve.props;En(me)&&me(te.isValidElement(ye)&&ye.props),_(ap(ve,"removed")),N.delete(we),I--,I<0&&(I=0),A.length>0?g(A.shift()):$()}};var pe,ke;de.closeButton=F.closeButton,Z.closeButton===!1||ef(Z.closeButton)?de.closeButton=Z.closeButton:Z.closeButton===!0&&(de.closeButton=!ef(F.closeButton)||F.closeButton);let Q=ee;te.isValidElement(ee)&&!Ui(ee.type)?Q=te.cloneElement(ee,{closeToast:G,toastProps:de,data:Ae}):En(ee)&&(Q=ee({closeToast:G,toastProps:de,data:Ae}));const ae={content:Q,props:de,staleId:Te};F.limit&&F.limit>0&&I>F.limit&&re?A.push(ae):ks(Le)?setTimeout(()=>{g(ae)},Le):g(ae)},setProps(ee){F=ee},setToggle:(ee,Z)=>{N.get(ee).toggle=Z},isToastActive:ee=>B.some(Z=>Z===ee),getSnapshot:()=>F.newestOnTop?k.reverse():k}}(l,a,cC);Qt.set(l,h);const m=h.observe(d);return Ds.forEach(b=>Gm(b.content,b.options)),Ds=[],()=>{m(),Qt.delete(l)}},setProps(d){var h;(h=Qt.get(l))==null||h.setProps(d)},getSnapshot(){var d;return(d=Qt.get(l))==null?void 0:d.getSnapshot()}}}(t)).current;i(t);const o=te.useSyncExternalStore(e,n,n);return{getToastToRender:function(a){if(!o)return[];const l=new Map;return o.forEach(d=>{const{position:h}=d.props;l.has(h)||l.set(h,[]),l.get(h).push(d)}),Array.from(l,d=>a(d[0],d[1]))},isToastActive:Ym,count:o==null?void 0:o.length}}function dC(t){const[e,n]=te.useState(!1),[i,o]=te.useState(!1),a=te.useRef(null),l=te.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:d,pauseOnHover:h,closeToast:m,onClick:b,closeOnClick:w}=t;var _,E;function I(){n(!0)}function A(){n(!1)}function B(N){const Y=a.current;l.canDrag&&Y&&(l.didMove=!0,e&&A(),l.delta=t.draggableDirection==="x"?N.clientX-l.start:N.clientY-l.start,l.start!==N.clientX&&(l.canCloseOnClick=!1),Y.style.transform=`translate3d(${t.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`},0)`,Y.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function k(){document.removeEventListener("pointermove",B),document.removeEventListener("pointerup",k);const N=a.current;if(l.canDrag&&l.didMove&&N){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return o(!0),t.closeToast(),void t.collapseAll();N.style.transition="transform 0.2s, opacity 0.2s",N.style.removeProperty("transform"),N.style.removeProperty("opacity")}}(E=Qt.get((_={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||E.setToggle(_.id,_.fn),te.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||A(),window.addEventListener("focus",I),window.addEventListener("blur",A),()=>{window.removeEventListener("focus",I),window.removeEventListener("blur",A)}},[t.pauseOnFocusLoss]);const F={onPointerDown:function(N){if(t.draggable===!0||t.draggable===N.pointerType){l.didMove=!1,document.addEventListener("pointermove",B),document.addEventListener("pointerup",k);const Y=a.current;l.canCloseOnClick=!0,l.canDrag=!0,Y.style.transition="none",t.draggableDirection==="x"?(l.start=N.clientX,l.removalDistance=Y.offsetWidth*(t.draggablePercent/100)):(l.start=N.clientY,l.removalDistance=Y.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(N){const{top:Y,bottom:$,left:ie,right:g}=a.current.getBoundingClientRect();N.nativeEvent.type!=="touchend"&&t.pauseOnHover&&N.clientX>=ie&&N.clientX<=g&&N.clientY>=Y&&N.clientY<=$?A():I()}};return d&&h&&(F.onMouseEnter=A,t.stacked||(F.onMouseLeave=I)),w&&(F.onClick=N=>{b&&b(N),l.canCloseOnClick&&m()}),{playToast:I,pauseToast:A,isRunning:e,preventExitTransition:i,toastRef:a,eventHandlers:F}}function hC(t){let{delay:e,isRunning:n,closeToast:i,type:o="default",hide:a,className:l,style:d,controlledProgress:h,progress:m,rtl:b,isIn:w,theme:_}=t;const E=a||h&&m===0,I={...d,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};h&&(I.transform=`scaleX(${m})`);const A=Rr("Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${_}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":b}),B=En(l)?l({rtl:b,type:o,defaultClassName:A}):Rr(A,l),k={[h&&m>=1?"onTransitionEnd":"onAnimationEnd"]:h&&m<1?null:()=>{w&&i()}};return te.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":E},te.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${_} Toastify__progress-bar--${o}`}),te.createElement("div",{role:"progressbar","aria-hidden":E?"true":"false","aria-label":"notification timer",className:B,style:I,...k}))}let pC=1;const Km=()=>""+pC++;function gC(t){return t&&(Ui(t.toastId)||ks(t.toastId))?t.toastId:Km()}function Es(t,e){return Gm(t,e),e.toastId}function bu(t,e){return{...e,type:e&&e.type||t,toastId:gC(e)}}function nu(t){return(e,n)=>Es(e,bu(t,n))}function ft(t,e){return Es(t,bu("default",e))}ft.loading=(t,e)=>Es(t,bu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),ft.promise=function(t,e,n){let i,{pending:o,error:a,success:l}=e;o&&(i=Ui(o)?ft.loading(o,n):ft.loading(o.render,{...n,...o}));const d={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},h=(b,w,_)=>{if(w==null)return void ft.dismiss(i);const E={type:b,...d,...n,data:_},I=Ui(w)?{render:w}:w;return i?ft.update(i,{...E,...I}):ft(I.render,{...E,...I}),_},m=En(t)?t():t;return m.then(b=>h("success",l,b)).catch(b=>h("error",a,b)),m},ft.success=nu("success"),ft.info=nu("info"),ft.error=nu("error"),ft.warning=nu("warning"),ft.warn=ft.warning,ft.dark=(t,e)=>Es(t,bu("default",{theme:"dark",...e})),ft.dismiss=function(t){(function(e){var n;if(qm()){if(e==null||Ui(n=e)||ks(n))Qt.forEach(o=>{o.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var i;(i=Qt.get(e.containerId))!=null&&i.removeToast(e.id)||Qt.forEach(o=>{o.removeToast(e.id)})}}else Ds=Ds.filter(o=>e!=null&&o.options.toastId!==e)})(t)},ft.clearWaitingQueue=function(t){t===void 0&&(t={}),Qt.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},ft.isActive=Ym,ft.update=function(t,e){e===void 0&&(e={});const n=((i,o)=>{var a;let{containerId:l}=o;return(a=Qt.get(l||1))==null?void 0:a.toasts.get(i)})(t,e);if(n){const{props:i,content:o}=n,a={delay:100,...i,...e,toastId:e.toastId||t,updateId:Km()};a.toastId!==t&&(a.staleId=t);const l=a.render||o;delete a.render,Es(l,a)}},ft.done=t=>{ft.update(t,{progress:1})},ft.onChange=function(t){return tf.add(t),()=>{tf.delete(t)}},ft.play=t=>up(!0,t),ft.pause=t=>up(!1,t);const mC=typeof window<"u"?te.useLayoutEffect:te.useEffect,ru=t=>{let{theme:e,type:n,isLoading:i,...o}=t;return te.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},yc={info:function(t){return te.createElement(ru,{...t},te.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 te.createElement(ru,{...t},te.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 te.createElement(ru,{...t},te.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 te.createElement(ru,{...t},te.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 te.createElement("div",{className:"Toastify__spinner"})}},vC=t=>{const{isRunning:e,preventExitTransition:n,toastRef:i,eventHandlers:o,playToast:a}=dC(t),{closeButton:l,children:d,autoClose:h,onClick:m,type:b,hideProgressBar:w,closeToast:_,transition:E,position:I,className:A,style:B,bodyClassName:k,bodyStyle:F,progressClassName:N,progressStyle:Y,updateId:$,role:ie,progress:g,rtl:ee,toastId:Z,deleteToast:we,isIn:He,isLoading:Ae,closeOnClick:Te,theme:Le}=t,G=Rr("Toastify__toast",`Toastify__toast-theme--${Le}`,`Toastify__toast--${b}`,{"Toastify__toast--rtl":ee},{"Toastify__toast--close-on-click":Te}),re=En(A)?A({rtl:ee,position:I,type:b,defaultClassName:G}):Rr(G,A),de=function(ae){let{theme:ve,type:me,isLoading:ye,icon:Pe}=ae,Ce=null;const Ie={theme:ve,type:me};return Pe===!1||(En(Pe)?Ce=Pe({...Ie,isLoading:ye}):te.isValidElement(Pe)?Ce=te.cloneElement(Pe,Ie):ye?Ce=yc.spinner():(je=>je in yc)(me)&&(Ce=yc[me](Ie))),Ce}(t),pe=!!g||!h,ke={closeToast:_,type:b,theme:Le};let Q=null;return l===!1||(Q=En(l)?l(ke):te.isValidElement(l)?te.cloneElement(l,ke):function(ae){let{closeToast:ve,theme:me,ariaLabel:ye="close"}=ae;return te.createElement("button",{className:`Toastify__close-button Toastify__close-button--${me}`,type:"button",onClick:Pe=>{Pe.stopPropagation(),ve(Pe)},"aria-label":ye},te.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},te.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"})))}(ke)),te.createElement(E,{isIn:He,done:we,position:I,preventExitTransition:n,nodeRef:i,playToast:a},te.createElement("div",{id:Z,onClick:m,"data-in":He,className:re,...o,style:B,ref:i},te.createElement("div",{...He&&{role:ie},className:En(k)?k({type:b}):Rr("Toastify__toast-body",k),style:F},de!=null&&te.createElement("div",{className:Rr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ae})},de),te.createElement("div",null,d)),Q,te.createElement(hC,{...$&&!pe?{key:`pb-${$}`}:{},rtl:ee,theme:Le,delay:h,isRunning:e,isIn:He,closeToast:_,hide:w,type:b,style:Y,className:N,controlledProgress:pe,progress:g||0})))},Wu=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},yC=Vu(Wu("bounce",!0));Vu(Wu("slide",!0));Vu(Wu("zoom"));Vu(Wu("flip"));const bC={position:"top-right",transition:yC,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function wC(t){let e={...bC,...t};const n=t.stacked,[i,o]=te.useState(!0),a=te.useRef(null),{getToastToRender:l,isToastActive:d,count:h}=fC(e),{className:m,style:b,rtl:w,containerId:_}=e;function E(A){const B=Rr("Toastify__toast-container",`Toastify__toast-container--${A}`,{"Toastify__toast-container--rtl":w});return En(m)?m({position:A,rtl:w,defaultClassName:B}):Rr(B,gu(m))}function I(){n&&(o(!0),ft.play())}return mC(()=>{if(n){var A;const B=a.current.querySelectorAll('[data-in="true"]'),k=12,F=(A=e.position)==null?void 0:A.includes("top");let N=0,Y=0;Array.from(B).reverse().forEach(($,ie)=>{const g=$;g.classList.add("Toastify__toast--stacked"),ie>0&&(g.dataset.collapsed=`${i}`),g.dataset.pos||(g.dataset.pos=F?"top":"bot");const ee=N*(i?.2:1)+(i?0:k*ie);g.style.setProperty("--y",`${F?ee:-1*ee}px`),g.style.setProperty("--g",`${k}`),g.style.setProperty("--s",""+(1-(i?Y:0))),N+=g.offsetHeight,Y+=.025})}},[i,h,n]),te.createElement("div",{ref:a,className:"Toastify",id:_,onMouseEnter:()=>{n&&(o(!1),ft.pause())},onMouseLeave:I},l((A,B)=>{const k=B.length?{...b}:{...b,pointerEvents:"none"};return te.createElement("div",{className:E(A),style:k,key:`container-${A}`},B.map(F=>{let{content:N,props:Y}=F;return te.createElement(vC,{...Y,stacked:n,collapseAll:I,isIn:d(Y.toastId,Y.containerId),style:Y.style,key:`toast-${Y.key}`},N)}))}))}function xC(){return be.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.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"}),be.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),be.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function SC(){return be.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),be.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function _C(){return be.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.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"}),be.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 Df={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},CC=({closeToast:t})=>be.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:be.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:be.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"})})}),EC=t=>{ft.success(t,{icon:be.jsx(SC,{}),bodyStyle:{},position:"bottom-right",style:{...Df,background:fn.successLight,borderColor:fn.success,color:fn.success}})},If=t=>{ft.error(t,{icon:be.jsx(xC,{}),position:"bottom-right",style:{...Df,background:fn.dangerLight,borderColor:fn.danger,color:fn.danger}})},TC=t=>{ft.error(t,{icon:be.jsx(_C,{}),position:"bottom-right",style:{...Df,background:fn.warningLight,borderColor:fn.warning,color:fn.warning}})},OC=t=>{ft(t,{closeButton:CC,toastId:"notify",position:"top-right",closeOnClick:!1,hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:fn.textPrimary}})},lp=window.location.href,Xm=te.createContext({}),PC=({children:t,baseUrl:e,userData:n})=>{const i=()=>{window.location.href=`${e}/authentication/login?callbackUrl=${lp}`},o=()=>{window.location.href=`${e}/authentication/logout?callbackUrl=${lp}`};return n!=null&&n.isFetching?be.jsx(ko.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:be.jsx(ko.CircularProgress,{})}):be.jsx(Xm.Provider,{value:{user:n==null?void 0:n.data,login:i,logout:o},children:t})},AC=()=>{const{login:t,logout:e,user:n}=te.useContext(Xm);return{login:t,logout:e,user:n}},kC={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},cp=t=>{window.location.href=`${t}/authentication/login?callbackUrl=${window.location.href}`},DC=t=>{window.location.href=`${t}/authentication/logout?callbackUrl=${window.location.href}`};function Tn(t){"@babel/helpers - typeof";return Tn=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},Tn(t)}function Pn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function IC(t,e){if(Tn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Tn(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Jm(t){var e=IC(t,"string");return Tn(e)=="symbol"?e:String(e)}function fp(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,Jm(i.key),i)}}function An(t,e,n){return e&&fp(t.prototype,e),n&&fp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Mr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wu(t,e){return wu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},wu(t,e)}function Hu(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&&wu(t,e)}function Fs(t,e){if(e&&(Tn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mr(t)}function pr(t){return pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pr(t)}function gr(t,e,n){return e=Jm(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zm(t){if(Array.isArray(t))return t}function RC(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dp(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 Qm(t,e){if(t){if(typeof t=="string")return dp(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 dp(t,e)}}function ev(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LC(t){return Zm(t)||RC(t)||Qm(t)||ev()}function hp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function pp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var MC={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)}},NC=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Pn(this,t),this.init(e,n)}return An(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||MC,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),o=0;o<n;o++)i[o]=arguments[o];return this.forward(i,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return this.forward(i,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return this.forward(i,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,i,o,a){return a&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(o).concat(this.prefix," ").concat(n[0])),this.logger[i](n))}},{key:"create",value:function(n){return new t(this.logger,pp(pp({},{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}(),dr=new NC,gi=function(){function t(){Pn(this,t),this.observers={}}return An(t,[{key:"on",value:function(n,i){var o=this;return n.split(" ").forEach(function(a){o.observers[a]=o.observers[a]||[],o.observers[a].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(o){return o!==i})}}},{key:"emit",value:function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(this.observers[n]){var l=[].concat(this.observers[n]);l.forEach(function(h){h.apply(void 0,o)})}if(this.observers["*"]){var d=[].concat(this.observers["*"]);d.forEach(function(h){h.apply(h,[n].concat(o))})}}}]),t}();function ys(){var t,e,n=new Promise(function(i,o){t=i,e=o});return n.resolve=t,n.reject=e,n}function gp(t){return t==null?"":""+t}function jC(t,e,n){t.forEach(function(i){e[i]&&(n[i]=e[i])})}function Rf(t,e,n){function i(d){return d&&d.indexOf("###")>-1?d.replace(/###/g,"."):d}function o(){return!t||typeof t=="string"}for(var a=typeof e!="string"?[].concat(e):e.split(".");a.length>1;){if(o())return{};var l=i(a.shift());!t[l]&&n&&(t[l]=new n),Object.prototype.hasOwnProperty.call(t,l)?t=t[l]:t={}}return o()?{}:{obj:t,k:i(a.shift())}}function mp(t,e,n){var i=Rf(t,e,Object),o=i.obj,a=i.k;o[a]=n}function BC(t,e,n,i){var o=Rf(t,e,Object),a=o.obj,l=o.k;a[l]=a[l]||[],i&&(a[l]=a[l].concat(n)),i||a[l].push(n)}function xu(t,e){var n=Rf(t,e),i=n.obj,o=n.k;if(i)return i[o]}function FC(t,e,n){var i=xu(t,n);return i!==void 0?i:xu(e,n)}function tv(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]):tv(t[i],e[i],n):t[i]=e[i]);return t}function xo(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var VC={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function WC(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return VC[e]}):t}var $u=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,HC=[" ",",","?","!",";"];function $C(t,e,n){e=e||"",n=n||"";var i=HC.filter(function(d){return e.indexOf(d)<0&&n.indexOf(d)<0});if(i.length===0)return!0;var o=new RegExp("(".concat(i.map(function(d){return d==="?"?"\\?":d}).join("|"),")")),a=!o.test(t);if(!a){var l=t.indexOf(n);l>0&&!o.test(t.substring(0,l))&&(a=!0)}return a}function Su(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),o=t,a=0;a<i.length;++a){if(!o||typeof o[i[a]]=="string"&&a+1<i.length)return;if(o[i[a]]===void 0){for(var l=2,d=i.slice(a,a+l).join(n),h=o[d];h===void 0&&i.length>a+l;)l++,d=i.slice(a,a+l).join(n),h=o[d];if(h===void 0)return;if(h===null)return null;if(e.endsWith(d)){if(typeof h=="string")return h;if(d&&typeof h[d]=="string")return h[d]}var m=i.slice(a+l).join(n);return m?Su(h,m,n):void 0}o=o[i[a]]}return o}}function vp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function iu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function UC(t){var e=zC();return function(){var i=pr(t),o;if(e){var a=pr(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Fs(this,o)}}function zC(){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 qC=function(t){Hu(n,t);var e=UC(n);function n(i){var o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Pn(this,n),o=e.call(this),$u&&gi.call(Mr(o)),o.data=i||{},o.options=a,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.options.ignoreJSONStructure===void 0&&(o.options.ignoreJSONStructure=!0),o}return An(n,[{key:"addNamespaces",value:function(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}},{key:"removeNamespaces",value:function(o){var a=this.options.ns.indexOf(o);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(o,a,l){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,m=d.ignoreJSONStructure!==void 0?d.ignoreJSONStructure:this.options.ignoreJSONStructure,b=[o,a];l&&typeof l!="string"&&(b=b.concat(l)),l&&typeof l=="string"&&(b=b.concat(h?l.split(h):l)),o.indexOf(".")>-1&&(b=o.split("."));var w=xu(this.data,b);return w||!m||typeof l!="string"?w:Su(this.data&&this.data[o]&&this.data[o][a],l,h)}},{key:"addResource",value:function(o,a,l,d){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},m=h.keySeparator!==void 0?h.keySeparator:this.options.keySeparator,b=[o,a];l&&(b=b.concat(m?l.split(m):l)),o.indexOf(".")>-1&&(b=o.split("."),d=a,a=b[1]),this.addNamespaces(a),mp(this.data,b,d),h.silent||this.emit("added",o,a,l,d)}},{key:"addResources",value:function(o,a,l){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var h in l)(typeof l[h]=="string"||Object.prototype.toString.apply(l[h])==="[object Array]")&&this.addResource(o,a,h,l[h],{silent:!0});d.silent||this.emit("added",o,a,l)}},{key:"addResourceBundle",value:function(o,a,l,d,h){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},b=[o,a];o.indexOf(".")>-1&&(b=o.split("."),d=l,l=a,a=b[1]),this.addNamespaces(a);var w=xu(this.data,b)||{};d?tv(w,l,h):w=iu(iu({},w),l),mp(this.data,b,w),m.silent||this.emit("added",o,a,l)}},{key:"removeResourceBundle",value:function(o,a){this.hasResourceBundle(o,a)&&delete this.data[o][a],this.removeNamespaces(a),this.emit("removed",o,a)}},{key:"hasResourceBundle",value:function(o,a){return this.getResource(o,a)!==void 0}},{key:"getResourceBundle",value:function(o,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?iu(iu({},{}),this.getResource(o,a)):this.getResource(o,a)}},{key:"getDataByLanguage",value:function(o){return this.data[o]}},{key:"hasLanguageSomeTranslations",value:function(o){var a=this.getDataByLanguage(o),l=a&&Object.keys(a)||[];return!!l.find(function(d){return a[d]&&Object.keys(a[d]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(gi),nv={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,i,o,a){var l=this;return e.forEach(function(d){l.processors[d]&&(n=l.processors[d].process(n,i,o,a))}),n}};function yp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function $t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function YC(t){var e=GC();return function(){var i=pr(t),o;if(e){var a=pr(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Fs(this,o)}}function GC(){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 bp={},wp=function(t){Hu(n,t);var e=YC(n);function n(i){var o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Pn(this,n),o=e.call(this),$u&&gi.call(Mr(o)),jC(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,Mr(o)),o.options=a,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.logger=dr.create("translator"),o}return An(n,[{key:"changeLanguage",value:function(o){o&&(this.language=o)}},{key:"exists",value:function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(o==null)return!1;var l=this.resolve(o,a);return l&&l.res!==void 0}},{key:"extractFromKey",value:function(o,a){var l=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");var d=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,h=a.ns||this.options.defaultNS||[],m=l&&o.indexOf(l)>-1,b=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!$C(o,l,d);if(m&&!b){var w=o.match(this.interpolator.nestingRegexp);if(w&&w.length>0)return{key:o,namespaces:h};var _=o.split(l);(l!==d||l===d&&this.options.ns.indexOf(_[0])>-1)&&(h=_.shift()),o=_.join(d)}return typeof h=="string"&&(h=[h]),{key:o,namespaces:h}}},{key:"translate",value:function(o,a,l){var d=this;if(Tn(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),Tn(a)==="object"&&(a=$t({},a)),a||(a={}),o==null)return"";Array.isArray(o)||(o=[String(o)]);var h=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,m=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,b=this.extractFromKey(o[o.length-1],a),w=b.key,_=b.namespaces,E=_[_.length-1],I=a.lng||this.language,A=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(I&&I.toLowerCase()==="cimode"){if(A){var B=a.nsSeparator||this.options.nsSeparator;return h?{res:"".concat(E).concat(B).concat(w),usedKey:w,exactUsedKey:w,usedLng:I,usedNS:E}:"".concat(E).concat(B).concat(w)}return h?{res:w,usedKey:w,exactUsedKey:w,usedLng:I,usedNS:E}:w}var k=this.resolve(o,a),F=k&&k.res,N=k&&k.usedKey||w,Y=k&&k.exactUsedKey||w,$=Object.prototype.toString.apply(F),ie=["[object Number]","[object Function]","[object RegExp]"],g=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,ee=!this.i18nFormat||this.i18nFormat.handleAsObject,Z=typeof F!="string"&&typeof F!="boolean"&&typeof F!="number";if(ee&&F&&Z&&ie.indexOf($)<0&&!(typeof g=="string"&&$==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var we=this.options.returnedObjectHandler?this.options.returnedObjectHandler(N,F,$t($t({},a),{},{ns:_})):"key '".concat(w," (").concat(this.language,")' returned an object instead of string.");return h?(k.res=we,k):we}if(m){var He=$==="[object Array]",Ae=He?[]:{},Te=He?Y:N;for(var Le in F)if(Object.prototype.hasOwnProperty.call(F,Le)){var G="".concat(Te).concat(m).concat(Le);Ae[Le]=this.translate(G,$t($t({},a),{joinArrays:!1,ns:_})),Ae[Le]===G&&(Ae[Le]=F[Le])}F=Ae}}else if(ee&&typeof g=="string"&&$==="[object Array]")F=F.join(g),F&&(F=this.extendTranslation(F,o,a,l));else{var re=!1,de=!1,pe=a.count!==void 0&&typeof a.count!="string",ke=n.hasDefaultValue(a),Q=pe?this.pluralResolver.getSuffix(I,a.count,a):"",ae=a["defaultValue".concat(Q)]||a.defaultValue;!this.isValidLookup(F)&&ke&&(re=!0,F=ae),this.isValidLookup(F)||(de=!0,F=w);var ve=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,me=ve&&de?void 0:F,ye=ke&&ae!==F&&this.options.updateMissing;if(de||re||ye){if(this.logger.log(ye?"updateKey":"missingKey",I,E,w,ye?ae:F),m){var Pe=this.resolve(w,$t($t({},a),{},{keySeparator:!1}));Pe&&Pe.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 Ce=[],Ie=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ie&&Ie[0])for(var je=0;je<Ie.length;je++)Ce.push(Ie[je]);else this.options.saveMissingTo==="all"?Ce=this.languageUtils.toResolveHierarchy(a.lng||this.language):Ce.push(a.lng||this.language);var $e=function(Xe,ge,gt){var ht=ke&>!==F?gt:me;d.options.missingKeyHandler?d.options.missingKeyHandler(Xe,E,ge,ht,ye,a):d.backendConnector&&d.backendConnector.saveMissing&&d.backendConnector.saveMissing(Xe,E,ge,ht,ye,a),d.emit("missingKey",Xe,E,ge,F)};this.options.saveMissing&&(this.options.saveMissingPlurals&&pe?Ce.forEach(function(Me){d.pluralResolver.getSuffixes(Me,a).forEach(function(Xe){$e([Me],w+Xe,a["defaultValue".concat(Xe)]||ae)})}):$e(Ce,w,ae))}F=this.extendTranslation(F,o,a,k,l),de&&F===w&&this.options.appendNamespaceToMissingKey&&(F="".concat(E,":").concat(w)),(de||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?F=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(E,":").concat(w):w,re?F:void 0):F=this.options.parseMissingKeyHandler(F))}return h?(k.res=F,k):F}},{key:"extendTranslation",value:function(o,a,l,d,h){var m=this;if(this.i18nFormat&&this.i18nFormat.parse)o=this.i18nFormat.parse(o,$t($t({},this.options.interpolation.defaultVariables),l),d.usedLng,d.usedNS,d.usedKey,{resolved:d});else if(!l.skipInterpolation){l.interpolation&&this.interpolator.init($t($t({},l),{interpolation:$t($t({},this.options.interpolation),l.interpolation)}));var b=typeof o=="string"&&(l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),w;if(b){var _=o.match(this.interpolator.nestingRegexp);w=_&&_.length}var E=l.replace&&typeof l.replace!="string"?l.replace:l;if(this.options.interpolation.defaultVariables&&(E=$t($t({},this.options.interpolation.defaultVariables),E)),o=this.interpolator.interpolate(o,E,l.lng||this.language,l),b){var I=o.match(this.interpolator.nestingRegexp),A=I&&I.length;w<A&&(l.nest=!1)}!l.lng&&this.options.compatibilityAPI!=="v1"&&d&&d.res&&(l.lng=d.usedLng),l.nest!==!1&&(o=this.interpolator.nest(o,function(){for(var F=arguments.length,N=new Array(F),Y=0;Y<F;Y++)N[Y]=arguments[Y];return h&&h[0]===N[0]&&!l.context?(m.logger.warn("It seems you are nesting recursively key: ".concat(N[0]," in key: ").concat(a[0])),null):m.translate.apply(m,N.concat([a]))},l)),l.interpolation&&this.interpolator.reset()}var B=l.postProcess||this.options.postProcess,k=typeof B=="string"?[B]:B;return o!=null&&k&&k.length&&l.applyPostProcessor!==!1&&(o=nv.handle(k,o,a,this.options&&this.options.postProcessPassResolved?$t({i18nResolved:d},l):l,this)),o}},{key:"resolve",value:function(o){var a=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,h,m,b,w;return typeof o=="string"&&(o=[o]),o.forEach(function(_){if(!a.isValidLookup(d)){var E=a.extractFromKey(_,l),I=E.key;h=I;var A=E.namespaces;a.options.fallbackNS&&(A=A.concat(a.options.fallbackNS));var B=l.count!==void 0&&typeof l.count!="string",k=B&&!l.ordinal&&l.count===0&&a.pluralResolver.shouldUseIntlApi(),F=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",N=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);A.forEach(function(Y){a.isValidLookup(d)||(w=Y,!bp["".concat(N[0],"-").concat(Y)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(w)&&(bp["".concat(N[0],"-").concat(Y)]=!0,a.logger.warn('key "'.concat(h,'" for languages "').concat(N.join(", "),`" won't get resolved as namespace "`).concat(w,'" 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!!!")),N.forEach(function($){if(!a.isValidLookup(d)){b=$;var ie=[I];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(ie,I,$,Y,l);else{var g;B&&(g=a.pluralResolver.getSuffix($,l.count,l));var ee="".concat(a.options.pluralSeparator,"zero");if(B&&(ie.push(I+g),k&&ie.push(I+ee)),F){var Z="".concat(I).concat(a.options.contextSeparator).concat(l.context);ie.push(Z),B&&(ie.push(Z+g),k&&ie.push(Z+ee))}}for(var we;we=ie.pop();)a.isValidLookup(d)||(m=we,d=a.getResource($,Y,we,l))}}))})}}),{res:d,usedKey:h,exactUsedKey:m,usedLng:b,usedNS:w}}},{key:"isValidLookup",value:function(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}},{key:"getResource",value:function(o,a,l){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(o,a,l,d):this.resourceStore.getResource(o,a,l,d)}}],[{key:"hasDefaultValue",value:function(o){var a="defaultValue";for(var l in o)if(Object.prototype.hasOwnProperty.call(o,l)&&a===l.substring(0,a.length)&&o[l]!==void 0)return!0;return!1}}]),n}(gi);function bc(t){return t.charAt(0).toUpperCase()+t.slice(1)}var xp=function(){function t(e){Pn(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dr.create("languageUtils")}return An(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"],o=n.split("-");return this.options.lowerCaseLng?o=o.map(function(a){return a.toLowerCase()}):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),i.indexOf(o[1].toLowerCase())>-1&&(o[1]=bc(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),i.indexOf(o[1].toLowerCase())>-1&&(o[1]=bc(o[1].toLowerCase())),i.indexOf(o[2].toLowerCase())>-1&&(o[2]=bc(o[2].toLowerCase()))),o.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 o;return n.forEach(function(a){if(!o){var l=i.formatLanguageCode(a);(!i.options.supportedLngs||i.isSupportedCode(l))&&(o=l)}}),!o&&this.options.supportedLngs&&n.forEach(function(a){if(!o){var l=i.getLanguagePartFromCode(a);if(i.isSupportedCode(l))return o=l;o=i.options.supportedLngs.find(function(d){if(d===l)return d;if(!(d.indexOf("-")<0&&l.indexOf("-")<0)&&d.indexOf(l)===0)return d})}}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}},{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 o=n[i];return o||(o=n[this.getScriptPartFromCode(i)]),o||(o=n[this.formatLanguageCode(i)]),o||(o=n[this.getLanguagePartFromCode(i)]),o||(o=n.default),o||[]}},{key:"toResolveHierarchy",value:function(n,i){var o=this,a=this.getFallbackCodes(i||this.options.fallbackLng||[],n),l=[],d=function(m){m&&(o.isSupportedCode(m)?l.push(m):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(m)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(n))):typeof n=="string"&&d(this.formatLanguageCode(n)),a.forEach(function(h){l.indexOf(h)<0&&d(o.formatLanguageCode(h))}),l}}]),t}(),KC=[{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}],XC={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}},JC=["v1","v2","v3"],Sp={zero:0,one:1,two:2,few:3,many:4,other:5};function ZC(){var t={};return KC.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:XC[e.fc]}})}),t}var QC=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Pn(this,t),this.languageUtils=e,this.options=n,this.logger=dr.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=ZC()}return An(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]:{},o=this.getRule(n,i);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,i){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,o).map(function(a){return"".concat(i).concat(a)})}},{key:"getSuffixes",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(n,o);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(l,d){return Sp[l]-Sp[d]}).map(function(l){return"".concat(i.options.prepend).concat(l)}):a.numbers.map(function(l){return i.getSuffix(n,l,o)}):[]}},{key:"getSuffix",value:function(n,i){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(n,o);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(i)):this.getSuffixRetroCompatible(a,i):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,i){var o=this,a=n.noAbs?n.plurals(i):n.plurals(Math.abs(i)),l=n.numbers[a];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));var d=function(){return o.options.prepend&&l.toString()?o.options.prepend+l.toString():l.toString()};return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?"_plural_".concat(l.toString()):d():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?d():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!JC.includes(this.options.compatibilityJSON)}}]),t}();function _p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Xn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_p(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Cp(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=FC(t,e,n);return!a&&o&&typeof n=="string"&&(a=Su(t,n,i),a===void 0&&(a=Su(e,n,i))),a}var eE=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pn(this,t),this.logger=dr.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return An(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:WC,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?xo(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?xo(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?xo(i.nestingPrefix):i.nestingPrefixEscaped||xo("$t("),this.nestingSuffix=i.nestingSuffix?xo(i.nestingSuffix):i.nestingSuffixEscaped||xo(")"),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 o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(o,"g")}},{key:"interpolate",value:function(n,i,o,a){var l=this,d,h,m,b=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function w(B){return B.replace(/\$/g,"$$$$")}var _=function(k){if(k.indexOf(l.formatSeparator)<0){var F=Cp(i,b,k,l.options.keySeparator,l.options.ignoreJSONStructure);return l.alwaysFormat?l.format(F,void 0,o,Xn(Xn(Xn({},a),i),{},{interpolationkey:k})):F}var N=k.split(l.formatSeparator),Y=N.shift().trim(),$=N.join(l.formatSeparator).trim();return l.format(Cp(i,b,Y,l.options.keySeparator,l.options.ignoreJSONStructure),$,o,Xn(Xn(Xn({},a),i),{},{interpolationkey:Y}))};this.resetRegExp();var E=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,I=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,A=[{regex:this.regexpUnescape,safeValue:function(k){return w(k)}},{regex:this.regexp,safeValue:function(k){return l.escapeValue?w(l.escape(k)):w(k)}}];return A.forEach(function(B){for(m=0;d=B.regex.exec(n);){var k=d[1].trim();if(h=_(k),h===void 0)if(typeof E=="function"){var F=E(n,d,a);h=typeof F=="string"?F:""}else if(a&&Object.prototype.hasOwnProperty.call(a,k))h="";else if(I){h=d[0];continue}else l.logger.warn("missed to pass in variable ".concat(k," for interpolating ").concat(n)),h="";else typeof h!="string"&&!l.useRawValueToEscape&&(h=gp(h));var N=B.safeValue(h);if(n=n.replace(d[0],N),I?(B.regex.lastIndex+=h.length,B.regex.lastIndex-=d[0].length):B.regex.lastIndex=0,m++,m>=l.maxReplaces)break}}),n}},{key:"nest",value:function(n,i){var o=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,d,h;function m(E,I){var A=this.nestingOptionsSeparator;if(E.indexOf(A)<0)return E;var B=E.split(new RegExp("".concat(A,"[ ]*{"))),k="{".concat(B[1]);E=B[0],k=this.interpolate(k,h);var F=k.match(/'/g),N=k.match(/"/g);(F&&F.length%2===0&&!N||N.length%2!==0)&&(k=k.replace(/'/g,'"'));try{h=JSON.parse(k),I&&(h=Xn(Xn({},I),h))}catch(Y){return this.logger.warn("failed parsing options string in nesting for key ".concat(E),Y),"".concat(E).concat(A).concat(k)}return delete h.defaultValue,E}for(;l=this.nestingRegexp.exec(n);){var b=[];h=Xn({},a),h=h.replace&&typeof h.replace!="string"?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;var w=!1;if(l[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(l[1])){var _=l[1].split(this.formatSeparator).map(function(E){return E.trim()});l[1]=_.shift(),b=_,w=!0}if(d=i(m.call(this,l[1].trim(),h),h),d&&l[0]===n&&typeof d!="string")return d;typeof d!="string"&&(d=gp(d)),d||(this.logger.warn("missed to resolve ".concat(l[1]," for nesting ").concat(n)),d=""),w&&(d=b.reduce(function(E,I){return o.format(E,I,a.lng,Xn(Xn({},a),{},{interpolationkey:l[1].trim()}))},d.trim())),n=n.replace(l[0],d),this.regexp.lastIndex=0}return n}}]),t}();function Ep(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Dr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ep(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ep(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function tE(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var i=t.split("(");e=i[0].toLowerCase().trim();var o=i[1].substring(0,i[1].length-1);if(e==="currency"&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if(e==="relativetime"&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{var a=o.split(";");a.forEach(function(l){if(l){var d=l.split(":"),h=LC(d),m=h[0],b=h.slice(1),w=b.join(":").trim().replace(/^'+|'+$/g,"");n[m.trim()]||(n[m.trim()]=w),w==="false"&&(n[m.trim()]=!1),w==="true"&&(n[m.trim()]=!0),isNaN(w)||(n[m.trim()]=parseInt(w,10))}})}}return{formatName:e,formatOptions:n}}function So(t){var e={};return function(i,o,a){var l=o+JSON.stringify(a),d=e[l];return d||(d=t(o,a),e[l]=d),d(i)}}var nE=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pn(this,t),this.logger=dr.create("formatter"),this.options=e,this.formats={number:So(function(n,i){var o=new Intl.NumberFormat(n,Dr({},i));return function(a){return o.format(a)}}),currency:So(function(n,i){var o=new Intl.NumberFormat(n,Dr(Dr({},i),{},{style:"currency"}));return function(a){return o.format(a)}}),datetime:So(function(n,i){var o=new Intl.DateTimeFormat(n,Dr({},i));return function(a){return o.format(a)}}),relativetime:So(function(n,i){var o=new Intl.RelativeTimeFormat(n,Dr({},i));return function(a){return o.format(a,i.range||"day")}}),list:So(function(n,i){var o=new Intl.ListFormat(n,Dr({},i));return function(a){return o.format(a)}})},this.init(e)}return An(t,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},o=i.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(n,i){this.formats[n.toLowerCase().trim()]=i}},{key:"addCached",value:function(n,i){this.formats[n.toLowerCase().trim()]=So(i)}},{key:"format",value:function(n,i,o){var a=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},d=i.split(this.formatSeparator),h=d.reduce(function(m,b){var w=tE(b),_=w.formatName,E=w.formatOptions;if(a.formats[_]){var I=m;try{var A=l&&l.formatParams&&l.formatParams[l.interpolationkey]||{},B=A.locale||A.lng||l.locale||l.lng||o;I=a.formats[_](m,B,Dr(Dr(Dr({},E),l),A))}catch(k){a.logger.warn(k)}return I}else a.logger.warn("there was no format function for ".concat(_));return m},n);return h}}]),t}();function Tp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Op(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function rE(t){var e=iE();return function(){var i=pr(t),o;if(e){var a=pr(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Fs(this,o)}}function iE(){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 oE(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var sE=function(t){Hu(n,t);var e=rE(n);function n(i,o,a){var l,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Pn(this,n),l=e.call(this),$u&&gi.call(Mr(l)),l.backend=i,l.store=o,l.services=a,l.languageUtils=a.languageUtils,l.options=d,l.logger=dr.create("backendConnector"),l.waitingReads=[],l.maxParallelReads=d.maxParallelReads||10,l.readingCalls=0,l.maxRetries=d.maxRetries>=0?d.maxRetries:5,l.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,l.state={},l.queue=[],l.backend&&l.backend.init&&l.backend.init(a,d.backend,d),l}return An(n,[{key:"queueLoad",value:function(o,a,l,d){var h=this,m={},b={},w={},_={};return o.forEach(function(E){var I=!0;a.forEach(function(A){var B="".concat(E,"|").concat(A);!l.reload&&h.store.hasResourceBundle(E,A)?h.state[B]=2:h.state[B]<0||(h.state[B]===1?b[B]===void 0&&(b[B]=!0):(h.state[B]=1,I=!1,b[B]===void 0&&(b[B]=!0),m[B]===void 0&&(m[B]=!0),_[A]===void 0&&(_[A]=!0)))}),I||(w[E]=!0)}),(Object.keys(m).length||Object.keys(b).length)&&this.queue.push({pending:b,pendingCount:Object.keys(b).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(m),pending:Object.keys(b),toLoadLanguages:Object.keys(w),toLoadNamespaces:Object.keys(_)}}},{key:"loaded",value:function(o,a,l){var d=o.split("|"),h=d[0],m=d[1];a&&this.emit("failedLoading",h,m,a),l&&this.store.addResourceBundle(h,m,l),this.state[o]=a?-1:2;var b={};this.queue.forEach(function(w){BC(w.loaded,[h],m),oE(w,o),a&&w.errors.push(a),w.pendingCount===0&&!w.done&&(Object.keys(w.loaded).forEach(function(_){b[_]||(b[_]={});var E=w.loaded[_];E.length&&E.forEach(function(I){b[_][I]===void 0&&(b[_][I]=!0)})}),w.done=!0,w.errors.length?w.callback(w.errors):w.callback())}),this.emit("loaded",b),this.queue=this.queue.filter(function(w){return!w.done})}},{key:"read",value:function(o,a,l){var d=this,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,b=arguments.length>5?arguments[5]:void 0;if(!o.length)return b(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:a,fcName:l,tried:h,wait:m,callback:b});return}this.readingCalls++;var w=function(A,B){if(d.readingCalls--,d.waitingReads.length>0){var k=d.waitingReads.shift();d.read(k.lng,k.ns,k.fcName,k.tried,k.wait,k.callback)}if(A&&B&&h<d.maxRetries){setTimeout(function(){d.read.call(d,o,a,l,h+1,m*2,b)},m);return}b(A,B)},_=this.backend[l].bind(this.backend);if(_.length===2){try{var E=_(o,a);E&&typeof E.then=="function"?E.then(function(I){return w(null,I)}).catch(w):w(null,E)}catch(I){w(I)}return}return _(o,a,w)}},{key:"prepareLoading",value:function(o,a){var l=this,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=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."),h&&h();typeof o=="string"&&(o=this.languageUtils.toResolveHierarchy(o)),typeof a=="string"&&(a=[a]);var m=this.queueLoad(o,a,d,h);if(!m.toLoad.length)return m.pending.length||h(),null;m.toLoad.forEach(function(b){l.loadOne(b)})}},{key:"load",value:function(o,a,l){this.prepareLoading(o,a,{},l)}},{key:"reload",value:function(o,a,l){this.prepareLoading(o,a,{reload:!0},l)}},{key:"loadOne",value:function(o){var a=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",d=o.split("|"),h=d[0],m=d[1];this.read(h,m,"read",void 0,void 0,function(b,w){b&&a.logger.warn("".concat(l,"loading namespace ").concat(m," for language ").concat(h," failed"),b),!b&&w&&a.logger.log("".concat(l,"loaded namespace ").concat(m," for language ").concat(h),w),a.loaded(o,b,w)})}},{key:"saveMissing",value:function(o,a,l,d,h){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},b=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(l,'" as the namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(l==null||l==="")){if(this.backend&&this.backend.create){var w=Op(Op({},m),{},{isUpdate:h}),_=this.backend.create.bind(this.backend);if(_.length<6)try{var E;_.length===5?E=_(o,a,l,d,w):E=_(o,a,l,d),E&&typeof E.then=="function"?E.then(function(I){return b(null,I)}).catch(b):b(null,E)}catch(I){b(I)}else _(o,a,l,d,b,w)}!o||!o[0]||this.store.addResource(o[0],a,l,d)}}}]),n}(gi);function Pp(){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(Tn(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),Tn(e[2])==="object"||Tn(e[3])==="object"){var i=e[3]||e[2];Object.keys(i).forEach(function(o){n[o]=i[o]})}return n},interpolation:{escapeValue:!0,format:function(e,n,i,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Ap(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 kp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function cr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function aE(t){var e=uE();return function(){var i=pr(t),o;if(e){var a=pr(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Fs(this,o)}}function uE(){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 ou(){}function lE(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var _u=function(t){Hu(n,t);var e=aE(n);function n(){var i,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(Pn(this,n),i=e.call(this),$u&&gi.call(Mr(i)),i.options=Ap(o),i.services={},i.logger=dr,i.modules={external:[]},lE(Mr(i)),a&&!i.isInitialized&&!o.isClone){if(!i.options.initImmediate)return i.init(o,a),Fs(i,Mr(i));setTimeout(function(){i.init(o,a)},0)}return i}return An(n,[{key:"init",value:function(){var o=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(l=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var d=Pp();this.options=cr(cr(cr({},d),this.options),Ap(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=cr(cr({},d.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function h(k){return k?typeof k=="function"?new k:k:null}if(!this.options.isClone){this.modules.logger?dr.init(h(this.modules.logger),this.options):dr.init(null,this.options);var m;this.modules.formatter?m=this.modules.formatter:typeof Intl<"u"&&(m=nE);var b=new xp(this.options);this.store=new qC(this.options.resources,this.options);var w=this.services;w.logger=dr,w.resourceStore=this.store,w.languageUtils=b,w.pluralResolver=new QC(b,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===d.interpolation.format)&&(w.formatter=h(m),w.formatter.init(w,this.options),this.options.interpolation.format=w.formatter.format.bind(w.formatter)),w.interpolator=new eE(this.options),w.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},w.backendConnector=new sE(h(this.modules.backend),w.resourceStore,w,this.options),w.backendConnector.on("*",function(k){for(var F=arguments.length,N=new Array(F>1?F-1:0),Y=1;Y<F;Y++)N[Y-1]=arguments[Y];o.emit.apply(o,[k].concat(N))}),this.modules.languageDetector&&(w.languageDetector=h(this.modules.languageDetector),w.languageDetector.init&&w.languageDetector.init(w,this.options.detection,this.options)),this.modules.i18nFormat&&(w.i18nFormat=h(this.modules.i18nFormat),w.i18nFormat.init&&w.i18nFormat.init(this)),this.translator=new wp(this.services,this.options),this.translator.on("*",function(k){for(var F=arguments.length,N=new Array(F>1?F-1:0),Y=1;Y<F;Y++)N[Y-1]=arguments[Y];o.emit.apply(o,[k].concat(N))}),this.modules.external.forEach(function(k){k.init&&k.init(o)})}if(this.format=this.options.interpolation.format,l||(l=ou),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var _=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);_.length>0&&_[0]!=="dev"&&(this.options.lng=_[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var E=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];E.forEach(function(k){o[k]=function(){var F;return(F=o.store)[k].apply(F,arguments)}});var I=["addResource","addResources","addResourceBundle","removeResourceBundle"];I.forEach(function(k){o[k]=function(){var F;return(F=o.store)[k].apply(F,arguments),o}});var A=ys(),B=function(){var F=function(Y,$){o.isInitialized&&!o.initializedStoreOnce&&o.logger.warn("init: i18next is already initialized. You should call init just once!"),o.isInitialized=!0,o.options.isClone||o.logger.log("initialized",o.options),o.emit("initialized",o.options),A.resolve($),l(Y,$)};if(o.languages&&o.options.compatibilityAPI!=="v1"&&!o.isInitialized)return F(null,o.t.bind(o));o.changeLanguage(o.options.lng,F)};return this.options.resources||!this.options.initImmediate?B():setTimeout(B,0),A}},{key:"loadResources",value:function(o){var a=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ou,d=l,h=typeof o=="string"?o:this.language;if(typeof o=="function"&&(d=o),!this.options.resources||this.options.partialBundledLanguages){if(h&&h.toLowerCase()==="cimode")return d();var m=[],b=function(E){if(E){var I=a.services.languageUtils.toResolveHierarchy(E);I.forEach(function(A){m.indexOf(A)<0&&m.push(A)})}};if(h)b(h);else{var w=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);w.forEach(function(_){return b(_)})}this.options.preload&&this.options.preload.forEach(function(_){return b(_)}),this.services.backendConnector.load(m,this.options.ns,function(_){!_&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),d(_)})}else d(null)}},{key:"reloadResources",value:function(o,a,l){var d=ys();return o||(o=this.languages),a||(a=this.options.ns),l||(l=ou),this.services.backendConnector.reload(o,a,function(h){d.resolve(),l(h)}),d}},{key:"use",value:function(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&nv.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}},{key:"setResolvedLanguage",value:function(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1))for(var a=0;a<this.languages.length;a++){var l=this.languages[a];if(!(["cimode","dev"].indexOf(l)>-1)&&this.store.hasLanguageSomeTranslations(l)){this.resolvedLanguage=l;break}}}},{key:"changeLanguage",value:function(o,a){var l=this;this.isLanguageChangingTo=o;var d=ys();this.emit("languageChanging",o);var h=function(_){l.language=_,l.languages=l.services.languageUtils.toResolveHierarchy(_),l.resolvedLanguage=void 0,l.setResolvedLanguage(_)},m=function(_,E){E?(h(E),l.translator.changeLanguage(E),l.isLanguageChangingTo=void 0,l.emit("languageChanged",E),l.logger.log("languageChanged",E)):l.isLanguageChangingTo=void 0,d.resolve(function(){return l.t.apply(l,arguments)}),a&&a(_,function(){return l.t.apply(l,arguments)})},b=function(_){!o&&!_&&l.services.languageDetector&&(_=[]);var E=typeof _=="string"?_:l.services.languageUtils.getBestMatchFromCodes(_);E&&(l.language||h(E),l.translator.language||l.translator.changeLanguage(E),l.services.languageDetector&&l.services.languageDetector.cacheUserLanguage&&l.services.languageDetector.cacheUserLanguage(E)),l.loadResources(E,function(I){m(I,E)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?b(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(b):this.services.languageDetector.detect(b):b(o),d}},{key:"getFixedT",value:function(o,a,l){var d=this,h=function m(b,w){var _;if(Tn(w)!=="object"){for(var E=arguments.length,I=new Array(E>2?E-2:0),A=2;A<E;A++)I[A-2]=arguments[A];_=d.options.overloadTranslationOptionHandler([b,w].concat(I))}else _=cr({},w);_.lng=_.lng||m.lng,_.lngs=_.lngs||m.lngs,_.ns=_.ns||m.ns,_.keyPrefix=_.keyPrefix||l||m.keyPrefix;var B=d.options.keySeparator||".",k;return _.keyPrefix&&Array.isArray(b)?k=b.map(function(F){return"".concat(_.keyPrefix).concat(B).concat(F)}):k=_.keyPrefix?"".concat(_.keyPrefix).concat(B).concat(b):b,d.t(k,_)};return typeof o=="string"?h.lng=o:h.lngs=o,h.ns=a,h.keyPrefix=l,h}},{key:"t",value:function(){var o;return this.translator&&(o=this.translator).translate.apply(o,arguments)}},{key:"exists",value:function(){var o;return this.translator&&(o=this.translator).exists.apply(o,arguments)}},{key:"setDefaultNamespace",value:function(o){this.options.defaultNS=o}},{key:"hasLoadedNamespace",value:function(o){var a=this,l=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 d=l.lng||this.resolvedLanguage||this.languages[0],h=this.options?this.options.fallbackLng:!1,m=this.languages[this.languages.length-1];if(d.toLowerCase()==="cimode")return!0;var b=function(E,I){var A=a.services.backendConnector.state["".concat(E,"|").concat(I)];return A===-1||A===2};if(l.precheck){var w=l.precheck(this,b);if(w!==void 0)return w}return!!(this.hasResourceBundle(d,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||b(d,o)&&(!h||b(m,o)))}},{key:"loadNamespaces",value:function(o,a){var l=this,d=ys();return this.options.ns?(typeof o=="string"&&(o=[o]),o.forEach(function(h){l.options.ns.indexOf(h)<0&&l.options.ns.push(h)}),this.loadResources(function(h){d.resolve(),a&&a(h)}),d):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(o,a){var l=ys();typeof o=="string"&&(o=[o]);var d=this.options.preload||[],h=o.filter(function(m){return d.indexOf(m)<0});return h.length?(this.options.preload=d.concat(h),this.loadResources(function(m){l.resolve(),a&&a(m)}),l):(a&&a(),Promise.resolve())}},{key:"dir",value:function(o){if(o||(o=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!o)return"rtl";var a=["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"],l=this.services&&this.services.languageUtils||new xp(Pp());return a.indexOf(l.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var o=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ou,d=cr(cr(cr({},this.options),a),{isClone:!0}),h=new n(d);(a.debug!==void 0||a.prefix!==void 0)&&(h.logger=h.logger.clone(a));var m=["store","services","language"];return m.forEach(function(b){h[b]=o[b]}),h.services=cr({},this.services),h.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},h.translator=new wp(h.services,h.options),h.translator.on("*",function(b){for(var w=arguments.length,_=new Array(w>1?w-1:0),E=1;E<w;E++)_[E-1]=arguments[E];h.emit.apply(h,[b].concat(_))}),h.init(d,l),h.translator.options=h.options,h.translator.backendConnector.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},h}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(gi);gr(_u,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new _u(t,e)});var Lt=_u.createInstance();Lt.createInstance=_u.createInstance;Lt.createInstance;Lt.dir;Lt.init;Lt.loadResources;Lt.reloadResources;Lt.use;Lt.changeLanguage;Lt.getFixedT;var rv=Lt.t;Lt.exists;Lt.setDefaultNamespace;Lt.hasLoadedNamespace;Lt.loadNamespaces;Lt.loadLanguages;function cE({config:t,pushError:e=If}){const n=Hm.create(t);n.interceptors.request.use(async o=>(o.headers={Accept:"application/json","Content-Type":"application/json"},o),o=>Promise.reject(o)),n.interceptors.response.use(o=>o,async o=>i(o));async function i(o){var h,m,b,w;console.error("Error 🚨:",o);const a=o.config,l=(m=(h=o.response)==null?void 0:h.data)==null?void 0:m.errorMessage,d=l===kC.TOKEN_EXPIRED;return((b=o.response)==null?void 0:b.status)===401?d&&!a._retry?(a._retry=!0,n.post("/authentication/api/v1/auth/refresh-token").then(()=>n(a)).catch(()=>cp(t.baseURL))):((!l||!d)&&cp(t.baseURL),Promise.reject("Unauthorized! Please login again.")):(((w=o.response)==null?void 0:w.status)===403||e(rv(`${l||"Something went wrong!"}`)),Promise.reject(o.response.data))}return n}function fE(t,e,n){return n.some(i=>{const o=t[i];return String(o).toLowerCase().includes(e.toLowerCase())})}var iv=[],dE=iv.forEach,hE=iv.slice;function pE(t){return dE.call(hE.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var Dp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,gE=function(e,n,i){var o=i||{};o.path=o.path||"/";var a=encodeURIComponent(n),l="".concat(e,"=").concat(a);if(o.maxAge>0){var d=o.maxAge-0;if(Number.isNaN(d))throw new Error("maxAge should be a Number");l+="; Max-Age=".concat(Math.floor(d))}if(o.domain){if(!Dp.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain=".concat(o.domain)}if(o.path){if(!Dp.test(o.path))throw new TypeError("option path is invalid");l+="; Path=".concat(o.path)}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");l+="; Expires=".concat(o.expires.toUTCString())}if(o.httpOnly&&(l+="; HttpOnly"),o.secure&&(l+="; Secure"),o.sameSite){var h=typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite;switch(h){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l},Ip={create:function(e,n,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+i*60*1e3)),o&&(a.domain=o),document.cookie=gE(e,encodeURIComponent(n),a)},read:function(e){for(var n="".concat(e,"="),i=document.cookie.split(";"),o=0;o<i.length;o++){for(var a=i[o];a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(n)===0)return a.substring(n.length,a.length)}return null},remove:function(e){this.create(e,"",-1)}},mE={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document<"u"){var i=Ip.read(e.lookupCookie);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document<"u"&&Ip.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},vE={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 o=i.substring(1),a=o.split("&"),l=0;l<a.length;l++){var d=a[l].indexOf("=");if(d>0){var h=a[l].substring(0,d);h===e.lookupQuerystring&&(n=a[l].substring(d+1))}}}return n}},bs=null,Rp=function(){if(bs!==null)return bs;try{bs=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{bs=!1}return bs},yE={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&Rp()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&Rp()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},ws=null,Lp=function(){if(ws!==null)return ws;try{ws=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{ws=!1}return ws},bE={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&Lp()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&Lp()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},wE={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}},xE={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}},SE={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}},_E={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 CE(){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 ov=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Pn(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return An(t,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=pE(i,this.options||{},CE()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(a){return a.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(mE),this.addDetector(vE),this.addDetector(yE),this.addDetector(bE),this.addDetector(wE),this.addDetector(xE),this.addDetector(SE),this.addDetector(_E)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var i=this;n||(n=this.options.order);var o=[];return n.forEach(function(a){if(i.detectors[a]){var l=i.detectors[a].lookup(i.options);l&&typeof l=="string"&&(l=[l]),l&&(o=o.concat(l))}}),o=o.map(function(a){return i.options.convertDetectedLanguage(a)}),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(n,i){var o=this;i||(i=this.options.caches),i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||i.forEach(function(a){o.detectors[a]&&o.detectors[a].cacheUserLanguage(n,o.options)}))}}]),t}();ov.type="languageDetector";function Lf(t,e){if(t==null)return{};var n={},i=Object.keys(t),o,a;for(a=0;a<i.length;a++)o=i[a],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}const EE=Object.freeze(Object.defineProperty({__proto__:null,default:Lf},Symbol.toStringTag,{value:"Module"}));var Cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function TE(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 o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,o.get?o:{enumerable:!0,get:function(){return t[i]}})}),n}function OE(){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 Mp={};function nf(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&Mp[e[0]]||(typeof e[0]=="string"&&(Mp[e[0]]=new Date),OE.apply(void 0,e))}var sv=function(e,n){return function(){if(e.isInitialized)n();else{var i=function o(){setTimeout(function(){e.off("initialized",o)},0),n()};e.on("initialized",i)}}};function Np(t,e,n){t.loadNamespaces(e,sv(t,n))}function jp(t,e,n,i){typeof n=="string"&&(n=[n]),n.forEach(function(o){t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,sv(t,i))}function PE(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=e.languages[0],o=e.options?e.options.fallbackLng:!1,a=e.languages[e.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var l=function(h,m){var b=e.services.backendConnector.state["".concat(h,"|").concat(m)];return b===-1||b===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!l(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(i,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||l(i,t)&&(!o||l(a,t)))}function AE(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return nf("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(a,l){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!l(a.isLanguageChangingTo,t))return!1}}):PE(t,e,n)}var kE=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,DE={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},IE=function(e){return DE[e]},RE=function(e){return e.replace(kE,IE)};function Bp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Fp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var rf={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:RE};function LE(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rf=Fp(Fp({},rf),t)}function ME(){return rf}var av;function NE(t){av=t}function jE(){return av}var BE={type:"3rdParty",init:function(e){LE(e.options.react),NE(e)}},uv=te.createContext(),FE=function(){function t(){Pn(this,t),this.usedNamespaces={}}return An(t,[{key:"addUsedNamespaces",value:function(n){var i=this;n.forEach(function(o){i.usedNamespaces[o]||(i.usedNamespaces[o]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function VE(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,o,a,l,d=[],h=!0,m=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;h=!1}else for(;!(h=(i=a.call(n)).done)&&(d.push(i.value),d.length!==e);h=!0);}catch(b){m=!0,o=b}finally{try{if(!h&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return d}}function WE(t,e){return Zm(t)||VE(t,e)||Qm(t,e)||ev()}function Vp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function wc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vp(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var HE=function(e,n){var i=te.useRef();return te.useEffect(function(){i.current=n?i.current:e},[e,n]),i.current};function lv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,i=te.useContext(uv)||{},o=i.i18n,a=i.defaultNS,l=n||o||jE();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new FE),!l){nf("You will need to pass in an i18next instance by using initReactI18next");var d=function(Z,we){return typeof we=="string"?we:we&&Tn(we)==="object"&&typeof we.defaultValue=="string"?we.defaultValue:Array.isArray(Z)?Z[Z.length-1]:Z},h=[d,{},!1];return h.t=d,h.i18n={},h.ready=!1,h}l.options.react&&l.options.react.wait!==void 0&&nf("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var m=wc(wc(wc({},ME()),l.options.react),e),b=m.useSuspense,w=m.keyPrefix,_=t||a||l.options&&l.options.defaultNS;_=typeof _=="string"?[_]:_||["translation"],l.reportNamespaces.addUsedNamespaces&&l.reportNamespaces.addUsedNamespaces(_);var E=(l.isInitialized||l.initializedStoreOnce)&&_.every(function(ee){return AE(ee,l,m)});function I(){return l.getFixedT(e.lng||null,m.nsMode==="fallback"?_:_[0],w)}var A=te.useState(I),B=WE(A,2),k=B[0],F=B[1],N=_.join();e.lng&&(N="".concat(e.lng).concat(N));var Y=HE(N),$=te.useRef(!0);te.useEffect(function(){var ee=m.bindI18n,Z=m.bindI18nStore;$.current=!0,!E&&!b&&(e.lng?jp(l,e.lng,_,function(){$.current&&F(I)}):Np(l,_,function(){$.current&&F(I)})),E&&Y&&Y!==N&&$.current&&F(I);function we(){$.current&&F(I)}return ee&&l&&l.on(ee,we),Z&&l&&l.store.on(Z,we),function(){$.current=!1,ee&&l&&ee.split(" ").forEach(function(He){return l.off(He,we)}),Z&&l&&Z.split(" ").forEach(function(He){return l.store.off(He,we)})}},[l,N]);var ie=te.useRef(!0);te.useEffect(function(){$.current&&!ie.current&&F(I),ie.current=!1},[l,w]);var g=[k,l,E];if(g.t=k,g.i18n=l,g.ready=E,E||!E&&!b)return g;throw new Promise(function(ee){e.lng?jp(l,e.lng,_,function(){return ee()}):Np(l,_,function(){return ee()})})}function $E(t){var e=t.i18n,n=t.defaultNS,i=t.children,o=te.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return te.createElement(uv.Provider,{value:o},i)}var cv=[],UE=cv.forEach,zE=cv.slice;function qE(t){return UE.call(zE.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function YE(t){return t?typeof t=="function"?new t:t:null}function GE(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function Wp(t,e,n,i){var o=t.read.bind(t);if(o.length===2){try{var a=o(e,n);a&&typeof a.then=="function"?a.then(function(l){return i(null,l)}).catch(i):i(null,a)}catch(l){i(l)}return}o(e,n,i)}var fv=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]:{};Pn(this,t),this.backends=[],this.type="backend",this.allOptions=i,this.init(e,n)}return An(t,[{key:"init",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=qE(o,this.options||{},GE()),this.allOptions=a,this.options.backends&&this.options.backends.forEach(function(l,d){i.backends[d]=i.backends[d]||YE(l),i.backends[d].init(n,i.options.backendOptions&&i.options.backendOptions[d]||{},a)}),this.services&&this.options.reloadInterval&&setInterval(function(){return i.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,i,o){var a=this,l=this.backends.length,d=function m(b){if(b>=l)return o(new Error("non of the backend loaded data",!0));var w=b===l-1,_=a.options.handleEmptyResourcesAsFailed&&!w?0:-1,E=a.backends[b];E.read?Wp(E,n,i,function(I,A,B){if(!I&&A&&Object.keys(A).length>_){if(o(null,A,b),h(b-1,A),E.save&&a.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(a.options.cacheHitMode)>-1){if(B&&a.options.refreshExpirationTime&&B+a.options.refreshExpirationTime>Date.now())return;var k=a.backends[b+1];k&&k.read&&Wp(k,n,i,function(F,N){F||N&&(Object.keys(N).length<=_||(h(b,N),a.options.cacheHitMode==="refreshAndUpdateStore"&&a.services&&a.services.resourceStore&&a.services.resourceStore.addResourceBundle(n,i,N)))})}}else m(b+1)}):m(b+1)},h=function m(b,w){if(!(b<0)){var _=a.backends[b];_.save&&_.save(n,i,w),m(b-1,w)}};d(0)}},{key:"create",value:function(n,i,o,a){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(h){if(h.create){var m=h.create.bind(h);if(m.length<6){try{var b;m.length===5?b=m(n,i,o,a,d):b=m(n,i,o,a),b&&typeof b.then=="function"?b.then(function(w){return l(null,w)}).catch(l):l(null,b)}catch(w){l(w)}return}m(n,i,o,a,l,d)}})}},{key:"reload",value:function(){var n=this,i=this.services,o=i.backendConnector,a=i.languageUtils,l=i.logger,d=o.language;if(!(d&&d.toLowerCase()==="cimode")){var h=[],m=function(w){var _=a.toResolveHierarchy(w);_.forEach(function(E){h.indexOf(E)<0&&h.push(E)})};m(d),this.allOptions.preload&&this.allOptions.preload.forEach(function(b){return m(b)}),h.forEach(function(b){n.allOptions.ns.forEach(function(w){o.read(b,w,"read",null,null,function(_,E){_&&l.warn("loading namespace ".concat(w," for language ").concat(b," failed"),_),!_&&E&&l.log("loaded namespace ".concat(w," for language ").concat(b),E),o.loaded("".concat(b,"|").concat(w),_,E)})})})}}}]),t}();fv.type="backend";function of(t){"@babel/helpers - typeof";return of=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},of(t)}function dv(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":of(XMLHttpRequest))==="object"}function KE(t){return!!t&&typeof t.then=="function"}function XE(t){return KE(t)?t:Promise.resolve(t)}function JE(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 sf={exports:{}},su={exports:{}},Hp;function ZE(){return Hp||(Hp=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Cn<"u"&&Cn,i=function(){function a(){this.fetch=!1,this.DOMException=n.DOMException}return a.prototype=n,new a}();(function(a){(function(l){var d=typeof a<"u"&&a||typeof self<"u"&&self||typeof d<"u"&&d,h={searchParams:"URLSearchParams"in d,iterable:"Symbol"in d&&"iterator"in Symbol,blob:"FileReader"in d&&"Blob"in d&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in d,arrayBuffer:"ArrayBuffer"in d};function m(G){return G&&DataView.prototype.isPrototypeOf(G)}if(h.arrayBuffer)var b=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],w=ArrayBuffer.isView||function(G){return G&&b.indexOf(Object.prototype.toString.call(G))>-1};function _(G){if(typeof G!="string"&&(G=String(G)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(G)||G==="")throw new TypeError('Invalid character in header field name: "'+G+'"');return G.toLowerCase()}function E(G){return typeof G!="string"&&(G=String(G)),G}function I(G){var re={next:function(){var de=G.shift();return{done:de===void 0,value:de}}};return h.iterable&&(re[Symbol.iterator]=function(){return re}),re}function A(G){this.map={},G instanceof A?G.forEach(function(re,de){this.append(de,re)},this):Array.isArray(G)?G.forEach(function(re){this.append(re[0],re[1])},this):G&&Object.getOwnPropertyNames(G).forEach(function(re){this.append(re,G[re])},this)}A.prototype.append=function(G,re){G=_(G),re=E(re);var de=this.map[G];this.map[G]=de?de+", "+re:re},A.prototype.delete=function(G){delete this.map[_(G)]},A.prototype.get=function(G){return G=_(G),this.has(G)?this.map[G]:null},A.prototype.has=function(G){return this.map.hasOwnProperty(_(G))},A.prototype.set=function(G,re){this.map[_(G)]=E(re)},A.prototype.forEach=function(G,re){for(var de in this.map)this.map.hasOwnProperty(de)&&G.call(re,this.map[de],de,this)},A.prototype.keys=function(){var G=[];return this.forEach(function(re,de){G.push(de)}),I(G)},A.prototype.values=function(){var G=[];return this.forEach(function(re){G.push(re)}),I(G)},A.prototype.entries=function(){var G=[];return this.forEach(function(re,de){G.push([de,re])}),I(G)},h.iterable&&(A.prototype[Symbol.iterator]=A.prototype.entries);function B(G){if(G.bodyUsed)return Promise.reject(new TypeError("Already read"));G.bodyUsed=!0}function k(G){return new Promise(function(re,de){G.onload=function(){re(G.result)},G.onerror=function(){de(G.error)}})}function F(G){var re=new FileReader,de=k(re);return re.readAsArrayBuffer(G),de}function N(G){var re=new FileReader,de=k(re);return re.readAsText(G),de}function Y(G){for(var re=new Uint8Array(G),de=new Array(re.length),pe=0;pe<re.length;pe++)de[pe]=String.fromCharCode(re[pe]);return de.join("")}function $(G){if(G.slice)return G.slice(0);var re=new Uint8Array(G.byteLength);return re.set(new Uint8Array(G)),re.buffer}function ie(){return this.bodyUsed=!1,this._initBody=function(G){this.bodyUsed=this.bodyUsed,this._bodyInit=G,G?typeof G=="string"?this._bodyText=G:h.blob&&Blob.prototype.isPrototypeOf(G)?this._bodyBlob=G:h.formData&&FormData.prototype.isPrototypeOf(G)?this._bodyFormData=G:h.searchParams&&URLSearchParams.prototype.isPrototypeOf(G)?this._bodyText=G.toString():h.arrayBuffer&&h.blob&&m(G)?(this._bodyArrayBuffer=$(G.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):h.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(G)||w(G))?this._bodyArrayBuffer=$(G):this._bodyText=G=Object.prototype.toString.call(G):this._bodyText="",this.headers.get("content-type")||(typeof G=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):h.searchParams&&URLSearchParams.prototype.isPrototypeOf(G)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},h.blob&&(this.blob=function(){var G=B(this);if(G)return G;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 G=B(this);return G||(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(F)}),this.text=function(){var G=B(this);if(G)return G;if(this._bodyBlob)return N(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Y(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},h.formData&&(this.formData=function(){return this.text().then(we)}),this.json=function(){return this.text().then(JSON.parse)},this}var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ee(G){var re=G.toUpperCase();return g.indexOf(re)>-1?re:G}function Z(G,re){if(!(this instanceof Z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');re=re||{};var de=re.body;if(G instanceof Z){if(G.bodyUsed)throw new TypeError("Already read");this.url=G.url,this.credentials=G.credentials,re.headers||(this.headers=new A(G.headers)),this.method=G.method,this.mode=G.mode,this.signal=G.signal,!de&&G._bodyInit!=null&&(de=G._bodyInit,G.bodyUsed=!0)}else this.url=String(G);if(this.credentials=re.credentials||this.credentials||"same-origin",(re.headers||!this.headers)&&(this.headers=new A(re.headers)),this.method=ee(re.method||this.method||"GET"),this.mode=re.mode||this.mode||null,this.signal=re.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&de)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(de),(this.method==="GET"||this.method==="HEAD")&&(re.cache==="no-store"||re.cache==="no-cache")){var pe=/([?&])_=[^&]*/;if(pe.test(this.url))this.url=this.url.replace(pe,"$1_="+new Date().getTime());else{var ke=/\?/;this.url+=(ke.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Z.prototype.clone=function(){return new Z(this,{body:this._bodyInit})};function we(G){var re=new FormData;return G.trim().split("&").forEach(function(de){if(de){var pe=de.split("="),ke=pe.shift().replace(/\+/g," "),Q=pe.join("=").replace(/\+/g," ");re.append(decodeURIComponent(ke),decodeURIComponent(Q))}}),re}function He(G){var re=new A,de=G.replace(/\r?\n[\t ]+/g," ");return de.split("\r").map(function(pe){return pe.indexOf(`
|
|
4
|
+
`)===0?pe.substr(1,pe.length):pe}).forEach(function(pe){var ke=pe.split(":"),Q=ke.shift().trim();if(Q){var ae=ke.join(":").trim();re.append(Q,ae)}}),re}ie.call(Z.prototype);function Ae(G,re){if(!(this instanceof Ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');re||(re={}),this.type="default",this.status=re.status===void 0?200:re.status,this.ok=this.status>=200&&this.status<300,this.statusText=re.statusText===void 0?"":""+re.statusText,this.headers=new A(re.headers),this.url=re.url||"",this._initBody(G)}ie.call(Ae.prototype),Ae.prototype.clone=function(){return new Ae(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new A(this.headers),url:this.url})},Ae.error=function(){var G=new Ae(null,{status:0,statusText:""});return G.type="error",G};var Te=[301,302,303,307,308];Ae.redirect=function(G,re){if(Te.indexOf(re)===-1)throw new RangeError("Invalid status code");return new Ae(null,{status:re,headers:{location:G}})},l.DOMException=d.DOMException;try{new l.DOMException}catch{l.DOMException=function(re,de){this.message=re,this.name=de;var pe=Error(re);this.stack=pe.stack},l.DOMException.prototype=Object.create(Error.prototype),l.DOMException.prototype.constructor=l.DOMException}function Le(G,re){return new Promise(function(de,pe){var ke=new Z(G,re);if(ke.signal&&ke.signal.aborted)return pe(new l.DOMException("Aborted","AbortError"));var Q=new XMLHttpRequest;function ae(){Q.abort()}Q.onload=function(){var me={status:Q.status,statusText:Q.statusText,headers:He(Q.getAllResponseHeaders()||"")};me.url="responseURL"in Q?Q.responseURL:me.headers.get("X-Request-URL");var ye="response"in Q?Q.response:Q.responseText;setTimeout(function(){de(new Ae(ye,me))},0)},Q.onerror=function(){setTimeout(function(){pe(new TypeError("Network request failed"))},0)},Q.ontimeout=function(){setTimeout(function(){pe(new TypeError("Network request failed"))},0)},Q.onabort=function(){setTimeout(function(){pe(new l.DOMException("Aborted","AbortError"))},0)};function ve(me){try{return me===""&&d.location.href?d.location.href:me}catch{return me}}Q.open(ke.method,ve(ke.url),!0),ke.credentials==="include"?Q.withCredentials=!0:ke.credentials==="omit"&&(Q.withCredentials=!1),"responseType"in Q&&(h.blob?Q.responseType="blob":h.arrayBuffer&&ke.headers.get("Content-Type")&&ke.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Q.responseType="arraybuffer")),re&&typeof re.headers=="object"&&!(re.headers instanceof A)?Object.getOwnPropertyNames(re.headers).forEach(function(me){Q.setRequestHeader(me,E(re.headers[me]))}):ke.headers.forEach(function(me,ye){Q.setRequestHeader(ye,me)}),ke.signal&&(ke.signal.addEventListener("abort",ae),Q.onreadystatechange=function(){Q.readyState===4&&ke.signal.removeEventListener("abort",ae)}),Q.send(typeof ke._bodyInit>"u"?null:ke._bodyInit)})}return Le.polyfill=!0,d.fetch||(d.fetch=Le,d.Headers=A,d.Request=Z,d.Response=Ae),l.Headers=A,l.Request=Z,l.Response=Ae,l.fetch=Le,l})({})})(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;e=o.fetch,e.default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}(su,su.exports)),su.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof Cn<"u"&&Cn.fetch?n=Cn.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof JE<"u"&&(typeof window>"u"||typeof window.document>"u")){var i=n||ZE();i.default&&(i=i.default),e.default=i,t.exports=e.default}})(sf,sf.exports);var hv=sf.exports;const pv=Vs(hv),$p=aC({__proto__:null,default:pv},[hv]);function Up(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function zp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Up(Object(n),!0).forEach(function(i){QE(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Up(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function QE(t,e,n){return e=eT(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eT(t){var e=tT(t,"string");return zi(e)=="symbol"?e:String(e)}function tT(t,e){if(zi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(zi(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zi(t){"@babel/helpers - typeof";return zi=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},zi(t)}var Nr;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Nr=global.fetch:typeof window<"u"&&window.fetch?Nr=window.fetch:Nr=fetch);var Is;dv()&&(typeof global<"u"&&global.XMLHttpRequest?Is=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Is=window.XMLHttpRequest));var Cu;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Cu=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Cu=window.ActiveXObject));!Nr&&$p&&!Is&&!Cu&&(Nr=pv||$p);typeof Nr!="function"&&(Nr=void 0);var af=function(e,n){if(n&&zi(n)==="object"){var i="";for(var o in n)i+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);if(!i)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+i.slice(1)}return e},qp=function(e,n,i,o){var a=function(h){if(!h.ok)return i(h.statusText||"Error",{status:h.status});h.text().then(function(m){i(null,{status:h.status,data:m})}).catch(i)};if(o){var l=o(e,n);if(l instanceof Promise){l.then(a).catch(i);return}}typeof fetch=="function"?fetch(e,n).then(a).catch(i):Nr(e,n).then(a).catch(i)},Yp=!1,nT=function(e,n,i,o){e.queryStringParams&&(n=af(n,e.queryStringParams));var a=zp({},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&&(a["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),i&&(a["Content-Type"]="application/json");var l=typeof e.requestOptions=="function"?e.requestOptions(i):e.requestOptions,d=zp({method:i?"POST":"GET",body:i?e.stringify(i):void 0,headers:a},Yp?{}:l),h=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{qp(n,d,o,h)}catch(m){if(!l||Object.keys(l).length===0||!m.message||m.message.indexOf("not implemented")<0)return o(m);try{Object.keys(l).forEach(function(b){delete d[b]}),qp(n,d,o,h),Yp=!0}catch(b){o(b)}}},rT=function(e,n,i,o){i&&zi(i)==="object"&&(i=af("",i).slice(1)),e.queryStringParams&&(n=af(n,e.queryStringParams));try{var a;Is?a=new Is:a=new Cu("MSXML2.XMLHTTP.3.0"),a.open(i?"POST":"GET",n,1),e.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!e.withCredentials,i&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var l=e.customHeaders;if(l=typeof l=="function"?l():l,l)for(var d in l)a.setRequestHeader(d,l[d]);a.onreadystatechange=function(){a.readyState>3&&o(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(i)}catch(h){console&&console.log(h)}},iT=function(e,n,i,o){if(typeof i=="function"&&(o=i,i=void 0),o=o||function(){},Nr&&n.indexOf("file:")!==0)return nT(e,n,i,o);if(dv()||typeof ActiveXObject=="function")return rT(e,n,i,o);o(new Error("No fetch and no xhr implementation found!"))};function Rs(t){"@babel/helpers - typeof";return Rs=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},Rs(t)}function Gp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function xc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gp(Object(n),!0).forEach(function(i){gv(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function oT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kp(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,mv(i.key),i)}}function sT(t,e,n){return e&&Kp(t.prototype,e),n&&Kp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function gv(t,e,n){return e=mv(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mv(t){var e=aT(t,"string");return Rs(e)=="symbol"?e:String(e)}function aT(t,e){if(Rs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Rs(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var uT=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,o){return gv({},i,o||"")},parseLoadPayload:function(n,i){},request:iT,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},vv=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};oT(this,t),this.services=e,this.options=n,this.allOptions=i,this.type="backend",this.init(e,n,i)}return sT(t,[{key:"init",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=xc(xc(xc({},uT()),this.options||{}),o),this.allOptions=a,this.services&&this.options.reloadInterval&&setInterval(function(){return i.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,i,o){this._readAny(n,n,i,i,o)}},{key:"read",value:function(n,i,o){this._readAny([n],n,[i],i,o)}},{key:"_readAny",value:function(n,i,o,a,l){var d=this,h=this.options.loadPath;typeof this.options.loadPath=="function"&&(h=this.options.loadPath(n,o)),h=XE(h),h.then(function(m){if(!m)return l(null,{});var b=d.services.interpolator.interpolate(m,{lng:n.join("+"),ns:o.join("+")});d.loadUrl(b,l,i,a)})}},{key:"loadUrl",value:function(n,i,o,a){var l=this,d=typeof o=="string"?[o]:o,h=typeof a=="string"?[a]:a,m=this.options.parseLoadPayload(d,h);this.options.request(this.options,n,m,function(b,w){if(w&&(w.status>=500&&w.status<600||!w.status))return i("failed loading "+n+"; status code: "+w.status,!0);if(w&&w.status>=400&&w.status<500)return i("failed loading "+n+"; status code: "+w.status,!1);if(!w&&b&&b.message&&b.message.indexOf("Failed to fetch")>-1)return i("failed loading "+n+": "+b.message,!0);if(b)return i(b,!1);var _,E;try{typeof w.data=="string"?_=l.options.parse(w.data,o,a):_=w.data}catch{E="failed parsing "+n+" to json"}if(E)return i(E,!1);i(null,_)})}},{key:"create",value:function(n,i,o,a,l){var d=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var h=this.options.parsePayload(i,o,a),m=0,b=[],w=[];n.forEach(function(_){var E=d.options.addPath;typeof d.options.addPath=="function"&&(E=d.options.addPath(_,i));var I=d.services.interpolator.interpolate(E,{lng:_,ns:i});d.options.request(d.options,I,h,function(A,B){m+=1,b.push(A),w.push(B),m===n.length&&typeof l=="function"&&l(b,w)})})}}},{key:"reload",value:function(){var n=this,i=this.services,o=i.backendConnector,a=i.languageUtils,l=i.logger,d=o.language;if(!(d&&d.toLowerCase()==="cimode")){var h=[],m=function(w){var _=a.toResolveHierarchy(w);_.forEach(function(E){h.indexOf(E)<0&&h.push(E)})};m(d),this.allOptions.preload&&this.allOptions.preload.forEach(function(b){return m(b)}),h.forEach(function(b){n.allOptions.ns.forEach(function(w){o.read(b,w,"read",null,null,function(_,E){_&&l.warn("loading namespace ".concat(w," for language ").concat(b," failed"),_),!_&&E&&l.log("loaded namespace ".concat(w," for language ").concat(b),E),o.loaded("".concat(b,"|").concat(w),_,E)})})})}}}]),t}();vv.type="backend";var Mf=(t=>(t.en="en",t.de="de",t))(Mf||{});const lT={en:"English",de:"German"};Lt.use(fv).use(BE).use(ov).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(lT),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[vv],backendOptions:[{loadPath:"https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",crossDomain:!0,cacheHitMode:"refresh"}]}});function cT(){const[t,e]=te.useState();return te.useEffect(()=>{const n=localStorage.getItem("language");e(n||Mf.en)},[]),{language:t,setLanguage:e}}const yv=te.createContext({}),fT=()=>te.useContext(yv),dT=Lt,hT=rv,pT=()=>lv(),gT=({children:t})=>{const e=cT();return be.jsx(yv.Provider,{value:e,children:be.jsx($E,{i18n:Lt,children:t})})};var bv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Xp=te.createContext&&te.createContext(bv),mT=["attr","size","title"];function vT(t,e){if(t==null)return{};var n=yT(t,e),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)i=a[o],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function yT(t,e){if(t==null)return{};var n={},i=Object.keys(t),o,a;for(a=0;a<i.length;a++)o=i[a],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Eu(){return Eu=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},Eu.apply(this,arguments)}function Jp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Tu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jp(Object(n),!0).forEach(function(i){bT(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jp(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function bT(t,e,n){return e=wT(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wT(t){var e=xT(t,"string");return typeof e=="symbol"?e:String(e)}function xT(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 wv(t){return t&&t.map((e,n)=>te.createElement(e.tag,Tu({key:n},e.attr),wv(e.child)))}function xv(t){return e=>te.createElement(ST,Eu({attr:Tu({},t.attr)},e),wv(t.child))}function ST(t){var e=n=>{var{attr:i,size:o,title:a}=t,l=vT(t,mT),d=o||n.size||"1em",h;return n.className&&(h=n.className),t.className&&(h=(h?h+" ":"")+t.className),te.createElement("svg",Eu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,l,{className:h,style:Tu(Tu({color:t.color||n.color},n.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),a&&te.createElement("title",null,a),t.children)};return Xp!==void 0?te.createElement(Xp.Consumer,null,n=>e(n)):e(bv)}function _T(t){return xv({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 CT(t){return xv({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 Sv=t=>{const e={...t.colors};return ko.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:"contained",color:"error"},style:{color:e.white}},{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:_T,next:CT}},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:{fontSize:"10px",backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function ET(t,e){const n={...t};return e==null||e.forEach(i=>{i.children&&i.children.forEach(o=>{n[o.key]=o.color.trim()})}),n}function TT(t){var l,d;const{data:e,isFetching:n}=iC.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(h=>h.json()):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0}),i=ET(fn,(l=e==null?void 0:e.theme)==null?void 0:l.keyColor);console.log("🚀 ~ useThemeContext ~ isFetching:",n);const o=Sv({colors:i}),a=(d=e==null?void 0:e.theme)==null?void 0:d.image;return{colors:i,theme:o,logo:a,isFetching:n}}const _v=te.createContext({}),OT=()=>te.useContext(_v),PT=t=>{var a;const{children:e,brandTheme:n}=t,i=TT(n),o=((a=t.customTheme)==null?void 0:a.call(t,i.colors))||i.theme;return be.jsx(_v.Provider,{value:i,children:be.jsx(ko.ThemeProvider,{theme:o,children:e})})},Cv=te.createContext({}),AT=({children:t})=>{const[e,n]=te.useState(!0),[i,o]=te.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),a=()=>{n(!e)},l=()=>{n(!0)};return be.jsx(Cv.Provider,{value:{isOpen:e,toggleOpen:a,setShowModalFalse:l,notidata:i,setNotiData:o},children:t})},kT=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
|
|
5
|
+
`;function Ev({children:t,styles:e=[],...n}){return be.jsxs("div",{...n,children:[[kT,...e].map((i,o)=>be.jsx("style",{type:"text/css",children:i},o)),t]})}var DT=typeof global=="object"&&global&&global.Object===Object&&global;const IT=DT;var RT=typeof self=="object"&&self&&self.Object===Object&&self,LT=IT||RT||Function("return this")();const Tv=LT;var MT=Tv.Symbol;const Ou=MT;var Ov=Object.prototype,NT=Ov.hasOwnProperty,jT=Ov.toString,xs=Ou?Ou.toStringTag:void 0;function BT(t){var e=NT.call(t,xs),n=t[xs];try{t[xs]=void 0;var i=!0}catch{}var o=jT.call(t);return i&&(e?t[xs]=n:delete t[xs]),o}var FT=Object.prototype,VT=FT.toString;function WT(t){return VT.call(t)}var HT="[object Null]",$T="[object Undefined]",Zp=Ou?Ou.toStringTag:void 0;function UT(t){return t==null?t===void 0?$T:HT:Zp&&Zp in Object(t)?BT(t):WT(t)}function zT(t){return t!=null&&typeof t=="object"}var qT="[object Symbol]";function YT(t){return typeof t=="symbol"||zT(t)&&UT(t)==qT}var GT=/\s/;function KT(t){for(var e=t.length;e--&>.test(t.charAt(e)););return e}var XT=/^\s+/;function JT(t){return t&&t.slice(0,KT(t)+1).replace(XT,"")}function Pu(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Qp=0/0,ZT=/^[-+]0x[0-9a-f]+$/i,QT=/^0b[01]+$/i,eO=/^0o[0-7]+$/i,tO=parseInt;function eg(t){if(typeof t=="number")return t;if(YT(t))return Qp;if(Pu(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Pu(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=JT(t);var n=QT.test(t);return n||eO.test(t)?tO(t.slice(2),n?2:8):ZT.test(t)?Qp:+t}var nO=function(){return Tv.Date.now()};const Sc=nO;var rO="Expected a function",iO=Math.max,oO=Math.min;function mu(t,e,n){var i,o,a,l,d,h,m=0,b=!1,w=!1,_=!0;if(typeof t!="function")throw new TypeError(rO);e=eg(e)||0,Pu(n)&&(b=!!n.leading,w="maxWait"in n,a=w?iO(eg(n.maxWait)||0,e):a,_="trailing"in n?!!n.trailing:_);function E(ie){var g=i,ee=o;return i=o=void 0,m=ie,l=t.apply(ee,g),l}function I(ie){return m=ie,d=setTimeout(k,e),b?E(ie):l}function A(ie){var g=ie-h,ee=ie-m,Z=e-g;return w?oO(Z,a-ee):Z}function B(ie){var g=ie-h,ee=ie-m;return h===void 0||g>=e||g<0||w&&ee>=a}function k(){var ie=Sc();if(B(ie))return F(ie);d=setTimeout(k,A(ie))}function F(ie){return d=void 0,_&&i?E(ie):(i=o=void 0,l)}function N(){d!==void 0&&clearTimeout(d),m=0,i=h=o=d=void 0}function Y(){return d===void 0?l:F(Sc())}function $(){var ie=Sc(),g=B(ie);if(i=arguments,o=this,h=ie,g){if(d===void 0)return I(h);if(w)return clearTimeout(d),d=setTimeout(k,e),E(h)}return d===void 0&&(d=setTimeout(k,e)),l}return $.cancel=N,$.flush=Y,$}var sO="Expected a function";function aO(t,e,n){var i=!0,o=!0;if(typeof t!="function")throw new TypeError(sO);return Pu(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),mu(t,e,{leading:i,maxWait:e,trailing:o})}var uO=!!(typeof window<"u"&&window.document&&window.document.createElement),lO=uO;const Pv=Vs(lO);var Eo=function(){return Eo=Object.assign||function(e){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Eo.apply(this,arguments)},_o=null,tg=null;Pv&&window.addEventListener("resize",function(){tg!==window.devicePixelRatio&&(tg=window.devicePixelRatio,_o=null)});function ng(){if(_o===null){if(typeof document>"u")return _o=0,_o;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),_o=n}return _o}function Av(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function kv(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Dv=function(t){var e={},n=Array.prototype.reduce.call(t,function(i,o){var a=o.name.match(/data-simplebar-(.+)/);if(a){var l=a[1].replace(/\W+(.)/g,function(d,h){return h.toUpperCase()});switch(o.value){case"true":i[l]=!0;break;case"false":i[l]=!1;break;case void 0:i[l]=!0;break;default:i[l]=o.value}}return i},e);return n};function Iv(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function Rv(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function Lv(t){return".".concat(t.split(" ").join("."))}var cO=Object.freeze({__proto__:null,getElementWindow:Av,getElementDocument:kv,getOptions:Dv,addClasses:Iv,removeClasses:Rv,classNamesToQuery:Lv}),oi=Av,_c=kv,fO=Dv,si=Iv,ai=Rv,cn=Lv,au=function(){function t(e,n){n===void 0&&(n={});var i=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var o=oi(i.el);i.scrollXTicking||(o.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(o.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0),i.isScrolling||(i.isScrolling=!0,si(i.el,i.classNames.scrolling)),i.showScrollbar("x"),i.showScrollbar("y"),i.onStopScrolling()},this.scrollX=function(){i.axis.x.isOverflowing&&i.positionScrollbar("x"),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&i.positionScrollbar("y"),i.scrollYTicking=!1},this._onStopScrolling=function(){ai(i.el,i.classNames.scrolling),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isScrolling=!1},this.onMouseEnter=function(){i.isMouseEntering||(si(i.el,i.classNames.mouseEntered),i.showScrollbar("x"),i.showScrollbar("y"),i.isMouseEntering=!0),i.onMouseEntered()},this._onMouseEntered=function(){ai(i.el,i.classNames.mouseEntered),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isMouseEntering=!1},this._onMouseMove=function(o){i.mouseX=o.clientX,i.mouseY=o.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this._onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.onPointerEvent=function(o){if(!(!i.axis.x.track.el||!i.axis.y.track.el||!i.axis.x.scrollbar.el||!i.axis.y.scrollbar.el)){var a,l;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(a=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(l=i.isWithinBounds(i.axis.y.track.rect)),(a||l)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(a&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(o,"x"):i.onTrackClick(o,"x")),l&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(o,"y"):i.onTrackClick(o,"y"))))}},this.drag=function(o){var a,l,d,h,m,b,w,_,E,I,A;if(!(!i.draggedAxis||!i.contentWrapperEl)){var B,k=i.axis[i.draggedAxis].track,F=(l=(a=k.rect)===null||a===void 0?void 0:a[i.axis[i.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,N=i.axis[i.draggedAxis].scrollbar,Y=(h=(d=i.contentWrapperEl)===null||d===void 0?void 0:d[i.axis[i.draggedAxis].scrollSizeAttr])!==null&&h!==void 0?h:0,$=parseInt((b=(m=i.elStyles)===null||m===void 0?void 0:m[i.axis[i.draggedAxis].sizeAttr])!==null&&b!==void 0?b:"0px",10);o.preventDefault(),o.stopPropagation(),i.draggedAxis==="y"?B=o.pageY:B=o.pageX;var ie=B-((_=(w=k.rect)===null||w===void 0?void 0:w[i.axis[i.draggedAxis].offsetAttr])!==null&&_!==void 0?_:0)-i.axis[i.draggedAxis].dragOffset;ie=i.draggedAxis==="x"&&i.isRtl?((I=(E=k.rect)===null||E===void 0?void 0:E[i.axis[i.draggedAxis].sizeAttr])!==null&&I!==void 0?I:0)-N.size-ie:ie;var g=ie/(F-N.size),ee=g*(Y-$);i.draggedAxis==="x"&&i.isRtl&&(ee=!((A=t.getRtlHelpers())===null||A===void 0)&&A.isScrollingToNegative?-ee:ee),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=ee}},this.onEndDrag=function(o){var a=_c(i.el),l=oi(i.el);o.preventDefault(),o.stopPropagation(),ai(i.el,i.classNames.dragging),a.removeEventListener("mousemove",i.drag,!0),a.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=l.setTimeout(function(){a.removeEventListener("click",i.preventClick,!0),a.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=e,this.options=Eo(Eo({},t.defaultOptions),n),this.classNames=Eo(Eo({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=aO(this._onMouseMove,64),this.onWindowResize=mu(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=mu(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=mu(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,i=n==null?void 0:n.firstElementChild;if(!i)return null;document.body.appendChild(n),n.scrollLeft=0;var o=t.getOffset(n),a=t.getOffset(i);n.scrollLeft=-999;var l=t.getOffset(i);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:o.left!==a.left,isScrollingToNegative:a.left!==l.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:ng()}catch{return ng()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),i=_c(e),o=oi(e);return{top:n.top+(o.pageYOffset||i.documentElement.scrollTop),left:n.left+(o.pageXOffset||i.documentElement.scrollLeft)}},t.prototype.init=function(){Pv&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(cn(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(cn(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(cn(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(cn(this.classNames.offset)),this.maskEl=this.el.querySelector(cn(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,cn(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(cn(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(cn(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(cn(this.classNames.track)).concat(cn(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(cn(this.classNames.track)).concat(cn(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(cn(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(cn(this.classNames.scrollbar)))||null,this.options.autoHide||(si(this.axis.x.scrollbar.el,this.classNames.visible),si(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,i=oi(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),i.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var o=!1,a=i.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){o&&i.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),i.requestAnimationFrame(function(){o=!0})}this.mutationObserver=new i.MutationObserver(function(){i.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=oi(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||n>0,a=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,d=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var h=this.contentEl.scrollHeight,m=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=o?"".concat(n||m,"px"):"auto",this.placeholderEl.style.height="".concat(h,"px");var b=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&m>n,this.axis.y.isOverflowing=h>b,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=d==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var w=this.axis.x.isOverflowing?this.scrollbarWidth:0,_=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&m>a-_,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&h>b-w,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,i;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var o=this.contentEl[this.axis[e].scrollSizeAttr],a=(i=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&i!==void 0?i:0,l=a/o,d;return d=Math.max(~~(l*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(d=Math.min(d,this.options.scrollbarMaxSize)),d},t.prototype.positionScrollbar=function(e){var n,i,o;e===void 0&&(e="y");var a=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[e].scrollSizeAttr],d=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,h=parseInt(this.elStyles[this.axis[e].sizeAttr],10),m=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];m=e==="x"&&this.isRtl&&(!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollOriginAtZero)?-m:m,e==="x"&&this.isRtl&&(m=!((o=t.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?m:-m);var b=m/(l-h),w=~~((d-a.size)*b);w=e==="x"&&this.isRtl?-w+(d-a.size):w,a.el.style.transform=e==="x"?"translate3d(".concat(w,"px, 0, 0)"):"translate3d(0, ".concat(w,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,i=this.axis[e].scrollbar.el;!n||!i||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?i.style.display="block":i.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(si(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(ai(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),si(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?si(n.scrollbar.el,this.classNames.hover):ai(n.scrollbar.el,this.classNames.hover)):(ai(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),ai(this.axis[e].track.el,this.classNames.hover),ai(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var i;n===void 0&&(n="y");var o=_c(this.el),a=oi(this.el),l=this.axis[n].scrollbar,d=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=d-(((i=l.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])||0),this.draggedAxis=n,si(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var i=this,o,a,l,d;n===void 0&&(n="y");var h=this.axis[n];if(!(!this.options.clickOnTrack||!h.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var m=oi(this.el);this.axis[n].scrollbar.rect=h.scrollbar.el.getBoundingClientRect();var b=this.axis[n].scrollbar,w=(a=(o=b.rect)===null||o===void 0?void 0:o[this.axis[n].offsetAttr])!==null&&a!==void 0?a:0,_=parseInt((d=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[n].sizeAttr])!==null&&d!==void 0?d:"0px",10),E=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],I=n==="y"?this.mouseY-w:this.mouseX-w,A=I<0?-1:1,B=A===-1?E-_:E+_,k=40,F=function(){i.contentWrapperEl&&(A===-1?E>B&&(E-=k,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=E,m.requestAnimationFrame(F)):E<B&&(E+=k,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=E,m.requestAnimationFrame(F)))};F()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=oi(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(o){return i.call(o,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=fO,t.helpers=cO,t}(),_n=function(){return _n=Object.assign||function(e){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_n.apply(this,arguments)};function dO(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]]);return n}var Mv=pt.forwardRef(function(t,e){var n=t.children,i=t.scrollableNodeProps,o=i===void 0?{}:i,a=dO(t,["children","scrollableNodeProps"]),l=pt.useRef(),d=pt.useRef(),h=pt.useRef(),m={},b={};Object.keys(a).forEach(function(E){Object.prototype.hasOwnProperty.call(au.defaultOptions,E)?m[E]=a[E]:b[E]=a[E]});var w=_n(_n({},au.defaultOptions.classNames),m.classNames),_=_n(_n({},o),{className:"".concat(w.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:0,role:"region","aria-label":m.ariaLabel||au.defaultOptions.ariaLabel});return pt.useEffect(function(){var E;return d.current=_.ref?_.ref.current:d.current,l.current&&(E=new au(l.current,_n(_n(_n({},m),d.current&&{scrollableNode:d.current}),h.current&&{contentNode:h.current})),typeof e=="function"?e(E):e&&(e.current=E)),function(){E==null||E.unMount(),E=null,typeof e=="function"&&e(null)}},[]),pt.createElement("div",_n({"data-simplebar":"init",ref:l},b),pt.createElement("div",{className:w.wrapper},pt.createElement("div",{className:w.heightAutoObserverWrapperEl},pt.createElement("div",{className:w.heightAutoObserverEl})),pt.createElement("div",{className:w.mask},pt.createElement("div",{className:w.offset},typeof n=="function"?n({scrollableNodeRef:d,scrollableNodeProps:_n(_n({},_),{ref:d}),contentNodeRef:h,contentNodeProps:{className:w.contentEl,ref:h}}):pt.createElement("div",_n({},_),pt.createElement("div",{className:w.contentEl},n)))),pt.createElement("div",{className:w.placeholder})),pt.createElement("div",{className:"".concat(w.track," simplebar-horizontal")},pt.createElement("div",{className:w.scrollbar})),pt.createElement("div",{className:"".concat(w.track," simplebar-vertical")},pt.createElement("div",{className:w.scrollbar})))});Mv.displayName="SimpleBar";const hO=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
6
|
+
`,Nv=te.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Uu=te.createContext({}),Nf=te.createContext(null),zu=typeof document<"u",pO=zu?te.useLayoutEffect:te.useEffect,jv=te.createContext({strict:!1}),jf=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),gO="framerAppearId",Bv="data-"+jf(gO);function mO(t,e,n,i){const{visualElement:o}=te.useContext(Uu),a=te.useContext(jv),l=te.useContext(Nf),d=te.useContext(Nv).reducedMotion,h=te.useRef();i=i||a.renderer,!h.current&&i&&(h.current=i(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d}));const m=h.current;te.useInsertionEffect(()=>{m&&m.update(n,l)});const b=te.useRef(!!(n[Bv]&&!window.HandoffComplete));return pO(()=>{m&&(m.render(),b.current&&m.animationState&&m.animationState.animateChanges())}),te.useEffect(()=>{m&&(m.updateFeatures(),!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(b.current=!1,window.HandoffComplete=!0))}),m}function To(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function vO(t,e,n){return te.useCallback(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):To(n)&&(n.current=i))},[e])}function Ls(t){return typeof t=="string"||Array.isArray(t)}function qu(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Bf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ff=["initial",...Bf];function Yu(t){return qu(t.animate)||Ff.some(e=>Ls(t[e]))}function Fv(t){return!!(Yu(t)||t.variants)}function yO(t,e){if(Yu(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Ls(n)?n:void 0,animate:Ls(i)?i:void 0}}return t.inherit!==!1?e:{}}function bO(t){const{initial:e,animate:n}=yO(t,te.useContext(Uu));return te.useMemo(()=>({initial:e,animate:n}),[rg(e),rg(n)])}function rg(t){return Array.isArray(t)?t.join(" "):t}const ig={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ms={};for(const t in ig)Ms[t]={isEnabled:e=>ig[t].some(n=>!!e[n])};function wO(t){for(const e in t)Ms[e]={...Ms[e],...t[e]}}const Vv=te.createContext({}),Wv=te.createContext({}),xO=Symbol.for("motionComponentSymbol");function SO({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:o}){t&&wO(t);function a(d,h){let m;const b={...te.useContext(Nv),...d,layoutId:_O(d)},{isStatic:w}=b,_=bO(d),E=i(d,w);if(!w&&zu){_.visualElement=mO(o,E,b,e);const I=te.useContext(Wv),A=te.useContext(jv).strict;_.visualElement&&(m=_.visualElement.loadFeatures(b,A,t,I))}return pt.createElement(Uu.Provider,{value:_},m&&_.visualElement?pt.createElement(m,{visualElement:_.visualElement,...b}):null,n(o,d,vO(E,_.visualElement,h),E,w,_.visualElement))}const l=te.forwardRef(a);return l[xO]=o,l}function _O({layoutId:t}){const e=te.useContext(Vv).id;return e&&t!==void 0?e+"-"+t:t}function CO(t){function e(i,o={}){return SO(t(i,o))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(i,o)=>(n.has(o)||n.set(o,e(o)),n.get(o))})}const EO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Vf(t){return typeof t!="string"||t.includes("-")?!1:!!(EO.indexOf(t)>-1||/[A-Z]/.test(t))}const Au={};function TO(t){Object.assign(Au,t)}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ji=new Set(Ws);function Hv(t,{layout:e,layoutId:n}){return Ji.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Au[t]||t==="opacity")}const dn=t=>!!(t&&t.getVelocity),OO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},PO=Ws.length;function AO(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},i,o){let a="";for(let l=0;l<PO;l++){const d=Ws[l];if(t[d]!==void 0){const h=OO[d]||d;a+=`${h}(${t[d]}) `}}return e&&!t.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(t,i?"":a):n&&i&&(a="none"),a}const $v=t=>e=>typeof e=="string"&&e.startsWith(t),Uv=$v("--"),uf=$v("var(--"),kO=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,DO=(t,e)=>e&&typeof t=="number"?e.transform(t):t,mi=(t,e,n)=>Math.min(Math.max(n,t),e),Zi={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ts={...Zi,transform:t=>mi(0,1,t)},uu={...Zi,default:1},Os=t=>Math.round(t*1e5)/1e5,Gu=/(-)?([\d]*\.?[\d])+/g,zv=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,IO=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Hs(t){return typeof t=="string"}const $s=t=>({test:e=>Hs(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ui=$s("deg"),hr=$s("%"),We=$s("px"),RO=$s("vh"),LO=$s("vw"),og={...hr,parse:t=>hr.parse(t)/100,transform:t=>hr.transform(t*100)},sg={...Zi,transform:Math.round},qv={borderWidth:We,borderTopWidth:We,borderRightWidth:We,borderBottomWidth:We,borderLeftWidth:We,borderRadius:We,radius:We,borderTopLeftRadius:We,borderTopRightRadius:We,borderBottomRightRadius:We,borderBottomLeftRadius:We,width:We,maxWidth:We,height:We,maxHeight:We,size:We,top:We,right:We,bottom:We,left:We,padding:We,paddingTop:We,paddingRight:We,paddingBottom:We,paddingLeft:We,margin:We,marginTop:We,marginRight:We,marginBottom:We,marginLeft:We,rotate:ui,rotateX:ui,rotateY:ui,rotateZ:ui,scale:uu,scaleX:uu,scaleY:uu,scaleZ:uu,skew:ui,skewX:ui,skewY:ui,distance:We,translateX:We,translateY:We,translateZ:We,x:We,y:We,z:We,perspective:We,transformPerspective:We,opacity:Ts,originX:og,originY:og,originZ:We,zIndex:sg,fillOpacity:Ts,strokeOpacity:Ts,numOctaves:sg};function Wf(t,e,n,i){const{style:o,vars:a,transform:l,transformOrigin:d}=t;let h=!1,m=!1,b=!0;for(const w in e){const _=e[w];if(Uv(w)){a[w]=_;continue}const E=qv[w],I=DO(_,E);if(Ji.has(w)){if(h=!0,l[w]=I,!b)continue;_!==(E.default||0)&&(b=!1)}else w.startsWith("origin")?(m=!0,d[w]=I):o[w]=I}if(e.transform||(h||i?o.transform=AO(t.transform,n,b,i):o.transform&&(o.transform="none")),m){const{originX:w="50%",originY:_="50%",originZ:E=0}=d;o.transformOrigin=`${w} ${_} ${E}`}}const Hf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Yv(t,e,n){for(const i in e)!dn(e[i])&&!Hv(i,n)&&(t[i]=e[i])}function MO({transformTemplate:t},e,n){return te.useMemo(()=>{const i=Hf();return Wf(i,e,{enableHardwareAcceleration:!n},t),Object.assign({},i.vars,i.style)},[e])}function NO(t,e,n){const i=t.style||{},o={};return Yv(o,i,t),Object.assign(o,MO(t,e,n)),t.transformValues?t.transformValues(o):o}function jO(t,e,n){const i={},o=NO(t,e,n);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=o,i}const BO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ku(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||BO.has(t)}let Gv=t=>!ku(t);function FO(t){t&&(Gv=e=>e.startsWith("on")?!ku(e):t(e))}try{FO(require("@emotion/is-prop-valid").default)}catch{}function VO(t,e,n){const i={};for(const o in t)o==="values"&&typeof t.values=="object"||(Gv(o)||n===!0&&ku(o)||!e&&!ku(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}function ag(t,e,n){return typeof t=="string"?t:We.transform(e+n*t)}function WO(t,e,n){const i=ag(e,t.x,t.width),o=ag(n,t.y,t.height);return`${i} ${o}`}const HO={offset:"stroke-dashoffset",array:"stroke-dasharray"},$O={offset:"strokeDashoffset",array:"strokeDasharray"};function UO(t,e,n=1,i=0,o=!0){t.pathLength=1;const a=o?HO:$O;t[a.offset]=We.transform(-i);const l=We.transform(e),d=We.transform(n);t[a.array]=`${l} ${d}`}function $f(t,{attrX:e,attrY:n,attrScale:i,originX:o,originY:a,pathLength:l,pathSpacing:d=1,pathOffset:h=0,...m},b,w,_){if(Wf(t,m,b,_),w){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:E,style:I,dimensions:A}=t;E.transform&&(A&&(I.transform=E.transform),delete E.transform),A&&(o!==void 0||a!==void 0||I.transform)&&(I.transformOrigin=WO(A,o!==void 0?o:.5,a!==void 0?a:.5)),e!==void 0&&(E.x=e),n!==void 0&&(E.y=n),i!==void 0&&(E.scale=i),l!==void 0&&UO(E,l,d,h,!1)}const Kv=()=>({...Hf(),attrs:{}}),Uf=t=>typeof t=="string"&&t.toLowerCase()==="svg";function zO(t,e,n,i){const o=te.useMemo(()=>{const a=Kv();return $f(a,e,{enableHardwareAcceleration:!1},Uf(i),t.transformTemplate),{...a.attrs,style:{...a.style}}},[e]);if(t.style){const a={};Yv(a,t.style,t),o.style={...a,...o.style}}return o}function qO(t=!1){return(n,i,o,{latestValues:a},l)=>{const h=(Vf(n)?zO:jO)(i,a,l,n),b={...VO(i,typeof n=="string",t),...h,ref:o},{children:w}=i,_=te.useMemo(()=>dn(w)?w.get():w,[w]);return te.createElement(n,{...b,children:_})}}function Xv(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const a in n)t.style.setProperty(a,n[a])}const Jv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Zv(t,e,n,i){Xv(t,e,void 0,i);for(const o in e.attrs)t.setAttribute(Jv.has(o)?o:jf(o),e.attrs[o])}function zf(t,e){const{style:n}=t,i={};for(const o in n)(dn(n[o])||e.style&&dn(e.style[o])||Hv(o,t))&&(i[o]=n[o]);return i}function Qv(t,e){const n=zf(t,e);for(const i in t)if(dn(t[i])||dn(e[i])){const o=Ws.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[o]=t[i]}return n}function qf(t,e,n,i={},o={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,i,o)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,i,o)),e}function YO(t){const e=te.useRef(null);return e.current===null&&(e.current=t()),e.current}const Du=t=>Array.isArray(t),GO=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),KO=t=>Du(t)?t[t.length-1]||0:t;function vu(t){const e=dn(t)?t.get():t;return GO(e)?e.toValue():e}function XO({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,o,a){const l={latestValues:JO(i,o,a,t),renderState:e()};return n&&(l.mount=d=>n(i,d,l)),l}const ey=t=>(e,n)=>{const i=te.useContext(Uu),o=te.useContext(Nf),a=()=>XO(t,e,i,o);return n?a():YO(a)};function JO(t,e,n,i){const o={},a=i(t,{});for(const _ in a)o[_]=vu(a[_]);let{initial:l,animate:d}=t;const h=Yu(t),m=Fv(t);e&&m&&!h&&t.inherit!==!1&&(l===void 0&&(l=e.initial),d===void 0&&(d=e.animate));let b=n?n.initial===!1:!1;b=b||l===!1;const w=b?d:l;return w&&typeof w!="boolean"&&!qu(w)&&(Array.isArray(w)?w:[w]).forEach(E=>{const I=qf(t,E);if(!I)return;const{transitionEnd:A,transition:B,...k}=I;for(const F in k){let N=k[F];if(Array.isArray(N)){const Y=b?N.length-1:0;N=N[Y]}N!==null&&(o[F]=N)}for(const F in A)o[F]=A[F]}),o}const _t=t=>t;class ug{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function ZO(t){let e=new ug,n=new ug,i=0,o=!1,a=!1;const l=new WeakSet,d={schedule:(h,m=!1,b=!1)=>{const w=b&&o,_=w?e:n;return m&&l.add(h),_.add(h)&&w&&o&&(i=e.order.length),h},cancel:h=>{n.remove(h),l.delete(h)},process:h=>{if(o){a=!0;return}if(o=!0,[e,n]=[n,e],n.clear(),i=e.order.length,i)for(let m=0;m<i;m++){const b=e.order[m];b(h),l.has(b)&&(d.schedule(b),t())}o=!1,a&&(a=!1,d.process(h))}};return d}const lu=["prepare","read","update","preRender","render","postRender"],QO=40;function eP(t,e){let n=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=lu.reduce((w,_)=>(w[_]=ZO(()=>n=!0),w),{}),l=w=>a[w].process(o),d=()=>{const w=performance.now();n=!1,o.delta=i?1e3/60:Math.max(Math.min(w-o.timestamp,QO),1),o.timestamp=w,o.isProcessing=!0,lu.forEach(l),o.isProcessing=!1,n&&e&&(i=!1,t(d))},h=()=>{n=!0,i=!0,o.isProcessing||t(d)};return{schedule:lu.reduce((w,_)=>{const E=a[_];return w[_]=(I,A=!1,B=!1)=>(n||h(),E.schedule(I,A,B)),w},{}),cancel:w=>lu.forEach(_=>a[_].cancel(w)),state:o,steps:a}}const{schedule:vt,cancel:Vr,state:Ut,steps:Cc}=eP(typeof requestAnimationFrame<"u"?requestAnimationFrame:_t,!0),tP={useVisualState:ey({scrapeMotionValuesFromProps:Qv,createRenderState:Kv,onMount:(t,e,{renderState:n,latestValues:i})=>{vt.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),vt.render(()=>{$f(n,i,{enableHardwareAcceleration:!1},Uf(e.tagName),t.transformTemplate),Zv(e,n)})}})},nP={useVisualState:ey({scrapeMotionValuesFromProps:zf,createRenderState:Hf})};function rP(t,{forwardMotionProps:e=!1},n,i){return{...Vf(t)?tP:nP,preloadedFeatures:n,useRender:qO(e),createVisualElement:i,Component:t}}function Lr(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const ty=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Ku(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const iP=t=>e=>ty(e)&&t(e,Ku(e));function jr(t,e,n,i){return Lr(t,e,iP(n),i)}const oP=(t,e)=>n=>e(t(n)),fi=(...t)=>t.reduce(oP);function ny(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const lg=ny("dragHorizontal"),cg=ny("dragVertical");function ry(t){let e=!1;if(t==="y")e=cg();else if(t==="x")e=lg();else{const n=lg(),i=cg();n&&i?e=()=>{n(),i()}:(n&&n(),i&&i())}return e}function iy(){const t=ry(!0);return t?(t(),!1):!0}class bi{constructor(e){this.isMounted=!1,this.node=e}update(){}}function fg(t,e){const n="pointer"+(e?"enter":"leave"),i="onHover"+(e?"Start":"End"),o=(a,l)=>{if(a.pointerType==="touch"||iy())return;const d=t.getProps();t.animationState&&d.whileHover&&t.animationState.setActive("whileHover",e),d[i]&&vt.update(()=>d[i](a,l))};return jr(t.current,n,o,{passive:!t.getProps()[i]})}class sP extends bi{mount(){this.unmount=fi(fg(this.node,!0),fg(this.node,!1))}unmount(){}}class aP extends bi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=fi(Lr(this.node.current,"focus",()=>this.onFocus()),Lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const oy=(t,e)=>e?t===e?!0:oy(t,e.parentElement):!1;function Ec(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Ku(n))}class uP extends bi{constructor(){super(...arguments),this.removeStartListeners=_t,this.removeEndListeners=_t,this.removeAccessibleListeners=_t,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),a=jr(window,"pointerup",(d,h)=>{if(!this.checkPressEnd())return;const{onTap:m,onTapCancel:b,globalTapTarget:w}=this.node.getProps();vt.update(()=>{!w&&!oy(this.node.current,d.target)?b&&b(d,h):m&&m(d,h)})},{passive:!(i.onTap||i.onPointerUp)}),l=jr(window,"pointercancel",(d,h)=>this.cancelPress(d,h),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=fi(a,l),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=a=>{if(a.key!=="Enter"||this.isPressing)return;const l=d=>{d.key!=="Enter"||!this.checkPressEnd()||Ec("up",(h,m)=>{const{onTap:b}=this.node.getProps();b&&vt.update(()=>b(h,m))})};this.removeEndListeners(),this.removeEndListeners=Lr(this.node.current,"keyup",l),Ec("down",(d,h)=>{this.startPress(d,h)})},n=Lr(this.node.current,"keydown",e),i=()=>{this.isPressing&&Ec("cancel",(a,l)=>this.cancelPress(a,l))},o=Lr(this.node.current,"blur",i);this.removeAccessibleListeners=fi(n,o)}}startPress(e,n){this.isPressing=!0;const{onTapStart:i,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&vt.update(()=>i(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!iy()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&vt.update(()=>i(e,n))}mount(){const e=this.node.getProps(),n=jr(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),i=Lr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=fi(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const lf=new WeakMap,Tc=new WeakMap,lP=t=>{const e=lf.get(t.target);e&&e(t)},cP=t=>{t.forEach(lP)};function fP({root:t,...e}){const n=t||document;Tc.has(n)||Tc.set(n,{});const i=Tc.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(cP,{root:t,...e})),i[o]}function dP(t,e,n){const i=fP(e);return lf.set(t,n),i.observe(t),()=>{lf.delete(t),i.unobserve(t)}}const hP={some:0,all:1};class pP extends bi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:a}=e,l={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:hP[o]},d=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,a&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:b,onViewportLeave:w}=this.node.getProps(),_=m?b:w;_&&_(h)};return dP(this.node.current,l,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(gP(e,n))&&this.startObserver()}unmount(){}}function gP({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const mP={inView:{Feature:pP},tap:{Feature:uP},focus:{Feature:aP},hover:{Feature:sP}};function sy(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function vP(t){const e={};return t.values.forEach((n,i)=>e[i]=n.get()),e}function yP(t){const e={};return t.values.forEach((n,i)=>e[i]=n.getVelocity()),e}function Xu(t,e,n){const i=t.getProps();return qf(i,e,n!==void 0?n:i.custom,vP(t),yP(t))}let Us=_t,Jn=_t;process.env.NODE_ENV!=="production"&&(Us=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Jn=(t,e)=>{if(!t)throw new Error(e)});const di=t=>t*1e3,Br=t=>t/1e3,bP={current:!1},ay=t=>Array.isArray(t)&&typeof t[0]=="number";function uy(t){return!!(!t||typeof t=="string"&&ly[t]||ay(t)||Array.isArray(t)&&t.every(uy))}const Cs=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,ly={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cs([0,.65,.55,1]),circOut:Cs([.55,0,1,.45]),backIn:Cs([.31,.01,.66,-.59]),backOut:Cs([.33,1.53,.69,.99])};function cy(t){if(t)return ay(t)?Cs(t):Array.isArray(t)?t.map(cy):ly[t]}function wP(t,e,n,{delay:i=0,duration:o,repeat:a=0,repeatType:l="loop",ease:d,times:h}={}){const m={[e]:n};h&&(m.offset=h);const b=cy(d);return Array.isArray(b)&&(m.easing=b),t.animate(m,{delay:i,duration:o,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:a+1,direction:l==="reverse"?"alternate":"normal"})}function xP(t,{repeat:e,repeatType:n="loop"}){const i=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[i]}const fy=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,SP=1e-7,_P=12;function CP(t,e,n,i,o){let a,l,d=0;do l=e+(n-e)/2,a=fy(l,i,o)-t,a>0?n=l:e=l;while(Math.abs(a)>SP&&++d<_P);return l}function zs(t,e,n,i){if(t===e&&n===i)return _t;const o=a=>CP(a,0,1,t,n);return a=>a===0||a===1?a:fy(o(a),e,i)}const EP=zs(.42,0,1,1),TP=zs(0,0,.58,1),dy=zs(.42,0,.58,1),OP=t=>Array.isArray(t)&&typeof t[0]!="number",hy=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,py=t=>e=>1-t(1-e),Yf=t=>1-Math.sin(Math.acos(t)),gy=py(Yf),PP=hy(Yf),my=zs(.33,1.53,.69,.99),Gf=py(my),AP=hy(Gf),kP=t=>(t*=2)<1?.5*Gf(t):.5*(2-Math.pow(2,-10*(t-1))),dg={linear:_t,easeIn:EP,easeInOut:dy,easeOut:TP,circIn:Yf,circInOut:PP,circOut:gy,backIn:Gf,backInOut:AP,backOut:my,anticipate:kP},hg=t=>{if(Array.isArray(t)){Jn(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,o]=t;return zs(e,n,i,o)}else if(typeof t=="string")return Jn(dg[t]!==void 0,`Invalid easing type '${t}'`),dg[t];return t},Kf=(t,e)=>n=>!!(Hs(n)&&IO.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),vy=(t,e,n)=>i=>{if(!Hs(i))return i;const[o,a,l,d]=i.match(Gu);return{[t]:parseFloat(o),[e]:parseFloat(a),[n]:parseFloat(l),alpha:d!==void 0?parseFloat(d):1}},DP=t=>mi(0,255,t),Oc={...Zi,transform:t=>Math.round(DP(t))},Hi={test:Kf("rgb","red"),parse:vy("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Oc.transform(t)+", "+Oc.transform(e)+", "+Oc.transform(n)+", "+Os(Ts.transform(i))+")"};function IP(t){let e="",n="",i="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const cf={test:Kf("#"),parse:IP,transform:Hi.transform},Oo={test:Kf("hsl","hue"),parse:vy("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+hr.transform(Os(e))+", "+hr.transform(Os(n))+", "+Os(Ts.transform(i))+")"},Zt={test:t=>Hi.test(t)||cf.test(t)||Oo.test(t),parse:t=>Hi.test(t)?Hi.parse(t):Oo.test(t)?Oo.parse(t):cf.parse(t),transform:t=>Hs(t)?t:t.hasOwnProperty("red")?Hi.transform(t):Oo.transform(t)},xt=(t,e,n)=>-n*t+n*e+t;function Pc(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function RP({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let o=0,a=0,l=0;if(!e)o=a=l=n;else{const d=n<.5?n*(1+e):n+e-n*e,h=2*n-d;o=Pc(h,d,t+1/3),a=Pc(h,d,t),l=Pc(h,d,t-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(l*255),alpha:i}}const Ac=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},LP=[cf,Hi,Oo],MP=t=>LP.find(e=>e.test(t));function pg(t){const e=MP(t);Jn(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===Oo&&(n=RP(n)),n}const yy=(t,e)=>{const n=pg(t),i=pg(e),o={...n};return a=>(o.red=Ac(n.red,i.red,a),o.green=Ac(n.green,i.green,a),o.blue=Ac(n.blue,i.blue,a),o.alpha=xt(n.alpha,i.alpha,a),Hi.transform(o))};function NP(t){var e,n;return isNaN(t)&&Hs(t)&&(((e=t.match(Gu))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(zv))===null||n===void 0?void 0:n.length)||0)>0}const by={regex:kO,countKey:"Vars",token:"${v}",parse:_t},wy={regex:zv,countKey:"Colors",token:"${c}",parse:Zt.parse},xy={regex:Gu,countKey:"Numbers",token:"${n}",parse:Zi.parse};function kc(t,{regex:e,countKey:n,token:i,parse:o}){const a=t.tokenised.match(e);a&&(t["num"+n]=a.length,t.tokenised=t.tokenised.replace(e,i),t.values.push(...a.map(o)))}function Iu(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&kc(n,by),kc(n,wy),kc(n,xy),n}function Sy(t){return Iu(t).values}function _y(t){const{values:e,numColors:n,numVars:i,tokenised:o}=Iu(t),a=e.length;return l=>{let d=o;for(let h=0;h<a;h++)h<i?d=d.replace(by.token,l[h]):h<i+n?d=d.replace(wy.token,Zt.transform(l[h])):d=d.replace(xy.token,Os(l[h]));return d}}const jP=t=>typeof t=="number"?0:t;function BP(t){const e=Sy(t);return _y(t)(e.map(jP))}const vi={test:NP,parse:Sy,createTransformer:_y,getAnimatableNone:BP},Cy=(t,e)=>n=>`${n>0?e:t}`;function Ey(t,e){return typeof t=="number"?n=>xt(t,e,n):Zt.test(t)?yy(t,e):t.startsWith("var(")?Cy(t,e):Oy(t,e)}const Ty=(t,e)=>{const n=[...t],i=n.length,o=t.map((a,l)=>Ey(a,e[l]));return a=>{for(let l=0;l<i;l++)n[l]=o[l](a);return n}},FP=(t,e)=>{const n={...t,...e},i={};for(const o in n)t[o]!==void 0&&e[o]!==void 0&&(i[o]=Ey(t[o],e[o]));return o=>{for(const a in i)n[a]=i[a](o);return n}},Oy=(t,e)=>{const n=vi.createTransformer(e),i=Iu(t),o=Iu(e);return i.numVars===o.numVars&&i.numColors===o.numColors&&i.numNumbers>=o.numNumbers?fi(Ty(i.values,o.values),n):(Us(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Cy(t,e))},Ns=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},gg=(t,e)=>n=>xt(t,e,n);function VP(t){return typeof t=="number"?gg:typeof t=="string"?Zt.test(t)?yy:Oy:Array.isArray(t)?Ty:typeof t=="object"?FP:gg}function WP(t,e,n){const i=[],o=n||VP(t[0]),a=t.length-1;for(let l=0;l<a;l++){let d=o(t[l],t[l+1]);if(e){const h=Array.isArray(e)?e[l]||_t:e;d=fi(h,d)}i.push(d)}return i}function Py(t,e,{clamp:n=!0,ease:i,mixer:o}={}){const a=t.length;if(Jn(a===e.length,"Both input and output ranges must be the same length"),a===1)return()=>e[0];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=WP(e,i,o),d=l.length,h=m=>{let b=0;if(d>1)for(;b<t.length-2&&!(m<t[b+1]);b++);const w=Ns(t[b],t[b+1],m);return l[b](w)};return n?m=>h(mi(t[0],t[a-1],m)):h}function HP(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const o=Ns(0,e,i);t.push(xt(n,1,o))}}function $P(t){const e=[0];return HP(e,t.length-1),e}function UP(t,e){return t.map(n=>n*e)}function zP(t,e){return t.map(()=>e||dy).splice(0,t.length-1)}function Ru({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const o=OP(i)?i.map(hg):hg(i),a={done:!1,value:e[0]},l=UP(n&&n.length===e.length?n:$P(e),t),d=Py(l,e,{ease:Array.isArray(o)?o:zP(e,o)});return{calculatedDuration:t,next:h=>(a.value=d(h),a.done=h>=t,a)}}function Ay(t,e){return e?t*(1e3/e):0}const qP=5;function ky(t,e,n){const i=Math.max(e-qP,0);return Ay(n-t(i),e-i)}const Dc=.001,YP=.01,mg=10,GP=.05,KP=1;function XP({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let o,a;Us(t<=di(mg),"Spring duration must be 10 seconds or less");let l=1-e;l=mi(GP,KP,l),t=mi(YP,mg,Br(t)),l<1?(o=m=>{const b=m*l,w=b*t,_=b-n,E=ff(m,l),I=Math.exp(-w);return Dc-_/E*I},a=m=>{const w=m*l*t,_=w*n+n,E=Math.pow(l,2)*Math.pow(m,2)*t,I=Math.exp(-w),A=ff(Math.pow(m,2),l);return(-o(m)+Dc>0?-1:1)*((_-E)*I)/A}):(o=m=>{const b=Math.exp(-m*t),w=(m-n)*t+1;return-Dc+b*w},a=m=>{const b=Math.exp(-m*t),w=(n-m)*(t*t);return b*w});const d=5/t,h=ZP(o,a,d);if(t=di(t),isNaN(h))return{stiffness:100,damping:10,duration:t};{const m=Math.pow(h,2)*i;return{stiffness:m,damping:l*2*Math.sqrt(i*m),duration:t}}}const JP=12;function ZP(t,e,n){let i=n;for(let o=1;o<JP;o++)i=i-t(i)/e(i);return i}function ff(t,e){return t*Math.sqrt(1-e*e)}const QP=["duration","bounce"],eA=["stiffness","damping","mass"];function vg(t,e){return e.some(n=>t[n]!==void 0)}function tA(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!vg(t,eA)&&vg(t,QP)){const n=XP(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Dy({keyframes:t,restDelta:e,restSpeed:n,...i}){const o=t[0],a=t[t.length-1],l={done:!1,value:o},{stiffness:d,damping:h,mass:m,duration:b,velocity:w,isResolvedFromDuration:_}=tA({...i,velocity:-Br(i.velocity||0)}),E=w||0,I=h/(2*Math.sqrt(d*m)),A=a-o,B=Br(Math.sqrt(d/m)),k=Math.abs(A)<5;n||(n=k?.01:2),e||(e=k?.005:.5);let F;if(I<1){const N=ff(B,I);F=Y=>{const $=Math.exp(-I*B*Y);return a-$*((E+I*B*A)/N*Math.sin(N*Y)+A*Math.cos(N*Y))}}else if(I===1)F=N=>a-Math.exp(-B*N)*(A+(E+B*A)*N);else{const N=B*Math.sqrt(I*I-1);F=Y=>{const $=Math.exp(-I*B*Y),ie=Math.min(N*Y,300);return a-$*((E+I*B*A)*Math.sinh(ie)+N*A*Math.cosh(ie))/N}}return{calculatedDuration:_&&b||null,next:N=>{const Y=F(N);if(_)l.done=N>=b;else{let $=E;N!==0&&(I<1?$=ky(F,N,Y):$=0);const ie=Math.abs($)<=n,g=Math.abs(a-Y)<=e;l.done=ie&&g}return l.value=l.done?a:Y,l}}}function yg({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:l,min:d,max:h,restDelta:m=.5,restSpeed:b}){const w=t[0],_={done:!1,value:w},E=ee=>d!==void 0&&ee<d||h!==void 0&&ee>h,I=ee=>d===void 0?h:h===void 0||Math.abs(d-ee)<Math.abs(h-ee)?d:h;let A=n*e;const B=w+A,k=l===void 0?B:l(B);k!==B&&(A=k-w);const F=ee=>-A*Math.exp(-ee/i),N=ee=>k+F(ee),Y=ee=>{const Z=F(ee),we=N(ee);_.done=Math.abs(Z)<=m,_.value=_.done?k:we};let $,ie;const g=ee=>{E(_.value)&&($=ee,ie=Dy({keyframes:[_.value,I(_.value)],velocity:ky(N,ee,_.value),damping:o,stiffness:a,restDelta:m,restSpeed:b}))};return g(0),{calculatedDuration:null,next:ee=>{let Z=!1;return!ie&&$===void 0&&(Z=!0,Y(ee),g(ee)),$!==void 0&&ee>$?ie.next(ee-$):(!Z&&Y(ee),_)}}}const nA=t=>{const e=({timestamp:n})=>t(n);return{start:()=>vt.update(e,!0),stop:()=>Vr(e),now:()=>Ut.isProcessing?Ut.timestamp:performance.now()}},bg=2e4;function wg(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<bg;)e+=n,i=t.next(e);return e>=bg?1/0:e}const rA={decay:yg,inertia:yg,tween:Ru,keyframes:Ru,spring:Dy};function Lu({autoplay:t=!0,delay:e=0,driver:n=nA,keyframes:i,type:o="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:d="loop",onPlay:h,onStop:m,onComplete:b,onUpdate:w,..._}){let E=1,I=!1,A,B;const k=()=>{B=new Promise(ae=>{A=ae})};k();let F;const N=rA[o]||Ru;let Y;N!==Ru&&typeof i[0]!="number"&&(process.env.NODE_ENV!=="production"&&Jn(i.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`),Y=Py([0,100],i,{clamp:!1}),i=[0,100]);const $=N({..._,keyframes:i});let ie;d==="mirror"&&(ie=N({..._,keyframes:[...i].reverse(),velocity:-(_.velocity||0)}));let g="idle",ee=null,Z=null,we=null;$.calculatedDuration===null&&a&&($.calculatedDuration=wg($));const{calculatedDuration:He}=$;let Ae=1/0,Te=1/0;He!==null&&(Ae=He+l,Te=Ae*(a+1)-l);let Le=0;const G=ae=>{if(Z===null)return;E>0&&(Z=Math.min(Z,ae)),E<0&&(Z=Math.min(ae-Te/E,Z)),ee!==null?Le=ee:Le=Math.round(ae-Z)*E;const ve=Le-e*(E>=0?1:-1),me=E>=0?ve<0:ve>Te;Le=Math.max(ve,0),g==="finished"&&ee===null&&(Le=Te);let ye=Le,Pe=$;if(a){const $e=Math.min(Le,Te)/Ae;let Me=Math.floor($e),Xe=$e%1;!Xe&&$e>=1&&(Xe=1),Xe===1&&Me--,Me=Math.min(Me,a+1),!!(Me%2)&&(d==="reverse"?(Xe=1-Xe,l&&(Xe-=l/Ae)):d==="mirror"&&(Pe=ie)),ye=mi(0,1,Xe)*Ae}const Ce=me?{done:!1,value:i[0]}:Pe.next(ye);Y&&(Ce.value=Y(Ce.value));let{done:Ie}=Ce;!me&&He!==null&&(Ie=E>=0?Le>=Te:Le<=0);const je=ee===null&&(g==="finished"||g==="running"&&Ie);return w&&w(Ce.value),je&&pe(),Ce},re=()=>{F&&F.stop(),F=void 0},de=()=>{g="idle",re(),A(),k(),Z=we=null},pe=()=>{g="finished",b&&b(),re(),A()},ke=()=>{if(I)return;F||(F=n(G));const ae=F.now();h&&h(),ee!==null?Z=ae-ee:(!Z||g==="finished")&&(Z=ae),g==="finished"&&k(),we=Z,ee=null,g="running",F.start()};t&&ke();const Q={then(ae,ve){return B.then(ae,ve)},get time(){return Br(Le)},set time(ae){ae=di(ae),Le=ae,ee!==null||!F||E===0?ee=ae:Z=F.now()-ae/E},get duration(){const ae=$.calculatedDuration===null?wg($):$.calculatedDuration;return Br(ae)},get speed(){return E},set speed(ae){ae===E||!F||(E=ae,Q.time=Br(Le))},get state(){return g},play:ke,pause:()=>{g="paused",ee=Le},stop:()=>{I=!0,g!=="idle"&&(g="idle",m&&m(),de())},cancel:()=>{we!==null&&G(we),de()},complete:()=>{g="finished"},sample:ae=>(Z=0,G(ae))};return Q}function iA(t){let e;return()=>(e===void 0&&(e=t()),e)}const oA=iA(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),sA=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),cu=10,aA=2e4,uA=(t,e)=>e.type==="spring"||t==="backgroundColor"||!uy(e.ease);function lA(t,e,{onUpdate:n,onComplete:i,...o}){if(!(oA()&&sA.has(e)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let l=!1,d,h,m=!1;const b=()=>{h=new Promise(N=>{d=N})};b();let{keyframes:w,duration:_=300,ease:E,times:I}=o;if(uA(e,o)){const N=Lu({...o,repeat:0,delay:0});let Y={done:!1,value:w[0]};const $=[];let ie=0;for(;!Y.done&&ie<aA;)Y=N.sample(ie),$.push(Y.value),ie+=cu;I=void 0,w=$,_=ie-cu,E="linear"}const A=wP(t.owner.current,e,w,{...o,duration:_,ease:E,times:I}),B=()=>{m=!1,A.cancel()},k=()=>{m=!0,vt.update(B),d(),b()};return A.onfinish=()=>{m||(t.set(xP(w,o)),i&&i(),k())},{then(N,Y){return h.then(N,Y)},attachTimeline(N){return A.timeline=N,A.onfinish=null,_t},get time(){return Br(A.currentTime||0)},set time(N){A.currentTime=di(N)},get speed(){return A.playbackRate},set speed(N){A.playbackRate=N},get duration(){return Br(_)},play:()=>{l||(A.play(),Vr(B))},pause:()=>A.pause(),stop:()=>{if(l=!0,A.playState==="idle")return;const{currentTime:N}=A;if(N){const Y=Lu({...o,autoplay:!1});t.setWithVelocity(Y.sample(N-cu).value,Y.sample(N).value,cu)}k()},complete:()=>{m||A.finish()},cancel:k}}function cA({keyframes:t,delay:e,onUpdate:n,onComplete:i}){const o=()=>(n&&n(t[t.length-1]),i&&i(),{time:0,speed:1,duration:0,play:_t,pause:_t,stop:_t,then:a=>(a(),Promise.resolve()),cancel:_t,complete:_t});return e?Lu({keyframes:[0,1],duration:0,delay:e,onComplete:o}):o()}const fA={type:"spring",stiffness:500,damping:25,restSpeed:10},dA=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),hA={type:"keyframes",duration:.8},pA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gA=(t,{keyframes:e})=>e.length>2?hA:Ji.has(t)?t.startsWith("scale")?dA(e[1]):fA:pA,df=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vi.test(e)||e==="0")&&!e.startsWith("url(")),mA=new Set(["brightness","contrast","saturate","opacity"]);function vA(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Gu)||[];if(!i)return t;const o=n.replace(i,"");let a=mA.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+o+")"}const yA=/([a-z-]*)\(.*?\)/g,hf={...vi,getAnimatableNone:t=>{const e=t.match(yA);return e?e.map(vA).join(" "):t}},bA={...qv,color:Zt,backgroundColor:Zt,outlineColor:Zt,fill:Zt,stroke:Zt,borderColor:Zt,borderTopColor:Zt,borderRightColor:Zt,borderBottomColor:Zt,borderLeftColor:Zt,filter:hf,WebkitFilter:hf},Xf=t=>bA[t];function Iy(t,e){let n=Xf(t);return n!==hf&&(n=vi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ry=t=>/^0[^.\s]+$/.test(t);function wA(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Ry(t)}function xA(t,e,n,i){const o=df(e,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const l=i.from!==void 0?i.from:t.get();let d;const h=[];for(let m=0;m<a.length;m++)a[m]===null&&(a[m]=m===0?l:a[m-1]),wA(a[m])&&h.push(m),typeof a[m]=="string"&&a[m]!=="none"&&a[m]!=="0"&&(d=a[m]);if(o&&h.length&&d)for(let m=0;m<h.length;m++){const b=h[m];a[b]=Iy(e,d)}return a}function SA({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:a,repeatType:l,repeatDelay:d,from:h,elapsed:m,...b}){return!!Object.keys(b).length}function Jf(t,e){return t[e]||t.default||t}const _A={skipAnimations:!1},Zf=(t,e,n,i={})=>o=>{const a=Jf(i,t)||{},l=a.delay||i.delay||0;let{elapsed:d=0}=i;d=d-di(l);const h=xA(e,t,n,a),m=h[0],b=h[h.length-1],w=df(t,m),_=df(t,b);Us(w===_,`You are trying to animate ${t} from "${m}" to "${b}". ${m} is not an animatable value - to enable this animation set ${m} to a value animatable to ${b} via the \`style\` property.`);let E={keyframes:h,velocity:e.getVelocity(),ease:"easeOut",...a,delay:-d,onUpdate:I=>{e.set(I),a.onUpdate&&a.onUpdate(I)},onComplete:()=>{o(),a.onComplete&&a.onComplete()}};if(SA(a)||(E={...E,...gA(t,E)}),E.duration&&(E.duration=di(E.duration)),E.repeatDelay&&(E.repeatDelay=di(E.repeatDelay)),!w||!_||bP.current||a.type===!1||_A.skipAnimations)return cA(E);if(!i.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const I=lA(e,t,E);if(I)return I}return Lu(E)};function Mu(t){return!!(dn(t)&&t.add)}const Ly=t=>/^\-?\d*\.?\d+$/.test(t);function Qf(t,e){t.indexOf(e)===-1&&t.push(e)}function ed(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class td{constructor(){this.subscriptions=[]}add(e){return Qf(this.subscriptions,e),()=>ed(this.subscriptions,e)}notify(e,n,i){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,i);else for(let a=0;a<o;a++){const l=this.subscriptions[a];l&&l(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const xg=new Set;function nd(t,e,n){t||xg.has(e)||(console.warn(e),n&&console.warn(n),xg.add(e))}const CA=t=>!isNaN(parseFloat(t));class EA{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(i,o=!0)=>{this.prev=this.current,this.current=i;const{delta:a,timestamp:l}=Ut;this.lastUpdated!==l&&(this.timeDelta=a,this.lastUpdated=l,vt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>vt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:i})=>{i!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=CA(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&nd(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new td);const i=this.events[e].add(n);return e==="change"?()=>{i(),vt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=e,this.timeDelta=i}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ay(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Do(t,e){return new EA(t,e)}const My=t=>e=>e.test(t),TA={test:t=>t==="auto",parse:t=>t},Ny=[Zi,We,hr,ui,LO,RO,TA],Ss=t=>Ny.find(My(t)),OA=[...Ny,Zt,vi],PA=t=>OA.find(My(t));function AA(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Do(n))}function kA(t,e){const n=Xu(t,e);let{transitionEnd:i={},transition:o={},...a}=n?t.makeTargetAnimatable(n,!1):{};a={...a,...i};for(const l in a){const d=KO(a[l]);AA(t,l,d)}}function DA(t,e,n){var i,o;const a=Object.keys(e).filter(d=>!t.hasValue(d)),l=a.length;if(l)for(let d=0;d<l;d++){const h=a[d],m=e[h];let b=null;Array.isArray(m)&&(b=m[0]),b===null&&(b=(o=(i=n[h])!==null&&i!==void 0?i:t.readValue(h))!==null&&o!==void 0?o:e[h]),b!=null&&(typeof b=="string"&&(Ly(b)||Ry(b))?b=parseFloat(b):!PA(b)&&vi.test(m)&&(b=Iy(h,m)),t.addValue(h,Do(b,{owner:t})),n[h]===void 0&&(n[h]=b),b!==null&&t.setBaseTarget(h,b))}}function IA(t,e){return e?(e[t]||e.default||e).from:void 0}function RA(t,e,n){const i={};for(const o in t){const a=IA(o,e);if(a!==void 0)i[o]=a;else{const l=n.getValue(o);l&&(i[o]=l.get())}}return i}function LA({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function MA(t,e){const n=t.get();if(Array.isArray(e)){for(let i=0;i<e.length;i++)if(e[i]!==n)return!0}else return n!==e}function jy(t,e,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:a=t.getDefaultTransition(),transitionEnd:l,...d}=t.makeTargetAnimatable(e);const h=t.getValue("willChange");i&&(a=i);const m=[],b=o&&t.animationState&&t.animationState.getState()[o];for(const w in d){const _=t.getValue(w),E=d[w];if(!_||E===void 0||b&&LA(b,w))continue;const I={delay:n,elapsed:0,...Jf(a||{},w)};if(window.HandoffAppearAnimations){const k=t.getProps()[Bv];if(k){const F=window.HandoffAppearAnimations(k,w,_,vt);F!==null&&(I.elapsed=F,I.isHandoff=!0)}}let A=!I.isHandoff&&!MA(_,E);if(I.type==="spring"&&(_.getVelocity()||I.velocity)&&(A=!1),_.animation&&(A=!1),A)continue;_.start(Zf(w,_,E,t.shouldReduceMotion&&Ji.has(w)?{type:!1}:I));const B=_.animation;Mu(h)&&(h.add(w),B.then(()=>h.remove(w))),m.push(B)}return l&&Promise.all(m).then(()=>{l&&kA(t,l)}),m}function pf(t,e,n={}){const i=Xu(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(jy(t,i,n)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:b,staggerDirection:w}=o;return NA(t,e,m+h,b,w,n)}:()=>Promise.resolve(),{when:d}=o;if(d){const[h,m]=d==="beforeChildren"?[a,l]:[l,a];return h().then(()=>m())}else return Promise.all([a(),l(n.delay)])}function NA(t,e,n=0,i=0,o=1,a){const l=[],d=(t.variantChildren.size-1)*i,h=o===1?(m=0)=>m*i:(m=0)=>d-m*i;return Array.from(t.variantChildren).sort(jA).forEach((m,b)=>{m.notify("AnimationStart",e),l.push(pf(m,e,{...a,delay:n+h(b)}).then(()=>m.notify("AnimationComplete",e)))}),Promise.all(l)}function jA(t,e){return t.sortNodePosition(e)}function BA(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const o=e.map(a=>pf(t,a,n));i=Promise.all(o)}else if(typeof e=="string")i=pf(t,e,n);else{const o=typeof e=="function"?Xu(t,e,n.custom):e;i=Promise.all(jy(t,o,n))}return i.then(()=>t.notify("AnimationComplete",e))}const FA=[...Bf].reverse(),VA=Bf.length;function WA(t){return e=>Promise.all(e.map(({animation:n,options:i})=>BA(t,n,i)))}function HA(t){let e=WA(t);const n=UA();let i=!0;const o=(h,m)=>{const b=Xu(t,m);if(b){const{transition:w,transitionEnd:_,...E}=b;h={...h,...E,..._}}return h};function a(h){e=h(t)}function l(h,m){const b=t.getProps(),w=t.getVariantContext(!0)||{},_=[],E=new Set;let I={},A=1/0;for(let k=0;k<VA;k++){const F=FA[k],N=n[F],Y=b[F]!==void 0?b[F]:w[F],$=Ls(Y),ie=F===m?N.isActive:null;ie===!1&&(A=k);let g=Y===w[F]&&Y!==b[F]&&$;if(g&&i&&t.manuallyAnimateOnMount&&(g=!1),N.protectedKeys={...I},!N.isActive&&ie===null||!Y&&!N.prevProp||qu(Y)||typeof Y=="boolean")continue;let Z=$A(N.prevProp,Y)||F===m&&N.isActive&&!g&&$||k>A&&$,we=!1;const He=Array.isArray(Y)?Y:[Y];let Ae=He.reduce(o,{});ie===!1&&(Ae={});const{prevResolvedValues:Te={}}=N,Le={...Te,...Ae},G=re=>{Z=!0,E.has(re)&&(we=!0,E.delete(re)),N.needsAnimating[re]=!0};for(const re in Le){const de=Ae[re],pe=Te[re];if(I.hasOwnProperty(re))continue;let ke=!1;Du(de)&&Du(pe)?ke=!sy(de,pe):ke=de!==pe,ke?de!==void 0?G(re):E.add(re):de!==void 0&&E.has(re)?G(re):N.protectedKeys[re]=!0}N.prevProp=Y,N.prevResolvedValues=Ae,N.isActive&&(I={...I,...Ae}),i&&t.blockInitialAnimation&&(Z=!1),Z&&(!g||we)&&_.push(...He.map(re=>({animation:re,options:{type:F,...h}})))}if(E.size){const k={};E.forEach(F=>{const N=t.getBaseTarget(F);N!==void 0&&(k[F]=N)}),_.push({animation:k})}let B=!!_.length;return i&&(b.initial===!1||b.initial===b.animate)&&!t.manuallyAnimateOnMount&&(B=!1),i=!1,B?e(_):Promise.resolve()}function d(h,m,b){var w;if(n[h].isActive===m)return Promise.resolve();(w=t.variantChildren)===null||w===void 0||w.forEach(E=>{var I;return(I=E.animationState)===null||I===void 0?void 0:I.setActive(h,m)}),n[h].isActive=m;const _=l(b,h);for(const E in n)n[E].protectedKeys={};return _}return{animateChanges:l,setActive:d,setAnimateFunction:a,getState:()=>n}}function $A(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!sy(e,t):!1}function Bi(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function UA(){return{animate:Bi(!0),whileInView:Bi(),whileHover:Bi(),whileTap:Bi(),whileDrag:Bi(),whileFocus:Bi(),exit:Bi()}}class zA extends bi{constructor(e){super(e),e.animationState||(e.animationState=HA(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),qu(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let qA=0;class YA extends bi{constructor(){super(...arguments),this.id=qA++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:i}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===o)return;const a=this.node.animationState.setActive("exit",!e,{custom:i??this.node.getProps().custom});n&&!e&&a.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const GA={animation:{Feature:zA},exit:{Feature:YA}},Sg=(t,e)=>Math.abs(t-e);function KA(t,e){const n=Sg(t.x,e.x),i=Sg(t.y,e.y);return Math.sqrt(n**2+i**2)}class By{constructor(e,n,{transformPagePoint:i,contextWindow:o,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Rc(this.lastMoveEventInfo,this.history),_=this.startEvent!==null,E=KA(w.offset,{x:0,y:0})>=3;if(!_&&!E)return;const{point:I}=w,{timestamp:A}=Ut;this.history.push({...I,timestamp:A});const{onStart:B,onMove:k}=this.handlers;_||(B&&B(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,w)},this.handlePointerMove=(w,_)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=Ic(_,this.transformPagePoint),vt.update(this.updatePoint,!0)},this.handlePointerUp=(w,_)=>{this.end();const{onEnd:E,onSessionEnd:I,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const B=Rc(w.type==="pointercancel"?this.lastMoveEventInfo:Ic(_,this.transformPagePoint),this.history);this.startEvent&&E&&E(w,B),I&&I(w,B)},!ty(e))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=i,this.contextWindow=o||window;const l=Ku(e),d=Ic(l,this.transformPagePoint),{point:h}=d,{timestamp:m}=Ut;this.history=[{...h,timestamp:m}];const{onSessionStart:b}=n;b&&b(e,Rc(d,this.history)),this.removeListeners=fi(jr(this.contextWindow,"pointermove",this.handlePointerMove),jr(this.contextWindow,"pointerup",this.handlePointerUp),jr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Vr(this.updatePoint)}}function Ic(t,e){return e?{point:e(t.point)}:t}function _g(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Rc({point:t},e){return{point:t,delta:_g(t,Fy(e)),offset:_g(t,XA(e)),velocity:JA(e,.1)}}function XA(t){return t[0]}function Fy(t){return t[t.length-1]}function JA(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=Fy(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>di(e)));)n--;if(!i)return{x:0,y:0};const a=Br(o.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const l={x:(o.x-i.x)/a,y:(o.y-i.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function On(t){return t.max-t.min}function gf(t,e=0,n=.01){return Math.abs(t-e)<=n}function Cg(t,e,n,i=.5){t.origin=i,t.originPoint=xt(e.min,e.max,t.origin),t.scale=On(n)/On(e),(gf(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=xt(n.min,n.max,t.origin)-t.originPoint,(gf(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ps(t,e,n,i){Cg(t.x,e.x,n.x,i?i.originX:void 0),Cg(t.y,e.y,n.y,i?i.originY:void 0)}function Eg(t,e,n){t.min=n.min+e.min,t.max=t.min+On(e)}function ZA(t,e,n){Eg(t.x,e.x,n.x),Eg(t.y,e.y,n.y)}function Tg(t,e,n){t.min=e.min-n.min,t.max=t.min+On(e)}function As(t,e,n){Tg(t.x,e.x,n.x),Tg(t.y,e.y,n.y)}function QA(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?xt(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?xt(n,t,i.max):Math.min(t,n)),t}function Og(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function ek(t,{top:e,left:n,bottom:i,right:o}){return{x:Og(t.x,n,o),y:Og(t.y,e,i)}}function Pg(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function tk(t,e){return{x:Pg(t.x,e.x),y:Pg(t.y,e.y)}}function nk(t,e){let n=.5;const i=On(t),o=On(e);return o>i?n=Ns(e.min,e.max-i,t.min):i>o&&(n=Ns(t.min,t.max-o,e.min)),mi(0,1,n)}function rk(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const mf=.35;function ik(t=mf){return t===!1?t=0:t===!0&&(t=mf),{x:Ag(t,"left","right"),y:Ag(t,"top","bottom")}}function Ag(t,e,n){return{min:kg(t,e),max:kg(t,n)}}function kg(t,e){return typeof t=="number"?t:t[e]||0}const Dg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Po=()=>({x:Dg(),y:Dg()}),Ig=()=>({min:0,max:0}),Ot=()=>({x:Ig(),y:Ig()});function Wn(t){return[t("x"),t("y")]}function Vy({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function ok({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function sk(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Lc(t){return t===void 0||t===1}function vf({scale:t,scaleX:e,scaleY:n}){return!Lc(t)||!Lc(e)||!Lc(n)}function Fi(t){return vf(t)||Wy(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Wy(t){return Rg(t.x)||Rg(t.y)}function Rg(t){return t&&t!=="0%"}function Nu(t,e,n){const i=t-n,o=e*i;return n+o}function Lg(t,e,n,i,o){return o!==void 0&&(t=Nu(t,o,i)),Nu(t,n,i)+e}function yf(t,e=0,n=1,i,o){t.min=Lg(t.min,e,n,i,o),t.max=Lg(t.max,e,n,i,o)}function Hy(t,{x:e,y:n}){yf(t.x,e.translate,e.scale,e.originPoint),yf(t.y,n.translate,n.scale,n.originPoint)}function ak(t,e,n,i=!1){const o=n.length;if(!o)return;e.x=e.y=1;let a,l;for(let d=0;d<o;d++){a=n[d],l=a.projectionDelta;const h=a.instance;h&&h.style&&h.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Ao(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,Hy(t,l)),i&&Fi(a.latestValues)&&Ao(t,a.latestValues))}e.x=Mg(e.x),e.y=Mg(e.y)}function Mg(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function li(t,e){t.min=t.min+e,t.max=t.max+e}function Ng(t,e,[n,i,o]){const a=e[o]!==void 0?e[o]:.5,l=xt(t.min,t.max,a);yf(t,e[n],e[i],l,e.scale)}const uk=["x","scaleX","originX"],lk=["y","scaleY","originY"];function Ao(t,e){Ng(t.x,e,uk),Ng(t.y,e,lk)}function $y(t,e){return Vy(sk(t.getBoundingClientRect(),e))}function ck(t,e,n){const i=$y(t,n),{scroll:o}=e;return o&&(li(i.x,o.offset.x),li(i.y,o.offset.y)),i}const Uy=({current:t})=>t?t.ownerDocument.defaultView:null,fk=new WeakMap;class dk{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ot(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=b=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ku(b,"page").point)},a=(b,w)=>{const{drag:_,dragPropagation:E,onDragStart:I}=this.getProps();if(_&&!E&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ry(_),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wn(B=>{let k=this.getAxisMotionValue(B).get()||0;if(hr.test(k)){const{projection:F}=this.visualElement;if(F&&F.layout){const N=F.layout.layoutBox[B];N&&(k=On(N)*(parseFloat(k)/100))}}this.originPoint[B]=k}),I&&vt.update(()=>I(b,w),!1,!0);const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},l=(b,w)=>{const{dragPropagation:_,dragDirectionLock:E,onDirectionLock:I,onDrag:A}=this.getProps();if(!_&&!this.openGlobalLock)return;const{offset:B}=w;if(E&&this.currentDirection===null){this.currentDirection=hk(B),this.currentDirection!==null&&I&&I(this.currentDirection);return}this.updateAxis("x",w.point,B),this.updateAxis("y",w.point,B),this.visualElement.render(),A&&A(b,w)},d=(b,w)=>this.stop(b,w),h=()=>Wn(b=>{var w;return this.getAnimationState(b)==="paused"&&((w=this.getAxisMotionValue(b).animation)===null||w===void 0?void 0:w.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new By(e,{onSessionStart:o,onStart:a,onMove:l,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:Uy(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&vt.update(()=>a(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:o}=this.getProps();if(!i||!fu(e,o,this.currentDirection))return;const a=this.getAxisMotionValue(e);let l=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(l=QA(l,this.constraints[e],this.elastic[e])),a.set(l)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,a=this.constraints;n&&To(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=ek(o.layoutBox,n):this.constraints=!1,this.elastic=ik(i),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Wn(l=>{this.getAxisMotionValue(l)&&(this.constraints[l]=rk(o.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!To(e))return!1;const i=e.current;Jn(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=ck(i,o.root,this.visualElement.getTransformPagePoint());let l=tk(o.layout.layoutBox,a);if(n){const d=n(ok(l));this.hasMutatedConstraints=!!d,d&&(l=Vy(d))}return l}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},m=Wn(b=>{if(!fu(b,n,this.currentDirection))return;let w=h&&h[b]||{};l&&(w={min:0,max:0});const _=o?200:1e6,E=o?40:1e7,I={type:"inertia",velocity:i?e[b]:0,bounceStiffness:_,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...a,...w};return this.startAxisValueAnimation(b,I)});return Promise.all(m).then(d)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return i.start(Zf(e,i,0,n))}stopAnimation(){Wn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Wn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Wn(n=>{const{drag:i}=this.getProps();if(!fu(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:d}=o.layout.layoutBox[n];a.set(e[n]-xt(l,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!To(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Wn(l=>{const d=this.getAxisMotionValue(l);if(d){const h=d.get();o[l]=nk({min:h,max:h},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Wn(l=>{if(!fu(l,e,null))return;const d=this.getAxisMotionValue(l),{min:h,max:m}=this.constraints[l];d.set(xt(h,m,o[l]))})}addListeners(){if(!this.visualElement.current)return;fk.set(this.visualElement,this);const e=this.visualElement.current,n=jr(e,"pointerdown",h=>{const{drag:m,dragListener:b=!0}=this.getProps();m&&b&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();To(h)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),i();const l=Lr(window,"resize",()=>this.scalePositionWithinConstraints()),d=o.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(Wn(b=>{const w=this.getAxisMotionValue(b);w&&(this.originPoint[b]+=h[b].translate,w.set(w.get()+h[b].translate))}),this.visualElement.render())});return()=>{l(),n(),a(),d&&d()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:l=mf,dragMomentum:d=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:a,dragElastic:l,dragMomentum:d}}}function fu(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function hk(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class pk extends bi{constructor(e){super(e),this.removeGroupControls=_t,this.removeListeners=_t,this.controls=new dk(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_t}unmount(){this.removeGroupControls(),this.removeListeners()}}const jg=t=>(e,n)=>{t&&vt.update(()=>t(e,n))};class gk extends bi{constructor(){super(...arguments),this.removePointerDownListener=_t}onPointerDown(e){this.session=new By(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Uy(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:jg(e),onStart:jg(n),onMove:i,onEnd:(a,l)=>{delete this.session,o&&vt.update(()=>o(a,l))}}}mount(){this.removePointerDownListener=jr(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function mk(){const t=te.useContext(Nf);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,o=te.useId();return te.useEffect(()=>i(o),[]),!e&&n?[!1,()=>n&&n(o)]:[!0]}const yu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Bg(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const _s={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(We.test(t))t=parseFloat(t);else return t;const n=Bg(t,e.target.x),i=Bg(t,e.target.y);return`${n}% ${i}%`}},vk={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=vi.parse(t);if(o.length>5)return i;const a=vi.createTransformer(t),l=typeof o[0]!="number"?1:0,d=n.x.scale*e.x,h=n.y.scale*e.y;o[0+l]/=d,o[1+l]/=h;const m=xt(d,h,.5);return typeof o[2+l]=="number"&&(o[2+l]/=m),typeof o[3+l]=="number"&&(o[3+l]/=m),a(o)}};class yk extends te.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:a}=e;TO(bk),a&&(n.group&&n.group.add(a),i&&i.register&&o&&i.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),yu.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:o,isPresent:a}=this.props,l=i.projection;return l&&(l.isPresent=a,o||e.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?l.promote():l.relegate()||vt.postRender(()=>{const d=l.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function zy(t){const[e,n]=mk(),i=te.useContext(Vv);return te.createElement(yk,{...t,layoutGroup:i,switchLayoutGroup:te.useContext(Wv),isPresent:e,safeToRemove:n})}const bk={borderRadius:{..._s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_s,borderTopRightRadius:_s,borderBottomLeftRadius:_s,borderBottomRightRadius:_s,boxShadow:vk},qy=["TopLeft","TopRight","BottomLeft","BottomRight"],wk=qy.length,Fg=t=>typeof t=="string"?parseFloat(t):t,Vg=t=>typeof t=="number"||We.test(t);function xk(t,e,n,i,o,a){o?(t.opacity=xt(0,n.opacity!==void 0?n.opacity:1,Sk(i)),t.opacityExit=xt(e.opacity!==void 0?e.opacity:1,0,_k(i))):a&&(t.opacity=xt(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let l=0;l<wk;l++){const d=`border${qy[l]}Radius`;let h=Wg(e,d),m=Wg(n,d);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||Vg(h)===Vg(m)?(t[d]=Math.max(xt(Fg(h),Fg(m),i),0),(hr.test(m)||hr.test(h))&&(t[d]+="%")):t[d]=m}(e.rotate||n.rotate)&&(t.rotate=xt(e.rotate||0,n.rotate||0,i))}function Wg(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Sk=Yy(0,.5,gy),_k=Yy(.5,.95,_t);function Yy(t,e,n){return i=>i<t?0:i>e?1:n(Ns(t,e,i))}function Hg(t,e){t.min=e.min,t.max=e.max}function Vn(t,e){Hg(t.x,e.x),Hg(t.y,e.y)}function $g(t,e,n,i,o){return t-=e,t=Nu(t,1/n,i),o!==void 0&&(t=Nu(t,1/o,i)),t}function Ck(t,e=0,n=1,i=.5,o,a=t,l=t){if(hr.test(e)&&(e=parseFloat(e),e=xt(l.min,l.max,e/100)-l.min),typeof e!="number")return;let d=xt(a.min,a.max,i);t===a&&(d-=e),t.min=$g(t.min,e,n,d,o),t.max=$g(t.max,e,n,d,o)}function Ug(t,e,[n,i,o],a,l){Ck(t,e[n],e[i],e[o],e.scale,a,l)}const Ek=["x","scaleX","originX"],Tk=["y","scaleY","originY"];function zg(t,e,n,i){Ug(t.x,e,Ek,n?n.x:void 0,i?i.x:void 0),Ug(t.y,e,Tk,n?n.y:void 0,i?i.y:void 0)}function qg(t){return t.translate===0&&t.scale===1}function Gy(t){return qg(t.x)&&qg(t.y)}function Ok(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Ky(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Yg(t){return On(t.x)/On(t.y)}class Pk{constructor(){this.members=[]}add(e){Qf(this.members,e),e.scheduleRender()}remove(e){if(ed(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){i=a;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Gg(t,e,n){let i="";const o=t.x.translate/e.x,a=t.y.translate/e.y;if((o||a)&&(i=`translate3d(${o}px, ${a}px, 0) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:h,rotateX:m,rotateY:b}=n;h&&(i+=`rotate(${h}deg) `),m&&(i+=`rotateX(${m}deg) `),b&&(i+=`rotateY(${b}deg) `)}const l=t.x.scale*e.x,d=t.y.scale*e.y;return(l!==1||d!==1)&&(i+=`scale(${l}, ${d})`),i||"none"}const Ak=(t,e)=>t.depth-e.depth;class kk{constructor(){this.children=[],this.isDirty=!1}add(e){Qf(this.children,e),this.isDirty=!0}remove(e){ed(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ak),this.isDirty=!1,this.children.forEach(e)}}function Dk(t,e){const n=performance.now(),i=({timestamp:o})=>{const a=o-n;a>=e&&(Vr(i),t(a-e))};return vt.read(i,!0),()=>Vr(i)}function Ik(t){window.MotionDebug&&window.MotionDebug.record(t)}function Rk(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Lk(t,e,n){const i=dn(t)?t:Do(t);return i.start(Zf("",i,e,n)),i.animation}const Kg=["","X","Y","Z"],Mk={visibility:"hidden"},Xg=1e3;let Nk=0;const Vi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Xy({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(l={},d=e==null?void 0:e()){this.id=Nk++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Vi.totalNodes=Vi.resolvedTargetDeltas=Vi.recalculatedProjection=0,this.nodes.forEach(Fk),this.nodes.forEach(Uk),this.nodes.forEach(zk),this.nodes.forEach(Vk),Ik(Vi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new kk)}addEventListener(l,d){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new td),this.eventHandlers.get(l).add(d)}notifyListeners(l,...d){const h=this.eventHandlers.get(l);h&&h.notify(...d)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Rk(l),this.instance=l;const{layoutId:h,layout:m,visualElement:b}=this.options;if(b&&!b.current&&b.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(m||h)&&(this.isLayoutDirty=!0),t){let w;const _=()=>this.root.updateBlockedByResize=!1;t(l,()=>{this.root.updateBlockedByResize=!0,w&&w(),w=Dk(_,250),yu.hasAnimatedSinceResize&&(yu.hasAnimatedSinceResize=!1,this.nodes.forEach(Zg))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&b&&(h||m)&&this.addEventListener("didUpdate",({delta:w,hasLayoutChanged:_,hasRelativeTargetChanged:E,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||b.getDefaultTransition()||Xk,{onLayoutAnimationStart:B,onLayoutAnimationComplete:k}=b.getProps(),F=!this.targetLayout||!Ky(this.targetLayout,I)||E,N=!_&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||N||_&&(F||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(w,N);const Y={...Jf(A,"layout"),onPlay:B,onComplete:k};(b.shouldReduceMotion||this.options.layoutRoot)&&(Y.delay=0,Y.type=!1),this.startAnimation(Y)}else _||Zg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=I})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(qk),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b<this.path.length;b++){const w=this.path[b];w.shouldResetTransform=!0,w.updateScroll("snapshot"),w.options.layoutRoot&&w.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Jg);return}this.isUpdating||this.nodes.forEach(Hk),this.isUpdating=!1,this.nodes.forEach($k),this.nodes.forEach(jk),this.nodes.forEach(Bk),this.clearAllSnapshots();const d=performance.now();Ut.delta=mi(0,1e3/60,d-Ut.timestamp),Ut.timestamp=d,Ut.isProcessing=!0,Cc.update.process(Ut),Cc.preRender.process(Ut),Cc.render.process(Ut),Ut.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Wk),this.sharedNodes.forEach(Yk)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){vt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ot(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let d=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(d=!1),d&&(this.scroll={animationId:this.root.animationId,phase:l,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const l=this.isLayoutDirty||this.shouldResetTransform,d=this.projectionDelta&&!Gy(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,b=m!==this.prevTransformTemplateValue;l&&(d||Fi(this.latestValues)||b)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return l&&(h=this.removeTransform(h)),Jk(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Ot();const d=l.measureViewportBox(),{scroll:h}=this.root;return h&&(li(d.x,h.offset.x),li(d.y,h.offset.y)),d}removeElementScroll(l){const d=Ot();Vn(d,l);for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:b,options:w}=m;if(m!==this.root&&b&&w.layoutScroll){if(b.isRoot){Vn(d,l);const{scroll:_}=this.root;_&&(li(d.x,-_.offset.x),li(d.y,-_.offset.y))}li(d.x,b.offset.x),li(d.y,b.offset.y)}}return d}applyTransform(l,d=!1){const h=Ot();Vn(h,l);for(let m=0;m<this.path.length;m++){const b=this.path[m];!d&&b.options.layoutScroll&&b.scroll&&b!==b.root&&Ao(h,{x:-b.scroll.offset.x,y:-b.scroll.offset.y}),Fi(b.latestValues)&&Ao(h,b.latestValues)}return Fi(this.latestValues)&&Ao(h,this.latestValues),h}removeTransform(l){const d=Ot();Vn(d,l);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!Fi(m.latestValues))continue;vf(m.latestValues)&&m.updateSnapshot();const b=Ot(),w=m.measurePageBox();Vn(b,w),zg(d,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,b)}return Fi(this.latestValues)&&zg(d,this.latestValues),d}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ut.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var d;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(l||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:w,layoutId:_}=this.options;if(!(!this.layout||!(w||_))){if(this.resolvedRelativeTargetAt=Ut.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ot(),this.relativeTargetOrigin=Ot(),As(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Vn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ot(),this.targetWithTransforms=Ot()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ZA(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Vn(this.target,this.layout.layoutBox),Hy(this.target,this.targetDelta)):Vn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ot(),this.relativeTargetOrigin=Ot(),As(this.relativeTargetOrigin,this.target,E.target),Vn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Vi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||vf(this.parent.latestValues)||Wy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var l;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Ut.timestamp&&(m=!1),m)return;const{layout:b,layoutId:w}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(b||w))return;Vn(this.layoutCorrected,this.layout.layoutBox);const _=this.treeScale.x,E=this.treeScale.y;ak(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox);const{target:I}=d;if(!I){this.projectionTransform&&(this.projectionDelta=Po(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Po(),this.projectionDeltaWithTransform=Po());const A=this.projectionTransform;Ps(this.projectionDelta,this.layoutCorrected,I,this.latestValues),this.projectionTransform=Gg(this.projectionDelta,this.treeScale),(this.projectionTransform!==A||this.treeScale.x!==_||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I)),Vi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),l){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(l,d=!1){const h=this.snapshot,m=h?h.latestValues:{},b={...this.latestValues},w=Po();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const _=Ot(),E=h?h.source:void 0,I=this.layout?this.layout.source:void 0,A=E!==I,B=this.getStack(),k=!B||B.members.length<=1,F=!!(A&&!k&&this.options.crossfade===!0&&!this.path.some(Kk));this.animationProgress=0;let N;this.mixTargetDelta=Y=>{const $=Y/1e3;Qg(w.x,l.x,$),Qg(w.y,l.y,$),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(As(_,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Gk(this.relativeTarget,this.relativeTargetOrigin,_,$),N&&Ok(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=Ot()),Vn(N,this.relativeTarget)),A&&(this.animationValues=b,xk(b,m,this.latestValues,$,F,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vt.update(()=>{yu.hasAnimatedSinceResize=!0,this.currentAnimation=Lk(0,Xg,{...l,onUpdate:d=>{this.mixTargetDelta(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Xg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:d,target:h,layout:m,latestValues:b}=l;if(!(!d||!h||!m)){if(this!==l&&this.layout&&m&&Jy(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||Ot();const w=On(this.layout.layoutBox.x);h.x.min=l.target.x.min,h.x.max=h.x.min+w;const _=On(this.layout.layoutBox.y);h.y.min=l.target.y.min,h.y.max=h.y.min+_}Vn(d,h),Ao(d,b),Ps(this.projectionDeltaWithTransform,this.layoutCorrected,d,b)}}registerSharedNode(l,d){this.sharedNodes.has(l)||this.sharedNodes.set(l,new Pk),this.sharedNodes.get(l).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(d):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:d}=this.options;return d?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:d}=this.options;return d?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:d,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),l&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetRotation(){const{visualElement:l}=this.options;if(!l)return;let d=!1;const{latestValues:h}=l;if((h.rotate||h.rotateX||h.rotateY||h.rotateZ)&&(d=!0),!d)return;const m={};for(let b=0;b<Kg.length;b++){const w="rotate"+Kg[b];h[w]&&(m[w]=h[w],l.setStaticValue(w,0))}l.render();for(const b in m)l.setStaticValue(b,m[b]);l.scheduleRender()}getProjectionStyles(l){var d,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Mk;const m={visibility:""},b=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=vu(l==null?void 0:l.pointerEvents)||"",m.transform=b?b(this.latestValues,""):"none",m;const w=this.getLead();if(!this.projectionDelta||!this.layout||!w.target){const A={};return this.options.layoutId&&(A.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,A.pointerEvents=vu(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Fi(this.latestValues)&&(A.transform=b?b({},""):"none",this.hasProjected=!1),A}const _=w.animationValues||w.latestValues;this.applyTransformsToTarget(),m.transform=Gg(this.projectionDeltaWithTransform,this.treeScale,_),b&&(m.transform=b(_,m.transform));const{x:E,y:I}=this.projectionDelta;m.transformOrigin=`${E.origin*100}% ${I.origin*100}% 0`,w.animationValues?m.opacity=w===this?(h=(d=_.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:_.opacityExit:m.opacity=w===this?_.opacity!==void 0?_.opacity:"":_.opacityExit!==void 0?_.opacityExit:0;for(const A in Au){if(_[A]===void 0)continue;const{correct:B,applyTo:k}=Au[A],F=m.transform==="none"?_[A]:B(_[A],w);if(k){const N=k.length;for(let Y=0;Y<N;Y++)m[k[Y]]=F}else m[A]=F}return this.options.layoutId&&(m.pointerEvents=w===this?vu(l==null?void 0:l.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var d;return(d=l.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(Jg),this.root.sharedNodes.clear()}}}function jk(t){t.updateLayout()}function Bk(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=t.layout,{animationType:a}=t.options,l=n.source!==t.layout.source;a==="size"?Wn(w=>{const _=l?n.measuredBox[w]:n.layoutBox[w],E=On(_);_.min=i[w].min,_.max=_.min+E}):Jy(a,n.layoutBox,i)&&Wn(w=>{const _=l?n.measuredBox[w]:n.layoutBox[w],E=On(i[w]);_.max=_.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[w].max=t.relativeTarget[w].min+E)});const d=Po();Ps(d,i,n.layoutBox);const h=Po();l?Ps(h,t.applyTransform(o,!0),n.measuredBox):Ps(h,i,n.layoutBox);const m=!Gy(d);let b=!1;if(!t.resumeFrom){const w=t.getClosestProjectingParent();if(w&&!w.resumeFrom){const{snapshot:_,layout:E}=w;if(_&&E){const I=Ot();As(I,n.layoutBox,_.layoutBox);const A=Ot();As(A,i,E.layoutBox),Ky(I,A)||(b=!0),w.options.layoutRoot&&(t.relativeTarget=A,t.relativeTargetOrigin=I,t.relativeParent=w)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:h,layoutDelta:d,hasLayoutChanged:m,hasRelativeTargetChanged:b})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Fk(t){Vi.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Vk(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Wk(t){t.clearSnapshot()}function Jg(t){t.clearMeasurements()}function Hk(t){t.isLayoutDirty=!1}function $k(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Zg(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Uk(t){t.resolveTargetDelta()}function zk(t){t.calcProjection()}function qk(t){t.resetRotation()}function Yk(t){t.removeLeadSnapshot()}function Qg(t,e,n){t.translate=xt(e.translate,0,n),t.scale=xt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function em(t,e,n,i){t.min=xt(e.min,n.min,i),t.max=xt(e.max,n.max,i)}function Gk(t,e,n,i){em(t.x,e.x,n.x,i),em(t.y,e.y,n.y,i)}function Kk(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Xk={duration:.45,ease:[.4,0,.1,1]},tm=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),nm=tm("applewebkit/")&&!tm("chrome/")?Math.round:_t;function rm(t){t.min=nm(t.min),t.max=nm(t.max)}function Jk(t){rm(t.x),rm(t.y)}function Jy(t,e,n){return t==="position"||t==="preserve-aspect"&&!gf(Yg(e),Yg(n),.2)}const Zk=Xy({attachResizeListener:(t,e)=>Lr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Mc={current:void 0},Zy=Xy({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Mc.current){const t=new Zk({});t.mount(window),t.setOptions({layoutScroll:!0}),Mc.current=t}return Mc.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Qk={pan:{Feature:gk},drag:{Feature:pk,ProjectionNode:Zy,MeasureLayout:zy}},eD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function tD(t){const e=eD.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}const nD=4;function bf(t,e,n=1){Jn(n<=nD,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,o]=tD(t);if(!i)return;const a=window.getComputedStyle(e).getPropertyValue(i);if(a){const l=a.trim();return Ly(l)?parseFloat(l):l}else return uf(o)?bf(o,e,n+1):o}function rD(t,{...e},n){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(o=>{const a=o.get();if(!uf(a))return;const l=bf(a,i);l&&o.set(l)});for(const o in e){const a=e[o];if(!uf(a))continue;const l=bf(a,i);l&&(e[o]=l,n||(n={}),n[o]===void 0&&(n[o]=a))}return{target:e,transitionEnd:n}}const iD=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Qy=t=>iD.has(t),oD=t=>Object.keys(t).some(Qy),du=t=>t===Zi||t===We,im=(t,e)=>parseFloat(t.split(", ")[e]),om=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return im(o[1],e);{const a=i.match(/^matrix\((.+)\)$/);return a?im(a[1],t):0}},sD=new Set(["x","y","z"]),aD=Ws.filter(t=>!sD.has(t));function uD(t){const e=[];return aD.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Io={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:om(4,13),y:om(5,14)};Io.translateX=Io.x;Io.translateY=Io.y;const lD=(t,e,n)=>{const i=e.measureViewportBox(),o=e.current,a=getComputedStyle(o),{display:l}=a,d={};l==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(m=>{d[m]=Io[m](i,a)}),e.render();const h=e.measureViewportBox();return n.forEach(m=>{const b=e.getValue(m);b&&b.jump(d[m]),t[m]=Io[m](h,a)}),t},cD=(t,e,n={},i={})=>{e={...e},i={...i};const o=Object.keys(e).filter(Qy);let a=[],l=!1;const d=[];if(o.forEach(h=>{const m=t.getValue(h);if(!t.hasValue(h))return;let b=n[h],w=Ss(b);const _=e[h];let E;if(Du(_)){const I=_.length,A=_[0]===null?1:0;b=_[A],w=Ss(b);for(let B=A;B<I&&_[B]!==null;B++)E?Jn(Ss(_[B])===E,"All keyframes must be of the same type"):(E=Ss(_[B]),Jn(E===w||du(w)&&du(E),"Keyframes must be of the same dimension as the current value"))}else E=Ss(_);if(w!==E)if(du(w)&&du(E)){const I=m.get();typeof I=="string"&&m.set(parseFloat(I)),typeof _=="string"?e[h]=parseFloat(_):Array.isArray(_)&&E===We&&(e[h]=_.map(parseFloat))}else w!=null&&w.transform&&(E!=null&&E.transform)&&(b===0||_===0)?b===0?m.set(E.transform(b)):e[h]=w.transform(_):(l||(a=uD(t),l=!0),d.push(h),i[h]=i[h]!==void 0?i[h]:e[h],m.jump(_))}),d.length){const h=d.indexOf("height")>=0?window.pageYOffset:null,m=lD(e,t,d);return a.length&&a.forEach(([b,w])=>{t.getValue(b).set(w)}),t.render(),zu&&h!==null&&window.scrollTo({top:h}),{target:m,transitionEnd:i}}else return{target:e,transitionEnd:i}};function fD(t,e,n,i){return oD(e)?cD(t,e,n,i):{target:e,transitionEnd:i}}const dD=(t,e,n,i)=>{const o=rD(t,e,i);return e=o.target,i=o.transitionEnd,fD(t,e,n,i)},wf={current:null},eb={current:!1};function hD(){if(eb.current=!0,!!zu)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>wf.current=t.matches;t.addListener(e),e()}else wf.current=!1}function pD(t,e,n){const{willChange:i}=e;for(const o in e){const a=e[o],l=n[o];if(dn(a))t.addValue(o,a),Mu(i)&&i.add(o),process.env.NODE_ENV==="development"&&nd(a.version==="10.18.0",`Attempting to mix Framer Motion versions ${a.version} with 10.18.0 may not work as expected.`);else if(dn(l))t.addValue(o,Do(a,{owner:t})),Mu(i)&&i.remove(o);else if(l!==a)if(t.hasValue(o)){const d=t.getValue(o);!d.hasAnimated&&d.set(a)}else{const d=t.getStaticValue(o);t.addValue(o,Do(d!==void 0?d:a,{owner:t}))}}for(const o in n)e[o]===void 0&&t.removeValue(o);return e}const sm=new WeakMap,tb=Object.keys(Ms),gD=tb.length,am=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],mD=Ff.length;class vD{constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>vt.render(this.render,!1,!0);const{latestValues:d,renderState:h}=a;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=h,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=l,this.isControllingVariants=Yu(n),this.isVariantNode=Fv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:m,...b}=this.scrapeMotionValuesFromProps(n,{});for(const w in b){const _=b[w];d[w]!==void 0&&dn(_)&&(_.set(d[w],!1),Mu(m)&&m.add(w))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,sm.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),eb.current||hD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wf.current,process.env.NODE_ENV!=="production"&&nd(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){sm.delete(this.current),this.projection&&this.projection.unmount(),Vr(this.notifyUpdate),Vr(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const i=Ji.has(e),o=n.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&vt.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{o(),a()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},i,o,a){let l,d;if(process.env.NODE_ENV!=="production"&&o&&i){const h="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Us(!1,h):Jn(!1,h)}for(let h=0;h<gD;h++){const m=tb[h],{isEnabled:b,Feature:w,ProjectionNode:_,MeasureLayout:E}=Ms[m];_&&(l=_),b(n)&&(!this.features[m]&&w&&(this.features[m]=new w(this)),E&&(d=E))}if((this.type==="html"||this.type==="svg")&&!this.projection&&l){this.projection=new l(this.latestValues,this.parent&&this.parent.projection);const{layoutId:h,layout:m,drag:b,dragConstraints:w,layoutScroll:_,layoutRoot:E}=n;this.projection.setOptions({layoutId:h,layout:m,alwaysMeasureLayout:!!b||w&&To(w),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof m=="string"?m:"both",initialPromotionConfig:a,layoutScroll:_,layoutRoot:E})}return d}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ot()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<am.length;i++){const o=am[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a=e["on"+o];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=pD(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const i=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}const n={};for(let i=0;i<mD;i++){const o=Ff[i],a=this.props[o];(Ls(a)||a===!1)&&(n[o]=a)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Do(n,{owner:this}),this.addValue(e,i)),i}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props,o=typeof i=="string"||typeof i=="object"?(n=qf(this.props,i))===null||n===void 0?void 0:n[e]:void 0;if(i&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,e);return a!==void 0&&!dn(a)?a:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new td),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class nb extends vD{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...i},{transformValues:o},a){let l=RA(i,e||{},this);if(o&&(n&&(n=o(n)),i&&(i=o(i)),l&&(l=o(l))),a){DA(this,i,l);const d=dD(this,i,l,n);n=d.transitionEnd,i=d.target}return{transition:e,transitionEnd:n,...i}}}function yD(t){return window.getComputedStyle(t)}class bD extends nb{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Ji.has(n)){const i=Xf(n);return i&&i.default||0}else{const i=yD(e),o=(Uv(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return $y(e,n)}build(e,n,i,o){Wf(e,n,i,o.transformTemplate)}scrapeMotionValuesFromProps(e,n){return zf(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;dn(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,i,o){Xv(e,n,i,o)}}class wD extends nb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ji.has(n)){const i=Xf(n);return i&&i.default||0}return n=Jv.has(n)?n:jf(n),e.getAttribute(n)}measureInstanceViewportBox(){return Ot()}scrapeMotionValuesFromProps(e,n){return Qv(e,n)}build(e,n,i,o){$f(e,n,i,this.isSVGTag,o.transformTemplate)}renderInstance(e,n,i,o){Zv(e,n,i,o)}mount(e){this.isSVGTag=Uf(e.tagName),super.mount(e)}}const xD=(t,e)=>Vf(t)?new wD(e,{enableHardwareAcceleration:!1}):new bD(e,{enableHardwareAcceleration:!0}),SD={layout:{ProjectionNode:Zy,MeasureLayout:zy}},_D={...GA,...mP,...Qk,...SD},CD=CO((t,e)=>rP(t,e,_D,xD));function Ro(){return Ro=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},Ro.apply(this,arguments)}const ED=Object.freeze(Object.defineProperty({__proto__:null,default:Ro},Symbol.toStringTag,{value:"Module"}));function rb(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,wu(t,e)}function Nc(t,e,n){if(n||arguments.length===2)for(var i=0,o=e.length,a;i<o;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return t.concat(a||Array.prototype.slice.call(e))}/*!
|
|
7
7
|
* content-type
|
|
8
8
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
9
9
|
* MIT Licensed
|
|
10
|
-
*/var
|
|
10
|
+
*/var um=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,TD=/\\([\u000b\u0020-\u00ff])/g,OD=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,PD=AD;function AD(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?kD(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var n=e.indexOf(";"),i=n!==-1?e.slice(0,n).trim():e.trim();if(!OD.test(i))throw new TypeError("invalid media type");var o=new DD(i.toLowerCase());if(n!==-1){var a,l,d;for(um.lastIndex=n;l=um.exec(e);){if(l.index!==n)throw new TypeError("invalid parameter format");n+=l[0].length,a=l[1].toLowerCase(),d=l[2],d.charCodeAt(0)===34&&(d=d.slice(1,-1),d.indexOf("\\")!==-1&&(d=d.replace(TD,"$1"))),o.parameters[a]=d}if(n!==e.length)throw new TypeError("invalid parameter format")}return o}function kD(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function DD(t){this.parameters=Object.create(null),this.type=t}var Co=new Map,ib=function(e){return e.cloneNode(!0)},lm=function(){return window.location.protocol==="file:"},ob=function(e,n,i){var o=new XMLHttpRequest;o.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&o.readyState===2){var a=o.getResponseHeader("Content-Type");if(!a)throw new Error("Content type not found");var l=PD(a).type;if(!(l==="image/svg+xml"||l==="text/plain"))throw new Error("Invalid content type: ".concat(l))}if(o.readyState===4){if(o.status===404||o.responseXML===null)throw new Error(lm()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(o.status===200||lm()&&o.status===0)i(null,o);else throw new Error("There was a problem injecting the SVG: "+o.status+" "+o.statusText)}}catch(d){if(o.abort(),d instanceof Error)i(d,o);else throw d}},o.open("GET",e),o.withCredentials=n,o.overrideMimeType&&o.overrideMimeType("text/xml"),o.send()},ci={},cm=function(e,n){ci[e]=ci[e]||[],ci[e].push(n)},ID=function(e){for(var n=function(l,d){setTimeout(function(){if(Array.isArray(ci[e])){var h=Co.get(e),m=ci[e][l];h instanceof SVGSVGElement&&m(null,ib(h)),h instanceof Error&&m(h),l===ci[e].length-1&&delete ci[e]}},0)},i=0,o=ci[e].length;i<o;i++)n(i)},RD=function(e,n,i){if(Co.has(e)){var o=Co.get(e);if(o===void 0){cm(e,i);return}if(o instanceof SVGSVGElement){i(null,ib(o));return}}Co.set(e,void 0),cm(e,i),ob(e,n,function(a,l){var d;a?Co.set(e,a):((d=l.responseXML)===null||d===void 0?void 0:d.documentElement)instanceof SVGSVGElement&&Co.set(e,l.responseXML.documentElement),ID(e)})},LD=function(e,n,i){ob(e,n,function(o,a){var l;o?i(o):((l=a.responseXML)===null||l===void 0?void 0:l.documentElement)instanceof SVGSVGElement&&i(null,a.responseXML.documentElement)})},MD=0,ND=function(){return++MD},fr=[],fm={},jD="http://www.w3.org/2000/svg",jc="http://www.w3.org/1999/xlink",dm=function(e,n,i,o,a,l,d){var h=e.getAttribute("data-src")||e.getAttribute("src");if(!h){d(new Error("Invalid data-src or src attribute"));return}if(fr.indexOf(e)!==-1){fr.splice(fr.indexOf(e),1),e=null;return}fr.push(e),e.setAttribute("src","");var m=o?RD:LD;m(h,a,function(b,w){if(!w){fr.splice(fr.indexOf(e),1),e=null,d(b);return}var _=e.getAttribute("id");_&&w.setAttribute("id",_);var E=e.getAttribute("title");E&&w.setAttribute("title",E);var I=e.getAttribute("width");I&&w.setAttribute("width",I);var A=e.getAttribute("height");A&&w.setAttribute("height",A);var B=Array.from(new Set(Nc(Nc(Nc([],(w.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();w.setAttribute("class",B);var k=e.getAttribute("style");k&&w.setAttribute("style",k),w.setAttribute("data-src",h);var F=[].filter.call(e.attributes,function(pe){return/^data-\w[\w-]*$/.test(pe.name)});if(Array.prototype.forEach.call(F,function(pe){pe.name&&pe.value&&w.setAttribute(pe.name,pe.value)}),i){var N={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},Y,$,ie,g,ee;Object.keys(N).forEach(function(pe){Y=pe,ie=N[pe],$=w.querySelectorAll(Y+"[id]");for(var ke=function(me,ye){g=$[me].id,ee=g+"-"+ND();var Pe;Array.prototype.forEach.call(ie,function(gt){Pe=w.querySelectorAll("["+gt+'*="'+g+'"]');for(var ht=0,kn=Pe.length;ht<kn;ht++){var Wr=Pe[ht].getAttribute(gt);Wr&&!Wr.match(new RegExp('url\\("?#'+g+'"?\\)'))||Pe[ht].setAttribute(gt,"url(#"+ee+")")}});for(var Ce=w.querySelectorAll("[*|href]"),Ie=[],je=0,$e=Ce.length;je<$e;je++){var Me=Ce[je].getAttributeNS(jc,"href");Me&&Me.toString()==="#"+$[me].id&&Ie.push(Ce[je])}for(var Xe=0,ge=Ie.length;Xe<ge;Xe++)Ie[Xe].setAttributeNS(jc,"href","#"+ee);$[me].id=ee},Q=0,ae=$.length;Q<ae;Q++)ke(Q)})}w.removeAttribute("xmlns:a");for(var Z=w.querySelectorAll("script"),we=[],He,Ae,Te=0,Le=Z.length;Te<Le;Te++)Ae=Z[Te].getAttribute("type"),(!Ae||Ae==="application/ecmascript"||Ae==="application/javascript"||Ae==="text/javascript")&&(He=Z[Te].innerText||Z[Te].textContent,He&&we.push(He),w.removeChild(Z[Te]));if(we.length>0&&(n==="always"||n==="once"&&!fm[h])){for(var G=0,re=we.length;G<re;G++)new Function(we[G])(window);fm[h]=!0}var de=w.querySelectorAll("style");if(Array.prototype.forEach.call(de,function(pe){pe.textContent+=""}),w.setAttribute("xmlns",jD),w.setAttribute("xmlns:xlink",jc),l(w),!e.parentNode){fr.splice(fr.indexOf(e),1),e=null,d(new Error("Parent node is null"));return}e.parentNode.replaceChild(w,e),fr.splice(fr.indexOf(e),1),e=null,d(null,w)})},BD=function(e,n){var i=n===void 0?{}:n,o=i.afterAll,a=o===void 0?function(){}:o,l=i.afterEach,d=l===void 0?function(){}:l,h=i.beforeEach,m=h===void 0?function(){}:h,b=i.cacheRequests,w=b===void 0?!0:b,_=i.evalScripts,E=_===void 0?"never":_,I=i.httpRequestWithCredentials,A=I===void 0?!1:I,B=i.renumerateIRIElements,k=B===void 0?!0:B;if(e&&"length"in e)for(var F=0,N=0,Y=e.length;N<Y;N++)dm(e[N],E,k,w,A,m,function($,ie){d($,ie),e&&"length"in e&&e.length===++F&&a(F)});else e?dm(e,E,k,w,A,m,function($,ie){d($,ie),a(1),e=null}):a(0)},xf={exports:{}},hu={exports:{}},ut={};/** @license React v16.13.1
|
|
11
11
|
* react-is.production.min.js
|
|
12
12
|
*
|
|
13
13
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var hm;function FD(){if(hm)return ut;hm=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,d=t?Symbol.for("react.context"):60110,h=t?Symbol.for("react.async_mode"):60111,m=t?Symbol.for("react.concurrent_mode"):60111,b=t?Symbol.for("react.forward_ref"):60112,w=t?Symbol.for("react.suspense"):60113,_=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,I=t?Symbol.for("react.lazy"):60116,A=t?Symbol.for("react.block"):60121,B=t?Symbol.for("react.fundamental"):60117,k=t?Symbol.for("react.responder"):60118,F=t?Symbol.for("react.scope"):60119;function N($){if(typeof $=="object"&&$!==null){var ie=$.$$typeof;switch(ie){case e:switch($=$.type,$){case h:case m:case i:case a:case o:case w:return $;default:switch($=$&&$.$$typeof,$){case d:case b:case I:case E:case l:return $;default:return ie}}case n:return ie}}}function Y($){return N($)===m}return ut.AsyncMode=h,ut.ConcurrentMode=m,ut.ContextConsumer=d,ut.ContextProvider=l,ut.Element=e,ut.ForwardRef=b,ut.Fragment=i,ut.Lazy=I,ut.Memo=E,ut.Portal=n,ut.Profiler=a,ut.StrictMode=o,ut.Suspense=w,ut.isAsyncMode=function($){return Y($)||N($)===h},ut.isConcurrentMode=Y,ut.isContextConsumer=function($){return N($)===d},ut.isContextProvider=function($){return N($)===l},ut.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===e},ut.isForwardRef=function($){return N($)===b},ut.isFragment=function($){return N($)===i},ut.isLazy=function($){return N($)===I},ut.isMemo=function($){return N($)===E},ut.isPortal=function($){return N($)===n},ut.isProfiler=function($){return N($)===a},ut.isStrictMode=function($){return N($)===o},ut.isSuspense=function($){return N($)===w},ut.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===i||$===m||$===a||$===o||$===w||$===_||typeof $=="object"&&$!==null&&($.$$typeof===I||$.$$typeof===E||$.$$typeof===l||$.$$typeof===d||$.$$typeof===b||$.$$typeof===B||$.$$typeof===k||$.$$typeof===F||$.$$typeof===A)},ut.typeOf=N,ut}var lt={};/** @license React v16.13.1
|
|
18
18
|
* react-is.development.js
|
|
19
19
|
*
|
|
20
20
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
21
|
*
|
|
22
22
|
* This source code is licensed under the MIT license found in the
|
|
23
23
|
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/var
|
|
24
|
+
*/var pm;function VD(){return pm||(pm=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,d=t?Symbol.for("react.context"):60110,h=t?Symbol.for("react.async_mode"):60111,m=t?Symbol.for("react.concurrent_mode"):60111,b=t?Symbol.for("react.forward_ref"):60112,w=t?Symbol.for("react.suspense"):60113,_=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,I=t?Symbol.for("react.lazy"):60116,A=t?Symbol.for("react.block"):60121,B=t?Symbol.for("react.fundamental"):60117,k=t?Symbol.for("react.responder"):60118,F=t?Symbol.for("react.scope"):60119;function N(ge){return typeof ge=="string"||typeof ge=="function"||ge===i||ge===m||ge===a||ge===o||ge===w||ge===_||typeof ge=="object"&&ge!==null&&(ge.$$typeof===I||ge.$$typeof===E||ge.$$typeof===l||ge.$$typeof===d||ge.$$typeof===b||ge.$$typeof===B||ge.$$typeof===k||ge.$$typeof===F||ge.$$typeof===A)}function Y(ge){if(typeof ge=="object"&&ge!==null){var gt=ge.$$typeof;switch(gt){case e:var ht=ge.type;switch(ht){case h:case m:case i:case a:case o:case w:return ht;default:var kn=ht&&ht.$$typeof;switch(kn){case d:case b:case I:case E:case l:return kn;default:return gt}}case n:return gt}}}var $=h,ie=m,g=d,ee=l,Z=e,we=b,He=i,Ae=I,Te=E,Le=n,G=a,re=o,de=w,pe=!1;function ke(ge){return pe||(pe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Q(ge)||Y(ge)===h}function Q(ge){return Y(ge)===m}function ae(ge){return Y(ge)===d}function ve(ge){return Y(ge)===l}function me(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===e}function ye(ge){return Y(ge)===b}function Pe(ge){return Y(ge)===i}function Ce(ge){return Y(ge)===I}function Ie(ge){return Y(ge)===E}function je(ge){return Y(ge)===n}function $e(ge){return Y(ge)===a}function Me(ge){return Y(ge)===o}function Xe(ge){return Y(ge)===w}lt.AsyncMode=$,lt.ConcurrentMode=ie,lt.ContextConsumer=g,lt.ContextProvider=ee,lt.Element=Z,lt.ForwardRef=we,lt.Fragment=He,lt.Lazy=Ae,lt.Memo=Te,lt.Portal=Le,lt.Profiler=G,lt.StrictMode=re,lt.Suspense=de,lt.isAsyncMode=ke,lt.isConcurrentMode=Q,lt.isContextConsumer=ae,lt.isContextProvider=ve,lt.isElement=me,lt.isForwardRef=ye,lt.isFragment=Pe,lt.isLazy=Ce,lt.isMemo=Ie,lt.isPortal=je,lt.isProfiler=$e,lt.isStrictMode=Me,lt.isSuspense=Xe,lt.isValidElementType=N,lt.typeOf=Y}()),lt}var gm;function sb(){return gm||(gm=1,process.env.NODE_ENV==="production"?hu.exports=FD():hu.exports=VD()),hu.exports}/*
|
|
25
25
|
object-assign
|
|
26
26
|
(c) Sindre Sorhus
|
|
27
27
|
@license MIT
|
|
28
|
-
*/var Bc,
|
|
29
|
-
Valid keys: `+JSON.stringify(Object.keys(Q),null," "));var ge=Xe(Ie,Me,ye,Pe,Ce+"."+Me,n);if(ge)return ge}return null}return B(ae)}function Le(Q){switch(typeof Q){case"number":case"string":case"undefined":return!0;case"boolean":return!Q;case"object":if(Array.isArray(Q))return Q.every(Le);if(Q===null||d(Q))return!0;var ae=w(Q);if(ae){var ve=ae.call(Q),me;if(ae!==Q.entries){for(;!(me=ve.next()).done;)if(!Le(me.value))return!1}else for(;!(me=ve.next()).done;){var ye=me.value;if(ye&&!Le(ye[1]))return!1}}else return!1;return!0;default:return!1}}function G(Q,ae){return Q==="symbol"?!0:ae?ae["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ae instanceof Symbol:!1}function re(Q){var ae=typeof Q;return Array.isArray(Q)?"array":Q instanceof RegExp?"object":G(ae,Q)?"symbol":ae}function de(Q){if(typeof Q>"u"||Q===null)return""+Q;var ae=re(Q);if(ae==="object"){if(Q instanceof Date)return"date";if(Q instanceof RegExp)return"regexp"}return ae}function pe(Q){var ae=de(Q);switch(ae){case"array":case"object":return"an "+ae;case"boolean":case"date":case"regexp":return"a "+ae;default:return ae}}function Ae(Q){return!Q.constructor||!Q.constructor.name?_:Q.constructor.name}return E.checkPropTypes=o,E.resetWarningCache=o.resetWarningCache,E.PropTypes=E,E},Hc}var $c,Sm;function zD(){if(Sm)return $c;Sm=1;var t=id();function e(){}function n(){}return n.resetWarningCache=e,$c=function(){function i(l,d,h,m,b,w){if(w!==t){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}i.isRequired=i;function o(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return a.PropTypes=a,a},$c}if(process.env.NODE_ENV!=="production"){var qD=ub(),YD=!0;Sf.exports=UD()(qD.isElement,YD)}else Sf.exports=zD()();var Tt=Sf.exports;const GD=Vs(Tt);var KD=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},XD=function(e,n){for(var i in e)if(!(i in n))return!0;for(var o in n)if(e[o]!==n[o])return!0;return!1},JD=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],pu="http://www.w3.org/2000/svg",_m="http://www.w3.org/1999/xlink",od=function(t){ob(e,t);function e(){for(var i,o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return i=t.call.apply(t,[this].concat(a))||this,i.initialState={hasError:!1,isLoading:!0},i.state=i.initialState,i._isMounted=!1,i.reactWrapper=void 0,i.nonReactWrapper=void 0,i.refCallback=function(d){i.reactWrapper=d},i}var n=e.prototype;return n.renderSVG=function(){var o=this;if(this.reactWrapper instanceof KD(this.reactWrapper).Node){var a=this.props,l=a.desc,d=a.evalScripts,h=a.httpRequestWithCredentials,m=a.renumerateIRIElements,b=a.src,w=a.title,_=a.useRequestCache,E=this.props.onError,I=this.props.beforeInjection,A=this.props.afterInjection,B=this.props.wrapper,k,F;B==="svg"?(k=document.createElementNS(pu,B),k.setAttribute("xmlns",pu),k.setAttribute("xmlns:xlink",_m),F=document.createElementNS(pu,B)):(k=document.createElement(B),F=document.createElement(B)),k.appendChild(F),F.dataset.src=b,this.nonReactWrapper=this.reactWrapper.appendChild(k);var N=function(g){if(o.removeSVG(),!o._isMounted){E(g);return}o.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(g)})},Y=function(g,ee){if(g){N(g);return}o._isMounted&&o.setState(function(){return{isLoading:!1}},function(){try{A(ee)}catch(Z){N(Z)}})},$=function(g){if(g.setAttribute("role","img"),l){var ee=g.querySelector(":scope > desc");ee&&g.removeChild(ee);var Z=document.createElement("desc");Z.innerHTML=l,g.prepend(Z)}if(w){var we=g.querySelector(":scope > title");we&&g.removeChild(we);var He=document.createElement("title");He.innerHTML=w,g.prepend(He)}try{I(g)}catch(De){N(De)}};FD(F,{afterEach:Y,beforeEach:$,cacheRequests:_,evalScripts:d,httpRequestWithCredentials:h,renumerateIRIElements:m})}},n.removeSVG=function(){var o;(o=this.nonReactWrapper)!=null&&o.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(o){var a=this;XD(Ro({},o),this.props)&&this.setState(function(){return a.initialState},function(){a.removeSVG(),a.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var o=this.props;o.afterInjection,o.beforeInjection,o.desc,o.evalScripts;var a=o.fallback;o.httpRequestWithCredentials;var l=o.loading;o.renumerateIRIElements,o.src,o.title,o.useRequestCache;var d=o.wrapper,h=Mf(o,JD),m=d;return pt.createElement(m,Ro({},h,{ref:this.refCallback},d==="svg"?{xmlns:pu,xmlnsXlink:_m}:{}),this.state.isLoading&&l&&pt.createElement(l,null),this.state.hasError&&a&&pt.createElement(a,null))},e}(pt.Component);od.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};od.propTypes={afterInjection:Tt.func,beforeInjection:Tt.func,desc:Tt.string,evalScripts:Tt.oneOf(["always","once","never"]),fallback:Tt.oneOfType([Tt.func,Tt.object,Tt.string]),httpRequestWithCredentials:Tt.bool,loading:Tt.oneOfType([Tt.func,Tt.object,Tt.string]),onError:Tt.func,renumerateIRIElements:Tt.bool,src:Tt.string.isRequired,title:Tt.string,useRequestCache:Tt.bool,wrapper:Tt.oneOf(["div","span","svg"])};function ZD(t){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:be.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function QD(t){const{renderChildren:e,parentRef:n,onlyChild:i}=t,[o,a]=te.useState({top:0,left:0}),l=te.useRef(null),[d,h]=te.useState("auto");return te.useLayoutEffect(()=>{if(n.current&&l.current){const m=n.current.getBoundingClientRect(),b=l.current.getBoundingClientRect();let w=m.top;const _=m.left+m.width,E=b.height+(window.innerHeight-m.top)>window.innerHeight;E&&(console.log("overtop"),h(window.innerHeight-m.top-50)),m.top+b.height>window.innerHeight&&!E&&(w=m.top-b.height+m.height),a({top:w,left:_})}},[n,l]),i?e({maxHeight:d}):sC.createPortal(be.jsx("div",{ref:l,style:{position:"fixed",top:o.top,left:o.left,zIndex:1200},children:e({maxHeight:d})}),n.current)}function eI(t){const{children:e,title:n,hasTooltip:i}=t,o=te.useRef(),[a,l]=te.useState(!1),[d,h]=te.useState({top:0,left:0});return be.jsxs("div",{className:"tooltip-item__wrapper",onMouseOver:()=>{if(l(!0),o.current){const m=o.current.getBoundingClientRect();h({top:m.top-20,left:m.left})}},onMouseLeave:()=>l(!1),ref:o,children:[be.jsx("div",{children:e}),a&&i&&be.jsx("div",{className:"tooltip-item__content",style:{position:"fixed",background:"#85858A",borderRadius:"4px",color:"#fff",padding:"4px 8px",top:d.top,left:d.left,zIndex:1400,fontSize:"10px",transition:"all 0.2s ease-in-out",animation:"fadeIn 0.2s ease-in-out",pointerEvents:"none"},children:n})]})}function cb(t,e){return e?t:void 0}function fb({item:t,level:e=0,...n}){var Te,Le,G,re,de;const{isActive:i,isCollapsed:o,expanded:a,toggleExpand:l}=n,d=`level-${e}`,h=o?"collapsed":"expanded",m=i(t.id)?"active":"",b=(pe,Ae=d)=>`${pe} ${Ae} ${h} ${m}`,w=!!((Te=t.children)!=null&&Te.length),[_,E]=te.useState(!1),I=te.useRef(),A=te.useRef(),B=(A==null?void 0:A.current)&&((Le=A==null?void 0:A.current)==null?void 0:Le.scrollWidth)>((G=A==null?void 0:A.current)==null?void 0:G.clientWidth),k=window.location.origin,F=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},N=window.location.pathname.split("/")[1],Y=F.pathname.split("/")[1],$=n.ssr||!k.includes("local")&&k!==F.origin||Y!==N,ie=w||e===0?"div":$?"a":zm.Link,g=t.path||"#",ee=e+1,Z=w&&!(o&&ee>=2&&!_),we=o||e===0?void 0:`${e}rem`,He=()=>{E(!0)},De=()=>{E(!1)};return be.jsxs("div",{ref:I,className:b("menu-item__wrapper"),onMouseOver:He,onMouseOut:De,children:[be.jsx(eI,{hasTooltip:B||o&&e===1,children:be.jsxs(ie,{to:g,href:g,className:b("menu-item__link"),style:{paddingLeft:we,transition:"all 0.3s",color:i(t.id)?((re=n.brandColors)==null?void 0:re.primary400)||fn.primary400:void 0,backgroundColor:i(t.id)&&e===1?(de=n.brandColors)==null?void 0:de.primary200:void 0},onClick:pe=>{w&&(pe.preventDefault(),o||l(t.id))},children:[e!==0&&be.jsx(tI,{cls:b,item:t}),be.jsx("span",{className:b("menu-item__label"),ref:A,children:t.name}),w&&be.jsx("div",{className:b("menu-item__icon-arrow__wrapper"),children:be.jsx(ZD,{className:b(`menu-item__icon-arrow__icon ${a(t.id)?"open":"close"}`)})})]}),title:t.name}),Z&&be.jsx(QD,{parentRef:I,onlyChild:!o||o&&ee<2,renderChildren:({maxHeight:pe})=>{var Ae;return be.jsx(ED.div,{className:b(`menu-item__dropdown ${a(t.id)?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${ee}`),initial:{height:o||a(t.id)?"auto":0},animate:{height:o||a(t.id)?"auto":0},transition:{duration:.25},style:cb({maxHeight:pe,overflowY:"auto",paddingRight:3},pe!=="auto"&&!!ee),children:(Ae=t.children)==null?void 0:Ae.map(Q=>te.createElement(fb,{...n,key:Q.id,item:Q,level:ee}))})}})]})}function tI({item:t,cls:e}){var l,d;const[n,i]=te.useState(!t.icon),o=()=>{i(!0)},a=(l=t.icon)==null?void 0:l.endsWith(".svg");return be.jsx("div",{className:e("menu-item__icon"),children:n?be.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(d=t.name.trim().at(0))==null?void 0:d.toUpperCase()}):a?be.jsx(od,{src:t.icon,beforeInjection:h=>{h.setAttribute("style","margin: 0 auto;"),h.querySelectorAll("path").forEach(b=>{b.hasAttribute("fill")&&b.setAttribute("fill","currentColor"),b.hasAttribute("stroke")&&b.setAttribute("stroke","currentColor")})}}):be.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:o})})}function nI(){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:be.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function rI(){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:be.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function iI(t){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:be.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const oI=`.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.level-0{height:37px}.menu-item__link.menu-item__link.collapsed.level-0{padding:0;height:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:0}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
|
|
30
|
-
`,
|
|
28
|
+
*/var Bc,mm;function WD(){if(mm)return Bc;mm=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},d=0;d<10;d++)l["_"+String.fromCharCode(d)]=d;var h=Object.getOwnPropertyNames(l).map(function(b){return l[b]});if(h.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(b){m[b]=b}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Bc=o()?Object.assign:function(a,l){for(var d,h=i(a),m,b=1;b<arguments.length;b++){d=Object(arguments[b]);for(var w in d)e.call(d,w)&&(h[w]=d[w]);if(t){m=t(d);for(var _=0;_<m.length;_++)n.call(d,m[_])&&(h[m[_]]=d[m[_]])}}return h},Bc}var Fc,vm;function rd(){if(vm)return Fc;vm=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fc=t,Fc}var Vc,ym;function ab(){return ym||(ym=1,Vc=Function.call.bind(Object.prototype.hasOwnProperty)),Vc}var Wc,bm;function HD(){if(bm)return Wc;bm=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=rd(),n={},i=ab();t=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(a,l,d,h,m){if(process.env.NODE_ENV!=="production"){for(var b in a)if(i(a,b)){var w;try{if(typeof a[b]!="function"){var _=Error((h||"React class")+": "+d+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}w=a[b](l,b,h,d,null,e)}catch(I){w=I}if(w&&!(w instanceof Error)&&t((h||"React class")+": type specification of "+d+" `"+b+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof w+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),w instanceof Error&&!(w.message in n)){n[w.message]=!0;var E=m?m():"";t("Failed "+d+" type: "+w.message+(E??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Wc=o,Wc}var Hc,wm;function $D(){if(wm)return Hc;wm=1;var t=sb(),e=WD(),n=rd(),i=ab(),o=HD(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(d){var h="Warning: "+d;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function l(){return null}return Hc=function(d,h){var m=typeof Symbol=="function"&&Symbol.iterator,b="@@iterator";function w(Q){var ae=Q&&(m&&Q[m]||Q[b]);if(typeof ae=="function")return ae}var _="<<anonymous>>",E={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:F(),arrayOf:N,element:Y(),elementType:$(),instanceOf:ie,node:we(),objectOf:ee,oneOf:g,oneOfType:Z,shape:Ae,exact:Te};function I(Q,ae){return Q===ae?Q!==0||1/Q===1/ae:Q!==Q&&ae!==ae}function A(Q,ae){this.message=Q,this.data=ae&&typeof ae=="object"?ae:{},this.stack=""}A.prototype=Error.prototype;function B(Q){if(process.env.NODE_ENV!=="production")var ae={},ve=0;function me(Pe,Ce,Ie,je,$e,Me,Xe){if(je=je||_,Me=Me||Ie,Xe!==n){if(h){var ge=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ge.name="Invariant Violation",ge}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var gt=je+":"+Ie;!ae[gt]&&ve<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Me+"` prop on `"+je+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ae[gt]=!0,ve++)}}return Ce[Ie]==null?Pe?Ce[Ie]===null?new A("The "+$e+" `"+Me+"` is marked as required "+("in `"+je+"`, but its value is `null`.")):new A("The "+$e+" `"+Me+"` is marked as required in "+("`"+je+"`, but its value is `undefined`.")):null:Q(Ce,Ie,je,$e,Me)}var ye=me.bind(null,!1);return ye.isRequired=me.bind(null,!0),ye}function k(Q){function ae(ve,me,ye,Pe,Ce,Ie){var je=ve[me],$e=re(je);if($e!==Q){var Me=de(je);return new A("Invalid "+Pe+" `"+Ce+"` of type "+("`"+Me+"` supplied to `"+ye+"`, expected ")+("`"+Q+"`."),{expectedType:Q})}return null}return B(ae)}function F(){return B(l)}function N(Q){function ae(ve,me,ye,Pe,Ce){if(typeof Q!="function")return new A("Property `"+Ce+"` of component `"+ye+"` has invalid PropType notation inside arrayOf.");var Ie=ve[me];if(!Array.isArray(Ie)){var je=re(Ie);return new A("Invalid "+Pe+" `"+Ce+"` of type "+("`"+je+"` supplied to `"+ye+"`, expected an array."))}for(var $e=0;$e<Ie.length;$e++){var Me=Q(Ie,$e,ye,Pe,Ce+"["+$e+"]",n);if(Me instanceof Error)return Me}return null}return B(ae)}function Y(){function Q(ae,ve,me,ye,Pe){var Ce=ae[ve];if(!d(Ce)){var Ie=re(Ce);return new A("Invalid "+ye+" `"+Pe+"` of type "+("`"+Ie+"` supplied to `"+me+"`, expected a single ReactElement."))}return null}return B(Q)}function $(){function Q(ae,ve,me,ye,Pe){var Ce=ae[ve];if(!t.isValidElementType(Ce)){var Ie=re(Ce);return new A("Invalid "+ye+" `"+Pe+"` of type "+("`"+Ie+"` supplied to `"+me+"`, expected a single ReactElement type."))}return null}return B(Q)}function ie(Q){function ae(ve,me,ye,Pe,Ce){if(!(ve[me]instanceof Q)){var Ie=Q.name||_,je=ke(ve[me]);return new A("Invalid "+Pe+" `"+Ce+"` of type "+("`"+je+"` supplied to `"+ye+"`, expected ")+("instance of `"+Ie+"`."))}return null}return B(ae)}function g(Q){if(!Array.isArray(Q))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function ae(ve,me,ye,Pe,Ce){for(var Ie=ve[me],je=0;je<Q.length;je++)if(I(Ie,Q[je]))return null;var $e=JSON.stringify(Q,function(Xe,ge){var gt=de(ge);return gt==="symbol"?String(ge):ge});return new A("Invalid "+Pe+" `"+Ce+"` of value `"+String(Ie)+"` "+("supplied to `"+ye+"`, expected one of "+$e+"."))}return B(ae)}function ee(Q){function ae(ve,me,ye,Pe,Ce){if(typeof Q!="function")return new A("Property `"+Ce+"` of component `"+ye+"` has invalid PropType notation inside objectOf.");var Ie=ve[me],je=re(Ie);if(je!=="object")return new A("Invalid "+Pe+" `"+Ce+"` of type "+("`"+je+"` supplied to `"+ye+"`, expected an object."));for(var $e in Ie)if(i(Ie,$e)){var Me=Q(Ie,$e,ye,Pe,Ce+"."+$e,n);if(Me instanceof Error)return Me}return null}return B(ae)}function Z(Q){if(!Array.isArray(Q))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var ae=0;ae<Q.length;ae++){var ve=Q[ae];if(typeof ve!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+pe(ve)+" at index "+ae+"."),l}function me(ye,Pe,Ce,Ie,je){for(var $e=[],Me=0;Me<Q.length;Me++){var Xe=Q[Me],ge=Xe(ye,Pe,Ce,Ie,je,n);if(ge==null)return null;ge.data&&i(ge.data,"expectedType")&&$e.push(ge.data.expectedType)}var gt=$e.length>0?", expected one of type ["+$e.join(", ")+"]":"";return new A("Invalid "+Ie+" `"+je+"` supplied to "+("`"+Ce+"`"+gt+"."))}return B(me)}function we(){function Q(ae,ve,me,ye,Pe){return Le(ae[ve])?null:new A("Invalid "+ye+" `"+Pe+"` supplied to "+("`"+me+"`, expected a ReactNode."))}return B(Q)}function He(Q,ae,ve,me,ye){return new A((Q||"React class")+": "+ae+" type `"+ve+"."+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ye+"`.")}function Ae(Q){function ae(ve,me,ye,Pe,Ce){var Ie=ve[me],je=re(Ie);if(je!=="object")return new A("Invalid "+Pe+" `"+Ce+"` of type `"+je+"` "+("supplied to `"+ye+"`, expected `object`."));for(var $e in Q){var Me=Q[$e];if(typeof Me!="function")return He(ye,Pe,Ce,$e,de(Me));var Xe=Me(Ie,$e,ye,Pe,Ce+"."+$e,n);if(Xe)return Xe}return null}return B(ae)}function Te(Q){function ae(ve,me,ye,Pe,Ce){var Ie=ve[me],je=re(Ie);if(je!=="object")return new A("Invalid "+Pe+" `"+Ce+"` of type `"+je+"` "+("supplied to `"+ye+"`, expected `object`."));var $e=e({},ve[me],Q);for(var Me in $e){var Xe=Q[Me];if(i(Q,Me)&&typeof Xe!="function")return He(ye,Pe,Ce,Me,de(Xe));if(!Xe)return new A("Invalid "+Pe+" `"+Ce+"` key `"+Me+"` supplied to `"+ye+"`.\nBad object: "+JSON.stringify(ve[me],null," ")+`
|
|
29
|
+
Valid keys: `+JSON.stringify(Object.keys(Q),null," "));var ge=Xe(Ie,Me,ye,Pe,Ce+"."+Me,n);if(ge)return ge}return null}return B(ae)}function Le(Q){switch(typeof Q){case"number":case"string":case"undefined":return!0;case"boolean":return!Q;case"object":if(Array.isArray(Q))return Q.every(Le);if(Q===null||d(Q))return!0;var ae=w(Q);if(ae){var ve=ae.call(Q),me;if(ae!==Q.entries){for(;!(me=ve.next()).done;)if(!Le(me.value))return!1}else for(;!(me=ve.next()).done;){var ye=me.value;if(ye&&!Le(ye[1]))return!1}}else return!1;return!0;default:return!1}}function G(Q,ae){return Q==="symbol"?!0:ae?ae["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ae instanceof Symbol:!1}function re(Q){var ae=typeof Q;return Array.isArray(Q)?"array":Q instanceof RegExp?"object":G(ae,Q)?"symbol":ae}function de(Q){if(typeof Q>"u"||Q===null)return""+Q;var ae=re(Q);if(ae==="object"){if(Q instanceof Date)return"date";if(Q instanceof RegExp)return"regexp"}return ae}function pe(Q){var ae=de(Q);switch(ae){case"array":case"object":return"an "+ae;case"boolean":case"date":case"regexp":return"a "+ae;default:return ae}}function ke(Q){return!Q.constructor||!Q.constructor.name?_:Q.constructor.name}return E.checkPropTypes=o,E.resetWarningCache=o.resetWarningCache,E.PropTypes=E,E},Hc}var $c,xm;function UD(){if(xm)return $c;xm=1;var t=rd();function e(){}function n(){}return n.resetWarningCache=e,$c=function(){function i(l,d,h,m,b,w){if(w!==t){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}i.isRequired=i;function o(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return a.PropTypes=a,a},$c}if(process.env.NODE_ENV!=="production"){var zD=sb(),qD=!0;xf.exports=$D()(zD.isElement,qD)}else xf.exports=UD()();var Tt=xf.exports;const YD=Vs(Tt);var GD=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},KD=function(e,n){for(var i in e)if(!(i in n))return!0;for(var o in n)if(e[o]!==n[o])return!0;return!1},XD=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],pu="http://www.w3.org/2000/svg",Sm="http://www.w3.org/1999/xlink",id=function(t){rb(e,t);function e(){for(var i,o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return i=t.call.apply(t,[this].concat(a))||this,i.initialState={hasError:!1,isLoading:!0},i.state=i.initialState,i._isMounted=!1,i.reactWrapper=void 0,i.nonReactWrapper=void 0,i.refCallback=function(d){i.reactWrapper=d},i}var n=e.prototype;return n.renderSVG=function(){var o=this;if(this.reactWrapper instanceof GD(this.reactWrapper).Node){var a=this.props,l=a.desc,d=a.evalScripts,h=a.httpRequestWithCredentials,m=a.renumerateIRIElements,b=a.src,w=a.title,_=a.useRequestCache,E=this.props.onError,I=this.props.beforeInjection,A=this.props.afterInjection,B=this.props.wrapper,k,F;B==="svg"?(k=document.createElementNS(pu,B),k.setAttribute("xmlns",pu),k.setAttribute("xmlns:xlink",Sm),F=document.createElementNS(pu,B)):(k=document.createElement(B),F=document.createElement(B)),k.appendChild(F),F.dataset.src=b,this.nonReactWrapper=this.reactWrapper.appendChild(k);var N=function(g){if(o.removeSVG(),!o._isMounted){E(g);return}o.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(g)})},Y=function(g,ee){if(g){N(g);return}o._isMounted&&o.setState(function(){return{isLoading:!1}},function(){try{A(ee)}catch(Z){N(Z)}})},$=function(g){if(g.setAttribute("role","img"),l){var ee=g.querySelector(":scope > desc");ee&&g.removeChild(ee);var Z=document.createElement("desc");Z.innerHTML=l,g.prepend(Z)}if(w){var we=g.querySelector(":scope > title");we&&g.removeChild(we);var He=document.createElement("title");He.innerHTML=w,g.prepend(He)}try{I(g)}catch(Ae){N(Ae)}};BD(F,{afterEach:Y,beforeEach:$,cacheRequests:_,evalScripts:d,httpRequestWithCredentials:h,renumerateIRIElements:m})}},n.removeSVG=function(){var o;(o=this.nonReactWrapper)!=null&&o.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(o){var a=this;KD(Ro({},o),this.props)&&this.setState(function(){return a.initialState},function(){a.removeSVG(),a.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var o=this.props;o.afterInjection,o.beforeInjection,o.desc,o.evalScripts;var a=o.fallback;o.httpRequestWithCredentials;var l=o.loading;o.renumerateIRIElements,o.src,o.title,o.useRequestCache;var d=o.wrapper,h=Lf(o,XD),m=d;return pt.createElement(m,Ro({},h,{ref:this.refCallback},d==="svg"?{xmlns:pu,xmlnsXlink:Sm}:{}),this.state.isLoading&&l&&pt.createElement(l,null),this.state.hasError&&a&&pt.createElement(a,null))},e}(pt.Component);id.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};id.propTypes={afterInjection:Tt.func,beforeInjection:Tt.func,desc:Tt.string,evalScripts:Tt.oneOf(["always","once","never"]),fallback:Tt.oneOfType([Tt.func,Tt.object,Tt.string]),httpRequestWithCredentials:Tt.bool,loading:Tt.oneOfType([Tt.func,Tt.object,Tt.string]),onError:Tt.func,renumerateIRIElements:Tt.bool,src:Tt.string.isRequired,title:Tt.string,useRequestCache:Tt.bool,wrapper:Tt.oneOf(["div","span","svg"])};function JD(t){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:be.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function ZD(t){const{renderChildren:e,parentRef:n,onlyChild:i}=t,[o,a]=te.useState({top:0,left:0}),l=te.useRef(null),[d,h]=te.useState("auto");return te.useLayoutEffect(()=>{if(n.current&&l.current){const m=n.current.getBoundingClientRect(),b=l.current.getBoundingClientRect();let w=m.top;const _=m.left+m.width,E=b.height+(window.innerHeight-m.top)>window.innerHeight;E&&(console.log("overtop"),h(window.innerHeight-m.top-50)),m.top+b.height>window.innerHeight&&!E&&(w=m.top-b.height+m.height),a({top:w,left:_})}},[n,l]),i?e({maxHeight:d}):oC.createPortal(be.jsx("div",{ref:l,style:{position:"fixed",top:o.top,left:o.left,zIndex:1200},children:e({maxHeight:d})}),n.current)}function QD(t){const{children:e,title:n,hasTooltip:i}=t,o=te.useRef(),[a,l]=te.useState(!1),[d,h]=te.useState({top:0,left:0});return be.jsxs("div",{className:"tooltip-item__wrapper",onMouseOver:()=>{if(l(!0),o.current){const m=o.current.getBoundingClientRect();h({top:m.top-20,left:m.left})}},onMouseLeave:()=>l(!1),ref:o,children:[be.jsx("div",{children:e}),a&&i&&be.jsx("div",{className:"tooltip-item__content",style:{position:"fixed",background:"#85858A",borderRadius:"4px",color:"#fff",padding:"4px 8px",top:d.top,left:d.left,zIndex:1400,fontSize:"10px",transition:"all 0.2s ease-in-out",animation:"fadeIn 0.2s ease-in-out",pointerEvents:"none"},children:n})]})}function ub(t,e){return e?t:void 0}function lb({item:t,level:e=0,...n}){var Te,Le,G,re,de;const{isActive:i,isCollapsed:o,expanded:a,toggleExpand:l}=n,d=`level-${e}`,h=o?"collapsed":"expanded",m=i(t.id)?"active":"",b=(pe,ke=d)=>`${pe} ${ke} ${h} ${m}`,w=!!((Te=t.children)!=null&&Te.length),[_,E]=te.useState(!1),I=te.useRef(),A=te.useRef(),B=(A==null?void 0:A.current)&&((Le=A==null?void 0:A.current)==null?void 0:Le.scrollWidth)>((G=A==null?void 0:A.current)==null?void 0:G.clientWidth),k=window.location.origin,F=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},N=window.location.pathname.split("/")[1],Y=F.pathname.split("/")[1],$=n.ssr||!k.includes("local")&&k!==F.origin||Y!==N,ie=w||e===0?"div":$?"a":$m.Link,g=t.path||"#",ee=e+1,Z=w&&!(o&&ee>=2&&!_),we=o||e===0?void 0:`${e}rem`,He=()=>{E(!0)},Ae=()=>{E(!1)};return be.jsxs("div",{ref:I,className:b("menu-item__wrapper"),onMouseOver:He,onMouseOut:Ae,children:[be.jsx(QD,{hasTooltip:B||o&&e===1,children:be.jsxs(ie,{to:g,href:g,className:b("menu-item__link"),style:{paddingLeft:we,transition:"all 0.3s",color:i(t.id)?((re=n.brandColors)==null?void 0:re.primary400)||fn.primary400:void 0,backgroundColor:i(t.id)&&e===1?(de=n.brandColors)==null?void 0:de.primary200:void 0},onClick:pe=>{w&&(pe.preventDefault(),o||l(t.id))},children:[e!==0&&be.jsx(eI,{cls:b,item:t}),be.jsx("span",{className:b("menu-item__label"),ref:A,children:t.name}),w&&be.jsx("div",{className:b("menu-item__icon-arrow__wrapper"),children:be.jsx(JD,{className:b(`menu-item__icon-arrow__icon ${a(t.id)?"open":"close"}`)})})]}),title:t.name}),Z&&be.jsx(ZD,{parentRef:I,onlyChild:!o||o&&ee<2,renderChildren:({maxHeight:pe})=>{var ke;return be.jsx(CD.div,{className:b(`menu-item__dropdown ${a(t.id)?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${ee}`),initial:{height:o||a(t.id)?"auto":0},animate:{height:o||a(t.id)?"auto":0},transition:{duration:.25},style:ub({maxHeight:pe,overflowY:"auto",paddingRight:3},pe!=="auto"&&!!ee),children:(ke=t.children)==null?void 0:ke.map(Q=>te.createElement(lb,{...n,key:Q.id,item:Q,level:ee}))})}})]})}function eI({item:t,cls:e}){var l,d;const[n,i]=te.useState(!t.icon),o=()=>{i(!0)},a=(l=t.icon)==null?void 0:l.endsWith(".svg");return be.jsx("div",{className:e("menu-item__icon"),children:n?be.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(d=t.name.trim().at(0))==null?void 0:d.toUpperCase()}):a?be.jsx(id,{src:t.icon,beforeInjection:h=>{h.setAttribute("style","margin: 0 auto;"),h.querySelectorAll("path").forEach(b=>{b.hasAttribute("fill")&&b.setAttribute("fill","currentColor"),b.hasAttribute("stroke")&&b.setAttribute("stroke","currentColor")})}}):be.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:o})})}function tI(){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:be.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function nI(){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:be.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function rI(t){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:be.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const iI=`.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.level-0{height:37px}.menu-item__link.menu-item__link.collapsed.level-0{padding:0;height:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:0}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
|
|
30
|
+
`,_m=localStorage.getItem("isCollapsed");function oI(t){const e=$m.useLocation(),[n,i]=te.useState([]),[o,a]=te.useState(_m===null?!0:_m==="true"),[l,d]=te.useState({}),h=od(n),[m,b]=te.useState(window.location.href);te.useEffect(()=>{b(window.location.href)},[e]);const w=cb(h,m).filter(N=>N.parentKey!==0);console.log("matchPaths:",m,e,w);const _=N=>{d({...l,[N]:!l[N]})},E=()=>{a(!o),localStorage.setItem("isCollapsed",JSON.stringify(!o))};te.useLayoutEffect(()=>{(async()=>{var Y,$,ie;try{const g=t.menuPath||"/global-menu-config/api/v1/menu-items/user",ee=t.baseUrl+g,{data:Z}=await Hm.get(ee,{withCredentials:!0});let we=Z.map(Ae=>({...Ae,parentKey:0}));we=db(we),we=fb(we,t.replacePath??(Ae=>Ae)),console.log("_filterDisableMenuItems menuItems:",we),(Y=t.disabledMenuItems)!=null&&Y.length&&(we=Sf(we,t.disabledMenuItems));const He=aI(we);d(He),i(we)}catch(g){console.log(g),If(((ie=($=g.response)==null?void 0:$.data)==null?void 0:ie.errorMessage)||"Have error when get menu items")}})()},[t.baseUrl,t.menuPath,t.replacePath]),te.useEffect(()=>{var N;(N=t.disabledMenuItems)!=null&&N.length&&i(Y=>Sf(Y,t.disabledMenuItems))},[t.disabledMenuItems]);const[I,A]=te.useState(!1),B=o?"collapsed":"expanded",k=N=>`${N} ${B}`,F=te.useRef(null);return be.jsxs("div",{className:k("side-bar"),children:[be.jsx("div",{className:k("wrap-section side-bar__wrapper-toggle-btn"),children:be.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:E,children:o?be.jsx(nI,{}):be.jsx(tI,{})})}),be.jsx(Mv,{ref:F,className:k("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:n.map(N=>{const Y=$=>w.some(ie=>ie.id===$);return be.jsx(lb,{item:N,isActive:Y,isCollapsed:o,expanded:$=>l[$],toggleExpand:_,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors},N.id)})}),be.jsxs("div",{className:k("wrap-section side-bar__wrap-btn-logout"),children:[be.jsxs("button",{className:k("side-bar__logout-btn"),onClick:()=>A(!0),children:[be.jsx(rI,{className:k("side-bar__icon-logout")}),be.jsx("span",{className:k("side-bar__logout-btn__text"),children:"Logout"})]}),be.jsx(Um,{isOpen:I,onClose:()=>A(!1),onConfirm:()=>t.logout?t.logout():DC(t.baseUrl)})]})]})}function od(t){let e=[];for(const n of t)e.push(n),n.children&&(e=e.concat(od(n.children)));return e}function sI(t,e){const n=new URL(t).searchParams,i=new URL(e).searchParams;return Array.from(i).filter(([o,a])=>a===n.get(o)).length}function cb(t,e){var h;const n=new URL(e);let i=t.filter(m=>m.path&&m.path.includes("http")).map(m=>({item:m,itemUrl:new URL(m.path),matchingParamsCount:sI(e,m.path)})).sort((m,b)=>{const w=new URL(m.itemUrl).searchParams,_=new URL(b.itemUrl).searchParams;return Array.from(w).length-Array.from(_).length}).filter(({itemUrl:m})=>n.origin===m.origin);const o=i.filter(({itemUrl:m})=>n.pathname===m.pathname),a=i.filter(({itemUrl:m})=>n.pathname.includes(m.pathname));i=o.length>0?o:a,i=i.sort((m,b)=>b.matchingParamsCount-m.matchingParamsCount);let l=i.length>0?(h=i.find(m=>m.item.parentKey))==null?void 0:h.item:null;console.log("matchingItems:",i);let d=[];for(;l;)d=[l,...d],l=t.find(m=>m.id===(l==null?void 0:l.parentKey))||null;return console.log("parents:",d),d}function fb(t,e){return t.map(n=>{var i;return(i=n.children)!=null&&i.length?(n.path="",n.children=fb(n.children,e)):n.path=e(n.path),n})}function db(t){return t.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=db(n.children)),n))}function aI(t){const e=od(t),n=cb(e,window.location.href),i={};return n.forEach(o=>i[o.id]=!0),e.forEach(o=>{o.parentKey||(i[o.id]=!0)}),i}function Sf(t,e){return t.filter(n=>(n.children&&(n.children=Sf(n.children,e)),!e.includes(n.serviceKey)))}function uI(t){return be.jsx(Ev,{styles:[hO,iI],style:{position:"sticky",zIndex:20},children:be.jsx(oI,{...t})})}const lI={"page-container":"_page-container_1pwo1_1","page-main-content":"_page-main-content_1pwo1_8","page-title":"_page-title_1pwo1_19","text-base":"_text-base_1pwo1_26","mt-4":"_mt-4_1pwo1_33"};var ju={exports:{}};/**
|
|
31
31
|
* @license
|
|
32
32
|
* Lodash <https://lodash.com/>
|
|
33
33
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
34
34
|
* Released under MIT license <https://lodash.com/license>
|
|
35
35
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
36
36
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
37
|
-
*/ju.exports;(function(t,e){(function(){var n,i="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",d="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",m=500,b="__lodash_placeholder__",w=1,_=2,E=4,I=1,A=2,B=1,k=2,F=4,N=8,Y=16,$=32,ie=64,g=128,ee=256,Z=512,we=30,He="...",De=800,Te=16,Le=1,G=2,re=3,de=1/0,pe=9007199254740991,Ae=17976931348623157e292,Q=0/0,ae=4294967295,ve=ae-1,me=ae>>>1,ye=[["ary",g],["bind",B],["bindKey",k],["curry",N],["curryRight",Y],["flip",Z],["partial",$],["partialRight",ie],["rearg",ee]],Pe="[object Arguments]",Ce="[object Array]",Ie="[object AsyncFunction]",je="[object Boolean]",$e="[object Date]",Me="[object DOMException]",Xe="[object Error]",ge="[object Function]",gt="[object GeneratorFunction]",ht="[object Map]",kn="[object Number]",Wr="[object Null]",en="[object Object]",Dn="[object Promise]",tl="[object Proxy]",wi="[object RegExp]",hn="[object Set]",jt="[object String]",Zn="[object Symbol]",xi="[object Undefined]",ke="[object WeakMap]",Bt="[object WeakSet]",Si="[object ArrayBuffer]",Hr="[object DataView]",Mo="[object Float32Array]",Qi="[object Float64Array]",eo="[object Int8Array]",mr="[object Int16Array]",pn="[object Int32Array]",Hn="[object Uint8Array]",Qn="[object Uint8ClampedArray]",No="[object Uint16Array]",$r="[object Uint32Array]",qs=/\b__p \+= '';/g,Ys=/\b(__p \+=) '' \+/g,nl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,vr=/&(?:amp|lt|gt|quot|#39);/g,Ur=/[&<>"']/g,Gs=RegExp(vr.source),Ks=RegExp(Ur.source),tn=/<%-([\s\S]+?)%>/g,Ft=/<%([\s\S]+?)%>/g,to=/<%=([\s\S]+?)%>/g,rl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xs=/^\w*$/,Js=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,er=/[\\^$.*+?()[\]{}|]/g,zr=RegExp(er.source),_i=/^\s+/,no=/\s/,il=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ol=/\{\n\/\* \[wrapped with (.+)\] \*/,sl=/,? & /,Zs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,al=/[()=,{}\[\]\/\s]/,ul=/\\(\\)?/g,Qs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ea=/\w*$/,qr=/^[-+]0x[0-9a-f]+$/i,ta=/^0b[01]+$/i,jo=/^\[object .+?Constructor\]$/,Bo=/^0o[0-7]+$/i,ro=/^(?:0|[1-9]\d*)$/,na=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,io=/($^)/,Ci=/['\n\r\u2028\u2029\\]/g,Ei="\\ud800-\\udfff",ra="\\u0300-\\u036f",ia="\\ufe20-\\ufe2f",oa="\\u20d0-\\u20ff",sa=ra+ia+oa,oo="\\u2700-\\u27bf",aa="a-z\\xdf-\\xf6\\xf8-\\xff",ll="\\xac\\xb1\\xd7\\xf7",ua="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",la="\\u2000-\\u206f",Fo=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vo="A-Z\\xc0-\\xd6\\xd8-\\xde",Mt="\\ufe0e\\ufe0f",yr=ll+ua+la+Fo,Yr="['’]",cl="["+Ei+"]",ca="["+yr+"]",Gr="["+sa+"]",Wo="\\d+",so="["+oo+"]",Ho="["+aa+"]",fa="[^"+Ei+yr+Wo+oo+aa+Vo+"]",$o="\\ud83c[\\udffb-\\udfff]",gn="(?:"+Gr+"|"+$o+")",Uo="[^"+Ei+"]",br="(?:\\ud83c[\\udde6-\\uddff]){2}",zo="[\\ud800-\\udbff][\\udc00-\\udfff]",Kr="["+Vo+"]",tr="\\u200d",nr="(?:"+Ho+"|"+fa+")",qo="(?:"+Kr+"|"+fa+")",da="(?:"+Yr+"(?:d|ll|m|re|s|t|ve))?",Xr="(?:"+Yr+"(?:D|LL|M|RE|S|T|VE))?",Yo=gn+"?",ao="["+Mt+"]?",ha="(?:"+tr+"(?:"+[Uo,br,zo].join("|")+")"+ao+Yo+")*",pa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Go=ao+Yo+ha,dl="(?:"+[so,br,zo].join("|")+")"+Go,hl="(?:"+[Uo+Gr+"?",Gr,br,zo,cl].join("|")+")",Ko=RegExp(Yr,"g"),pl=RegExp(Gr,"g"),Xo=RegExp($o+"(?="+$o+")|"+hl+Go,"g"),gl=RegExp([Kr+"?"+Ho+"+"+da+"(?="+[ca,Kr,"$"].join("|")+")",qo+"+"+Xr+"(?="+[ca,Kr+nr,"$"].join("|")+")",Kr+"?"+nr+"+"+da,Kr+"+"+Xr,fl,pa,Wo,dl].join("|"),"g"),ml=RegExp("["+tr+Ei+sa+Mt+"]"),vl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],bl=-1,dt={};dt[Mo]=dt[Qi]=dt[eo]=dt[mr]=dt[pn]=dt[Hn]=dt[Qn]=dt[No]=dt[$r]=!0,dt[Pe]=dt[Ce]=dt[Si]=dt[je]=dt[Hr]=dt[$e]=dt[Xe]=dt[ge]=dt[ht]=dt[kn]=dt[en]=dt[wi]=dt[hn]=dt[jt]=dt[ke]=!1;var st={};st[Pe]=st[Ce]=st[Si]=st[Hr]=st[je]=st[$e]=st[Mo]=st[Qi]=st[eo]=st[mr]=st[pn]=st[ht]=st[kn]=st[en]=st[wi]=st[hn]=st[jt]=st[Zn]=st[Hn]=st[Qn]=st[No]=st[$r]=!0,st[Xe]=st[ge]=st[ke]=!1;var ga={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jo={"&":"&","<":"<",">":">",'"':""","'":"'"},ma={"&":"&","<":"<",">":">",""":'"',"'":"'"},va={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zo=parseFloat,wl=parseInt,ya=typeof Cn=="object"&&Cn&&Cn.Object===Object&&Cn,xl=typeof self=="object"&&self&&self.Object===Object&&self,yt=ya||xl||Function("return this")(),uo=e&&!e.nodeType&&e,$n=uo&&!0&&t&&!t.nodeType&&t,ba=$n&&$n.exports===uo,Qo=ba&&ya.process,nn=function(){try{var D=$n&&$n.require&&$n.require("util").types;return D||Qo&&Qo.binding&&Qo.binding("util")}catch{}}(),u=nn&&nn.isArrayBuffer,f=nn&&nn.isDate,p=nn&&nn.isMap,y=nn&&nn.isRegExp,x=nn&&nn.isSet,S=nn&&nn.isTypedArray;function T(D,W,V){switch(V.length){case 0:return D.call(W);case 1:return D.call(W,V[0]);case 2:return D.call(W,V[0],V[1]);case 3:return D.call(W,V[0],V[1],V[2])}return D.apply(W,V)}function j(D,W,V,se){for(var ue=-1,Ee=D==null?0:D.length;++ue<Ee;){var Oe=D[ue];W(se,Oe,V(Oe),D)}return se}function L(D,W){for(var V=-1,se=D==null?0:D.length;++V<se&&W(D[V],V,D)!==!1;);return D}function z(D,W){for(var V=D==null?0:D.length;V--&&W(D[V],V,D)!==!1;);return D}function ne(D,W){for(var V=-1,se=D==null?0:D.length;++V<se;)if(!W(D[V],V,D))return!1;return!0}function oe(D,W){for(var V=-1,se=D==null?0:D.length,ue=0,Ee=[];++V<se;){var Oe=D[V];W(Oe,V,D)&&(Ee[ue++]=Oe)}return Ee}function X(D,W){var V=D==null?0:D.length;return!!V&&ct(D,W,0)>-1}function he(D,W,V){for(var se=-1,ue=D==null?0:D.length;++se<ue;)if(V(W,D[se]))return!0;return!1}function _e(D,W){for(var V=-1,se=D==null?0:D.length,ue=Array(se);++V<se;)ue[V]=W(D[V],V,D);return ue}function qe(D,W){for(var V=-1,se=W.length,ue=D.length;++V<se;)D[ue+V]=W[V];return D}function ze(D,W,V,se){var ue=-1,Ee=D==null?0:D.length;for(se&&Ee&&(V=D[++ue]);++ue<Ee;)V=W(V,D[ue],ue,D);return V}function Pt(D,W,V,se){var ue=D==null?0:D.length;for(se&&ue&&(V=D[--ue]);ue--;)V=W(V,D[ue],ue,D);return V}function bt(D,W){for(var V=-1,se=D==null?0:D.length;++V<se;)if(W(D[V],V,D))return!0;return!1}var In=wr("length");function Rn(D){return D.split("")}function et(D){return D.match(Zs)||[]}function rr(D,W,V){var se;return V(D,function(ue,Ee,Oe){if(W(ue,Ee,Oe))return se=Ee,!1}),se}function tt(D,W,V,se){for(var ue=D.length,Ee=V+(se?1:-1);se?Ee--:++Ee<ue;)if(W(D[Ee],Ee,D))return Ee;return-1}function ct(D,W,V){return W===W?Cl(D,W,V):tt(D,lo,V)}function Ti(D,W,V,se){for(var ue=V-1,Ee=D.length;++ue<Ee;)if(se(D[ue],W))return ue;return-1}function lo(D){return D!==D}function mn(D,W){var V=D==null?0:D.length;return V?Vt(D,W)/V:Q}function wr(D){return function(W){return W==null?n:W[D]}}function rn(D){return function(W){return D==null?n:D[W]}}function Un(D,W,V,se,ue){return ue(D,function(Ee,Oe,Se){V=se?(se=!1,Ee):W(V,Ee,Oe,Se)}),V}function ir(D,W){var V=D.length;for(D.sort(W);V--;)D[V]=D[V].value;return D}function Vt(D,W){for(var V,se=-1,ue=D.length;++se<ue;){var Ee=W(D[se]);Ee!==n&&(V=V===n?Ee:V+Ee)}return V}function Oi(D,W){for(var V=-1,se=Array(D);++V<D;)se[V]=W(V);return se}function zn(D,W){return _e(W,function(V){return[V,D[V]]})}function Ln(D){return D&&D.slice(0,xa(D)+1).replace(_i,"")}function qt(D){return function(W){return D(W)}}function es(D,W){return _e(W,function(V){return D[V]})}function Pi(D,W){return D.has(W)}function ot(D,W){for(var V=-1,se=D.length;++V<se&&ct(W,D[V],0)>-1;);return V}function Ai(D,W){for(var V=D.length;V--&&ct(W,D[V],0)>-1;);return V}function vn(D,W){for(var V=D.length,se=0;V--;)D[V]===W&&++se;return se}var Jr=rn(ga),Sl=rn(Jo);function _l(D){return"\\"+va[D]}function wa(D,W){return D==null?n:D[W]}function on(D){return ml.test(D)}function ts(D){return vl.test(D)}function or(D){for(var W,V=[];!(W=D.next()).done;)V.push(W.value);return V}function co(D){var W=-1,V=Array(D.size);return D.forEach(function(se,ue){V[++W]=[ue,se]}),V}function Zr(D,W){return function(V){return D(W(V))}}function yn(D,W){for(var V=-1,se=D.length,ue=0,Ee=[];++V<se;){var Oe=D[V];(Oe===W||Oe===b)&&(D[V]=b,Ee[ue++]=V)}return Ee}function xr(D){var W=-1,V=Array(D.size);return D.forEach(function(se){V[++W]=se}),V}function ns(D){var W=-1,V=Array(D.size);return D.forEach(function(se){V[++W]=[se,se]}),V}function Cl(D,W,V){for(var se=V-1,ue=D.length;++se<ue;)if(D[se]===W)return se;return-1}function fo(D,W,V){for(var se=V+1;se--;)if(D[se]===W)return se;return se}function sr(D){return on(D)?Sa(D):In(D)}function Yt(D){return on(D)?R(D):Rn(D)}function xa(D){for(var W=D.length;W--&&no.test(D.charAt(W)););return W}var rs=rn(ma);function Sa(D){for(var W=Xo.lastIndex=0;Xo.test(D);)++W;return W}function R(D){return D.match(Xo)||[]}function U(D){return D.match(gl)||[]}var K=function D(W){W=W==null?yt:J.defaults(yt.Object(),W,J.pick(yt,yl));var V=W.Array,se=W.Date,ue=W.Error,Ee=W.Function,Oe=W.Math,Se=W.Object,Ge=W.RegExp,Ne=W.String,Ze=W.TypeError,At=V.prototype,It=Ee.prototype,kt=Se.prototype,Gt=W["__core-js_shared__"],qn=It.toString,Ue=kt.hasOwnProperty,Qb=0,bd=function(){var r=/[^.]+$/.exec(Gt&&Gt.keys&&Gt.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),_a=kt.toString,e0=qn.call(Se),t0=yt._,n0=Ge("^"+qn.call(Ue).replace(er,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ca=ba?W.Buffer:n,Qr=W.Symbol,Ea=W.Uint8Array,wd=Ca?Ca.allocUnsafe:n,Ta=Zr(Se.getPrototypeOf,Se),xd=Se.create,Sd=kt.propertyIsEnumerable,Oa=At.splice,_d=Qr?Qr.isConcatSpreadable:n,is=Qr?Qr.iterator:n,ki=Qr?Qr.toStringTag:n,Pa=function(){try{var r=Mi(Se,"defineProperty");return r({},"",{}),r}catch{}}(),r0=W.clearTimeout!==yt.clearTimeout&&W.clearTimeout,i0=se&&se.now!==yt.Date.now&&se.now,o0=W.setTimeout!==yt.setTimeout&&W.setTimeout,Aa=Oe.ceil,ka=Oe.floor,El=Se.getOwnPropertySymbols,s0=Ca?Ca.isBuffer:n,Cd=W.isFinite,a0=At.join,u0=Zr(Se.keys,Se),Dt=Oe.max,Wt=Oe.min,l0=se.now,c0=W.parseInt,Ed=Oe.random,f0=At.reverse,Tl=Mi(W,"DataView"),os=Mi(W,"Map"),Ol=Mi(W,"Promise"),ho=Mi(W,"Set"),ss=Mi(W,"WeakMap"),as=Mi(Se,"create"),Da=ss&&new ss,po={},d0=Ni(Tl),h0=Ni(os),p0=Ni(Ol),g0=Ni(ho),m0=Ni(ss),Ia=Qr?Qr.prototype:n,us=Ia?Ia.valueOf:n,Td=Ia?Ia.toString:n;function O(r){if(St(r)&&!Ye(r)&&!(r instanceof rt)){if(r instanceof Mn)return r;if(Ue.call(r,"__wrapped__"))return Oh(r)}return new Mn(r)}var go=function(){function r(){}return function(s){if(!wt(s))return{};if(xd)return xd(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Ra(){}function Mn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}O.templateSettings={escape:tn,evaluate:Ft,interpolate:to,variable:"",imports:{_:O}},O.prototype=Ra.prototype,O.prototype.constructor=O,Mn.prototype=go(Ra.prototype),Mn.prototype.constructor=Mn;function rt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ae,this.__views__=[]}function v0(){var r=new rt(this.__wrapped__);return r.__actions__=sn(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=sn(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=sn(this.__views__),r}function y0(){if(this.__filtered__){var r=new rt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function b0(){var r=this.__wrapped__.value(),s=this.__dir__,c=Ye(r),v=s<0,C=c?r.length:0,P=D1(0,C,this.__views__),M=P.start,H=P.end,q=H-M,le=v?H:M-1,ce=this.__iteratees__,fe=ce.length,xe=0,Re=Wt(q,this.__takeCount__);if(!c||!v&&C==q&&Re==q)return Xd(r,this.__actions__);var Fe=[];e:for(;q--&&xe<Re;){le+=s;for(var Je=-1,Ve=r[le];++Je<fe;){var nt=ce[Je],it=nt.iteratee,xn=nt.type,Jt=it(Ve);if(xn==G)Ve=Jt;else if(!Jt){if(xn==Le)continue e;break e}}Fe[xe++]=Ve}return Fe}rt.prototype=go(Ra.prototype),rt.prototype.constructor=rt;function Di(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var v=r[s];this.set(v[0],v[1])}}function w0(){this.__data__=as?as(null):{},this.size=0}function x0(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function S0(r){var s=this.__data__;if(as){var c=s[r];return c===h?n:c}return Ue.call(s,r)?s[r]:n}function _0(r){var s=this.__data__;return as?s[r]!==n:Ue.call(s,r)}function C0(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=as&&s===n?h:s,this}Di.prototype.clear=w0,Di.prototype.delete=x0,Di.prototype.get=S0,Di.prototype.has=_0,Di.prototype.set=C0;function Sr(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var v=r[s];this.set(v[0],v[1])}}function E0(){this.__data__=[],this.size=0}function T0(r){var s=this.__data__,c=La(s,r);if(c<0)return!1;var v=s.length-1;return c==v?s.pop():Oa.call(s,c,1),--this.size,!0}function O0(r){var s=this.__data__,c=La(s,r);return c<0?n:s[c][1]}function P0(r){return La(this.__data__,r)>-1}function A0(r,s){var c=this.__data__,v=La(c,r);return v<0?(++this.size,c.push([r,s])):c[v][1]=s,this}Sr.prototype.clear=E0,Sr.prototype.delete=T0,Sr.prototype.get=O0,Sr.prototype.has=P0,Sr.prototype.set=A0;function _r(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var v=r[s];this.set(v[0],v[1])}}function k0(){this.size=0,this.__data__={hash:new Di,map:new(os||Sr),string:new Di}}function D0(r){var s=qa(this,r).delete(r);return this.size-=s?1:0,s}function I0(r){return qa(this,r).get(r)}function R0(r){return qa(this,r).has(r)}function L0(r,s){var c=qa(this,r),v=c.size;return c.set(r,s),this.size+=c.size==v?0:1,this}_r.prototype.clear=k0,_r.prototype.delete=D0,_r.prototype.get=I0,_r.prototype.has=R0,_r.prototype.set=L0;function Ii(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new _r;++s<c;)this.add(r[s])}function M0(r){return this.__data__.set(r,h),this}function N0(r){return this.__data__.has(r)}Ii.prototype.add=Ii.prototype.push=M0,Ii.prototype.has=N0;function Yn(r){var s=this.__data__=new Sr(r);this.size=s.size}function j0(){this.__data__=new Sr,this.size=0}function B0(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function F0(r){return this.__data__.get(r)}function V0(r){return this.__data__.has(r)}function W0(r,s){var c=this.__data__;if(c instanceof Sr){var v=c.__data__;if(!os||v.length<o-1)return v.push([r,s]),this.size=++c.size,this;c=this.__data__=new _r(v)}return c.set(r,s),this.size=c.size,this}Yn.prototype.clear=j0,Yn.prototype.delete=B0,Yn.prototype.get=F0,Yn.prototype.has=V0,Yn.prototype.set=W0;function Od(r,s){var c=Ye(r),v=!c&&ji(r),C=!c&&!v&&ii(r),P=!c&&!v&&!C&&bo(r),M=c||v||C||P,H=M?Oi(r.length,Ne):[],q=H.length;for(var le in r)(s||Ue.call(r,le))&&!(M&&(le=="length"||C&&(le=="offset"||le=="parent")||P&&(le=="buffer"||le=="byteLength"||le=="byteOffset")||Or(le,q)))&&H.push(le);return H}function Pd(r){var s=r.length;return s?r[Bl(0,s-1)]:n}function H0(r,s){return Ya(sn(r),Ri(s,0,r.length))}function $0(r){return Ya(sn(r))}function Pl(r,s,c){(c!==n&&!Gn(r[s],c)||c===n&&!(s in r))&&Cr(r,s,c)}function ls(r,s,c){var v=r[s];(!(Ue.call(r,s)&&Gn(v,c))||c===n&&!(s in r))&&Cr(r,s,c)}function La(r,s){for(var c=r.length;c--;)if(Gn(r[c][0],s))return c;return-1}function U0(r,s,c,v){return ei(r,function(C,P,M){s(v,C,c(C),M)}),v}function Ad(r,s){return r&&ur(s,Rt(s),r)}function z0(r,s){return r&&ur(s,un(s),r)}function Cr(r,s,c){s=="__proto__"&&Pa?Pa(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function Al(r,s){for(var c=-1,v=s.length,C=V(v),P=r==null;++c<v;)C[c]=P?n:lc(r,s[c]);return C}function Ri(r,s,c){return r===r&&(c!==n&&(r=r<=c?r:c),s!==n&&(r=r>=s?r:s)),r}function Nn(r,s,c,v,C,P){var M,H=s&w,q=s&_,le=s&E;if(c&&(M=C?c(r,v,C,P):c(r)),M!==n)return M;if(!wt(r))return r;var ce=Ye(r);if(ce){if(M=R1(r),!H)return sn(r,M)}else{var fe=Ht(r),xe=fe==ge||fe==gt;if(ii(r))return Qd(r,H);if(fe==en||fe==Pe||xe&&!C){if(M=q||xe?{}:yh(r),!H)return q?S1(r,z0(M,r)):x1(r,Ad(M,r))}else{if(!st[fe])return C?r:{};M=L1(r,fe,H)}}P||(P=new Yn);var Re=P.get(r);if(Re)return Re;P.set(r,M),Yh(r)?r.forEach(function(Ve){M.add(Nn(Ve,s,c,Ve,r,P))}):zh(r)&&r.forEach(function(Ve,nt){M.set(nt,Nn(Ve,s,c,nt,r,P))});var Fe=le?q?Kl:Gl:q?un:Rt,Je=ce?n:Fe(r);return L(Je||r,function(Ve,nt){Je&&(nt=Ve,Ve=r[nt]),ls(M,nt,Nn(Ve,s,c,nt,r,P))}),M}function q0(r){var s=Rt(r);return function(c){return kd(c,r,s)}}function kd(r,s,c){var v=c.length;if(r==null)return!v;for(r=Se(r);v--;){var C=c[v],P=s[C],M=r[C];if(M===n&&!(C in r)||!P(M))return!1}return!0}function Dd(r,s,c){if(typeof r!="function")throw new Ze(l);return ms(function(){r.apply(n,c)},s)}function cs(r,s,c,v){var C=-1,P=X,M=!0,H=r.length,q=[],le=s.length;if(!H)return q;c&&(s=_e(s,qt(c))),v?(P=he,M=!1):s.length>=o&&(P=Pi,M=!1,s=new Ii(s));e:for(;++C<H;){var ce=r[C],fe=c==null?ce:c(ce);if(ce=v||ce!==0?ce:0,M&&fe===fe){for(var xe=le;xe--;)if(s[xe]===fe)continue e;q.push(ce)}else P(s,fe,v)||q.push(ce)}return q}var ei=ih(ar),Id=ih(Dl,!0);function Y0(r,s){var c=!0;return ei(r,function(v,C,P){return c=!!s(v,C,P),c}),c}function Ma(r,s,c){for(var v=-1,C=r.length;++v<C;){var P=r[v],M=s(P);if(M!=null&&(H===n?M===M&&!wn(M):c(M,H)))var H=M,q=P}return q}function G0(r,s,c,v){var C=r.length;for(c=Ke(c),c<0&&(c=-c>C?0:C+c),v=v===n||v>C?C:Ke(v),v<0&&(v+=C),v=c>v?0:Kh(v);c<v;)r[c++]=s;return r}function Rd(r,s){var c=[];return ei(r,function(v,C,P){s(v,C,P)&&c.push(v)}),c}function Nt(r,s,c,v,C){var P=-1,M=r.length;for(c||(c=N1),C||(C=[]);++P<M;){var H=r[P];s>0&&c(H)?s>1?Nt(H,s-1,c,v,C):qe(C,H):v||(C[C.length]=H)}return C}var kl=oh(),Ld=oh(!0);function ar(r,s){return r&&kl(r,s,Rt)}function Dl(r,s){return r&&Ld(r,s,Rt)}function Na(r,s){return oe(s,function(c){return Pr(r[c])})}function Li(r,s){s=ni(s,r);for(var c=0,v=s.length;r!=null&&c<v;)r=r[lr(s[c++])];return c&&c==v?r:n}function Md(r,s,c){var v=s(r);return Ye(r)?v:qe(v,c(r))}function Kt(r){return r==null?r===n?xi:Wr:ki&&ki in Se(r)?k1(r):$1(r)}function Il(r,s){return r>s}function K0(r,s){return r!=null&&Ue.call(r,s)}function X0(r,s){return r!=null&&s in Se(r)}function J0(r,s,c){return r>=Wt(s,c)&&r<Dt(s,c)}function Rl(r,s,c){for(var v=c?he:X,C=r[0].length,P=r.length,M=P,H=V(P),q=1/0,le=[];M--;){var ce=r[M];M&&s&&(ce=_e(ce,qt(s))),q=Wt(ce.length,q),H[M]=!c&&(s||C>=120&&ce.length>=120)?new Ii(M&&ce):n}ce=r[0];var fe=-1,xe=H[0];e:for(;++fe<C&&le.length<q;){var Re=ce[fe],Fe=s?s(Re):Re;if(Re=c||Re!==0?Re:0,!(xe?Pi(xe,Fe):v(le,Fe,c))){for(M=P;--M;){var Je=H[M];if(!(Je?Pi(Je,Fe):v(r[M],Fe,c)))continue e}xe&&xe.push(Fe),le.push(Re)}}return le}function Z0(r,s,c,v){return ar(r,function(C,P,M){s(v,c(C),P,M)}),v}function fs(r,s,c){s=ni(s,r),r=Sh(r,s);var v=r==null?r:r[lr(Bn(s))];return v==null?n:T(v,r,c)}function Nd(r){return St(r)&&Kt(r)==Pe}function Q0(r){return St(r)&&Kt(r)==Si}function e1(r){return St(r)&&Kt(r)==$e}function ds(r,s,c,v,C){return r===s?!0:r==null||s==null||!St(r)&&!St(s)?r!==r&&s!==s:t1(r,s,c,v,ds,C)}function t1(r,s,c,v,C,P){var M=Ye(r),H=Ye(s),q=M?Ce:Ht(r),le=H?Ce:Ht(s);q=q==Pe?en:q,le=le==Pe?en:le;var ce=q==en,fe=le==en,xe=q==le;if(xe&&ii(r)){if(!ii(s))return!1;M=!0,ce=!1}if(xe&&!ce)return P||(P=new Yn),M||bo(r)?gh(r,s,c,v,C,P):P1(r,s,q,c,v,C,P);if(!(c&I)){var Re=ce&&Ue.call(r,"__wrapped__"),Fe=fe&&Ue.call(s,"__wrapped__");if(Re||Fe){var Je=Re?r.value():r,Ve=Fe?s.value():s;return P||(P=new Yn),C(Je,Ve,c,v,P)}}return xe?(P||(P=new Yn),A1(r,s,c,v,C,P)):!1}function n1(r){return St(r)&&Ht(r)==ht}function Ll(r,s,c,v){var C=c.length,P=C,M=!v;if(r==null)return!P;for(r=Se(r);C--;){var H=c[C];if(M&&H[2]?H[1]!==r[H[0]]:!(H[0]in r))return!1}for(;++C<P;){H=c[C];var q=H[0],le=r[q],ce=H[1];if(M&&H[2]){if(le===n&&!(q in r))return!1}else{var fe=new Yn;if(v)var xe=v(le,ce,q,r,s,fe);if(!(xe===n?ds(ce,le,I|A,v,fe):xe))return!1}}return!0}function jd(r){if(!wt(r)||B1(r))return!1;var s=Pr(r)?n0:jo;return s.test(Ni(r))}function r1(r){return St(r)&&Kt(r)==wi}function i1(r){return St(r)&&Ht(r)==hn}function o1(r){return St(r)&&Qa(r.length)&&!!dt[Kt(r)]}function Bd(r){return typeof r=="function"?r:r==null?ln:typeof r=="object"?Ye(r)?Wd(r[0],r[1]):Vd(r):sp(r)}function Ml(r){if(!gs(r))return u0(r);var s=[];for(var c in Se(r))Ue.call(r,c)&&c!="constructor"&&s.push(c);return s}function s1(r){if(!wt(r))return H1(r);var s=gs(r),c=[];for(var v in r)v=="constructor"&&(s||!Ue.call(r,v))||c.push(v);return c}function Nl(r,s){return r<s}function Fd(r,s){var c=-1,v=an(r)?V(r.length):[];return ei(r,function(C,P,M){v[++c]=s(C,P,M)}),v}function Vd(r){var s=Jl(r);return s.length==1&&s[0][2]?wh(s[0][0],s[0][1]):function(c){return c===r||Ll(c,r,s)}}function Wd(r,s){return Ql(r)&&bh(s)?wh(lr(r),s):function(c){var v=lc(c,r);return v===n&&v===s?cc(c,r):ds(s,v,I|A)}}function ja(r,s,c,v,C){r!==s&&kl(s,function(P,M){if(C||(C=new Yn),wt(P))a1(r,s,M,c,ja,v,C);else{var H=v?v(tc(r,M),P,M+"",r,s,C):n;H===n&&(H=P),Pl(r,M,H)}},un)}function a1(r,s,c,v,C,P,M){var H=tc(r,c),q=tc(s,c),le=M.get(q);if(le){Pl(r,c,le);return}var ce=P?P(H,q,c+"",r,s,M):n,fe=ce===n;if(fe){var xe=Ye(q),Re=!xe&&ii(q),Fe=!xe&&!Re&&bo(q);ce=q,xe||Re||Fe?Ye(H)?ce=H:Ct(H)?ce=sn(H):Re?(fe=!1,ce=Qd(q,!0)):Fe?(fe=!1,ce=eh(q,!0)):ce=[]:vs(q)||ji(q)?(ce=H,ji(H)?ce=Xh(H):(!wt(H)||Pr(H))&&(ce=yh(q))):fe=!1}fe&&(M.set(q,ce),C(ce,q,v,P,M),M.delete(q)),Pl(r,c,ce)}function Hd(r,s){var c=r.length;if(c)return s+=s<0?c:0,Or(s,c)?r[s]:n}function $d(r,s,c){s.length?s=_e(s,function(P){return Ye(P)?function(M){return Li(M,P.length===1?P[0]:P)}:P}):s=[ln];var v=-1;s=_e(s,qt(Be()));var C=Fd(r,function(P,M,H){var q=_e(s,function(le){return le(P)});return{criteria:q,index:++v,value:P}});return ir(C,function(P,M){return w1(P,M,c)})}function u1(r,s){return Ud(r,s,function(c,v){return cc(r,v)})}function Ud(r,s,c){for(var v=-1,C=s.length,P={};++v<C;){var M=s[v],H=Li(r,M);c(H,M)&&hs(P,ni(M,r),H)}return P}function l1(r){return function(s){return Li(s,r)}}function jl(r,s,c,v){var C=v?Ti:ct,P=-1,M=s.length,H=r;for(r===s&&(s=sn(s)),c&&(H=_e(r,qt(c)));++P<M;)for(var q=0,le=s[P],ce=c?c(le):le;(q=C(H,ce,q,v))>-1;)H!==r&&Oa.call(H,q,1),Oa.call(r,q,1);return r}function zd(r,s){for(var c=r?s.length:0,v=c-1;c--;){var C=s[c];if(c==v||C!==P){var P=C;Or(C)?Oa.call(r,C,1):Wl(r,C)}}return r}function Bl(r,s){return r+ka(Ed()*(s-r+1))}function c1(r,s,c,v){for(var C=-1,P=Dt(Aa((s-r)/(c||1)),0),M=V(P);P--;)M[v?P:++C]=r,r+=c;return M}function Fl(r,s){var c="";if(!r||s<1||s>pe)return c;do s%2&&(c+=r),s=ka(s/2),s&&(r+=r);while(s);return c}function Qe(r,s){return nc(xh(r,s,ln),r+"")}function f1(r){return Pd(wo(r))}function d1(r,s){var c=wo(r);return Ya(c,Ri(s,0,c.length))}function hs(r,s,c,v){if(!wt(r))return r;s=ni(s,r);for(var C=-1,P=s.length,M=P-1,H=r;H!=null&&++C<P;){var q=lr(s[C]),le=c;if(q==="__proto__"||q==="constructor"||q==="prototype")return r;if(C!=M){var ce=H[q];le=v?v(ce,q,H):n,le===n&&(le=wt(ce)?ce:Or(s[C+1])?[]:{})}ls(H,q,le),H=H[q]}return r}var qd=Da?function(r,s){return Da.set(r,s),r}:ln,h1=Pa?function(r,s){return Pa(r,"toString",{configurable:!0,enumerable:!1,value:dc(s),writable:!0})}:ln;function p1(r){return Ya(wo(r))}function jn(r,s,c){var v=-1,C=r.length;s<0&&(s=-s>C?0:C+s),c=c>C?C:c,c<0&&(c+=C),C=s>c?0:c-s>>>0,s>>>=0;for(var P=V(C);++v<C;)P[v]=r[v+s];return P}function g1(r,s){var c;return ei(r,function(v,C,P){return c=s(v,C,P),!c}),!!c}function Ba(r,s,c){var v=0,C=r==null?v:r.length;if(typeof s=="number"&&s===s&&C<=me){for(;v<C;){var P=v+C>>>1,M=r[P];M!==null&&!wn(M)&&(c?M<=s:M<s)?v=P+1:C=P}return C}return Vl(r,s,ln,c)}function Vl(r,s,c,v){var C=0,P=r==null?0:r.length;if(P===0)return 0;s=c(s);for(var M=s!==s,H=s===null,q=wn(s),le=s===n;C<P;){var ce=ka((C+P)/2),fe=c(r[ce]),xe=fe!==n,Re=fe===null,Fe=fe===fe,Je=wn(fe);if(M)var Ve=v||Fe;else le?Ve=Fe&&(v||xe):H?Ve=Fe&&xe&&(v||!Re):q?Ve=Fe&&xe&&!Re&&(v||!Je):Re||Je?Ve=!1:Ve=v?fe<=s:fe<s;Ve?C=ce+1:P=ce}return Wt(P,ve)}function Yd(r,s){for(var c=-1,v=r.length,C=0,P=[];++c<v;){var M=r[c],H=s?s(M):M;if(!c||!Gn(H,q)){var q=H;P[C++]=M===0?0:M}}return P}function Gd(r){return typeof r=="number"?r:wn(r)?Q:+r}function bn(r){if(typeof r=="string")return r;if(Ye(r))return _e(r,bn)+"";if(wn(r))return Td?Td.call(r):"";var s=r+"";return s=="0"&&1/r==-de?"-0":s}function ti(r,s,c){var v=-1,C=X,P=r.length,M=!0,H=[],q=H;if(c)M=!1,C=he;else if(P>=o){var le=s?null:T1(r);if(le)return xr(le);M=!1,C=Pi,q=new Ii}else q=s?[]:H;e:for(;++v<P;){var ce=r[v],fe=s?s(ce):ce;if(ce=c||ce!==0?ce:0,M&&fe===fe){for(var xe=q.length;xe--;)if(q[xe]===fe)continue e;s&&q.push(fe),H.push(ce)}else C(q,fe,c)||(q!==H&&q.push(fe),H.push(ce))}return H}function Wl(r,s){return s=ni(s,r),r=Sh(r,s),r==null||delete r[lr(Bn(s))]}function Kd(r,s,c,v){return hs(r,s,c(Li(r,s)),v)}function Fa(r,s,c,v){for(var C=r.length,P=v?C:-1;(v?P--:++P<C)&&s(r[P],P,r););return c?jn(r,v?0:P,v?P+1:C):jn(r,v?P+1:0,v?C:P)}function Xd(r,s){var c=r;return c instanceof rt&&(c=c.value()),ze(s,function(v,C){return C.func.apply(C.thisArg,qe([v],C.args))},c)}function Hl(r,s,c){var v=r.length;if(v<2)return v?ti(r[0]):[];for(var C=-1,P=V(v);++C<v;)for(var M=r[C],H=-1;++H<v;)H!=C&&(P[C]=cs(P[C]||M,r[H],s,c));return ti(Nt(P,1),s,c)}function Jd(r,s,c){for(var v=-1,C=r.length,P=s.length,M={};++v<C;){var H=v<P?s[v]:n;c(M,r[v],H)}return M}function $l(r){return Ct(r)?r:[]}function Ul(r){return typeof r=="function"?r:ln}function ni(r,s){return Ye(r)?r:Ql(r,s)?[r]:Th(at(r))}var m1=Qe;function ri(r,s,c){var v=r.length;return c=c===n?v:c,!s&&c>=v?r:jn(r,s,c)}var Zd=r0||function(r){return yt.clearTimeout(r)};function Qd(r,s){if(s)return r.slice();var c=r.length,v=wd?wd(c):new r.constructor(c);return r.copy(v),v}function zl(r){var s=new r.constructor(r.byteLength);return new Ea(s).set(new Ea(r)),s}function v1(r,s){var c=s?zl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function y1(r){var s=new r.constructor(r.source,ea.exec(r));return s.lastIndex=r.lastIndex,s}function b1(r){return us?Se(us.call(r)):{}}function eh(r,s){var c=s?zl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function th(r,s){if(r!==s){var c=r!==n,v=r===null,C=r===r,P=wn(r),M=s!==n,H=s===null,q=s===s,le=wn(s);if(!H&&!le&&!P&&r>s||P&&M&&q&&!H&&!le||v&&M&&q||!c&&q||!C)return 1;if(!v&&!P&&!le&&r<s||le&&c&&C&&!v&&!P||H&&c&&C||!M&&C||!q)return-1}return 0}function w1(r,s,c){for(var v=-1,C=r.criteria,P=s.criteria,M=C.length,H=c.length;++v<M;){var q=th(C[v],P[v]);if(q){if(v>=H)return q;var le=c[v];return q*(le=="desc"?-1:1)}}return r.index-s.index}function nh(r,s,c,v){for(var C=-1,P=r.length,M=c.length,H=-1,q=s.length,le=Dt(P-M,0),ce=V(q+le),fe=!v;++H<q;)ce[H]=s[H];for(;++C<M;)(fe||C<P)&&(ce[c[C]]=r[C]);for(;le--;)ce[H++]=r[C++];return ce}function rh(r,s,c,v){for(var C=-1,P=r.length,M=-1,H=c.length,q=-1,le=s.length,ce=Dt(P-H,0),fe=V(ce+le),xe=!v;++C<ce;)fe[C]=r[C];for(var Re=C;++q<le;)fe[Re+q]=s[q];for(;++M<H;)(xe||C<P)&&(fe[Re+c[M]]=r[C++]);return fe}function sn(r,s){var c=-1,v=r.length;for(s||(s=V(v));++c<v;)s[c]=r[c];return s}function ur(r,s,c,v){var C=!c;c||(c={});for(var P=-1,M=s.length;++P<M;){var H=s[P],q=v?v(c[H],r[H],H,c,r):n;q===n&&(q=r[H]),C?Cr(c,H,q):ls(c,H,q)}return c}function x1(r,s){return ur(r,Zl(r),s)}function S1(r,s){return ur(r,mh(r),s)}function Va(r,s){return function(c,v){var C=Ye(c)?j:U0,P=s?s():{};return C(c,r,Be(v,2),P)}}function mo(r){return Qe(function(s,c){var v=-1,C=c.length,P=C>1?c[C-1]:n,M=C>2?c[2]:n;for(P=r.length>3&&typeof P=="function"?(C--,P):n,M&&Xt(c[0],c[1],M)&&(P=C<3?n:P,C=1),s=Se(s);++v<C;){var H=c[v];H&&r(s,H,v,P)}return s})}function ih(r,s){return function(c,v){if(c==null)return c;if(!an(c))return r(c,v);for(var C=c.length,P=s?C:-1,M=Se(c);(s?P--:++P<C)&&v(M[P],P,M)!==!1;);return c}}function oh(r){return function(s,c,v){for(var C=-1,P=Se(s),M=v(s),H=M.length;H--;){var q=M[r?H:++C];if(c(P[q],q,P)===!1)break}return s}}function _1(r,s,c){var v=s&B,C=ps(r);function P(){var M=this&&this!==yt&&this instanceof P?C:r;return M.apply(v?c:this,arguments)}return P}function sh(r){return function(s){s=at(s);var c=on(s)?Yt(s):n,v=c?c[0]:s.charAt(0),C=c?ri(c,1).join(""):s.slice(1);return v[r]()+C}}function vo(r){return function(s){return ze(ip(rp(s).replace(Ko,"")),r,"")}}function ps(r){return function(){var s=arguments;switch(s.length){case 0:return new r;case 1:return new r(s[0]);case 2:return new r(s[0],s[1]);case 3:return new r(s[0],s[1],s[2]);case 4:return new r(s[0],s[1],s[2],s[3]);case 5:return new r(s[0],s[1],s[2],s[3],s[4]);case 6:return new r(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new r(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var c=go(r.prototype),v=r.apply(c,s);return wt(v)?v:c}}function C1(r,s,c){var v=ps(r);function C(){for(var P=arguments.length,M=V(P),H=P,q=yo(C);H--;)M[H]=arguments[H];var le=P<3&&M[0]!==q&&M[P-1]!==q?[]:yn(M,q);if(P-=le.length,P<c)return fh(r,s,Wa,C.placeholder,n,M,le,n,n,c-P);var ce=this&&this!==yt&&this instanceof C?v:r;return T(ce,this,M)}return C}function ah(r){return function(s,c,v){var C=Se(s);if(!an(s)){var P=Be(c,3);s=Rt(s),c=function(H){return P(C[H],H,C)}}var M=r(s,c,v);return M>-1?C[P?s[M]:M]:n}}function uh(r){return Tr(function(s){var c=s.length,v=c,C=Mn.prototype.thru;for(r&&s.reverse();v--;){var P=s[v];if(typeof P!="function")throw new Ze(l);if(C&&!M&&za(P)=="wrapper")var M=new Mn([],!0)}for(v=M?v:c;++v<c;){P=s[v];var H=za(P),q=H=="wrapper"?Xl(P):n;q&&ec(q[0])&&q[1]==(g|N|$|ee)&&!q[4].length&&q[9]==1?M=M[za(q[0])].apply(M,q[3]):M=P.length==1&&ec(P)?M[H]():M.thru(P)}return function(){var le=arguments,ce=le[0];if(M&&le.length==1&&Ye(ce))return M.plant(ce).value();for(var fe=0,xe=c?s[fe].apply(this,le):ce;++fe<c;)xe=s[fe].call(this,xe);return xe}})}function Wa(r,s,c,v,C,P,M,H,q,le){var ce=s&g,fe=s&B,xe=s&k,Re=s&(N|Y),Fe=s&Z,Je=xe?n:ps(r);function Ve(){for(var nt=arguments.length,it=V(nt),xn=nt;xn--;)it[xn]=arguments[xn];if(Re)var Jt=yo(Ve),Sn=vn(it,Jt);if(v&&(it=nh(it,v,C,Re)),P&&(it=rh(it,P,M,Re)),nt-=Sn,Re&&nt<le){var Et=yn(it,Jt);return fh(r,s,Wa,Ve.placeholder,c,it,Et,H,q,le-nt)}var Kn=fe?c:this,kr=xe?Kn[r]:r;return nt=it.length,H?it=U1(it,H):Fe&&nt>1&&it.reverse(),ce&&q<nt&&(it.length=q),this&&this!==yt&&this instanceof Ve&&(kr=Je||ps(kr)),kr.apply(Kn,it)}return Ve}function lh(r,s){return function(c,v){return Z0(c,r,s(v),{})}}function Ha(r,s){return function(c,v){var C;if(c===n&&v===n)return s;if(c!==n&&(C=c),v!==n){if(C===n)return v;typeof c=="string"||typeof v=="string"?(c=bn(c),v=bn(v)):(c=Gd(c),v=Gd(v)),C=r(c,v)}return C}}function ql(r){return Tr(function(s){return s=_e(s,qt(Be())),Qe(function(c){var v=this;return r(s,function(C){return T(C,v,c)})})})}function $a(r,s){s=s===n?" ":bn(s);var c=s.length;if(c<2)return c?Fl(s,r):s;var v=Fl(s,Aa(r/sr(s)));return on(s)?ri(Yt(v),0,r).join(""):v.slice(0,r)}function E1(r,s,c,v){var C=s&B,P=ps(r);function M(){for(var H=-1,q=arguments.length,le=-1,ce=v.length,fe=V(ce+q),xe=this&&this!==yt&&this instanceof M?P:r;++le<ce;)fe[le]=v[le];for(;q--;)fe[le++]=arguments[++H];return T(xe,C?c:this,fe)}return M}function ch(r){return function(s,c,v){return v&&typeof v!="number"&&Xt(s,c,v)&&(c=v=n),s=Ar(s),c===n?(c=s,s=0):c=Ar(c),v=v===n?s<c?1:-1:Ar(v),c1(s,c,v,r)}}function Ua(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Fn(s),c=Fn(c)),r(s,c)}}function fh(r,s,c,v,C,P,M,H,q,le){var ce=s&N,fe=ce?M:n,xe=ce?n:M,Re=ce?P:n,Fe=ce?n:P;s|=ce?$:ie,s&=~(ce?ie:$),s&F||(s&=~(B|k));var Je=[r,s,C,Re,fe,Fe,xe,H,q,le],Ve=c.apply(n,Je);return ec(r)&&_h(Ve,Je),Ve.placeholder=v,Ch(Ve,r,s)}function Yl(r){var s=Oe[r];return function(c,v){if(c=Fn(c),v=v==null?0:Wt(Ke(v),292),v&&Cd(c)){var C=(at(c)+"e").split("e"),P=s(C[0]+"e"+(+C[1]+v));return C=(at(P)+"e").split("e"),+(C[0]+"e"+(+C[1]-v))}return s(c)}}var T1=ho&&1/xr(new ho([,-0]))[1]==de?function(r){return new ho(r)}:gc;function dh(r){return function(s){var c=Ht(s);return c==ht?co(s):c==hn?ns(s):zn(s,r(s))}}function Er(r,s,c,v,C,P,M,H){var q=s&k;if(!q&&typeof r!="function")throw new Ze(l);var le=v?v.length:0;if(le||(s&=~($|ie),v=C=n),M=M===n?M:Dt(Ke(M),0),H=H===n?H:Ke(H),le-=C?C.length:0,s&ie){var ce=v,fe=C;v=C=n}var xe=q?n:Xl(r),Re=[r,s,c,v,C,ce,fe,P,M,H];if(xe&&W1(Re,xe),r=Re[0],s=Re[1],c=Re[2],v=Re[3],C=Re[4],H=Re[9]=Re[9]===n?q?0:r.length:Dt(Re[9]-le,0),!H&&s&(N|Y)&&(s&=~(N|Y)),!s||s==B)var Fe=_1(r,s,c);else s==N||s==Y?Fe=C1(r,s,H):(s==$||s==(B|$))&&!C.length?Fe=E1(r,s,c,v):Fe=Wa.apply(n,Re);var Je=xe?qd:_h;return Ch(Je(Fe,Re),r,s)}function hh(r,s,c,v){return r===n||Gn(r,kt[c])&&!Ue.call(v,c)?s:r}function ph(r,s,c,v,C,P){return wt(r)&&wt(s)&&(P.set(s,r),ja(r,s,n,ph,P),P.delete(s)),r}function O1(r){return vs(r)?n:r}function gh(r,s,c,v,C,P){var M=c&I,H=r.length,q=s.length;if(H!=q&&!(M&&q>H))return!1;var le=P.get(r),ce=P.get(s);if(le&&ce)return le==s&&ce==r;var fe=-1,xe=!0,Re=c&A?new Ii:n;for(P.set(r,s),P.set(s,r);++fe<H;){var Fe=r[fe],Je=s[fe];if(v)var Ve=M?v(Je,Fe,fe,s,r,P):v(Fe,Je,fe,r,s,P);if(Ve!==n){if(Ve)continue;xe=!1;break}if(Re){if(!bt(s,function(nt,it){if(!Pi(Re,it)&&(Fe===nt||C(Fe,nt,c,v,P)))return Re.push(it)})){xe=!1;break}}else if(!(Fe===Je||C(Fe,Je,c,v,P))){xe=!1;break}}return P.delete(r),P.delete(s),xe}function P1(r,s,c,v,C,P,M){switch(c){case Hr:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case Si:return!(r.byteLength!=s.byteLength||!P(new Ea(r),new Ea(s)));case je:case $e:case kn:return Gn(+r,+s);case Xe:return r.name==s.name&&r.message==s.message;case wi:case jt:return r==s+"";case ht:var H=co;case hn:var q=v&I;if(H||(H=xr),r.size!=s.size&&!q)return!1;var le=M.get(r);if(le)return le==s;v|=A,M.set(r,s);var ce=gh(H(r),H(s),v,C,P,M);return M.delete(r),ce;case Zn:if(us)return us.call(r)==us.call(s)}return!1}function A1(r,s,c,v,C,P){var M=c&I,H=Gl(r),q=H.length,le=Gl(s),ce=le.length;if(q!=ce&&!M)return!1;for(var fe=q;fe--;){var xe=H[fe];if(!(M?xe in s:Ue.call(s,xe)))return!1}var Re=P.get(r),Fe=P.get(s);if(Re&&Fe)return Re==s&&Fe==r;var Je=!0;P.set(r,s),P.set(s,r);for(var Ve=M;++fe<q;){xe=H[fe];var nt=r[xe],it=s[xe];if(v)var xn=M?v(it,nt,xe,s,r,P):v(nt,it,xe,r,s,P);if(!(xn===n?nt===it||C(nt,it,c,v,P):xn)){Je=!1;break}Ve||(Ve=xe=="constructor")}if(Je&&!Ve){var Jt=r.constructor,Sn=s.constructor;Jt!=Sn&&"constructor"in r&&"constructor"in s&&!(typeof Jt=="function"&&Jt instanceof Jt&&typeof Sn=="function"&&Sn instanceof Sn)&&(Je=!1)}return P.delete(r),P.delete(s),Je}function Tr(r){return nc(xh(r,n,kh),r+"")}function Gl(r){return Md(r,Rt,Zl)}function Kl(r){return Md(r,un,mh)}var Xl=Da?function(r){return Da.get(r)}:gc;function za(r){for(var s=r.name+"",c=po[s],v=Ue.call(po,s)?c.length:0;v--;){var C=c[v],P=C.func;if(P==null||P==r)return C.name}return s}function yo(r){var s=Ue.call(O,"placeholder")?O:r;return s.placeholder}function Be(){var r=O.iteratee||hc;return r=r===hc?Bd:r,arguments.length?r(arguments[0],arguments[1]):r}function qa(r,s){var c=r.__data__;return j1(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Jl(r){for(var s=Rt(r),c=s.length;c--;){var v=s[c],C=r[v];s[c]=[v,C,bh(C)]}return s}function Mi(r,s){var c=wa(r,s);return jd(c)?c:n}function k1(r){var s=Ue.call(r,ki),c=r[ki];try{r[ki]=n;var v=!0}catch{}var C=_a.call(r);return v&&(s?r[ki]=c:delete r[ki]),C}var Zl=El?function(r){return r==null?[]:(r=Se(r),oe(El(r),function(s){return Sd.call(r,s)}))}:mc,mh=El?function(r){for(var s=[];r;)qe(s,Zl(r)),r=Ta(r);return s}:mc,Ht=Kt;(Tl&&Ht(new Tl(new ArrayBuffer(1)))!=Hr||os&&Ht(new os)!=ht||Ol&&Ht(Ol.resolve())!=Dn||ho&&Ht(new ho)!=hn||ss&&Ht(new ss)!=ke)&&(Ht=function(r){var s=Kt(r),c=s==en?r.constructor:n,v=c?Ni(c):"";if(v)switch(v){case d0:return Hr;case h0:return ht;case p0:return Dn;case g0:return hn;case m0:return ke}return s});function D1(r,s,c){for(var v=-1,C=c.length;++v<C;){var P=c[v],M=P.size;switch(P.type){case"drop":r+=M;break;case"dropRight":s-=M;break;case"take":s=Wt(s,r+M);break;case"takeRight":r=Dt(r,s-M);break}}return{start:r,end:s}}function I1(r){var s=r.match(ol);return s?s[1].split(sl):[]}function vh(r,s,c){s=ni(s,r);for(var v=-1,C=s.length,P=!1;++v<C;){var M=lr(s[v]);if(!(P=r!=null&&c(r,M)))break;r=r[M]}return P||++v!=C?P:(C=r==null?0:r.length,!!C&&Qa(C)&&Or(M,C)&&(Ye(r)||ji(r)))}function R1(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&Ue.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function yh(r){return typeof r.constructor=="function"&&!gs(r)?go(Ta(r)):{}}function L1(r,s,c){var v=r.constructor;switch(s){case Si:return zl(r);case je:case $e:return new v(+r);case Hr:return v1(r,c);case Mo:case Qi:case eo:case mr:case pn:case Hn:case Qn:case No:case $r:return eh(r,c);case ht:return new v;case kn:case jt:return new v(r);case wi:return y1(r);case hn:return new v;case Zn:return b1(r)}}function M1(r,s){var c=s.length;if(!c)return r;var v=c-1;return s[v]=(c>1?"& ":"")+s[v],s=s.join(c>2?", ":" "),r.replace(il,`{
|
|
37
|
+
*/ju.exports;(function(t,e){(function(){var n,i="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",d="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",m=500,b="__lodash_placeholder__",w=1,_=2,E=4,I=1,A=2,B=1,k=2,F=4,N=8,Y=16,$=32,ie=64,g=128,ee=256,Z=512,we=30,He="...",Ae=800,Te=16,Le=1,G=2,re=3,de=1/0,pe=9007199254740991,ke=17976931348623157e292,Q=0/0,ae=4294967295,ve=ae-1,me=ae>>>1,ye=[["ary",g],["bind",B],["bindKey",k],["curry",N],["curryRight",Y],["flip",Z],["partial",$],["partialRight",ie],["rearg",ee]],Pe="[object Arguments]",Ce="[object Array]",Ie="[object AsyncFunction]",je="[object Boolean]",$e="[object Date]",Me="[object DOMException]",Xe="[object Error]",ge="[object Function]",gt="[object GeneratorFunction]",ht="[object Map]",kn="[object Number]",Wr="[object Null]",en="[object Object]",Dn="[object Promise]",tl="[object Proxy]",wi="[object RegExp]",hn="[object Set]",jt="[object String]",Zn="[object Symbol]",xi="[object Undefined]",De="[object WeakMap]",Bt="[object WeakSet]",Si="[object ArrayBuffer]",Hr="[object DataView]",Mo="[object Float32Array]",Qi="[object Float64Array]",eo="[object Int8Array]",mr="[object Int16Array]",pn="[object Int32Array]",Hn="[object Uint8Array]",Qn="[object Uint8ClampedArray]",No="[object Uint16Array]",$r="[object Uint32Array]",qs=/\b__p \+= '';/g,Ys=/\b(__p \+=) '' \+/g,nl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,vr=/&(?:amp|lt|gt|quot|#39);/g,Ur=/[&<>"']/g,Gs=RegExp(vr.source),Ks=RegExp(Ur.source),tn=/<%-([\s\S]+?)%>/g,Ft=/<%([\s\S]+?)%>/g,to=/<%=([\s\S]+?)%>/g,rl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xs=/^\w*$/,Js=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,er=/[\\^$.*+?()[\]{}|]/g,zr=RegExp(er.source),_i=/^\s+/,no=/\s/,il=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ol=/\{\n\/\* \[wrapped with (.+)\] \*/,sl=/,? & /,Zs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,al=/[()=,{}\[\]\/\s]/,ul=/\\(\\)?/g,Qs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ea=/\w*$/,qr=/^[-+]0x[0-9a-f]+$/i,ta=/^0b[01]+$/i,jo=/^\[object .+?Constructor\]$/,Bo=/^0o[0-7]+$/i,ro=/^(?:0|[1-9]\d*)$/,na=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,io=/($^)/,Ci=/['\n\r\u2028\u2029\\]/g,Ei="\\ud800-\\udfff",ra="\\u0300-\\u036f",ia="\\ufe20-\\ufe2f",oa="\\u20d0-\\u20ff",sa=ra+ia+oa,oo="\\u2700-\\u27bf",aa="a-z\\xdf-\\xf6\\xf8-\\xff",ll="\\xac\\xb1\\xd7\\xf7",ua="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",la="\\u2000-\\u206f",Fo=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vo="A-Z\\xc0-\\xd6\\xd8-\\xde",Mt="\\ufe0e\\ufe0f",yr=ll+ua+la+Fo,Yr="['’]",cl="["+Ei+"]",ca="["+yr+"]",Gr="["+sa+"]",Wo="\\d+",so="["+oo+"]",Ho="["+aa+"]",fa="[^"+Ei+yr+Wo+oo+aa+Vo+"]",$o="\\ud83c[\\udffb-\\udfff]",gn="(?:"+Gr+"|"+$o+")",Uo="[^"+Ei+"]",br="(?:\\ud83c[\\udde6-\\uddff]){2}",zo="[\\ud800-\\udbff][\\udc00-\\udfff]",Kr="["+Vo+"]",tr="\\u200d",nr="(?:"+Ho+"|"+fa+")",qo="(?:"+Kr+"|"+fa+")",da="(?:"+Yr+"(?:d|ll|m|re|s|t|ve))?",Xr="(?:"+Yr+"(?:D|LL|M|RE|S|T|VE))?",Yo=gn+"?",ao="["+Mt+"]?",ha="(?:"+tr+"(?:"+[Uo,br,zo].join("|")+")"+ao+Yo+")*",pa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Go=ao+Yo+ha,dl="(?:"+[so,br,zo].join("|")+")"+Go,hl="(?:"+[Uo+Gr+"?",Gr,br,zo,cl].join("|")+")",Ko=RegExp(Yr,"g"),pl=RegExp(Gr,"g"),Xo=RegExp($o+"(?="+$o+")|"+hl+Go,"g"),gl=RegExp([Kr+"?"+Ho+"+"+da+"(?="+[ca,Kr,"$"].join("|")+")",qo+"+"+Xr+"(?="+[ca,Kr+nr,"$"].join("|")+")",Kr+"?"+nr+"+"+da,Kr+"+"+Xr,fl,pa,Wo,dl].join("|"),"g"),ml=RegExp("["+tr+Ei+sa+Mt+"]"),vl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],bl=-1,dt={};dt[Mo]=dt[Qi]=dt[eo]=dt[mr]=dt[pn]=dt[Hn]=dt[Qn]=dt[No]=dt[$r]=!0,dt[Pe]=dt[Ce]=dt[Si]=dt[je]=dt[Hr]=dt[$e]=dt[Xe]=dt[ge]=dt[ht]=dt[kn]=dt[en]=dt[wi]=dt[hn]=dt[jt]=dt[De]=!1;var st={};st[Pe]=st[Ce]=st[Si]=st[Hr]=st[je]=st[$e]=st[Mo]=st[Qi]=st[eo]=st[mr]=st[pn]=st[ht]=st[kn]=st[en]=st[wi]=st[hn]=st[jt]=st[Zn]=st[Hn]=st[Qn]=st[No]=st[$r]=!0,st[Xe]=st[ge]=st[De]=!1;var ga={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jo={"&":"&","<":"<",">":">",'"':""","'":"'"},ma={"&":"&","<":"<",">":">",""":'"',"'":"'"},va={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zo=parseFloat,wl=parseInt,ya=typeof Cn=="object"&&Cn&&Cn.Object===Object&&Cn,xl=typeof self=="object"&&self&&self.Object===Object&&self,yt=ya||xl||Function("return this")(),uo=e&&!e.nodeType&&e,$n=uo&&!0&&t&&!t.nodeType&&t,ba=$n&&$n.exports===uo,Qo=ba&&ya.process,nn=function(){try{var D=$n&&$n.require&&$n.require("util").types;return D||Qo&&Qo.binding&&Qo.binding("util")}catch{}}(),u=nn&&nn.isArrayBuffer,f=nn&&nn.isDate,p=nn&&nn.isMap,y=nn&&nn.isRegExp,x=nn&&nn.isSet,S=nn&&nn.isTypedArray;function T(D,W,V){switch(V.length){case 0:return D.call(W);case 1:return D.call(W,V[0]);case 2:return D.call(W,V[0],V[1]);case 3:return D.call(W,V[0],V[1],V[2])}return D.apply(W,V)}function j(D,W,V,se){for(var ue=-1,Ee=D==null?0:D.length;++ue<Ee;){var Oe=D[ue];W(se,Oe,V(Oe),D)}return se}function L(D,W){for(var V=-1,se=D==null?0:D.length;++V<se&&W(D[V],V,D)!==!1;);return D}function z(D,W){for(var V=D==null?0:D.length;V--&&W(D[V],V,D)!==!1;);return D}function ne(D,W){for(var V=-1,se=D==null?0:D.length;++V<se;)if(!W(D[V],V,D))return!1;return!0}function oe(D,W){for(var V=-1,se=D==null?0:D.length,ue=0,Ee=[];++V<se;){var Oe=D[V];W(Oe,V,D)&&(Ee[ue++]=Oe)}return Ee}function X(D,W){var V=D==null?0:D.length;return!!V&&ct(D,W,0)>-1}function he(D,W,V){for(var se=-1,ue=D==null?0:D.length;++se<ue;)if(V(W,D[se]))return!0;return!1}function _e(D,W){for(var V=-1,se=D==null?0:D.length,ue=Array(se);++V<se;)ue[V]=W(D[V],V,D);return ue}function qe(D,W){for(var V=-1,se=W.length,ue=D.length;++V<se;)D[ue+V]=W[V];return D}function ze(D,W,V,se){var ue=-1,Ee=D==null?0:D.length;for(se&&Ee&&(V=D[++ue]);++ue<Ee;)V=W(V,D[ue],ue,D);return V}function Pt(D,W,V,se){var ue=D==null?0:D.length;for(se&&ue&&(V=D[--ue]);ue--;)V=W(V,D[ue],ue,D);return V}function bt(D,W){for(var V=-1,se=D==null?0:D.length;++V<se;)if(W(D[V],V,D))return!0;return!1}var In=wr("length");function Rn(D){return D.split("")}function et(D){return D.match(Zs)||[]}function rr(D,W,V){var se;return V(D,function(ue,Ee,Oe){if(W(ue,Ee,Oe))return se=Ee,!1}),se}function tt(D,W,V,se){for(var ue=D.length,Ee=V+(se?1:-1);se?Ee--:++Ee<ue;)if(W(D[Ee],Ee,D))return Ee;return-1}function ct(D,W,V){return W===W?Cl(D,W,V):tt(D,lo,V)}function Ti(D,W,V,se){for(var ue=V-1,Ee=D.length;++ue<Ee;)if(se(D[ue],W))return ue;return-1}function lo(D){return D!==D}function mn(D,W){var V=D==null?0:D.length;return V?Vt(D,W)/V:Q}function wr(D){return function(W){return W==null?n:W[D]}}function rn(D){return function(W){return D==null?n:D[W]}}function Un(D,W,V,se,ue){return ue(D,function(Ee,Oe,Se){V=se?(se=!1,Ee):W(V,Ee,Oe,Se)}),V}function ir(D,W){var V=D.length;for(D.sort(W);V--;)D[V]=D[V].value;return D}function Vt(D,W){for(var V,se=-1,ue=D.length;++se<ue;){var Ee=W(D[se]);Ee!==n&&(V=V===n?Ee:V+Ee)}return V}function Oi(D,W){for(var V=-1,se=Array(D);++V<D;)se[V]=W(V);return se}function zn(D,W){return _e(W,function(V){return[V,D[V]]})}function Ln(D){return D&&D.slice(0,xa(D)+1).replace(_i,"")}function qt(D){return function(W){return D(W)}}function es(D,W){return _e(W,function(V){return D[V]})}function Pi(D,W){return D.has(W)}function ot(D,W){for(var V=-1,se=D.length;++V<se&&ct(W,D[V],0)>-1;);return V}function Ai(D,W){for(var V=D.length;V--&&ct(W,D[V],0)>-1;);return V}function vn(D,W){for(var V=D.length,se=0;V--;)D[V]===W&&++se;return se}var Jr=rn(ga),Sl=rn(Jo);function _l(D){return"\\"+va[D]}function wa(D,W){return D==null?n:D[W]}function on(D){return ml.test(D)}function ts(D){return vl.test(D)}function or(D){for(var W,V=[];!(W=D.next()).done;)V.push(W.value);return V}function co(D){var W=-1,V=Array(D.size);return D.forEach(function(se,ue){V[++W]=[ue,se]}),V}function Zr(D,W){return function(V){return D(W(V))}}function yn(D,W){for(var V=-1,se=D.length,ue=0,Ee=[];++V<se;){var Oe=D[V];(Oe===W||Oe===b)&&(D[V]=b,Ee[ue++]=V)}return Ee}function xr(D){var W=-1,V=Array(D.size);return D.forEach(function(se){V[++W]=se}),V}function ns(D){var W=-1,V=Array(D.size);return D.forEach(function(se){V[++W]=[se,se]}),V}function Cl(D,W,V){for(var se=V-1,ue=D.length;++se<ue;)if(D[se]===W)return se;return-1}function fo(D,W,V){for(var se=V+1;se--;)if(D[se]===W)return se;return se}function sr(D){return on(D)?Sa(D):In(D)}function Yt(D){return on(D)?R(D):Rn(D)}function xa(D){for(var W=D.length;W--&&no.test(D.charAt(W)););return W}var rs=rn(ma);function Sa(D){for(var W=Xo.lastIndex=0;Xo.test(D);)++W;return W}function R(D){return D.match(Xo)||[]}function U(D){return D.match(gl)||[]}var K=function D(W){W=W==null?yt:J.defaults(yt.Object(),W,J.pick(yt,yl));var V=W.Array,se=W.Date,ue=W.Error,Ee=W.Function,Oe=W.Math,Se=W.Object,Ge=W.RegExp,Ne=W.String,Ze=W.TypeError,At=V.prototype,It=Ee.prototype,kt=Se.prototype,Gt=W["__core-js_shared__"],qn=It.toString,Ue=kt.hasOwnProperty,Zb=0,yd=function(){var r=/[^.]+$/.exec(Gt&&Gt.keys&&Gt.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),_a=kt.toString,Qb=qn.call(Se),e0=yt._,t0=Ge("^"+qn.call(Ue).replace(er,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ca=ba?W.Buffer:n,Qr=W.Symbol,Ea=W.Uint8Array,bd=Ca?Ca.allocUnsafe:n,Ta=Zr(Se.getPrototypeOf,Se),wd=Se.create,xd=kt.propertyIsEnumerable,Oa=At.splice,Sd=Qr?Qr.isConcatSpreadable:n,is=Qr?Qr.iterator:n,ki=Qr?Qr.toStringTag:n,Pa=function(){try{var r=Mi(Se,"defineProperty");return r({},"",{}),r}catch{}}(),n0=W.clearTimeout!==yt.clearTimeout&&W.clearTimeout,r0=se&&se.now!==yt.Date.now&&se.now,i0=W.setTimeout!==yt.setTimeout&&W.setTimeout,Aa=Oe.ceil,ka=Oe.floor,El=Se.getOwnPropertySymbols,o0=Ca?Ca.isBuffer:n,_d=W.isFinite,s0=At.join,a0=Zr(Se.keys,Se),Dt=Oe.max,Wt=Oe.min,u0=se.now,l0=W.parseInt,Cd=Oe.random,c0=At.reverse,Tl=Mi(W,"DataView"),os=Mi(W,"Map"),Ol=Mi(W,"Promise"),ho=Mi(W,"Set"),ss=Mi(W,"WeakMap"),as=Mi(Se,"create"),Da=ss&&new ss,po={},f0=Ni(Tl),d0=Ni(os),h0=Ni(Ol),p0=Ni(ho),g0=Ni(ss),Ia=Qr?Qr.prototype:n,us=Ia?Ia.valueOf:n,Ed=Ia?Ia.toString:n;function O(r){if(St(r)&&!Ye(r)&&!(r instanceof rt)){if(r instanceof Mn)return r;if(Ue.call(r,"__wrapped__"))return Th(r)}return new Mn(r)}var go=function(){function r(){}return function(s){if(!wt(s))return{};if(wd)return wd(s);r.prototype=s;var c=new r;return r.prototype=n,c}}();function Ra(){}function Mn(r,s){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}O.templateSettings={escape:tn,evaluate:Ft,interpolate:to,variable:"",imports:{_:O}},O.prototype=Ra.prototype,O.prototype.constructor=O,Mn.prototype=go(Ra.prototype),Mn.prototype.constructor=Mn;function rt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ae,this.__views__=[]}function m0(){var r=new rt(this.__wrapped__);return r.__actions__=sn(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=sn(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=sn(this.__views__),r}function v0(){if(this.__filtered__){var r=new rt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function y0(){var r=this.__wrapped__.value(),s=this.__dir__,c=Ye(r),v=s<0,C=c?r.length:0,P=k1(0,C,this.__views__),M=P.start,H=P.end,q=H-M,le=v?H:M-1,ce=this.__iteratees__,fe=ce.length,xe=0,Re=Wt(q,this.__takeCount__);if(!c||!v&&C==q&&Re==q)return Kd(r,this.__actions__);var Fe=[];e:for(;q--&&xe<Re;){le+=s;for(var Je=-1,Ve=r[le];++Je<fe;){var nt=ce[Je],it=nt.iteratee,xn=nt.type,Jt=it(Ve);if(xn==G)Ve=Jt;else if(!Jt){if(xn==Le)continue e;break e}}Fe[xe++]=Ve}return Fe}rt.prototype=go(Ra.prototype),rt.prototype.constructor=rt;function Di(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var v=r[s];this.set(v[0],v[1])}}function b0(){this.__data__=as?as(null):{},this.size=0}function w0(r){var s=this.has(r)&&delete this.__data__[r];return this.size-=s?1:0,s}function x0(r){var s=this.__data__;if(as){var c=s[r];return c===h?n:c}return Ue.call(s,r)?s[r]:n}function S0(r){var s=this.__data__;return as?s[r]!==n:Ue.call(s,r)}function _0(r,s){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=as&&s===n?h:s,this}Di.prototype.clear=b0,Di.prototype.delete=w0,Di.prototype.get=x0,Di.prototype.has=S0,Di.prototype.set=_0;function Sr(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var v=r[s];this.set(v[0],v[1])}}function C0(){this.__data__=[],this.size=0}function E0(r){var s=this.__data__,c=La(s,r);if(c<0)return!1;var v=s.length-1;return c==v?s.pop():Oa.call(s,c,1),--this.size,!0}function T0(r){var s=this.__data__,c=La(s,r);return c<0?n:s[c][1]}function O0(r){return La(this.__data__,r)>-1}function P0(r,s){var c=this.__data__,v=La(c,r);return v<0?(++this.size,c.push([r,s])):c[v][1]=s,this}Sr.prototype.clear=C0,Sr.prototype.delete=E0,Sr.prototype.get=T0,Sr.prototype.has=O0,Sr.prototype.set=P0;function _r(r){var s=-1,c=r==null?0:r.length;for(this.clear();++s<c;){var v=r[s];this.set(v[0],v[1])}}function A0(){this.size=0,this.__data__={hash:new Di,map:new(os||Sr),string:new Di}}function k0(r){var s=qa(this,r).delete(r);return this.size-=s?1:0,s}function D0(r){return qa(this,r).get(r)}function I0(r){return qa(this,r).has(r)}function R0(r,s){var c=qa(this,r),v=c.size;return c.set(r,s),this.size+=c.size==v?0:1,this}_r.prototype.clear=A0,_r.prototype.delete=k0,_r.prototype.get=D0,_r.prototype.has=I0,_r.prototype.set=R0;function Ii(r){var s=-1,c=r==null?0:r.length;for(this.__data__=new _r;++s<c;)this.add(r[s])}function L0(r){return this.__data__.set(r,h),this}function M0(r){return this.__data__.has(r)}Ii.prototype.add=Ii.prototype.push=L0,Ii.prototype.has=M0;function Yn(r){var s=this.__data__=new Sr(r);this.size=s.size}function N0(){this.__data__=new Sr,this.size=0}function j0(r){var s=this.__data__,c=s.delete(r);return this.size=s.size,c}function B0(r){return this.__data__.get(r)}function F0(r){return this.__data__.has(r)}function V0(r,s){var c=this.__data__;if(c instanceof Sr){var v=c.__data__;if(!os||v.length<o-1)return v.push([r,s]),this.size=++c.size,this;c=this.__data__=new _r(v)}return c.set(r,s),this.size=c.size,this}Yn.prototype.clear=N0,Yn.prototype.delete=j0,Yn.prototype.get=B0,Yn.prototype.has=F0,Yn.prototype.set=V0;function Td(r,s){var c=Ye(r),v=!c&&ji(r),C=!c&&!v&&ii(r),P=!c&&!v&&!C&&bo(r),M=c||v||C||P,H=M?Oi(r.length,Ne):[],q=H.length;for(var le in r)(s||Ue.call(r,le))&&!(M&&(le=="length"||C&&(le=="offset"||le=="parent")||P&&(le=="buffer"||le=="byteLength"||le=="byteOffset")||Or(le,q)))&&H.push(le);return H}function Od(r){var s=r.length;return s?r[Bl(0,s-1)]:n}function W0(r,s){return Ya(sn(r),Ri(s,0,r.length))}function H0(r){return Ya(sn(r))}function Pl(r,s,c){(c!==n&&!Gn(r[s],c)||c===n&&!(s in r))&&Cr(r,s,c)}function ls(r,s,c){var v=r[s];(!(Ue.call(r,s)&&Gn(v,c))||c===n&&!(s in r))&&Cr(r,s,c)}function La(r,s){for(var c=r.length;c--;)if(Gn(r[c][0],s))return c;return-1}function $0(r,s,c,v){return ei(r,function(C,P,M){s(v,C,c(C),M)}),v}function Pd(r,s){return r&&ur(s,Rt(s),r)}function U0(r,s){return r&&ur(s,un(s),r)}function Cr(r,s,c){s=="__proto__"&&Pa?Pa(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}function Al(r,s){for(var c=-1,v=s.length,C=V(v),P=r==null;++c<v;)C[c]=P?n:lc(r,s[c]);return C}function Ri(r,s,c){return r===r&&(c!==n&&(r=r<=c?r:c),s!==n&&(r=r>=s?r:s)),r}function Nn(r,s,c,v,C,P){var M,H=s&w,q=s&_,le=s&E;if(c&&(M=C?c(r,v,C,P):c(r)),M!==n)return M;if(!wt(r))return r;var ce=Ye(r);if(ce){if(M=I1(r),!H)return sn(r,M)}else{var fe=Ht(r),xe=fe==ge||fe==gt;if(ii(r))return Zd(r,H);if(fe==en||fe==Pe||xe&&!C){if(M=q||xe?{}:vh(r),!H)return q?x1(r,U0(M,r)):w1(r,Pd(M,r))}else{if(!st[fe])return C?r:{};M=R1(r,fe,H)}}P||(P=new Yn);var Re=P.get(r);if(Re)return Re;P.set(r,M),qh(r)?r.forEach(function(Ve){M.add(Nn(Ve,s,c,Ve,r,P))}):Uh(r)&&r.forEach(function(Ve,nt){M.set(nt,Nn(Ve,s,c,nt,r,P))});var Fe=le?q?Kl:Gl:q?un:Rt,Je=ce?n:Fe(r);return L(Je||r,function(Ve,nt){Je&&(nt=Ve,Ve=r[nt]),ls(M,nt,Nn(Ve,s,c,nt,r,P))}),M}function z0(r){var s=Rt(r);return function(c){return Ad(c,r,s)}}function Ad(r,s,c){var v=c.length;if(r==null)return!v;for(r=Se(r);v--;){var C=c[v],P=s[C],M=r[C];if(M===n&&!(C in r)||!P(M))return!1}return!0}function kd(r,s,c){if(typeof r!="function")throw new Ze(l);return ms(function(){r.apply(n,c)},s)}function cs(r,s,c,v){var C=-1,P=X,M=!0,H=r.length,q=[],le=s.length;if(!H)return q;c&&(s=_e(s,qt(c))),v?(P=he,M=!1):s.length>=o&&(P=Pi,M=!1,s=new Ii(s));e:for(;++C<H;){var ce=r[C],fe=c==null?ce:c(ce);if(ce=v||ce!==0?ce:0,M&&fe===fe){for(var xe=le;xe--;)if(s[xe]===fe)continue e;q.push(ce)}else P(s,fe,v)||q.push(ce)}return q}var ei=rh(ar),Dd=rh(Dl,!0);function q0(r,s){var c=!0;return ei(r,function(v,C,P){return c=!!s(v,C,P),c}),c}function Ma(r,s,c){for(var v=-1,C=r.length;++v<C;){var P=r[v],M=s(P);if(M!=null&&(H===n?M===M&&!wn(M):c(M,H)))var H=M,q=P}return q}function Y0(r,s,c,v){var C=r.length;for(c=Ke(c),c<0&&(c=-c>C?0:C+c),v=v===n||v>C?C:Ke(v),v<0&&(v+=C),v=c>v?0:Gh(v);c<v;)r[c++]=s;return r}function Id(r,s){var c=[];return ei(r,function(v,C,P){s(v,C,P)&&c.push(v)}),c}function Nt(r,s,c,v,C){var P=-1,M=r.length;for(c||(c=M1),C||(C=[]);++P<M;){var H=r[P];s>0&&c(H)?s>1?Nt(H,s-1,c,v,C):qe(C,H):v||(C[C.length]=H)}return C}var kl=ih(),Rd=ih(!0);function ar(r,s){return r&&kl(r,s,Rt)}function Dl(r,s){return r&&Rd(r,s,Rt)}function Na(r,s){return oe(s,function(c){return Pr(r[c])})}function Li(r,s){s=ni(s,r);for(var c=0,v=s.length;r!=null&&c<v;)r=r[lr(s[c++])];return c&&c==v?r:n}function Ld(r,s,c){var v=s(r);return Ye(r)?v:qe(v,c(r))}function Kt(r){return r==null?r===n?xi:Wr:ki&&ki in Se(r)?A1(r):H1(r)}function Il(r,s){return r>s}function G0(r,s){return r!=null&&Ue.call(r,s)}function K0(r,s){return r!=null&&s in Se(r)}function X0(r,s,c){return r>=Wt(s,c)&&r<Dt(s,c)}function Rl(r,s,c){for(var v=c?he:X,C=r[0].length,P=r.length,M=P,H=V(P),q=1/0,le=[];M--;){var ce=r[M];M&&s&&(ce=_e(ce,qt(s))),q=Wt(ce.length,q),H[M]=!c&&(s||C>=120&&ce.length>=120)?new Ii(M&&ce):n}ce=r[0];var fe=-1,xe=H[0];e:for(;++fe<C&&le.length<q;){var Re=ce[fe],Fe=s?s(Re):Re;if(Re=c||Re!==0?Re:0,!(xe?Pi(xe,Fe):v(le,Fe,c))){for(M=P;--M;){var Je=H[M];if(!(Je?Pi(Je,Fe):v(r[M],Fe,c)))continue e}xe&&xe.push(Fe),le.push(Re)}}return le}function J0(r,s,c,v){return ar(r,function(C,P,M){s(v,c(C),P,M)}),v}function fs(r,s,c){s=ni(s,r),r=xh(r,s);var v=r==null?r:r[lr(Bn(s))];return v==null?n:T(v,r,c)}function Md(r){return St(r)&&Kt(r)==Pe}function Z0(r){return St(r)&&Kt(r)==Si}function Q0(r){return St(r)&&Kt(r)==$e}function ds(r,s,c,v,C){return r===s?!0:r==null||s==null||!St(r)&&!St(s)?r!==r&&s!==s:e1(r,s,c,v,ds,C)}function e1(r,s,c,v,C,P){var M=Ye(r),H=Ye(s),q=M?Ce:Ht(r),le=H?Ce:Ht(s);q=q==Pe?en:q,le=le==Pe?en:le;var ce=q==en,fe=le==en,xe=q==le;if(xe&&ii(r)){if(!ii(s))return!1;M=!0,ce=!1}if(xe&&!ce)return P||(P=new Yn),M||bo(r)?ph(r,s,c,v,C,P):O1(r,s,q,c,v,C,P);if(!(c&I)){var Re=ce&&Ue.call(r,"__wrapped__"),Fe=fe&&Ue.call(s,"__wrapped__");if(Re||Fe){var Je=Re?r.value():r,Ve=Fe?s.value():s;return P||(P=new Yn),C(Je,Ve,c,v,P)}}return xe?(P||(P=new Yn),P1(r,s,c,v,C,P)):!1}function t1(r){return St(r)&&Ht(r)==ht}function Ll(r,s,c,v){var C=c.length,P=C,M=!v;if(r==null)return!P;for(r=Se(r);C--;){var H=c[C];if(M&&H[2]?H[1]!==r[H[0]]:!(H[0]in r))return!1}for(;++C<P;){H=c[C];var q=H[0],le=r[q],ce=H[1];if(M&&H[2]){if(le===n&&!(q in r))return!1}else{var fe=new Yn;if(v)var xe=v(le,ce,q,r,s,fe);if(!(xe===n?ds(ce,le,I|A,v,fe):xe))return!1}}return!0}function Nd(r){if(!wt(r)||j1(r))return!1;var s=Pr(r)?t0:jo;return s.test(Ni(r))}function n1(r){return St(r)&&Kt(r)==wi}function r1(r){return St(r)&&Ht(r)==hn}function i1(r){return St(r)&&Qa(r.length)&&!!dt[Kt(r)]}function jd(r){return typeof r=="function"?r:r==null?ln:typeof r=="object"?Ye(r)?Vd(r[0],r[1]):Fd(r):op(r)}function Ml(r){if(!gs(r))return a0(r);var s=[];for(var c in Se(r))Ue.call(r,c)&&c!="constructor"&&s.push(c);return s}function o1(r){if(!wt(r))return W1(r);var s=gs(r),c=[];for(var v in r)v=="constructor"&&(s||!Ue.call(r,v))||c.push(v);return c}function Nl(r,s){return r<s}function Bd(r,s){var c=-1,v=an(r)?V(r.length):[];return ei(r,function(C,P,M){v[++c]=s(C,P,M)}),v}function Fd(r){var s=Jl(r);return s.length==1&&s[0][2]?bh(s[0][0],s[0][1]):function(c){return c===r||Ll(c,r,s)}}function Vd(r,s){return Ql(r)&&yh(s)?bh(lr(r),s):function(c){var v=lc(c,r);return v===n&&v===s?cc(c,r):ds(s,v,I|A)}}function ja(r,s,c,v,C){r!==s&&kl(s,function(P,M){if(C||(C=new Yn),wt(P))s1(r,s,M,c,ja,v,C);else{var H=v?v(tc(r,M),P,M+"",r,s,C):n;H===n&&(H=P),Pl(r,M,H)}},un)}function s1(r,s,c,v,C,P,M){var H=tc(r,c),q=tc(s,c),le=M.get(q);if(le){Pl(r,c,le);return}var ce=P?P(H,q,c+"",r,s,M):n,fe=ce===n;if(fe){var xe=Ye(q),Re=!xe&&ii(q),Fe=!xe&&!Re&&bo(q);ce=q,xe||Re||Fe?Ye(H)?ce=H:Ct(H)?ce=sn(H):Re?(fe=!1,ce=Zd(q,!0)):Fe?(fe=!1,ce=Qd(q,!0)):ce=[]:vs(q)||ji(q)?(ce=H,ji(H)?ce=Kh(H):(!wt(H)||Pr(H))&&(ce=vh(q))):fe=!1}fe&&(M.set(q,ce),C(ce,q,v,P,M),M.delete(q)),Pl(r,c,ce)}function Wd(r,s){var c=r.length;if(c)return s+=s<0?c:0,Or(s,c)?r[s]:n}function Hd(r,s,c){s.length?s=_e(s,function(P){return Ye(P)?function(M){return Li(M,P.length===1?P[0]:P)}:P}):s=[ln];var v=-1;s=_e(s,qt(Be()));var C=Bd(r,function(P,M,H){var q=_e(s,function(le){return le(P)});return{criteria:q,index:++v,value:P}});return ir(C,function(P,M){return b1(P,M,c)})}function a1(r,s){return $d(r,s,function(c,v){return cc(r,v)})}function $d(r,s,c){for(var v=-1,C=s.length,P={};++v<C;){var M=s[v],H=Li(r,M);c(H,M)&&hs(P,ni(M,r),H)}return P}function u1(r){return function(s){return Li(s,r)}}function jl(r,s,c,v){var C=v?Ti:ct,P=-1,M=s.length,H=r;for(r===s&&(s=sn(s)),c&&(H=_e(r,qt(c)));++P<M;)for(var q=0,le=s[P],ce=c?c(le):le;(q=C(H,ce,q,v))>-1;)H!==r&&Oa.call(H,q,1),Oa.call(r,q,1);return r}function Ud(r,s){for(var c=r?s.length:0,v=c-1;c--;){var C=s[c];if(c==v||C!==P){var P=C;Or(C)?Oa.call(r,C,1):Wl(r,C)}}return r}function Bl(r,s){return r+ka(Cd()*(s-r+1))}function l1(r,s,c,v){for(var C=-1,P=Dt(Aa((s-r)/(c||1)),0),M=V(P);P--;)M[v?P:++C]=r,r+=c;return M}function Fl(r,s){var c="";if(!r||s<1||s>pe)return c;do s%2&&(c+=r),s=ka(s/2),s&&(r+=r);while(s);return c}function Qe(r,s){return nc(wh(r,s,ln),r+"")}function c1(r){return Od(wo(r))}function f1(r,s){var c=wo(r);return Ya(c,Ri(s,0,c.length))}function hs(r,s,c,v){if(!wt(r))return r;s=ni(s,r);for(var C=-1,P=s.length,M=P-1,H=r;H!=null&&++C<P;){var q=lr(s[C]),le=c;if(q==="__proto__"||q==="constructor"||q==="prototype")return r;if(C!=M){var ce=H[q];le=v?v(ce,q,H):n,le===n&&(le=wt(ce)?ce:Or(s[C+1])?[]:{})}ls(H,q,le),H=H[q]}return r}var zd=Da?function(r,s){return Da.set(r,s),r}:ln,d1=Pa?function(r,s){return Pa(r,"toString",{configurable:!0,enumerable:!1,value:dc(s),writable:!0})}:ln;function h1(r){return Ya(wo(r))}function jn(r,s,c){var v=-1,C=r.length;s<0&&(s=-s>C?0:C+s),c=c>C?C:c,c<0&&(c+=C),C=s>c?0:c-s>>>0,s>>>=0;for(var P=V(C);++v<C;)P[v]=r[v+s];return P}function p1(r,s){var c;return ei(r,function(v,C,P){return c=s(v,C,P),!c}),!!c}function Ba(r,s,c){var v=0,C=r==null?v:r.length;if(typeof s=="number"&&s===s&&C<=me){for(;v<C;){var P=v+C>>>1,M=r[P];M!==null&&!wn(M)&&(c?M<=s:M<s)?v=P+1:C=P}return C}return Vl(r,s,ln,c)}function Vl(r,s,c,v){var C=0,P=r==null?0:r.length;if(P===0)return 0;s=c(s);for(var M=s!==s,H=s===null,q=wn(s),le=s===n;C<P;){var ce=ka((C+P)/2),fe=c(r[ce]),xe=fe!==n,Re=fe===null,Fe=fe===fe,Je=wn(fe);if(M)var Ve=v||Fe;else le?Ve=Fe&&(v||xe):H?Ve=Fe&&xe&&(v||!Re):q?Ve=Fe&&xe&&!Re&&(v||!Je):Re||Je?Ve=!1:Ve=v?fe<=s:fe<s;Ve?C=ce+1:P=ce}return Wt(P,ve)}function qd(r,s){for(var c=-1,v=r.length,C=0,P=[];++c<v;){var M=r[c],H=s?s(M):M;if(!c||!Gn(H,q)){var q=H;P[C++]=M===0?0:M}}return P}function Yd(r){return typeof r=="number"?r:wn(r)?Q:+r}function bn(r){if(typeof r=="string")return r;if(Ye(r))return _e(r,bn)+"";if(wn(r))return Ed?Ed.call(r):"";var s=r+"";return s=="0"&&1/r==-de?"-0":s}function ti(r,s,c){var v=-1,C=X,P=r.length,M=!0,H=[],q=H;if(c)M=!1,C=he;else if(P>=o){var le=s?null:E1(r);if(le)return xr(le);M=!1,C=Pi,q=new Ii}else q=s?[]:H;e:for(;++v<P;){var ce=r[v],fe=s?s(ce):ce;if(ce=c||ce!==0?ce:0,M&&fe===fe){for(var xe=q.length;xe--;)if(q[xe]===fe)continue e;s&&q.push(fe),H.push(ce)}else C(q,fe,c)||(q!==H&&q.push(fe),H.push(ce))}return H}function Wl(r,s){return s=ni(s,r),r=xh(r,s),r==null||delete r[lr(Bn(s))]}function Gd(r,s,c,v){return hs(r,s,c(Li(r,s)),v)}function Fa(r,s,c,v){for(var C=r.length,P=v?C:-1;(v?P--:++P<C)&&s(r[P],P,r););return c?jn(r,v?0:P,v?P+1:C):jn(r,v?P+1:0,v?C:P)}function Kd(r,s){var c=r;return c instanceof rt&&(c=c.value()),ze(s,function(v,C){return C.func.apply(C.thisArg,qe([v],C.args))},c)}function Hl(r,s,c){var v=r.length;if(v<2)return v?ti(r[0]):[];for(var C=-1,P=V(v);++C<v;)for(var M=r[C],H=-1;++H<v;)H!=C&&(P[C]=cs(P[C]||M,r[H],s,c));return ti(Nt(P,1),s,c)}function Xd(r,s,c){for(var v=-1,C=r.length,P=s.length,M={};++v<C;){var H=v<P?s[v]:n;c(M,r[v],H)}return M}function $l(r){return Ct(r)?r:[]}function Ul(r){return typeof r=="function"?r:ln}function ni(r,s){return Ye(r)?r:Ql(r,s)?[r]:Eh(at(r))}var g1=Qe;function ri(r,s,c){var v=r.length;return c=c===n?v:c,!s&&c>=v?r:jn(r,s,c)}var Jd=n0||function(r){return yt.clearTimeout(r)};function Zd(r,s){if(s)return r.slice();var c=r.length,v=bd?bd(c):new r.constructor(c);return r.copy(v),v}function zl(r){var s=new r.constructor(r.byteLength);return new Ea(s).set(new Ea(r)),s}function m1(r,s){var c=s?zl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function v1(r){var s=new r.constructor(r.source,ea.exec(r));return s.lastIndex=r.lastIndex,s}function y1(r){return us?Se(us.call(r)):{}}function Qd(r,s){var c=s?zl(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function eh(r,s){if(r!==s){var c=r!==n,v=r===null,C=r===r,P=wn(r),M=s!==n,H=s===null,q=s===s,le=wn(s);if(!H&&!le&&!P&&r>s||P&&M&&q&&!H&&!le||v&&M&&q||!c&&q||!C)return 1;if(!v&&!P&&!le&&r<s||le&&c&&C&&!v&&!P||H&&c&&C||!M&&C||!q)return-1}return 0}function b1(r,s,c){for(var v=-1,C=r.criteria,P=s.criteria,M=C.length,H=c.length;++v<M;){var q=eh(C[v],P[v]);if(q){if(v>=H)return q;var le=c[v];return q*(le=="desc"?-1:1)}}return r.index-s.index}function th(r,s,c,v){for(var C=-1,P=r.length,M=c.length,H=-1,q=s.length,le=Dt(P-M,0),ce=V(q+le),fe=!v;++H<q;)ce[H]=s[H];for(;++C<M;)(fe||C<P)&&(ce[c[C]]=r[C]);for(;le--;)ce[H++]=r[C++];return ce}function nh(r,s,c,v){for(var C=-1,P=r.length,M=-1,H=c.length,q=-1,le=s.length,ce=Dt(P-H,0),fe=V(ce+le),xe=!v;++C<ce;)fe[C]=r[C];for(var Re=C;++q<le;)fe[Re+q]=s[q];for(;++M<H;)(xe||C<P)&&(fe[Re+c[M]]=r[C++]);return fe}function sn(r,s){var c=-1,v=r.length;for(s||(s=V(v));++c<v;)s[c]=r[c];return s}function ur(r,s,c,v){var C=!c;c||(c={});for(var P=-1,M=s.length;++P<M;){var H=s[P],q=v?v(c[H],r[H],H,c,r):n;q===n&&(q=r[H]),C?Cr(c,H,q):ls(c,H,q)}return c}function w1(r,s){return ur(r,Zl(r),s)}function x1(r,s){return ur(r,gh(r),s)}function Va(r,s){return function(c,v){var C=Ye(c)?j:$0,P=s?s():{};return C(c,r,Be(v,2),P)}}function mo(r){return Qe(function(s,c){var v=-1,C=c.length,P=C>1?c[C-1]:n,M=C>2?c[2]:n;for(P=r.length>3&&typeof P=="function"?(C--,P):n,M&&Xt(c[0],c[1],M)&&(P=C<3?n:P,C=1),s=Se(s);++v<C;){var H=c[v];H&&r(s,H,v,P)}return s})}function rh(r,s){return function(c,v){if(c==null)return c;if(!an(c))return r(c,v);for(var C=c.length,P=s?C:-1,M=Se(c);(s?P--:++P<C)&&v(M[P],P,M)!==!1;);return c}}function ih(r){return function(s,c,v){for(var C=-1,P=Se(s),M=v(s),H=M.length;H--;){var q=M[r?H:++C];if(c(P[q],q,P)===!1)break}return s}}function S1(r,s,c){var v=s&B,C=ps(r);function P(){var M=this&&this!==yt&&this instanceof P?C:r;return M.apply(v?c:this,arguments)}return P}function oh(r){return function(s){s=at(s);var c=on(s)?Yt(s):n,v=c?c[0]:s.charAt(0),C=c?ri(c,1).join(""):s.slice(1);return v[r]()+C}}function vo(r){return function(s){return ze(rp(np(s).replace(Ko,"")),r,"")}}function ps(r){return function(){var s=arguments;switch(s.length){case 0:return new r;case 1:return new r(s[0]);case 2:return new r(s[0],s[1]);case 3:return new r(s[0],s[1],s[2]);case 4:return new r(s[0],s[1],s[2],s[3]);case 5:return new r(s[0],s[1],s[2],s[3],s[4]);case 6:return new r(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new r(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var c=go(r.prototype),v=r.apply(c,s);return wt(v)?v:c}}function _1(r,s,c){var v=ps(r);function C(){for(var P=arguments.length,M=V(P),H=P,q=yo(C);H--;)M[H]=arguments[H];var le=P<3&&M[0]!==q&&M[P-1]!==q?[]:yn(M,q);if(P-=le.length,P<c)return ch(r,s,Wa,C.placeholder,n,M,le,n,n,c-P);var ce=this&&this!==yt&&this instanceof C?v:r;return T(ce,this,M)}return C}function sh(r){return function(s,c,v){var C=Se(s);if(!an(s)){var P=Be(c,3);s=Rt(s),c=function(H){return P(C[H],H,C)}}var M=r(s,c,v);return M>-1?C[P?s[M]:M]:n}}function ah(r){return Tr(function(s){var c=s.length,v=c,C=Mn.prototype.thru;for(r&&s.reverse();v--;){var P=s[v];if(typeof P!="function")throw new Ze(l);if(C&&!M&&za(P)=="wrapper")var M=new Mn([],!0)}for(v=M?v:c;++v<c;){P=s[v];var H=za(P),q=H=="wrapper"?Xl(P):n;q&&ec(q[0])&&q[1]==(g|N|$|ee)&&!q[4].length&&q[9]==1?M=M[za(q[0])].apply(M,q[3]):M=P.length==1&&ec(P)?M[H]():M.thru(P)}return function(){var le=arguments,ce=le[0];if(M&&le.length==1&&Ye(ce))return M.plant(ce).value();for(var fe=0,xe=c?s[fe].apply(this,le):ce;++fe<c;)xe=s[fe].call(this,xe);return xe}})}function Wa(r,s,c,v,C,P,M,H,q,le){var ce=s&g,fe=s&B,xe=s&k,Re=s&(N|Y),Fe=s&Z,Je=xe?n:ps(r);function Ve(){for(var nt=arguments.length,it=V(nt),xn=nt;xn--;)it[xn]=arguments[xn];if(Re)var Jt=yo(Ve),Sn=vn(it,Jt);if(v&&(it=th(it,v,C,Re)),P&&(it=nh(it,P,M,Re)),nt-=Sn,Re&&nt<le){var Et=yn(it,Jt);return ch(r,s,Wa,Ve.placeholder,c,it,Et,H,q,le-nt)}var Kn=fe?c:this,kr=xe?Kn[r]:r;return nt=it.length,H?it=$1(it,H):Fe&&nt>1&&it.reverse(),ce&&q<nt&&(it.length=q),this&&this!==yt&&this instanceof Ve&&(kr=Je||ps(kr)),kr.apply(Kn,it)}return Ve}function uh(r,s){return function(c,v){return J0(c,r,s(v),{})}}function Ha(r,s){return function(c,v){var C;if(c===n&&v===n)return s;if(c!==n&&(C=c),v!==n){if(C===n)return v;typeof c=="string"||typeof v=="string"?(c=bn(c),v=bn(v)):(c=Yd(c),v=Yd(v)),C=r(c,v)}return C}}function ql(r){return Tr(function(s){return s=_e(s,qt(Be())),Qe(function(c){var v=this;return r(s,function(C){return T(C,v,c)})})})}function $a(r,s){s=s===n?" ":bn(s);var c=s.length;if(c<2)return c?Fl(s,r):s;var v=Fl(s,Aa(r/sr(s)));return on(s)?ri(Yt(v),0,r).join(""):v.slice(0,r)}function C1(r,s,c,v){var C=s&B,P=ps(r);function M(){for(var H=-1,q=arguments.length,le=-1,ce=v.length,fe=V(ce+q),xe=this&&this!==yt&&this instanceof M?P:r;++le<ce;)fe[le]=v[le];for(;q--;)fe[le++]=arguments[++H];return T(xe,C?c:this,fe)}return M}function lh(r){return function(s,c,v){return v&&typeof v!="number"&&Xt(s,c,v)&&(c=v=n),s=Ar(s),c===n?(c=s,s=0):c=Ar(c),v=v===n?s<c?1:-1:Ar(v),l1(s,c,v,r)}}function Ua(r){return function(s,c){return typeof s=="string"&&typeof c=="string"||(s=Fn(s),c=Fn(c)),r(s,c)}}function ch(r,s,c,v,C,P,M,H,q,le){var ce=s&N,fe=ce?M:n,xe=ce?n:M,Re=ce?P:n,Fe=ce?n:P;s|=ce?$:ie,s&=~(ce?ie:$),s&F||(s&=~(B|k));var Je=[r,s,C,Re,fe,Fe,xe,H,q,le],Ve=c.apply(n,Je);return ec(r)&&Sh(Ve,Je),Ve.placeholder=v,_h(Ve,r,s)}function Yl(r){var s=Oe[r];return function(c,v){if(c=Fn(c),v=v==null?0:Wt(Ke(v),292),v&&_d(c)){var C=(at(c)+"e").split("e"),P=s(C[0]+"e"+(+C[1]+v));return C=(at(P)+"e").split("e"),+(C[0]+"e"+(+C[1]-v))}return s(c)}}var E1=ho&&1/xr(new ho([,-0]))[1]==de?function(r){return new ho(r)}:gc;function fh(r){return function(s){var c=Ht(s);return c==ht?co(s):c==hn?ns(s):zn(s,r(s))}}function Er(r,s,c,v,C,P,M,H){var q=s&k;if(!q&&typeof r!="function")throw new Ze(l);var le=v?v.length:0;if(le||(s&=~($|ie),v=C=n),M=M===n?M:Dt(Ke(M),0),H=H===n?H:Ke(H),le-=C?C.length:0,s&ie){var ce=v,fe=C;v=C=n}var xe=q?n:Xl(r),Re=[r,s,c,v,C,ce,fe,P,M,H];if(xe&&V1(Re,xe),r=Re[0],s=Re[1],c=Re[2],v=Re[3],C=Re[4],H=Re[9]=Re[9]===n?q?0:r.length:Dt(Re[9]-le,0),!H&&s&(N|Y)&&(s&=~(N|Y)),!s||s==B)var Fe=S1(r,s,c);else s==N||s==Y?Fe=_1(r,s,H):(s==$||s==(B|$))&&!C.length?Fe=C1(r,s,c,v):Fe=Wa.apply(n,Re);var Je=xe?zd:Sh;return _h(Je(Fe,Re),r,s)}function dh(r,s,c,v){return r===n||Gn(r,kt[c])&&!Ue.call(v,c)?s:r}function hh(r,s,c,v,C,P){return wt(r)&&wt(s)&&(P.set(s,r),ja(r,s,n,hh,P),P.delete(s)),r}function T1(r){return vs(r)?n:r}function ph(r,s,c,v,C,P){var M=c&I,H=r.length,q=s.length;if(H!=q&&!(M&&q>H))return!1;var le=P.get(r),ce=P.get(s);if(le&&ce)return le==s&&ce==r;var fe=-1,xe=!0,Re=c&A?new Ii:n;for(P.set(r,s),P.set(s,r);++fe<H;){var Fe=r[fe],Je=s[fe];if(v)var Ve=M?v(Je,Fe,fe,s,r,P):v(Fe,Je,fe,r,s,P);if(Ve!==n){if(Ve)continue;xe=!1;break}if(Re){if(!bt(s,function(nt,it){if(!Pi(Re,it)&&(Fe===nt||C(Fe,nt,c,v,P)))return Re.push(it)})){xe=!1;break}}else if(!(Fe===Je||C(Fe,Je,c,v,P))){xe=!1;break}}return P.delete(r),P.delete(s),xe}function O1(r,s,c,v,C,P,M){switch(c){case Hr:if(r.byteLength!=s.byteLength||r.byteOffset!=s.byteOffset)return!1;r=r.buffer,s=s.buffer;case Si:return!(r.byteLength!=s.byteLength||!P(new Ea(r),new Ea(s)));case je:case $e:case kn:return Gn(+r,+s);case Xe:return r.name==s.name&&r.message==s.message;case wi:case jt:return r==s+"";case ht:var H=co;case hn:var q=v&I;if(H||(H=xr),r.size!=s.size&&!q)return!1;var le=M.get(r);if(le)return le==s;v|=A,M.set(r,s);var ce=ph(H(r),H(s),v,C,P,M);return M.delete(r),ce;case Zn:if(us)return us.call(r)==us.call(s)}return!1}function P1(r,s,c,v,C,P){var M=c&I,H=Gl(r),q=H.length,le=Gl(s),ce=le.length;if(q!=ce&&!M)return!1;for(var fe=q;fe--;){var xe=H[fe];if(!(M?xe in s:Ue.call(s,xe)))return!1}var Re=P.get(r),Fe=P.get(s);if(Re&&Fe)return Re==s&&Fe==r;var Je=!0;P.set(r,s),P.set(s,r);for(var Ve=M;++fe<q;){xe=H[fe];var nt=r[xe],it=s[xe];if(v)var xn=M?v(it,nt,xe,s,r,P):v(nt,it,xe,r,s,P);if(!(xn===n?nt===it||C(nt,it,c,v,P):xn)){Je=!1;break}Ve||(Ve=xe=="constructor")}if(Je&&!Ve){var Jt=r.constructor,Sn=s.constructor;Jt!=Sn&&"constructor"in r&&"constructor"in s&&!(typeof Jt=="function"&&Jt instanceof Jt&&typeof Sn=="function"&&Sn instanceof Sn)&&(Je=!1)}return P.delete(r),P.delete(s),Je}function Tr(r){return nc(wh(r,n,Ah),r+"")}function Gl(r){return Ld(r,Rt,Zl)}function Kl(r){return Ld(r,un,gh)}var Xl=Da?function(r){return Da.get(r)}:gc;function za(r){for(var s=r.name+"",c=po[s],v=Ue.call(po,s)?c.length:0;v--;){var C=c[v],P=C.func;if(P==null||P==r)return C.name}return s}function yo(r){var s=Ue.call(O,"placeholder")?O:r;return s.placeholder}function Be(){var r=O.iteratee||hc;return r=r===hc?jd:r,arguments.length?r(arguments[0],arguments[1]):r}function qa(r,s){var c=r.__data__;return N1(s)?c[typeof s=="string"?"string":"hash"]:c.map}function Jl(r){for(var s=Rt(r),c=s.length;c--;){var v=s[c],C=r[v];s[c]=[v,C,yh(C)]}return s}function Mi(r,s){var c=wa(r,s);return Nd(c)?c:n}function A1(r){var s=Ue.call(r,ki),c=r[ki];try{r[ki]=n;var v=!0}catch{}var C=_a.call(r);return v&&(s?r[ki]=c:delete r[ki]),C}var Zl=El?function(r){return r==null?[]:(r=Se(r),oe(El(r),function(s){return xd.call(r,s)}))}:mc,gh=El?function(r){for(var s=[];r;)qe(s,Zl(r)),r=Ta(r);return s}:mc,Ht=Kt;(Tl&&Ht(new Tl(new ArrayBuffer(1)))!=Hr||os&&Ht(new os)!=ht||Ol&&Ht(Ol.resolve())!=Dn||ho&&Ht(new ho)!=hn||ss&&Ht(new ss)!=De)&&(Ht=function(r){var s=Kt(r),c=s==en?r.constructor:n,v=c?Ni(c):"";if(v)switch(v){case f0:return Hr;case d0:return ht;case h0:return Dn;case p0:return hn;case g0:return De}return s});function k1(r,s,c){for(var v=-1,C=c.length;++v<C;){var P=c[v],M=P.size;switch(P.type){case"drop":r+=M;break;case"dropRight":s-=M;break;case"take":s=Wt(s,r+M);break;case"takeRight":r=Dt(r,s-M);break}}return{start:r,end:s}}function D1(r){var s=r.match(ol);return s?s[1].split(sl):[]}function mh(r,s,c){s=ni(s,r);for(var v=-1,C=s.length,P=!1;++v<C;){var M=lr(s[v]);if(!(P=r!=null&&c(r,M)))break;r=r[M]}return P||++v!=C?P:(C=r==null?0:r.length,!!C&&Qa(C)&&Or(M,C)&&(Ye(r)||ji(r)))}function I1(r){var s=r.length,c=new r.constructor(s);return s&&typeof r[0]=="string"&&Ue.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function vh(r){return typeof r.constructor=="function"&&!gs(r)?go(Ta(r)):{}}function R1(r,s,c){var v=r.constructor;switch(s){case Si:return zl(r);case je:case $e:return new v(+r);case Hr:return m1(r,c);case Mo:case Qi:case eo:case mr:case pn:case Hn:case Qn:case No:case $r:return Qd(r,c);case ht:return new v;case kn:case jt:return new v(r);case wi:return v1(r);case hn:return new v;case Zn:return y1(r)}}function L1(r,s){var c=s.length;if(!c)return r;var v=c-1;return s[v]=(c>1?"& ":"")+s[v],s=s.join(c>2?", ":" "),r.replace(il,`{
|
|
38
38
|
/* [wrapped with `+s+`] */
|
|
39
|
-
`)}function N1(r){return Ye(r)||ji(r)||!!(_d&&r&&r[_d])}function Or(r,s){var c=typeof r;return s=s??pe,!!s&&(c=="number"||c!="symbol"&&ro.test(r))&&r>-1&&r%1==0&&r<s}function Xt(r,s,c){if(!wt(c))return!1;var v=typeof s;return(v=="number"?an(c)&&Or(s,c.length):v=="string"&&s in c)?Gn(c[s],r):!1}function Ql(r,s){if(Ye(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||wn(r)?!0:Xs.test(r)||!rl.test(r)||s!=null&&r in Se(s)}function j1(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function ec(r){var s=za(r),c=O[s];if(typeof c!="function"||!(s in rt.prototype))return!1;if(r===c)return!0;var v=Xl(c);return!!v&&r===v[0]}function B1(r){return!!bd&&bd in r}var F1=Gt?Pr:vc;function gs(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||kt;return r===c}function bh(r){return r===r&&!wt(r)}function wh(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in Se(c))}}function V1(r){var s=Ja(r,function(v){return c.size===m&&c.clear(),v}),c=s.cache;return s}function W1(r,s){var c=r[1],v=s[1],C=c|v,P=C<(B|k|g),M=v==g&&c==N||v==g&&c==ee&&r[7].length<=s[8]||v==(g|ee)&&s[7].length<=s[8]&&c==N;if(!(P||M))return r;v&B&&(r[2]=s[2],C|=c&B?0:F);var H=s[3];if(H){var q=r[3];r[3]=q?nh(q,H,s[4]):H,r[4]=q?yn(r[3],b):s[4]}return H=s[5],H&&(q=r[5],r[5]=q?rh(q,H,s[6]):H,r[6]=q?yn(r[5],b):s[6]),H=s[7],H&&(r[7]=H),v&g&&(r[8]=r[8]==null?s[8]:Wt(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=C,r}function H1(r){var s=[];if(r!=null)for(var c in Se(r))s.push(c);return s}function $1(r){return _a.call(r)}function xh(r,s,c){return s=Dt(s===n?r.length-1:s,0),function(){for(var v=arguments,C=-1,P=Dt(v.length-s,0),M=V(P);++C<P;)M[C]=v[s+C];C=-1;for(var H=V(s+1);++C<s;)H[C]=v[C];return H[s]=c(M),T(r,this,H)}}function Sh(r,s){return s.length<2?r:Li(r,jn(s,0,-1))}function U1(r,s){for(var c=r.length,v=Wt(s.length,c),C=sn(r);v--;){var P=s[v];r[v]=Or(P,c)?C[P]:n}return r}function tc(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var _h=Eh(qd),ms=o0||function(r,s){return yt.setTimeout(r,s)},nc=Eh(h1);function Ch(r,s,c){var v=s+"";return nc(r,M1(v,z1(I1(v),c)))}function Eh(r){var s=0,c=0;return function(){var v=l0(),C=Te-(v-c);if(c=v,C>0){if(++s>=De)return arguments[0]}else s=0;return r.apply(n,arguments)}}function Ya(r,s){var c=-1,v=r.length,C=v-1;for(s=s===n?v:s;++c<s;){var P=Bl(c,C),M=r[P];r[P]=r[c],r[c]=M}return r.length=s,r}var Th=V1(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(Js,function(c,v,C,P){s.push(C?P.replace(ul,"$1"):v||c)}),s});function lr(r){if(typeof r=="string"||wn(r))return r;var s=r+"";return s=="0"&&1/r==-de?"-0":s}function Ni(r){if(r!=null){try{return qn.call(r)}catch{}try{return r+""}catch{}}return""}function z1(r,s){return L(ye,function(c){var v="_."+c[0];s&c[1]&&!X(r,v)&&r.push(v)}),r.sort()}function Oh(r){if(r instanceof rt)return r.clone();var s=new Mn(r.__wrapped__,r.__chain__);return s.__actions__=sn(r.__actions__),s.__index__=r.__index__,s.__values__=r.__values__,s}function q1(r,s,c){(c?Xt(r,s,c):s===n)?s=1:s=Dt(Ke(s),0);var v=r==null?0:r.length;if(!v||s<1)return[];for(var C=0,P=0,M=V(Aa(v/s));C<v;)M[P++]=jn(r,C,C+=s);return M}function Y1(r){for(var s=-1,c=r==null?0:r.length,v=0,C=[];++s<c;){var P=r[s];P&&(C[v++]=P)}return C}function G1(){var r=arguments.length;if(!r)return[];for(var s=V(r-1),c=arguments[0],v=r;v--;)s[v-1]=arguments[v];return qe(Ye(c)?sn(c):[c],Nt(s,1))}var K1=Qe(function(r,s){return Ct(r)?cs(r,Nt(s,1,Ct,!0)):[]}),X1=Qe(function(r,s){var c=Bn(s);return Ct(c)&&(c=n),Ct(r)?cs(r,Nt(s,1,Ct,!0),Be(c,2)):[]}),J1=Qe(function(r,s){var c=Bn(s);return Ct(c)&&(c=n),Ct(r)?cs(r,Nt(s,1,Ct,!0),n,c):[]});function Z1(r,s,c){var v=r==null?0:r.length;return v?(s=c||s===n?1:Ke(s),jn(r,s<0?0:s,v)):[]}function Q1(r,s,c){var v=r==null?0:r.length;return v?(s=c||s===n?1:Ke(s),s=v-s,jn(r,0,s<0?0:s)):[]}function ew(r,s){return r&&r.length?Fa(r,Be(s,3),!0,!0):[]}function tw(r,s){return r&&r.length?Fa(r,Be(s,3),!0):[]}function nw(r,s,c,v){var C=r==null?0:r.length;return C?(c&&typeof c!="number"&&Xt(r,s,c)&&(c=0,v=C),G0(r,s,c,v)):[]}function Ph(r,s,c){var v=r==null?0:r.length;if(!v)return-1;var C=c==null?0:Ke(c);return C<0&&(C=Dt(v+C,0)),tt(r,Be(s,3),C)}function Ah(r,s,c){var v=r==null?0:r.length;if(!v)return-1;var C=v-1;return c!==n&&(C=Ke(c),C=c<0?Dt(v+C,0):Wt(C,v-1)),tt(r,Be(s,3),C,!0)}function kh(r){var s=r==null?0:r.length;return s?Nt(r,1):[]}function rw(r){var s=r==null?0:r.length;return s?Nt(r,de):[]}function iw(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:Ke(s),Nt(r,s)):[]}function ow(r){for(var s=-1,c=r==null?0:r.length,v={};++s<c;){var C=r[s];v[C[0]]=C[1]}return v}function Dh(r){return r&&r.length?r[0]:n}function sw(r,s,c){var v=r==null?0:r.length;if(!v)return-1;var C=c==null?0:Ke(c);return C<0&&(C=Dt(v+C,0)),ct(r,s,C)}function aw(r){var s=r==null?0:r.length;return s?jn(r,0,-1):[]}var uw=Qe(function(r){var s=_e(r,$l);return s.length&&s[0]===r[0]?Rl(s):[]}),lw=Qe(function(r){var s=Bn(r),c=_e(r,$l);return s===Bn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?Rl(c,Be(s,2)):[]}),cw=Qe(function(r){var s=Bn(r),c=_e(r,$l);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?Rl(c,n,s):[]});function fw(r,s){return r==null?"":a0.call(r,s)}function Bn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function dw(r,s,c){var v=r==null?0:r.length;if(!v)return-1;var C=v;return c!==n&&(C=Ke(c),C=C<0?Dt(v+C,0):Wt(C,v-1)),s===s?fo(r,s,C):tt(r,lo,C,!0)}function hw(r,s){return r&&r.length?Hd(r,Ke(s)):n}var pw=Qe(Ih);function Ih(r,s){return r&&r.length&&s&&s.length?jl(r,s):r}function gw(r,s,c){return r&&r.length&&s&&s.length?jl(r,s,Be(c,2)):r}function mw(r,s,c){return r&&r.length&&s&&s.length?jl(r,s,n,c):r}var vw=Tr(function(r,s){var c=r==null?0:r.length,v=Al(r,s);return zd(r,_e(s,function(C){return Or(C,c)?+C:C}).sort(th)),v});function yw(r,s){var c=[];if(!(r&&r.length))return c;var v=-1,C=[],P=r.length;for(s=Be(s,3);++v<P;){var M=r[v];s(M,v,r)&&(c.push(M),C.push(v))}return zd(r,C),c}function rc(r){return r==null?r:f0.call(r)}function bw(r,s,c){var v=r==null?0:r.length;return v?(c&&typeof c!="number"&&Xt(r,s,c)?(s=0,c=v):(s=s==null?0:Ke(s),c=c===n?v:Ke(c)),jn(r,s,c)):[]}function ww(r,s){return Ba(r,s)}function xw(r,s,c){return Vl(r,s,Be(c,2))}function Sw(r,s){var c=r==null?0:r.length;if(c){var v=Ba(r,s);if(v<c&&Gn(r[v],s))return v}return-1}function _w(r,s){return Ba(r,s,!0)}function Cw(r,s,c){return Vl(r,s,Be(c,2),!0)}function Ew(r,s){var c=r==null?0:r.length;if(c){var v=Ba(r,s,!0)-1;if(Gn(r[v],s))return v}return-1}function Tw(r){return r&&r.length?Yd(r):[]}function Ow(r,s){return r&&r.length?Yd(r,Be(s,2)):[]}function Pw(r){var s=r==null?0:r.length;return s?jn(r,1,s):[]}function Aw(r,s,c){return r&&r.length?(s=c||s===n?1:Ke(s),jn(r,0,s<0?0:s)):[]}function kw(r,s,c){var v=r==null?0:r.length;return v?(s=c||s===n?1:Ke(s),s=v-s,jn(r,s<0?0:s,v)):[]}function Dw(r,s){return r&&r.length?Fa(r,Be(s,3),!1,!0):[]}function Iw(r,s){return r&&r.length?Fa(r,Be(s,3)):[]}var Rw=Qe(function(r){return ti(Nt(r,1,Ct,!0))}),Lw=Qe(function(r){var s=Bn(r);return Ct(s)&&(s=n),ti(Nt(r,1,Ct,!0),Be(s,2))}),Mw=Qe(function(r){var s=Bn(r);return s=typeof s=="function"?s:n,ti(Nt(r,1,Ct,!0),n,s)});function Nw(r){return r&&r.length?ti(r):[]}function jw(r,s){return r&&r.length?ti(r,Be(s,2)):[]}function Bw(r,s){return s=typeof s=="function"?s:n,r&&r.length?ti(r,n,s):[]}function ic(r){if(!(r&&r.length))return[];var s=0;return r=oe(r,function(c){if(Ct(c))return s=Dt(c.length,s),!0}),Oi(s,function(c){return _e(r,wr(c))})}function Rh(r,s){if(!(r&&r.length))return[];var c=ic(r);return s==null?c:_e(c,function(v){return T(s,n,v)})}var Fw=Qe(function(r,s){return Ct(r)?cs(r,s):[]}),Vw=Qe(function(r){return Hl(oe(r,Ct))}),Ww=Qe(function(r){var s=Bn(r);return Ct(s)&&(s=n),Hl(oe(r,Ct),Be(s,2))}),Hw=Qe(function(r){var s=Bn(r);return s=typeof s=="function"?s:n,Hl(oe(r,Ct),n,s)}),$w=Qe(ic);function Uw(r,s){return Jd(r||[],s||[],ls)}function zw(r,s){return Jd(r||[],s||[],hs)}var qw=Qe(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,Rh(r,c)});function Lh(r){var s=O(r);return s.__chain__=!0,s}function Yw(r,s){return s(r),r}function Ga(r,s){return s(r)}var Gw=Tr(function(r){var s=r.length,c=s?r[0]:0,v=this.__wrapped__,C=function(P){return Al(P,r)};return s>1||this.__actions__.length||!(v instanceof rt)||!Or(c)?this.thru(C):(v=v.slice(c,+c+(s?1:0)),v.__actions__.push({func:Ga,args:[C],thisArg:n}),new Mn(v,this.__chain__).thru(function(P){return s&&!P.length&&P.push(n),P}))});function Kw(){return Lh(this)}function Xw(){return new Mn(this.value(),this.__chain__)}function Jw(){this.__values__===n&&(this.__values__=Gh(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function Zw(){return this}function Qw(r){for(var s,c=this;c instanceof Ra;){var v=Oh(c);v.__index__=0,v.__values__=n,s?C.__wrapped__=v:s=v;var C=v;c=c.__wrapped__}return C.__wrapped__=r,s}function ex(){var r=this.__wrapped__;if(r instanceof rt){var s=r;return this.__actions__.length&&(s=new rt(this)),s=s.reverse(),s.__actions__.push({func:Ga,args:[rc],thisArg:n}),new Mn(s,this.__chain__)}return this.thru(rc)}function tx(){return Xd(this.__wrapped__,this.__actions__)}var nx=Va(function(r,s,c){Ue.call(r,c)?++r[c]:Cr(r,c,1)});function rx(r,s,c){var v=Ye(r)?ne:Y0;return c&&Xt(r,s,c)&&(s=n),v(r,Be(s,3))}function ix(r,s){var c=Ye(r)?oe:Rd;return c(r,Be(s,3))}var ox=ah(Ph),sx=ah(Ah);function ax(r,s){return Nt(Ka(r,s),1)}function ux(r,s){return Nt(Ka(r,s),de)}function lx(r,s,c){return c=c===n?1:Ke(c),Nt(Ka(r,s),c)}function Mh(r,s){var c=Ye(r)?L:ei;return c(r,Be(s,3))}function Nh(r,s){var c=Ye(r)?z:Id;return c(r,Be(s,3))}var cx=Va(function(r,s,c){Ue.call(r,c)?r[c].push(s):Cr(r,c,[s])});function fx(r,s,c,v){r=an(r)?r:wo(r),c=c&&!v?Ke(c):0;var C=r.length;return c<0&&(c=Dt(C+c,0)),eu(r)?c<=C&&r.indexOf(s,c)>-1:!!C&&ct(r,s,c)>-1}var dx=Qe(function(r,s,c){var v=-1,C=typeof s=="function",P=an(r)?V(r.length):[];return ei(r,function(M){P[++v]=C?T(s,M,c):fs(M,s,c)}),P}),hx=Va(function(r,s,c){Cr(r,c,s)});function Ka(r,s){var c=Ye(r)?_e:Fd;return c(r,Be(s,3))}function px(r,s,c,v){return r==null?[]:(Ye(s)||(s=s==null?[]:[s]),c=v?n:c,Ye(c)||(c=c==null?[]:[c]),$d(r,s,c))}var gx=Va(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function mx(r,s,c){var v=Ye(r)?ze:Un,C=arguments.length<3;return v(r,Be(s,4),c,C,ei)}function vx(r,s,c){var v=Ye(r)?Pt:Un,C=arguments.length<3;return v(r,Be(s,4),c,C,Id)}function yx(r,s){var c=Ye(r)?oe:Rd;return c(r,Za(Be(s,3)))}function bx(r){var s=Ye(r)?Pd:f1;return s(r)}function wx(r,s,c){(c?Xt(r,s,c):s===n)?s=1:s=Ke(s);var v=Ye(r)?H0:d1;return v(r,s)}function xx(r){var s=Ye(r)?$0:p1;return s(r)}function Sx(r){if(r==null)return 0;if(an(r))return eu(r)?sr(r):r.length;var s=Ht(r);return s==ht||s==hn?r.size:Ml(r).length}function _x(r,s,c){var v=Ye(r)?bt:g1;return c&&Xt(r,s,c)&&(s=n),v(r,Be(s,3))}var Cx=Qe(function(r,s){if(r==null)return[];var c=s.length;return c>1&&Xt(r,s[0],s[1])?s=[]:c>2&&Xt(s[0],s[1],s[2])&&(s=[s[0]]),$d(r,Nt(s,1),[])}),Xa=i0||function(){return yt.Date.now()};function Ex(r,s){if(typeof s!="function")throw new Ze(l);return r=Ke(r),function(){if(--r<1)return s.apply(this,arguments)}}function jh(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Er(r,g,n,n,n,n,s)}function Bh(r,s){var c;if(typeof s!="function")throw new Ze(l);return r=Ke(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var oc=Qe(function(r,s,c){var v=B;if(c.length){var C=yn(c,yo(oc));v|=$}return Er(r,v,s,c,C)}),Fh=Qe(function(r,s,c){var v=B|k;if(c.length){var C=yn(c,yo(Fh));v|=$}return Er(s,v,r,c,C)});function Vh(r,s,c){s=c?n:s;var v=Er(r,N,n,n,n,n,n,s);return v.placeholder=Vh.placeholder,v}function Wh(r,s,c){s=c?n:s;var v=Er(r,Y,n,n,n,n,n,s);return v.placeholder=Wh.placeholder,v}function Hh(r,s,c){var v,C,P,M,H,q,le=0,ce=!1,fe=!1,xe=!0;if(typeof r!="function")throw new Ze(l);s=Fn(s)||0,wt(c)&&(ce=!!c.leading,fe="maxWait"in c,P=fe?Dt(Fn(c.maxWait)||0,s):P,xe="trailing"in c?!!c.trailing:xe);function Re(Et){var Kn=v,kr=C;return v=C=n,le=Et,M=r.apply(kr,Kn),M}function Fe(Et){return le=Et,H=ms(nt,s),ce?Re(Et):M}function Je(Et){var Kn=Et-q,kr=Et-le,ap=s-Kn;return fe?Wt(ap,P-kr):ap}function Ve(Et){var Kn=Et-q,kr=Et-le;return q===n||Kn>=s||Kn<0||fe&&kr>=P}function nt(){var Et=Xa();if(Ve(Et))return it(Et);H=ms(nt,Je(Et))}function it(Et){return H=n,xe&&v?Re(Et):(v=C=n,M)}function xn(){H!==n&&Zd(H),le=0,v=q=C=H=n}function Jt(){return H===n?M:it(Xa())}function Sn(){var Et=Xa(),Kn=Ve(Et);if(v=arguments,C=this,q=Et,Kn){if(H===n)return Fe(q);if(fe)return Zd(H),H=ms(nt,s),Re(q)}return H===n&&(H=ms(nt,s)),M}return Sn.cancel=xn,Sn.flush=Jt,Sn}var Tx=Qe(function(r,s){return Dd(r,1,s)}),Ox=Qe(function(r,s,c){return Dd(r,Fn(s)||0,c)});function Px(r){return Er(r,Z)}function Ja(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Ze(l);var c=function(){var v=arguments,C=s?s.apply(this,v):v[0],P=c.cache;if(P.has(C))return P.get(C);var M=r.apply(this,v);return c.cache=P.set(C,M)||P,M};return c.cache=new(Ja.Cache||_r),c}Ja.Cache=_r;function Za(r){if(typeof r!="function")throw new Ze(l);return function(){var s=arguments;switch(s.length){case 0:return!r.call(this);case 1:return!r.call(this,s[0]);case 2:return!r.call(this,s[0],s[1]);case 3:return!r.call(this,s[0],s[1],s[2])}return!r.apply(this,s)}}function Ax(r){return Bh(2,r)}var kx=m1(function(r,s){s=s.length==1&&Ye(s[0])?_e(s[0],qt(Be())):_e(Nt(s,1),qt(Be()));var c=s.length;return Qe(function(v){for(var C=-1,P=Wt(v.length,c);++C<P;)v[C]=s[C].call(this,v[C]);return T(r,this,v)})}),sc=Qe(function(r,s){var c=yn(s,yo(sc));return Er(r,$,n,s,c)}),$h=Qe(function(r,s){var c=yn(s,yo($h));return Er(r,ie,n,s,c)}),Dx=Tr(function(r,s){return Er(r,ee,n,n,n,s)});function Ix(r,s){if(typeof r!="function")throw new Ze(l);return s=s===n?s:Ke(s),Qe(r,s)}function Rx(r,s){if(typeof r!="function")throw new Ze(l);return s=s==null?0:Dt(Ke(s),0),Qe(function(c){var v=c[s],C=ri(c,0,s);return v&&qe(C,v),T(r,this,C)})}function Lx(r,s,c){var v=!0,C=!0;if(typeof r!="function")throw new Ze(l);return wt(c)&&(v="leading"in c?!!c.leading:v,C="trailing"in c?!!c.trailing:C),Hh(r,s,{leading:v,maxWait:s,trailing:C})}function Mx(r){return jh(r,1)}function Nx(r,s){return sc(Ul(s),r)}function jx(){if(!arguments.length)return[];var r=arguments[0];return Ye(r)?r:[r]}function Bx(r){return Nn(r,E)}function Fx(r,s){return s=typeof s=="function"?s:n,Nn(r,E,s)}function Vx(r){return Nn(r,w|E)}function Wx(r,s){return s=typeof s=="function"?s:n,Nn(r,w|E,s)}function Hx(r,s){return s==null||kd(r,s,Rt(s))}function Gn(r,s){return r===s||r!==r&&s!==s}var $x=Ua(Il),Ux=Ua(function(r,s){return r>=s}),ji=Nd(function(){return arguments}())?Nd:function(r){return St(r)&&Ue.call(r,"callee")&&!Sd.call(r,"callee")},Ye=V.isArray,zx=u?qt(u):Q0;function an(r){return r!=null&&Qa(r.length)&&!Pr(r)}function Ct(r){return St(r)&&an(r)}function qx(r){return r===!0||r===!1||St(r)&&Kt(r)==je}var ii=s0||vc,Yx=f?qt(f):e1;function Gx(r){return St(r)&&r.nodeType===1&&!vs(r)}function Kx(r){if(r==null)return!0;if(an(r)&&(Ye(r)||typeof r=="string"||typeof r.splice=="function"||ii(r)||bo(r)||ji(r)))return!r.length;var s=Ht(r);if(s==ht||s==hn)return!r.size;if(gs(r))return!Ml(r).length;for(var c in r)if(Ue.call(r,c))return!1;return!0}function Xx(r,s){return ds(r,s)}function Jx(r,s,c){c=typeof c=="function"?c:n;var v=c?c(r,s):n;return v===n?ds(r,s,n,c):!!v}function ac(r){if(!St(r))return!1;var s=Kt(r);return s==Xe||s==Me||typeof r.message=="string"&&typeof r.name=="string"&&!vs(r)}function Zx(r){return typeof r=="number"&&Cd(r)}function Pr(r){if(!wt(r))return!1;var s=Kt(r);return s==ge||s==gt||s==Ie||s==tl}function Uh(r){return typeof r=="number"&&r==Ke(r)}function Qa(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=pe}function wt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function St(r){return r!=null&&typeof r=="object"}var zh=p?qt(p):n1;function Qx(r,s){return r===s||Ll(r,s,Jl(s))}function eS(r,s,c){return c=typeof c=="function"?c:n,Ll(r,s,Jl(s),c)}function tS(r){return qh(r)&&r!=+r}function nS(r){if(F1(r))throw new ue(a);return jd(r)}function rS(r){return r===null}function iS(r){return r==null}function qh(r){return typeof r=="number"||St(r)&&Kt(r)==kn}function vs(r){if(!St(r)||Kt(r)!=en)return!1;var s=Ta(r);if(s===null)return!0;var c=Ue.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&qn.call(c)==e0}var uc=y?qt(y):r1;function oS(r){return Uh(r)&&r>=-pe&&r<=pe}var Yh=x?qt(x):i1;function eu(r){return typeof r=="string"||!Ye(r)&&St(r)&&Kt(r)==jt}function wn(r){return typeof r=="symbol"||St(r)&&Kt(r)==Zn}var bo=S?qt(S):o1;function sS(r){return r===n}function aS(r){return St(r)&&Ht(r)==ke}function uS(r){return St(r)&&Kt(r)==Bt}var lS=Ua(Nl),cS=Ua(function(r,s){return r<=s});function Gh(r){if(!r)return[];if(an(r))return eu(r)?Yt(r):sn(r);if(is&&r[is])return or(r[is]());var s=Ht(r),c=s==ht?co:s==hn?xr:wo;return c(r)}function Ar(r){if(!r)return r===0?r:0;if(r=Fn(r),r===de||r===-de){var s=r<0?-1:1;return s*Ae}return r===r?r:0}function Ke(r){var s=Ar(r),c=s%1;return s===s?c?s-c:s:0}function Kh(r){return r?Ri(Ke(r),0,ae):0}function Fn(r){if(typeof r=="number")return r;if(wn(r))return Q;if(wt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=wt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=Ln(r);var c=ta.test(r);return c||Bo.test(r)?wl(r.slice(2),c?2:8):qr.test(r)?Q:+r}function Xh(r){return ur(r,un(r))}function fS(r){return r?Ri(Ke(r),-pe,pe):r===0?r:0}function at(r){return r==null?"":bn(r)}var dS=mo(function(r,s){if(gs(s)||an(s)){ur(s,Rt(s),r);return}for(var c in s)Ue.call(s,c)&&ls(r,c,s[c])}),Jh=mo(function(r,s){ur(s,un(s),r)}),tu=mo(function(r,s,c,v){ur(s,un(s),r,v)}),hS=mo(function(r,s,c,v){ur(s,Rt(s),r,v)}),pS=Tr(Al);function gS(r,s){var c=go(r);return s==null?c:Ad(c,s)}var mS=Qe(function(r,s){r=Se(r);var c=-1,v=s.length,C=v>2?s[2]:n;for(C&&Xt(s[0],s[1],C)&&(v=1);++c<v;)for(var P=s[c],M=un(P),H=-1,q=M.length;++H<q;){var le=M[H],ce=r[le];(ce===n||Gn(ce,kt[le])&&!Ue.call(r,le))&&(r[le]=P[le])}return r}),vS=Qe(function(r){return r.push(n,ph),T(Zh,n,r)});function yS(r,s){return rr(r,Be(s,3),ar)}function bS(r,s){return rr(r,Be(s,3),Dl)}function wS(r,s){return r==null?r:kl(r,Be(s,3),un)}function xS(r,s){return r==null?r:Ld(r,Be(s,3),un)}function SS(r,s){return r&&ar(r,Be(s,3))}function _S(r,s){return r&&Dl(r,Be(s,3))}function CS(r){return r==null?[]:Na(r,Rt(r))}function ES(r){return r==null?[]:Na(r,un(r))}function lc(r,s,c){var v=r==null?n:Li(r,s);return v===n?c:v}function TS(r,s){return r!=null&&vh(r,s,K0)}function cc(r,s){return r!=null&&vh(r,s,X0)}var OS=lh(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=_a.call(s)),r[s]=c},dc(ln)),PS=lh(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=_a.call(s)),Ue.call(r,s)?r[s].push(c):r[s]=[c]},Be),AS=Qe(fs);function Rt(r){return an(r)?Od(r):Ml(r)}function un(r){return an(r)?Od(r,!0):s1(r)}function kS(r,s){var c={};return s=Be(s,3),ar(r,function(v,C,P){Cr(c,s(v,C,P),v)}),c}function DS(r,s){var c={};return s=Be(s,3),ar(r,function(v,C,P){Cr(c,C,s(v,C,P))}),c}var IS=mo(function(r,s,c){ja(r,s,c)}),Zh=mo(function(r,s,c,v){ja(r,s,c,v)}),RS=Tr(function(r,s){var c={};if(r==null)return c;var v=!1;s=_e(s,function(P){return P=ni(P,r),v||(v=P.length>1),P}),ur(r,Kl(r),c),v&&(c=Nn(c,w|_|E,O1));for(var C=s.length;C--;)Wl(c,s[C]);return c});function LS(r,s){return Qh(r,Za(Be(s)))}var MS=Tr(function(r,s){return r==null?{}:u1(r,s)});function Qh(r,s){if(r==null)return{};var c=_e(Kl(r),function(v){return[v]});return s=Be(s),Ud(r,c,function(v,C){return s(v,C[0])})}function NS(r,s,c){s=ni(s,r);var v=-1,C=s.length;for(C||(C=1,r=n);++v<C;){var P=r==null?n:r[lr(s[v])];P===n&&(v=C,P=c),r=Pr(P)?P.call(r):P}return r}function jS(r,s,c){return r==null?r:hs(r,s,c)}function BS(r,s,c,v){return v=typeof v=="function"?v:n,r==null?r:hs(r,s,c,v)}var ep=dh(Rt),tp=dh(un);function FS(r,s,c){var v=Ye(r),C=v||ii(r)||bo(r);if(s=Be(s,4),c==null){var P=r&&r.constructor;C?c=v?new P:[]:wt(r)?c=Pr(P)?go(Ta(r)):{}:c={}}return(C?L:ar)(r,function(M,H,q){return s(c,M,H,q)}),c}function VS(r,s){return r==null?!0:Wl(r,s)}function WS(r,s,c){return r==null?r:Kd(r,s,Ul(c))}function HS(r,s,c,v){return v=typeof v=="function"?v:n,r==null?r:Kd(r,s,Ul(c),v)}function wo(r){return r==null?[]:es(r,Rt(r))}function $S(r){return r==null?[]:es(r,un(r))}function US(r,s,c){return c===n&&(c=s,s=n),c!==n&&(c=Fn(c),c=c===c?c:0),s!==n&&(s=Fn(s),s=s===s?s:0),Ri(Fn(r),s,c)}function zS(r,s,c){return s=Ar(s),c===n?(c=s,s=0):c=Ar(c),r=Fn(r),J0(r,s,c)}function qS(r,s,c){if(c&&typeof c!="boolean"&&Xt(r,s,c)&&(s=c=n),c===n&&(typeof s=="boolean"?(c=s,s=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&s===n?(r=0,s=1):(r=Ar(r),s===n?(s=r,r=0):s=Ar(s)),r>s){var v=r;r=s,s=v}if(c||r%1||s%1){var C=Ed();return Wt(r+C*(s-r+Zo("1e-"+((C+"").length-1))),s)}return Bl(r,s)}var YS=vo(function(r,s,c){return s=s.toLowerCase(),r+(c?np(s):s)});function np(r){return fc(at(r).toLowerCase())}function rp(r){return r=at(r),r&&r.replace(na,Jr).replace(pl,"")}function GS(r,s,c){r=at(r),s=bn(s);var v=r.length;c=c===n?v:Ri(Ke(c),0,v);var C=c;return c-=s.length,c>=0&&r.slice(c,C)==s}function KS(r){return r=at(r),r&&Ks.test(r)?r.replace(Ur,Sl):r}function XS(r){return r=at(r),r&&zr.test(r)?r.replace(er,"\\$&"):r}var JS=vo(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),ZS=vo(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),QS=sh("toLowerCase");function e_(r,s,c){r=at(r),s=Ke(s);var v=s?sr(r):0;if(!s||v>=s)return r;var C=(s-v)/2;return $a(ka(C),c)+r+$a(Aa(C),c)}function t_(r,s,c){r=at(r),s=Ke(s);var v=s?sr(r):0;return s&&v<s?r+$a(s-v,c):r}function n_(r,s,c){r=at(r),s=Ke(s);var v=s?sr(r):0;return s&&v<s?$a(s-v,c)+r:r}function r_(r,s,c){return c||s==null?s=0:s&&(s=+s),c0(at(r).replace(_i,""),s||0)}function i_(r,s,c){return(c?Xt(r,s,c):s===n)?s=1:s=Ke(s),Fl(at(r),s)}function o_(){var r=arguments,s=at(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var s_=vo(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function a_(r,s,c){return c&&typeof c!="number"&&Xt(r,s,c)&&(s=c=n),c=c===n?ae:c>>>0,c?(r=at(r),r&&(typeof s=="string"||s!=null&&!uc(s))&&(s=bn(s),!s&&on(r))?ri(Yt(r),0,c):r.split(s,c)):[]}var u_=vo(function(r,s,c){return r+(c?" ":"")+fc(s)});function l_(r,s,c){return r=at(r),c=c==null?0:Ri(Ke(c),0,r.length),s=bn(s),r.slice(c,c+s.length)==s}function c_(r,s,c){var v=O.templateSettings;c&&Xt(r,s,c)&&(s=n),r=at(r),s=tu({},s,v,hh);var C=tu({},s.imports,v.imports,hh),P=Rt(C),M=es(C,P),H,q,le=0,ce=s.interpolate||io,fe="__p += '",xe=Ge((s.escape||io).source+"|"+ce.source+"|"+(ce===to?Qs:io).source+"|"+(s.evaluate||io).source+"|$","g"),Re="//# sourceURL="+(Ue.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++bl+"]")+`
|
|
39
|
+
`)}function M1(r){return Ye(r)||ji(r)||!!(Sd&&r&&r[Sd])}function Or(r,s){var c=typeof r;return s=s??pe,!!s&&(c=="number"||c!="symbol"&&ro.test(r))&&r>-1&&r%1==0&&r<s}function Xt(r,s,c){if(!wt(c))return!1;var v=typeof s;return(v=="number"?an(c)&&Or(s,c.length):v=="string"&&s in c)?Gn(c[s],r):!1}function Ql(r,s){if(Ye(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||wn(r)?!0:Xs.test(r)||!rl.test(r)||s!=null&&r in Se(s)}function N1(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}function ec(r){var s=za(r),c=O[s];if(typeof c!="function"||!(s in rt.prototype))return!1;if(r===c)return!0;var v=Xl(c);return!!v&&r===v[0]}function j1(r){return!!yd&&yd in r}var B1=Gt?Pr:vc;function gs(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||kt;return r===c}function yh(r){return r===r&&!wt(r)}function bh(r,s){return function(c){return c==null?!1:c[r]===s&&(s!==n||r in Se(c))}}function F1(r){var s=Ja(r,function(v){return c.size===m&&c.clear(),v}),c=s.cache;return s}function V1(r,s){var c=r[1],v=s[1],C=c|v,P=C<(B|k|g),M=v==g&&c==N||v==g&&c==ee&&r[7].length<=s[8]||v==(g|ee)&&s[7].length<=s[8]&&c==N;if(!(P||M))return r;v&B&&(r[2]=s[2],C|=c&B?0:F);var H=s[3];if(H){var q=r[3];r[3]=q?th(q,H,s[4]):H,r[4]=q?yn(r[3],b):s[4]}return H=s[5],H&&(q=r[5],r[5]=q?nh(q,H,s[6]):H,r[6]=q?yn(r[5],b):s[6]),H=s[7],H&&(r[7]=H),v&g&&(r[8]=r[8]==null?s[8]:Wt(r[8],s[8])),r[9]==null&&(r[9]=s[9]),r[0]=s[0],r[1]=C,r}function W1(r){var s=[];if(r!=null)for(var c in Se(r))s.push(c);return s}function H1(r){return _a.call(r)}function wh(r,s,c){return s=Dt(s===n?r.length-1:s,0),function(){for(var v=arguments,C=-1,P=Dt(v.length-s,0),M=V(P);++C<P;)M[C]=v[s+C];C=-1;for(var H=V(s+1);++C<s;)H[C]=v[C];return H[s]=c(M),T(r,this,H)}}function xh(r,s){return s.length<2?r:Li(r,jn(s,0,-1))}function $1(r,s){for(var c=r.length,v=Wt(s.length,c),C=sn(r);v--;){var P=s[v];r[v]=Or(P,c)?C[P]:n}return r}function tc(r,s){if(!(s==="constructor"&&typeof r[s]=="function")&&s!="__proto__")return r[s]}var Sh=Ch(zd),ms=i0||function(r,s){return yt.setTimeout(r,s)},nc=Ch(d1);function _h(r,s,c){var v=s+"";return nc(r,L1(v,U1(D1(v),c)))}function Ch(r){var s=0,c=0;return function(){var v=u0(),C=Te-(v-c);if(c=v,C>0){if(++s>=Ae)return arguments[0]}else s=0;return r.apply(n,arguments)}}function Ya(r,s){var c=-1,v=r.length,C=v-1;for(s=s===n?v:s;++c<s;){var P=Bl(c,C),M=r[P];r[P]=r[c],r[c]=M}return r.length=s,r}var Eh=F1(function(r){var s=[];return r.charCodeAt(0)===46&&s.push(""),r.replace(Js,function(c,v,C,P){s.push(C?P.replace(ul,"$1"):v||c)}),s});function lr(r){if(typeof r=="string"||wn(r))return r;var s=r+"";return s=="0"&&1/r==-de?"-0":s}function Ni(r){if(r!=null){try{return qn.call(r)}catch{}try{return r+""}catch{}}return""}function U1(r,s){return L(ye,function(c){var v="_."+c[0];s&c[1]&&!X(r,v)&&r.push(v)}),r.sort()}function Th(r){if(r instanceof rt)return r.clone();var s=new Mn(r.__wrapped__,r.__chain__);return s.__actions__=sn(r.__actions__),s.__index__=r.__index__,s.__values__=r.__values__,s}function z1(r,s,c){(c?Xt(r,s,c):s===n)?s=1:s=Dt(Ke(s),0);var v=r==null?0:r.length;if(!v||s<1)return[];for(var C=0,P=0,M=V(Aa(v/s));C<v;)M[P++]=jn(r,C,C+=s);return M}function q1(r){for(var s=-1,c=r==null?0:r.length,v=0,C=[];++s<c;){var P=r[s];P&&(C[v++]=P)}return C}function Y1(){var r=arguments.length;if(!r)return[];for(var s=V(r-1),c=arguments[0],v=r;v--;)s[v-1]=arguments[v];return qe(Ye(c)?sn(c):[c],Nt(s,1))}var G1=Qe(function(r,s){return Ct(r)?cs(r,Nt(s,1,Ct,!0)):[]}),K1=Qe(function(r,s){var c=Bn(s);return Ct(c)&&(c=n),Ct(r)?cs(r,Nt(s,1,Ct,!0),Be(c,2)):[]}),X1=Qe(function(r,s){var c=Bn(s);return Ct(c)&&(c=n),Ct(r)?cs(r,Nt(s,1,Ct,!0),n,c):[]});function J1(r,s,c){var v=r==null?0:r.length;return v?(s=c||s===n?1:Ke(s),jn(r,s<0?0:s,v)):[]}function Z1(r,s,c){var v=r==null?0:r.length;return v?(s=c||s===n?1:Ke(s),s=v-s,jn(r,0,s<0?0:s)):[]}function Q1(r,s){return r&&r.length?Fa(r,Be(s,3),!0,!0):[]}function ew(r,s){return r&&r.length?Fa(r,Be(s,3),!0):[]}function tw(r,s,c,v){var C=r==null?0:r.length;return C?(c&&typeof c!="number"&&Xt(r,s,c)&&(c=0,v=C),Y0(r,s,c,v)):[]}function Oh(r,s,c){var v=r==null?0:r.length;if(!v)return-1;var C=c==null?0:Ke(c);return C<0&&(C=Dt(v+C,0)),tt(r,Be(s,3),C)}function Ph(r,s,c){var v=r==null?0:r.length;if(!v)return-1;var C=v-1;return c!==n&&(C=Ke(c),C=c<0?Dt(v+C,0):Wt(C,v-1)),tt(r,Be(s,3),C,!0)}function Ah(r){var s=r==null?0:r.length;return s?Nt(r,1):[]}function nw(r){var s=r==null?0:r.length;return s?Nt(r,de):[]}function rw(r,s){var c=r==null?0:r.length;return c?(s=s===n?1:Ke(s),Nt(r,s)):[]}function iw(r){for(var s=-1,c=r==null?0:r.length,v={};++s<c;){var C=r[s];v[C[0]]=C[1]}return v}function kh(r){return r&&r.length?r[0]:n}function ow(r,s,c){var v=r==null?0:r.length;if(!v)return-1;var C=c==null?0:Ke(c);return C<0&&(C=Dt(v+C,0)),ct(r,s,C)}function sw(r){var s=r==null?0:r.length;return s?jn(r,0,-1):[]}var aw=Qe(function(r){var s=_e(r,$l);return s.length&&s[0]===r[0]?Rl(s):[]}),uw=Qe(function(r){var s=Bn(r),c=_e(r,$l);return s===Bn(c)?s=n:c.pop(),c.length&&c[0]===r[0]?Rl(c,Be(s,2)):[]}),lw=Qe(function(r){var s=Bn(r),c=_e(r,$l);return s=typeof s=="function"?s:n,s&&c.pop(),c.length&&c[0]===r[0]?Rl(c,n,s):[]});function cw(r,s){return r==null?"":s0.call(r,s)}function Bn(r){var s=r==null?0:r.length;return s?r[s-1]:n}function fw(r,s,c){var v=r==null?0:r.length;if(!v)return-1;var C=v;return c!==n&&(C=Ke(c),C=C<0?Dt(v+C,0):Wt(C,v-1)),s===s?fo(r,s,C):tt(r,lo,C,!0)}function dw(r,s){return r&&r.length?Wd(r,Ke(s)):n}var hw=Qe(Dh);function Dh(r,s){return r&&r.length&&s&&s.length?jl(r,s):r}function pw(r,s,c){return r&&r.length&&s&&s.length?jl(r,s,Be(c,2)):r}function gw(r,s,c){return r&&r.length&&s&&s.length?jl(r,s,n,c):r}var mw=Tr(function(r,s){var c=r==null?0:r.length,v=Al(r,s);return Ud(r,_e(s,function(C){return Or(C,c)?+C:C}).sort(eh)),v});function vw(r,s){var c=[];if(!(r&&r.length))return c;var v=-1,C=[],P=r.length;for(s=Be(s,3);++v<P;){var M=r[v];s(M,v,r)&&(c.push(M),C.push(v))}return Ud(r,C),c}function rc(r){return r==null?r:c0.call(r)}function yw(r,s,c){var v=r==null?0:r.length;return v?(c&&typeof c!="number"&&Xt(r,s,c)?(s=0,c=v):(s=s==null?0:Ke(s),c=c===n?v:Ke(c)),jn(r,s,c)):[]}function bw(r,s){return Ba(r,s)}function ww(r,s,c){return Vl(r,s,Be(c,2))}function xw(r,s){var c=r==null?0:r.length;if(c){var v=Ba(r,s);if(v<c&&Gn(r[v],s))return v}return-1}function Sw(r,s){return Ba(r,s,!0)}function _w(r,s,c){return Vl(r,s,Be(c,2),!0)}function Cw(r,s){var c=r==null?0:r.length;if(c){var v=Ba(r,s,!0)-1;if(Gn(r[v],s))return v}return-1}function Ew(r){return r&&r.length?qd(r):[]}function Tw(r,s){return r&&r.length?qd(r,Be(s,2)):[]}function Ow(r){var s=r==null?0:r.length;return s?jn(r,1,s):[]}function Pw(r,s,c){return r&&r.length?(s=c||s===n?1:Ke(s),jn(r,0,s<0?0:s)):[]}function Aw(r,s,c){var v=r==null?0:r.length;return v?(s=c||s===n?1:Ke(s),s=v-s,jn(r,s<0?0:s,v)):[]}function kw(r,s){return r&&r.length?Fa(r,Be(s,3),!1,!0):[]}function Dw(r,s){return r&&r.length?Fa(r,Be(s,3)):[]}var Iw=Qe(function(r){return ti(Nt(r,1,Ct,!0))}),Rw=Qe(function(r){var s=Bn(r);return Ct(s)&&(s=n),ti(Nt(r,1,Ct,!0),Be(s,2))}),Lw=Qe(function(r){var s=Bn(r);return s=typeof s=="function"?s:n,ti(Nt(r,1,Ct,!0),n,s)});function Mw(r){return r&&r.length?ti(r):[]}function Nw(r,s){return r&&r.length?ti(r,Be(s,2)):[]}function jw(r,s){return s=typeof s=="function"?s:n,r&&r.length?ti(r,n,s):[]}function ic(r){if(!(r&&r.length))return[];var s=0;return r=oe(r,function(c){if(Ct(c))return s=Dt(c.length,s),!0}),Oi(s,function(c){return _e(r,wr(c))})}function Ih(r,s){if(!(r&&r.length))return[];var c=ic(r);return s==null?c:_e(c,function(v){return T(s,n,v)})}var Bw=Qe(function(r,s){return Ct(r)?cs(r,s):[]}),Fw=Qe(function(r){return Hl(oe(r,Ct))}),Vw=Qe(function(r){var s=Bn(r);return Ct(s)&&(s=n),Hl(oe(r,Ct),Be(s,2))}),Ww=Qe(function(r){var s=Bn(r);return s=typeof s=="function"?s:n,Hl(oe(r,Ct),n,s)}),Hw=Qe(ic);function $w(r,s){return Xd(r||[],s||[],ls)}function Uw(r,s){return Xd(r||[],s||[],hs)}var zw=Qe(function(r){var s=r.length,c=s>1?r[s-1]:n;return c=typeof c=="function"?(r.pop(),c):n,Ih(r,c)});function Rh(r){var s=O(r);return s.__chain__=!0,s}function qw(r,s){return s(r),r}function Ga(r,s){return s(r)}var Yw=Tr(function(r){var s=r.length,c=s?r[0]:0,v=this.__wrapped__,C=function(P){return Al(P,r)};return s>1||this.__actions__.length||!(v instanceof rt)||!Or(c)?this.thru(C):(v=v.slice(c,+c+(s?1:0)),v.__actions__.push({func:Ga,args:[C],thisArg:n}),new Mn(v,this.__chain__).thru(function(P){return s&&!P.length&&P.push(n),P}))});function Gw(){return Rh(this)}function Kw(){return new Mn(this.value(),this.__chain__)}function Xw(){this.__values__===n&&(this.__values__=Yh(this.value()));var r=this.__index__>=this.__values__.length,s=r?n:this.__values__[this.__index__++];return{done:r,value:s}}function Jw(){return this}function Zw(r){for(var s,c=this;c instanceof Ra;){var v=Th(c);v.__index__=0,v.__values__=n,s?C.__wrapped__=v:s=v;var C=v;c=c.__wrapped__}return C.__wrapped__=r,s}function Qw(){var r=this.__wrapped__;if(r instanceof rt){var s=r;return this.__actions__.length&&(s=new rt(this)),s=s.reverse(),s.__actions__.push({func:Ga,args:[rc],thisArg:n}),new Mn(s,this.__chain__)}return this.thru(rc)}function ex(){return Kd(this.__wrapped__,this.__actions__)}var tx=Va(function(r,s,c){Ue.call(r,c)?++r[c]:Cr(r,c,1)});function nx(r,s,c){var v=Ye(r)?ne:q0;return c&&Xt(r,s,c)&&(s=n),v(r,Be(s,3))}function rx(r,s){var c=Ye(r)?oe:Id;return c(r,Be(s,3))}var ix=sh(Oh),ox=sh(Ph);function sx(r,s){return Nt(Ka(r,s),1)}function ax(r,s){return Nt(Ka(r,s),de)}function ux(r,s,c){return c=c===n?1:Ke(c),Nt(Ka(r,s),c)}function Lh(r,s){var c=Ye(r)?L:ei;return c(r,Be(s,3))}function Mh(r,s){var c=Ye(r)?z:Dd;return c(r,Be(s,3))}var lx=Va(function(r,s,c){Ue.call(r,c)?r[c].push(s):Cr(r,c,[s])});function cx(r,s,c,v){r=an(r)?r:wo(r),c=c&&!v?Ke(c):0;var C=r.length;return c<0&&(c=Dt(C+c,0)),eu(r)?c<=C&&r.indexOf(s,c)>-1:!!C&&ct(r,s,c)>-1}var fx=Qe(function(r,s,c){var v=-1,C=typeof s=="function",P=an(r)?V(r.length):[];return ei(r,function(M){P[++v]=C?T(s,M,c):fs(M,s,c)}),P}),dx=Va(function(r,s,c){Cr(r,c,s)});function Ka(r,s){var c=Ye(r)?_e:Bd;return c(r,Be(s,3))}function hx(r,s,c,v){return r==null?[]:(Ye(s)||(s=s==null?[]:[s]),c=v?n:c,Ye(c)||(c=c==null?[]:[c]),Hd(r,s,c))}var px=Va(function(r,s,c){r[c?0:1].push(s)},function(){return[[],[]]});function gx(r,s,c){var v=Ye(r)?ze:Un,C=arguments.length<3;return v(r,Be(s,4),c,C,ei)}function mx(r,s,c){var v=Ye(r)?Pt:Un,C=arguments.length<3;return v(r,Be(s,4),c,C,Dd)}function vx(r,s){var c=Ye(r)?oe:Id;return c(r,Za(Be(s,3)))}function yx(r){var s=Ye(r)?Od:c1;return s(r)}function bx(r,s,c){(c?Xt(r,s,c):s===n)?s=1:s=Ke(s);var v=Ye(r)?W0:f1;return v(r,s)}function wx(r){var s=Ye(r)?H0:h1;return s(r)}function xx(r){if(r==null)return 0;if(an(r))return eu(r)?sr(r):r.length;var s=Ht(r);return s==ht||s==hn?r.size:Ml(r).length}function Sx(r,s,c){var v=Ye(r)?bt:p1;return c&&Xt(r,s,c)&&(s=n),v(r,Be(s,3))}var _x=Qe(function(r,s){if(r==null)return[];var c=s.length;return c>1&&Xt(r,s[0],s[1])?s=[]:c>2&&Xt(s[0],s[1],s[2])&&(s=[s[0]]),Hd(r,Nt(s,1),[])}),Xa=r0||function(){return yt.Date.now()};function Cx(r,s){if(typeof s!="function")throw new Ze(l);return r=Ke(r),function(){if(--r<1)return s.apply(this,arguments)}}function Nh(r,s,c){return s=c?n:s,s=r&&s==null?r.length:s,Er(r,g,n,n,n,n,s)}function jh(r,s){var c;if(typeof s!="function")throw new Ze(l);return r=Ke(r),function(){return--r>0&&(c=s.apply(this,arguments)),r<=1&&(s=n),c}}var oc=Qe(function(r,s,c){var v=B;if(c.length){var C=yn(c,yo(oc));v|=$}return Er(r,v,s,c,C)}),Bh=Qe(function(r,s,c){var v=B|k;if(c.length){var C=yn(c,yo(Bh));v|=$}return Er(s,v,r,c,C)});function Fh(r,s,c){s=c?n:s;var v=Er(r,N,n,n,n,n,n,s);return v.placeholder=Fh.placeholder,v}function Vh(r,s,c){s=c?n:s;var v=Er(r,Y,n,n,n,n,n,s);return v.placeholder=Vh.placeholder,v}function Wh(r,s,c){var v,C,P,M,H,q,le=0,ce=!1,fe=!1,xe=!0;if(typeof r!="function")throw new Ze(l);s=Fn(s)||0,wt(c)&&(ce=!!c.leading,fe="maxWait"in c,P=fe?Dt(Fn(c.maxWait)||0,s):P,xe="trailing"in c?!!c.trailing:xe);function Re(Et){var Kn=v,kr=C;return v=C=n,le=Et,M=r.apply(kr,Kn),M}function Fe(Et){return le=Et,H=ms(nt,s),ce?Re(Et):M}function Je(Et){var Kn=Et-q,kr=Et-le,sp=s-Kn;return fe?Wt(sp,P-kr):sp}function Ve(Et){var Kn=Et-q,kr=Et-le;return q===n||Kn>=s||Kn<0||fe&&kr>=P}function nt(){var Et=Xa();if(Ve(Et))return it(Et);H=ms(nt,Je(Et))}function it(Et){return H=n,xe&&v?Re(Et):(v=C=n,M)}function xn(){H!==n&&Jd(H),le=0,v=q=C=H=n}function Jt(){return H===n?M:it(Xa())}function Sn(){var Et=Xa(),Kn=Ve(Et);if(v=arguments,C=this,q=Et,Kn){if(H===n)return Fe(q);if(fe)return Jd(H),H=ms(nt,s),Re(q)}return H===n&&(H=ms(nt,s)),M}return Sn.cancel=xn,Sn.flush=Jt,Sn}var Ex=Qe(function(r,s){return kd(r,1,s)}),Tx=Qe(function(r,s,c){return kd(r,Fn(s)||0,c)});function Ox(r){return Er(r,Z)}function Ja(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new Ze(l);var c=function(){var v=arguments,C=s?s.apply(this,v):v[0],P=c.cache;if(P.has(C))return P.get(C);var M=r.apply(this,v);return c.cache=P.set(C,M)||P,M};return c.cache=new(Ja.Cache||_r),c}Ja.Cache=_r;function Za(r){if(typeof r!="function")throw new Ze(l);return function(){var s=arguments;switch(s.length){case 0:return!r.call(this);case 1:return!r.call(this,s[0]);case 2:return!r.call(this,s[0],s[1]);case 3:return!r.call(this,s[0],s[1],s[2])}return!r.apply(this,s)}}function Px(r){return jh(2,r)}var Ax=g1(function(r,s){s=s.length==1&&Ye(s[0])?_e(s[0],qt(Be())):_e(Nt(s,1),qt(Be()));var c=s.length;return Qe(function(v){for(var C=-1,P=Wt(v.length,c);++C<P;)v[C]=s[C].call(this,v[C]);return T(r,this,v)})}),sc=Qe(function(r,s){var c=yn(s,yo(sc));return Er(r,$,n,s,c)}),Hh=Qe(function(r,s){var c=yn(s,yo(Hh));return Er(r,ie,n,s,c)}),kx=Tr(function(r,s){return Er(r,ee,n,n,n,s)});function Dx(r,s){if(typeof r!="function")throw new Ze(l);return s=s===n?s:Ke(s),Qe(r,s)}function Ix(r,s){if(typeof r!="function")throw new Ze(l);return s=s==null?0:Dt(Ke(s),0),Qe(function(c){var v=c[s],C=ri(c,0,s);return v&&qe(C,v),T(r,this,C)})}function Rx(r,s,c){var v=!0,C=!0;if(typeof r!="function")throw new Ze(l);return wt(c)&&(v="leading"in c?!!c.leading:v,C="trailing"in c?!!c.trailing:C),Wh(r,s,{leading:v,maxWait:s,trailing:C})}function Lx(r){return Nh(r,1)}function Mx(r,s){return sc(Ul(s),r)}function Nx(){if(!arguments.length)return[];var r=arguments[0];return Ye(r)?r:[r]}function jx(r){return Nn(r,E)}function Bx(r,s){return s=typeof s=="function"?s:n,Nn(r,E,s)}function Fx(r){return Nn(r,w|E)}function Vx(r,s){return s=typeof s=="function"?s:n,Nn(r,w|E,s)}function Wx(r,s){return s==null||Ad(r,s,Rt(s))}function Gn(r,s){return r===s||r!==r&&s!==s}var Hx=Ua(Il),$x=Ua(function(r,s){return r>=s}),ji=Md(function(){return arguments}())?Md:function(r){return St(r)&&Ue.call(r,"callee")&&!xd.call(r,"callee")},Ye=V.isArray,Ux=u?qt(u):Z0;function an(r){return r!=null&&Qa(r.length)&&!Pr(r)}function Ct(r){return St(r)&&an(r)}function zx(r){return r===!0||r===!1||St(r)&&Kt(r)==je}var ii=o0||vc,qx=f?qt(f):Q0;function Yx(r){return St(r)&&r.nodeType===1&&!vs(r)}function Gx(r){if(r==null)return!0;if(an(r)&&(Ye(r)||typeof r=="string"||typeof r.splice=="function"||ii(r)||bo(r)||ji(r)))return!r.length;var s=Ht(r);if(s==ht||s==hn)return!r.size;if(gs(r))return!Ml(r).length;for(var c in r)if(Ue.call(r,c))return!1;return!0}function Kx(r,s){return ds(r,s)}function Xx(r,s,c){c=typeof c=="function"?c:n;var v=c?c(r,s):n;return v===n?ds(r,s,n,c):!!v}function ac(r){if(!St(r))return!1;var s=Kt(r);return s==Xe||s==Me||typeof r.message=="string"&&typeof r.name=="string"&&!vs(r)}function Jx(r){return typeof r=="number"&&_d(r)}function Pr(r){if(!wt(r))return!1;var s=Kt(r);return s==ge||s==gt||s==Ie||s==tl}function $h(r){return typeof r=="number"&&r==Ke(r)}function Qa(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=pe}function wt(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}function St(r){return r!=null&&typeof r=="object"}var Uh=p?qt(p):t1;function Zx(r,s){return r===s||Ll(r,s,Jl(s))}function Qx(r,s,c){return c=typeof c=="function"?c:n,Ll(r,s,Jl(s),c)}function eS(r){return zh(r)&&r!=+r}function tS(r){if(B1(r))throw new ue(a);return Nd(r)}function nS(r){return r===null}function rS(r){return r==null}function zh(r){return typeof r=="number"||St(r)&&Kt(r)==kn}function vs(r){if(!St(r)||Kt(r)!=en)return!1;var s=Ta(r);if(s===null)return!0;var c=Ue.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&qn.call(c)==Qb}var uc=y?qt(y):n1;function iS(r){return $h(r)&&r>=-pe&&r<=pe}var qh=x?qt(x):r1;function eu(r){return typeof r=="string"||!Ye(r)&&St(r)&&Kt(r)==jt}function wn(r){return typeof r=="symbol"||St(r)&&Kt(r)==Zn}var bo=S?qt(S):i1;function oS(r){return r===n}function sS(r){return St(r)&&Ht(r)==De}function aS(r){return St(r)&&Kt(r)==Bt}var uS=Ua(Nl),lS=Ua(function(r,s){return r<=s});function Yh(r){if(!r)return[];if(an(r))return eu(r)?Yt(r):sn(r);if(is&&r[is])return or(r[is]());var s=Ht(r),c=s==ht?co:s==hn?xr:wo;return c(r)}function Ar(r){if(!r)return r===0?r:0;if(r=Fn(r),r===de||r===-de){var s=r<0?-1:1;return s*ke}return r===r?r:0}function Ke(r){var s=Ar(r),c=s%1;return s===s?c?s-c:s:0}function Gh(r){return r?Ri(Ke(r),0,ae):0}function Fn(r){if(typeof r=="number")return r;if(wn(r))return Q;if(wt(r)){var s=typeof r.valueOf=="function"?r.valueOf():r;r=wt(s)?s+"":s}if(typeof r!="string")return r===0?r:+r;r=Ln(r);var c=ta.test(r);return c||Bo.test(r)?wl(r.slice(2),c?2:8):qr.test(r)?Q:+r}function Kh(r){return ur(r,un(r))}function cS(r){return r?Ri(Ke(r),-pe,pe):r===0?r:0}function at(r){return r==null?"":bn(r)}var fS=mo(function(r,s){if(gs(s)||an(s)){ur(s,Rt(s),r);return}for(var c in s)Ue.call(s,c)&&ls(r,c,s[c])}),Xh=mo(function(r,s){ur(s,un(s),r)}),tu=mo(function(r,s,c,v){ur(s,un(s),r,v)}),dS=mo(function(r,s,c,v){ur(s,Rt(s),r,v)}),hS=Tr(Al);function pS(r,s){var c=go(r);return s==null?c:Pd(c,s)}var gS=Qe(function(r,s){r=Se(r);var c=-1,v=s.length,C=v>2?s[2]:n;for(C&&Xt(s[0],s[1],C)&&(v=1);++c<v;)for(var P=s[c],M=un(P),H=-1,q=M.length;++H<q;){var le=M[H],ce=r[le];(ce===n||Gn(ce,kt[le])&&!Ue.call(r,le))&&(r[le]=P[le])}return r}),mS=Qe(function(r){return r.push(n,hh),T(Jh,n,r)});function vS(r,s){return rr(r,Be(s,3),ar)}function yS(r,s){return rr(r,Be(s,3),Dl)}function bS(r,s){return r==null?r:kl(r,Be(s,3),un)}function wS(r,s){return r==null?r:Rd(r,Be(s,3),un)}function xS(r,s){return r&&ar(r,Be(s,3))}function SS(r,s){return r&&Dl(r,Be(s,3))}function _S(r){return r==null?[]:Na(r,Rt(r))}function CS(r){return r==null?[]:Na(r,un(r))}function lc(r,s,c){var v=r==null?n:Li(r,s);return v===n?c:v}function ES(r,s){return r!=null&&mh(r,s,G0)}function cc(r,s){return r!=null&&mh(r,s,K0)}var TS=uh(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=_a.call(s)),r[s]=c},dc(ln)),OS=uh(function(r,s,c){s!=null&&typeof s.toString!="function"&&(s=_a.call(s)),Ue.call(r,s)?r[s].push(c):r[s]=[c]},Be),PS=Qe(fs);function Rt(r){return an(r)?Td(r):Ml(r)}function un(r){return an(r)?Td(r,!0):o1(r)}function AS(r,s){var c={};return s=Be(s,3),ar(r,function(v,C,P){Cr(c,s(v,C,P),v)}),c}function kS(r,s){var c={};return s=Be(s,3),ar(r,function(v,C,P){Cr(c,C,s(v,C,P))}),c}var DS=mo(function(r,s,c){ja(r,s,c)}),Jh=mo(function(r,s,c,v){ja(r,s,c,v)}),IS=Tr(function(r,s){var c={};if(r==null)return c;var v=!1;s=_e(s,function(P){return P=ni(P,r),v||(v=P.length>1),P}),ur(r,Kl(r),c),v&&(c=Nn(c,w|_|E,T1));for(var C=s.length;C--;)Wl(c,s[C]);return c});function RS(r,s){return Zh(r,Za(Be(s)))}var LS=Tr(function(r,s){return r==null?{}:a1(r,s)});function Zh(r,s){if(r==null)return{};var c=_e(Kl(r),function(v){return[v]});return s=Be(s),$d(r,c,function(v,C){return s(v,C[0])})}function MS(r,s,c){s=ni(s,r);var v=-1,C=s.length;for(C||(C=1,r=n);++v<C;){var P=r==null?n:r[lr(s[v])];P===n&&(v=C,P=c),r=Pr(P)?P.call(r):P}return r}function NS(r,s,c){return r==null?r:hs(r,s,c)}function jS(r,s,c,v){return v=typeof v=="function"?v:n,r==null?r:hs(r,s,c,v)}var Qh=fh(Rt),ep=fh(un);function BS(r,s,c){var v=Ye(r),C=v||ii(r)||bo(r);if(s=Be(s,4),c==null){var P=r&&r.constructor;C?c=v?new P:[]:wt(r)?c=Pr(P)?go(Ta(r)):{}:c={}}return(C?L:ar)(r,function(M,H,q){return s(c,M,H,q)}),c}function FS(r,s){return r==null?!0:Wl(r,s)}function VS(r,s,c){return r==null?r:Gd(r,s,Ul(c))}function WS(r,s,c,v){return v=typeof v=="function"?v:n,r==null?r:Gd(r,s,Ul(c),v)}function wo(r){return r==null?[]:es(r,Rt(r))}function HS(r){return r==null?[]:es(r,un(r))}function $S(r,s,c){return c===n&&(c=s,s=n),c!==n&&(c=Fn(c),c=c===c?c:0),s!==n&&(s=Fn(s),s=s===s?s:0),Ri(Fn(r),s,c)}function US(r,s,c){return s=Ar(s),c===n?(c=s,s=0):c=Ar(c),r=Fn(r),X0(r,s,c)}function zS(r,s,c){if(c&&typeof c!="boolean"&&Xt(r,s,c)&&(s=c=n),c===n&&(typeof s=="boolean"?(c=s,s=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&s===n?(r=0,s=1):(r=Ar(r),s===n?(s=r,r=0):s=Ar(s)),r>s){var v=r;r=s,s=v}if(c||r%1||s%1){var C=Cd();return Wt(r+C*(s-r+Zo("1e-"+((C+"").length-1))),s)}return Bl(r,s)}var qS=vo(function(r,s,c){return s=s.toLowerCase(),r+(c?tp(s):s)});function tp(r){return fc(at(r).toLowerCase())}function np(r){return r=at(r),r&&r.replace(na,Jr).replace(pl,"")}function YS(r,s,c){r=at(r),s=bn(s);var v=r.length;c=c===n?v:Ri(Ke(c),0,v);var C=c;return c-=s.length,c>=0&&r.slice(c,C)==s}function GS(r){return r=at(r),r&&Ks.test(r)?r.replace(Ur,Sl):r}function KS(r){return r=at(r),r&&zr.test(r)?r.replace(er,"\\$&"):r}var XS=vo(function(r,s,c){return r+(c?"-":"")+s.toLowerCase()}),JS=vo(function(r,s,c){return r+(c?" ":"")+s.toLowerCase()}),ZS=oh("toLowerCase");function QS(r,s,c){r=at(r),s=Ke(s);var v=s?sr(r):0;if(!s||v>=s)return r;var C=(s-v)/2;return $a(ka(C),c)+r+$a(Aa(C),c)}function e_(r,s,c){r=at(r),s=Ke(s);var v=s?sr(r):0;return s&&v<s?r+$a(s-v,c):r}function t_(r,s,c){r=at(r),s=Ke(s);var v=s?sr(r):0;return s&&v<s?$a(s-v,c)+r:r}function n_(r,s,c){return c||s==null?s=0:s&&(s=+s),l0(at(r).replace(_i,""),s||0)}function r_(r,s,c){return(c?Xt(r,s,c):s===n)?s=1:s=Ke(s),Fl(at(r),s)}function i_(){var r=arguments,s=at(r[0]);return r.length<3?s:s.replace(r[1],r[2])}var o_=vo(function(r,s,c){return r+(c?"_":"")+s.toLowerCase()});function s_(r,s,c){return c&&typeof c!="number"&&Xt(r,s,c)&&(s=c=n),c=c===n?ae:c>>>0,c?(r=at(r),r&&(typeof s=="string"||s!=null&&!uc(s))&&(s=bn(s),!s&&on(r))?ri(Yt(r),0,c):r.split(s,c)):[]}var a_=vo(function(r,s,c){return r+(c?" ":"")+fc(s)});function u_(r,s,c){return r=at(r),c=c==null?0:Ri(Ke(c),0,r.length),s=bn(s),r.slice(c,c+s.length)==s}function l_(r,s,c){var v=O.templateSettings;c&&Xt(r,s,c)&&(s=n),r=at(r),s=tu({},s,v,dh);var C=tu({},s.imports,v.imports,dh),P=Rt(C),M=es(C,P),H,q,le=0,ce=s.interpolate||io,fe="__p += '",xe=Ge((s.escape||io).source+"|"+ce.source+"|"+(ce===to?Qs:io).source+"|"+(s.evaluate||io).source+"|$","g"),Re="//# sourceURL="+(Ue.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++bl+"]")+`
|
|
40
40
|
`;r.replace(xe,function(Ve,nt,it,xn,Jt,Sn){return it||(it=xn),fe+=r.slice(le,Sn).replace(Ci,_l),nt&&(H=!0,fe+=`' +
|
|
41
41
|
__e(`+nt+`) +
|
|
42
42
|
'`),Jt&&(q=!0,fe+=`';
|
|
@@ -53,7 +53,7 @@ __p += '`),it&&(fe+=`' +
|
|
|
53
53
|
function print() { __p += __j.call(arguments, '') }
|
|
54
54
|
`:`;
|
|
55
55
|
`)+fe+`return __p
|
|
56
|
-
}`;var Je=op(function(){return Ee(P,Re+"return "+fe).apply(n,M)});if(Je.source=fe,ac(Je))throw Je;return Je}function f_(r){return at(r).toLowerCase()}function d_(r){return at(r).toUpperCase()}function h_(r,s,c){if(r=at(r),r&&(c||s===n))return Ln(r);if(!r||!(s=bn(s)))return r;var v=Yt(r),C=Yt(s),P=ot(v,C),M=Ai(v,C)+1;return ri(v,P,M).join("")}function p_(r,s,c){if(r=at(r),r&&(c||s===n))return r.slice(0,xa(r)+1);if(!r||!(s=bn(s)))return r;var v=Yt(r),C=Ai(v,Yt(s))+1;return ri(v,0,C).join("")}function g_(r,s,c){if(r=at(r),r&&(c||s===n))return r.replace(_i,"");if(!r||!(s=bn(s)))return r;var v=Yt(r),C=ot(v,Yt(s));return ri(v,C).join("")}function m_(r,s){var c=we,v=He;if(wt(s)){var C="separator"in s?s.separator:C;c="length"in s?Ke(s.length):c,v="omission"in s?bn(s.omission):v}r=at(r);var P=r.length;if(on(r)){var M=Yt(r);P=M.length}if(c>=P)return r;var H=c-sr(v);if(H<1)return v;var q=M?ri(M,0,H).join(""):r.slice(0,H);if(C===n)return q+v;if(M&&(H+=q.length-H),uc(C)){if(r.slice(H).search(C)){var le,ce=q;for(C.global||(C=Ge(C.source,at(ea.exec(C))+"g")),C.lastIndex=0;le=C.exec(ce);)var fe=le.index;q=q.slice(0,fe===n?H:fe)}}else if(r.indexOf(bn(C),H)!=H){var xe=q.lastIndexOf(C);xe>-1&&(q=q.slice(0,xe))}return q+v}function v_(r){return r=at(r),r&&Gs.test(r)?r.replace(vr,rs):r}var y_=vo(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),fc=sh("toUpperCase");function ip(r,s,c){return r=at(r),s=c?n:s,s===n?ts(r)?U(r):et(r):r.match(s)||[]}var op=Qe(function(r,s){try{return T(r,n,s)}catch(c){return ac(c)?c:new ue(c)}}),b_=Tr(function(r,s){return L(s,function(c){c=lr(c),Cr(r,c,oc(r[c],r))}),r});function w_(r){var s=r==null?0:r.length,c=Be();return r=s?_e(r,function(v){if(typeof v[1]!="function")throw new Ze(l);return[c(v[0]),v[1]]}):[],Qe(function(v){for(var C=-1;++C<s;){var P=r[C];if(T(P[0],this,v))return T(P[1],this,v)}})}function x_(r){return q0(Nn(r,w))}function dc(r){return function(){return r}}function S_(r,s){return r==null||r!==r?s:r}var __=uh(),C_=uh(!0);function ln(r){return r}function hc(r){return Bd(typeof r=="function"?r:Nn(r,w))}function E_(r){return Vd(Nn(r,w))}function T_(r,s){return Wd(r,Nn(s,w))}var O_=Qe(function(r,s){return function(c){return fs(c,r,s)}}),P_=Qe(function(r,s){return function(c){return fs(r,c,s)}});function pc(r,s,c){var v=Rt(s),C=Na(s,v);c==null&&!(wt(s)&&(C.length||!v.length))&&(c=s,s=r,r=this,C=Na(s,Rt(s)));var P=!(wt(c)&&"chain"in c)||!!c.chain,M=Pr(r);return L(C,function(H){var q=s[H];r[H]=q,M&&(r.prototype[H]=function(){var le=this.__chain__;if(P||le){var ce=r(this.__wrapped__),fe=ce.__actions__=sn(this.__actions__);return fe.push({func:q,args:arguments,thisArg:r}),ce.__chain__=le,ce}return q.apply(r,qe([this.value()],arguments))})}),r}function A_(){return yt._===this&&(yt._=t0),this}function gc(){}function k_(r){return r=Ke(r),Qe(function(s){return Hd(s,r)})}var D_=ql(_e),I_=ql(ne),R_=ql(bt);function sp(r){return Ql(r)?wr(lr(r)):l1(r)}function L_(r){return function(s){return r==null?n:Li(r,s)}}var M_=ch(),N_=ch(!0);function mc(){return[]}function vc(){return!1}function j_(){return{}}function B_(){return""}function F_(){return!0}function V_(r,s){if(r=Ke(r),r<1||r>pe)return[];var c=ae,v=Wt(r,ae);s=Be(s),r-=ae;for(var C=Oi(v,s);++c<r;)s(c);return C}function W_(r){return Ye(r)?_e(r,lr):wn(r)?[r]:sn(Th(at(r)))}function H_(r){var s=++Qb;return at(r)+s}var $_=Ha(function(r,s){return r+s},0),U_=Yl("ceil"),z_=Ha(function(r,s){return r/s},1),q_=Yl("floor");function Y_(r){return r&&r.length?Ma(r,ln,Il):n}function G_(r,s){return r&&r.length?Ma(r,Be(s,2),Il):n}function K_(r){return mn(r,ln)}function X_(r,s){return mn(r,Be(s,2))}function J_(r){return r&&r.length?Ma(r,ln,Nl):n}function Z_(r,s){return r&&r.length?Ma(r,Be(s,2),Nl):n}var Q_=Ha(function(r,s){return r*s},1),eC=Yl("round"),tC=Ha(function(r,s){return r-s},0);function nC(r){return r&&r.length?Vt(r,ln):0}function rC(r,s){return r&&r.length?Vt(r,Be(s,2)):0}return O.after=Ex,O.ary=jh,O.assign=dS,O.assignIn=Jh,O.assignInWith=tu,O.assignWith=hS,O.at=pS,O.before=Bh,O.bind=oc,O.bindAll=b_,O.bindKey=Fh,O.castArray=jx,O.chain=Lh,O.chunk=q1,O.compact=Y1,O.concat=G1,O.cond=w_,O.conforms=x_,O.constant=dc,O.countBy=nx,O.create=gS,O.curry=Vh,O.curryRight=Wh,O.debounce=Hh,O.defaults=mS,O.defaultsDeep=vS,O.defer=Tx,O.delay=Ox,O.difference=K1,O.differenceBy=X1,O.differenceWith=J1,O.drop=Z1,O.dropRight=Q1,O.dropRightWhile=ew,O.dropWhile=tw,O.fill=nw,O.filter=ix,O.flatMap=ax,O.flatMapDeep=ux,O.flatMapDepth=lx,O.flatten=kh,O.flattenDeep=rw,O.flattenDepth=iw,O.flip=Px,O.flow=__,O.flowRight=C_,O.fromPairs=ow,O.functions=CS,O.functionsIn=ES,O.groupBy=cx,O.initial=aw,O.intersection=uw,O.intersectionBy=lw,O.intersectionWith=cw,O.invert=OS,O.invertBy=PS,O.invokeMap=dx,O.iteratee=hc,O.keyBy=hx,O.keys=Rt,O.keysIn=un,O.map=Ka,O.mapKeys=kS,O.mapValues=DS,O.matches=E_,O.matchesProperty=T_,O.memoize=Ja,O.merge=IS,O.mergeWith=Zh,O.method=O_,O.methodOf=P_,O.mixin=pc,O.negate=Za,O.nthArg=k_,O.omit=RS,O.omitBy=LS,O.once=Ax,O.orderBy=px,O.over=D_,O.overArgs=kx,O.overEvery=I_,O.overSome=R_,O.partial=sc,O.partialRight=$h,O.partition=gx,O.pick=MS,O.pickBy=Qh,O.property=sp,O.propertyOf=L_,O.pull=pw,O.pullAll=Ih,O.pullAllBy=gw,O.pullAllWith=mw,O.pullAt=vw,O.range=M_,O.rangeRight=N_,O.rearg=Dx,O.reject=yx,O.remove=yw,O.rest=Ix,O.reverse=rc,O.sampleSize=wx,O.set=jS,O.setWith=BS,O.shuffle=xx,O.slice=bw,O.sortBy=Cx,O.sortedUniq=Tw,O.sortedUniqBy=Ow,O.split=a_,O.spread=Rx,O.tail=Pw,O.take=Aw,O.takeRight=kw,O.takeRightWhile=Dw,O.takeWhile=Iw,O.tap=Yw,O.throttle=Lx,O.thru=Ga,O.toArray=Gh,O.toPairs=ep,O.toPairsIn=tp,O.toPath=W_,O.toPlainObject=Xh,O.transform=FS,O.unary=Mx,O.union=Rw,O.unionBy=Lw,O.unionWith=Mw,O.uniq=Nw,O.uniqBy=jw,O.uniqWith=Bw,O.unset=VS,O.unzip=ic,O.unzipWith=Rh,O.update=WS,O.updateWith=HS,O.values=wo,O.valuesIn=$S,O.without=Fw,O.words=ip,O.wrap=Nx,O.xor=Vw,O.xorBy=Ww,O.xorWith=Hw,O.zip=$w,O.zipObject=Uw,O.zipObjectDeep=zw,O.zipWith=qw,O.entries=ep,O.entriesIn=tp,O.extend=Jh,O.extendWith=tu,pc(O,O),O.add=$_,O.attempt=op,O.camelCase=YS,O.capitalize=np,O.ceil=U_,O.clamp=US,O.clone=Bx,O.cloneDeep=Vx,O.cloneDeepWith=Wx,O.cloneWith=Fx,O.conformsTo=Hx,O.deburr=rp,O.defaultTo=S_,O.divide=z_,O.endsWith=GS,O.eq=Gn,O.escape=KS,O.escapeRegExp=XS,O.every=rx,O.find=ox,O.findIndex=Ph,O.findKey=yS,O.findLast=sx,O.findLastIndex=Ah,O.findLastKey=bS,O.floor=q_,O.forEach=Mh,O.forEachRight=Nh,O.forIn=wS,O.forInRight=xS,O.forOwn=SS,O.forOwnRight=_S,O.get=lc,O.gt=$x,O.gte=Ux,O.has=TS,O.hasIn=cc,O.head=Dh,O.identity=ln,O.includes=fx,O.indexOf=sw,O.inRange=zS,O.invoke=AS,O.isArguments=ji,O.isArray=Ye,O.isArrayBuffer=zx,O.isArrayLike=an,O.isArrayLikeObject=Ct,O.isBoolean=qx,O.isBuffer=ii,O.isDate=Yx,O.isElement=Gx,O.isEmpty=Kx,O.isEqual=Xx,O.isEqualWith=Jx,O.isError=ac,O.isFinite=Zx,O.isFunction=Pr,O.isInteger=Uh,O.isLength=Qa,O.isMap=zh,O.isMatch=Qx,O.isMatchWith=eS,O.isNaN=tS,O.isNative=nS,O.isNil=iS,O.isNull=rS,O.isNumber=qh,O.isObject=wt,O.isObjectLike=St,O.isPlainObject=vs,O.isRegExp=uc,O.isSafeInteger=oS,O.isSet=Yh,O.isString=eu,O.isSymbol=wn,O.isTypedArray=bo,O.isUndefined=sS,O.isWeakMap=aS,O.isWeakSet=uS,O.join=fw,O.kebabCase=JS,O.last=Bn,O.lastIndexOf=dw,O.lowerCase=ZS,O.lowerFirst=QS,O.lt=lS,O.lte=cS,O.max=Y_,O.maxBy=G_,O.mean=K_,O.meanBy=X_,O.min=J_,O.minBy=Z_,O.stubArray=mc,O.stubFalse=vc,O.stubObject=j_,O.stubString=B_,O.stubTrue=F_,O.multiply=Q_,O.nth=hw,O.noConflict=A_,O.noop=gc,O.now=Xa,O.pad=e_,O.padEnd=t_,O.padStart=n_,O.parseInt=r_,O.random=qS,O.reduce=mx,O.reduceRight=vx,O.repeat=i_,O.replace=o_,O.result=NS,O.round=eC,O.runInContext=D,O.sample=bx,O.size=Sx,O.snakeCase=s_,O.some=_x,O.sortedIndex=ww,O.sortedIndexBy=xw,O.sortedIndexOf=Sw,O.sortedLastIndex=_w,O.sortedLastIndexBy=Cw,O.sortedLastIndexOf=Ew,O.startCase=u_,O.startsWith=l_,O.subtract=tC,O.sum=nC,O.sumBy=rC,O.template=c_,O.times=V_,O.toFinite=Ar,O.toInteger=Ke,O.toLength=Kh,O.toLower=f_,O.toNumber=Fn,O.toSafeInteger=fS,O.toString=at,O.toUpper=d_,O.trim=h_,O.trimEnd=p_,O.trimStart=g_,O.truncate=m_,O.unescape=v_,O.uniqueId=H_,O.upperCase=y_,O.upperFirst=fc,O.each=Mh,O.eachRight=Nh,O.first=Dh,pc(O,function(){var r={};return ar(O,function(s,c){Ue.call(O.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),O.VERSION=i,L(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){O[r].placeholder=O}),L(["drop","take"],function(r,s){rt.prototype[r]=function(c){c=c===n?1:Dt(Ke(c),0);var v=this.__filtered__&&!s?new rt(this):this.clone();return v.__filtered__?v.__takeCount__=Wt(c,v.__takeCount__):v.__views__.push({size:Wt(c,ae),type:r+(v.__dir__<0?"Right":"")}),v},rt.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),L(["filter","map","takeWhile"],function(r,s){var c=s+1,v=c==Le||c==re;rt.prototype[r]=function(C){var P=this.clone();return P.__iteratees__.push({iteratee:Be(C,3),type:c}),P.__filtered__=P.__filtered__||v,P}}),L(["head","last"],function(r,s){var c="take"+(s?"Right":"");rt.prototype[r]=function(){return this[c](1).value()[0]}}),L(["initial","tail"],function(r,s){var c="drop"+(s?"":"Right");rt.prototype[r]=function(){return this.__filtered__?new rt(this):this[c](1)}}),rt.prototype.compact=function(){return this.filter(ln)},rt.prototype.find=function(r){return this.filter(r).head()},rt.prototype.findLast=function(r){return this.reverse().find(r)},rt.prototype.invokeMap=Qe(function(r,s){return typeof r=="function"?new rt(this):this.map(function(c){return fs(c,r,s)})}),rt.prototype.reject=function(r){return this.filter(Za(Be(r)))},rt.prototype.slice=function(r,s){r=Ke(r);var c=this;return c.__filtered__&&(r>0||s<0)?new rt(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=Ke(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},rt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},rt.prototype.toArray=function(){return this.take(ae)},ar(rt.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),v=/^(?:head|last)$/.test(s),C=O[v?"take"+(s=="last"?"Right":""):s],P=v||/^find/.test(s);C&&(O.prototype[s]=function(){var M=this.__wrapped__,H=v?[1]:arguments,q=M instanceof rt,le=H[0],ce=q||Ye(M),fe=function(nt){var it=C.apply(O,qe([nt],H));return v&&xe?it[0]:it};ce&&c&&typeof le=="function"&&le.length!=1&&(q=ce=!1);var xe=this.__chain__,Re=!!this.__actions__.length,Fe=P&&!xe,Je=q&&!Re;if(!P&&ce){M=Je?M:new rt(this);var Ve=r.apply(M,H);return Ve.__actions__.push({func:Ga,args:[fe],thisArg:n}),new Mn(Ve,xe)}return Fe&&Je?r.apply(this,H):(Ve=this.thru(fe),Fe?v?Ve.value()[0]:Ve.value():Ve)})}),L(["pop","push","shift","sort","splice","unshift"],function(r){var s=At[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",v=/^(?:pop|shift)$/.test(r);O.prototype[r]=function(){var C=arguments;if(v&&!this.__chain__){var P=this.value();return s.apply(Ye(P)?P:[],C)}return this[c](function(M){return s.apply(Ye(M)?M:[],C)})}}),ar(rt.prototype,function(r,s){var c=O[s];if(c){var v=c.name+"";Ue.call(po,v)||(po[v]=[]),po[v].push({name:s,func:c})}}),po[Wa(n,k).name]=[{name:"wrapper",func:n}],rt.prototype.clone=v0,rt.prototype.reverse=y0,rt.prototype.value=b0,O.prototype.at=Gw,O.prototype.chain=Kw,O.prototype.commit=Xw,O.prototype.next=Jw,O.prototype.plant=Qw,O.prototype.reverse=ex,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=tx,O.prototype.first=O.prototype.head,is&&(O.prototype[is]=Zw),O},J=K();$n?(($n.exports=J)._=J,uo._=J):yt._=J}).call(Cn)})(ju,ju.exports);var gb=ju.exports;const fI=Vs(gb);function Em(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function dI(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,i=t.startIndex,o=t.stopIndex;return!(i>n||o<e)}function hI(t){for(var e=t.isItemLoaded,n=t.itemCount,i=t.minimumBatchSize,o=t.startIndex,a=t.stopIndex,l=[],d=null,h=null,m=o;m<=a;m++){var b=e(m);b?h!==null&&(l.push(d,h),d=h=null):(h=m,d===null&&(d=m))}if(h!==null){for(var w=Math.min(Math.max(h,d+i-1),n-1),_=h+1;_<=w&&!e(_);_++)h=_;l.push(d,h)}if(l.length)for(;l[1]-l[0]+1<i&&l[0]>0;){var E=l[0]-1;if(!e(E))l[0]=E;else break}return l}var pI=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},gI=function(){function t(e,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),mI=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},Tm=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},vI=function(t){mI(e,t);function e(){var n,i,o,a;pI(this,e);for(var l=arguments.length,d=Array(l),h=0;h<l;h++)d[h]=arguments[h];return a=(i=(o=Tm(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(d))),o),o._lastRenderedStartIndex=-1,o._lastRenderedStopIndex=-1,o._memoizedUnloadedRanges=[],o._onItemsRendered=function(m){var b=m.visibleStartIndex,w=m.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!Em(b)||!Em(w))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof o.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),o._lastRenderedStartIndex=b,o._lastRenderedStopIndex=w,o._ensureRowsLoaded(b,w)},o._setRef=function(m){o._listRef=m},i),Tm(o,a)}return gI(e,[{key:"resetloadMoreItemsCache",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],i&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var i=this.props.children;return i({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(i,o){var a=this.props,l=a.isItemLoaded,d=a.itemCount,h=a.minimumBatchSize,m=h===void 0?10:h,b=a.threshold,w=b===void 0?15:b,_=hI({isItemLoaded:l,itemCount:d,minimumBatchSize:m,startIndex:Math.max(0,i-w),stopIndex:Math.min(d-1,o+w)});(this._memoizedUnloadedRanges.length!==_.length||this._memoizedUnloadedRanges.some(function(E,I){return _[I]!==E}))&&(this._memoizedUnloadedRanges=_,this._loadUnloadedRanges(_))}},{key:"_loadUnloadedRanges",value:function(i){for(var o=this,a=this.props.loadMoreItems||this.props.loadMoreRows,l=function(m){var b=i[m],w=i[m+1],_=a(b,w);_!=null&&_.then(function(){if(dI({lastRenderedStartIndex:o._lastRenderedStartIndex,lastRenderedStopIndex:o._lastRenderedStopIndex,startIndex:b,stopIndex:w})){if(o._listRef==null)return;typeof o._listRef.resetAfterIndex=="function"?o._listRef.resetAfterIndex(b,!0):(typeof o._listRef._getItemStyleCache=="function"&&o._listRef._getItemStyleCache(-1),o._listRef.forceUpdate())}})},d=0;d<i.length;d+=2)l(d)}}]),e}(te.PureComponent),Uc={exports:{}};/*!
|
|
56
|
+
}`;var Je=ip(function(){return Ee(P,Re+"return "+fe).apply(n,M)});if(Je.source=fe,ac(Je))throw Je;return Je}function c_(r){return at(r).toLowerCase()}function f_(r){return at(r).toUpperCase()}function d_(r,s,c){if(r=at(r),r&&(c||s===n))return Ln(r);if(!r||!(s=bn(s)))return r;var v=Yt(r),C=Yt(s),P=ot(v,C),M=Ai(v,C)+1;return ri(v,P,M).join("")}function h_(r,s,c){if(r=at(r),r&&(c||s===n))return r.slice(0,xa(r)+1);if(!r||!(s=bn(s)))return r;var v=Yt(r),C=Ai(v,Yt(s))+1;return ri(v,0,C).join("")}function p_(r,s,c){if(r=at(r),r&&(c||s===n))return r.replace(_i,"");if(!r||!(s=bn(s)))return r;var v=Yt(r),C=ot(v,Yt(s));return ri(v,C).join("")}function g_(r,s){var c=we,v=He;if(wt(s)){var C="separator"in s?s.separator:C;c="length"in s?Ke(s.length):c,v="omission"in s?bn(s.omission):v}r=at(r);var P=r.length;if(on(r)){var M=Yt(r);P=M.length}if(c>=P)return r;var H=c-sr(v);if(H<1)return v;var q=M?ri(M,0,H).join(""):r.slice(0,H);if(C===n)return q+v;if(M&&(H+=q.length-H),uc(C)){if(r.slice(H).search(C)){var le,ce=q;for(C.global||(C=Ge(C.source,at(ea.exec(C))+"g")),C.lastIndex=0;le=C.exec(ce);)var fe=le.index;q=q.slice(0,fe===n?H:fe)}}else if(r.indexOf(bn(C),H)!=H){var xe=q.lastIndexOf(C);xe>-1&&(q=q.slice(0,xe))}return q+v}function m_(r){return r=at(r),r&&Gs.test(r)?r.replace(vr,rs):r}var v_=vo(function(r,s,c){return r+(c?" ":"")+s.toUpperCase()}),fc=oh("toUpperCase");function rp(r,s,c){return r=at(r),s=c?n:s,s===n?ts(r)?U(r):et(r):r.match(s)||[]}var ip=Qe(function(r,s){try{return T(r,n,s)}catch(c){return ac(c)?c:new ue(c)}}),y_=Tr(function(r,s){return L(s,function(c){c=lr(c),Cr(r,c,oc(r[c],r))}),r});function b_(r){var s=r==null?0:r.length,c=Be();return r=s?_e(r,function(v){if(typeof v[1]!="function")throw new Ze(l);return[c(v[0]),v[1]]}):[],Qe(function(v){for(var C=-1;++C<s;){var P=r[C];if(T(P[0],this,v))return T(P[1],this,v)}})}function w_(r){return z0(Nn(r,w))}function dc(r){return function(){return r}}function x_(r,s){return r==null||r!==r?s:r}var S_=ah(),__=ah(!0);function ln(r){return r}function hc(r){return jd(typeof r=="function"?r:Nn(r,w))}function C_(r){return Fd(Nn(r,w))}function E_(r,s){return Vd(r,Nn(s,w))}var T_=Qe(function(r,s){return function(c){return fs(c,r,s)}}),O_=Qe(function(r,s){return function(c){return fs(r,c,s)}});function pc(r,s,c){var v=Rt(s),C=Na(s,v);c==null&&!(wt(s)&&(C.length||!v.length))&&(c=s,s=r,r=this,C=Na(s,Rt(s)));var P=!(wt(c)&&"chain"in c)||!!c.chain,M=Pr(r);return L(C,function(H){var q=s[H];r[H]=q,M&&(r.prototype[H]=function(){var le=this.__chain__;if(P||le){var ce=r(this.__wrapped__),fe=ce.__actions__=sn(this.__actions__);return fe.push({func:q,args:arguments,thisArg:r}),ce.__chain__=le,ce}return q.apply(r,qe([this.value()],arguments))})}),r}function P_(){return yt._===this&&(yt._=e0),this}function gc(){}function A_(r){return r=Ke(r),Qe(function(s){return Wd(s,r)})}var k_=ql(_e),D_=ql(ne),I_=ql(bt);function op(r){return Ql(r)?wr(lr(r)):u1(r)}function R_(r){return function(s){return r==null?n:Li(r,s)}}var L_=lh(),M_=lh(!0);function mc(){return[]}function vc(){return!1}function N_(){return{}}function j_(){return""}function B_(){return!0}function F_(r,s){if(r=Ke(r),r<1||r>pe)return[];var c=ae,v=Wt(r,ae);s=Be(s),r-=ae;for(var C=Oi(v,s);++c<r;)s(c);return C}function V_(r){return Ye(r)?_e(r,lr):wn(r)?[r]:sn(Eh(at(r)))}function W_(r){var s=++Zb;return at(r)+s}var H_=Ha(function(r,s){return r+s},0),$_=Yl("ceil"),U_=Ha(function(r,s){return r/s},1),z_=Yl("floor");function q_(r){return r&&r.length?Ma(r,ln,Il):n}function Y_(r,s){return r&&r.length?Ma(r,Be(s,2),Il):n}function G_(r){return mn(r,ln)}function K_(r,s){return mn(r,Be(s,2))}function X_(r){return r&&r.length?Ma(r,ln,Nl):n}function J_(r,s){return r&&r.length?Ma(r,Be(s,2),Nl):n}var Z_=Ha(function(r,s){return r*s},1),Q_=Yl("round"),eC=Ha(function(r,s){return r-s},0);function tC(r){return r&&r.length?Vt(r,ln):0}function nC(r,s){return r&&r.length?Vt(r,Be(s,2)):0}return O.after=Cx,O.ary=Nh,O.assign=fS,O.assignIn=Xh,O.assignInWith=tu,O.assignWith=dS,O.at=hS,O.before=jh,O.bind=oc,O.bindAll=y_,O.bindKey=Bh,O.castArray=Nx,O.chain=Rh,O.chunk=z1,O.compact=q1,O.concat=Y1,O.cond=b_,O.conforms=w_,O.constant=dc,O.countBy=tx,O.create=pS,O.curry=Fh,O.curryRight=Vh,O.debounce=Wh,O.defaults=gS,O.defaultsDeep=mS,O.defer=Ex,O.delay=Tx,O.difference=G1,O.differenceBy=K1,O.differenceWith=X1,O.drop=J1,O.dropRight=Z1,O.dropRightWhile=Q1,O.dropWhile=ew,O.fill=tw,O.filter=rx,O.flatMap=sx,O.flatMapDeep=ax,O.flatMapDepth=ux,O.flatten=Ah,O.flattenDeep=nw,O.flattenDepth=rw,O.flip=Ox,O.flow=S_,O.flowRight=__,O.fromPairs=iw,O.functions=_S,O.functionsIn=CS,O.groupBy=lx,O.initial=sw,O.intersection=aw,O.intersectionBy=uw,O.intersectionWith=lw,O.invert=TS,O.invertBy=OS,O.invokeMap=fx,O.iteratee=hc,O.keyBy=dx,O.keys=Rt,O.keysIn=un,O.map=Ka,O.mapKeys=AS,O.mapValues=kS,O.matches=C_,O.matchesProperty=E_,O.memoize=Ja,O.merge=DS,O.mergeWith=Jh,O.method=T_,O.methodOf=O_,O.mixin=pc,O.negate=Za,O.nthArg=A_,O.omit=IS,O.omitBy=RS,O.once=Px,O.orderBy=hx,O.over=k_,O.overArgs=Ax,O.overEvery=D_,O.overSome=I_,O.partial=sc,O.partialRight=Hh,O.partition=px,O.pick=LS,O.pickBy=Zh,O.property=op,O.propertyOf=R_,O.pull=hw,O.pullAll=Dh,O.pullAllBy=pw,O.pullAllWith=gw,O.pullAt=mw,O.range=L_,O.rangeRight=M_,O.rearg=kx,O.reject=vx,O.remove=vw,O.rest=Dx,O.reverse=rc,O.sampleSize=bx,O.set=NS,O.setWith=jS,O.shuffle=wx,O.slice=yw,O.sortBy=_x,O.sortedUniq=Ew,O.sortedUniqBy=Tw,O.split=s_,O.spread=Ix,O.tail=Ow,O.take=Pw,O.takeRight=Aw,O.takeRightWhile=kw,O.takeWhile=Dw,O.tap=qw,O.throttle=Rx,O.thru=Ga,O.toArray=Yh,O.toPairs=Qh,O.toPairsIn=ep,O.toPath=V_,O.toPlainObject=Kh,O.transform=BS,O.unary=Lx,O.union=Iw,O.unionBy=Rw,O.unionWith=Lw,O.uniq=Mw,O.uniqBy=Nw,O.uniqWith=jw,O.unset=FS,O.unzip=ic,O.unzipWith=Ih,O.update=VS,O.updateWith=WS,O.values=wo,O.valuesIn=HS,O.without=Bw,O.words=rp,O.wrap=Mx,O.xor=Fw,O.xorBy=Vw,O.xorWith=Ww,O.zip=Hw,O.zipObject=$w,O.zipObjectDeep=Uw,O.zipWith=zw,O.entries=Qh,O.entriesIn=ep,O.extend=Xh,O.extendWith=tu,pc(O,O),O.add=H_,O.attempt=ip,O.camelCase=qS,O.capitalize=tp,O.ceil=$_,O.clamp=$S,O.clone=jx,O.cloneDeep=Fx,O.cloneDeepWith=Vx,O.cloneWith=Bx,O.conformsTo=Wx,O.deburr=np,O.defaultTo=x_,O.divide=U_,O.endsWith=YS,O.eq=Gn,O.escape=GS,O.escapeRegExp=KS,O.every=nx,O.find=ix,O.findIndex=Oh,O.findKey=vS,O.findLast=ox,O.findLastIndex=Ph,O.findLastKey=yS,O.floor=z_,O.forEach=Lh,O.forEachRight=Mh,O.forIn=bS,O.forInRight=wS,O.forOwn=xS,O.forOwnRight=SS,O.get=lc,O.gt=Hx,O.gte=$x,O.has=ES,O.hasIn=cc,O.head=kh,O.identity=ln,O.includes=cx,O.indexOf=ow,O.inRange=US,O.invoke=PS,O.isArguments=ji,O.isArray=Ye,O.isArrayBuffer=Ux,O.isArrayLike=an,O.isArrayLikeObject=Ct,O.isBoolean=zx,O.isBuffer=ii,O.isDate=qx,O.isElement=Yx,O.isEmpty=Gx,O.isEqual=Kx,O.isEqualWith=Xx,O.isError=ac,O.isFinite=Jx,O.isFunction=Pr,O.isInteger=$h,O.isLength=Qa,O.isMap=Uh,O.isMatch=Zx,O.isMatchWith=Qx,O.isNaN=eS,O.isNative=tS,O.isNil=rS,O.isNull=nS,O.isNumber=zh,O.isObject=wt,O.isObjectLike=St,O.isPlainObject=vs,O.isRegExp=uc,O.isSafeInteger=iS,O.isSet=qh,O.isString=eu,O.isSymbol=wn,O.isTypedArray=bo,O.isUndefined=oS,O.isWeakMap=sS,O.isWeakSet=aS,O.join=cw,O.kebabCase=XS,O.last=Bn,O.lastIndexOf=fw,O.lowerCase=JS,O.lowerFirst=ZS,O.lt=uS,O.lte=lS,O.max=q_,O.maxBy=Y_,O.mean=G_,O.meanBy=K_,O.min=X_,O.minBy=J_,O.stubArray=mc,O.stubFalse=vc,O.stubObject=N_,O.stubString=j_,O.stubTrue=B_,O.multiply=Z_,O.nth=dw,O.noConflict=P_,O.noop=gc,O.now=Xa,O.pad=QS,O.padEnd=e_,O.padStart=t_,O.parseInt=n_,O.random=zS,O.reduce=gx,O.reduceRight=mx,O.repeat=r_,O.replace=i_,O.result=MS,O.round=Q_,O.runInContext=D,O.sample=yx,O.size=xx,O.snakeCase=o_,O.some=Sx,O.sortedIndex=bw,O.sortedIndexBy=ww,O.sortedIndexOf=xw,O.sortedLastIndex=Sw,O.sortedLastIndexBy=_w,O.sortedLastIndexOf=Cw,O.startCase=a_,O.startsWith=u_,O.subtract=eC,O.sum=tC,O.sumBy=nC,O.template=l_,O.times=F_,O.toFinite=Ar,O.toInteger=Ke,O.toLength=Gh,O.toLower=c_,O.toNumber=Fn,O.toSafeInteger=cS,O.toString=at,O.toUpper=f_,O.trim=d_,O.trimEnd=h_,O.trimStart=p_,O.truncate=g_,O.unescape=m_,O.uniqueId=W_,O.upperCase=v_,O.upperFirst=fc,O.each=Lh,O.eachRight=Mh,O.first=kh,pc(O,function(){var r={};return ar(O,function(s,c){Ue.call(O.prototype,c)||(r[c]=s)}),r}(),{chain:!1}),O.VERSION=i,L(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){O[r].placeholder=O}),L(["drop","take"],function(r,s){rt.prototype[r]=function(c){c=c===n?1:Dt(Ke(c),0);var v=this.__filtered__&&!s?new rt(this):this.clone();return v.__filtered__?v.__takeCount__=Wt(c,v.__takeCount__):v.__views__.push({size:Wt(c,ae),type:r+(v.__dir__<0?"Right":"")}),v},rt.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),L(["filter","map","takeWhile"],function(r,s){var c=s+1,v=c==Le||c==re;rt.prototype[r]=function(C){var P=this.clone();return P.__iteratees__.push({iteratee:Be(C,3),type:c}),P.__filtered__=P.__filtered__||v,P}}),L(["head","last"],function(r,s){var c="take"+(s?"Right":"");rt.prototype[r]=function(){return this[c](1).value()[0]}}),L(["initial","tail"],function(r,s){var c="drop"+(s?"":"Right");rt.prototype[r]=function(){return this.__filtered__?new rt(this):this[c](1)}}),rt.prototype.compact=function(){return this.filter(ln)},rt.prototype.find=function(r){return this.filter(r).head()},rt.prototype.findLast=function(r){return this.reverse().find(r)},rt.prototype.invokeMap=Qe(function(r,s){return typeof r=="function"?new rt(this):this.map(function(c){return fs(c,r,s)})}),rt.prototype.reject=function(r){return this.filter(Za(Be(r)))},rt.prototype.slice=function(r,s){r=Ke(r);var c=this;return c.__filtered__&&(r>0||s<0)?new rt(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),s!==n&&(s=Ke(s),c=s<0?c.dropRight(-s):c.take(s-r)),c)},rt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},rt.prototype.toArray=function(){return this.take(ae)},ar(rt.prototype,function(r,s){var c=/^(?:filter|find|map|reject)|While$/.test(s),v=/^(?:head|last)$/.test(s),C=O[v?"take"+(s=="last"?"Right":""):s],P=v||/^find/.test(s);C&&(O.prototype[s]=function(){var M=this.__wrapped__,H=v?[1]:arguments,q=M instanceof rt,le=H[0],ce=q||Ye(M),fe=function(nt){var it=C.apply(O,qe([nt],H));return v&&xe?it[0]:it};ce&&c&&typeof le=="function"&&le.length!=1&&(q=ce=!1);var xe=this.__chain__,Re=!!this.__actions__.length,Fe=P&&!xe,Je=q&&!Re;if(!P&&ce){M=Je?M:new rt(this);var Ve=r.apply(M,H);return Ve.__actions__.push({func:Ga,args:[fe],thisArg:n}),new Mn(Ve,xe)}return Fe&&Je?r.apply(this,H):(Ve=this.thru(fe),Fe?v?Ve.value()[0]:Ve.value():Ve)})}),L(["pop","push","shift","sort","splice","unshift"],function(r){var s=At[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",v=/^(?:pop|shift)$/.test(r);O.prototype[r]=function(){var C=arguments;if(v&&!this.__chain__){var P=this.value();return s.apply(Ye(P)?P:[],C)}return this[c](function(M){return s.apply(Ye(M)?M:[],C)})}}),ar(rt.prototype,function(r,s){var c=O[s];if(c){var v=c.name+"";Ue.call(po,v)||(po[v]=[]),po[v].push({name:s,func:c})}}),po[Wa(n,k).name]=[{name:"wrapper",func:n}],rt.prototype.clone=m0,rt.prototype.reverse=v0,rt.prototype.value=y0,O.prototype.at=Yw,O.prototype.chain=Gw,O.prototype.commit=Kw,O.prototype.next=Xw,O.prototype.plant=Zw,O.prototype.reverse=Qw,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=ex,O.prototype.first=O.prototype.head,is&&(O.prototype[is]=Jw),O},J=K();$n?(($n.exports=J)._=J,uo._=J):yt._=J}).call(Cn)})(ju,ju.exports);var hb=ju.exports;const cI=Vs(hb);function Cm(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function fI(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,i=t.startIndex,o=t.stopIndex;return!(i>n||o<e)}function dI(t){for(var e=t.isItemLoaded,n=t.itemCount,i=t.minimumBatchSize,o=t.startIndex,a=t.stopIndex,l=[],d=null,h=null,m=o;m<=a;m++){var b=e(m);b?h!==null&&(l.push(d,h),d=h=null):(h=m,d===null&&(d=m))}if(h!==null){for(var w=Math.min(Math.max(h,d+i-1),n-1),_=h+1;_<=w&&!e(_);_++)h=_;l.push(d,h)}if(l.length)for(;l[1]-l[0]+1<i&&l[0]>0;){var E=l[0]-1;if(!e(E))l[0]=E;else break}return l}var hI=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},pI=function(){function t(e,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),gI=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},Em=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},mI=function(t){gI(e,t);function e(){var n,i,o,a;hI(this,e);for(var l=arguments.length,d=Array(l),h=0;h<l;h++)d[h]=arguments[h];return a=(i=(o=Em(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(d))),o),o._lastRenderedStartIndex=-1,o._lastRenderedStopIndex=-1,o._memoizedUnloadedRanges=[],o._onItemsRendered=function(m){var b=m.visibleStartIndex,w=m.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!Cm(b)||!Cm(w))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof o.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),o._lastRenderedStartIndex=b,o._lastRenderedStopIndex=w,o._ensureRowsLoaded(b,w)},o._setRef=function(m){o._listRef=m},i),Em(o,a)}return pI(e,[{key:"resetloadMoreItemsCache",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],i&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var i=this.props.children;return i({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(i,o){var a=this.props,l=a.isItemLoaded,d=a.itemCount,h=a.minimumBatchSize,m=h===void 0?10:h,b=a.threshold,w=b===void 0?15:b,_=dI({isItemLoaded:l,itemCount:d,minimumBatchSize:m,startIndex:Math.max(0,i-w),stopIndex:Math.min(d-1,o+w)});(this._memoizedUnloadedRanges.length!==_.length||this._memoizedUnloadedRanges.some(function(E,I){return _[I]!==E}))&&(this._memoizedUnloadedRanges=_,this._loadUnloadedRanges(_))}},{key:"_loadUnloadedRanges",value:function(i){for(var o=this,a=this.props.loadMoreItems||this.props.loadMoreRows,l=function(m){var b=i[m],w=i[m+1],_=a(b,w);_!=null&&_.then(function(){if(fI({lastRenderedStartIndex:o._lastRenderedStartIndex,lastRenderedStopIndex:o._lastRenderedStopIndex,startIndex:b,stopIndex:w})){if(o._listRef==null)return;typeof o._listRef.resetAfterIndex=="function"?o._listRef.resetAfterIndex(b,!0):(typeof o._listRef._getItemStyleCache=="function"&&o._listRef._getItemStyleCache(-1),o._listRef.forceUpdate())}})},d=0;d<i.length;d+=2)l(d)}}]),e}(te.PureComponent),pb={exports:{}};/*!
|
|
57
57
|
* jQuery JavaScript Library v3.7.1
|
|
58
58
|
* https://jquery.com/
|
|
59
59
|
*
|
|
@@ -62,16 +62,16 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
62
62
|
* https://jquery.org/license
|
|
63
63
|
*
|
|
64
64
|
* Date: 2023-08-28T13:37Z
|
|
65
|
-
*/var Om;function mb(){return Om||(Om=1,function(t){(function(e,n){t.exports=e.document?n(e,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return n(i)}})(typeof window<"u"?window:Cn,function(e,n){var i=[],o=Object.getPrototypeOf,a=i.slice,l=i.flat?function(u){return i.flat.call(u)}:function(u){return i.concat.apply([],u)},d=i.push,h=i.indexOf,m={},b=m.toString,w=m.hasOwnProperty,_=w.toString,E=_.call(Object),I={},A=function(f){return typeof f=="function"&&typeof f.nodeType!="number"&&typeof f.item!="function"},B=function(f){return f!=null&&f===f.window},k=e.document,F={type:!0,src:!0,nonce:!0,noModule:!0};function N(u,f,p){p=p||k;var y,x,S=p.createElement("script");if(S.text=u,f)for(y in F)x=f[y]||f.getAttribute&&f.getAttribute(y),x&&S.setAttribute(y,x);p.head.appendChild(S).parentNode.removeChild(S)}function Y(u){return u==null?u+"":typeof u=="object"||typeof u=="function"?m[b.call(u)]||"object":typeof u}var $="3.7.1",ie=/HTML$/i,g=function(u,f){return new g.fn.init(u,f)};g.fn=g.prototype={jquery:$,constructor:g,length:0,toArray:function(){return a.call(this)},get:function(u){return u==null?a.call(this):u<0?this[u+this.length]:this[u]},pushStack:function(u){var f=g.merge(this.constructor(),u);return f.prevObject=this,f},each:function(u){return g.each(this,u)},map:function(u){return this.pushStack(g.map(this,function(f,p){return u.call(f,p,f)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(g.grep(this,function(u,f){return(f+1)%2}))},odd:function(){return this.pushStack(g.grep(this,function(u,f){return f%2}))},eq:function(u){var f=this.length,p=+u+(u<0?f:0);return this.pushStack(p>=0&&p<f?[this[p]]:[])},end:function(){return this.prevObject||this.constructor()},push:d,sort:i.sort,splice:i.splice},g.extend=g.fn.extend=function(){var u,f,p,y,x,S,T=arguments[0]||{},j=1,L=arguments.length,z=!1;for(typeof T=="boolean"&&(z=T,T=arguments[j]||{},j++),typeof T!="object"&&!A(T)&&(T={}),j===L&&(T=this,j--);j<L;j++)if((u=arguments[j])!=null)for(f in u)y=u[f],!(f==="__proto__"||T===y)&&(z&&y&&(g.isPlainObject(y)||(x=Array.isArray(y)))?(p=T[f],x&&!Array.isArray(p)?S=[]:!x&&!g.isPlainObject(p)?S={}:S=p,x=!1,T[f]=g.extend(z,S,y)):y!==void 0&&(T[f]=y));return T},g.extend({expando:"jQuery"+($+Math.random()).replace(/\D/g,""),isReady:!0,error:function(u){throw new Error(u)},noop:function(){},isPlainObject:function(u){var f,p;return!u||b.call(u)!=="[object Object]"?!1:(f=o(u),f?(p=w.call(f,"constructor")&&f.constructor,typeof p=="function"&&_.call(p)===E):!0)},isEmptyObject:function(u){var f;for(f in u)return!1;return!0},globalEval:function(u,f,p){N(u,{nonce:f&&f.nonce},p)},each:function(u,f){var p,y=0;if(ee(u))for(p=u.length;y<p&&f.call(u[y],y,u[y])!==!1;y++);else for(y in u)if(f.call(u[y],y,u[y])===!1)break;return u},text:function(u){var f,p="",y=0,x=u.nodeType;if(!x)for(;f=u[y++];)p+=g.text(f);return x===1||x===11?u.textContent:x===9?u.documentElement.textContent:x===3||x===4?u.nodeValue:p},makeArray:function(u,f){var p=f||[];return u!=null&&(ee(Object(u))?g.merge(p,typeof u=="string"?[u]:u):d.call(p,u)),p},inArray:function(u,f,p){return f==null?-1:h.call(f,u,p)},isXMLDoc:function(u){var f=u&&u.namespaceURI,p=u&&(u.ownerDocument||u).documentElement;return!ie.test(f||p&&p.nodeName||"HTML")},merge:function(u,f){for(var p=+f.length,y=0,x=u.length;y<p;y++)u[x++]=f[y];return u.length=x,u},grep:function(u,f,p){for(var y,x=[],S=0,T=u.length,j=!p;S<T;S++)y=!f(u[S],S),y!==j&&x.push(u[S]);return x},map:function(u,f,p){var y,x,S=0,T=[];if(ee(u))for(y=u.length;S<y;S++)x=f(u[S],S,p),x!=null&&T.push(x);else for(S in u)x=f(u[S],S,p),x!=null&&T.push(x);return l(T)},guid:1,support:I}),typeof Symbol=="function"&&(g.fn[Symbol.iterator]=i[Symbol.iterator]),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(u,f){m["[object "+f+"]"]=f.toLowerCase()});function ee(u){var f=!!u&&"length"in u&&u.length,p=Y(u);return A(u)||B(u)?!1:p==="array"||f===0||typeof f=="number"&&f>0&&f-1 in u}function Z(u,f){return u.nodeName&&u.nodeName.toLowerCase()===f.toLowerCase()}var we=i.pop,He=i.sort,De=i.splice,Te="[\\x20\\t\\r\\n\\f]",Le=new RegExp("^"+Te+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Te+"+$","g");g.contains=function(u,f){var p=f&&f.parentNode;return u===p||!!(p&&p.nodeType===1&&(u.contains?u.contains(p):u.compareDocumentPosition&&u.compareDocumentPosition(p)&16))};var G=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function re(u,f){return f?u==="\0"?"�":u.slice(0,-1)+"\\"+u.charCodeAt(u.length-1).toString(16)+" ":"\\"+u}g.escapeSelector=function(u){return(u+"").replace(G,re)};var de=k,pe=d;(function(){var u,f,p,y,x,S=pe,T,j,L,z,ne,oe=g.expando,X=0,he=0,_e=Ai(),qe=Ai(),ze=Ai(),Pt=Ai(),bt=function(R,U){return R===U&&(x=!0),0},In="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Rn="(?:\\\\[\\da-fA-F]{1,6}"+Te+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",et="\\["+Te+"*("+Rn+")(?:"+Te+"*([*^$|!~]?=)"+Te+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Rn+"))|)"+Te+"*\\]",rr=":("+Rn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+et+")*)|.*)\\)|)",tt=new RegExp(Te+"+","g"),ct=new RegExp("^"+Te+"*,"+Te+"*"),Ti=new RegExp("^"+Te+"*([>+~]|"+Te+")"+Te+"*"),lo=new RegExp(Te+"|>"),mn=new RegExp(rr),wr=new RegExp("^"+Rn+"$"),rn={ID:new RegExp("^#("+Rn+")"),CLASS:new RegExp("^\\.("+Rn+")"),TAG:new RegExp("^("+Rn+"|[*])"),ATTR:new RegExp("^"+et),PSEUDO:new RegExp("^"+rr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Te+"*(even|odd|(([+-]|)(\\d*)n|)"+Te+"*(?:([+-]|)"+Te+"*(\\d+)|))"+Te+"*\\)|)","i"),bool:new RegExp("^(?:"+In+")$","i"),needsContext:new RegExp("^"+Te+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Te+"*((?:-\\d)?\\d*)"+Te+"*\\)|)(?=[^-]|$)","i")},Un=/^(?:input|select|textarea|button)$/i,ir=/^h\d$/i,Vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Oi=/[+~]/,zn=new RegExp("\\\\[\\da-fA-F]{1,6}"+Te+"?|\\\\([^\\r\\n\\f])","g"),Ln=function(R,U){var K="0x"+R.slice(1)-65536;return U||(K<0?String.fromCharCode(K+65536):String.fromCharCode(K>>10|55296,K&1023|56320))},qt=function(){or()},es=xr(function(R){return R.disabled===!0&&Z(R,"fieldset")},{dir:"parentNode",next:"legend"});function Pi(){try{return T.activeElement}catch{}}try{S.apply(i=a.call(de.childNodes),de.childNodes),i[de.childNodes.length].nodeType}catch{S={apply:function(U,K){pe.apply(U,a.call(K))},call:function(U){pe.apply(U,a.call(arguments,1))}}}function ot(R,U,K,J){var D,W,V,se,ue,Ee,Oe,Se=U&&U.ownerDocument,Ge=U?U.nodeType:9;if(K=K||[],typeof R!="string"||!R||Ge!==1&&Ge!==9&&Ge!==11)return K;if(!J&&(or(U),U=U||T,L)){if(Ge!==11&&(ue=Vt.exec(R)))if(D=ue[1]){if(Ge===9)if(V=U.getElementById(D)){if(V.id===D)return S.call(K,V),K}else return K;else if(Se&&(V=Se.getElementById(D))&&ot.contains(U,V)&&V.id===D)return S.call(K,V),K}else{if(ue[2])return S.apply(K,U.getElementsByTagName(R)),K;if((D=ue[3])&&U.getElementsByClassName)return S.apply(K,U.getElementsByClassName(D)),K}if(!Pt[R+" "]&&(!z||!z.test(R))){if(Oe=R,Se=U,Ge===1&&(lo.test(R)||Ti.test(R))){for(Se=Oi.test(R)&&ts(U.parentNode)||U,(Se!=U||!I.scope)&&((se=U.getAttribute("id"))?se=g.escapeSelector(se):U.setAttribute("id",se=oe)),Ee=Zr(R),W=Ee.length;W--;)Ee[W]=(se?"#"+se:":scope")+" "+yn(Ee[W]);Oe=Ee.join(",")}try{return S.apply(K,Se.querySelectorAll(Oe)),K}catch{Pt(R,!0)}finally{se===oe&&U.removeAttribute("id")}}}return Sa(R.replace(Le,"$1"),U,K,J)}function Ai(){var R=[];function U(K,J){return R.push(K+" ")>f.cacheLength&&delete U[R.shift()],U[K+" "]=J}return U}function vn(R){return R[oe]=!0,R}function Jr(R){var U=T.createElement("fieldset");try{return!!R(U)}catch{return!1}finally{U.parentNode&&U.parentNode.removeChild(U),U=null}}function Sl(R){return function(U){return Z(U,"input")&&U.type===R}}function _l(R){return function(U){return(Z(U,"input")||Z(U,"button"))&&U.type===R}}function wa(R){return function(U){return"form"in U?U.parentNode&&U.disabled===!1?"label"in U?"label"in U.parentNode?U.parentNode.disabled===R:U.disabled===R:U.isDisabled===R||U.isDisabled!==!R&&es(U)===R:U.disabled===R:"label"in U?U.disabled===R:!1}}function on(R){return vn(function(U){return U=+U,vn(function(K,J){for(var D,W=R([],K.length,U),V=W.length;V--;)K[D=W[V]]&&(K[D]=!(J[D]=K[D]))})})}function ts(R){return R&&typeof R.getElementsByTagName<"u"&&R}function or(R){var U,K=R?R.ownerDocument||R:de;return K==T||K.nodeType!==9||!K.documentElement||(T=K,j=T.documentElement,L=!g.isXMLDoc(T),ne=j.matches||j.webkitMatchesSelector||j.msMatchesSelector,j.msMatchesSelector&&de!=T&&(U=T.defaultView)&&U.top!==U&&U.addEventListener("unload",qt),I.getById=Jr(function(J){return j.appendChild(J).id=g.expando,!T.getElementsByName||!T.getElementsByName(g.expando).length}),I.disconnectedMatch=Jr(function(J){return ne.call(J,"*")}),I.scope=Jr(function(){return T.querySelectorAll(":scope")}),I.cssHas=Jr(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),I.getById?(f.filter.ID=function(J){var D=J.replace(zn,Ln);return function(W){return W.getAttribute("id")===D}},f.find.ID=function(J,D){if(typeof D.getElementById<"u"&&L){var W=D.getElementById(J);return W?[W]:[]}}):(f.filter.ID=function(J){var D=J.replace(zn,Ln);return function(W){var V=typeof W.getAttributeNode<"u"&&W.getAttributeNode("id");return V&&V.value===D}},f.find.ID=function(J,D){if(typeof D.getElementById<"u"&&L){var W,V,se,ue=D.getElementById(J);if(ue){if(W=ue.getAttributeNode("id"),W&&W.value===J)return[ue];for(se=D.getElementsByName(J),V=0;ue=se[V++];)if(W=ue.getAttributeNode("id"),W&&W.value===J)return[ue]}return[]}}),f.find.TAG=function(J,D){return typeof D.getElementsByTagName<"u"?D.getElementsByTagName(J):D.querySelectorAll(J)},f.find.CLASS=function(J,D){if(typeof D.getElementsByClassName<"u"&&L)return D.getElementsByClassName(J)},z=[],Jr(function(J){var D;j.appendChild(J).innerHTML="<a id='"+oe+"' href='' disabled='disabled'></a><select id='"+oe+"-\r\\' disabled='disabled'><option selected=''></option></select>",J.querySelectorAll("[selected]").length||z.push("\\["+Te+"*(?:value|"+In+")"),J.querySelectorAll("[id~="+oe+"-]").length||z.push("~="),J.querySelectorAll("a#"+oe+"+*").length||z.push(".#.+[+~]"),J.querySelectorAll(":checked").length||z.push(":checked"),D=T.createElement("input"),D.setAttribute("type","hidden"),J.appendChild(D).setAttribute("name","D"),j.appendChild(J).disabled=!0,J.querySelectorAll(":disabled").length!==2&&z.push(":enabled",":disabled"),D=T.createElement("input"),D.setAttribute("name",""),J.appendChild(D),J.querySelectorAll("[name='']").length||z.push("\\["+Te+"*name"+Te+"*="+Te+`*(?:''|"")`)}),I.cssHas||z.push(":has"),z=z.length&&new RegExp(z.join("|")),bt=function(J,D){if(J===D)return x=!0,0;var W=!J.compareDocumentPosition-!D.compareDocumentPosition;return W||(W=(J.ownerDocument||J)==(D.ownerDocument||D)?J.compareDocumentPosition(D):1,W&1||!I.sortDetached&&D.compareDocumentPosition(J)===W?J===T||J.ownerDocument==de&&ot.contains(de,J)?-1:D===T||D.ownerDocument==de&&ot.contains(de,D)?1:y?h.call(y,J)-h.call(y,D):0:W&4?-1:1)}),T}ot.matches=function(R,U){return ot(R,null,null,U)},ot.matchesSelector=function(R,U){if(or(R),L&&!Pt[U+" "]&&(!z||!z.test(U)))try{var K=ne.call(R,U);if(K||I.disconnectedMatch||R.document&&R.document.nodeType!==11)return K}catch{Pt(U,!0)}return ot(U,T,null,[R]).length>0},ot.contains=function(R,U){return(R.ownerDocument||R)!=T&&or(R),g.contains(R,U)},ot.attr=function(R,U){(R.ownerDocument||R)!=T&&or(R);var K=f.attrHandle[U.toLowerCase()],J=K&&w.call(f.attrHandle,U.toLowerCase())?K(R,U,!L):void 0;return J!==void 0?J:R.getAttribute(U)},ot.error=function(R){throw new Error("Syntax error, unrecognized expression: "+R)},g.uniqueSort=function(R){var U,K=[],J=0,D=0;if(x=!I.sortStable,y=!I.sortStable&&a.call(R,0),He.call(R,bt),x){for(;U=R[D++];)U===R[D]&&(J=K.push(D));for(;J--;)De.call(R,K[J],1)}return y=null,R},g.fn.uniqueSort=function(){return this.pushStack(g.uniqueSort(a.apply(this)))},f=g.expr={cacheLength:50,createPseudo:vn,match:rn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(R){return R[1]=R[1].replace(zn,Ln),R[3]=(R[3]||R[4]||R[5]||"").replace(zn,Ln),R[2]==="~="&&(R[3]=" "+R[3]+" "),R.slice(0,4)},CHILD:function(R){return R[1]=R[1].toLowerCase(),R[1].slice(0,3)==="nth"?(R[3]||ot.error(R[0]),R[4]=+(R[4]?R[5]+(R[6]||1):2*(R[3]==="even"||R[3]==="odd")),R[5]=+(R[7]+R[8]||R[3]==="odd")):R[3]&&ot.error(R[0]),R},PSEUDO:function(R){var U,K=!R[6]&&R[2];return rn.CHILD.test(R[0])?null:(R[3]?R[2]=R[4]||R[5]||"":K&&mn.test(K)&&(U=Zr(K,!0))&&(U=K.indexOf(")",K.length-U)-K.length)&&(R[0]=R[0].slice(0,U),R[2]=K.slice(0,U)),R.slice(0,3))}},filter:{TAG:function(R){var U=R.replace(zn,Ln).toLowerCase();return R==="*"?function(){return!0}:function(K){return Z(K,U)}},CLASS:function(R){var U=_e[R+" "];return U||(U=new RegExp("(^|"+Te+")"+R+"("+Te+"|$)"))&&_e(R,function(K){return U.test(typeof K.className=="string"&&K.className||typeof K.getAttribute<"u"&&K.getAttribute("class")||"")})},ATTR:function(R,U,K){return function(J){var D=ot.attr(J,R);return D==null?U==="!=":U?(D+="",U==="="?D===K:U==="!="?D!==K:U==="^="?K&&D.indexOf(K)===0:U==="*="?K&&D.indexOf(K)>-1:U==="$="?K&&D.slice(-K.length)===K:U==="~="?(" "+D.replace(tt," ")+" ").indexOf(K)>-1:U==="|="?D===K||D.slice(0,K.length+1)===K+"-":!1):!0}},CHILD:function(R,U,K,J,D){var W=R.slice(0,3)!=="nth",V=R.slice(-4)!=="last",se=U==="of-type";return J===1&&D===0?function(ue){return!!ue.parentNode}:function(ue,Ee,Oe){var Se,Ge,Ne,Ze,At,It=W!==V?"nextSibling":"previousSibling",kt=ue.parentNode,Gt=se&&ue.nodeName.toLowerCase(),qn=!Oe&&!se,Ue=!1;if(kt){if(W){for(;It;){for(Ne=ue;Ne=Ne[It];)if(se?Z(Ne,Gt):Ne.nodeType===1)return!1;At=It=R==="only"&&!At&&"nextSibling"}return!0}if(At=[V?kt.firstChild:kt.lastChild],V&&qn){for(Ge=kt[oe]||(kt[oe]={}),Se=Ge[R]||[],Ze=Se[0]===X&&Se[1],Ue=Ze&&Se[2],Ne=Ze&&kt.childNodes[Ze];Ne=++Ze&&Ne&&Ne[It]||(Ue=Ze=0)||At.pop();)if(Ne.nodeType===1&&++Ue&&Ne===ue){Ge[R]=[X,Ze,Ue];break}}else if(qn&&(Ge=ue[oe]||(ue[oe]={}),Se=Ge[R]||[],Ze=Se[0]===X&&Se[1],Ue=Ze),Ue===!1)for(;(Ne=++Ze&&Ne&&Ne[It]||(Ue=Ze=0)||At.pop())&&!((se?Z(Ne,Gt):Ne.nodeType===1)&&++Ue&&(qn&&(Ge=Ne[oe]||(Ne[oe]={}),Ge[R]=[X,Ue]),Ne===ue)););return Ue-=D,Ue===J||Ue%J===0&&Ue/J>=0}}},PSEUDO:function(R,U){var K,J=f.pseudos[R]||f.setFilters[R.toLowerCase()]||ot.error("unsupported pseudo: "+R);return J[oe]?J(U):J.length>1?(K=[R,R,"",U],f.setFilters.hasOwnProperty(R.toLowerCase())?vn(function(D,W){for(var V,se=J(D,U),ue=se.length;ue--;)V=h.call(D,se[ue]),D[V]=!(W[V]=se[ue])}):function(D){return J(D,0,K)}):J}},pseudos:{not:vn(function(R){var U=[],K=[],J=rs(R.replace(Le,"$1"));return J[oe]?vn(function(D,W,V,se){for(var ue,Ee=J(D,null,se,[]),Oe=D.length;Oe--;)(ue=Ee[Oe])&&(D[Oe]=!(W[Oe]=ue))}):function(D,W,V){return U[0]=D,J(U,null,V,K),U[0]=null,!K.pop()}}),has:vn(function(R){return function(U){return ot(R,U).length>0}}),contains:vn(function(R){return R=R.replace(zn,Ln),function(U){return(U.textContent||g.text(U)).indexOf(R)>-1}}),lang:vn(function(R){return wr.test(R||"")||ot.error("unsupported lang: "+R),R=R.replace(zn,Ln).toLowerCase(),function(U){var K;do if(K=L?U.lang:U.getAttribute("xml:lang")||U.getAttribute("lang"))return K=K.toLowerCase(),K===R||K.indexOf(R+"-")===0;while((U=U.parentNode)&&U.nodeType===1);return!1}}),target:function(R){var U=e.location&&e.location.hash;return U&&U.slice(1)===R.id},root:function(R){return R===j},focus:function(R){return R===Pi()&&T.hasFocus()&&!!(R.type||R.href||~R.tabIndex)},enabled:wa(!1),disabled:wa(!0),checked:function(R){return Z(R,"input")&&!!R.checked||Z(R,"option")&&!!R.selected},selected:function(R){return R.parentNode&&R.parentNode.selectedIndex,R.selected===!0},empty:function(R){for(R=R.firstChild;R;R=R.nextSibling)if(R.nodeType<6)return!1;return!0},parent:function(R){return!f.pseudos.empty(R)},header:function(R){return ir.test(R.nodeName)},input:function(R){return Un.test(R.nodeName)},button:function(R){return Z(R,"input")&&R.type==="button"||Z(R,"button")},text:function(R){var U;return Z(R,"input")&&R.type==="text"&&((U=R.getAttribute("type"))==null||U.toLowerCase()==="text")},first:on(function(){return[0]}),last:on(function(R,U){return[U-1]}),eq:on(function(R,U,K){return[K<0?K+U:K]}),even:on(function(R,U){for(var K=0;K<U;K+=2)R.push(K);return R}),odd:on(function(R,U){for(var K=1;K<U;K+=2)R.push(K);return R}),lt:on(function(R,U,K){var J;for(K<0?J=K+U:K>U?J=U:J=K;--J>=0;)R.push(J);return R}),gt:on(function(R,U,K){for(var J=K<0?K+U:K;++J<U;)R.push(J);return R})}},f.pseudos.nth=f.pseudos.eq;for(u in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})f.pseudos[u]=Sl(u);for(u in{submit:!0,reset:!0})f.pseudos[u]=_l(u);function co(){}co.prototype=f.filters=f.pseudos,f.setFilters=new co;function Zr(R,U){var K,J,D,W,V,se,ue,Ee=qe[R+" "];if(Ee)return U?0:Ee.slice(0);for(V=R,se=[],ue=f.preFilter;V;){(!K||(J=ct.exec(V)))&&(J&&(V=V.slice(J[0].length)||V),se.push(D=[])),K=!1,(J=Ti.exec(V))&&(K=J.shift(),D.push({value:K,type:J[0].replace(Le," ")}),V=V.slice(K.length));for(W in f.filter)(J=rn[W].exec(V))&&(!ue[W]||(J=ue[W](J)))&&(K=J.shift(),D.push({value:K,type:W,matches:J}),V=V.slice(K.length));if(!K)break}return U?V.length:V?ot.error(R):qe(R,se).slice(0)}function yn(R){for(var U=0,K=R.length,J="";U<K;U++)J+=R[U].value;return J}function xr(R,U,K){var J=U.dir,D=U.next,W=D||J,V=K&&W==="parentNode",se=he++;return U.first?function(ue,Ee,Oe){for(;ue=ue[J];)if(ue.nodeType===1||V)return R(ue,Ee,Oe);return!1}:function(ue,Ee,Oe){var Se,Ge,Ne=[X,se];if(Oe){for(;ue=ue[J];)if((ue.nodeType===1||V)&&R(ue,Ee,Oe))return!0}else for(;ue=ue[J];)if(ue.nodeType===1||V)if(Ge=ue[oe]||(ue[oe]={}),D&&Z(ue,D))ue=ue[J]||ue;else{if((Se=Ge[W])&&Se[0]===X&&Se[1]===se)return Ne[2]=Se[2];if(Ge[W]=Ne,Ne[2]=R(ue,Ee,Oe))return!0}return!1}}function ns(R){return R.length>1?function(U,K,J){for(var D=R.length;D--;)if(!R[D](U,K,J))return!1;return!0}:R[0]}function Cl(R,U,K){for(var J=0,D=U.length;J<D;J++)ot(R,U[J],K);return K}function fo(R,U,K,J,D){for(var W,V=[],se=0,ue=R.length,Ee=U!=null;se<ue;se++)(W=R[se])&&(!K||K(W,J,D))&&(V.push(W),Ee&&U.push(se));return V}function sr(R,U,K,J,D,W){return J&&!J[oe]&&(J=sr(J)),D&&!D[oe]&&(D=sr(D,W)),vn(function(V,se,ue,Ee){var Oe,Se,Ge,Ne,Ze=[],At=[],It=se.length,kt=V||Cl(U||"*",ue.nodeType?[ue]:ue,[]),Gt=R&&(V||!U)?fo(kt,Ze,R,ue,Ee):kt;if(K?(Ne=D||(V?R:It||J)?[]:se,K(Gt,Ne,ue,Ee)):Ne=Gt,J)for(Oe=fo(Ne,At),J(Oe,[],ue,Ee),Se=Oe.length;Se--;)(Ge=Oe[Se])&&(Ne[At[Se]]=!(Gt[At[Se]]=Ge));if(V){if(D||R){if(D){for(Oe=[],Se=Ne.length;Se--;)(Ge=Ne[Se])&&Oe.push(Gt[Se]=Ge);D(null,Ne=[],Oe,Ee)}for(Se=Ne.length;Se--;)(Ge=Ne[Se])&&(Oe=D?h.call(V,Ge):Ze[Se])>-1&&(V[Oe]=!(se[Oe]=Ge))}}else Ne=fo(Ne===se?Ne.splice(It,Ne.length):Ne),D?D(null,se,Ne,Ee):S.apply(se,Ne)})}function Yt(R){for(var U,K,J,D=R.length,W=f.relative[R[0].type],V=W||f.relative[" "],se=W?1:0,ue=xr(function(Se){return Se===U},V,!0),Ee=xr(function(Se){return h.call(U,Se)>-1},V,!0),Oe=[function(Se,Ge,Ne){var Ze=!W&&(Ne||Ge!=p)||((U=Ge).nodeType?ue(Se,Ge,Ne):Ee(Se,Ge,Ne));return U=null,Ze}];se<D;se++)if(K=f.relative[R[se].type])Oe=[xr(ns(Oe),K)];else{if(K=f.filter[R[se].type].apply(null,R[se].matches),K[oe]){for(J=++se;J<D&&!f.relative[R[J].type];J++);return sr(se>1&&ns(Oe),se>1&&yn(R.slice(0,se-1).concat({value:R[se-2].type===" "?"*":""})).replace(Le,"$1"),K,se<J&&Yt(R.slice(se,J)),J<D&&Yt(R=R.slice(J)),J<D&&yn(R))}Oe.push(K)}return ns(Oe)}function xa(R,U){var K=U.length>0,J=R.length>0,D=function(W,V,se,ue,Ee){var Oe,Se,Ge,Ne=0,Ze="0",At=W&&[],It=[],kt=p,Gt=W||J&&f.find.TAG("*",Ee),qn=X+=kt==null?1:Math.random()||.1,Ue=Gt.length;for(Ee&&(p=V==T||V||Ee);Ze!==Ue&&(Oe=Gt[Ze])!=null;Ze++){if(J&&Oe){for(Se=0,!V&&Oe.ownerDocument!=T&&(or(Oe),se=!L);Ge=R[Se++];)if(Ge(Oe,V||T,se)){S.call(ue,Oe);break}Ee&&(X=qn)}K&&((Oe=!Ge&&Oe)&&Ne--,W&&At.push(Oe))}if(Ne+=Ze,K&&Ze!==Ne){for(Se=0;Ge=U[Se++];)Ge(At,It,V,se);if(W){if(Ne>0)for(;Ze--;)At[Ze]||It[Ze]||(It[Ze]=we.call(ue));It=fo(It)}S.apply(ue,It),Ee&&!W&&It.length>0&&Ne+U.length>1&&g.uniqueSort(ue)}return Ee&&(X=qn,p=kt),At};return K?vn(D):D}function rs(R,U){var K,J=[],D=[],W=ze[R+" "];if(!W){for(U||(U=Zr(R)),K=U.length;K--;)W=Yt(U[K]),W[oe]?J.push(W):D.push(W);W=ze(R,xa(D,J)),W.selector=R}return W}function Sa(R,U,K,J){var D,W,V,se,ue,Ee=typeof R=="function"&&R,Oe=!J&&Zr(R=Ee.selector||R);if(K=K||[],Oe.length===1){if(W=Oe[0]=Oe[0].slice(0),W.length>2&&(V=W[0]).type==="ID"&&U.nodeType===9&&L&&f.relative[W[1].type]){if(U=(f.find.ID(V.matches[0].replace(zn,Ln),U)||[])[0],U)Ee&&(U=U.parentNode);else return K;R=R.slice(W.shift().value.length)}for(D=rn.needsContext.test(R)?0:W.length;D--&&(V=W[D],!f.relative[se=V.type]);)if((ue=f.find[se])&&(J=ue(V.matches[0].replace(zn,Ln),Oi.test(W[0].type)&&ts(U.parentNode)||U))){if(W.splice(D,1),R=J.length&&yn(W),!R)return S.apply(K,J),K;break}}return(Ee||rs(R,Oe))(J,U,!L,K,!U||Oi.test(R)&&ts(U.parentNode)||U),K}I.sortStable=oe.split("").sort(bt).join("")===oe,or(),I.sortDetached=Jr(function(R){return R.compareDocumentPosition(T.createElement("fieldset"))&1}),g.find=ot,g.expr[":"]=g.expr.pseudos,g.unique=g.uniqueSort,ot.compile=rs,ot.select=Sa,ot.setDocument=or,ot.tokenize=Zr,ot.escape=g.escapeSelector,ot.getText=g.text,ot.isXML=g.isXMLDoc,ot.selectors=g.expr,ot.support=g.support,ot.uniqueSort=g.uniqueSort})();var Ae=function(u,f,p){for(var y=[],x=p!==void 0;(u=u[f])&&u.nodeType!==9;)if(u.nodeType===1){if(x&&g(u).is(p))break;y.push(u)}return y},Q=function(u,f){for(var p=[];u;u=u.nextSibling)u.nodeType===1&&u!==f&&p.push(u);return p},ae=g.expr.match.needsContext,ve=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function me(u,f,p){return A(f)?g.grep(u,function(y,x){return!!f.call(y,x,y)!==p}):f.nodeType?g.grep(u,function(y){return y===f!==p}):typeof f!="string"?g.grep(u,function(y){return h.call(f,y)>-1!==p}):g.filter(f,u,p)}g.filter=function(u,f,p){var y=f[0];return p&&(u=":not("+u+")"),f.length===1&&y.nodeType===1?g.find.matchesSelector(y,u)?[y]:[]:g.find.matches(u,g.grep(f,function(x){return x.nodeType===1}))},g.fn.extend({find:function(u){var f,p,y=this.length,x=this;if(typeof u!="string")return this.pushStack(g(u).filter(function(){for(f=0;f<y;f++)if(g.contains(x[f],this))return!0}));for(p=this.pushStack([]),f=0;f<y;f++)g.find(u,x[f],p);return y>1?g.uniqueSort(p):p},filter:function(u){return this.pushStack(me(this,u||[],!1))},not:function(u){return this.pushStack(me(this,u||[],!0))},is:function(u){return!!me(this,typeof u=="string"&&ae.test(u)?g(u):u||[],!1).length}});var ye,Pe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ce=g.fn.init=function(u,f,p){var y,x;if(!u)return this;if(p=p||ye,typeof u=="string")if(u[0]==="<"&&u[u.length-1]===">"&&u.length>=3?y=[null,u,null]:y=Pe.exec(u),y&&(y[1]||!f))if(y[1]){if(f=f instanceof g?f[0]:f,g.merge(this,g.parseHTML(y[1],f&&f.nodeType?f.ownerDocument||f:k,!0)),ve.test(y[1])&&g.isPlainObject(f))for(y in f)A(this[y])?this[y](f[y]):this.attr(y,f[y]);return this}else return x=k.getElementById(y[2]),x&&(this[0]=x,this.length=1),this;else return!f||f.jquery?(f||p).find(u):this.constructor(f).find(u);else{if(u.nodeType)return this[0]=u,this.length=1,this;if(A(u))return p.ready!==void 0?p.ready(u):u(g)}return g.makeArray(u,this)};Ce.prototype=g.fn,ye=g(k);var Ie=/^(?:parents|prev(?:Until|All))/,je={children:!0,contents:!0,next:!0,prev:!0};g.fn.extend({has:function(u){var f=g(u,this),p=f.length;return this.filter(function(){for(var y=0;y<p;y++)if(g.contains(this,f[y]))return!0})},closest:function(u,f){var p,y=0,x=this.length,S=[],T=typeof u!="string"&&g(u);if(!ae.test(u)){for(;y<x;y++)for(p=this[y];p&&p!==f;p=p.parentNode)if(p.nodeType<11&&(T?T.index(p)>-1:p.nodeType===1&&g.find.matchesSelector(p,u))){S.push(p);break}}return this.pushStack(S.length>1?g.uniqueSort(S):S)},index:function(u){return u?typeof u=="string"?h.call(g(u),this[0]):h.call(this,u.jquery?u[0]:u):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(u,f){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(u,f))))},addBack:function(u){return this.add(u==null?this.prevObject:this.prevObject.filter(u))}});function $e(u,f){for(;(u=u[f])&&u.nodeType!==1;);return u}g.each({parent:function(u){var f=u.parentNode;return f&&f.nodeType!==11?f:null},parents:function(u){return Ae(u,"parentNode")},parentsUntil:function(u,f,p){return Ae(u,"parentNode",p)},next:function(u){return $e(u,"nextSibling")},prev:function(u){return $e(u,"previousSibling")},nextAll:function(u){return Ae(u,"nextSibling")},prevAll:function(u){return Ae(u,"previousSibling")},nextUntil:function(u,f,p){return Ae(u,"nextSibling",p)},prevUntil:function(u,f,p){return Ae(u,"previousSibling",p)},siblings:function(u){return Q((u.parentNode||{}).firstChild,u)},children:function(u){return Q(u.firstChild)},contents:function(u){return u.contentDocument!=null&&o(u.contentDocument)?u.contentDocument:(Z(u,"template")&&(u=u.content||u),g.merge([],u.childNodes))}},function(u,f){g.fn[u]=function(p,y){var x=g.map(this,f,p);return u.slice(-5)!=="Until"&&(y=p),y&&typeof y=="string"&&(x=g.filter(y,x)),this.length>1&&(je[u]||g.uniqueSort(x),Ie.test(u)&&x.reverse()),this.pushStack(x)}});var Me=/[^\x20\t\r\n\f]+/g;function Xe(u){var f={};return g.each(u.match(Me)||[],function(p,y){f[y]=!0}),f}g.Callbacks=function(u){u=typeof u=="string"?Xe(u):g.extend({},u);var f,p,y,x,S=[],T=[],j=-1,L=function(){for(x=x||u.once,y=f=!0;T.length;j=-1)for(p=T.shift();++j<S.length;)S[j].apply(p[0],p[1])===!1&&u.stopOnFalse&&(j=S.length,p=!1);u.memory||(p=!1),f=!1,x&&(p?S=[]:S="")},z={add:function(){return S&&(p&&!f&&(j=S.length-1,T.push(p)),function ne(oe){g.each(oe,function(X,he){A(he)?(!u.unique||!z.has(he))&&S.push(he):he&&he.length&&Y(he)!=="string"&&ne(he)})}(arguments),p&&!f&&L()),this},remove:function(){return g.each(arguments,function(ne,oe){for(var X;(X=g.inArray(oe,S,X))>-1;)S.splice(X,1),X<=j&&j--}),this},has:function(ne){return ne?g.inArray(ne,S)>-1:S.length>0},empty:function(){return S&&(S=[]),this},disable:function(){return x=T=[],S=p="",this},disabled:function(){return!S},lock:function(){return x=T=[],!p&&!f&&(S=p=""),this},locked:function(){return!!x},fireWith:function(ne,oe){return x||(oe=oe||[],oe=[ne,oe.slice?oe.slice():oe],T.push(oe),f||L()),this},fire:function(){return z.fireWith(this,arguments),this},fired:function(){return!!y}};return z};function ge(u){return u}function gt(u){throw u}function ht(u,f,p,y){var x;try{u&&A(x=u.promise)?x.call(u).done(f).fail(p):u&&A(x=u.then)?x.call(u,f,p):f.apply(void 0,[u].slice(y))}catch(S){p.apply(void 0,[S])}}g.extend({Deferred:function(u){var f=[["notify","progress",g.Callbacks("memory"),g.Callbacks("memory"),2],["resolve","done",g.Callbacks("once memory"),g.Callbacks("once memory"),0,"resolved"],["reject","fail",g.Callbacks("once memory"),g.Callbacks("once memory"),1,"rejected"]],p="pending",y={state:function(){return p},always:function(){return x.done(arguments).fail(arguments),this},catch:function(S){return y.then(null,S)},pipe:function(){var S=arguments;return g.Deferred(function(T){g.each(f,function(j,L){var z=A(S[L[4]])&&S[L[4]];x[L[1]](function(){var ne=z&&z.apply(this,arguments);ne&&A(ne.promise)?ne.promise().progress(T.notify).done(T.resolve).fail(T.reject):T[L[0]+"With"](this,z?[ne]:arguments)})}),S=null}).promise()},then:function(S,T,j){var L=0;function z(ne,oe,X,he){return function(){var _e=this,qe=arguments,ze=function(){var bt,In;if(!(ne<L)){if(bt=X.apply(_e,qe),bt===oe.promise())throw new TypeError("Thenable self-resolution");In=bt&&(typeof bt=="object"||typeof bt=="function")&&bt.then,A(In)?he?In.call(bt,z(L,oe,ge,he),z(L,oe,gt,he)):(L++,In.call(bt,z(L,oe,ge,he),z(L,oe,gt,he),z(L,oe,ge,oe.notifyWith))):(X!==ge&&(_e=void 0,qe=[bt]),(he||oe.resolveWith)(_e,qe))}},Pt=he?ze:function(){try{ze()}catch(bt){g.Deferred.exceptionHook&&g.Deferred.exceptionHook(bt,Pt.error),ne+1>=L&&(X!==gt&&(_e=void 0,qe=[bt]),oe.rejectWith(_e,qe))}};ne?Pt():(g.Deferred.getErrorHook?Pt.error=g.Deferred.getErrorHook():g.Deferred.getStackHook&&(Pt.error=g.Deferred.getStackHook()),e.setTimeout(Pt))}}return g.Deferred(function(ne){f[0][3].add(z(0,ne,A(j)?j:ge,ne.notifyWith)),f[1][3].add(z(0,ne,A(S)?S:ge)),f[2][3].add(z(0,ne,A(T)?T:gt))}).promise()},promise:function(S){return S!=null?g.extend(S,y):y}},x={};return g.each(f,function(S,T){var j=T[2],L=T[5];y[T[1]]=j.add,L&&j.add(function(){p=L},f[3-S][2].disable,f[3-S][3].disable,f[0][2].lock,f[0][3].lock),j.add(T[3].fire),x[T[0]]=function(){return x[T[0]+"With"](this===x?void 0:this,arguments),this},x[T[0]+"With"]=j.fireWith}),y.promise(x),u&&u.call(x,x),x},when:function(u){var f=arguments.length,p=f,y=Array(p),x=a.call(arguments),S=g.Deferred(),T=function(j){return function(L){y[j]=this,x[j]=arguments.length>1?a.call(arguments):L,--f||S.resolveWith(y,x)}};if(f<=1&&(ht(u,S.done(T(p)).resolve,S.reject,!f),S.state()==="pending"||A(x[p]&&x[p].then)))return S.then();for(;p--;)ht(x[p],T(p),S.reject);return S.promise()}});var kn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;g.Deferred.exceptionHook=function(u,f){e.console&&e.console.warn&&u&&kn.test(u.name)&&e.console.warn("jQuery.Deferred exception: "+u.message,u.stack,f)},g.readyException=function(u){e.setTimeout(function(){throw u})};var Wr=g.Deferred();g.fn.ready=function(u){return Wr.then(u).catch(function(f){g.readyException(f)}),this},g.extend({isReady:!1,readyWait:1,ready:function(u){(u===!0?--g.readyWait:g.isReady)||(g.isReady=!0,!(u!==!0&&--g.readyWait>0)&&Wr.resolveWith(k,[g]))}}),g.ready.then=Wr.then;function en(){k.removeEventListener("DOMContentLoaded",en),e.removeEventListener("load",en),g.ready()}k.readyState==="complete"||k.readyState!=="loading"&&!k.documentElement.doScroll?e.setTimeout(g.ready):(k.addEventListener("DOMContentLoaded",en),e.addEventListener("load",en));var Dn=function(u,f,p,y,x,S,T){var j=0,L=u.length,z=p==null;if(Y(p)==="object"){x=!0;for(j in p)Dn(u,f,j,p[j],!0,S,T)}else if(y!==void 0&&(x=!0,A(y)||(T=!0),z&&(T?(f.call(u,y),f=null):(z=f,f=function(ne,oe,X){return z.call(g(ne),X)})),f))for(;j<L;j++)f(u[j],p,T?y:y.call(u[j],j,f(u[j],p)));return x?u:z?f.call(u):L?f(u[0],p):S},tl=/^-ms-/,wi=/-([a-z])/g;function hn(u,f){return f.toUpperCase()}function jt(u){return u.replace(tl,"ms-").replace(wi,hn)}var Zn=function(u){return u.nodeType===1||u.nodeType===9||!+u.nodeType};function xi(){this.expando=g.expando+xi.uid++}xi.uid=1,xi.prototype={cache:function(u){var f=u[this.expando];return f||(f={},Zn(u)&&(u.nodeType?u[this.expando]=f:Object.defineProperty(u,this.expando,{value:f,configurable:!0}))),f},set:function(u,f,p){var y,x=this.cache(u);if(typeof f=="string")x[jt(f)]=p;else for(y in f)x[jt(y)]=f[y];return x},get:function(u,f){return f===void 0?this.cache(u):u[this.expando]&&u[this.expando][jt(f)]},access:function(u,f,p){return f===void 0||f&&typeof f=="string"&&p===void 0?this.get(u,f):(this.set(u,f,p),p!==void 0?p:f)},remove:function(u,f){var p,y=u[this.expando];if(y!==void 0){if(f!==void 0)for(Array.isArray(f)?f=f.map(jt):(f=jt(f),f=f in y?[f]:f.match(Me)||[]),p=f.length;p--;)delete y[f[p]];(f===void 0||g.isEmptyObject(y))&&(u.nodeType?u[this.expando]=void 0:delete u[this.expando])}},hasData:function(u){var f=u[this.expando];return f!==void 0&&!g.isEmptyObject(f)}};var ke=new xi,Bt=new xi,Si=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Hr=/[A-Z]/g;function Mo(u){return u==="true"?!0:u==="false"?!1:u==="null"?null:u===+u+""?+u:Si.test(u)?JSON.parse(u):u}function Qi(u,f,p){var y;if(p===void 0&&u.nodeType===1)if(y="data-"+f.replace(Hr,"-$&").toLowerCase(),p=u.getAttribute(y),typeof p=="string"){try{p=Mo(p)}catch{}Bt.set(u,f,p)}else p=void 0;return p}g.extend({hasData:function(u){return Bt.hasData(u)||ke.hasData(u)},data:function(u,f,p){return Bt.access(u,f,p)},removeData:function(u,f){Bt.remove(u,f)},_data:function(u,f,p){return ke.access(u,f,p)},_removeData:function(u,f){ke.remove(u,f)}}),g.fn.extend({data:function(u,f){var p,y,x,S=this[0],T=S&&S.attributes;if(u===void 0){if(this.length&&(x=Bt.get(S),S.nodeType===1&&!ke.get(S,"hasDataAttrs"))){for(p=T.length;p--;)T[p]&&(y=T[p].name,y.indexOf("data-")===0&&(y=jt(y.slice(5)),Qi(S,y,x[y])));ke.set(S,"hasDataAttrs",!0)}return x}return typeof u=="object"?this.each(function(){Bt.set(this,u)}):Dn(this,function(j){var L;if(S&&j===void 0)return L=Bt.get(S,u),L!==void 0||(L=Qi(S,u),L!==void 0)?L:void 0;this.each(function(){Bt.set(this,u,j)})},null,f,arguments.length>1,null,!0)},removeData:function(u){return this.each(function(){Bt.remove(this,u)})}}),g.extend({queue:function(u,f,p){var y;if(u)return f=(f||"fx")+"queue",y=ke.get(u,f),p&&(!y||Array.isArray(p)?y=ke.access(u,f,g.makeArray(p)):y.push(p)),y||[]},dequeue:function(u,f){f=f||"fx";var p=g.queue(u,f),y=p.length,x=p.shift(),S=g._queueHooks(u,f),T=function(){g.dequeue(u,f)};x==="inprogress"&&(x=p.shift(),y--),x&&(f==="fx"&&p.unshift("inprogress"),delete S.stop,x.call(u,T,S)),!y&&S&&S.empty.fire()},_queueHooks:function(u,f){var p=f+"queueHooks";return ke.get(u,p)||ke.access(u,p,{empty:g.Callbacks("once memory").add(function(){ke.remove(u,[f+"queue",p])})})}}),g.fn.extend({queue:function(u,f){var p=2;return typeof u!="string"&&(f=u,u="fx",p--),arguments.length<p?g.queue(this[0],u):f===void 0?this:this.each(function(){var y=g.queue(this,u,f);g._queueHooks(this,u),u==="fx"&&y[0]!=="inprogress"&&g.dequeue(this,u)})},dequeue:function(u){return this.each(function(){g.dequeue(this,u)})},clearQueue:function(u){return this.queue(u||"fx",[])},promise:function(u,f){var p,y=1,x=g.Deferred(),S=this,T=this.length,j=function(){--y||x.resolveWith(S,[S])};for(typeof u!="string"&&(f=u,u=void 0),u=u||"fx";T--;)p=ke.get(S[T],u+"queueHooks"),p&&p.empty&&(y++,p.empty.add(j));return j(),x.promise(f)}});var eo=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,mr=new RegExp("^(?:([+-])=|)("+eo+")([a-z%]*)$","i"),pn=["Top","Right","Bottom","Left"],Hn=k.documentElement,Qn=function(u){return g.contains(u.ownerDocument,u)},No={composed:!0};Hn.getRootNode&&(Qn=function(u){return g.contains(u.ownerDocument,u)||u.getRootNode(No)===u.ownerDocument});var $r=function(u,f){return u=f||u,u.style.display==="none"||u.style.display===""&&Qn(u)&&g.css(u,"display")==="none"};function qs(u,f,p,y){var x,S,T=20,j=y?function(){return y.cur()}:function(){return g.css(u,f,"")},L=j(),z=p&&p[3]||(g.cssNumber[f]?"":"px"),ne=u.nodeType&&(g.cssNumber[f]||z!=="px"&&+L)&&mr.exec(g.css(u,f));if(ne&&ne[3]!==z){for(L=L/2,z=z||ne[3],ne=+L||1;T--;)g.style(u,f,ne+z),(1-S)*(1-(S=j()/L||.5))<=0&&(T=0),ne=ne/S;ne=ne*2,g.style(u,f,ne+z),p=p||[]}return p&&(ne=+ne||+L||0,x=p[1]?ne+(p[1]+1)*p[2]:+p[2],y&&(y.unit=z,y.start=ne,y.end=x)),x}var Ys={};function nl(u){var f,p=u.ownerDocument,y=u.nodeName,x=Ys[y];return x||(f=p.body.appendChild(p.createElement(y)),x=g.css(f,"display"),f.parentNode.removeChild(f),x==="none"&&(x="block"),Ys[y]=x,x)}function vr(u,f){for(var p,y,x=[],S=0,T=u.length;S<T;S++)y=u[S],y.style&&(p=y.style.display,f?(p==="none"&&(x[S]=ke.get(y,"display")||null,x[S]||(y.style.display="")),y.style.display===""&&$r(y)&&(x[S]=nl(y))):p!=="none"&&(x[S]="none",ke.set(y,"display",p)));for(S=0;S<T;S++)x[S]!=null&&(u[S].style.display=x[S]);return u}g.fn.extend({show:function(){return vr(this,!0)},hide:function(){return vr(this)},toggle:function(u){return typeof u=="boolean"?u?this.show():this.hide():this.each(function(){$r(this)?g(this).show():g(this).hide()})}});var Ur=/^(?:checkbox|radio)$/i,Gs=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ks=/^$|^module$|\/(?:java|ecma)script/i;(function(){var u=k.createDocumentFragment(),f=u.appendChild(k.createElement("div")),p=k.createElement("input");p.setAttribute("type","radio"),p.setAttribute("checked","checked"),p.setAttribute("name","t"),f.appendChild(p),I.checkClone=f.cloneNode(!0).cloneNode(!0).lastChild.checked,f.innerHTML="<textarea>x</textarea>",I.noCloneChecked=!!f.cloneNode(!0).lastChild.defaultValue,f.innerHTML="<option></option>",I.option=!!f.lastChild})();var tn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};tn.tbody=tn.tfoot=tn.colgroup=tn.caption=tn.thead,tn.th=tn.td,I.option||(tn.optgroup=tn.option=[1,"<select multiple='multiple'>","</select>"]);function Ft(u,f){var p;return typeof u.getElementsByTagName<"u"?p=u.getElementsByTagName(f||"*"):typeof u.querySelectorAll<"u"?p=u.querySelectorAll(f||"*"):p=[],f===void 0||f&&Z(u,f)?g.merge([u],p):p}function to(u,f){for(var p=0,y=u.length;p<y;p++)ke.set(u[p],"globalEval",!f||ke.get(f[p],"globalEval"))}var rl=/<|&#?\w+;/;function Xs(u,f,p,y,x){for(var S,T,j,L,z,ne,oe=f.createDocumentFragment(),X=[],he=0,_e=u.length;he<_e;he++)if(S=u[he],S||S===0)if(Y(S)==="object")g.merge(X,S.nodeType?[S]:S);else if(!rl.test(S))X.push(f.createTextNode(S));else{for(T=T||oe.appendChild(f.createElement("div")),j=(Gs.exec(S)||["",""])[1].toLowerCase(),L=tn[j]||tn._default,T.innerHTML=L[1]+g.htmlPrefilter(S)+L[2],ne=L[0];ne--;)T=T.lastChild;g.merge(X,T.childNodes),T=oe.firstChild,T.textContent=""}for(oe.textContent="",he=0;S=X[he++];){if(y&&g.inArray(S,y)>-1){x&&x.push(S);continue}if(z=Qn(S),T=Ft(oe.appendChild(S),"script"),z&&to(T),p)for(ne=0;S=T[ne++];)Ks.test(S.type||"")&&p.push(S)}return oe}var Js=/^([^.]*)(?:\.(.+)|)/;function er(){return!0}function zr(){return!1}function _i(u,f,p,y,x,S){var T,j;if(typeof f=="object"){typeof p!="string"&&(y=y||p,p=void 0);for(j in f)_i(u,j,p,y,f[j],S);return u}if(y==null&&x==null?(x=p,y=p=void 0):x==null&&(typeof p=="string"?(x=y,y=void 0):(x=y,y=p,p=void 0)),x===!1)x=zr;else if(!x)return u;return S===1&&(T=x,x=function(L){return g().off(L),T.apply(this,arguments)},x.guid=T.guid||(T.guid=g.guid++)),u.each(function(){g.event.add(this,f,x,y,p)})}g.event={global:{},add:function(u,f,p,y,x){var S,T,j,L,z,ne,oe,X,he,_e,qe,ze=ke.get(u);if(Zn(u))for(p.handler&&(S=p,p=S.handler,x=S.selector),x&&g.find.matchesSelector(Hn,x),p.guid||(p.guid=g.guid++),(L=ze.events)||(L=ze.events=Object.create(null)),(T=ze.handle)||(T=ze.handle=function(Pt){return typeof g<"u"&&g.event.triggered!==Pt.type?g.event.dispatch.apply(u,arguments):void 0}),f=(f||"").match(Me)||[""],z=f.length;z--;)j=Js.exec(f[z])||[],he=qe=j[1],_e=(j[2]||"").split(".").sort(),he&&(oe=g.event.special[he]||{},he=(x?oe.delegateType:oe.bindType)||he,oe=g.event.special[he]||{},ne=g.extend({type:he,origType:qe,data:y,handler:p,guid:p.guid,selector:x,needsContext:x&&g.expr.match.needsContext.test(x),namespace:_e.join(".")},S),(X=L[he])||(X=L[he]=[],X.delegateCount=0,(!oe.setup||oe.setup.call(u,y,_e,T)===!1)&&u.addEventListener&&u.addEventListener(he,T)),oe.add&&(oe.add.call(u,ne),ne.handler.guid||(ne.handler.guid=p.guid)),x?X.splice(X.delegateCount++,0,ne):X.push(ne),g.event.global[he]=!0)},remove:function(u,f,p,y,x){var S,T,j,L,z,ne,oe,X,he,_e,qe,ze=ke.hasData(u)&&ke.get(u);if(!(!ze||!(L=ze.events))){for(f=(f||"").match(Me)||[""],z=f.length;z--;){if(j=Js.exec(f[z])||[],he=qe=j[1],_e=(j[2]||"").split(".").sort(),!he){for(he in L)g.event.remove(u,he+f[z],p,y,!0);continue}for(oe=g.event.special[he]||{},he=(y?oe.delegateType:oe.bindType)||he,X=L[he]||[],j=j[2]&&new RegExp("(^|\\.)"+_e.join("\\.(?:.*\\.|)")+"(\\.|$)"),T=S=X.length;S--;)ne=X[S],(x||qe===ne.origType)&&(!p||p.guid===ne.guid)&&(!j||j.test(ne.namespace))&&(!y||y===ne.selector||y==="**"&&ne.selector)&&(X.splice(S,1),ne.selector&&X.delegateCount--,oe.remove&&oe.remove.call(u,ne));T&&!X.length&&((!oe.teardown||oe.teardown.call(u,_e,ze.handle)===!1)&&g.removeEvent(u,he,ze.handle),delete L[he])}g.isEmptyObject(L)&&ke.remove(u,"handle events")}},dispatch:function(u){var f,p,y,x,S,T,j=new Array(arguments.length),L=g.event.fix(u),z=(ke.get(this,"events")||Object.create(null))[L.type]||[],ne=g.event.special[L.type]||{};for(j[0]=L,f=1;f<arguments.length;f++)j[f]=arguments[f];if(L.delegateTarget=this,!(ne.preDispatch&&ne.preDispatch.call(this,L)===!1)){for(T=g.event.handlers.call(this,L,z),f=0;(x=T[f++])&&!L.isPropagationStopped();)for(L.currentTarget=x.elem,p=0;(S=x.handlers[p++])&&!L.isImmediatePropagationStopped();)(!L.rnamespace||S.namespace===!1||L.rnamespace.test(S.namespace))&&(L.handleObj=S,L.data=S.data,y=((g.event.special[S.origType]||{}).handle||S.handler).apply(x.elem,j),y!==void 0&&(L.result=y)===!1&&(L.preventDefault(),L.stopPropagation()));return ne.postDispatch&&ne.postDispatch.call(this,L),L.result}},handlers:function(u,f){var p,y,x,S,T,j=[],L=f.delegateCount,z=u.target;if(L&&z.nodeType&&!(u.type==="click"&&u.button>=1)){for(;z!==this;z=z.parentNode||this)if(z.nodeType===1&&!(u.type==="click"&&z.disabled===!0)){for(S=[],T={},p=0;p<L;p++)y=f[p],x=y.selector+" ",T[x]===void 0&&(T[x]=y.needsContext?g(x,this).index(z)>-1:g.find(x,this,null,[z]).length),T[x]&&S.push(y);S.length&&j.push({elem:z,handlers:S})}}return z=this,L<f.length&&j.push({elem:z,handlers:f.slice(L)}),j},addProp:function(u,f){Object.defineProperty(g.Event.prototype,u,{enumerable:!0,configurable:!0,get:A(f)?function(){if(this.originalEvent)return f(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[u]},set:function(p){Object.defineProperty(this,u,{enumerable:!0,configurable:!0,writable:!0,value:p})}})},fix:function(u){return u[g.expando]?u:new g.Event(u)},special:{load:{noBubble:!0},click:{setup:function(u){var f=this||u;return Ur.test(f.type)&&f.click&&Z(f,"input")&&no(f,"click",!0),!1},trigger:function(u){var f=this||u;return Ur.test(f.type)&&f.click&&Z(f,"input")&&no(f,"click"),!0},_default:function(u){var f=u.target;return Ur.test(f.type)&&f.click&&Z(f,"input")&&ke.get(f,"click")||Z(f,"a")}},beforeunload:{postDispatch:function(u){u.result!==void 0&&u.originalEvent&&(u.originalEvent.returnValue=u.result)}}}};function no(u,f,p){if(!p){ke.get(u,f)===void 0&&g.event.add(u,f,er);return}ke.set(u,f,!1),g.event.add(u,f,{namespace:!1,handler:function(y){var x,S=ke.get(this,f);if(y.isTrigger&1&&this[f]){if(S)(g.event.special[f]||{}).delegateType&&y.stopPropagation();else if(S=a.call(arguments),ke.set(this,f,S),this[f](),x=ke.get(this,f),ke.set(this,f,!1),S!==x)return y.stopImmediatePropagation(),y.preventDefault(),x}else S&&(ke.set(this,f,g.event.trigger(S[0],S.slice(1),this)),y.stopPropagation(),y.isImmediatePropagationStopped=er)}})}g.removeEvent=function(u,f,p){u.removeEventListener&&u.removeEventListener(f,p)},g.Event=function(u,f){if(!(this instanceof g.Event))return new g.Event(u,f);u&&u.type?(this.originalEvent=u,this.type=u.type,this.isDefaultPrevented=u.defaultPrevented||u.defaultPrevented===void 0&&u.returnValue===!1?er:zr,this.target=u.target&&u.target.nodeType===3?u.target.parentNode:u.target,this.currentTarget=u.currentTarget,this.relatedTarget=u.relatedTarget):this.type=u,f&&g.extend(this,f),this.timeStamp=u&&u.timeStamp||Date.now(),this[g.expando]=!0},g.Event.prototype={constructor:g.Event,isDefaultPrevented:zr,isPropagationStopped:zr,isImmediatePropagationStopped:zr,isSimulated:!1,preventDefault:function(){var u=this.originalEvent;this.isDefaultPrevented=er,u&&!this.isSimulated&&u.preventDefault()},stopPropagation:function(){var u=this.originalEvent;this.isPropagationStopped=er,u&&!this.isSimulated&&u.stopPropagation()},stopImmediatePropagation:function(){var u=this.originalEvent;this.isImmediatePropagationStopped=er,u&&!this.isSimulated&&u.stopImmediatePropagation(),this.stopPropagation()}},g.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},g.event.addProp),g.each({focus:"focusin",blur:"focusout"},function(u,f){function p(y){if(k.documentMode){var x=ke.get(this,"handle"),S=g.event.fix(y);S.type=y.type==="focusin"?"focus":"blur",S.isSimulated=!0,x(y),S.target===S.currentTarget&&x(S)}else g.event.simulate(f,y.target,g.event.fix(y))}g.event.special[u]={setup:function(){var y;if(no(this,u,!0),k.documentMode)y=ke.get(this,f),y||this.addEventListener(f,p),ke.set(this,f,(y||0)+1);else return!1},trigger:function(){return no(this,u),!0},teardown:function(){var y;if(k.documentMode)y=ke.get(this,f)-1,y?ke.set(this,f,y):(this.removeEventListener(f,p),ke.remove(this,f));else return!1},_default:function(y){return ke.get(y.target,u)},delegateType:f},g.event.special[f]={setup:function(){var y=this.ownerDocument||this.document||this,x=k.documentMode?this:y,S=ke.get(x,f);S||(k.documentMode?this.addEventListener(f,p):y.addEventListener(u,p,!0)),ke.set(x,f,(S||0)+1)},teardown:function(){var y=this.ownerDocument||this.document||this,x=k.documentMode?this:y,S=ke.get(x,f)-1;S?ke.set(x,f,S):(k.documentMode?this.removeEventListener(f,p):y.removeEventListener(u,p,!0),ke.remove(x,f))}}}),g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(u,f){g.event.special[u]={delegateType:f,bindType:f,handle:function(p){var y,x=this,S=p.relatedTarget,T=p.handleObj;return(!S||S!==x&&!g.contains(x,S))&&(p.type=T.origType,y=T.handler.apply(this,arguments),p.type=f),y}}}),g.fn.extend({on:function(u,f,p,y){return _i(this,u,f,p,y)},one:function(u,f,p,y){return _i(this,u,f,p,y,1)},off:function(u,f,p){var y,x;if(u&&u.preventDefault&&u.handleObj)return y=u.handleObj,g(u.delegateTarget).off(y.namespace?y.origType+"."+y.namespace:y.origType,y.selector,y.handler),this;if(typeof u=="object"){for(x in u)this.off(x,f,u[x]);return this}return(f===!1||typeof f=="function")&&(p=f,f=void 0),p===!1&&(p=zr),this.each(function(){g.event.remove(this,u,p,f)})}});var il=/<script|<style|<link/i,ol=/checked\s*(?:[^=]|=\s*.checked.)/i,sl=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Zs(u,f){return Z(u,"table")&&Z(f.nodeType!==11?f:f.firstChild,"tr")&&g(u).children("tbody")[0]||u}function al(u){return u.type=(u.getAttribute("type")!==null)+"/"+u.type,u}function ul(u){return(u.type||"").slice(0,5)==="true/"?u.type=u.type.slice(5):u.removeAttribute("type"),u}function Qs(u,f){var p,y,x,S,T,j,L;if(f.nodeType===1){if(ke.hasData(u)&&(S=ke.get(u),L=S.events,L)){ke.remove(f,"handle events");for(x in L)for(p=0,y=L[x].length;p<y;p++)g.event.add(f,x,L[x][p])}Bt.hasData(u)&&(T=Bt.access(u),j=g.extend({},T),Bt.set(f,j))}}function ea(u,f){var p=f.nodeName.toLowerCase();p==="input"&&Ur.test(u.type)?f.checked=u.checked:(p==="input"||p==="textarea")&&(f.defaultValue=u.defaultValue)}function qr(u,f,p,y){f=l(f);var x,S,T,j,L,z,ne=0,oe=u.length,X=oe-1,he=f[0],_e=A(he);if(_e||oe>1&&typeof he=="string"&&!I.checkClone&&ol.test(he))return u.each(function(qe){var ze=u.eq(qe);_e&&(f[0]=he.call(this,qe,ze.html())),qr(ze,f,p,y)});if(oe&&(x=Xs(f,u[0].ownerDocument,!1,u,y),S=x.firstChild,x.childNodes.length===1&&(x=S),S||y)){for(T=g.map(Ft(x,"script"),al),j=T.length;ne<oe;ne++)L=x,ne!==X&&(L=g.clone(L,!0,!0),j&&g.merge(T,Ft(L,"script"))),p.call(u[ne],L,ne);if(j)for(z=T[T.length-1].ownerDocument,g.map(T,ul),ne=0;ne<j;ne++)L=T[ne],Ks.test(L.type||"")&&!ke.access(L,"globalEval")&&g.contains(z,L)&&(L.src&&(L.type||"").toLowerCase()!=="module"?g._evalUrl&&!L.noModule&&g._evalUrl(L.src,{nonce:L.nonce||L.getAttribute("nonce")},z):N(L.textContent.replace(sl,""),L,z))}return u}function ta(u,f,p){for(var y,x=f?g.filter(f,u):u,S=0;(y=x[S])!=null;S++)!p&&y.nodeType===1&&g.cleanData(Ft(y)),y.parentNode&&(p&&Qn(y)&&to(Ft(y,"script")),y.parentNode.removeChild(y));return u}g.extend({htmlPrefilter:function(u){return u},clone:function(u,f,p){var y,x,S,T,j=u.cloneNode(!0),L=Qn(u);if(!I.noCloneChecked&&(u.nodeType===1||u.nodeType===11)&&!g.isXMLDoc(u))for(T=Ft(j),S=Ft(u),y=0,x=S.length;y<x;y++)ea(S[y],T[y]);if(f)if(p)for(S=S||Ft(u),T=T||Ft(j),y=0,x=S.length;y<x;y++)Qs(S[y],T[y]);else Qs(u,j);return T=Ft(j,"script"),T.length>0&&to(T,!L&&Ft(u,"script")),j},cleanData:function(u){for(var f,p,y,x=g.event.special,S=0;(p=u[S])!==void 0;S++)if(Zn(p)){if(f=p[ke.expando]){if(f.events)for(y in f.events)x[y]?g.event.remove(p,y):g.removeEvent(p,y,f.handle);p[ke.expando]=void 0}p[Bt.expando]&&(p[Bt.expando]=void 0)}}}),g.fn.extend({detach:function(u){return ta(this,u,!0)},remove:function(u){return ta(this,u)},text:function(u){return Dn(this,function(f){return f===void 0?g.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=f)})},null,u,arguments.length)},append:function(){return qr(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=Zs(this,u);f.appendChild(u)}})},prepend:function(){return qr(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=Zs(this,u);f.insertBefore(u,f.firstChild)}})},before:function(){return qr(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this)})},after:function(){return qr(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this.nextSibling)})},empty:function(){for(var u,f=0;(u=this[f])!=null;f++)u.nodeType===1&&(g.cleanData(Ft(u,!1)),u.textContent="");return this},clone:function(u,f){return u=u??!1,f=f??u,this.map(function(){return g.clone(this,u,f)})},html:function(u){return Dn(this,function(f){var p=this[0]||{},y=0,x=this.length;if(f===void 0&&p.nodeType===1)return p.innerHTML;if(typeof f=="string"&&!il.test(f)&&!tn[(Gs.exec(f)||["",""])[1].toLowerCase()]){f=g.htmlPrefilter(f);try{for(;y<x;y++)p=this[y]||{},p.nodeType===1&&(g.cleanData(Ft(p,!1)),p.innerHTML=f);p=0}catch{}}p&&this.empty().append(f)},null,u,arguments.length)},replaceWith:function(){var u=[];return qr(this,arguments,function(f){var p=this.parentNode;g.inArray(this,u)<0&&(g.cleanData(Ft(this)),p&&p.replaceChild(f,this))},u)}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(u,f){g.fn[u]=function(p){for(var y,x=[],S=g(p),T=S.length-1,j=0;j<=T;j++)y=j===T?this:this.clone(!0),g(S[j])[f](y),d.apply(x,y.get());return this.pushStack(x)}});var jo=new RegExp("^("+eo+")(?!px)[a-z%]+$","i"),Bo=/^--/,ro=function(u){var f=u.ownerDocument.defaultView;return(!f||!f.opener)&&(f=e),f.getComputedStyle(u)},na=function(u,f,p){var y,x,S={};for(x in f)S[x]=u.style[x],u.style[x]=f[x];y=p.call(u);for(x in f)u.style[x]=S[x];return y},io=new RegExp(pn.join("|"),"i");(function(){function u(){if(z){L.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",z.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Hn.appendChild(L).appendChild(z);var ne=e.getComputedStyle(z);p=ne.top!=="1%",j=f(ne.marginLeft)===12,z.style.right="60%",S=f(ne.right)===36,y=f(ne.width)===36,z.style.position="absolute",x=f(z.offsetWidth/3)===12,Hn.removeChild(L),z=null}}function f(ne){return Math.round(parseFloat(ne))}var p,y,x,S,T,j,L=k.createElement("div"),z=k.createElement("div");z.style&&(z.style.backgroundClip="content-box",z.cloneNode(!0).style.backgroundClip="",I.clearCloneStyle=z.style.backgroundClip==="content-box",g.extend(I,{boxSizingReliable:function(){return u(),y},pixelBoxStyles:function(){return u(),S},pixelPosition:function(){return u(),p},reliableMarginLeft:function(){return u(),j},scrollboxSize:function(){return u(),x},reliableTrDimensions:function(){var ne,oe,X,he;return T==null&&(ne=k.createElement("table"),oe=k.createElement("tr"),X=k.createElement("div"),ne.style.cssText="position:absolute;left:-11111px;border-collapse:separate",oe.style.cssText="box-sizing:content-box;border:1px solid",oe.style.height="1px",X.style.height="9px",X.style.display="block",Hn.appendChild(ne).appendChild(oe).appendChild(X),he=e.getComputedStyle(oe),T=parseInt(he.height,10)+parseInt(he.borderTopWidth,10)+parseInt(he.borderBottomWidth,10)===oe.offsetHeight,Hn.removeChild(ne)),T}}))})();function Ci(u,f,p){var y,x,S,T,j=Bo.test(f),L=u.style;return p=p||ro(u),p&&(T=p.getPropertyValue(f)||p[f],j&&T&&(T=T.replace(Le,"$1")||void 0),T===""&&!Qn(u)&&(T=g.style(u,f)),!I.pixelBoxStyles()&&jo.test(T)&&io.test(f)&&(y=L.width,x=L.minWidth,S=L.maxWidth,L.minWidth=L.maxWidth=L.width=T,T=p.width,L.width=y,L.minWidth=x,L.maxWidth=S)),T!==void 0?T+"":T}function Ei(u,f){return{get:function(){if(u()){delete this.get;return}return(this.get=f).apply(this,arguments)}}}var ra=["Webkit","Moz","ms"],ia=k.createElement("div").style,oa={};function sa(u){for(var f=u[0].toUpperCase()+u.slice(1),p=ra.length;p--;)if(u=ra[p]+f,u in ia)return u}function oo(u){var f=g.cssProps[u]||oa[u];return f||(u in ia?u:oa[u]=sa(u)||u)}var aa=/^(none|table(?!-c[ea]).+)/,ll={position:"absolute",visibility:"hidden",display:"block"},ua={letterSpacing:"0",fontWeight:"400"};function la(u,f,p){var y=mr.exec(f);return y?Math.max(0,y[2]-(p||0))+(y[3]||"px"):f}function Fo(u,f,p,y,x,S){var T=f==="width"?1:0,j=0,L=0,z=0;if(p===(y?"border":"content"))return 0;for(;T<4;T+=2)p==="margin"&&(z+=g.css(u,p+pn[T],!0,x)),y?(p==="content"&&(L-=g.css(u,"padding"+pn[T],!0,x)),p!=="margin"&&(L-=g.css(u,"border"+pn[T]+"Width",!0,x))):(L+=g.css(u,"padding"+pn[T],!0,x),p!=="padding"?L+=g.css(u,"border"+pn[T]+"Width",!0,x):j+=g.css(u,"border"+pn[T]+"Width",!0,x));return!y&&S>=0&&(L+=Math.max(0,Math.ceil(u["offset"+f[0].toUpperCase()+f.slice(1)]-S-L-j-.5))||0),L+z}function Vo(u,f,p){var y=ro(u),x=!I.boxSizingReliable()||p,S=x&&g.css(u,"boxSizing",!1,y)==="border-box",T=S,j=Ci(u,f,y),L="offset"+f[0].toUpperCase()+f.slice(1);if(jo.test(j)){if(!p)return j;j="auto"}return(!I.boxSizingReliable()&&S||!I.reliableTrDimensions()&&Z(u,"tr")||j==="auto"||!parseFloat(j)&&g.css(u,"display",!1,y)==="inline")&&u.getClientRects().length&&(S=g.css(u,"boxSizing",!1,y)==="border-box",T=L in u,T&&(j=u[L])),j=parseFloat(j)||0,j+Fo(u,f,p||(S?"border":"content"),T,y,j)+"px"}g.extend({cssHooks:{opacity:{get:function(u,f){if(f){var p=Ci(u,"opacity");return p===""?"1":p}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(u,f,p,y){if(!(!u||u.nodeType===3||u.nodeType===8||!u.style)){var x,S,T,j=jt(f),L=Bo.test(f),z=u.style;if(L||(f=oo(j)),T=g.cssHooks[f]||g.cssHooks[j],p!==void 0){if(S=typeof p,S==="string"&&(x=mr.exec(p))&&x[1]&&(p=qs(u,f,x),S="number"),p==null||p!==p)return;S==="number"&&!L&&(p+=x&&x[3]||(g.cssNumber[j]?"":"px")),!I.clearCloneStyle&&p===""&&f.indexOf("background")===0&&(z[f]="inherit"),(!T||!("set"in T)||(p=T.set(u,p,y))!==void 0)&&(L?z.setProperty(f,p):z[f]=p)}else return T&&"get"in T&&(x=T.get(u,!1,y))!==void 0?x:z[f]}},css:function(u,f,p,y){var x,S,T,j=jt(f),L=Bo.test(f);return L||(f=oo(j)),T=g.cssHooks[f]||g.cssHooks[j],T&&"get"in T&&(x=T.get(u,!0,p)),x===void 0&&(x=Ci(u,f,y)),x==="normal"&&f in ua&&(x=ua[f]),p===""||p?(S=parseFloat(x),p===!0||isFinite(S)?S||0:x):x}}),g.each(["height","width"],function(u,f){g.cssHooks[f]={get:function(p,y,x){if(y)return aa.test(g.css(p,"display"))&&(!p.getClientRects().length||!p.getBoundingClientRect().width)?na(p,ll,function(){return Vo(p,f,x)}):Vo(p,f,x)},set:function(p,y,x){var S,T=ro(p),j=!I.scrollboxSize()&&T.position==="absolute",L=j||x,z=L&&g.css(p,"boxSizing",!1,T)==="border-box",ne=x?Fo(p,f,x,z,T):0;return z&&j&&(ne-=Math.ceil(p["offset"+f[0].toUpperCase()+f.slice(1)]-parseFloat(T[f])-Fo(p,f,"border",!1,T)-.5)),ne&&(S=mr.exec(y))&&(S[3]||"px")!=="px"&&(p.style[f]=y,y=g.css(p,f)),la(p,y,ne)}}}),g.cssHooks.marginLeft=Ei(I.reliableMarginLeft,function(u,f){if(f)return(parseFloat(Ci(u,"marginLeft"))||u.getBoundingClientRect().left-na(u,{marginLeft:0},function(){return u.getBoundingClientRect().left}))+"px"}),g.each({margin:"",padding:"",border:"Width"},function(u,f){g.cssHooks[u+f]={expand:function(p){for(var y=0,x={},S=typeof p=="string"?p.split(" "):[p];y<4;y++)x[u+pn[y]+f]=S[y]||S[y-2]||S[0];return x}},u!=="margin"&&(g.cssHooks[u+f].set=la)}),g.fn.extend({css:function(u,f){return Dn(this,function(p,y,x){var S,T,j={},L=0;if(Array.isArray(y)){for(S=ro(p),T=y.length;L<T;L++)j[y[L]]=g.css(p,y[L],!1,S);return j}return x!==void 0?g.style(p,y,x):g.css(p,y)},u,f,arguments.length>1)}});function Mt(u,f,p,y,x){return new Mt.prototype.init(u,f,p,y,x)}g.Tween=Mt,Mt.prototype={constructor:Mt,init:function(u,f,p,y,x,S){this.elem=u,this.prop=p,this.easing=x||g.easing._default,this.options=f,this.start=this.now=this.cur(),this.end=y,this.unit=S||(g.cssNumber[p]?"":"px")},cur:function(){var u=Mt.propHooks[this.prop];return u&&u.get?u.get(this):Mt.propHooks._default.get(this)},run:function(u){var f,p=Mt.propHooks[this.prop];return this.options.duration?this.pos=f=g.easing[this.easing](u,this.options.duration*u,0,1,this.options.duration):this.pos=f=u,this.now=(this.end-this.start)*f+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),p&&p.set?p.set(this):Mt.propHooks._default.set(this),this}},Mt.prototype.init.prototype=Mt.prototype,Mt.propHooks={_default:{get:function(u){var f;return u.elem.nodeType!==1||u.elem[u.prop]!=null&&u.elem.style[u.prop]==null?u.elem[u.prop]:(f=g.css(u.elem,u.prop,""),!f||f==="auto"?0:f)},set:function(u){g.fx.step[u.prop]?g.fx.step[u.prop](u):u.elem.nodeType===1&&(g.cssHooks[u.prop]||u.elem.style[oo(u.prop)]!=null)?g.style(u.elem,u.prop,u.now+u.unit):u.elem[u.prop]=u.now}}},Mt.propHooks.scrollTop=Mt.propHooks.scrollLeft={set:function(u){u.elem.nodeType&&u.elem.parentNode&&(u.elem[u.prop]=u.now)}},g.easing={linear:function(u){return u},swing:function(u){return .5-Math.cos(u*Math.PI)/2},_default:"swing"},g.fx=Mt.prototype.init,g.fx.step={};var yr,Yr,cl=/^(?:toggle|show|hide)$/,ca=/queueHooks$/;function Gr(){Yr&&(k.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(Gr):e.setTimeout(Gr,g.fx.interval),g.fx.tick())}function Wo(){return e.setTimeout(function(){yr=void 0}),yr=Date.now()}function so(u,f){var p,y=0,x={height:u};for(f=f?1:0;y<4;y+=2-f)p=pn[y],x["margin"+p]=x["padding"+p]=u;return f&&(x.opacity=x.width=u),x}function Ho(u,f,p){for(var y,x=(gn.tweeners[f]||[]).concat(gn.tweeners["*"]),S=0,T=x.length;S<T;S++)if(y=x[S].call(p,f,u))return y}function fa(u,f,p){var y,x,S,T,j,L,z,ne,oe="width"in f||"height"in f,X=this,he={},_e=u.style,qe=u.nodeType&&$r(u),ze=ke.get(u,"fxshow");p.queue||(T=g._queueHooks(u,"fx"),T.unqueued==null&&(T.unqueued=0,j=T.empty.fire,T.empty.fire=function(){T.unqueued||j()}),T.unqueued++,X.always(function(){X.always(function(){T.unqueued--,g.queue(u,"fx").length||T.empty.fire()})}));for(y in f)if(x=f[y],cl.test(x)){if(delete f[y],S=S||x==="toggle",x===(qe?"hide":"show"))if(x==="show"&&ze&&ze[y]!==void 0)qe=!0;else continue;he[y]=ze&&ze[y]||g.style(u,y)}if(L=!g.isEmptyObject(f),!(!L&&g.isEmptyObject(he))){oe&&u.nodeType===1&&(p.overflow=[_e.overflow,_e.overflowX,_e.overflowY],z=ze&&ze.display,z==null&&(z=ke.get(u,"display")),ne=g.css(u,"display"),ne==="none"&&(z?ne=z:(vr([u],!0),z=u.style.display||z,ne=g.css(u,"display"),vr([u]))),(ne==="inline"||ne==="inline-block"&&z!=null)&&g.css(u,"float")==="none"&&(L||(X.done(function(){_e.display=z}),z==null&&(ne=_e.display,z=ne==="none"?"":ne)),_e.display="inline-block")),p.overflow&&(_e.overflow="hidden",X.always(function(){_e.overflow=p.overflow[0],_e.overflowX=p.overflow[1],_e.overflowY=p.overflow[2]})),L=!1;for(y in he)L||(ze?"hidden"in ze&&(qe=ze.hidden):ze=ke.access(u,"fxshow",{display:z}),S&&(ze.hidden=!qe),qe&&vr([u],!0),X.done(function(){qe||vr([u]),ke.remove(u,"fxshow");for(y in he)g.style(u,y,he[y])})),L=Ho(qe?ze[y]:0,y,X),y in ze||(ze[y]=L.start,qe&&(L.end=L.start,L.start=0))}}function $o(u,f){var p,y,x,S,T;for(p in u)if(y=jt(p),x=f[y],S=u[p],Array.isArray(S)&&(x=S[1],S=u[p]=S[0]),p!==y&&(u[y]=S,delete u[p]),T=g.cssHooks[y],T&&"expand"in T){S=T.expand(S),delete u[y];for(p in S)p in u||(u[p]=S[p],f[p]=x)}else f[y]=x}function gn(u,f,p){var y,x,S=0,T=gn.prefilters.length,j=g.Deferred().always(function(){delete L.elem}),L=function(){if(x)return!1;for(var oe=yr||Wo(),X=Math.max(0,z.startTime+z.duration-oe),he=X/z.duration||0,_e=1-he,qe=0,ze=z.tweens.length;qe<ze;qe++)z.tweens[qe].run(_e);return j.notifyWith(u,[z,_e,X]),_e<1&&ze?X:(ze||j.notifyWith(u,[z,1,0]),j.resolveWith(u,[z]),!1)},z=j.promise({elem:u,props:g.extend({},f),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},p),originalProperties:f,originalOptions:p,startTime:yr||Wo(),duration:p.duration,tweens:[],createTween:function(oe,X){var he=g.Tween(u,z.opts,oe,X,z.opts.specialEasing[oe]||z.opts.easing);return z.tweens.push(he),he},stop:function(oe){var X=0,he=oe?z.tweens.length:0;if(x)return this;for(x=!0;X<he;X++)z.tweens[X].run(1);return oe?(j.notifyWith(u,[z,1,0]),j.resolveWith(u,[z,oe])):j.rejectWith(u,[z,oe]),this}}),ne=z.props;for($o(ne,z.opts.specialEasing);S<T;S++)if(y=gn.prefilters[S].call(z,u,ne,z.opts),y)return A(y.stop)&&(g._queueHooks(z.elem,z.opts.queue).stop=y.stop.bind(y)),y;return g.map(ne,Ho,z),A(z.opts.start)&&z.opts.start.call(u,z),z.progress(z.opts.progress).done(z.opts.done,z.opts.complete).fail(z.opts.fail).always(z.opts.always),g.fx.timer(g.extend(L,{elem:u,anim:z,queue:z.opts.queue})),z}g.Animation=g.extend(gn,{tweeners:{"*":[function(u,f){var p=this.createTween(u,f);return qs(p.elem,u,mr.exec(f),p),p}]},tweener:function(u,f){A(u)?(f=u,u=["*"]):u=u.match(Me);for(var p,y=0,x=u.length;y<x;y++)p=u[y],gn.tweeners[p]=gn.tweeners[p]||[],gn.tweeners[p].unshift(f)},prefilters:[fa],prefilter:function(u,f){f?gn.prefilters.unshift(u):gn.prefilters.push(u)}}),g.speed=function(u,f,p){var y=u&&typeof u=="object"?g.extend({},u):{complete:p||!p&&f||A(u)&&u,duration:u,easing:p&&f||f&&!A(f)&&f};return g.fx.off?y.duration=0:typeof y.duration!="number"&&(y.duration in g.fx.speeds?y.duration=g.fx.speeds[y.duration]:y.duration=g.fx.speeds._default),(y.queue==null||y.queue===!0)&&(y.queue="fx"),y.old=y.complete,y.complete=function(){A(y.old)&&y.old.call(this),y.queue&&g.dequeue(this,y.queue)},y},g.fn.extend({fadeTo:function(u,f,p,y){return this.filter($r).css("opacity",0).show().end().animate({opacity:f},u,p,y)},animate:function(u,f,p,y){var x=g.isEmptyObject(u),S=g.speed(f,p,y),T=function(){var j=gn(this,g.extend({},u),S);(x||ke.get(this,"finish"))&&j.stop(!0)};return T.finish=T,x||S.queue===!1?this.each(T):this.queue(S.queue,T)},stop:function(u,f,p){var y=function(x){var S=x.stop;delete x.stop,S(p)};return typeof u!="string"&&(p=f,f=u,u=void 0),f&&this.queue(u||"fx",[]),this.each(function(){var x=!0,S=u!=null&&u+"queueHooks",T=g.timers,j=ke.get(this);if(S)j[S]&&j[S].stop&&y(j[S]);else for(S in j)j[S]&&j[S].stop&&ca.test(S)&&y(j[S]);for(S=T.length;S--;)T[S].elem===this&&(u==null||T[S].queue===u)&&(T[S].anim.stop(p),x=!1,T.splice(S,1));(x||!p)&&g.dequeue(this,u)})},finish:function(u){return u!==!1&&(u=u||"fx"),this.each(function(){var f,p=ke.get(this),y=p[u+"queue"],x=p[u+"queueHooks"],S=g.timers,T=y?y.length:0;for(p.finish=!0,g.queue(this,u,[]),x&&x.stop&&x.stop.call(this,!0),f=S.length;f--;)S[f].elem===this&&S[f].queue===u&&(S[f].anim.stop(!0),S.splice(f,1));for(f=0;f<T;f++)y[f]&&y[f].finish&&y[f].finish.call(this);delete p.finish})}}),g.each(["toggle","show","hide"],function(u,f){var p=g.fn[f];g.fn[f]=function(y,x,S){return y==null||typeof y=="boolean"?p.apply(this,arguments):this.animate(so(f,!0),y,x,S)}}),g.each({slideDown:so("show"),slideUp:so("hide"),slideToggle:so("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(u,f){g.fn[u]=function(p,y,x){return this.animate(f,p,y,x)}}),g.timers=[],g.fx.tick=function(){var u,f=0,p=g.timers;for(yr=Date.now();f<p.length;f++)u=p[f],!u()&&p[f]===u&&p.splice(f--,1);p.length||g.fx.stop(),yr=void 0},g.fx.timer=function(u){g.timers.push(u),g.fx.start()},g.fx.interval=13,g.fx.start=function(){Yr||(Yr=!0,Gr())},g.fx.stop=function(){Yr=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(u,f){return u=g.fx&&g.fx.speeds[u]||u,f=f||"fx",this.queue(f,function(p,y){var x=e.setTimeout(p,u);y.stop=function(){e.clearTimeout(x)}})},function(){var u=k.createElement("input"),f=k.createElement("select"),p=f.appendChild(k.createElement("option"));u.type="checkbox",I.checkOn=u.value!=="",I.optSelected=p.selected,u=k.createElement("input"),u.value="t",u.type="radio",I.radioValue=u.value==="t"}();var Uo,br=g.expr.attrHandle;g.fn.extend({attr:function(u,f){return Dn(this,g.attr,u,f,arguments.length>1)},removeAttr:function(u){return this.each(function(){g.removeAttr(this,u)})}}),g.extend({attr:function(u,f,p){var y,x,S=u.nodeType;if(!(S===3||S===8||S===2)){if(typeof u.getAttribute>"u")return g.prop(u,f,p);if((S!==1||!g.isXMLDoc(u))&&(x=g.attrHooks[f.toLowerCase()]||(g.expr.match.bool.test(f)?Uo:void 0)),p!==void 0){if(p===null){g.removeAttr(u,f);return}return x&&"set"in x&&(y=x.set(u,p,f))!==void 0?y:(u.setAttribute(f,p+""),p)}return x&&"get"in x&&(y=x.get(u,f))!==null?y:(y=g.find.attr(u,f),y??void 0)}},attrHooks:{type:{set:function(u,f){if(!I.radioValue&&f==="radio"&&Z(u,"input")){var p=u.value;return u.setAttribute("type",f),p&&(u.value=p),f}}}},removeAttr:function(u,f){var p,y=0,x=f&&f.match(Me);if(x&&u.nodeType===1)for(;p=x[y++];)u.removeAttribute(p)}}),Uo={set:function(u,f,p){return f===!1?g.removeAttr(u,p):u.setAttribute(p,p),p}},g.each(g.expr.match.bool.source.match(/\w+/g),function(u,f){var p=br[f]||g.find.attr;br[f]=function(y,x,S){var T,j,L=x.toLowerCase();return S||(j=br[L],br[L]=T,T=p(y,x,S)!=null?L:null,br[L]=j),T}});var zo=/^(?:input|select|textarea|button)$/i,Kr=/^(?:a|area)$/i;g.fn.extend({prop:function(u,f){return Dn(this,g.prop,u,f,arguments.length>1)},removeProp:function(u){return this.each(function(){delete this[g.propFix[u]||u]})}}),g.extend({prop:function(u,f,p){var y,x,S=u.nodeType;if(!(S===3||S===8||S===2))return(S!==1||!g.isXMLDoc(u))&&(f=g.propFix[f]||f,x=g.propHooks[f]),p!==void 0?x&&"set"in x&&(y=x.set(u,p,f))!==void 0?y:u[f]=p:x&&"get"in x&&(y=x.get(u,f))!==null?y:u[f]},propHooks:{tabIndex:{get:function(u){var f=g.find.attr(u,"tabindex");return f?parseInt(f,10):zo.test(u.nodeName)||Kr.test(u.nodeName)&&u.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),I.optSelected||(g.propHooks.selected={get:function(u){var f=u.parentNode;return f&&f.parentNode&&f.parentNode.selectedIndex,null},set:function(u){var f=u.parentNode;f&&(f.selectedIndex,f.parentNode&&f.parentNode.selectedIndex)}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){g.propFix[this.toLowerCase()]=this});function tr(u){var f=u.match(Me)||[];return f.join(" ")}function nr(u){return u.getAttribute&&u.getAttribute("class")||""}function qo(u){return Array.isArray(u)?u:typeof u=="string"?u.match(Me)||[]:[]}g.fn.extend({addClass:function(u){var f,p,y,x,S,T;return A(u)?this.each(function(j){g(this).addClass(u.call(this,j,nr(this)))}):(f=qo(u),f.length?this.each(function(){if(y=nr(this),p=this.nodeType===1&&" "+tr(y)+" ",p){for(S=0;S<f.length;S++)x=f[S],p.indexOf(" "+x+" ")<0&&(p+=x+" ");T=tr(p),y!==T&&this.setAttribute("class",T)}}):this)},removeClass:function(u){var f,p,y,x,S,T;return A(u)?this.each(function(j){g(this).removeClass(u.call(this,j,nr(this)))}):arguments.length?(f=qo(u),f.length?this.each(function(){if(y=nr(this),p=this.nodeType===1&&" "+tr(y)+" ",p){for(S=0;S<f.length;S++)for(x=f[S];p.indexOf(" "+x+" ")>-1;)p=p.replace(" "+x+" "," ");T=tr(p),y!==T&&this.setAttribute("class",T)}}):this):this.attr("class","")},toggleClass:function(u,f){var p,y,x,S,T=typeof u,j=T==="string"||Array.isArray(u);return A(u)?this.each(function(L){g(this).toggleClass(u.call(this,L,nr(this),f),f)}):typeof f=="boolean"&&j?f?this.addClass(u):this.removeClass(u):(p=qo(u),this.each(function(){if(j)for(S=g(this),x=0;x<p.length;x++)y=p[x],S.hasClass(y)?S.removeClass(y):S.addClass(y);else(u===void 0||T==="boolean")&&(y=nr(this),y&&ke.set(this,"__className__",y),this.setAttribute&&this.setAttribute("class",y||u===!1?"":ke.get(this,"__className__")||""))}))},hasClass:function(u){var f,p,y=0;for(f=" "+u+" ";p=this[y++];)if(p.nodeType===1&&(" "+tr(nr(p))+" ").indexOf(f)>-1)return!0;return!1}});var da=/\r/g;g.fn.extend({val:function(u){var f,p,y,x=this[0];return arguments.length?(y=A(u),this.each(function(S){var T;this.nodeType===1&&(y?T=u.call(this,S,g(this).val()):T=u,T==null?T="":typeof T=="number"?T+="":Array.isArray(T)&&(T=g.map(T,function(j){return j==null?"":j+""})),f=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()],(!f||!("set"in f)||f.set(this,T,"value")===void 0)&&(this.value=T))})):x?(f=g.valHooks[x.type]||g.valHooks[x.nodeName.toLowerCase()],f&&"get"in f&&(p=f.get(x,"value"))!==void 0?p:(p=x.value,typeof p=="string"?p.replace(da,""):p??"")):void 0}}),g.extend({valHooks:{option:{get:function(u){var f=g.find.attr(u,"value");return f??tr(g.text(u))}},select:{get:function(u){var f,p,y,x=u.options,S=u.selectedIndex,T=u.type==="select-one",j=T?null:[],L=T?S+1:x.length;for(S<0?y=L:y=T?S:0;y<L;y++)if(p=x[y],(p.selected||y===S)&&!p.disabled&&(!p.parentNode.disabled||!Z(p.parentNode,"optgroup"))){if(f=g(p).val(),T)return f;j.push(f)}return j},set:function(u,f){for(var p,y,x=u.options,S=g.makeArray(f),T=x.length;T--;)y=x[T],(y.selected=g.inArray(g.valHooks.option.get(y),S)>-1)&&(p=!0);return p||(u.selectedIndex=-1),S}}}}),g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(u,f){if(Array.isArray(f))return u.checked=g.inArray(g(u).val(),f)>-1}},I.checkOn||(g.valHooks[this].get=function(u){return u.getAttribute("value")===null?"on":u.value})});var Xr=e.location,Yo={guid:Date.now()},ao=/\?/;g.parseXML=function(u){var f,p;if(!u||typeof u!="string")return null;try{f=new e.DOMParser().parseFromString(u,"text/xml")}catch{}return p=f&&f.getElementsByTagName("parsererror")[0],(!f||p)&&g.error("Invalid XML: "+(p?g.map(p.childNodes,function(y){return y.textContent}).join(`
|
|
66
|
-
`):u)),f};var ha=/^(?:focusinfocus|focusoutblur)$/,pa=function(u){u.stopPropagation()};g.extend(g.event,{trigger:function(u,f,p,y){var x,S,T,j,L,z,ne,oe,X=[p||k],he=w.call(u,"type")?u.type:u,_e=w.call(u,"namespace")?u.namespace.split("."):[];if(S=oe=T=p=p||k,!(p.nodeType===3||p.nodeType===8)&&!ha.test(he+g.event.triggered)&&(he.indexOf(".")>-1&&(_e=he.split("."),he=_e.shift(),_e.sort()),L=he.indexOf(":")<0&&"on"+he,u=u[g.expando]?u:new g.Event(he,typeof u=="object"&&u),u.isTrigger=y?2:3,u.namespace=_e.join("."),u.rnamespace=u.namespace?new RegExp("(^|\\.)"+_e.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=void 0,u.target||(u.target=p),f=f==null?[u]:g.makeArray(f,[u]),ne=g.event.special[he]||{},!(!y&&ne.trigger&&ne.trigger.apply(p,f)===!1))){if(!y&&!ne.noBubble&&!B(p)){for(j=ne.delegateType||he,ha.test(j+he)||(S=S.parentNode);S;S=S.parentNode)X.push(S),T=S;T===(p.ownerDocument||k)&&X.push(T.defaultView||T.parentWindow||e)}for(x=0;(S=X[x++])&&!u.isPropagationStopped();)oe=S,u.type=x>1?j:ne.bindType||he,z=(
|
|
65
|
+
*/(function(t){(function(e,n){t.exports=e.document?n(e,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return n(i)}})(typeof window<"u"?window:Cn,function(e,n){var i=[],o=Object.getPrototypeOf,a=i.slice,l=i.flat?function(u){return i.flat.call(u)}:function(u){return i.concat.apply([],u)},d=i.push,h=i.indexOf,m={},b=m.toString,w=m.hasOwnProperty,_=w.toString,E=_.call(Object),I={},A=function(f){return typeof f=="function"&&typeof f.nodeType!="number"&&typeof f.item!="function"},B=function(f){return f!=null&&f===f.window},k=e.document,F={type:!0,src:!0,nonce:!0,noModule:!0};function N(u,f,p){p=p||k;var y,x,S=p.createElement("script");if(S.text=u,f)for(y in F)x=f[y]||f.getAttribute&&f.getAttribute(y),x&&S.setAttribute(y,x);p.head.appendChild(S).parentNode.removeChild(S)}function Y(u){return u==null?u+"":typeof u=="object"||typeof u=="function"?m[b.call(u)]||"object":typeof u}var $="3.7.1",ie=/HTML$/i,g=function(u,f){return new g.fn.init(u,f)};g.fn=g.prototype={jquery:$,constructor:g,length:0,toArray:function(){return a.call(this)},get:function(u){return u==null?a.call(this):u<0?this[u+this.length]:this[u]},pushStack:function(u){var f=g.merge(this.constructor(),u);return f.prevObject=this,f},each:function(u){return g.each(this,u)},map:function(u){return this.pushStack(g.map(this,function(f,p){return u.call(f,p,f)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(g.grep(this,function(u,f){return(f+1)%2}))},odd:function(){return this.pushStack(g.grep(this,function(u,f){return f%2}))},eq:function(u){var f=this.length,p=+u+(u<0?f:0);return this.pushStack(p>=0&&p<f?[this[p]]:[])},end:function(){return this.prevObject||this.constructor()},push:d,sort:i.sort,splice:i.splice},g.extend=g.fn.extend=function(){var u,f,p,y,x,S,T=arguments[0]||{},j=1,L=arguments.length,z=!1;for(typeof T=="boolean"&&(z=T,T=arguments[j]||{},j++),typeof T!="object"&&!A(T)&&(T={}),j===L&&(T=this,j--);j<L;j++)if((u=arguments[j])!=null)for(f in u)y=u[f],!(f==="__proto__"||T===y)&&(z&&y&&(g.isPlainObject(y)||(x=Array.isArray(y)))?(p=T[f],x&&!Array.isArray(p)?S=[]:!x&&!g.isPlainObject(p)?S={}:S=p,x=!1,T[f]=g.extend(z,S,y)):y!==void 0&&(T[f]=y));return T},g.extend({expando:"jQuery"+($+Math.random()).replace(/\D/g,""),isReady:!0,error:function(u){throw new Error(u)},noop:function(){},isPlainObject:function(u){var f,p;return!u||b.call(u)!=="[object Object]"?!1:(f=o(u),f?(p=w.call(f,"constructor")&&f.constructor,typeof p=="function"&&_.call(p)===E):!0)},isEmptyObject:function(u){var f;for(f in u)return!1;return!0},globalEval:function(u,f,p){N(u,{nonce:f&&f.nonce},p)},each:function(u,f){var p,y=0;if(ee(u))for(p=u.length;y<p&&f.call(u[y],y,u[y])!==!1;y++);else for(y in u)if(f.call(u[y],y,u[y])===!1)break;return u},text:function(u){var f,p="",y=0,x=u.nodeType;if(!x)for(;f=u[y++];)p+=g.text(f);return x===1||x===11?u.textContent:x===9?u.documentElement.textContent:x===3||x===4?u.nodeValue:p},makeArray:function(u,f){var p=f||[];return u!=null&&(ee(Object(u))?g.merge(p,typeof u=="string"?[u]:u):d.call(p,u)),p},inArray:function(u,f,p){return f==null?-1:h.call(f,u,p)},isXMLDoc:function(u){var f=u&&u.namespaceURI,p=u&&(u.ownerDocument||u).documentElement;return!ie.test(f||p&&p.nodeName||"HTML")},merge:function(u,f){for(var p=+f.length,y=0,x=u.length;y<p;y++)u[x++]=f[y];return u.length=x,u},grep:function(u,f,p){for(var y,x=[],S=0,T=u.length,j=!p;S<T;S++)y=!f(u[S],S),y!==j&&x.push(u[S]);return x},map:function(u,f,p){var y,x,S=0,T=[];if(ee(u))for(y=u.length;S<y;S++)x=f(u[S],S,p),x!=null&&T.push(x);else for(S in u)x=f(u[S],S,p),x!=null&&T.push(x);return l(T)},guid:1,support:I}),typeof Symbol=="function"&&(g.fn[Symbol.iterator]=i[Symbol.iterator]),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(u,f){m["[object "+f+"]"]=f.toLowerCase()});function ee(u){var f=!!u&&"length"in u&&u.length,p=Y(u);return A(u)||B(u)?!1:p==="array"||f===0||typeof f=="number"&&f>0&&f-1 in u}function Z(u,f){return u.nodeName&&u.nodeName.toLowerCase()===f.toLowerCase()}var we=i.pop,He=i.sort,Ae=i.splice,Te="[\\x20\\t\\r\\n\\f]",Le=new RegExp("^"+Te+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Te+"+$","g");g.contains=function(u,f){var p=f&&f.parentNode;return u===p||!!(p&&p.nodeType===1&&(u.contains?u.contains(p):u.compareDocumentPosition&&u.compareDocumentPosition(p)&16))};var G=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function re(u,f){return f?u==="\0"?"�":u.slice(0,-1)+"\\"+u.charCodeAt(u.length-1).toString(16)+" ":"\\"+u}g.escapeSelector=function(u){return(u+"").replace(G,re)};var de=k,pe=d;(function(){var u,f,p,y,x,S=pe,T,j,L,z,ne,oe=g.expando,X=0,he=0,_e=Ai(),qe=Ai(),ze=Ai(),Pt=Ai(),bt=function(R,U){return R===U&&(x=!0),0},In="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Rn="(?:\\\\[\\da-fA-F]{1,6}"+Te+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",et="\\["+Te+"*("+Rn+")(?:"+Te+"*([*^$|!~]?=)"+Te+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Rn+"))|)"+Te+"*\\]",rr=":("+Rn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+et+")*)|.*)\\)|)",tt=new RegExp(Te+"+","g"),ct=new RegExp("^"+Te+"*,"+Te+"*"),Ti=new RegExp("^"+Te+"*([>+~]|"+Te+")"+Te+"*"),lo=new RegExp(Te+"|>"),mn=new RegExp(rr),wr=new RegExp("^"+Rn+"$"),rn={ID:new RegExp("^#("+Rn+")"),CLASS:new RegExp("^\\.("+Rn+")"),TAG:new RegExp("^("+Rn+"|[*])"),ATTR:new RegExp("^"+et),PSEUDO:new RegExp("^"+rr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Te+"*(even|odd|(([+-]|)(\\d*)n|)"+Te+"*(?:([+-]|)"+Te+"*(\\d+)|))"+Te+"*\\)|)","i"),bool:new RegExp("^(?:"+In+")$","i"),needsContext:new RegExp("^"+Te+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Te+"*((?:-\\d)?\\d*)"+Te+"*\\)|)(?=[^-]|$)","i")},Un=/^(?:input|select|textarea|button)$/i,ir=/^h\d$/i,Vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Oi=/[+~]/,zn=new RegExp("\\\\[\\da-fA-F]{1,6}"+Te+"?|\\\\([^\\r\\n\\f])","g"),Ln=function(R,U){var K="0x"+R.slice(1)-65536;return U||(K<0?String.fromCharCode(K+65536):String.fromCharCode(K>>10|55296,K&1023|56320))},qt=function(){or()},es=xr(function(R){return R.disabled===!0&&Z(R,"fieldset")},{dir:"parentNode",next:"legend"});function Pi(){try{return T.activeElement}catch{}}try{S.apply(i=a.call(de.childNodes),de.childNodes),i[de.childNodes.length].nodeType}catch{S={apply:function(U,K){pe.apply(U,a.call(K))},call:function(U){pe.apply(U,a.call(arguments,1))}}}function ot(R,U,K,J){var D,W,V,se,ue,Ee,Oe,Se=U&&U.ownerDocument,Ge=U?U.nodeType:9;if(K=K||[],typeof R!="string"||!R||Ge!==1&&Ge!==9&&Ge!==11)return K;if(!J&&(or(U),U=U||T,L)){if(Ge!==11&&(ue=Vt.exec(R)))if(D=ue[1]){if(Ge===9)if(V=U.getElementById(D)){if(V.id===D)return S.call(K,V),K}else return K;else if(Se&&(V=Se.getElementById(D))&&ot.contains(U,V)&&V.id===D)return S.call(K,V),K}else{if(ue[2])return S.apply(K,U.getElementsByTagName(R)),K;if((D=ue[3])&&U.getElementsByClassName)return S.apply(K,U.getElementsByClassName(D)),K}if(!Pt[R+" "]&&(!z||!z.test(R))){if(Oe=R,Se=U,Ge===1&&(lo.test(R)||Ti.test(R))){for(Se=Oi.test(R)&&ts(U.parentNode)||U,(Se!=U||!I.scope)&&((se=U.getAttribute("id"))?se=g.escapeSelector(se):U.setAttribute("id",se=oe)),Ee=Zr(R),W=Ee.length;W--;)Ee[W]=(se?"#"+se:":scope")+" "+yn(Ee[W]);Oe=Ee.join(",")}try{return S.apply(K,Se.querySelectorAll(Oe)),K}catch{Pt(R,!0)}finally{se===oe&&U.removeAttribute("id")}}}return Sa(R.replace(Le,"$1"),U,K,J)}function Ai(){var R=[];function U(K,J){return R.push(K+" ")>f.cacheLength&&delete U[R.shift()],U[K+" "]=J}return U}function vn(R){return R[oe]=!0,R}function Jr(R){var U=T.createElement("fieldset");try{return!!R(U)}catch{return!1}finally{U.parentNode&&U.parentNode.removeChild(U),U=null}}function Sl(R){return function(U){return Z(U,"input")&&U.type===R}}function _l(R){return function(U){return(Z(U,"input")||Z(U,"button"))&&U.type===R}}function wa(R){return function(U){return"form"in U?U.parentNode&&U.disabled===!1?"label"in U?"label"in U.parentNode?U.parentNode.disabled===R:U.disabled===R:U.isDisabled===R||U.isDisabled!==!R&&es(U)===R:U.disabled===R:"label"in U?U.disabled===R:!1}}function on(R){return vn(function(U){return U=+U,vn(function(K,J){for(var D,W=R([],K.length,U),V=W.length;V--;)K[D=W[V]]&&(K[D]=!(J[D]=K[D]))})})}function ts(R){return R&&typeof R.getElementsByTagName<"u"&&R}function or(R){var U,K=R?R.ownerDocument||R:de;return K==T||K.nodeType!==9||!K.documentElement||(T=K,j=T.documentElement,L=!g.isXMLDoc(T),ne=j.matches||j.webkitMatchesSelector||j.msMatchesSelector,j.msMatchesSelector&&de!=T&&(U=T.defaultView)&&U.top!==U&&U.addEventListener("unload",qt),I.getById=Jr(function(J){return j.appendChild(J).id=g.expando,!T.getElementsByName||!T.getElementsByName(g.expando).length}),I.disconnectedMatch=Jr(function(J){return ne.call(J,"*")}),I.scope=Jr(function(){return T.querySelectorAll(":scope")}),I.cssHas=Jr(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),I.getById?(f.filter.ID=function(J){var D=J.replace(zn,Ln);return function(W){return W.getAttribute("id")===D}},f.find.ID=function(J,D){if(typeof D.getElementById<"u"&&L){var W=D.getElementById(J);return W?[W]:[]}}):(f.filter.ID=function(J){var D=J.replace(zn,Ln);return function(W){var V=typeof W.getAttributeNode<"u"&&W.getAttributeNode("id");return V&&V.value===D}},f.find.ID=function(J,D){if(typeof D.getElementById<"u"&&L){var W,V,se,ue=D.getElementById(J);if(ue){if(W=ue.getAttributeNode("id"),W&&W.value===J)return[ue];for(se=D.getElementsByName(J),V=0;ue=se[V++];)if(W=ue.getAttributeNode("id"),W&&W.value===J)return[ue]}return[]}}),f.find.TAG=function(J,D){return typeof D.getElementsByTagName<"u"?D.getElementsByTagName(J):D.querySelectorAll(J)},f.find.CLASS=function(J,D){if(typeof D.getElementsByClassName<"u"&&L)return D.getElementsByClassName(J)},z=[],Jr(function(J){var D;j.appendChild(J).innerHTML="<a id='"+oe+"' href='' disabled='disabled'></a><select id='"+oe+"-\r\\' disabled='disabled'><option selected=''></option></select>",J.querySelectorAll("[selected]").length||z.push("\\["+Te+"*(?:value|"+In+")"),J.querySelectorAll("[id~="+oe+"-]").length||z.push("~="),J.querySelectorAll("a#"+oe+"+*").length||z.push(".#.+[+~]"),J.querySelectorAll(":checked").length||z.push(":checked"),D=T.createElement("input"),D.setAttribute("type","hidden"),J.appendChild(D).setAttribute("name","D"),j.appendChild(J).disabled=!0,J.querySelectorAll(":disabled").length!==2&&z.push(":enabled",":disabled"),D=T.createElement("input"),D.setAttribute("name",""),J.appendChild(D),J.querySelectorAll("[name='']").length||z.push("\\["+Te+"*name"+Te+"*="+Te+`*(?:''|"")`)}),I.cssHas||z.push(":has"),z=z.length&&new RegExp(z.join("|")),bt=function(J,D){if(J===D)return x=!0,0;var W=!J.compareDocumentPosition-!D.compareDocumentPosition;return W||(W=(J.ownerDocument||J)==(D.ownerDocument||D)?J.compareDocumentPosition(D):1,W&1||!I.sortDetached&&D.compareDocumentPosition(J)===W?J===T||J.ownerDocument==de&&ot.contains(de,J)?-1:D===T||D.ownerDocument==de&&ot.contains(de,D)?1:y?h.call(y,J)-h.call(y,D):0:W&4?-1:1)}),T}ot.matches=function(R,U){return ot(R,null,null,U)},ot.matchesSelector=function(R,U){if(or(R),L&&!Pt[U+" "]&&(!z||!z.test(U)))try{var K=ne.call(R,U);if(K||I.disconnectedMatch||R.document&&R.document.nodeType!==11)return K}catch{Pt(U,!0)}return ot(U,T,null,[R]).length>0},ot.contains=function(R,U){return(R.ownerDocument||R)!=T&&or(R),g.contains(R,U)},ot.attr=function(R,U){(R.ownerDocument||R)!=T&&or(R);var K=f.attrHandle[U.toLowerCase()],J=K&&w.call(f.attrHandle,U.toLowerCase())?K(R,U,!L):void 0;return J!==void 0?J:R.getAttribute(U)},ot.error=function(R){throw new Error("Syntax error, unrecognized expression: "+R)},g.uniqueSort=function(R){var U,K=[],J=0,D=0;if(x=!I.sortStable,y=!I.sortStable&&a.call(R,0),He.call(R,bt),x){for(;U=R[D++];)U===R[D]&&(J=K.push(D));for(;J--;)Ae.call(R,K[J],1)}return y=null,R},g.fn.uniqueSort=function(){return this.pushStack(g.uniqueSort(a.apply(this)))},f=g.expr={cacheLength:50,createPseudo:vn,match:rn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(R){return R[1]=R[1].replace(zn,Ln),R[3]=(R[3]||R[4]||R[5]||"").replace(zn,Ln),R[2]==="~="&&(R[3]=" "+R[3]+" "),R.slice(0,4)},CHILD:function(R){return R[1]=R[1].toLowerCase(),R[1].slice(0,3)==="nth"?(R[3]||ot.error(R[0]),R[4]=+(R[4]?R[5]+(R[6]||1):2*(R[3]==="even"||R[3]==="odd")),R[5]=+(R[7]+R[8]||R[3]==="odd")):R[3]&&ot.error(R[0]),R},PSEUDO:function(R){var U,K=!R[6]&&R[2];return rn.CHILD.test(R[0])?null:(R[3]?R[2]=R[4]||R[5]||"":K&&mn.test(K)&&(U=Zr(K,!0))&&(U=K.indexOf(")",K.length-U)-K.length)&&(R[0]=R[0].slice(0,U),R[2]=K.slice(0,U)),R.slice(0,3))}},filter:{TAG:function(R){var U=R.replace(zn,Ln).toLowerCase();return R==="*"?function(){return!0}:function(K){return Z(K,U)}},CLASS:function(R){var U=_e[R+" "];return U||(U=new RegExp("(^|"+Te+")"+R+"("+Te+"|$)"))&&_e(R,function(K){return U.test(typeof K.className=="string"&&K.className||typeof K.getAttribute<"u"&&K.getAttribute("class")||"")})},ATTR:function(R,U,K){return function(J){var D=ot.attr(J,R);return D==null?U==="!=":U?(D+="",U==="="?D===K:U==="!="?D!==K:U==="^="?K&&D.indexOf(K)===0:U==="*="?K&&D.indexOf(K)>-1:U==="$="?K&&D.slice(-K.length)===K:U==="~="?(" "+D.replace(tt," ")+" ").indexOf(K)>-1:U==="|="?D===K||D.slice(0,K.length+1)===K+"-":!1):!0}},CHILD:function(R,U,K,J,D){var W=R.slice(0,3)!=="nth",V=R.slice(-4)!=="last",se=U==="of-type";return J===1&&D===0?function(ue){return!!ue.parentNode}:function(ue,Ee,Oe){var Se,Ge,Ne,Ze,At,It=W!==V?"nextSibling":"previousSibling",kt=ue.parentNode,Gt=se&&ue.nodeName.toLowerCase(),qn=!Oe&&!se,Ue=!1;if(kt){if(W){for(;It;){for(Ne=ue;Ne=Ne[It];)if(se?Z(Ne,Gt):Ne.nodeType===1)return!1;At=It=R==="only"&&!At&&"nextSibling"}return!0}if(At=[V?kt.firstChild:kt.lastChild],V&&qn){for(Ge=kt[oe]||(kt[oe]={}),Se=Ge[R]||[],Ze=Se[0]===X&&Se[1],Ue=Ze&&Se[2],Ne=Ze&&kt.childNodes[Ze];Ne=++Ze&&Ne&&Ne[It]||(Ue=Ze=0)||At.pop();)if(Ne.nodeType===1&&++Ue&&Ne===ue){Ge[R]=[X,Ze,Ue];break}}else if(qn&&(Ge=ue[oe]||(ue[oe]={}),Se=Ge[R]||[],Ze=Se[0]===X&&Se[1],Ue=Ze),Ue===!1)for(;(Ne=++Ze&&Ne&&Ne[It]||(Ue=Ze=0)||At.pop())&&!((se?Z(Ne,Gt):Ne.nodeType===1)&&++Ue&&(qn&&(Ge=Ne[oe]||(Ne[oe]={}),Ge[R]=[X,Ue]),Ne===ue)););return Ue-=D,Ue===J||Ue%J===0&&Ue/J>=0}}},PSEUDO:function(R,U){var K,J=f.pseudos[R]||f.setFilters[R.toLowerCase()]||ot.error("unsupported pseudo: "+R);return J[oe]?J(U):J.length>1?(K=[R,R,"",U],f.setFilters.hasOwnProperty(R.toLowerCase())?vn(function(D,W){for(var V,se=J(D,U),ue=se.length;ue--;)V=h.call(D,se[ue]),D[V]=!(W[V]=se[ue])}):function(D){return J(D,0,K)}):J}},pseudos:{not:vn(function(R){var U=[],K=[],J=rs(R.replace(Le,"$1"));return J[oe]?vn(function(D,W,V,se){for(var ue,Ee=J(D,null,se,[]),Oe=D.length;Oe--;)(ue=Ee[Oe])&&(D[Oe]=!(W[Oe]=ue))}):function(D,W,V){return U[0]=D,J(U,null,V,K),U[0]=null,!K.pop()}}),has:vn(function(R){return function(U){return ot(R,U).length>0}}),contains:vn(function(R){return R=R.replace(zn,Ln),function(U){return(U.textContent||g.text(U)).indexOf(R)>-1}}),lang:vn(function(R){return wr.test(R||"")||ot.error("unsupported lang: "+R),R=R.replace(zn,Ln).toLowerCase(),function(U){var K;do if(K=L?U.lang:U.getAttribute("xml:lang")||U.getAttribute("lang"))return K=K.toLowerCase(),K===R||K.indexOf(R+"-")===0;while((U=U.parentNode)&&U.nodeType===1);return!1}}),target:function(R){var U=e.location&&e.location.hash;return U&&U.slice(1)===R.id},root:function(R){return R===j},focus:function(R){return R===Pi()&&T.hasFocus()&&!!(R.type||R.href||~R.tabIndex)},enabled:wa(!1),disabled:wa(!0),checked:function(R){return Z(R,"input")&&!!R.checked||Z(R,"option")&&!!R.selected},selected:function(R){return R.parentNode&&R.parentNode.selectedIndex,R.selected===!0},empty:function(R){for(R=R.firstChild;R;R=R.nextSibling)if(R.nodeType<6)return!1;return!0},parent:function(R){return!f.pseudos.empty(R)},header:function(R){return ir.test(R.nodeName)},input:function(R){return Un.test(R.nodeName)},button:function(R){return Z(R,"input")&&R.type==="button"||Z(R,"button")},text:function(R){var U;return Z(R,"input")&&R.type==="text"&&((U=R.getAttribute("type"))==null||U.toLowerCase()==="text")},first:on(function(){return[0]}),last:on(function(R,U){return[U-1]}),eq:on(function(R,U,K){return[K<0?K+U:K]}),even:on(function(R,U){for(var K=0;K<U;K+=2)R.push(K);return R}),odd:on(function(R,U){for(var K=1;K<U;K+=2)R.push(K);return R}),lt:on(function(R,U,K){var J;for(K<0?J=K+U:K>U?J=U:J=K;--J>=0;)R.push(J);return R}),gt:on(function(R,U,K){for(var J=K<0?K+U:K;++J<U;)R.push(J);return R})}},f.pseudos.nth=f.pseudos.eq;for(u in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})f.pseudos[u]=Sl(u);for(u in{submit:!0,reset:!0})f.pseudos[u]=_l(u);function co(){}co.prototype=f.filters=f.pseudos,f.setFilters=new co;function Zr(R,U){var K,J,D,W,V,se,ue,Ee=qe[R+" "];if(Ee)return U?0:Ee.slice(0);for(V=R,se=[],ue=f.preFilter;V;){(!K||(J=ct.exec(V)))&&(J&&(V=V.slice(J[0].length)||V),se.push(D=[])),K=!1,(J=Ti.exec(V))&&(K=J.shift(),D.push({value:K,type:J[0].replace(Le," ")}),V=V.slice(K.length));for(W in f.filter)(J=rn[W].exec(V))&&(!ue[W]||(J=ue[W](J)))&&(K=J.shift(),D.push({value:K,type:W,matches:J}),V=V.slice(K.length));if(!K)break}return U?V.length:V?ot.error(R):qe(R,se).slice(0)}function yn(R){for(var U=0,K=R.length,J="";U<K;U++)J+=R[U].value;return J}function xr(R,U,K){var J=U.dir,D=U.next,W=D||J,V=K&&W==="parentNode",se=he++;return U.first?function(ue,Ee,Oe){for(;ue=ue[J];)if(ue.nodeType===1||V)return R(ue,Ee,Oe);return!1}:function(ue,Ee,Oe){var Se,Ge,Ne=[X,se];if(Oe){for(;ue=ue[J];)if((ue.nodeType===1||V)&&R(ue,Ee,Oe))return!0}else for(;ue=ue[J];)if(ue.nodeType===1||V)if(Ge=ue[oe]||(ue[oe]={}),D&&Z(ue,D))ue=ue[J]||ue;else{if((Se=Ge[W])&&Se[0]===X&&Se[1]===se)return Ne[2]=Se[2];if(Ge[W]=Ne,Ne[2]=R(ue,Ee,Oe))return!0}return!1}}function ns(R){return R.length>1?function(U,K,J){for(var D=R.length;D--;)if(!R[D](U,K,J))return!1;return!0}:R[0]}function Cl(R,U,K){for(var J=0,D=U.length;J<D;J++)ot(R,U[J],K);return K}function fo(R,U,K,J,D){for(var W,V=[],se=0,ue=R.length,Ee=U!=null;se<ue;se++)(W=R[se])&&(!K||K(W,J,D))&&(V.push(W),Ee&&U.push(se));return V}function sr(R,U,K,J,D,W){return J&&!J[oe]&&(J=sr(J)),D&&!D[oe]&&(D=sr(D,W)),vn(function(V,se,ue,Ee){var Oe,Se,Ge,Ne,Ze=[],At=[],It=se.length,kt=V||Cl(U||"*",ue.nodeType?[ue]:ue,[]),Gt=R&&(V||!U)?fo(kt,Ze,R,ue,Ee):kt;if(K?(Ne=D||(V?R:It||J)?[]:se,K(Gt,Ne,ue,Ee)):Ne=Gt,J)for(Oe=fo(Ne,At),J(Oe,[],ue,Ee),Se=Oe.length;Se--;)(Ge=Oe[Se])&&(Ne[At[Se]]=!(Gt[At[Se]]=Ge));if(V){if(D||R){if(D){for(Oe=[],Se=Ne.length;Se--;)(Ge=Ne[Se])&&Oe.push(Gt[Se]=Ge);D(null,Ne=[],Oe,Ee)}for(Se=Ne.length;Se--;)(Ge=Ne[Se])&&(Oe=D?h.call(V,Ge):Ze[Se])>-1&&(V[Oe]=!(se[Oe]=Ge))}}else Ne=fo(Ne===se?Ne.splice(It,Ne.length):Ne),D?D(null,se,Ne,Ee):S.apply(se,Ne)})}function Yt(R){for(var U,K,J,D=R.length,W=f.relative[R[0].type],V=W||f.relative[" "],se=W?1:0,ue=xr(function(Se){return Se===U},V,!0),Ee=xr(function(Se){return h.call(U,Se)>-1},V,!0),Oe=[function(Se,Ge,Ne){var Ze=!W&&(Ne||Ge!=p)||((U=Ge).nodeType?ue(Se,Ge,Ne):Ee(Se,Ge,Ne));return U=null,Ze}];se<D;se++)if(K=f.relative[R[se].type])Oe=[xr(ns(Oe),K)];else{if(K=f.filter[R[se].type].apply(null,R[se].matches),K[oe]){for(J=++se;J<D&&!f.relative[R[J].type];J++);return sr(se>1&&ns(Oe),se>1&&yn(R.slice(0,se-1).concat({value:R[se-2].type===" "?"*":""})).replace(Le,"$1"),K,se<J&&Yt(R.slice(se,J)),J<D&&Yt(R=R.slice(J)),J<D&&yn(R))}Oe.push(K)}return ns(Oe)}function xa(R,U){var K=U.length>0,J=R.length>0,D=function(W,V,se,ue,Ee){var Oe,Se,Ge,Ne=0,Ze="0",At=W&&[],It=[],kt=p,Gt=W||J&&f.find.TAG("*",Ee),qn=X+=kt==null?1:Math.random()||.1,Ue=Gt.length;for(Ee&&(p=V==T||V||Ee);Ze!==Ue&&(Oe=Gt[Ze])!=null;Ze++){if(J&&Oe){for(Se=0,!V&&Oe.ownerDocument!=T&&(or(Oe),se=!L);Ge=R[Se++];)if(Ge(Oe,V||T,se)){S.call(ue,Oe);break}Ee&&(X=qn)}K&&((Oe=!Ge&&Oe)&&Ne--,W&&At.push(Oe))}if(Ne+=Ze,K&&Ze!==Ne){for(Se=0;Ge=U[Se++];)Ge(At,It,V,se);if(W){if(Ne>0)for(;Ze--;)At[Ze]||It[Ze]||(It[Ze]=we.call(ue));It=fo(It)}S.apply(ue,It),Ee&&!W&&It.length>0&&Ne+U.length>1&&g.uniqueSort(ue)}return Ee&&(X=qn,p=kt),At};return K?vn(D):D}function rs(R,U){var K,J=[],D=[],W=ze[R+" "];if(!W){for(U||(U=Zr(R)),K=U.length;K--;)W=Yt(U[K]),W[oe]?J.push(W):D.push(W);W=ze(R,xa(D,J)),W.selector=R}return W}function Sa(R,U,K,J){var D,W,V,se,ue,Ee=typeof R=="function"&&R,Oe=!J&&Zr(R=Ee.selector||R);if(K=K||[],Oe.length===1){if(W=Oe[0]=Oe[0].slice(0),W.length>2&&(V=W[0]).type==="ID"&&U.nodeType===9&&L&&f.relative[W[1].type]){if(U=(f.find.ID(V.matches[0].replace(zn,Ln),U)||[])[0],U)Ee&&(U=U.parentNode);else return K;R=R.slice(W.shift().value.length)}for(D=rn.needsContext.test(R)?0:W.length;D--&&(V=W[D],!f.relative[se=V.type]);)if((ue=f.find[se])&&(J=ue(V.matches[0].replace(zn,Ln),Oi.test(W[0].type)&&ts(U.parentNode)||U))){if(W.splice(D,1),R=J.length&&yn(W),!R)return S.apply(K,J),K;break}}return(Ee||rs(R,Oe))(J,U,!L,K,!U||Oi.test(R)&&ts(U.parentNode)||U),K}I.sortStable=oe.split("").sort(bt).join("")===oe,or(),I.sortDetached=Jr(function(R){return R.compareDocumentPosition(T.createElement("fieldset"))&1}),g.find=ot,g.expr[":"]=g.expr.pseudos,g.unique=g.uniqueSort,ot.compile=rs,ot.select=Sa,ot.setDocument=or,ot.tokenize=Zr,ot.escape=g.escapeSelector,ot.getText=g.text,ot.isXML=g.isXMLDoc,ot.selectors=g.expr,ot.support=g.support,ot.uniqueSort=g.uniqueSort})();var ke=function(u,f,p){for(var y=[],x=p!==void 0;(u=u[f])&&u.nodeType!==9;)if(u.nodeType===1){if(x&&g(u).is(p))break;y.push(u)}return y},Q=function(u,f){for(var p=[];u;u=u.nextSibling)u.nodeType===1&&u!==f&&p.push(u);return p},ae=g.expr.match.needsContext,ve=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function me(u,f,p){return A(f)?g.grep(u,function(y,x){return!!f.call(y,x,y)!==p}):f.nodeType?g.grep(u,function(y){return y===f!==p}):typeof f!="string"?g.grep(u,function(y){return h.call(f,y)>-1!==p}):g.filter(f,u,p)}g.filter=function(u,f,p){var y=f[0];return p&&(u=":not("+u+")"),f.length===1&&y.nodeType===1?g.find.matchesSelector(y,u)?[y]:[]:g.find.matches(u,g.grep(f,function(x){return x.nodeType===1}))},g.fn.extend({find:function(u){var f,p,y=this.length,x=this;if(typeof u!="string")return this.pushStack(g(u).filter(function(){for(f=0;f<y;f++)if(g.contains(x[f],this))return!0}));for(p=this.pushStack([]),f=0;f<y;f++)g.find(u,x[f],p);return y>1?g.uniqueSort(p):p},filter:function(u){return this.pushStack(me(this,u||[],!1))},not:function(u){return this.pushStack(me(this,u||[],!0))},is:function(u){return!!me(this,typeof u=="string"&&ae.test(u)?g(u):u||[],!1).length}});var ye,Pe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ce=g.fn.init=function(u,f,p){var y,x;if(!u)return this;if(p=p||ye,typeof u=="string")if(u[0]==="<"&&u[u.length-1]===">"&&u.length>=3?y=[null,u,null]:y=Pe.exec(u),y&&(y[1]||!f))if(y[1]){if(f=f instanceof g?f[0]:f,g.merge(this,g.parseHTML(y[1],f&&f.nodeType?f.ownerDocument||f:k,!0)),ve.test(y[1])&&g.isPlainObject(f))for(y in f)A(this[y])?this[y](f[y]):this.attr(y,f[y]);return this}else return x=k.getElementById(y[2]),x&&(this[0]=x,this.length=1),this;else return!f||f.jquery?(f||p).find(u):this.constructor(f).find(u);else{if(u.nodeType)return this[0]=u,this.length=1,this;if(A(u))return p.ready!==void 0?p.ready(u):u(g)}return g.makeArray(u,this)};Ce.prototype=g.fn,ye=g(k);var Ie=/^(?:parents|prev(?:Until|All))/,je={children:!0,contents:!0,next:!0,prev:!0};g.fn.extend({has:function(u){var f=g(u,this),p=f.length;return this.filter(function(){for(var y=0;y<p;y++)if(g.contains(this,f[y]))return!0})},closest:function(u,f){var p,y=0,x=this.length,S=[],T=typeof u!="string"&&g(u);if(!ae.test(u)){for(;y<x;y++)for(p=this[y];p&&p!==f;p=p.parentNode)if(p.nodeType<11&&(T?T.index(p)>-1:p.nodeType===1&&g.find.matchesSelector(p,u))){S.push(p);break}}return this.pushStack(S.length>1?g.uniqueSort(S):S)},index:function(u){return u?typeof u=="string"?h.call(g(u),this[0]):h.call(this,u.jquery?u[0]:u):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(u,f){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(u,f))))},addBack:function(u){return this.add(u==null?this.prevObject:this.prevObject.filter(u))}});function $e(u,f){for(;(u=u[f])&&u.nodeType!==1;);return u}g.each({parent:function(u){var f=u.parentNode;return f&&f.nodeType!==11?f:null},parents:function(u){return ke(u,"parentNode")},parentsUntil:function(u,f,p){return ke(u,"parentNode",p)},next:function(u){return $e(u,"nextSibling")},prev:function(u){return $e(u,"previousSibling")},nextAll:function(u){return ke(u,"nextSibling")},prevAll:function(u){return ke(u,"previousSibling")},nextUntil:function(u,f,p){return ke(u,"nextSibling",p)},prevUntil:function(u,f,p){return ke(u,"previousSibling",p)},siblings:function(u){return Q((u.parentNode||{}).firstChild,u)},children:function(u){return Q(u.firstChild)},contents:function(u){return u.contentDocument!=null&&o(u.contentDocument)?u.contentDocument:(Z(u,"template")&&(u=u.content||u),g.merge([],u.childNodes))}},function(u,f){g.fn[u]=function(p,y){var x=g.map(this,f,p);return u.slice(-5)!=="Until"&&(y=p),y&&typeof y=="string"&&(x=g.filter(y,x)),this.length>1&&(je[u]||g.uniqueSort(x),Ie.test(u)&&x.reverse()),this.pushStack(x)}});var Me=/[^\x20\t\r\n\f]+/g;function Xe(u){var f={};return g.each(u.match(Me)||[],function(p,y){f[y]=!0}),f}g.Callbacks=function(u){u=typeof u=="string"?Xe(u):g.extend({},u);var f,p,y,x,S=[],T=[],j=-1,L=function(){for(x=x||u.once,y=f=!0;T.length;j=-1)for(p=T.shift();++j<S.length;)S[j].apply(p[0],p[1])===!1&&u.stopOnFalse&&(j=S.length,p=!1);u.memory||(p=!1),f=!1,x&&(p?S=[]:S="")},z={add:function(){return S&&(p&&!f&&(j=S.length-1,T.push(p)),function ne(oe){g.each(oe,function(X,he){A(he)?(!u.unique||!z.has(he))&&S.push(he):he&&he.length&&Y(he)!=="string"&&ne(he)})}(arguments),p&&!f&&L()),this},remove:function(){return g.each(arguments,function(ne,oe){for(var X;(X=g.inArray(oe,S,X))>-1;)S.splice(X,1),X<=j&&j--}),this},has:function(ne){return ne?g.inArray(ne,S)>-1:S.length>0},empty:function(){return S&&(S=[]),this},disable:function(){return x=T=[],S=p="",this},disabled:function(){return!S},lock:function(){return x=T=[],!p&&!f&&(S=p=""),this},locked:function(){return!!x},fireWith:function(ne,oe){return x||(oe=oe||[],oe=[ne,oe.slice?oe.slice():oe],T.push(oe),f||L()),this},fire:function(){return z.fireWith(this,arguments),this},fired:function(){return!!y}};return z};function ge(u){return u}function gt(u){throw u}function ht(u,f,p,y){var x;try{u&&A(x=u.promise)?x.call(u).done(f).fail(p):u&&A(x=u.then)?x.call(u,f,p):f.apply(void 0,[u].slice(y))}catch(S){p.apply(void 0,[S])}}g.extend({Deferred:function(u){var f=[["notify","progress",g.Callbacks("memory"),g.Callbacks("memory"),2],["resolve","done",g.Callbacks("once memory"),g.Callbacks("once memory"),0,"resolved"],["reject","fail",g.Callbacks("once memory"),g.Callbacks("once memory"),1,"rejected"]],p="pending",y={state:function(){return p},always:function(){return x.done(arguments).fail(arguments),this},catch:function(S){return y.then(null,S)},pipe:function(){var S=arguments;return g.Deferred(function(T){g.each(f,function(j,L){var z=A(S[L[4]])&&S[L[4]];x[L[1]](function(){var ne=z&&z.apply(this,arguments);ne&&A(ne.promise)?ne.promise().progress(T.notify).done(T.resolve).fail(T.reject):T[L[0]+"With"](this,z?[ne]:arguments)})}),S=null}).promise()},then:function(S,T,j){var L=0;function z(ne,oe,X,he){return function(){var _e=this,qe=arguments,ze=function(){var bt,In;if(!(ne<L)){if(bt=X.apply(_e,qe),bt===oe.promise())throw new TypeError("Thenable self-resolution");In=bt&&(typeof bt=="object"||typeof bt=="function")&&bt.then,A(In)?he?In.call(bt,z(L,oe,ge,he),z(L,oe,gt,he)):(L++,In.call(bt,z(L,oe,ge,he),z(L,oe,gt,he),z(L,oe,ge,oe.notifyWith))):(X!==ge&&(_e=void 0,qe=[bt]),(he||oe.resolveWith)(_e,qe))}},Pt=he?ze:function(){try{ze()}catch(bt){g.Deferred.exceptionHook&&g.Deferred.exceptionHook(bt,Pt.error),ne+1>=L&&(X!==gt&&(_e=void 0,qe=[bt]),oe.rejectWith(_e,qe))}};ne?Pt():(g.Deferred.getErrorHook?Pt.error=g.Deferred.getErrorHook():g.Deferred.getStackHook&&(Pt.error=g.Deferred.getStackHook()),e.setTimeout(Pt))}}return g.Deferred(function(ne){f[0][3].add(z(0,ne,A(j)?j:ge,ne.notifyWith)),f[1][3].add(z(0,ne,A(S)?S:ge)),f[2][3].add(z(0,ne,A(T)?T:gt))}).promise()},promise:function(S){return S!=null?g.extend(S,y):y}},x={};return g.each(f,function(S,T){var j=T[2],L=T[5];y[T[1]]=j.add,L&&j.add(function(){p=L},f[3-S][2].disable,f[3-S][3].disable,f[0][2].lock,f[0][3].lock),j.add(T[3].fire),x[T[0]]=function(){return x[T[0]+"With"](this===x?void 0:this,arguments),this},x[T[0]+"With"]=j.fireWith}),y.promise(x),u&&u.call(x,x),x},when:function(u){var f=arguments.length,p=f,y=Array(p),x=a.call(arguments),S=g.Deferred(),T=function(j){return function(L){y[j]=this,x[j]=arguments.length>1?a.call(arguments):L,--f||S.resolveWith(y,x)}};if(f<=1&&(ht(u,S.done(T(p)).resolve,S.reject,!f),S.state()==="pending"||A(x[p]&&x[p].then)))return S.then();for(;p--;)ht(x[p],T(p),S.reject);return S.promise()}});var kn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;g.Deferred.exceptionHook=function(u,f){e.console&&e.console.warn&&u&&kn.test(u.name)&&e.console.warn("jQuery.Deferred exception: "+u.message,u.stack,f)},g.readyException=function(u){e.setTimeout(function(){throw u})};var Wr=g.Deferred();g.fn.ready=function(u){return Wr.then(u).catch(function(f){g.readyException(f)}),this},g.extend({isReady:!1,readyWait:1,ready:function(u){(u===!0?--g.readyWait:g.isReady)||(g.isReady=!0,!(u!==!0&&--g.readyWait>0)&&Wr.resolveWith(k,[g]))}}),g.ready.then=Wr.then;function en(){k.removeEventListener("DOMContentLoaded",en),e.removeEventListener("load",en),g.ready()}k.readyState==="complete"||k.readyState!=="loading"&&!k.documentElement.doScroll?e.setTimeout(g.ready):(k.addEventListener("DOMContentLoaded",en),e.addEventListener("load",en));var Dn=function(u,f,p,y,x,S,T){var j=0,L=u.length,z=p==null;if(Y(p)==="object"){x=!0;for(j in p)Dn(u,f,j,p[j],!0,S,T)}else if(y!==void 0&&(x=!0,A(y)||(T=!0),z&&(T?(f.call(u,y),f=null):(z=f,f=function(ne,oe,X){return z.call(g(ne),X)})),f))for(;j<L;j++)f(u[j],p,T?y:y.call(u[j],j,f(u[j],p)));return x?u:z?f.call(u):L?f(u[0],p):S},tl=/^-ms-/,wi=/-([a-z])/g;function hn(u,f){return f.toUpperCase()}function jt(u){return u.replace(tl,"ms-").replace(wi,hn)}var Zn=function(u){return u.nodeType===1||u.nodeType===9||!+u.nodeType};function xi(){this.expando=g.expando+xi.uid++}xi.uid=1,xi.prototype={cache:function(u){var f=u[this.expando];return f||(f={},Zn(u)&&(u.nodeType?u[this.expando]=f:Object.defineProperty(u,this.expando,{value:f,configurable:!0}))),f},set:function(u,f,p){var y,x=this.cache(u);if(typeof f=="string")x[jt(f)]=p;else for(y in f)x[jt(y)]=f[y];return x},get:function(u,f){return f===void 0?this.cache(u):u[this.expando]&&u[this.expando][jt(f)]},access:function(u,f,p){return f===void 0||f&&typeof f=="string"&&p===void 0?this.get(u,f):(this.set(u,f,p),p!==void 0?p:f)},remove:function(u,f){var p,y=u[this.expando];if(y!==void 0){if(f!==void 0)for(Array.isArray(f)?f=f.map(jt):(f=jt(f),f=f in y?[f]:f.match(Me)||[]),p=f.length;p--;)delete y[f[p]];(f===void 0||g.isEmptyObject(y))&&(u.nodeType?u[this.expando]=void 0:delete u[this.expando])}},hasData:function(u){var f=u[this.expando];return f!==void 0&&!g.isEmptyObject(f)}};var De=new xi,Bt=new xi,Si=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Hr=/[A-Z]/g;function Mo(u){return u==="true"?!0:u==="false"?!1:u==="null"?null:u===+u+""?+u:Si.test(u)?JSON.parse(u):u}function Qi(u,f,p){var y;if(p===void 0&&u.nodeType===1)if(y="data-"+f.replace(Hr,"-$&").toLowerCase(),p=u.getAttribute(y),typeof p=="string"){try{p=Mo(p)}catch{}Bt.set(u,f,p)}else p=void 0;return p}g.extend({hasData:function(u){return Bt.hasData(u)||De.hasData(u)},data:function(u,f,p){return Bt.access(u,f,p)},removeData:function(u,f){Bt.remove(u,f)},_data:function(u,f,p){return De.access(u,f,p)},_removeData:function(u,f){De.remove(u,f)}}),g.fn.extend({data:function(u,f){var p,y,x,S=this[0],T=S&&S.attributes;if(u===void 0){if(this.length&&(x=Bt.get(S),S.nodeType===1&&!De.get(S,"hasDataAttrs"))){for(p=T.length;p--;)T[p]&&(y=T[p].name,y.indexOf("data-")===0&&(y=jt(y.slice(5)),Qi(S,y,x[y])));De.set(S,"hasDataAttrs",!0)}return x}return typeof u=="object"?this.each(function(){Bt.set(this,u)}):Dn(this,function(j){var L;if(S&&j===void 0)return L=Bt.get(S,u),L!==void 0||(L=Qi(S,u),L!==void 0)?L:void 0;this.each(function(){Bt.set(this,u,j)})},null,f,arguments.length>1,null,!0)},removeData:function(u){return this.each(function(){Bt.remove(this,u)})}}),g.extend({queue:function(u,f,p){var y;if(u)return f=(f||"fx")+"queue",y=De.get(u,f),p&&(!y||Array.isArray(p)?y=De.access(u,f,g.makeArray(p)):y.push(p)),y||[]},dequeue:function(u,f){f=f||"fx";var p=g.queue(u,f),y=p.length,x=p.shift(),S=g._queueHooks(u,f),T=function(){g.dequeue(u,f)};x==="inprogress"&&(x=p.shift(),y--),x&&(f==="fx"&&p.unshift("inprogress"),delete S.stop,x.call(u,T,S)),!y&&S&&S.empty.fire()},_queueHooks:function(u,f){var p=f+"queueHooks";return De.get(u,p)||De.access(u,p,{empty:g.Callbacks("once memory").add(function(){De.remove(u,[f+"queue",p])})})}}),g.fn.extend({queue:function(u,f){var p=2;return typeof u!="string"&&(f=u,u="fx",p--),arguments.length<p?g.queue(this[0],u):f===void 0?this:this.each(function(){var y=g.queue(this,u,f);g._queueHooks(this,u),u==="fx"&&y[0]!=="inprogress"&&g.dequeue(this,u)})},dequeue:function(u){return this.each(function(){g.dequeue(this,u)})},clearQueue:function(u){return this.queue(u||"fx",[])},promise:function(u,f){var p,y=1,x=g.Deferred(),S=this,T=this.length,j=function(){--y||x.resolveWith(S,[S])};for(typeof u!="string"&&(f=u,u=void 0),u=u||"fx";T--;)p=De.get(S[T],u+"queueHooks"),p&&p.empty&&(y++,p.empty.add(j));return j(),x.promise(f)}});var eo=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,mr=new RegExp("^(?:([+-])=|)("+eo+")([a-z%]*)$","i"),pn=["Top","Right","Bottom","Left"],Hn=k.documentElement,Qn=function(u){return g.contains(u.ownerDocument,u)},No={composed:!0};Hn.getRootNode&&(Qn=function(u){return g.contains(u.ownerDocument,u)||u.getRootNode(No)===u.ownerDocument});var $r=function(u,f){return u=f||u,u.style.display==="none"||u.style.display===""&&Qn(u)&&g.css(u,"display")==="none"};function qs(u,f,p,y){var x,S,T=20,j=y?function(){return y.cur()}:function(){return g.css(u,f,"")},L=j(),z=p&&p[3]||(g.cssNumber[f]?"":"px"),ne=u.nodeType&&(g.cssNumber[f]||z!=="px"&&+L)&&mr.exec(g.css(u,f));if(ne&&ne[3]!==z){for(L=L/2,z=z||ne[3],ne=+L||1;T--;)g.style(u,f,ne+z),(1-S)*(1-(S=j()/L||.5))<=0&&(T=0),ne=ne/S;ne=ne*2,g.style(u,f,ne+z),p=p||[]}return p&&(ne=+ne||+L||0,x=p[1]?ne+(p[1]+1)*p[2]:+p[2],y&&(y.unit=z,y.start=ne,y.end=x)),x}var Ys={};function nl(u){var f,p=u.ownerDocument,y=u.nodeName,x=Ys[y];return x||(f=p.body.appendChild(p.createElement(y)),x=g.css(f,"display"),f.parentNode.removeChild(f),x==="none"&&(x="block"),Ys[y]=x,x)}function vr(u,f){for(var p,y,x=[],S=0,T=u.length;S<T;S++)y=u[S],y.style&&(p=y.style.display,f?(p==="none"&&(x[S]=De.get(y,"display")||null,x[S]||(y.style.display="")),y.style.display===""&&$r(y)&&(x[S]=nl(y))):p!=="none"&&(x[S]="none",De.set(y,"display",p)));for(S=0;S<T;S++)x[S]!=null&&(u[S].style.display=x[S]);return u}g.fn.extend({show:function(){return vr(this,!0)},hide:function(){return vr(this)},toggle:function(u){return typeof u=="boolean"?u?this.show():this.hide():this.each(function(){$r(this)?g(this).show():g(this).hide()})}});var Ur=/^(?:checkbox|radio)$/i,Gs=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ks=/^$|^module$|\/(?:java|ecma)script/i;(function(){var u=k.createDocumentFragment(),f=u.appendChild(k.createElement("div")),p=k.createElement("input");p.setAttribute("type","radio"),p.setAttribute("checked","checked"),p.setAttribute("name","t"),f.appendChild(p),I.checkClone=f.cloneNode(!0).cloneNode(!0).lastChild.checked,f.innerHTML="<textarea>x</textarea>",I.noCloneChecked=!!f.cloneNode(!0).lastChild.defaultValue,f.innerHTML="<option></option>",I.option=!!f.lastChild})();var tn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};tn.tbody=tn.tfoot=tn.colgroup=tn.caption=tn.thead,tn.th=tn.td,I.option||(tn.optgroup=tn.option=[1,"<select multiple='multiple'>","</select>"]);function Ft(u,f){var p;return typeof u.getElementsByTagName<"u"?p=u.getElementsByTagName(f||"*"):typeof u.querySelectorAll<"u"?p=u.querySelectorAll(f||"*"):p=[],f===void 0||f&&Z(u,f)?g.merge([u],p):p}function to(u,f){for(var p=0,y=u.length;p<y;p++)De.set(u[p],"globalEval",!f||De.get(f[p],"globalEval"))}var rl=/<|&#?\w+;/;function Xs(u,f,p,y,x){for(var S,T,j,L,z,ne,oe=f.createDocumentFragment(),X=[],he=0,_e=u.length;he<_e;he++)if(S=u[he],S||S===0)if(Y(S)==="object")g.merge(X,S.nodeType?[S]:S);else if(!rl.test(S))X.push(f.createTextNode(S));else{for(T=T||oe.appendChild(f.createElement("div")),j=(Gs.exec(S)||["",""])[1].toLowerCase(),L=tn[j]||tn._default,T.innerHTML=L[1]+g.htmlPrefilter(S)+L[2],ne=L[0];ne--;)T=T.lastChild;g.merge(X,T.childNodes),T=oe.firstChild,T.textContent=""}for(oe.textContent="",he=0;S=X[he++];){if(y&&g.inArray(S,y)>-1){x&&x.push(S);continue}if(z=Qn(S),T=Ft(oe.appendChild(S),"script"),z&&to(T),p)for(ne=0;S=T[ne++];)Ks.test(S.type||"")&&p.push(S)}return oe}var Js=/^([^.]*)(?:\.(.+)|)/;function er(){return!0}function zr(){return!1}function _i(u,f,p,y,x,S){var T,j;if(typeof f=="object"){typeof p!="string"&&(y=y||p,p=void 0);for(j in f)_i(u,j,p,y,f[j],S);return u}if(y==null&&x==null?(x=p,y=p=void 0):x==null&&(typeof p=="string"?(x=y,y=void 0):(x=y,y=p,p=void 0)),x===!1)x=zr;else if(!x)return u;return S===1&&(T=x,x=function(L){return g().off(L),T.apply(this,arguments)},x.guid=T.guid||(T.guid=g.guid++)),u.each(function(){g.event.add(this,f,x,y,p)})}g.event={global:{},add:function(u,f,p,y,x){var S,T,j,L,z,ne,oe,X,he,_e,qe,ze=De.get(u);if(Zn(u))for(p.handler&&(S=p,p=S.handler,x=S.selector),x&&g.find.matchesSelector(Hn,x),p.guid||(p.guid=g.guid++),(L=ze.events)||(L=ze.events=Object.create(null)),(T=ze.handle)||(T=ze.handle=function(Pt){return typeof g<"u"&&g.event.triggered!==Pt.type?g.event.dispatch.apply(u,arguments):void 0}),f=(f||"").match(Me)||[""],z=f.length;z--;)j=Js.exec(f[z])||[],he=qe=j[1],_e=(j[2]||"").split(".").sort(),he&&(oe=g.event.special[he]||{},he=(x?oe.delegateType:oe.bindType)||he,oe=g.event.special[he]||{},ne=g.extend({type:he,origType:qe,data:y,handler:p,guid:p.guid,selector:x,needsContext:x&&g.expr.match.needsContext.test(x),namespace:_e.join(".")},S),(X=L[he])||(X=L[he]=[],X.delegateCount=0,(!oe.setup||oe.setup.call(u,y,_e,T)===!1)&&u.addEventListener&&u.addEventListener(he,T)),oe.add&&(oe.add.call(u,ne),ne.handler.guid||(ne.handler.guid=p.guid)),x?X.splice(X.delegateCount++,0,ne):X.push(ne),g.event.global[he]=!0)},remove:function(u,f,p,y,x){var S,T,j,L,z,ne,oe,X,he,_e,qe,ze=De.hasData(u)&&De.get(u);if(!(!ze||!(L=ze.events))){for(f=(f||"").match(Me)||[""],z=f.length;z--;){if(j=Js.exec(f[z])||[],he=qe=j[1],_e=(j[2]||"").split(".").sort(),!he){for(he in L)g.event.remove(u,he+f[z],p,y,!0);continue}for(oe=g.event.special[he]||{},he=(y?oe.delegateType:oe.bindType)||he,X=L[he]||[],j=j[2]&&new RegExp("(^|\\.)"+_e.join("\\.(?:.*\\.|)")+"(\\.|$)"),T=S=X.length;S--;)ne=X[S],(x||qe===ne.origType)&&(!p||p.guid===ne.guid)&&(!j||j.test(ne.namespace))&&(!y||y===ne.selector||y==="**"&&ne.selector)&&(X.splice(S,1),ne.selector&&X.delegateCount--,oe.remove&&oe.remove.call(u,ne));T&&!X.length&&((!oe.teardown||oe.teardown.call(u,_e,ze.handle)===!1)&&g.removeEvent(u,he,ze.handle),delete L[he])}g.isEmptyObject(L)&&De.remove(u,"handle events")}},dispatch:function(u){var f,p,y,x,S,T,j=new Array(arguments.length),L=g.event.fix(u),z=(De.get(this,"events")||Object.create(null))[L.type]||[],ne=g.event.special[L.type]||{};for(j[0]=L,f=1;f<arguments.length;f++)j[f]=arguments[f];if(L.delegateTarget=this,!(ne.preDispatch&&ne.preDispatch.call(this,L)===!1)){for(T=g.event.handlers.call(this,L,z),f=0;(x=T[f++])&&!L.isPropagationStopped();)for(L.currentTarget=x.elem,p=0;(S=x.handlers[p++])&&!L.isImmediatePropagationStopped();)(!L.rnamespace||S.namespace===!1||L.rnamespace.test(S.namespace))&&(L.handleObj=S,L.data=S.data,y=((g.event.special[S.origType]||{}).handle||S.handler).apply(x.elem,j),y!==void 0&&(L.result=y)===!1&&(L.preventDefault(),L.stopPropagation()));return ne.postDispatch&&ne.postDispatch.call(this,L),L.result}},handlers:function(u,f){var p,y,x,S,T,j=[],L=f.delegateCount,z=u.target;if(L&&z.nodeType&&!(u.type==="click"&&u.button>=1)){for(;z!==this;z=z.parentNode||this)if(z.nodeType===1&&!(u.type==="click"&&z.disabled===!0)){for(S=[],T={},p=0;p<L;p++)y=f[p],x=y.selector+" ",T[x]===void 0&&(T[x]=y.needsContext?g(x,this).index(z)>-1:g.find(x,this,null,[z]).length),T[x]&&S.push(y);S.length&&j.push({elem:z,handlers:S})}}return z=this,L<f.length&&j.push({elem:z,handlers:f.slice(L)}),j},addProp:function(u,f){Object.defineProperty(g.Event.prototype,u,{enumerable:!0,configurable:!0,get:A(f)?function(){if(this.originalEvent)return f(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[u]},set:function(p){Object.defineProperty(this,u,{enumerable:!0,configurable:!0,writable:!0,value:p})}})},fix:function(u){return u[g.expando]?u:new g.Event(u)},special:{load:{noBubble:!0},click:{setup:function(u){var f=this||u;return Ur.test(f.type)&&f.click&&Z(f,"input")&&no(f,"click",!0),!1},trigger:function(u){var f=this||u;return Ur.test(f.type)&&f.click&&Z(f,"input")&&no(f,"click"),!0},_default:function(u){var f=u.target;return Ur.test(f.type)&&f.click&&Z(f,"input")&&De.get(f,"click")||Z(f,"a")}},beforeunload:{postDispatch:function(u){u.result!==void 0&&u.originalEvent&&(u.originalEvent.returnValue=u.result)}}}};function no(u,f,p){if(!p){De.get(u,f)===void 0&&g.event.add(u,f,er);return}De.set(u,f,!1),g.event.add(u,f,{namespace:!1,handler:function(y){var x,S=De.get(this,f);if(y.isTrigger&1&&this[f]){if(S)(g.event.special[f]||{}).delegateType&&y.stopPropagation();else if(S=a.call(arguments),De.set(this,f,S),this[f](),x=De.get(this,f),De.set(this,f,!1),S!==x)return y.stopImmediatePropagation(),y.preventDefault(),x}else S&&(De.set(this,f,g.event.trigger(S[0],S.slice(1),this)),y.stopPropagation(),y.isImmediatePropagationStopped=er)}})}g.removeEvent=function(u,f,p){u.removeEventListener&&u.removeEventListener(f,p)},g.Event=function(u,f){if(!(this instanceof g.Event))return new g.Event(u,f);u&&u.type?(this.originalEvent=u,this.type=u.type,this.isDefaultPrevented=u.defaultPrevented||u.defaultPrevented===void 0&&u.returnValue===!1?er:zr,this.target=u.target&&u.target.nodeType===3?u.target.parentNode:u.target,this.currentTarget=u.currentTarget,this.relatedTarget=u.relatedTarget):this.type=u,f&&g.extend(this,f),this.timeStamp=u&&u.timeStamp||Date.now(),this[g.expando]=!0},g.Event.prototype={constructor:g.Event,isDefaultPrevented:zr,isPropagationStopped:zr,isImmediatePropagationStopped:zr,isSimulated:!1,preventDefault:function(){var u=this.originalEvent;this.isDefaultPrevented=er,u&&!this.isSimulated&&u.preventDefault()},stopPropagation:function(){var u=this.originalEvent;this.isPropagationStopped=er,u&&!this.isSimulated&&u.stopPropagation()},stopImmediatePropagation:function(){var u=this.originalEvent;this.isImmediatePropagationStopped=er,u&&!this.isSimulated&&u.stopImmediatePropagation(),this.stopPropagation()}},g.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},g.event.addProp),g.each({focus:"focusin",blur:"focusout"},function(u,f){function p(y){if(k.documentMode){var x=De.get(this,"handle"),S=g.event.fix(y);S.type=y.type==="focusin"?"focus":"blur",S.isSimulated=!0,x(y),S.target===S.currentTarget&&x(S)}else g.event.simulate(f,y.target,g.event.fix(y))}g.event.special[u]={setup:function(){var y;if(no(this,u,!0),k.documentMode)y=De.get(this,f),y||this.addEventListener(f,p),De.set(this,f,(y||0)+1);else return!1},trigger:function(){return no(this,u),!0},teardown:function(){var y;if(k.documentMode)y=De.get(this,f)-1,y?De.set(this,f,y):(this.removeEventListener(f,p),De.remove(this,f));else return!1},_default:function(y){return De.get(y.target,u)},delegateType:f},g.event.special[f]={setup:function(){var y=this.ownerDocument||this.document||this,x=k.documentMode?this:y,S=De.get(x,f);S||(k.documentMode?this.addEventListener(f,p):y.addEventListener(u,p,!0)),De.set(x,f,(S||0)+1)},teardown:function(){var y=this.ownerDocument||this.document||this,x=k.documentMode?this:y,S=De.get(x,f)-1;S?De.set(x,f,S):(k.documentMode?this.removeEventListener(f,p):y.removeEventListener(u,p,!0),De.remove(x,f))}}}),g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(u,f){g.event.special[u]={delegateType:f,bindType:f,handle:function(p){var y,x=this,S=p.relatedTarget,T=p.handleObj;return(!S||S!==x&&!g.contains(x,S))&&(p.type=T.origType,y=T.handler.apply(this,arguments),p.type=f),y}}}),g.fn.extend({on:function(u,f,p,y){return _i(this,u,f,p,y)},one:function(u,f,p,y){return _i(this,u,f,p,y,1)},off:function(u,f,p){var y,x;if(u&&u.preventDefault&&u.handleObj)return y=u.handleObj,g(u.delegateTarget).off(y.namespace?y.origType+"."+y.namespace:y.origType,y.selector,y.handler),this;if(typeof u=="object"){for(x in u)this.off(x,f,u[x]);return this}return(f===!1||typeof f=="function")&&(p=f,f=void 0),p===!1&&(p=zr),this.each(function(){g.event.remove(this,u,p,f)})}});var il=/<script|<style|<link/i,ol=/checked\s*(?:[^=]|=\s*.checked.)/i,sl=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Zs(u,f){return Z(u,"table")&&Z(f.nodeType!==11?f:f.firstChild,"tr")&&g(u).children("tbody")[0]||u}function al(u){return u.type=(u.getAttribute("type")!==null)+"/"+u.type,u}function ul(u){return(u.type||"").slice(0,5)==="true/"?u.type=u.type.slice(5):u.removeAttribute("type"),u}function Qs(u,f){var p,y,x,S,T,j,L;if(f.nodeType===1){if(De.hasData(u)&&(S=De.get(u),L=S.events,L)){De.remove(f,"handle events");for(x in L)for(p=0,y=L[x].length;p<y;p++)g.event.add(f,x,L[x][p])}Bt.hasData(u)&&(T=Bt.access(u),j=g.extend({},T),Bt.set(f,j))}}function ea(u,f){var p=f.nodeName.toLowerCase();p==="input"&&Ur.test(u.type)?f.checked=u.checked:(p==="input"||p==="textarea")&&(f.defaultValue=u.defaultValue)}function qr(u,f,p,y){f=l(f);var x,S,T,j,L,z,ne=0,oe=u.length,X=oe-1,he=f[0],_e=A(he);if(_e||oe>1&&typeof he=="string"&&!I.checkClone&&ol.test(he))return u.each(function(qe){var ze=u.eq(qe);_e&&(f[0]=he.call(this,qe,ze.html())),qr(ze,f,p,y)});if(oe&&(x=Xs(f,u[0].ownerDocument,!1,u,y),S=x.firstChild,x.childNodes.length===1&&(x=S),S||y)){for(T=g.map(Ft(x,"script"),al),j=T.length;ne<oe;ne++)L=x,ne!==X&&(L=g.clone(L,!0,!0),j&&g.merge(T,Ft(L,"script"))),p.call(u[ne],L,ne);if(j)for(z=T[T.length-1].ownerDocument,g.map(T,ul),ne=0;ne<j;ne++)L=T[ne],Ks.test(L.type||"")&&!De.access(L,"globalEval")&&g.contains(z,L)&&(L.src&&(L.type||"").toLowerCase()!=="module"?g._evalUrl&&!L.noModule&&g._evalUrl(L.src,{nonce:L.nonce||L.getAttribute("nonce")},z):N(L.textContent.replace(sl,""),L,z))}return u}function ta(u,f,p){for(var y,x=f?g.filter(f,u):u,S=0;(y=x[S])!=null;S++)!p&&y.nodeType===1&&g.cleanData(Ft(y)),y.parentNode&&(p&&Qn(y)&&to(Ft(y,"script")),y.parentNode.removeChild(y));return u}g.extend({htmlPrefilter:function(u){return u},clone:function(u,f,p){var y,x,S,T,j=u.cloneNode(!0),L=Qn(u);if(!I.noCloneChecked&&(u.nodeType===1||u.nodeType===11)&&!g.isXMLDoc(u))for(T=Ft(j),S=Ft(u),y=0,x=S.length;y<x;y++)ea(S[y],T[y]);if(f)if(p)for(S=S||Ft(u),T=T||Ft(j),y=0,x=S.length;y<x;y++)Qs(S[y],T[y]);else Qs(u,j);return T=Ft(j,"script"),T.length>0&&to(T,!L&&Ft(u,"script")),j},cleanData:function(u){for(var f,p,y,x=g.event.special,S=0;(p=u[S])!==void 0;S++)if(Zn(p)){if(f=p[De.expando]){if(f.events)for(y in f.events)x[y]?g.event.remove(p,y):g.removeEvent(p,y,f.handle);p[De.expando]=void 0}p[Bt.expando]&&(p[Bt.expando]=void 0)}}}),g.fn.extend({detach:function(u){return ta(this,u,!0)},remove:function(u){return ta(this,u)},text:function(u){return Dn(this,function(f){return f===void 0?g.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=f)})},null,u,arguments.length)},append:function(){return qr(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=Zs(this,u);f.appendChild(u)}})},prepend:function(){return qr(this,arguments,function(u){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=Zs(this,u);f.insertBefore(u,f.firstChild)}})},before:function(){return qr(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this)})},after:function(){return qr(this,arguments,function(u){this.parentNode&&this.parentNode.insertBefore(u,this.nextSibling)})},empty:function(){for(var u,f=0;(u=this[f])!=null;f++)u.nodeType===1&&(g.cleanData(Ft(u,!1)),u.textContent="");return this},clone:function(u,f){return u=u??!1,f=f??u,this.map(function(){return g.clone(this,u,f)})},html:function(u){return Dn(this,function(f){var p=this[0]||{},y=0,x=this.length;if(f===void 0&&p.nodeType===1)return p.innerHTML;if(typeof f=="string"&&!il.test(f)&&!tn[(Gs.exec(f)||["",""])[1].toLowerCase()]){f=g.htmlPrefilter(f);try{for(;y<x;y++)p=this[y]||{},p.nodeType===1&&(g.cleanData(Ft(p,!1)),p.innerHTML=f);p=0}catch{}}p&&this.empty().append(f)},null,u,arguments.length)},replaceWith:function(){var u=[];return qr(this,arguments,function(f){var p=this.parentNode;g.inArray(this,u)<0&&(g.cleanData(Ft(this)),p&&p.replaceChild(f,this))},u)}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(u,f){g.fn[u]=function(p){for(var y,x=[],S=g(p),T=S.length-1,j=0;j<=T;j++)y=j===T?this:this.clone(!0),g(S[j])[f](y),d.apply(x,y.get());return this.pushStack(x)}});var jo=new RegExp("^("+eo+")(?!px)[a-z%]+$","i"),Bo=/^--/,ro=function(u){var f=u.ownerDocument.defaultView;return(!f||!f.opener)&&(f=e),f.getComputedStyle(u)},na=function(u,f,p){var y,x,S={};for(x in f)S[x]=u.style[x],u.style[x]=f[x];y=p.call(u);for(x in f)u.style[x]=S[x];return y},io=new RegExp(pn.join("|"),"i");(function(){function u(){if(z){L.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",z.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Hn.appendChild(L).appendChild(z);var ne=e.getComputedStyle(z);p=ne.top!=="1%",j=f(ne.marginLeft)===12,z.style.right="60%",S=f(ne.right)===36,y=f(ne.width)===36,z.style.position="absolute",x=f(z.offsetWidth/3)===12,Hn.removeChild(L),z=null}}function f(ne){return Math.round(parseFloat(ne))}var p,y,x,S,T,j,L=k.createElement("div"),z=k.createElement("div");z.style&&(z.style.backgroundClip="content-box",z.cloneNode(!0).style.backgroundClip="",I.clearCloneStyle=z.style.backgroundClip==="content-box",g.extend(I,{boxSizingReliable:function(){return u(),y},pixelBoxStyles:function(){return u(),S},pixelPosition:function(){return u(),p},reliableMarginLeft:function(){return u(),j},scrollboxSize:function(){return u(),x},reliableTrDimensions:function(){var ne,oe,X,he;return T==null&&(ne=k.createElement("table"),oe=k.createElement("tr"),X=k.createElement("div"),ne.style.cssText="position:absolute;left:-11111px;border-collapse:separate",oe.style.cssText="box-sizing:content-box;border:1px solid",oe.style.height="1px",X.style.height="9px",X.style.display="block",Hn.appendChild(ne).appendChild(oe).appendChild(X),he=e.getComputedStyle(oe),T=parseInt(he.height,10)+parseInt(he.borderTopWidth,10)+parseInt(he.borderBottomWidth,10)===oe.offsetHeight,Hn.removeChild(ne)),T}}))})();function Ci(u,f,p){var y,x,S,T,j=Bo.test(f),L=u.style;return p=p||ro(u),p&&(T=p.getPropertyValue(f)||p[f],j&&T&&(T=T.replace(Le,"$1")||void 0),T===""&&!Qn(u)&&(T=g.style(u,f)),!I.pixelBoxStyles()&&jo.test(T)&&io.test(f)&&(y=L.width,x=L.minWidth,S=L.maxWidth,L.minWidth=L.maxWidth=L.width=T,T=p.width,L.width=y,L.minWidth=x,L.maxWidth=S)),T!==void 0?T+"":T}function Ei(u,f){return{get:function(){if(u()){delete this.get;return}return(this.get=f).apply(this,arguments)}}}var ra=["Webkit","Moz","ms"],ia=k.createElement("div").style,oa={};function sa(u){for(var f=u[0].toUpperCase()+u.slice(1),p=ra.length;p--;)if(u=ra[p]+f,u in ia)return u}function oo(u){var f=g.cssProps[u]||oa[u];return f||(u in ia?u:oa[u]=sa(u)||u)}var aa=/^(none|table(?!-c[ea]).+)/,ll={position:"absolute",visibility:"hidden",display:"block"},ua={letterSpacing:"0",fontWeight:"400"};function la(u,f,p){var y=mr.exec(f);return y?Math.max(0,y[2]-(p||0))+(y[3]||"px"):f}function Fo(u,f,p,y,x,S){var T=f==="width"?1:0,j=0,L=0,z=0;if(p===(y?"border":"content"))return 0;for(;T<4;T+=2)p==="margin"&&(z+=g.css(u,p+pn[T],!0,x)),y?(p==="content"&&(L-=g.css(u,"padding"+pn[T],!0,x)),p!=="margin"&&(L-=g.css(u,"border"+pn[T]+"Width",!0,x))):(L+=g.css(u,"padding"+pn[T],!0,x),p!=="padding"?L+=g.css(u,"border"+pn[T]+"Width",!0,x):j+=g.css(u,"border"+pn[T]+"Width",!0,x));return!y&&S>=0&&(L+=Math.max(0,Math.ceil(u["offset"+f[0].toUpperCase()+f.slice(1)]-S-L-j-.5))||0),L+z}function Vo(u,f,p){var y=ro(u),x=!I.boxSizingReliable()||p,S=x&&g.css(u,"boxSizing",!1,y)==="border-box",T=S,j=Ci(u,f,y),L="offset"+f[0].toUpperCase()+f.slice(1);if(jo.test(j)){if(!p)return j;j="auto"}return(!I.boxSizingReliable()&&S||!I.reliableTrDimensions()&&Z(u,"tr")||j==="auto"||!parseFloat(j)&&g.css(u,"display",!1,y)==="inline")&&u.getClientRects().length&&(S=g.css(u,"boxSizing",!1,y)==="border-box",T=L in u,T&&(j=u[L])),j=parseFloat(j)||0,j+Fo(u,f,p||(S?"border":"content"),T,y,j)+"px"}g.extend({cssHooks:{opacity:{get:function(u,f){if(f){var p=Ci(u,"opacity");return p===""?"1":p}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(u,f,p,y){if(!(!u||u.nodeType===3||u.nodeType===8||!u.style)){var x,S,T,j=jt(f),L=Bo.test(f),z=u.style;if(L||(f=oo(j)),T=g.cssHooks[f]||g.cssHooks[j],p!==void 0){if(S=typeof p,S==="string"&&(x=mr.exec(p))&&x[1]&&(p=qs(u,f,x),S="number"),p==null||p!==p)return;S==="number"&&!L&&(p+=x&&x[3]||(g.cssNumber[j]?"":"px")),!I.clearCloneStyle&&p===""&&f.indexOf("background")===0&&(z[f]="inherit"),(!T||!("set"in T)||(p=T.set(u,p,y))!==void 0)&&(L?z.setProperty(f,p):z[f]=p)}else return T&&"get"in T&&(x=T.get(u,!1,y))!==void 0?x:z[f]}},css:function(u,f,p,y){var x,S,T,j=jt(f),L=Bo.test(f);return L||(f=oo(j)),T=g.cssHooks[f]||g.cssHooks[j],T&&"get"in T&&(x=T.get(u,!0,p)),x===void 0&&(x=Ci(u,f,y)),x==="normal"&&f in ua&&(x=ua[f]),p===""||p?(S=parseFloat(x),p===!0||isFinite(S)?S||0:x):x}}),g.each(["height","width"],function(u,f){g.cssHooks[f]={get:function(p,y,x){if(y)return aa.test(g.css(p,"display"))&&(!p.getClientRects().length||!p.getBoundingClientRect().width)?na(p,ll,function(){return Vo(p,f,x)}):Vo(p,f,x)},set:function(p,y,x){var S,T=ro(p),j=!I.scrollboxSize()&&T.position==="absolute",L=j||x,z=L&&g.css(p,"boxSizing",!1,T)==="border-box",ne=x?Fo(p,f,x,z,T):0;return z&&j&&(ne-=Math.ceil(p["offset"+f[0].toUpperCase()+f.slice(1)]-parseFloat(T[f])-Fo(p,f,"border",!1,T)-.5)),ne&&(S=mr.exec(y))&&(S[3]||"px")!=="px"&&(p.style[f]=y,y=g.css(p,f)),la(p,y,ne)}}}),g.cssHooks.marginLeft=Ei(I.reliableMarginLeft,function(u,f){if(f)return(parseFloat(Ci(u,"marginLeft"))||u.getBoundingClientRect().left-na(u,{marginLeft:0},function(){return u.getBoundingClientRect().left}))+"px"}),g.each({margin:"",padding:"",border:"Width"},function(u,f){g.cssHooks[u+f]={expand:function(p){for(var y=0,x={},S=typeof p=="string"?p.split(" "):[p];y<4;y++)x[u+pn[y]+f]=S[y]||S[y-2]||S[0];return x}},u!=="margin"&&(g.cssHooks[u+f].set=la)}),g.fn.extend({css:function(u,f){return Dn(this,function(p,y,x){var S,T,j={},L=0;if(Array.isArray(y)){for(S=ro(p),T=y.length;L<T;L++)j[y[L]]=g.css(p,y[L],!1,S);return j}return x!==void 0?g.style(p,y,x):g.css(p,y)},u,f,arguments.length>1)}});function Mt(u,f,p,y,x){return new Mt.prototype.init(u,f,p,y,x)}g.Tween=Mt,Mt.prototype={constructor:Mt,init:function(u,f,p,y,x,S){this.elem=u,this.prop=p,this.easing=x||g.easing._default,this.options=f,this.start=this.now=this.cur(),this.end=y,this.unit=S||(g.cssNumber[p]?"":"px")},cur:function(){var u=Mt.propHooks[this.prop];return u&&u.get?u.get(this):Mt.propHooks._default.get(this)},run:function(u){var f,p=Mt.propHooks[this.prop];return this.options.duration?this.pos=f=g.easing[this.easing](u,this.options.duration*u,0,1,this.options.duration):this.pos=f=u,this.now=(this.end-this.start)*f+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),p&&p.set?p.set(this):Mt.propHooks._default.set(this),this}},Mt.prototype.init.prototype=Mt.prototype,Mt.propHooks={_default:{get:function(u){var f;return u.elem.nodeType!==1||u.elem[u.prop]!=null&&u.elem.style[u.prop]==null?u.elem[u.prop]:(f=g.css(u.elem,u.prop,""),!f||f==="auto"?0:f)},set:function(u){g.fx.step[u.prop]?g.fx.step[u.prop](u):u.elem.nodeType===1&&(g.cssHooks[u.prop]||u.elem.style[oo(u.prop)]!=null)?g.style(u.elem,u.prop,u.now+u.unit):u.elem[u.prop]=u.now}}},Mt.propHooks.scrollTop=Mt.propHooks.scrollLeft={set:function(u){u.elem.nodeType&&u.elem.parentNode&&(u.elem[u.prop]=u.now)}},g.easing={linear:function(u){return u},swing:function(u){return .5-Math.cos(u*Math.PI)/2},_default:"swing"},g.fx=Mt.prototype.init,g.fx.step={};var yr,Yr,cl=/^(?:toggle|show|hide)$/,ca=/queueHooks$/;function Gr(){Yr&&(k.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(Gr):e.setTimeout(Gr,g.fx.interval),g.fx.tick())}function Wo(){return e.setTimeout(function(){yr=void 0}),yr=Date.now()}function so(u,f){var p,y=0,x={height:u};for(f=f?1:0;y<4;y+=2-f)p=pn[y],x["margin"+p]=x["padding"+p]=u;return f&&(x.opacity=x.width=u),x}function Ho(u,f,p){for(var y,x=(gn.tweeners[f]||[]).concat(gn.tweeners["*"]),S=0,T=x.length;S<T;S++)if(y=x[S].call(p,f,u))return y}function fa(u,f,p){var y,x,S,T,j,L,z,ne,oe="width"in f||"height"in f,X=this,he={},_e=u.style,qe=u.nodeType&&$r(u),ze=De.get(u,"fxshow");p.queue||(T=g._queueHooks(u,"fx"),T.unqueued==null&&(T.unqueued=0,j=T.empty.fire,T.empty.fire=function(){T.unqueued||j()}),T.unqueued++,X.always(function(){X.always(function(){T.unqueued--,g.queue(u,"fx").length||T.empty.fire()})}));for(y in f)if(x=f[y],cl.test(x)){if(delete f[y],S=S||x==="toggle",x===(qe?"hide":"show"))if(x==="show"&&ze&&ze[y]!==void 0)qe=!0;else continue;he[y]=ze&&ze[y]||g.style(u,y)}if(L=!g.isEmptyObject(f),!(!L&&g.isEmptyObject(he))){oe&&u.nodeType===1&&(p.overflow=[_e.overflow,_e.overflowX,_e.overflowY],z=ze&&ze.display,z==null&&(z=De.get(u,"display")),ne=g.css(u,"display"),ne==="none"&&(z?ne=z:(vr([u],!0),z=u.style.display||z,ne=g.css(u,"display"),vr([u]))),(ne==="inline"||ne==="inline-block"&&z!=null)&&g.css(u,"float")==="none"&&(L||(X.done(function(){_e.display=z}),z==null&&(ne=_e.display,z=ne==="none"?"":ne)),_e.display="inline-block")),p.overflow&&(_e.overflow="hidden",X.always(function(){_e.overflow=p.overflow[0],_e.overflowX=p.overflow[1],_e.overflowY=p.overflow[2]})),L=!1;for(y in he)L||(ze?"hidden"in ze&&(qe=ze.hidden):ze=De.access(u,"fxshow",{display:z}),S&&(ze.hidden=!qe),qe&&vr([u],!0),X.done(function(){qe||vr([u]),De.remove(u,"fxshow");for(y in he)g.style(u,y,he[y])})),L=Ho(qe?ze[y]:0,y,X),y in ze||(ze[y]=L.start,qe&&(L.end=L.start,L.start=0))}}function $o(u,f){var p,y,x,S,T;for(p in u)if(y=jt(p),x=f[y],S=u[p],Array.isArray(S)&&(x=S[1],S=u[p]=S[0]),p!==y&&(u[y]=S,delete u[p]),T=g.cssHooks[y],T&&"expand"in T){S=T.expand(S),delete u[y];for(p in S)p in u||(u[p]=S[p],f[p]=x)}else f[y]=x}function gn(u,f,p){var y,x,S=0,T=gn.prefilters.length,j=g.Deferred().always(function(){delete L.elem}),L=function(){if(x)return!1;for(var oe=yr||Wo(),X=Math.max(0,z.startTime+z.duration-oe),he=X/z.duration||0,_e=1-he,qe=0,ze=z.tweens.length;qe<ze;qe++)z.tweens[qe].run(_e);return j.notifyWith(u,[z,_e,X]),_e<1&&ze?X:(ze||j.notifyWith(u,[z,1,0]),j.resolveWith(u,[z]),!1)},z=j.promise({elem:u,props:g.extend({},f),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},p),originalProperties:f,originalOptions:p,startTime:yr||Wo(),duration:p.duration,tweens:[],createTween:function(oe,X){var he=g.Tween(u,z.opts,oe,X,z.opts.specialEasing[oe]||z.opts.easing);return z.tweens.push(he),he},stop:function(oe){var X=0,he=oe?z.tweens.length:0;if(x)return this;for(x=!0;X<he;X++)z.tweens[X].run(1);return oe?(j.notifyWith(u,[z,1,0]),j.resolveWith(u,[z,oe])):j.rejectWith(u,[z,oe]),this}}),ne=z.props;for($o(ne,z.opts.specialEasing);S<T;S++)if(y=gn.prefilters[S].call(z,u,ne,z.opts),y)return A(y.stop)&&(g._queueHooks(z.elem,z.opts.queue).stop=y.stop.bind(y)),y;return g.map(ne,Ho,z),A(z.opts.start)&&z.opts.start.call(u,z),z.progress(z.opts.progress).done(z.opts.done,z.opts.complete).fail(z.opts.fail).always(z.opts.always),g.fx.timer(g.extend(L,{elem:u,anim:z,queue:z.opts.queue})),z}g.Animation=g.extend(gn,{tweeners:{"*":[function(u,f){var p=this.createTween(u,f);return qs(p.elem,u,mr.exec(f),p),p}]},tweener:function(u,f){A(u)?(f=u,u=["*"]):u=u.match(Me);for(var p,y=0,x=u.length;y<x;y++)p=u[y],gn.tweeners[p]=gn.tweeners[p]||[],gn.tweeners[p].unshift(f)},prefilters:[fa],prefilter:function(u,f){f?gn.prefilters.unshift(u):gn.prefilters.push(u)}}),g.speed=function(u,f,p){var y=u&&typeof u=="object"?g.extend({},u):{complete:p||!p&&f||A(u)&&u,duration:u,easing:p&&f||f&&!A(f)&&f};return g.fx.off?y.duration=0:typeof y.duration!="number"&&(y.duration in g.fx.speeds?y.duration=g.fx.speeds[y.duration]:y.duration=g.fx.speeds._default),(y.queue==null||y.queue===!0)&&(y.queue="fx"),y.old=y.complete,y.complete=function(){A(y.old)&&y.old.call(this),y.queue&&g.dequeue(this,y.queue)},y},g.fn.extend({fadeTo:function(u,f,p,y){return this.filter($r).css("opacity",0).show().end().animate({opacity:f},u,p,y)},animate:function(u,f,p,y){var x=g.isEmptyObject(u),S=g.speed(f,p,y),T=function(){var j=gn(this,g.extend({},u),S);(x||De.get(this,"finish"))&&j.stop(!0)};return T.finish=T,x||S.queue===!1?this.each(T):this.queue(S.queue,T)},stop:function(u,f,p){var y=function(x){var S=x.stop;delete x.stop,S(p)};return typeof u!="string"&&(p=f,f=u,u=void 0),f&&this.queue(u||"fx",[]),this.each(function(){var x=!0,S=u!=null&&u+"queueHooks",T=g.timers,j=De.get(this);if(S)j[S]&&j[S].stop&&y(j[S]);else for(S in j)j[S]&&j[S].stop&&ca.test(S)&&y(j[S]);for(S=T.length;S--;)T[S].elem===this&&(u==null||T[S].queue===u)&&(T[S].anim.stop(p),x=!1,T.splice(S,1));(x||!p)&&g.dequeue(this,u)})},finish:function(u){return u!==!1&&(u=u||"fx"),this.each(function(){var f,p=De.get(this),y=p[u+"queue"],x=p[u+"queueHooks"],S=g.timers,T=y?y.length:0;for(p.finish=!0,g.queue(this,u,[]),x&&x.stop&&x.stop.call(this,!0),f=S.length;f--;)S[f].elem===this&&S[f].queue===u&&(S[f].anim.stop(!0),S.splice(f,1));for(f=0;f<T;f++)y[f]&&y[f].finish&&y[f].finish.call(this);delete p.finish})}}),g.each(["toggle","show","hide"],function(u,f){var p=g.fn[f];g.fn[f]=function(y,x,S){return y==null||typeof y=="boolean"?p.apply(this,arguments):this.animate(so(f,!0),y,x,S)}}),g.each({slideDown:so("show"),slideUp:so("hide"),slideToggle:so("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(u,f){g.fn[u]=function(p,y,x){return this.animate(f,p,y,x)}}),g.timers=[],g.fx.tick=function(){var u,f=0,p=g.timers;for(yr=Date.now();f<p.length;f++)u=p[f],!u()&&p[f]===u&&p.splice(f--,1);p.length||g.fx.stop(),yr=void 0},g.fx.timer=function(u){g.timers.push(u),g.fx.start()},g.fx.interval=13,g.fx.start=function(){Yr||(Yr=!0,Gr())},g.fx.stop=function(){Yr=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(u,f){return u=g.fx&&g.fx.speeds[u]||u,f=f||"fx",this.queue(f,function(p,y){var x=e.setTimeout(p,u);y.stop=function(){e.clearTimeout(x)}})},function(){var u=k.createElement("input"),f=k.createElement("select"),p=f.appendChild(k.createElement("option"));u.type="checkbox",I.checkOn=u.value!=="",I.optSelected=p.selected,u=k.createElement("input"),u.value="t",u.type="radio",I.radioValue=u.value==="t"}();var Uo,br=g.expr.attrHandle;g.fn.extend({attr:function(u,f){return Dn(this,g.attr,u,f,arguments.length>1)},removeAttr:function(u){return this.each(function(){g.removeAttr(this,u)})}}),g.extend({attr:function(u,f,p){var y,x,S=u.nodeType;if(!(S===3||S===8||S===2)){if(typeof u.getAttribute>"u")return g.prop(u,f,p);if((S!==1||!g.isXMLDoc(u))&&(x=g.attrHooks[f.toLowerCase()]||(g.expr.match.bool.test(f)?Uo:void 0)),p!==void 0){if(p===null){g.removeAttr(u,f);return}return x&&"set"in x&&(y=x.set(u,p,f))!==void 0?y:(u.setAttribute(f,p+""),p)}return x&&"get"in x&&(y=x.get(u,f))!==null?y:(y=g.find.attr(u,f),y??void 0)}},attrHooks:{type:{set:function(u,f){if(!I.radioValue&&f==="radio"&&Z(u,"input")){var p=u.value;return u.setAttribute("type",f),p&&(u.value=p),f}}}},removeAttr:function(u,f){var p,y=0,x=f&&f.match(Me);if(x&&u.nodeType===1)for(;p=x[y++];)u.removeAttribute(p)}}),Uo={set:function(u,f,p){return f===!1?g.removeAttr(u,p):u.setAttribute(p,p),p}},g.each(g.expr.match.bool.source.match(/\w+/g),function(u,f){var p=br[f]||g.find.attr;br[f]=function(y,x,S){var T,j,L=x.toLowerCase();return S||(j=br[L],br[L]=T,T=p(y,x,S)!=null?L:null,br[L]=j),T}});var zo=/^(?:input|select|textarea|button)$/i,Kr=/^(?:a|area)$/i;g.fn.extend({prop:function(u,f){return Dn(this,g.prop,u,f,arguments.length>1)},removeProp:function(u){return this.each(function(){delete this[g.propFix[u]||u]})}}),g.extend({prop:function(u,f,p){var y,x,S=u.nodeType;if(!(S===3||S===8||S===2))return(S!==1||!g.isXMLDoc(u))&&(f=g.propFix[f]||f,x=g.propHooks[f]),p!==void 0?x&&"set"in x&&(y=x.set(u,p,f))!==void 0?y:u[f]=p:x&&"get"in x&&(y=x.get(u,f))!==null?y:u[f]},propHooks:{tabIndex:{get:function(u){var f=g.find.attr(u,"tabindex");return f?parseInt(f,10):zo.test(u.nodeName)||Kr.test(u.nodeName)&&u.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),I.optSelected||(g.propHooks.selected={get:function(u){var f=u.parentNode;return f&&f.parentNode&&f.parentNode.selectedIndex,null},set:function(u){var f=u.parentNode;f&&(f.selectedIndex,f.parentNode&&f.parentNode.selectedIndex)}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){g.propFix[this.toLowerCase()]=this});function tr(u){var f=u.match(Me)||[];return f.join(" ")}function nr(u){return u.getAttribute&&u.getAttribute("class")||""}function qo(u){return Array.isArray(u)?u:typeof u=="string"?u.match(Me)||[]:[]}g.fn.extend({addClass:function(u){var f,p,y,x,S,T;return A(u)?this.each(function(j){g(this).addClass(u.call(this,j,nr(this)))}):(f=qo(u),f.length?this.each(function(){if(y=nr(this),p=this.nodeType===1&&" "+tr(y)+" ",p){for(S=0;S<f.length;S++)x=f[S],p.indexOf(" "+x+" ")<0&&(p+=x+" ");T=tr(p),y!==T&&this.setAttribute("class",T)}}):this)},removeClass:function(u){var f,p,y,x,S,T;return A(u)?this.each(function(j){g(this).removeClass(u.call(this,j,nr(this)))}):arguments.length?(f=qo(u),f.length?this.each(function(){if(y=nr(this),p=this.nodeType===1&&" "+tr(y)+" ",p){for(S=0;S<f.length;S++)for(x=f[S];p.indexOf(" "+x+" ")>-1;)p=p.replace(" "+x+" "," ");T=tr(p),y!==T&&this.setAttribute("class",T)}}):this):this.attr("class","")},toggleClass:function(u,f){var p,y,x,S,T=typeof u,j=T==="string"||Array.isArray(u);return A(u)?this.each(function(L){g(this).toggleClass(u.call(this,L,nr(this),f),f)}):typeof f=="boolean"&&j?f?this.addClass(u):this.removeClass(u):(p=qo(u),this.each(function(){if(j)for(S=g(this),x=0;x<p.length;x++)y=p[x],S.hasClass(y)?S.removeClass(y):S.addClass(y);else(u===void 0||T==="boolean")&&(y=nr(this),y&&De.set(this,"__className__",y),this.setAttribute&&this.setAttribute("class",y||u===!1?"":De.get(this,"__className__")||""))}))},hasClass:function(u){var f,p,y=0;for(f=" "+u+" ";p=this[y++];)if(p.nodeType===1&&(" "+tr(nr(p))+" ").indexOf(f)>-1)return!0;return!1}});var da=/\r/g;g.fn.extend({val:function(u){var f,p,y,x=this[0];return arguments.length?(y=A(u),this.each(function(S){var T;this.nodeType===1&&(y?T=u.call(this,S,g(this).val()):T=u,T==null?T="":typeof T=="number"?T+="":Array.isArray(T)&&(T=g.map(T,function(j){return j==null?"":j+""})),f=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()],(!f||!("set"in f)||f.set(this,T,"value")===void 0)&&(this.value=T))})):x?(f=g.valHooks[x.type]||g.valHooks[x.nodeName.toLowerCase()],f&&"get"in f&&(p=f.get(x,"value"))!==void 0?p:(p=x.value,typeof p=="string"?p.replace(da,""):p??"")):void 0}}),g.extend({valHooks:{option:{get:function(u){var f=g.find.attr(u,"value");return f??tr(g.text(u))}},select:{get:function(u){var f,p,y,x=u.options,S=u.selectedIndex,T=u.type==="select-one",j=T?null:[],L=T?S+1:x.length;for(S<0?y=L:y=T?S:0;y<L;y++)if(p=x[y],(p.selected||y===S)&&!p.disabled&&(!p.parentNode.disabled||!Z(p.parentNode,"optgroup"))){if(f=g(p).val(),T)return f;j.push(f)}return j},set:function(u,f){for(var p,y,x=u.options,S=g.makeArray(f),T=x.length;T--;)y=x[T],(y.selected=g.inArray(g.valHooks.option.get(y),S)>-1)&&(p=!0);return p||(u.selectedIndex=-1),S}}}}),g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(u,f){if(Array.isArray(f))return u.checked=g.inArray(g(u).val(),f)>-1}},I.checkOn||(g.valHooks[this].get=function(u){return u.getAttribute("value")===null?"on":u.value})});var Xr=e.location,Yo={guid:Date.now()},ao=/\?/;g.parseXML=function(u){var f,p;if(!u||typeof u!="string")return null;try{f=new e.DOMParser().parseFromString(u,"text/xml")}catch{}return p=f&&f.getElementsByTagName("parsererror")[0],(!f||p)&&g.error("Invalid XML: "+(p?g.map(p.childNodes,function(y){return y.textContent}).join(`
|
|
66
|
+
`):u)),f};var ha=/^(?:focusinfocus|focusoutblur)$/,pa=function(u){u.stopPropagation()};g.extend(g.event,{trigger:function(u,f,p,y){var x,S,T,j,L,z,ne,oe,X=[p||k],he=w.call(u,"type")?u.type:u,_e=w.call(u,"namespace")?u.namespace.split("."):[];if(S=oe=T=p=p||k,!(p.nodeType===3||p.nodeType===8)&&!ha.test(he+g.event.triggered)&&(he.indexOf(".")>-1&&(_e=he.split("."),he=_e.shift(),_e.sort()),L=he.indexOf(":")<0&&"on"+he,u=u[g.expando]?u:new g.Event(he,typeof u=="object"&&u),u.isTrigger=y?2:3,u.namespace=_e.join("."),u.rnamespace=u.namespace?new RegExp("(^|\\.)"+_e.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=void 0,u.target||(u.target=p),f=f==null?[u]:g.makeArray(f,[u]),ne=g.event.special[he]||{},!(!y&&ne.trigger&&ne.trigger.apply(p,f)===!1))){if(!y&&!ne.noBubble&&!B(p)){for(j=ne.delegateType||he,ha.test(j+he)||(S=S.parentNode);S;S=S.parentNode)X.push(S),T=S;T===(p.ownerDocument||k)&&X.push(T.defaultView||T.parentWindow||e)}for(x=0;(S=X[x++])&&!u.isPropagationStopped();)oe=S,u.type=x>1?j:ne.bindType||he,z=(De.get(S,"events")||Object.create(null))[u.type]&&De.get(S,"handle"),z&&z.apply(S,f),z=L&&S[L],z&&z.apply&&Zn(S)&&(u.result=z.apply(S,f),u.result===!1&&u.preventDefault());return u.type=he,!y&&!u.isDefaultPrevented()&&(!ne._default||ne._default.apply(X.pop(),f)===!1)&&Zn(p)&&L&&A(p[he])&&!B(p)&&(T=p[L],T&&(p[L]=null),g.event.triggered=he,u.isPropagationStopped()&&oe.addEventListener(he,pa),p[he](),u.isPropagationStopped()&&oe.removeEventListener(he,pa),g.event.triggered=void 0,T&&(p[L]=T)),u.result}},simulate:function(u,f,p){var y=g.extend(new g.Event,p,{type:u,isSimulated:!0});g.event.trigger(y,null,f)}}),g.fn.extend({trigger:function(u,f){return this.each(function(){g.event.trigger(u,f,this)})},triggerHandler:function(u,f){var p=this[0];if(p)return g.event.trigger(u,f,p,!0)}});var fl=/\[\]$/,Go=/\r?\n/g,dl=/^(?:submit|button|image|reset|file)$/i,hl=/^(?:input|select|textarea|keygen)/i;function Ko(u,f,p,y){var x;if(Array.isArray(f))g.each(f,function(S,T){p||fl.test(u)?y(u,T):Ko(u+"["+(typeof T=="object"&&T!=null?S:"")+"]",T,p,y)});else if(!p&&Y(f)==="object")for(x in f)Ko(u+"["+x+"]",f[x],p,y);else y(u,f)}g.param=function(u,f){var p,y=[],x=function(S,T){var j=A(T)?T():T;y[y.length]=encodeURIComponent(S)+"="+encodeURIComponent(j??"")};if(u==null)return"";if(Array.isArray(u)||u.jquery&&!g.isPlainObject(u))g.each(u,function(){x(this.name,this.value)});else for(p in u)Ko(p,u[p],f,x);return y.join("&")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var u=g.prop(this,"elements");return u?g.makeArray(u):this}).filter(function(){var u=this.type;return this.name&&!g(this).is(":disabled")&&hl.test(this.nodeName)&&!dl.test(u)&&(this.checked||!Ur.test(u))}).map(function(u,f){var p=g(this).val();return p==null?null:Array.isArray(p)?g.map(p,function(y){return{name:f.name,value:y.replace(Go,`\r
|
|
67
67
|
`)}}):{name:f.name,value:p.replace(Go,`\r
|
|
68
|
-
`)}}).get()}});var pl=/%20/g,Xo=/#.*$/,gl=/([?&])_=[^&]*/,ml=/^(.*?):[ \t]*([^\r\n]*)$/mg,vl=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,yl=/^(?:GET|HEAD)$/,bl=/^\/\//,dt={},st={},ga="*/".concat("*"),Jo=k.createElement("a");Jo.href=Xr.href;function ma(u){return function(f,p){typeof f!="string"&&(p=f,f="*");var y,x=0,S=f.toLowerCase().match(Me)||[];if(A(p))for(;y=S[x++];)y[0]==="+"?(y=y.slice(1)||"*",(u[y]=u[y]||[]).unshift(p)):(u[y]=u[y]||[]).push(p)}}function va(u,f,p,y){var x={},S=u===st;function T(j){var L;return x[j]=!0,g.each(u[j]||[],function(z,ne){var oe=ne(f,p,y);if(typeof oe=="string"&&!S&&!x[oe])return f.dataTypes.unshift(oe),T(oe),!1;if(S)return!(L=oe)}),L}return T(f.dataTypes[0])||!x["*"]&&T("*")}function Zo(u,f){var p,y,x=g.ajaxSettings.flatOptions||{};for(p in f)f[p]!==void 0&&((x[p]?u:y||(y={}))[p]=f[p]);return y&&g.extend(!0,u,y),u}function wl(u,f,p){for(var y,x,S,T,j=u.contents,L=u.dataTypes;L[0]==="*";)L.shift(),y===void 0&&(y=u.mimeType||f.getResponseHeader("Content-Type"));if(y){for(x in j)if(j[x]&&j[x].test(y)){L.unshift(x);break}}if(L[0]in p)S=L[0];else{for(x in p){if(!L[0]||u.converters[x+" "+L[0]]){S=x;break}T||(T=x)}S=S||T}if(S)return S!==L[0]&&L.unshift(S),p[S]}function ya(u,f,p,y){var x,S,T,j,L,z={},ne=u.dataTypes.slice();if(ne[1])for(T in u.converters)z[T.toLowerCase()]=u.converters[T];for(S=ne.shift();S;)if(u.responseFields[S]&&(p[u.responseFields[S]]=f),!L&&y&&u.dataFilter&&(f=u.dataFilter(f,u.dataType)),L=S,S=ne.shift(),S){if(S==="*")S=L;else if(L!=="*"&&L!==S){if(T=z[L+" "+S]||z["* "+S],!T){for(x in z)if(j=x.split(" "),j[1]===S&&(T=z[L+" "+j[0]]||z["* "+j[0]],T)){T===!0?T=z[x]:z[x]!==!0&&(S=j[0],ne.unshift(j[1]));break}}if(T!==!0)if(T&&u.throws)f=T(f);else try{f=T(f)}catch(oe){return{state:"parsererror",error:T?oe:"No conversion from "+L+" to "+S}}}}return{state:"success",data:f}}g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Xr.href,type:"GET",isLocal:vl.test(Xr.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ga,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(u,f){return f?Zo(Zo(u,g.ajaxSettings),f):Zo(g.ajaxSettings,u)},ajaxPrefilter:ma(dt),ajaxTransport:ma(st),ajax:function(u,f){typeof u=="object"&&(f=u,u=void 0),f=f||{};var p,y,x,S,T,j,L,z,ne,oe,X=g.ajaxSetup({},f),he=X.context||X,_e=X.context&&(he.nodeType||he.jquery)?g(he):g.event,qe=g.Deferred(),ze=g.Callbacks("once memory"),Pt=X.statusCode||{},bt={},In={},Rn="canceled",et={readyState:0,getResponseHeader:function(tt){var ct;if(L){if(!S)for(S={};ct=ml.exec(x);)S[ct[1].toLowerCase()+" "]=(S[ct[1].toLowerCase()+" "]||[]).concat(ct[2]);ct=S[tt.toLowerCase()+" "]}return ct==null?null:ct.join(", ")},getAllResponseHeaders:function(){return L?x:null},setRequestHeader:function(tt,ct){return L==null&&(tt=In[tt.toLowerCase()]=In[tt.toLowerCase()]||tt,bt[tt]=ct),this},overrideMimeType:function(tt){return L==null&&(X.mimeType=tt),this},statusCode:function(tt){var ct;if(tt)if(L)et.always(tt[et.status]);else for(ct in tt)Pt[ct]=[Pt[ct],tt[ct]];return this},abort:function(tt){var ct=tt||Rn;return p&&p.abort(ct),rr(0,ct),this}};if(qe.promise(et),X.url=((u||X.url||Xr.href)+"").replace(bl,Xr.protocol+"//"),X.type=f.method||f.type||X.method||X.type,X.dataTypes=(X.dataType||"*").toLowerCase().match(Me)||[""],X.crossDomain==null){j=k.createElement("a");try{j.href=X.url,j.href=j.href,X.crossDomain=Jo.protocol+"//"+Jo.host!=j.protocol+"//"+j.host}catch{X.crossDomain=!0}}if(X.data&&X.processData&&typeof X.data!="string"&&(X.data=g.param(X.data,X.traditional)),va(dt,X,f,et),L)return et;z=g.event&&X.global,z&&g.active++===0&&g.event.trigger("ajaxStart"),X.type=X.type.toUpperCase(),X.hasContent=!yl.test(X.type),y=X.url.replace(Xo,""),X.hasContent?X.data&&X.processData&&(X.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(X.data=X.data.replace(pl,"+")):(oe=X.url.slice(y.length),X.data&&(X.processData||typeof X.data=="string")&&(y+=(ao.test(y)?"&":"?")+X.data,delete X.data),X.cache===!1&&(y=y.replace(gl,"$1"),oe=(ao.test(y)?"&":"?")+"_="+Yo.guid+++oe),X.url=y+oe),X.ifModified&&(g.lastModified[y]&&et.setRequestHeader("If-Modified-Since",g.lastModified[y]),g.etag[y]&&et.setRequestHeader("If-None-Match",g.etag[y])),(X.data&&X.hasContent&&X.contentType!==!1||f.contentType)&&et.setRequestHeader("Content-Type",X.contentType),et.setRequestHeader("Accept",X.dataTypes[0]&&X.accepts[X.dataTypes[0]]?X.accepts[X.dataTypes[0]]+(X.dataTypes[0]!=="*"?", "+ga+"; q=0.01":""):X.accepts["*"]);for(ne in X.headers)et.setRequestHeader(ne,X.headers[ne]);if(X.beforeSend&&(X.beforeSend.call(he,et,X)===!1||L))return et.abort();if(Rn="abort",ze.add(X.complete),et.done(X.success),et.fail(X.error),p=va(st,X,f,et),!p)rr(-1,"No Transport");else{if(et.readyState=1,z&&_e.trigger("ajaxSend",[et,X]),L)return et;X.async&&X.timeout>0&&(T=e.setTimeout(function(){et.abort("timeout")},X.timeout));try{L=!1,p.send(bt,rr)}catch(tt){if(L)throw tt;rr(-1,tt)}}function rr(tt,ct,Ti,lo){var mn,wr,rn,Un,ir,Vt=ct;L||(L=!0,T&&e.clearTimeout(T),p=void 0,x=lo||"",et.readyState=tt>0?4:0,mn=tt>=200&&tt<300||tt===304,Ti&&(Un=wl(X,et,Ti)),!mn&&g.inArray("script",X.dataTypes)>-1&&g.inArray("json",X.dataTypes)<0&&(X.converters["text script"]=function(){}),Un=ya(X,Un,et,mn),mn?(X.ifModified&&(ir=et.getResponseHeader("Last-Modified"),ir&&(g.lastModified[y]=ir),ir=et.getResponseHeader("etag"),ir&&(g.etag[y]=ir)),tt===204||X.type==="HEAD"?Vt="nocontent":tt===304?Vt="notmodified":(Vt=Un.state,wr=Un.data,rn=Un.error,mn=!rn)):(rn=Vt,(tt||!Vt)&&(Vt="error",tt<0&&(tt=0))),et.status=tt,et.statusText=(ct||Vt)+"",mn?qe.resolveWith(he,[wr,Vt,et]):qe.rejectWith(he,[et,Vt,rn]),et.statusCode(Pt),Pt=void 0,z&&_e.trigger(mn?"ajaxSuccess":"ajaxError",[et,X,mn?wr:rn]),ze.fireWith(he,[et,Vt]),z&&(_e.trigger("ajaxComplete",[et,X]),--g.active||g.event.trigger("ajaxStop")))}return et},getJSON:function(u,f,p){return g.get(u,f,p,"json")},getScript:function(u,f){return g.get(u,void 0,f,"script")}}),g.each(["get","post"],function(u,f){g[f]=function(p,y,x,S){return A(y)&&(S=S||x,x=y,y=void 0),g.ajax(g.extend({url:p,type:f,dataType:S,data:y,success:x},g.isPlainObject(p)&&p))}}),g.ajaxPrefilter(function(u){var f;for(f in u.headers)f.toLowerCase()==="content-type"&&(u.contentType=u.headers[f]||"")}),g._evalUrl=function(u,f,p){return g.ajax({url:u,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(y){g.globalEval(y,f,p)}})},g.fn.extend({wrapAll:function(u){var f;return this[0]&&(A(u)&&(u=u.call(this[0])),f=g(u,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&f.insertBefore(this[0]),f.map(function(){for(var p=this;p.firstElementChild;)p=p.firstElementChild;return p}).append(this)),this},wrapInner:function(u){return A(u)?this.each(function(f){g(this).wrapInner(u.call(this,f))}):this.each(function(){var f=g(this),p=f.contents();p.length?p.wrapAll(u):f.append(u)})},wrap:function(u){var f=A(u);return this.each(function(p){g(this).wrapAll(f?u.call(this,p):u)})},unwrap:function(u){return this.parent(u).not("body").each(function(){g(this).replaceWith(this.childNodes)}),this}}),g.expr.pseudos.hidden=function(u){return!g.expr.pseudos.visible(u)},g.expr.pseudos.visible=function(u){return!!(u.offsetWidth||u.offsetHeight||u.getClientRects().length)},g.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var xl={0:200,1223:204},yt=g.ajaxSettings.xhr();I.cors=!!yt&&"withCredentials"in yt,I.ajax=yt=!!yt,g.ajaxTransport(function(u){var f,p;if(I.cors||yt&&!u.crossDomain)return{send:function(y,x){var S,T=u.xhr();if(T.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(S in u.xhrFields)T[S]=u.xhrFields[S];u.mimeType&&T.overrideMimeType&&T.overrideMimeType(u.mimeType),!u.crossDomain&&!y["X-Requested-With"]&&(y["X-Requested-With"]="XMLHttpRequest");for(S in y)T.setRequestHeader(S,y[S]);f=function(j){return function(){f&&(f=p=T.onload=T.onerror=T.onabort=T.ontimeout=T.onreadystatechange=null,j==="abort"?T.abort():j==="error"?typeof T.status!="number"?x(0,"error"):x(T.status,T.statusText):x(xl[T.status]||T.status,T.statusText,(T.responseType||"text")!=="text"||typeof T.responseText!="string"?{binary:T.response}:{text:T.responseText},T.getAllResponseHeaders()))}},T.onload=f(),p=T.onerror=T.ontimeout=f("error"),T.onabort!==void 0?T.onabort=p:T.onreadystatechange=function(){T.readyState===4&&e.setTimeout(function(){f&&p()})},f=f("abort");try{T.send(u.hasContent&&u.data||null)}catch(j){if(f)throw j}},abort:function(){f&&f()}}}),g.ajaxPrefilter(function(u){u.crossDomain&&(u.contents.script=!1)}),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(u){return g.globalEval(u),u}}}),g.ajaxPrefilter("script",function(u){u.cache===void 0&&(u.cache=!1),u.crossDomain&&(u.type="GET")}),g.ajaxTransport("script",function(u){if(u.crossDomain||u.scriptAttrs){var f,p;return{send:function(y,x){f=g("<script>").attr(u.scriptAttrs||{}).prop({charset:u.scriptCharset,src:u.url}).on("load error",p=function(S){f.remove(),p=null,S&&x(S.type==="error"?404:200,S.type)}),k.head.appendChild(f[0])},abort:function(){p&&p()}}}});var uo=[],$n=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var u=uo.pop()||g.expando+"_"+Yo.guid++;return this[u]=!0,u}}),g.ajaxPrefilter("json jsonp",function(u,f,p){var y,x,S,T=u.jsonp!==!1&&($n.test(u.url)?"url":typeof u.data=="string"&&(u.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&$n.test(u.data)&&"data");if(T||u.dataTypes[0]==="jsonp")return y=u.jsonpCallback=A(u.jsonpCallback)?u.jsonpCallback():u.jsonpCallback,T?u[T]=u[T].replace($n,"$1"+y):u.jsonp!==!1&&(u.url+=(ao.test(u.url)?"&":"?")+u.jsonp+"="+y),u.converters["script json"]=function(){return S||g.error(y+" was not called"),S[0]},u.dataTypes[0]="json",x=e[y],e[y]=function(){S=arguments},p.always(function(){x===void 0?g(e).removeProp(y):e[y]=x,u[y]&&(u.jsonpCallback=f.jsonpCallback,uo.push(y)),S&&A(x)&&x(S[0]),S=x=void 0}),"script"}),I.createHTMLDocument=function(){var u=k.implementation.createHTMLDocument("").body;return u.innerHTML="<form></form><form></form>",u.childNodes.length===2}(),g.parseHTML=function(u,f,p){if(typeof u!="string")return[];typeof f=="boolean"&&(p=f,f=!1);var y,x,S;return f||(I.createHTMLDocument?(f=k.implementation.createHTMLDocument(""),y=f.createElement("base"),y.href=k.location.href,f.head.appendChild(y)):f=k),x=ve.exec(u),S=!p&&[],x?[f.createElement(x[1])]:(x=Xs([u],f,S),S&&S.length&&g(S).remove(),g.merge([],x.childNodes))},g.fn.load=function(u,f,p){var y,x,S,T=this,j=u.indexOf(" ");return j>-1&&(y=tr(u.slice(j)),u=u.slice(0,j)),A(f)?(p=f,f=void 0):f&&typeof f=="object"&&(x="POST"),T.length>0&&g.ajax({url:u,type:x||"GET",dataType:"html",data:f}).done(function(L){S=arguments,T.html(y?g("<div>").append(g.parseHTML(L)).find(y):L)}).always(p&&function(L,z){T.each(function(){p.apply(this,S||[L.responseText,z,L])})}),this},g.expr.pseudos.animated=function(u){return g.grep(g.timers,function(f){return u===f.elem}).length},g.offset={setOffset:function(u,f,p){var y,x,S,T,j,L,z,ne=g.css(u,"position"),oe=g(u),X={};ne==="static"&&(u.style.position="relative"),j=oe.offset(),S=g.css(u,"top"),L=g.css(u,"left"),z=(ne==="absolute"||ne==="fixed")&&(S+L).indexOf("auto")>-1,z?(y=oe.position(),T=y.top,x=y.left):(T=parseFloat(S)||0,x=parseFloat(L)||0),A(f)&&(f=f.call(u,p,g.extend({},j))),f.top!=null&&(X.top=f.top-j.top+T),f.left!=null&&(X.left=f.left-j.left+x),"using"in f?f.using.call(u,X):oe.css(X)}},g.fn.extend({offset:function(u){if(arguments.length)return u===void 0?this:this.each(function(x){g.offset.setOffset(this,u,x)});var f,p,y=this[0];if(y)return y.getClientRects().length?(f=y.getBoundingClientRect(),p=y.ownerDocument.defaultView,{top:f.top+p.pageYOffset,left:f.left+p.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var u,f,p,y=this[0],x={top:0,left:0};if(g.css(y,"position")==="fixed")f=y.getBoundingClientRect();else{for(f=this.offset(),p=y.ownerDocument,u=y.offsetParent||p.documentElement;u&&(u===p.body||u===p.documentElement)&&g.css(u,"position")==="static";)u=u.parentNode;u&&u!==y&&u.nodeType===1&&(x=g(u).offset(),x.top+=g.css(u,"borderTopWidth",!0),x.left+=g.css(u,"borderLeftWidth",!0))}return{top:f.top-x.top-g.css(y,"marginTop",!0),left:f.left-x.left-g.css(y,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var u=this.offsetParent;u&&g.css(u,"position")==="static";)u=u.offsetParent;return u||Hn})}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(u,f){var p=f==="pageYOffset";g.fn[u]=function(y){return Dn(this,function(x,S,T){var j;if(B(x)?j=x:x.nodeType===9&&(j=x.defaultView),T===void 0)return j?j[f]:x[S];j?j.scrollTo(p?j.pageXOffset:T,p?T:j.pageYOffset):x[S]=T},u,y,arguments.length)}}),g.each(["top","left"],function(u,f){g.cssHooks[f]=Ei(I.pixelPosition,function(p,y){if(y)return y=Ci(p,f),jo.test(y)?g(p).position()[f]+"px":y})}),g.each({Height:"height",Width:"width"},function(u,f){g.each({padding:"inner"+u,content:f,"":"outer"+u},function(p,y){g.fn[y]=function(x,S){var T=arguments.length&&(p||typeof x!="boolean"),j=p||(x===!0||S===!0?"margin":"border");return Dn(this,function(L,z,ne){var oe;return B(L)?y.indexOf("outer")===0?L["inner"+u]:L.document.documentElement["client"+u]:L.nodeType===9?(oe=L.documentElement,Math.max(L.body["scroll"+u],oe["scroll"+u],L.body["offset"+u],oe["offset"+u],oe["client"+u])):ne===void 0?g.css(L,z,j):g.style(L,z,ne,j)},f,T?x:void 0,T)}})}),g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(u,f){g.fn[f]=function(p){return this.on(f,p)}}),g.fn.extend({bind:function(u,f,p){return this.on(u,null,f,p)},unbind:function(u,f){return this.off(u,null,f)},delegate:function(u,f,p,y){return this.on(f,u,p,y)},undelegate:function(u,f,p){return arguments.length===1?this.off(u,"**"):this.off(f,u||"**",p)},hover:function(u,f){return this.on("mouseenter",u).on("mouseleave",f||u)}}),g.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(u,f){g.fn[f]=function(p,y){return arguments.length>0?this.on(f,null,p,y):this.trigger(f)}});var ba=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;g.proxy=function(u,f){var p,y,x;if(typeof f=="string"&&(p=u[f],f=u,u=p),!!A(u))return y=a.call(arguments,2),x=function(){return u.apply(f||this,y.concat(a.call(arguments)))},x.guid=u.guid=u.guid||g.guid++,x},g.holdReady=function(u){u?g.readyWait++:g.ready(!0)},g.isArray=Array.isArray,g.parseJSON=JSON.parse,g.nodeName=Z,g.isFunction=A,g.isWindow=B,g.camelCase=jt,g.type=Y,g.now=Date.now,g.isNumeric=function(u){var f=g.type(u);return(f==="number"||f==="string")&&!isNaN(u-parseFloat(u))},g.trim=function(u){return u==null?"":(u+"").replace(ba,"$1")};var Qo=e.jQuery,nn=e.$;return g.noConflict=function(u){return e.$===g&&(e.$=nn),u&&e.jQuery===g&&(e.jQuery=Qo),g},typeof n>"u"&&(e.jQuery=e.$=g),g})}(Uc)),Uc.exports}var yI=mb();const bI=Vs(yI);var wI={exports:{}};/**
|
|
68
|
+
`)}}).get()}});var pl=/%20/g,Xo=/#.*$/,gl=/([?&])_=[^&]*/,ml=/^(.*?):[ \t]*([^\r\n]*)$/mg,vl=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,yl=/^(?:GET|HEAD)$/,bl=/^\/\//,dt={},st={},ga="*/".concat("*"),Jo=k.createElement("a");Jo.href=Xr.href;function ma(u){return function(f,p){typeof f!="string"&&(p=f,f="*");var y,x=0,S=f.toLowerCase().match(Me)||[];if(A(p))for(;y=S[x++];)y[0]==="+"?(y=y.slice(1)||"*",(u[y]=u[y]||[]).unshift(p)):(u[y]=u[y]||[]).push(p)}}function va(u,f,p,y){var x={},S=u===st;function T(j){var L;return x[j]=!0,g.each(u[j]||[],function(z,ne){var oe=ne(f,p,y);if(typeof oe=="string"&&!S&&!x[oe])return f.dataTypes.unshift(oe),T(oe),!1;if(S)return!(L=oe)}),L}return T(f.dataTypes[0])||!x["*"]&&T("*")}function Zo(u,f){var p,y,x=g.ajaxSettings.flatOptions||{};for(p in f)f[p]!==void 0&&((x[p]?u:y||(y={}))[p]=f[p]);return y&&g.extend(!0,u,y),u}function wl(u,f,p){for(var y,x,S,T,j=u.contents,L=u.dataTypes;L[0]==="*";)L.shift(),y===void 0&&(y=u.mimeType||f.getResponseHeader("Content-Type"));if(y){for(x in j)if(j[x]&&j[x].test(y)){L.unshift(x);break}}if(L[0]in p)S=L[0];else{for(x in p){if(!L[0]||u.converters[x+" "+L[0]]){S=x;break}T||(T=x)}S=S||T}if(S)return S!==L[0]&&L.unshift(S),p[S]}function ya(u,f,p,y){var x,S,T,j,L,z={},ne=u.dataTypes.slice();if(ne[1])for(T in u.converters)z[T.toLowerCase()]=u.converters[T];for(S=ne.shift();S;)if(u.responseFields[S]&&(p[u.responseFields[S]]=f),!L&&y&&u.dataFilter&&(f=u.dataFilter(f,u.dataType)),L=S,S=ne.shift(),S){if(S==="*")S=L;else if(L!=="*"&&L!==S){if(T=z[L+" "+S]||z["* "+S],!T){for(x in z)if(j=x.split(" "),j[1]===S&&(T=z[L+" "+j[0]]||z["* "+j[0]],T)){T===!0?T=z[x]:z[x]!==!0&&(S=j[0],ne.unshift(j[1]));break}}if(T!==!0)if(T&&u.throws)f=T(f);else try{f=T(f)}catch(oe){return{state:"parsererror",error:T?oe:"No conversion from "+L+" to "+S}}}}return{state:"success",data:f}}g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Xr.href,type:"GET",isLocal:vl.test(Xr.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ga,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(u,f){return f?Zo(Zo(u,g.ajaxSettings),f):Zo(g.ajaxSettings,u)},ajaxPrefilter:ma(dt),ajaxTransport:ma(st),ajax:function(u,f){typeof u=="object"&&(f=u,u=void 0),f=f||{};var p,y,x,S,T,j,L,z,ne,oe,X=g.ajaxSetup({},f),he=X.context||X,_e=X.context&&(he.nodeType||he.jquery)?g(he):g.event,qe=g.Deferred(),ze=g.Callbacks("once memory"),Pt=X.statusCode||{},bt={},In={},Rn="canceled",et={readyState:0,getResponseHeader:function(tt){var ct;if(L){if(!S)for(S={};ct=ml.exec(x);)S[ct[1].toLowerCase()+" "]=(S[ct[1].toLowerCase()+" "]||[]).concat(ct[2]);ct=S[tt.toLowerCase()+" "]}return ct==null?null:ct.join(", ")},getAllResponseHeaders:function(){return L?x:null},setRequestHeader:function(tt,ct){return L==null&&(tt=In[tt.toLowerCase()]=In[tt.toLowerCase()]||tt,bt[tt]=ct),this},overrideMimeType:function(tt){return L==null&&(X.mimeType=tt),this},statusCode:function(tt){var ct;if(tt)if(L)et.always(tt[et.status]);else for(ct in tt)Pt[ct]=[Pt[ct],tt[ct]];return this},abort:function(tt){var ct=tt||Rn;return p&&p.abort(ct),rr(0,ct),this}};if(qe.promise(et),X.url=((u||X.url||Xr.href)+"").replace(bl,Xr.protocol+"//"),X.type=f.method||f.type||X.method||X.type,X.dataTypes=(X.dataType||"*").toLowerCase().match(Me)||[""],X.crossDomain==null){j=k.createElement("a");try{j.href=X.url,j.href=j.href,X.crossDomain=Jo.protocol+"//"+Jo.host!=j.protocol+"//"+j.host}catch{X.crossDomain=!0}}if(X.data&&X.processData&&typeof X.data!="string"&&(X.data=g.param(X.data,X.traditional)),va(dt,X,f,et),L)return et;z=g.event&&X.global,z&&g.active++===0&&g.event.trigger("ajaxStart"),X.type=X.type.toUpperCase(),X.hasContent=!yl.test(X.type),y=X.url.replace(Xo,""),X.hasContent?X.data&&X.processData&&(X.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(X.data=X.data.replace(pl,"+")):(oe=X.url.slice(y.length),X.data&&(X.processData||typeof X.data=="string")&&(y+=(ao.test(y)?"&":"?")+X.data,delete X.data),X.cache===!1&&(y=y.replace(gl,"$1"),oe=(ao.test(y)?"&":"?")+"_="+Yo.guid+++oe),X.url=y+oe),X.ifModified&&(g.lastModified[y]&&et.setRequestHeader("If-Modified-Since",g.lastModified[y]),g.etag[y]&&et.setRequestHeader("If-None-Match",g.etag[y])),(X.data&&X.hasContent&&X.contentType!==!1||f.contentType)&&et.setRequestHeader("Content-Type",X.contentType),et.setRequestHeader("Accept",X.dataTypes[0]&&X.accepts[X.dataTypes[0]]?X.accepts[X.dataTypes[0]]+(X.dataTypes[0]!=="*"?", "+ga+"; q=0.01":""):X.accepts["*"]);for(ne in X.headers)et.setRequestHeader(ne,X.headers[ne]);if(X.beforeSend&&(X.beforeSend.call(he,et,X)===!1||L))return et.abort();if(Rn="abort",ze.add(X.complete),et.done(X.success),et.fail(X.error),p=va(st,X,f,et),!p)rr(-1,"No Transport");else{if(et.readyState=1,z&&_e.trigger("ajaxSend",[et,X]),L)return et;X.async&&X.timeout>0&&(T=e.setTimeout(function(){et.abort("timeout")},X.timeout));try{L=!1,p.send(bt,rr)}catch(tt){if(L)throw tt;rr(-1,tt)}}function rr(tt,ct,Ti,lo){var mn,wr,rn,Un,ir,Vt=ct;L||(L=!0,T&&e.clearTimeout(T),p=void 0,x=lo||"",et.readyState=tt>0?4:0,mn=tt>=200&&tt<300||tt===304,Ti&&(Un=wl(X,et,Ti)),!mn&&g.inArray("script",X.dataTypes)>-1&&g.inArray("json",X.dataTypes)<0&&(X.converters["text script"]=function(){}),Un=ya(X,Un,et,mn),mn?(X.ifModified&&(ir=et.getResponseHeader("Last-Modified"),ir&&(g.lastModified[y]=ir),ir=et.getResponseHeader("etag"),ir&&(g.etag[y]=ir)),tt===204||X.type==="HEAD"?Vt="nocontent":tt===304?Vt="notmodified":(Vt=Un.state,wr=Un.data,rn=Un.error,mn=!rn)):(rn=Vt,(tt||!Vt)&&(Vt="error",tt<0&&(tt=0))),et.status=tt,et.statusText=(ct||Vt)+"",mn?qe.resolveWith(he,[wr,Vt,et]):qe.rejectWith(he,[et,Vt,rn]),et.statusCode(Pt),Pt=void 0,z&&_e.trigger(mn?"ajaxSuccess":"ajaxError",[et,X,mn?wr:rn]),ze.fireWith(he,[et,Vt]),z&&(_e.trigger("ajaxComplete",[et,X]),--g.active||g.event.trigger("ajaxStop")))}return et},getJSON:function(u,f,p){return g.get(u,f,p,"json")},getScript:function(u,f){return g.get(u,void 0,f,"script")}}),g.each(["get","post"],function(u,f){g[f]=function(p,y,x,S){return A(y)&&(S=S||x,x=y,y=void 0),g.ajax(g.extend({url:p,type:f,dataType:S,data:y,success:x},g.isPlainObject(p)&&p))}}),g.ajaxPrefilter(function(u){var f;for(f in u.headers)f.toLowerCase()==="content-type"&&(u.contentType=u.headers[f]||"")}),g._evalUrl=function(u,f,p){return g.ajax({url:u,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(y){g.globalEval(y,f,p)}})},g.fn.extend({wrapAll:function(u){var f;return this[0]&&(A(u)&&(u=u.call(this[0])),f=g(u,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&f.insertBefore(this[0]),f.map(function(){for(var p=this;p.firstElementChild;)p=p.firstElementChild;return p}).append(this)),this},wrapInner:function(u){return A(u)?this.each(function(f){g(this).wrapInner(u.call(this,f))}):this.each(function(){var f=g(this),p=f.contents();p.length?p.wrapAll(u):f.append(u)})},wrap:function(u){var f=A(u);return this.each(function(p){g(this).wrapAll(f?u.call(this,p):u)})},unwrap:function(u){return this.parent(u).not("body").each(function(){g(this).replaceWith(this.childNodes)}),this}}),g.expr.pseudos.hidden=function(u){return!g.expr.pseudos.visible(u)},g.expr.pseudos.visible=function(u){return!!(u.offsetWidth||u.offsetHeight||u.getClientRects().length)},g.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var xl={0:200,1223:204},yt=g.ajaxSettings.xhr();I.cors=!!yt&&"withCredentials"in yt,I.ajax=yt=!!yt,g.ajaxTransport(function(u){var f,p;if(I.cors||yt&&!u.crossDomain)return{send:function(y,x){var S,T=u.xhr();if(T.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(S in u.xhrFields)T[S]=u.xhrFields[S];u.mimeType&&T.overrideMimeType&&T.overrideMimeType(u.mimeType),!u.crossDomain&&!y["X-Requested-With"]&&(y["X-Requested-With"]="XMLHttpRequest");for(S in y)T.setRequestHeader(S,y[S]);f=function(j){return function(){f&&(f=p=T.onload=T.onerror=T.onabort=T.ontimeout=T.onreadystatechange=null,j==="abort"?T.abort():j==="error"?typeof T.status!="number"?x(0,"error"):x(T.status,T.statusText):x(xl[T.status]||T.status,T.statusText,(T.responseType||"text")!=="text"||typeof T.responseText!="string"?{binary:T.response}:{text:T.responseText},T.getAllResponseHeaders()))}},T.onload=f(),p=T.onerror=T.ontimeout=f("error"),T.onabort!==void 0?T.onabort=p:T.onreadystatechange=function(){T.readyState===4&&e.setTimeout(function(){f&&p()})},f=f("abort");try{T.send(u.hasContent&&u.data||null)}catch(j){if(f)throw j}},abort:function(){f&&f()}}}),g.ajaxPrefilter(function(u){u.crossDomain&&(u.contents.script=!1)}),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(u){return g.globalEval(u),u}}}),g.ajaxPrefilter("script",function(u){u.cache===void 0&&(u.cache=!1),u.crossDomain&&(u.type="GET")}),g.ajaxTransport("script",function(u){if(u.crossDomain||u.scriptAttrs){var f,p;return{send:function(y,x){f=g("<script>").attr(u.scriptAttrs||{}).prop({charset:u.scriptCharset,src:u.url}).on("load error",p=function(S){f.remove(),p=null,S&&x(S.type==="error"?404:200,S.type)}),k.head.appendChild(f[0])},abort:function(){p&&p()}}}});var uo=[],$n=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var u=uo.pop()||g.expando+"_"+Yo.guid++;return this[u]=!0,u}}),g.ajaxPrefilter("json jsonp",function(u,f,p){var y,x,S,T=u.jsonp!==!1&&($n.test(u.url)?"url":typeof u.data=="string"&&(u.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&$n.test(u.data)&&"data");if(T||u.dataTypes[0]==="jsonp")return y=u.jsonpCallback=A(u.jsonpCallback)?u.jsonpCallback():u.jsonpCallback,T?u[T]=u[T].replace($n,"$1"+y):u.jsonp!==!1&&(u.url+=(ao.test(u.url)?"&":"?")+u.jsonp+"="+y),u.converters["script json"]=function(){return S||g.error(y+" was not called"),S[0]},u.dataTypes[0]="json",x=e[y],e[y]=function(){S=arguments},p.always(function(){x===void 0?g(e).removeProp(y):e[y]=x,u[y]&&(u.jsonpCallback=f.jsonpCallback,uo.push(y)),S&&A(x)&&x(S[0]),S=x=void 0}),"script"}),I.createHTMLDocument=function(){var u=k.implementation.createHTMLDocument("").body;return u.innerHTML="<form></form><form></form>",u.childNodes.length===2}(),g.parseHTML=function(u,f,p){if(typeof u!="string")return[];typeof f=="boolean"&&(p=f,f=!1);var y,x,S;return f||(I.createHTMLDocument?(f=k.implementation.createHTMLDocument(""),y=f.createElement("base"),y.href=k.location.href,f.head.appendChild(y)):f=k),x=ve.exec(u),S=!p&&[],x?[f.createElement(x[1])]:(x=Xs([u],f,S),S&&S.length&&g(S).remove(),g.merge([],x.childNodes))},g.fn.load=function(u,f,p){var y,x,S,T=this,j=u.indexOf(" ");return j>-1&&(y=tr(u.slice(j)),u=u.slice(0,j)),A(f)?(p=f,f=void 0):f&&typeof f=="object"&&(x="POST"),T.length>0&&g.ajax({url:u,type:x||"GET",dataType:"html",data:f}).done(function(L){S=arguments,T.html(y?g("<div>").append(g.parseHTML(L)).find(y):L)}).always(p&&function(L,z){T.each(function(){p.apply(this,S||[L.responseText,z,L])})}),this},g.expr.pseudos.animated=function(u){return g.grep(g.timers,function(f){return u===f.elem}).length},g.offset={setOffset:function(u,f,p){var y,x,S,T,j,L,z,ne=g.css(u,"position"),oe=g(u),X={};ne==="static"&&(u.style.position="relative"),j=oe.offset(),S=g.css(u,"top"),L=g.css(u,"left"),z=(ne==="absolute"||ne==="fixed")&&(S+L).indexOf("auto")>-1,z?(y=oe.position(),T=y.top,x=y.left):(T=parseFloat(S)||0,x=parseFloat(L)||0),A(f)&&(f=f.call(u,p,g.extend({},j))),f.top!=null&&(X.top=f.top-j.top+T),f.left!=null&&(X.left=f.left-j.left+x),"using"in f?f.using.call(u,X):oe.css(X)}},g.fn.extend({offset:function(u){if(arguments.length)return u===void 0?this:this.each(function(x){g.offset.setOffset(this,u,x)});var f,p,y=this[0];if(y)return y.getClientRects().length?(f=y.getBoundingClientRect(),p=y.ownerDocument.defaultView,{top:f.top+p.pageYOffset,left:f.left+p.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var u,f,p,y=this[0],x={top:0,left:0};if(g.css(y,"position")==="fixed")f=y.getBoundingClientRect();else{for(f=this.offset(),p=y.ownerDocument,u=y.offsetParent||p.documentElement;u&&(u===p.body||u===p.documentElement)&&g.css(u,"position")==="static";)u=u.parentNode;u&&u!==y&&u.nodeType===1&&(x=g(u).offset(),x.top+=g.css(u,"borderTopWidth",!0),x.left+=g.css(u,"borderLeftWidth",!0))}return{top:f.top-x.top-g.css(y,"marginTop",!0),left:f.left-x.left-g.css(y,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var u=this.offsetParent;u&&g.css(u,"position")==="static";)u=u.offsetParent;return u||Hn})}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(u,f){var p=f==="pageYOffset";g.fn[u]=function(y){return Dn(this,function(x,S,T){var j;if(B(x)?j=x:x.nodeType===9&&(j=x.defaultView),T===void 0)return j?j[f]:x[S];j?j.scrollTo(p?j.pageXOffset:T,p?T:j.pageYOffset):x[S]=T},u,y,arguments.length)}}),g.each(["top","left"],function(u,f){g.cssHooks[f]=Ei(I.pixelPosition,function(p,y){if(y)return y=Ci(p,f),jo.test(y)?g(p).position()[f]+"px":y})}),g.each({Height:"height",Width:"width"},function(u,f){g.each({padding:"inner"+u,content:f,"":"outer"+u},function(p,y){g.fn[y]=function(x,S){var T=arguments.length&&(p||typeof x!="boolean"),j=p||(x===!0||S===!0?"margin":"border");return Dn(this,function(L,z,ne){var oe;return B(L)?y.indexOf("outer")===0?L["inner"+u]:L.document.documentElement["client"+u]:L.nodeType===9?(oe=L.documentElement,Math.max(L.body["scroll"+u],oe["scroll"+u],L.body["offset"+u],oe["offset"+u],oe["client"+u])):ne===void 0?g.css(L,z,j):g.style(L,z,ne,j)},f,T?x:void 0,T)}})}),g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(u,f){g.fn[f]=function(p){return this.on(f,p)}}),g.fn.extend({bind:function(u,f,p){return this.on(u,null,f,p)},unbind:function(u,f){return this.off(u,null,f)},delegate:function(u,f,p,y){return this.on(f,u,p,y)},undelegate:function(u,f,p){return arguments.length===1?this.off(u,"**"):this.off(f,u||"**",p)},hover:function(u,f){return this.on("mouseenter",u).on("mouseleave",f||u)}}),g.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(u,f){g.fn[f]=function(p,y){return arguments.length>0?this.on(f,null,p,y):this.trigger(f)}});var ba=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;g.proxy=function(u,f){var p,y,x;if(typeof f=="string"&&(p=u[f],f=u,u=p),!!A(u))return y=a.call(arguments,2),x=function(){return u.apply(f||this,y.concat(a.call(arguments)))},x.guid=u.guid=u.guid||g.guid++,x},g.holdReady=function(u){u?g.readyWait++:g.ready(!0)},g.isArray=Array.isArray,g.parseJSON=JSON.parse,g.nodeName=Z,g.isFunction=A,g.isWindow=B,g.camelCase=jt,g.type=Y,g.now=Date.now,g.isNumeric=function(u){var f=g.type(u);return(f==="number"||f==="string")&&!isNaN(u-parseFloat(u))},g.trim=function(u){return u==null?"":(u+"").replace(ba,"$1")};var Qo=e.jQuery,nn=e.$;return g.noConflict=function(u){return e.$===g&&(e.$=nn),u&&e.jQuery===g&&(e.jQuery=Qo),g},typeof n>"u"&&(e.jQuery=e.$=g),g})})(pb);var gb=pb.exports;const vI=Vs(gb);var yI={exports:{}};/**
|
|
69
69
|
* @version: 3.1
|
|
70
70
|
* @author: Dan Grossman http://www.dangrossman.info/
|
|
71
71
|
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
|
|
72
72
|
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
|
73
73
|
* @website: http://www.daterangepicker.com/
|
|
74
|
-
*/(function(t){(function(e,n){if(t.exports){var i=typeof window<"u"?window.jQuery:void 0;i||(i=mb(),i.fn||(i.fn={}));var o=typeof window<"u"&&typeof window.moment<"u"?window.moment:iC;t.exports=n(o,i)}else e.daterangepicker=n(e.moment,e.jQuery)})(Cn,function(e,n){var i=function(o,a,l){if(this.parentEl="body",this.element=n(o),this.startDate=e().startOf("day"),this.endDate=e().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=e().subtract(100,"year").format("YYYY"),this.maxYear=e().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:e.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:e.weekdaysMin(),monthNames:e.monthsShort(),firstDay:e.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},(typeof a!="object"||a===null)&&(a={}),a=n.extend(this.element.data(),a),typeof a.template!="string"&&!(a.template instanceof n)&&(a.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=a.parentEl&&n(a.parentEl).length?n(a.parentEl):n(this.parentEl),this.container=n(a.template).appendTo(this.parentEl),typeof a.locale=="object"&&(typeof a.locale.direction=="string"&&(this.locale.direction=a.locale.direction),typeof a.locale.format=="string"&&(this.locale.format=a.locale.format),typeof a.locale.separator=="string"&&(this.locale.separator=a.locale.separator),typeof a.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=a.locale.daysOfWeek.slice()),typeof a.locale.monthNames=="object"&&(this.locale.monthNames=a.locale.monthNames.slice()),typeof a.locale.firstDay=="number"&&(this.locale.firstDay=a.locale.firstDay),typeof a.locale.applyLabel=="string"&&(this.locale.applyLabel=a.locale.applyLabel),typeof a.locale.cancelLabel=="string"&&(this.locale.cancelLabel=a.locale.cancelLabel),typeof a.locale.weekLabel=="string"&&(this.locale.weekLabel=a.locale.weekLabel),typeof a.locale.customRangeLabel=="string")){var d=document.createElement("textarea");d.innerHTML=a.locale.customRangeLabel;var h=d.value;this.locale.customRangeLabel=h}if(this.container.addClass(this.locale.direction),typeof a.startDate=="string"&&(this.startDate=e(a.startDate,this.locale.format)),typeof a.endDate=="string"&&(this.endDate=e(a.endDate,this.locale.format)),typeof a.minDate=="string"&&(this.minDate=e(a.minDate,this.locale.format)),typeof a.maxDate=="string"&&(this.maxDate=e(a.maxDate,this.locale.format)),typeof a.startDate=="object"&&(this.startDate=e(a.startDate)),typeof a.endDate=="object"&&(this.endDate=e(a.endDate)),typeof a.minDate=="object"&&(this.minDate=e(a.minDate)),typeof a.maxDate=="object"&&(this.maxDate=e(a.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),typeof a.applyButtonClasses=="string"&&(this.applyButtonClasses=a.applyButtonClasses),typeof a.applyClass=="string"&&(this.applyButtonClasses=a.applyClass),typeof a.cancelButtonClasses=="string"&&(this.cancelButtonClasses=a.cancelButtonClasses),typeof a.cancelClass=="string"&&(this.cancelButtonClasses=a.cancelClass),typeof a.maxSpan=="object"&&(this.maxSpan=a.maxSpan),typeof a.dateLimit=="object"&&(this.maxSpan=a.dateLimit),typeof a.opens=="string"&&(this.opens=a.opens),typeof a.drops=="string"&&(this.drops=a.drops),typeof a.showWeekNumbers=="boolean"&&(this.showWeekNumbers=a.showWeekNumbers),typeof a.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=a.showISOWeekNumbers),typeof a.buttonClasses=="string"&&(this.buttonClasses=a.buttonClasses),typeof a.buttonClasses=="object"&&(this.buttonClasses=a.buttonClasses.join(" ")),typeof a.showDropdowns=="boolean"&&(this.showDropdowns=a.showDropdowns),typeof a.minYear=="number"&&(this.minYear=a.minYear),typeof a.maxYear=="number"&&(this.maxYear=a.maxYear),typeof a.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=a.showCustomRangeLabel),typeof a.singleDatePicker=="boolean"&&(this.singleDatePicker=a.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof a.timePicker=="boolean"&&(this.timePicker=a.timePicker),typeof a.timePickerSeconds=="boolean"&&(this.timePickerSeconds=a.timePickerSeconds),typeof a.timePickerIncrement=="number"&&(this.timePickerIncrement=a.timePickerIncrement),typeof a.timePicker24Hour=="boolean"&&(this.timePicker24Hour=a.timePicker24Hour),typeof a.autoApply=="boolean"&&(this.autoApply=a.autoApply),typeof a.autoUpdateInput=="boolean"&&(this.autoUpdateInput=a.autoUpdateInput),typeof a.linkedCalendars=="boolean"&&(this.linkedCalendars=a.linkedCalendars),typeof a.isInvalidDate=="function"&&(this.isInvalidDate=a.isInvalidDate),typeof a.isCustomDate=="function"&&(this.isCustomDate=a.isCustomDate),typeof a.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=a.alwaysShowCalendars),this.locale.firstDay!=0)for(var m=this.locale.firstDay;m>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),m--;var b,w,_;if(typeof a.startDate>"u"&&typeof a.endDate>"u"&&n(this.element).is(":text")){var E=n(this.element).val(),I=E.split(this.locale.separator);b=w=null,I.length==2?(b=e(I[0],this.locale.format),w=e(I[1],this.locale.format)):this.singleDatePicker&&E!==""&&(b=e(E,this.locale.format),w=e(E,this.locale.format)),b!==null&&w!==null&&(this.setStartDate(b),this.setEndDate(w))}if(typeof a.ranges=="object"){for(_ in a.ranges){typeof a.ranges[_][0]=="string"?b=e(a.ranges[_][0],this.locale.format):b=e(a.ranges[_][0]),typeof a.ranges[_][1]=="string"?w=e(a.ranges[_][1],this.locale.format):w=e(a.ranges[_][1]),this.minDate&&b.isBefore(this.minDate)&&(b=this.minDate.clone());var A=this.maxDate;if(this.maxSpan&&A&&b.clone().add(this.maxSpan).isAfter(A)&&(A=b.clone().add(this.maxSpan)),A&&w.isAfter(A)&&(w=A.clone()),!(this.minDate&&w.isBefore(this.minDate,this.timepicker?"minute":"day")||A&&b.isAfter(A,this.timepicker?"minute":"day"))){var d=document.createElement("textarea");d.innerHTML=_;var h=d.value;this.ranges[h]=[b,w]}}var B="<ul>";for(_ in this.ranges)B+='<li data-range-key="'+_+'">'+_+"</li>";this.showCustomRangeLabel&&(B+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),B+="</ul>",this.container.find(".ranges").prepend(B)}typeof l=="function"&&(this.callback=l),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),typeof a.ranges=="object"&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(typeof a.ranges>"u"&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",n.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"keyup.daterangepicker":n.proxy(this.elementChanged,this),"keydown.daterangepicker":n.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",n.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",n.proxy(this.toggle,this))),this.updateElement()};return i.prototype={constructor:i,setStartDate:function(o){typeof o=="string"&&(this.startDate=e(o,this.locale.format)),typeof o=="object"&&(this.startDate=e(o)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(o){typeof o=="string"&&(this.endDate=e(o,this.locale.format)),typeof o=="object"&&(this.endDate=e(o)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())?this.rightCalendar.month=this.endDate.clone().date(2):this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var o,a,l;if(this.endDate){if(o=parseInt(this.container.find(".left .hourselect").val(),10),a=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(a)&&(a=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),l=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var d=this.container.find(".left .ampmselect").val();d==="PM"&&o<12&&(o+=12),d==="AM"&&o===12&&(o=0)}}else if(o=parseInt(this.container.find(".right .hourselect").val(),10),a=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(a)&&(a=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),l=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var d=this.container.find(".right .ampmselect").val();d==="PM"&&o<12&&(o+=12),d==="AM"&&o===12&&(o=0)}this.leftCalendar.month.hour(o).minute(a).second(l),this.rightCalendar.month.hour(o).minute(a).second(l)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(o){var k=o=="left"?this.leftCalendar:this.rightCalendar,a=k.month.month(),l=k.month.year(),d=k.month.hour(),h=k.month.minute(),m=k.month.second(),b=e([l,a]).daysInMonth(),w=e([l,a,1]),_=e([l,a,b]),E=e(w).subtract(1,"month").month(),I=e(w).subtract(1,"month").year(),A=e([I,E]).daysInMonth(),B=w.day(),k=[];k.firstDay=w,k.lastDay=_;for(var F=0;F<6;F++)k[F]=[];var N=A-B+this.locale.firstDay+1;N>A&&(N-=7),B==this.locale.firstDay&&(N=A-6);for(var Y=e([I,E,N,12,h,m]),$,ie,F=0,$=0,ie=0;F<42;F++,$++,Y=e(Y).add(24,"hour"))F>0&&$%7===0&&($=0,ie++),k[ie][$]=Y.clone().hour(d).minute(h).second(m),Y.hour(12),this.minDate&&k[ie][$].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&k[ie][$].isBefore(this.minDate)&&o=="left"&&(k[ie][$]=this.minDate.clone()),this.maxDate&&k[ie][$].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&k[ie][$].isAfter(this.maxDate)&&o=="right"&&(k[ie][$]=this.maxDate.clone());o=="left"?this.leftCalendar.calendar=k:this.rightCalendar.calendar=k;var g=o=="left"?this.minDate:this.startDate,ee=this.maxDate;o=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var Z='<table class="table-condensed">';Z+="<thead>",Z+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(Z+="<th></th>"),(!g||g.isBefore(k.firstDay))&&(!this.linkedCalendars||o=="left")?Z+='<th class="prev available"><span></span></th>':Z+="<th></th>";var we=this.locale.monthNames[k[1][1].month()]+k[1][1].format(" YYYY");if(this.showDropdowns){for(var He=k[1][1].month(),De=k[1][1].year(),Te=ee&&ee.year()||this.maxYear,Le=g&&g.year()||this.minYear,G=De==Le,re=De==Te,de='<select class="monthselect">',pe=0;pe<12;pe++)(!G||g&&pe>=g.month())&&(!re||ee&&pe<=ee.month())?de+="<option value='"+pe+"'"+(pe===He?" selected='selected'":"")+">"+this.locale.monthNames[pe]+"</option>":de+="<option value='"+pe+"'"+(pe===He?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[pe]+"</option>";de+="</select>";for(var Ae='<select class="yearselect">',Q=Le;Q<=Te;Q++)Ae+='<option value="'+Q+'"'+(Q===De?' selected="selected"':"")+">"+Q+"</option>";Ae+="</select>",we=de+Ae}if(Z+='<th colspan="5" class="month">'+we+"</th>",(!ee||ee.isAfter(k.lastDay))&&(!this.linkedCalendars||o=="right"||this.singleDatePicker)?Z+='<th class="next available"><span></span></th>':Z+="<th></th>",Z+="</tr>",Z+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(Z+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Ce,Ie){Z+="<th>"+Ie+"</th>"}),Z+="</tr>",Z+="</thead>",Z+="<tbody>",this.endDate==null&&this.maxSpan){var ae=this.startDate.clone().add(this.maxSpan).endOf("day");(!ee||ae.isBefore(ee))&&(ee=ae)}for(var ie=0;ie<6;ie++){Z+="<tr>",this.showWeekNumbers?Z+='<td class="week">'+k[ie][0].week()+"</td>":this.showISOWeekNumbers&&(Z+='<td class="week">'+k[ie][0].isoWeek()+"</td>");for(var $=0;$<7;$++){var ve=[];k[ie][$].isSame(new Date,"day")&&ve.push("today"),k[ie][$].isoWeekday()>5&&ve.push("weekend"),k[ie][$].month()!=k[1][1].month()&&ve.push("off","ends"),this.minDate&&k[ie][$].isBefore(this.minDate,"day")&&ve.push("off","disabled"),ee&&k[ie][$].isAfter(ee,"day")&&ve.push("off","disabled"),this.isInvalidDate(k[ie][$])&&ve.push("off","disabled"),k[ie][$].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&ve.push("active","start-date"),this.endDate!=null&&k[ie][$].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&ve.push("active","end-date"),this.endDate!=null&&k[ie][$]>this.startDate&&k[ie][$]<this.endDate&&ve.push("in-range");var me=this.isCustomDate(k[ie][$]);me!==!1&&(typeof me=="string"?ve.push(me):Array.prototype.push.apply(ve,me));for(var ye="",Pe=!1,F=0;F<ve.length;F++)ye+=ve[F]+" ",ve[F]=="disabled"&&(Pe=!0);Pe||(ye+="available"),Z+='<td class="'+ye.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ie+"c"+$+'">'+k[ie][$].date()+"</td>"}Z+="</tr>"}Z+="</tbody>",Z+="</table>",this.container.find(".drp-calendar."+o+" .calendar-table").html(Z)},renderTimePicker:function(o){if(!(o=="right"&&!this.endDate)){var a,l,d,h=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(h=this.startDate.clone().add(this.maxSpan)),o=="left")l=this.startDate.clone(),d=this.minDate;else if(o=="right"){l=this.endDate.clone(),d=this.startDate;var m=this.container.find(".drp-calendar.right .calendar-time");if(m.html()!=""&&(l.hour(isNaN(l.hour())?m.find(".hourselect option:selected").val():l.hour()),l.minute(isNaN(l.minute())?m.find(".minuteselect option:selected").val():l.minute()),l.second(isNaN(l.second())?m.find(".secondselect option:selected").val():l.second()),!this.timePicker24Hour)){var b=m.find(".ampmselect option:selected").val();b==="PM"&&l.hour()<12&&l.hour(l.hour()+12),b==="AM"&&l.hour()===12&&l.hour(0)}l.isBefore(this.startDate)&&(l=this.startDate.clone()),h&&l.isAfter(h)&&(l=h.clone())}a='<select class="hourselect">';for(var w=this.timePicker24Hour?0:1,_=this.timePicker24Hour?23:12,E=w;E<=_;E++){var I=E;this.timePicker24Hour||(I=l.hour()>=12?E==12?12:E+12:E==12?0:E);var A=l.clone().hour(I),B=!1;d&&A.minute(59).isBefore(d)&&(B=!0),h&&A.minute(0).isAfter(h)&&(B=!0),I==l.hour()&&!B?a+='<option value="'+E+'" selected="selected">'+E+"</option>":B?a+='<option value="'+E+'" disabled="disabled" class="disabled">'+E+"</option>":a+='<option value="'+E+'">'+E+"</option>"}a+="</select> ",a+=': <select class="minuteselect">';for(var E=0;E<60;E+=this.timePickerIncrement){var k=E<10?"0"+E:E,A=l.clone().minute(E),B=!1;d&&A.second(59).isBefore(d)&&(B=!0),h&&A.second(0).isAfter(h)&&(B=!0),l.minute()==E&&!B?a+='<option value="'+E+'" selected="selected">'+k+"</option>":B?a+='<option value="'+E+'" disabled="disabled" class="disabled">'+k+"</option>":a+='<option value="'+E+'">'+k+"</option>"}if(a+="</select> ",this.timePickerSeconds){a+=': <select class="secondselect">';for(var E=0;E<60;E++){var k=E<10?"0"+E:E,A=l.clone().second(E),B=!1;d&&A.isBefore(d)&&(B=!0),h&&A.isAfter(h)&&(B=!0),l.second()==E&&!B?a+='<option value="'+E+'" selected="selected">'+k+"</option>":B?a+='<option value="'+E+'" disabled="disabled" class="disabled">'+k+"</option>":a+='<option value="'+E+'">'+k+"</option>"}a+="</select> "}if(!this.timePicker24Hour){a+='<select class="ampmselect">';var F="",N="";d&&l.clone().hour(12).minute(0).second(0).isBefore(d)&&(F=' disabled="disabled" class="disabled"'),h&&l.clone().hour(0).minute(0).second(0).isAfter(h)&&(N=' disabled="disabled" class="disabled"'),l.hour()>=12?a+='<option value="AM"'+F+'>AM</option><option value="PM" selected="selected"'+N+">PM</option>":a+='<option value="AM" selected="selected"'+F+'>AM</option><option value="PM"'+N+">PM</option>",a+="</select>"}this.container.find(".drp-calendar."+o+" .calendar-time").html(a)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var o={top:0,left:0},a,l=this.drops,d=n(window).width();switch(this.parentEl.is("body")||(o={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},d=this.parentEl[0].clientWidth+this.parentEl.offset().left),l){case"auto":a=this.element.offset().top+this.element.outerHeight()-o.top,a+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(a=this.element.offset().top-this.container.outerHeight()-o.top,l="up");break;case"up":a=this.element.offset().top-this.container.outerHeight()-o.top;break;default:a=this.element.offset().top+this.element.outerHeight()-o.top;break}this.container.css({top:0,left:0,right:"auto"});var h=this.container.outerWidth();if(this.container.toggleClass("drop-up",l=="up"),this.opens=="left"){var m=d-this.element.offset().left-this.element.outerWidth();h+m>n(window).width()?this.container.css({top:a,right:"auto",left:9}):this.container.css({top:a,right:m,left:"auto"})}else if(this.opens=="center"){var b=this.element.offset().left-o.left+this.element.outerWidth()/2-h/2;b<0?this.container.css({top:a,right:"auto",left:9}):b+h>n(window).width()?this.container.css({top:a,left:"auto",right:0}):this.container.css({top:a,left:b,right:"auto"})}else{var b=this.element.offset().left-o.left;b+h>n(window).width()?this.container.css({top:a,left:"auto",right:0}):this.container.css({top:a,left:b,right:"auto"})}},show:function(o){this.isShowing||(this._outsideClickProxy=n.proxy(function(a){this.outsideClick(a)},this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),n(window).on("resize.daterangepicker",n.proxy(function(a){this.move(a)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(o){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))&&this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),n(document).off(".daterangepicker"),n(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(o){this.isShowing?this.hide():this.show()},outsideClick:function(o){var a=n(o.target);o.type=="focusin"||a.closest(this.element).length||a.closest(this.container).length||a.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(o){var a=o.target.getAttribute("data-range-key");if(this.chosenLabel=a,a==this.locale.customRangeLabel)this.showCalendars();else{var l=this.ranges[a];this.startDate=l[0],this.endDate=l[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(o){var a=n(o.target).parents(".drp-calendar");a.hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(o){var a=n(o.target).parents(".drp-calendar");a.hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(o){if(n(o.target).hasClass("available")){var a=n(o.target).attr("data-title"),l=a.substr(1,1),d=a.substr(3,1),h=n(o.target).parents(".drp-calendar"),m=h.hasClass("left")?this.leftCalendar.calendar[l][d]:this.rightCalendar.calendar[l][d],b=this.leftCalendar,w=this.rightCalendar,_=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(E,I){if(!n(I).hasClass("week")){var A=n(I).attr("data-title"),B=A.substr(1,1),k=A.substr(3,1),F=n(I).parents(".drp-calendar"),N=F.hasClass("left")?b.calendar[B][k]:w.calendar[B][k];N.isAfter(_)&&N.isBefore(m)||N.isSame(m,"day")?n(I).addClass("in-range"):n(I).removeClass("in-range")}})}},clickDate:function(o){if(n(o.target).hasClass("available")){var a=n(o.target).attr("data-title"),l=a.substr(1,1),d=a.substr(3,1),h=n(o.target).parents(".drp-calendar"),m=h.hasClass("left")?this.leftCalendar.calendar[l][d]:this.rightCalendar.calendar[l][d];if(this.endDate||m.isBefore(this.startDate,"day")){if(this.timePicker){var b=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var w=this.container.find(".left .ampmselect").val();w==="PM"&&b<12&&(b+=12),w==="AM"&&b===12&&(b=0)}var _=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(_)&&(_=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;m=m.clone().hour(b).minute(_).second(E)}this.endDate=null,this.setStartDate(m.clone())}else if(!this.endDate&&m.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var b=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var w=this.container.find(".right .ampmselect").val();w==="PM"&&b<12&&(b+=12),w==="AM"&&b===12&&(b=0)}var _=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(_)&&(_=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;m=m.clone().hour(b).minute(_).second(E)}this.setEndDate(m.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),o.stopPropagation()}},calculateChosenLabel:function(){var o=!0,a=0;for(var l in this.ranges){if(this.timePicker){var d=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(d)==this.ranges[l][0].format(d)&&this.endDate.format(d)==this.ranges[l][1].format(d)){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+a+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[l][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[l][1].format("YYYY-MM-DD")){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+a+")").addClass("active").attr("data-range-key");break}a++}o&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(o){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(o){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(o){var a=n(o.target).closest(".drp-calendar").hasClass("left"),l=a?"left":"right",d=this.container.find(".drp-calendar."+l),h=parseInt(d.find(".monthselect").val(),10),m=d.find(".yearselect").val();a||(m<this.startDate.year()||m==this.startDate.year()&&h<this.startDate.month())&&(h=this.startDate.month(),m=this.startDate.year()),this.minDate&&(m<this.minDate.year()||m==this.minDate.year()&&h<this.minDate.month())&&(h=this.minDate.month(),m=this.minDate.year()),this.maxDate&&(m>this.maxDate.year()||m==this.maxDate.year()&&h>this.maxDate.month())&&(h=this.maxDate.month(),m=this.maxDate.year()),a?(this.leftCalendar.month.month(h).year(m),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(h).year(m),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(o){var a=n(o.target).closest(".drp-calendar"),l=a.hasClass("left"),d=parseInt(a.find(".hourselect").val(),10),h=parseInt(a.find(".minuteselect").val(),10);isNaN(h)&&(h=parseInt(a.find(".minuteselect option:last").val(),10));var m=this.timePickerSeconds?parseInt(a.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var b=a.find(".ampmselect").val();b==="PM"&&d<12&&(d+=12),b==="AM"&&d===12&&(d=0)}if(l){var w=this.startDate.clone();w.hour(d),w.minute(h),w.second(m),this.setStartDate(w),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==w.format("YYYY-MM-DD")&&this.endDate.isBefore(w)&&this.setEndDate(w.clone())}else if(this.endDate){var _=this.endDate.clone();_.hour(d),_.minute(h),_.second(m),this.setEndDate(_)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var o=this.element.val().split(this.locale.separator),a=null,l=null;o.length===2&&(a=e(o[0],this.locale.format),l=e(o[1],this.locale.format)),(this.singleDatePicker||a===null||l===null)&&(a=e(this.element.val(),this.locale.format),l=a),!(!a.isValid()||!l.isValid())&&(this.setStartDate(a),this.setEndDate(l),this.updateView())}},keydown:function(o){(o.keyCode===9||o.keyCode===13)&&this.hide(),o.keyCode===27&&(o.preventDefault(),o.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var o=this.startDate.format(this.locale.format);this.singleDatePicker||(o+=this.locale.separator+this.endDate.format(this.locale.format)),o!==this.element.val()&&this.element.val(o).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(o,a){var l=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,o);return this.each(function(){var d=n(this);d.data("daterangepicker")&&d.data("daterangepicker").remove(),d.data("daterangepicker",new i(d,l,a))}),this},i})})(wI);var Cf=function(t,e){return Cf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},Cf(t,e)};function xI(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Cf(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var SI=function(t){xI(e,t);function e(n){var i=t.call(this,n)||this;return i.ref=null,i.$picker=null,i}return e.prototype.componentDidMount=function(){var n=this;this.$picker=bI(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(i){var o,a=i.charAt(0).toLowerCase()+i.slice(1);(o=n.$picker)===null||o===void 0||o.on(a+".daterangepicker",n.makeEventHandler("on"+i))})},e.prototype.componentWillUnmount=function(){var n,i;(i=(n=this.$picker)===null||n===void 0?void 0:n.data("daterangepicker"))===null||i===void 0||i.remove()},e.prototype.handleCallback=function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];typeof this.props.onCallback=="function"&&(n=this.props).onCallback.apply(n,i)},e.prototype.makeEventHandler=function(n){var i=this,o=this.props.onEvent;return function(a,l){typeof o=="function"&&o(a,l),typeof i.props[n]=="function"&&i.props[n](a,l)}},e.prototype.setStartDate=function(n){var i,o;(o=(i=this.$picker)===null||i===void 0?void 0:i.data("daterangepicker"))===null||o===void 0||o.setStartDate(n)},e.prototype.setEndDate=function(n){var i,o;(o=(i=this.$picker)===null||i===void 0?void 0:i.data("daterangepicker"))===null||o===void 0||o.setEndDate(n)},e.prototype.render=function(){var n=this,i=pt.Children.only(this.props.children);return pt.cloneElement(i,{ref:function(o){return n.ref=o}})},e}(pt.Component);ko.styled(t=>be.jsx(ko.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"&.MuiSwitch-root":{margin:0,marginRight:8},"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:fn.primary300,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:"#E9E9EA",opacity:1}}));/**
|
|
74
|
+
*/(function(t){(function(e,n){if(t.exports){var i=typeof window<"u"?window.jQuery:void 0;i||(i=gb,i.fn||(i.fn={}));var o=typeof window<"u"&&typeof window.moment<"u"?window.moment:rC;t.exports=n(o,i)}else e.daterangepicker=n(e.moment,e.jQuery)})(Cn,function(e,n){var i=function(o,a,l){if(this.parentEl="body",this.element=n(o),this.startDate=e().startOf("day"),this.endDate=e().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=e().subtract(100,"year").format("YYYY"),this.maxYear=e().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:e.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:e.weekdaysMin(),monthNames:e.monthsShort(),firstDay:e.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},(typeof a!="object"||a===null)&&(a={}),a=n.extend(this.element.data(),a),typeof a.template!="string"&&!(a.template instanceof n)&&(a.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=a.parentEl&&n(a.parentEl).length?n(a.parentEl):n(this.parentEl),this.container=n(a.template).appendTo(this.parentEl),typeof a.locale=="object"&&(typeof a.locale.direction=="string"&&(this.locale.direction=a.locale.direction),typeof a.locale.format=="string"&&(this.locale.format=a.locale.format),typeof a.locale.separator=="string"&&(this.locale.separator=a.locale.separator),typeof a.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=a.locale.daysOfWeek.slice()),typeof a.locale.monthNames=="object"&&(this.locale.monthNames=a.locale.monthNames.slice()),typeof a.locale.firstDay=="number"&&(this.locale.firstDay=a.locale.firstDay),typeof a.locale.applyLabel=="string"&&(this.locale.applyLabel=a.locale.applyLabel),typeof a.locale.cancelLabel=="string"&&(this.locale.cancelLabel=a.locale.cancelLabel),typeof a.locale.weekLabel=="string"&&(this.locale.weekLabel=a.locale.weekLabel),typeof a.locale.customRangeLabel=="string")){var d=document.createElement("textarea");d.innerHTML=a.locale.customRangeLabel;var h=d.value;this.locale.customRangeLabel=h}if(this.container.addClass(this.locale.direction),typeof a.startDate=="string"&&(this.startDate=e(a.startDate,this.locale.format)),typeof a.endDate=="string"&&(this.endDate=e(a.endDate,this.locale.format)),typeof a.minDate=="string"&&(this.minDate=e(a.minDate,this.locale.format)),typeof a.maxDate=="string"&&(this.maxDate=e(a.maxDate,this.locale.format)),typeof a.startDate=="object"&&(this.startDate=e(a.startDate)),typeof a.endDate=="object"&&(this.endDate=e(a.endDate)),typeof a.minDate=="object"&&(this.minDate=e(a.minDate)),typeof a.maxDate=="object"&&(this.maxDate=e(a.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),typeof a.applyButtonClasses=="string"&&(this.applyButtonClasses=a.applyButtonClasses),typeof a.applyClass=="string"&&(this.applyButtonClasses=a.applyClass),typeof a.cancelButtonClasses=="string"&&(this.cancelButtonClasses=a.cancelButtonClasses),typeof a.cancelClass=="string"&&(this.cancelButtonClasses=a.cancelClass),typeof a.maxSpan=="object"&&(this.maxSpan=a.maxSpan),typeof a.dateLimit=="object"&&(this.maxSpan=a.dateLimit),typeof a.opens=="string"&&(this.opens=a.opens),typeof a.drops=="string"&&(this.drops=a.drops),typeof a.showWeekNumbers=="boolean"&&(this.showWeekNumbers=a.showWeekNumbers),typeof a.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=a.showISOWeekNumbers),typeof a.buttonClasses=="string"&&(this.buttonClasses=a.buttonClasses),typeof a.buttonClasses=="object"&&(this.buttonClasses=a.buttonClasses.join(" ")),typeof a.showDropdowns=="boolean"&&(this.showDropdowns=a.showDropdowns),typeof a.minYear=="number"&&(this.minYear=a.minYear),typeof a.maxYear=="number"&&(this.maxYear=a.maxYear),typeof a.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=a.showCustomRangeLabel),typeof a.singleDatePicker=="boolean"&&(this.singleDatePicker=a.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof a.timePicker=="boolean"&&(this.timePicker=a.timePicker),typeof a.timePickerSeconds=="boolean"&&(this.timePickerSeconds=a.timePickerSeconds),typeof a.timePickerIncrement=="number"&&(this.timePickerIncrement=a.timePickerIncrement),typeof a.timePicker24Hour=="boolean"&&(this.timePicker24Hour=a.timePicker24Hour),typeof a.autoApply=="boolean"&&(this.autoApply=a.autoApply),typeof a.autoUpdateInput=="boolean"&&(this.autoUpdateInput=a.autoUpdateInput),typeof a.linkedCalendars=="boolean"&&(this.linkedCalendars=a.linkedCalendars),typeof a.isInvalidDate=="function"&&(this.isInvalidDate=a.isInvalidDate),typeof a.isCustomDate=="function"&&(this.isCustomDate=a.isCustomDate),typeof a.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=a.alwaysShowCalendars),this.locale.firstDay!=0)for(var m=this.locale.firstDay;m>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),m--;var b,w,_;if(typeof a.startDate>"u"&&typeof a.endDate>"u"&&n(this.element).is(":text")){var E=n(this.element).val(),I=E.split(this.locale.separator);b=w=null,I.length==2?(b=e(I[0],this.locale.format),w=e(I[1],this.locale.format)):this.singleDatePicker&&E!==""&&(b=e(E,this.locale.format),w=e(E,this.locale.format)),b!==null&&w!==null&&(this.setStartDate(b),this.setEndDate(w))}if(typeof a.ranges=="object"){for(_ in a.ranges){typeof a.ranges[_][0]=="string"?b=e(a.ranges[_][0],this.locale.format):b=e(a.ranges[_][0]),typeof a.ranges[_][1]=="string"?w=e(a.ranges[_][1],this.locale.format):w=e(a.ranges[_][1]),this.minDate&&b.isBefore(this.minDate)&&(b=this.minDate.clone());var A=this.maxDate;if(this.maxSpan&&A&&b.clone().add(this.maxSpan).isAfter(A)&&(A=b.clone().add(this.maxSpan)),A&&w.isAfter(A)&&(w=A.clone()),!(this.minDate&&w.isBefore(this.minDate,this.timepicker?"minute":"day")||A&&b.isAfter(A,this.timepicker?"minute":"day"))){var d=document.createElement("textarea");d.innerHTML=_;var h=d.value;this.ranges[h]=[b,w]}}var B="<ul>";for(_ in this.ranges)B+='<li data-range-key="'+_+'">'+_+"</li>";this.showCustomRangeLabel&&(B+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),B+="</ul>",this.container.find(".ranges").prepend(B)}typeof l=="function"&&(this.callback=l),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),typeof a.ranges=="object"&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(typeof a.ranges>"u"&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",n.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"keyup.daterangepicker":n.proxy(this.elementChanged,this),"keydown.daterangepicker":n.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",n.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",n.proxy(this.toggle,this))),this.updateElement()};return i.prototype={constructor:i,setStartDate:function(o){typeof o=="string"&&(this.startDate=e(o,this.locale.format)),typeof o=="object"&&(this.startDate=e(o)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(o){typeof o=="string"&&(this.endDate=e(o,this.locale.format)),typeof o=="object"&&(this.endDate=e(o)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())?this.rightCalendar.month=this.endDate.clone().date(2):this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var o,a,l;if(this.endDate){if(o=parseInt(this.container.find(".left .hourselect").val(),10),a=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(a)&&(a=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),l=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var d=this.container.find(".left .ampmselect").val();d==="PM"&&o<12&&(o+=12),d==="AM"&&o===12&&(o=0)}}else if(o=parseInt(this.container.find(".right .hourselect").val(),10),a=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(a)&&(a=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),l=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var d=this.container.find(".right .ampmselect").val();d==="PM"&&o<12&&(o+=12),d==="AM"&&o===12&&(o=0)}this.leftCalendar.month.hour(o).minute(a).second(l),this.rightCalendar.month.hour(o).minute(a).second(l)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(o){var k=o=="left"?this.leftCalendar:this.rightCalendar,a=k.month.month(),l=k.month.year(),d=k.month.hour(),h=k.month.minute(),m=k.month.second(),b=e([l,a]).daysInMonth(),w=e([l,a,1]),_=e([l,a,b]),E=e(w).subtract(1,"month").month(),I=e(w).subtract(1,"month").year(),A=e([I,E]).daysInMonth(),B=w.day(),k=[];k.firstDay=w,k.lastDay=_;for(var F=0;F<6;F++)k[F]=[];var N=A-B+this.locale.firstDay+1;N>A&&(N-=7),B==this.locale.firstDay&&(N=A-6);for(var Y=e([I,E,N,12,h,m]),$,ie,F=0,$=0,ie=0;F<42;F++,$++,Y=e(Y).add(24,"hour"))F>0&&$%7===0&&($=0,ie++),k[ie][$]=Y.clone().hour(d).minute(h).second(m),Y.hour(12),this.minDate&&k[ie][$].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&k[ie][$].isBefore(this.minDate)&&o=="left"&&(k[ie][$]=this.minDate.clone()),this.maxDate&&k[ie][$].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&k[ie][$].isAfter(this.maxDate)&&o=="right"&&(k[ie][$]=this.maxDate.clone());o=="left"?this.leftCalendar.calendar=k:this.rightCalendar.calendar=k;var g=o=="left"?this.minDate:this.startDate,ee=this.maxDate;o=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var Z='<table class="table-condensed">';Z+="<thead>",Z+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(Z+="<th></th>"),(!g||g.isBefore(k.firstDay))&&(!this.linkedCalendars||o=="left")?Z+='<th class="prev available"><span></span></th>':Z+="<th></th>";var we=this.locale.monthNames[k[1][1].month()]+k[1][1].format(" YYYY");if(this.showDropdowns){for(var He=k[1][1].month(),Ae=k[1][1].year(),Te=ee&&ee.year()||this.maxYear,Le=g&&g.year()||this.minYear,G=Ae==Le,re=Ae==Te,de='<select class="monthselect">',pe=0;pe<12;pe++)(!G||g&&pe>=g.month())&&(!re||ee&&pe<=ee.month())?de+="<option value='"+pe+"'"+(pe===He?" selected='selected'":"")+">"+this.locale.monthNames[pe]+"</option>":de+="<option value='"+pe+"'"+(pe===He?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[pe]+"</option>";de+="</select>";for(var ke='<select class="yearselect">',Q=Le;Q<=Te;Q++)ke+='<option value="'+Q+'"'+(Q===Ae?' selected="selected"':"")+">"+Q+"</option>";ke+="</select>",we=de+ke}if(Z+='<th colspan="5" class="month">'+we+"</th>",(!ee||ee.isAfter(k.lastDay))&&(!this.linkedCalendars||o=="right"||this.singleDatePicker)?Z+='<th class="next available"><span></span></th>':Z+="<th></th>",Z+="</tr>",Z+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(Z+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Ce,Ie){Z+="<th>"+Ie+"</th>"}),Z+="</tr>",Z+="</thead>",Z+="<tbody>",this.endDate==null&&this.maxSpan){var ae=this.startDate.clone().add(this.maxSpan).endOf("day");(!ee||ae.isBefore(ee))&&(ee=ae)}for(var ie=0;ie<6;ie++){Z+="<tr>",this.showWeekNumbers?Z+='<td class="week">'+k[ie][0].week()+"</td>":this.showISOWeekNumbers&&(Z+='<td class="week">'+k[ie][0].isoWeek()+"</td>");for(var $=0;$<7;$++){var ve=[];k[ie][$].isSame(new Date,"day")&&ve.push("today"),k[ie][$].isoWeekday()>5&&ve.push("weekend"),k[ie][$].month()!=k[1][1].month()&&ve.push("off","ends"),this.minDate&&k[ie][$].isBefore(this.minDate,"day")&&ve.push("off","disabled"),ee&&k[ie][$].isAfter(ee,"day")&&ve.push("off","disabled"),this.isInvalidDate(k[ie][$])&&ve.push("off","disabled"),k[ie][$].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&ve.push("active","start-date"),this.endDate!=null&&k[ie][$].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&ve.push("active","end-date"),this.endDate!=null&&k[ie][$]>this.startDate&&k[ie][$]<this.endDate&&ve.push("in-range");var me=this.isCustomDate(k[ie][$]);me!==!1&&(typeof me=="string"?ve.push(me):Array.prototype.push.apply(ve,me));for(var ye="",Pe=!1,F=0;F<ve.length;F++)ye+=ve[F]+" ",ve[F]=="disabled"&&(Pe=!0);Pe||(ye+="available"),Z+='<td class="'+ye.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ie+"c"+$+'">'+k[ie][$].date()+"</td>"}Z+="</tr>"}Z+="</tbody>",Z+="</table>",this.container.find(".drp-calendar."+o+" .calendar-table").html(Z)},renderTimePicker:function(o){if(!(o=="right"&&!this.endDate)){var a,l,d,h=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(h=this.startDate.clone().add(this.maxSpan)),o=="left")l=this.startDate.clone(),d=this.minDate;else if(o=="right"){l=this.endDate.clone(),d=this.startDate;var m=this.container.find(".drp-calendar.right .calendar-time");if(m.html()!=""&&(l.hour(isNaN(l.hour())?m.find(".hourselect option:selected").val():l.hour()),l.minute(isNaN(l.minute())?m.find(".minuteselect option:selected").val():l.minute()),l.second(isNaN(l.second())?m.find(".secondselect option:selected").val():l.second()),!this.timePicker24Hour)){var b=m.find(".ampmselect option:selected").val();b==="PM"&&l.hour()<12&&l.hour(l.hour()+12),b==="AM"&&l.hour()===12&&l.hour(0)}l.isBefore(this.startDate)&&(l=this.startDate.clone()),h&&l.isAfter(h)&&(l=h.clone())}a='<select class="hourselect">';for(var w=this.timePicker24Hour?0:1,_=this.timePicker24Hour?23:12,E=w;E<=_;E++){var I=E;this.timePicker24Hour||(I=l.hour()>=12?E==12?12:E+12:E==12?0:E);var A=l.clone().hour(I),B=!1;d&&A.minute(59).isBefore(d)&&(B=!0),h&&A.minute(0).isAfter(h)&&(B=!0),I==l.hour()&&!B?a+='<option value="'+E+'" selected="selected">'+E+"</option>":B?a+='<option value="'+E+'" disabled="disabled" class="disabled">'+E+"</option>":a+='<option value="'+E+'">'+E+"</option>"}a+="</select> ",a+=': <select class="minuteselect">';for(var E=0;E<60;E+=this.timePickerIncrement){var k=E<10?"0"+E:E,A=l.clone().minute(E),B=!1;d&&A.second(59).isBefore(d)&&(B=!0),h&&A.second(0).isAfter(h)&&(B=!0),l.minute()==E&&!B?a+='<option value="'+E+'" selected="selected">'+k+"</option>":B?a+='<option value="'+E+'" disabled="disabled" class="disabled">'+k+"</option>":a+='<option value="'+E+'">'+k+"</option>"}if(a+="</select> ",this.timePickerSeconds){a+=': <select class="secondselect">';for(var E=0;E<60;E++){var k=E<10?"0"+E:E,A=l.clone().second(E),B=!1;d&&A.isBefore(d)&&(B=!0),h&&A.isAfter(h)&&(B=!0),l.second()==E&&!B?a+='<option value="'+E+'" selected="selected">'+k+"</option>":B?a+='<option value="'+E+'" disabled="disabled" class="disabled">'+k+"</option>":a+='<option value="'+E+'">'+k+"</option>"}a+="</select> "}if(!this.timePicker24Hour){a+='<select class="ampmselect">';var F="",N="";d&&l.clone().hour(12).minute(0).second(0).isBefore(d)&&(F=' disabled="disabled" class="disabled"'),h&&l.clone().hour(0).minute(0).second(0).isAfter(h)&&(N=' disabled="disabled" class="disabled"'),l.hour()>=12?a+='<option value="AM"'+F+'>AM</option><option value="PM" selected="selected"'+N+">PM</option>":a+='<option value="AM" selected="selected"'+F+'>AM</option><option value="PM"'+N+">PM</option>",a+="</select>"}this.container.find(".drp-calendar."+o+" .calendar-time").html(a)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var o={top:0,left:0},a,l=this.drops,d=n(window).width();switch(this.parentEl.is("body")||(o={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},d=this.parentEl[0].clientWidth+this.parentEl.offset().left),l){case"auto":a=this.element.offset().top+this.element.outerHeight()-o.top,a+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(a=this.element.offset().top-this.container.outerHeight()-o.top,l="up");break;case"up":a=this.element.offset().top-this.container.outerHeight()-o.top;break;default:a=this.element.offset().top+this.element.outerHeight()-o.top;break}this.container.css({top:0,left:0,right:"auto"});var h=this.container.outerWidth();if(this.container.toggleClass("drop-up",l=="up"),this.opens=="left"){var m=d-this.element.offset().left-this.element.outerWidth();h+m>n(window).width()?this.container.css({top:a,right:"auto",left:9}):this.container.css({top:a,right:m,left:"auto"})}else if(this.opens=="center"){var b=this.element.offset().left-o.left+this.element.outerWidth()/2-h/2;b<0?this.container.css({top:a,right:"auto",left:9}):b+h>n(window).width()?this.container.css({top:a,left:"auto",right:0}):this.container.css({top:a,left:b,right:"auto"})}else{var b=this.element.offset().left-o.left;b+h>n(window).width()?this.container.css({top:a,left:"auto",right:0}):this.container.css({top:a,left:b,right:"auto"})}},show:function(o){this.isShowing||(this._outsideClickProxy=n.proxy(function(a){this.outsideClick(a)},this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),n(window).on("resize.daterangepicker",n.proxy(function(a){this.move(a)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(o){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))&&this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),n(document).off(".daterangepicker"),n(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(o){this.isShowing?this.hide():this.show()},outsideClick:function(o){var a=n(o.target);o.type=="focusin"||a.closest(this.element).length||a.closest(this.container).length||a.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(o){var a=o.target.getAttribute("data-range-key");if(this.chosenLabel=a,a==this.locale.customRangeLabel)this.showCalendars();else{var l=this.ranges[a];this.startDate=l[0],this.endDate=l[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(o){var a=n(o.target).parents(".drp-calendar");a.hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(o){var a=n(o.target).parents(".drp-calendar");a.hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(o){if(n(o.target).hasClass("available")){var a=n(o.target).attr("data-title"),l=a.substr(1,1),d=a.substr(3,1),h=n(o.target).parents(".drp-calendar"),m=h.hasClass("left")?this.leftCalendar.calendar[l][d]:this.rightCalendar.calendar[l][d],b=this.leftCalendar,w=this.rightCalendar,_=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(E,I){if(!n(I).hasClass("week")){var A=n(I).attr("data-title"),B=A.substr(1,1),k=A.substr(3,1),F=n(I).parents(".drp-calendar"),N=F.hasClass("left")?b.calendar[B][k]:w.calendar[B][k];N.isAfter(_)&&N.isBefore(m)||N.isSame(m,"day")?n(I).addClass("in-range"):n(I).removeClass("in-range")}})}},clickDate:function(o){if(n(o.target).hasClass("available")){var a=n(o.target).attr("data-title"),l=a.substr(1,1),d=a.substr(3,1),h=n(o.target).parents(".drp-calendar"),m=h.hasClass("left")?this.leftCalendar.calendar[l][d]:this.rightCalendar.calendar[l][d];if(this.endDate||m.isBefore(this.startDate,"day")){if(this.timePicker){var b=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var w=this.container.find(".left .ampmselect").val();w==="PM"&&b<12&&(b+=12),w==="AM"&&b===12&&(b=0)}var _=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(_)&&(_=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;m=m.clone().hour(b).minute(_).second(E)}this.endDate=null,this.setStartDate(m.clone())}else if(!this.endDate&&m.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var b=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var w=this.container.find(".right .ampmselect").val();w==="PM"&&b<12&&(b+=12),w==="AM"&&b===12&&(b=0)}var _=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(_)&&(_=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;m=m.clone().hour(b).minute(_).second(E)}this.setEndDate(m.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),o.stopPropagation()}},calculateChosenLabel:function(){var o=!0,a=0;for(var l in this.ranges){if(this.timePicker){var d=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(d)==this.ranges[l][0].format(d)&&this.endDate.format(d)==this.ranges[l][1].format(d)){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+a+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[l][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[l][1].format("YYYY-MM-DD")){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+a+")").addClass("active").attr("data-range-key");break}a++}o&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(o){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(o){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(o){var a=n(o.target).closest(".drp-calendar").hasClass("left"),l=a?"left":"right",d=this.container.find(".drp-calendar."+l),h=parseInt(d.find(".monthselect").val(),10),m=d.find(".yearselect").val();a||(m<this.startDate.year()||m==this.startDate.year()&&h<this.startDate.month())&&(h=this.startDate.month(),m=this.startDate.year()),this.minDate&&(m<this.minDate.year()||m==this.minDate.year()&&h<this.minDate.month())&&(h=this.minDate.month(),m=this.minDate.year()),this.maxDate&&(m>this.maxDate.year()||m==this.maxDate.year()&&h>this.maxDate.month())&&(h=this.maxDate.month(),m=this.maxDate.year()),a?(this.leftCalendar.month.month(h).year(m),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(h).year(m),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(o){var a=n(o.target).closest(".drp-calendar"),l=a.hasClass("left"),d=parseInt(a.find(".hourselect").val(),10),h=parseInt(a.find(".minuteselect").val(),10);isNaN(h)&&(h=parseInt(a.find(".minuteselect option:last").val(),10));var m=this.timePickerSeconds?parseInt(a.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var b=a.find(".ampmselect").val();b==="PM"&&d<12&&(d+=12),b==="AM"&&d===12&&(d=0)}if(l){var w=this.startDate.clone();w.hour(d),w.minute(h),w.second(m),this.setStartDate(w),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==w.format("YYYY-MM-DD")&&this.endDate.isBefore(w)&&this.setEndDate(w.clone())}else if(this.endDate){var _=this.endDate.clone();_.hour(d),_.minute(h),_.second(m),this.setEndDate(_)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var o=this.element.val().split(this.locale.separator),a=null,l=null;o.length===2&&(a=e(o[0],this.locale.format),l=e(o[1],this.locale.format)),(this.singleDatePicker||a===null||l===null)&&(a=e(this.element.val(),this.locale.format),l=a),!(!a.isValid()||!l.isValid())&&(this.setStartDate(a),this.setEndDate(l),this.updateView())}},keydown:function(o){(o.keyCode===9||o.keyCode===13)&&this.hide(),o.keyCode===27&&(o.preventDefault(),o.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var o=this.startDate.format(this.locale.format);this.singleDatePicker||(o+=this.locale.separator+this.endDate.format(this.locale.format)),o!==this.element.val()&&this.element.val(o).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(o,a){var l=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,o);return this.each(function(){var d=n(this);d.data("daterangepicker")&&d.data("daterangepicker").remove(),d.data("daterangepicker",new i(d,l,a))}),this},i})})(yI);var _f=function(t,e){return _f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},_f(t,e)};function bI(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");_f(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var wI=function(t){bI(e,t);function e(n){var i=t.call(this,n)||this;return i.ref=null,i.$picker=null,i}return e.prototype.componentDidMount=function(){var n=this;this.$picker=vI(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(i){var o,a=i.charAt(0).toLowerCase()+i.slice(1);(o=n.$picker)===null||o===void 0||o.on(a+".daterangepicker",n.makeEventHandler("on"+i))})},e.prototype.componentWillUnmount=function(){var n,i;(i=(n=this.$picker)===null||n===void 0?void 0:n.data("daterangepicker"))===null||i===void 0||i.remove()},e.prototype.handleCallback=function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];typeof this.props.onCallback=="function"&&(n=this.props).onCallback.apply(n,i)},e.prototype.makeEventHandler=function(n){var i=this,o=this.props.onEvent;return function(a,l){typeof o=="function"&&o(a,l),typeof i.props[n]=="function"&&i.props[n](a,l)}},e.prototype.setStartDate=function(n){var i,o;(o=(i=this.$picker)===null||i===void 0?void 0:i.data("daterangepicker"))===null||o===void 0||o.setStartDate(n)},e.prototype.setEndDate=function(n){var i,o;(o=(i=this.$picker)===null||i===void 0?void 0:i.data("daterangepicker"))===null||o===void 0||o.setEndDate(n)},e.prototype.render=function(){var n=this,i=pt.Children.only(this.props.children);return pt.cloneElement(i,{ref:function(o){return n.ref=o}})},e}(pt.Component);ko.styled(t=>be.jsx(ko.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"&.MuiSwitch-root":{margin:0,marginRight:8},"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:fn.primary300,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:"#E9E9EA",opacity:1}}));/**
|
|
75
75
|
* @license
|
|
76
76
|
* Copyright 2017 Google LLC
|
|
77
77
|
*
|
|
@@ -101,7 +101,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
101
101
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
102
102
|
* See the License for the specific language governing permissions and
|
|
103
103
|
* limitations under the License.
|
|
104
|
-
*/const
|
|
104
|
+
*/const mb=function(t){const e=[];let n=0;for(let i=0;i<t.length;i++){let o=t.charCodeAt(i);o<128?e[n++]=o:o<2048?(e[n++]=o>>6|192,e[n++]=o&63|128):(o&64512)===55296&&i+1<t.length&&(t.charCodeAt(i+1)&64512)===56320?(o=65536+((o&1023)<<10)+(t.charCodeAt(++i)&1023),e[n++]=o>>18|240,e[n++]=o>>12&63|128,e[n++]=o>>6&63|128,e[n++]=o&63|128):(e[n++]=o>>12|224,e[n++]=o>>6&63|128,e[n++]=o&63|128)}return e},xI=function(t){const e=[];let n=0,i=0;for(;n<t.length;){const o=t[n++];if(o<128)e[i++]=String.fromCharCode(o);else if(o>191&&o<224){const a=t[n++];e[i++]=String.fromCharCode((o&31)<<6|a&63)}else if(o>239&&o<365){const a=t[n++],l=t[n++],d=t[n++],h=((o&7)<<18|(a&63)<<12|(l&63)<<6|d&63)-65536;e[i++]=String.fromCharCode(55296+(h>>10)),e[i++]=String.fromCharCode(56320+(h&1023))}else{const a=t[n++],l=t[n++];e[i++]=String.fromCharCode((o&15)<<12|(a&63)<<6|l&63)}}return e.join("")},vb={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let o=0;o<t.length;o+=3){const a=t[o],l=o+1<t.length,d=l?t[o+1]:0,h=o+2<t.length,m=h?t[o+2]:0,b=a>>2,w=(a&3)<<4|d>>4;let _=(d&15)<<2|m>>6,E=m&63;h||(E=64,l||(_=64)),i.push(n[b],n[w],n[_],n[E])}return i.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(mb(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):xI(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let o=0;o<t.length;){const a=n[t.charAt(o++)],d=o<t.length?n[t.charAt(o)]:0;++o;const m=o<t.length?n[t.charAt(o)]:64;++o;const w=o<t.length?n[t.charAt(o)]:64;if(++o,a==null||d==null||m==null||w==null)throw new SI;const _=a<<2|d>>4;if(i.push(_),m!==64){const E=d<<4&240|m>>2;if(i.push(E),w!==64){const I=m<<6&192|w;i.push(I)}}}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class SI extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const _I=function(t){const e=mb(t);return vb.encodeByteArray(e,!0)},yb=function(t){return _I(t).replace(/\./g,"")},CI=function(t){try{return vb.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
|
|
105
105
|
* @license
|
|
106
106
|
* Copyright 2022 Google LLC
|
|
107
107
|
*
|
|
@@ -116,7 +116,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
116
116
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
117
117
|
* See the License for the specific language governing permissions and
|
|
118
118
|
* limitations under the License.
|
|
119
|
-
*/function
|
|
119
|
+
*/function EI(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
|
|
120
120
|
* @license
|
|
121
121
|
* Copyright 2022 Google LLC
|
|
122
122
|
*
|
|
@@ -131,7 +131,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
131
131
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
132
132
|
* See the License for the specific language governing permissions and
|
|
133
133
|
* limitations under the License.
|
|
134
|
-
*/const
|
|
134
|
+
*/const TI=()=>EI().__FIREBASE_DEFAULTS__,OI=()=>{if(typeof process>"u"||typeof process.env>"u")return;const t=process.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},PI=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&CI(t[1]);return e&&JSON.parse(e)},AI=()=>{try{return TI()||OI()||PI()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},bb=()=>{var t;return(t=AI())===null||t===void 0?void 0:t.config};/**
|
|
135
135
|
* @license
|
|
136
136
|
* Copyright 2017 Google LLC
|
|
137
137
|
*
|
|
@@ -146,7 +146,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
146
146
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
147
147
|
* See the License for the specific language governing permissions and
|
|
148
148
|
* limitations under the License.
|
|
149
|
-
*/class
|
|
149
|
+
*/class kI{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,i)=>{n?this.reject(n):this.resolve(i),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,i))}}}function wb(){try{return typeof indexedDB=="object"}catch{return!1}}function xb(){return new Promise((t,e)=>{try{let n=!0;const i="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(i);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(i),t(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var a;e(((a=o.error)===null||a===void 0?void 0:a.message)||"")}}catch(n){e(n)}})}function DI(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
|
150
150
|
* @license
|
|
151
151
|
* Copyright 2017 Google LLC
|
|
152
152
|
*
|
|
@@ -161,7 +161,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
161
161
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
162
162
|
* See the License for the specific language governing permissions and
|
|
163
163
|
* limitations under the License.
|
|
164
|
-
*/const
|
|
164
|
+
*/const II="FirebaseError";class Lo extends Error{constructor(e,n,i){super(n),this.code=e,this.customData=i,this.name=II,Object.setPrototypeOf(this,Lo.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Ju.prototype.create)}}class Ju{constructor(e,n,i){this.service=e,this.serviceName=n,this.errors=i}create(e,...n){const i=n[0]||{},o=`${this.service}/${e}`,a=this.errors[e],l=a?RI(a,i):"Error",d=`${this.serviceName}: ${l} (${o}).`;return new Lo(o,d,i)}}function RI(t,e){return t.replace(LI,(n,i)=>{const o=e[i];return o!=null?String(o):`<${i}?>`})}const LI=/\{\$([^}]+)}/g;function Cf(t,e){if(t===e)return!0;const n=Object.keys(t),i=Object.keys(e);for(const o of n){if(!i.includes(o))return!1;const a=t[o],l=e[o];if(Tm(a)&&Tm(l)){if(!Cf(a,l))return!1}else if(a!==l)return!1}for(const o of i)if(!n.includes(o))return!1;return!0}function Tm(t){return t!==null&&typeof t=="object"}/**
|
|
165
165
|
* @license
|
|
166
166
|
* Copyright 2021 Google LLC
|
|
167
167
|
*
|
|
@@ -176,7 +176,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
176
176
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
177
177
|
* See the License for the specific language governing permissions and
|
|
178
178
|
* limitations under the License.
|
|
179
|
-
*/function
|
|
179
|
+
*/function sd(t){return t&&t._delegate?t._delegate:t}class yi{constructor(e,n,i){this.name=e,this.instanceFactory=n,this.type=i,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/**
|
|
180
180
|
* @license
|
|
181
181
|
* Copyright 2019 Google LLC
|
|
182
182
|
*
|
|
@@ -206,7 +206,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
206
206
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
207
207
|
* See the License for the specific language governing permissions and
|
|
208
208
|
* limitations under the License.
|
|
209
|
-
*/class
|
|
209
|
+
*/class MI{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const i=new kI;if(this.instancesDeferred.set(n,i),this.isInitialized(n)||this.shouldAutoInitialize())try{const o=this.getOrInitializeService({instanceIdentifier:n});o&&i.resolve(o)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const i=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),o=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(i)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:i})}catch(a){if(o)return null;throw a}else{if(o)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(jI(e))try{this.getOrInitializeService({instanceIdentifier:Wi})}catch{}for(const[n,i]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(n);try{const a=this.getOrInitializeService({instanceIdentifier:o});i.resolve(a)}catch{}}}}clearInstance(e=Wi){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=Wi){return this.instances.has(e)}getOptions(e=Wi){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,i=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(i))throw Error(`${this.name}(${i}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const o=this.getOrInitializeService({instanceIdentifier:i,options:n});for(const[a,l]of this.instancesDeferred.entries()){const d=this.normalizeInstanceIdentifier(a);i===d&&l.resolve(o)}return o}onInit(e,n){var i;const o=this.normalizeInstanceIdentifier(n),a=(i=this.onInitCallbacks.get(o))!==null&&i!==void 0?i:new Set;a.add(e),this.onInitCallbacks.set(o,a);const l=this.instances.get(o);return l&&e(l,o),()=>{a.delete(e)}}invokeOnInitCallbacks(e,n){const i=this.onInitCallbacks.get(n);if(i)for(const o of i)try{o(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let i=this.instances.get(e);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:NI(e),options:n}),this.instances.set(e,i),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(i,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,i)}catch{}return i||null}normalizeInstanceIdentifier(e=Wi){return this.component?this.component.multipleInstances?e:Wi:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function NI(t){return t===Wi?void 0:t}function jI(t){return t.instantiationMode==="EAGER"}/**
|
|
210
210
|
* @license
|
|
211
211
|
* Copyright 2019 Google LLC
|
|
212
212
|
*
|
|
@@ -221,7 +221,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
221
221
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
222
222
|
* See the License for the specific language governing permissions and
|
|
223
223
|
* limitations under the License.
|
|
224
|
-
*/class
|
|
224
|
+
*/class BI{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new MI(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
225
225
|
* @license
|
|
226
226
|
* Copyright 2017 Google LLC
|
|
227
227
|
*
|
|
@@ -236,7 +236,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
236
236
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
237
237
|
* See the License for the specific language governing permissions and
|
|
238
238
|
* limitations under the License.
|
|
239
|
-
*/var mt;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(mt||(mt={}));const
|
|
239
|
+
*/var mt;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(mt||(mt={}));const FI={debug:mt.DEBUG,verbose:mt.VERBOSE,info:mt.INFO,warn:mt.WARN,error:mt.ERROR,silent:mt.SILENT},VI=mt.INFO,WI={[mt.DEBUG]:"log",[mt.VERBOSE]:"log",[mt.INFO]:"info",[mt.WARN]:"warn",[mt.ERROR]:"error"},HI=(t,e,...n)=>{if(e<t.logLevel)return;const i=new Date().toISOString(),o=WI[e];if(o)console[o](`[${i}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class $I{constructor(e){this.name=e,this._logLevel=VI,this._logHandler=HI,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in mt))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?FI[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,mt.DEBUG,...e),this._logHandler(this,mt.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,mt.VERBOSE,...e),this._logHandler(this,mt.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,mt.INFO,...e),this._logHandler(this,mt.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,mt.WARN,...e),this._logHandler(this,mt.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,mt.ERROR,...e),this._logHandler(this,mt.ERROR,...e)}}const UI=(t,e)=>e.some(n=>t instanceof n);let Om,Pm;function zI(){return Om||(Om=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function qI(){return Pm||(Pm=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Sb=new WeakMap,Ef=new WeakMap,_b=new WeakMap,Uc=new WeakMap,ad=new WeakMap;function YI(t){const e=new Promise((n,i)=>{const o=()=>{t.removeEventListener("success",a),t.removeEventListener("error",l)},a=()=>{n(Fr(t.result)),o()},l=()=>{i(t.error),o()};t.addEventListener("success",a),t.addEventListener("error",l)});return e.then(n=>{n instanceof IDBCursor&&Sb.set(n,t)}).catch(()=>{}),ad.set(e,t),e}function GI(t){if(Ef.has(t))return;const e=new Promise((n,i)=>{const o=()=>{t.removeEventListener("complete",a),t.removeEventListener("error",l),t.removeEventListener("abort",l)},a=()=>{n(),o()},l=()=>{i(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",a),t.addEventListener("error",l),t.addEventListener("abort",l)});Ef.set(t,e)}let Tf={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Ef.get(t);if(e==="objectStoreNames")return t.objectStoreNames||_b.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Fr(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function KI(t){Tf=t(Tf)}function XI(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const i=t.call(zc(this),e,...n);return _b.set(i,e.sort?e.sort():[e]),Fr(i)}:qI().includes(t)?function(...e){return t.apply(zc(this),e),Fr(Sb.get(this))}:function(...e){return Fr(t.apply(zc(this),e))}}function JI(t){return typeof t=="function"?XI(t):(t instanceof IDBTransaction&&GI(t),UI(t,zI())?new Proxy(t,Tf):t)}function Fr(t){if(t instanceof IDBRequest)return YI(t);if(Uc.has(t))return Uc.get(t);const e=JI(t);return e!==t&&(Uc.set(t,e),ad.set(e,t)),e}const zc=t=>ad.get(t);function Zu(t,e,{blocked:n,upgrade:i,blocking:o,terminated:a}={}){const l=indexedDB.open(t,e),d=Fr(l);return i&&l.addEventListener("upgradeneeded",h=>{i(Fr(l.result),h.oldVersion,h.newVersion,Fr(l.transaction),h)}),n&&l.addEventListener("blocked",h=>n(h.oldVersion,h.newVersion,h)),d.then(h=>{a&&h.addEventListener("close",()=>a()),o&&h.addEventListener("versionchange",m=>o(m.oldVersion,m.newVersion,m))}).catch(()=>{}),d}function qc(t,{blocked:e}={}){const n=indexedDB.deleteDatabase(t);return e&&n.addEventListener("blocked",i=>e(i.oldVersion,i)),Fr(n).then(()=>{})}const ZI=["get","getKey","getAll","getAllKeys","count"],QI=["put","add","delete","clear"],Yc=new Map;function Am(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Yc.get(e))return Yc.get(e);const n=e.replace(/FromIndex$/,""),i=e!==n,o=QI.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(o||ZI.includes(n)))return;const a=async function(l,...d){const h=this.transaction(l,o?"readwrite":"readonly");let m=h.store;return i&&(m=m.index(d.shift())),(await Promise.all([m[n](...d),o&&h.done]))[0]};return Yc.set(e,a),a}KI(t=>({...t,get:(e,n,i)=>Am(e,n)||t.get(e,n,i),has:(e,n)=>!!Am(e,n)||t.has(e,n)}));/**
|
|
240
240
|
* @license
|
|
241
241
|
* Copyright 2019 Google LLC
|
|
242
242
|
*
|
|
@@ -251,7 +251,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
251
251
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
252
252
|
* See the License for the specific language governing permissions and
|
|
253
253
|
* limitations under the License.
|
|
254
|
-
*/class
|
|
254
|
+
*/class eR{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(tR(n)){const i=n.getImmediate();return`${i.library}/${i.version}`}else return null}).filter(n=>n).join(" ")}}function tR(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const Of="@firebase/app",km="0.9.28";/**
|
|
255
255
|
* @license
|
|
256
256
|
* Copyright 2019 Google LLC
|
|
257
257
|
*
|
|
@@ -266,7 +266,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
266
266
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
267
267
|
* See the License for the specific language governing permissions and
|
|
268
268
|
* limitations under the License.
|
|
269
|
-
*/const qi=new
|
|
269
|
+
*/const qi=new $I("@firebase/app"),nR="@firebase/app-compat",rR="@firebase/analytics-compat",iR="@firebase/analytics",oR="@firebase/app-check-compat",sR="@firebase/app-check",aR="@firebase/auth",uR="@firebase/auth-compat",lR="@firebase/database",cR="@firebase/database-compat",fR="@firebase/functions",dR="@firebase/functions-compat",hR="@firebase/installations",pR="@firebase/installations-compat",gR="@firebase/messaging",mR="@firebase/messaging-compat",vR="@firebase/performance",yR="@firebase/performance-compat",bR="@firebase/remote-config",wR="@firebase/remote-config-compat",xR="@firebase/storage",SR="@firebase/storage-compat",_R="@firebase/firestore",CR="@firebase/firestore-compat",ER="firebase";/**
|
|
270
270
|
* @license
|
|
271
271
|
* Copyright 2019 Google LLC
|
|
272
272
|
*
|
|
@@ -281,7 +281,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
281
281
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
282
282
|
* See the License for the specific language governing permissions and
|
|
283
283
|
* limitations under the License.
|
|
284
|
-
*/const
|
|
284
|
+
*/const Pf="[DEFAULT]",TR={[Of]:"fire-core",[nR]:"fire-core-compat",[iR]:"fire-analytics",[rR]:"fire-analytics-compat",[sR]:"fire-app-check",[oR]:"fire-app-check-compat",[aR]:"fire-auth",[uR]:"fire-auth-compat",[lR]:"fire-rtdb",[cR]:"fire-rtdb-compat",[fR]:"fire-fn",[dR]:"fire-fn-compat",[hR]:"fire-iid",[pR]:"fire-iid-compat",[gR]:"fire-fcm",[mR]:"fire-fcm-compat",[vR]:"fire-perf",[yR]:"fire-perf-compat",[bR]:"fire-rc",[wR]:"fire-rc-compat",[xR]:"fire-gcs",[SR]:"fire-gcs-compat",[_R]:"fire-fst",[CR]:"fire-fst-compat","fire-js":"fire-js",[ER]:"fire-js-all"};/**
|
|
285
285
|
* @license
|
|
286
286
|
* Copyright 2019 Google LLC
|
|
287
287
|
*
|
|
@@ -296,7 +296,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
296
296
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
297
297
|
* See the License for the specific language governing permissions and
|
|
298
298
|
* limitations under the License.
|
|
299
|
-
*/const Bu=new Map,
|
|
299
|
+
*/const Bu=new Map,Af=new Map;function OR(t,e){try{t.container.addComponent(e)}catch(n){qi.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function Yi(t){const e=t.name;if(Af.has(e))return qi.debug(`There were multiple attempts to register component ${e}.`),!1;Af.set(e,t);for(const n of Bu.values())OR(n,t);return!0}function ud(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/**
|
|
300
300
|
* @license
|
|
301
301
|
* Copyright 2019 Google LLC
|
|
302
302
|
*
|
|
@@ -311,7 +311,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
311
311
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
312
312
|
* See the License for the specific language governing permissions and
|
|
313
313
|
* limitations under the License.
|
|
314
|
-
*/const
|
|
314
|
+
*/const PR={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},hi=new Ju("app","Firebase",PR);/**
|
|
315
315
|
* @license
|
|
316
316
|
* Copyright 2019 Google LLC
|
|
317
317
|
*
|
|
@@ -326,7 +326,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
326
326
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
327
327
|
* See the License for the specific language governing permissions and
|
|
328
328
|
* limitations under the License.
|
|
329
|
-
*/class
|
|
329
|
+
*/class AR{constructor(e,n,i){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=i,this.container.addComponent(new yi("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw hi.create("app-deleted",{appName:this._name})}}function Cb(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const i=Object.assign({name:Pf,automaticDataCollectionEnabled:!1},e),o=i.name;if(typeof o!="string"||!o)throw hi.create("bad-app-name",{appName:String(o)});if(n||(n=bb()),!n)throw hi.create("no-options");const a=Bu.get(o);if(a){if(Cf(n,a.options)&&Cf(i,a.config))return a;throw hi.create("duplicate-app",{appName:o})}const l=new BI(o);for(const h of Af.values())l.addComponent(h);const d=new AR(n,i,l);return Bu.set(o,d),d}function kR(t=Pf){const e=Bu.get(t);if(!e&&t===Pf&&bb())return Cb();if(!e)throw hi.create("no-app",{appName:t});return e}function pi(t,e,n){var i;let o=(i=TR[t])!==null&&i!==void 0?i:t;n&&(o+=`-${n}`);const a=o.match(/\s|\//),l=e.match(/\s|\//);if(a||l){const d=[`Unable to register library "${o}" with version "${e}":`];a&&d.push(`library name "${o}" contains illegal characters (whitespace or "/")`),a&&l&&d.push("and"),l&&d.push(`version name "${e}" contains illegal characters (whitespace or "/")`),qi.warn(d.join(" "));return}Yi(new yi(`${o}-version`,()=>({library:o,version:e}),"VERSION"))}/**
|
|
330
330
|
* @license
|
|
331
331
|
* Copyright 2021 Google LLC
|
|
332
332
|
*
|
|
@@ -341,7 +341,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
341
341
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
342
342
|
* See the License for the specific language governing permissions and
|
|
343
343
|
* limitations under the License.
|
|
344
|
-
*/const
|
|
344
|
+
*/const DR="firebase-heartbeat-database",IR=1,js="firebase-heartbeat-store";let Gc=null;function Eb(){return Gc||(Gc=Zu(DR,IR,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(js)}catch(n){console.warn(n)}}}}).catch(t=>{throw hi.create("idb-open",{originalErrorMessage:t.message})})),Gc}async function RR(t){try{const n=(await Eb()).transaction(js),i=await n.objectStore(js).get(Tb(t));return await n.done,i}catch(e){if(e instanceof Lo)qi.warn(e.message);else{const n=hi.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});qi.warn(n.message)}}}async function Dm(t,e){try{const i=(await Eb()).transaction(js,"readwrite");await i.objectStore(js).put(e,Tb(t)),await i.done}catch(n){if(n instanceof Lo)qi.warn(n.message);else{const i=hi.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});qi.warn(i.message)}}}function Tb(t){return`${t.name}!${t.options.appId}`}/**
|
|
345
345
|
* @license
|
|
346
346
|
* Copyright 2021 Google LLC
|
|
347
347
|
*
|
|
@@ -356,7 +356,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
356
356
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
357
357
|
* See the License for the specific language governing permissions and
|
|
358
358
|
* limitations under the License.
|
|
359
|
-
*/const
|
|
359
|
+
*/const LR=1024,MR=30*24*60*60*1e3;class NR{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new BR(n),this._heartbeatsCachePromise=this._storage.read().then(i=>(this._heartbeatsCache=i,i))}async triggerHeartbeat(){var e,n;const o=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),a=Im();if(!(((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null))&&!(this._heartbeatsCache.lastSentHeartbeatDate===a||this._heartbeatsCache.heartbeats.some(l=>l.date===a)))return this._heartbeatsCache.heartbeats.push({date:a,agent:o}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(l=>{const d=new Date(l.date).valueOf();return Date.now()-d<=MR}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var e;if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=Im(),{heartbeatsToSend:i,unsentEntries:o}=jR(this._heartbeatsCache.heartbeats),a=yb(JSON.stringify({version:2,heartbeats:i}));return this._heartbeatsCache.lastSentHeartbeatDate=n,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),a}}function Im(){return new Date().toISOString().substring(0,10)}function jR(t,e=LR){const n=[];let i=t.slice();for(const o of t){const a=n.find(l=>l.agent===o.agent);if(a){if(a.dates.push(o.date),Rm(n)>e){a.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),Rm(n)>e){n.pop();break}i=i.slice(1)}return{heartbeatsToSend:n,unsentEntries:i}}class BR{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return wb()?xb().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await RR(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return Dm(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return Dm(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...e.heartbeats]})}else return}}function Rm(t){return yb(JSON.stringify({version:2,heartbeats:t})).length}/**
|
|
360
360
|
* @license
|
|
361
361
|
* Copyright 2019 Google LLC
|
|
362
362
|
*
|
|
@@ -371,7 +371,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
371
371
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
372
372
|
* See the License for the specific language governing permissions and
|
|
373
373
|
* limitations under the License.
|
|
374
|
-
*/function
|
|
374
|
+
*/function FR(t){Yi(new yi("platform-logger",e=>new eR(e),"PRIVATE")),Yi(new yi("heartbeat",e=>new NR(e),"PRIVATE")),pi(Of,km,t),pi(Of,km,"esm2017"),pi("fire-js","")}FR("");var VR="firebase",WR="10.8.1";/**
|
|
375
375
|
* @license
|
|
376
376
|
* Copyright 2020 Google LLC
|
|
377
377
|
*
|
|
@@ -386,7 +386,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
386
386
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
387
387
|
* See the License for the specific language governing permissions and
|
|
388
388
|
* limitations under the License.
|
|
389
|
-
*/pi(
|
|
389
|
+
*/pi(VR,WR,"app");const Ob="@firebase/installations",ld="0.6.5";/**
|
|
390
390
|
* @license
|
|
391
391
|
* Copyright 2019 Google LLC
|
|
392
392
|
*
|
|
@@ -401,7 +401,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
401
401
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
402
402
|
* See the License for the specific language governing permissions and
|
|
403
403
|
* limitations under the License.
|
|
404
|
-
*/const
|
|
404
|
+
*/const Pb=1e4,Ab=`w:${ld}`,kb="FIS_v2",HR="https://firebaseinstallations.googleapis.com/v1",$R=60*60*1e3,UR="installations",zR="Installations";/**
|
|
405
405
|
* @license
|
|
406
406
|
* Copyright 2019 Google LLC
|
|
407
407
|
*
|
|
@@ -416,7 +416,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
416
416
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
417
417
|
* See the License for the specific language governing permissions and
|
|
418
418
|
* limitations under the License.
|
|
419
|
-
*/const
|
|
419
|
+
*/const qR={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},Gi=new Ju(UR,zR,qR);function Db(t){return t instanceof Lo&&t.code.includes("request-failed")}/**
|
|
420
420
|
* @license
|
|
421
421
|
* Copyright 2019 Google LLC
|
|
422
422
|
*
|
|
@@ -431,7 +431,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
431
431
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
432
432
|
* See the License for the specific language governing permissions and
|
|
433
433
|
* limitations under the License.
|
|
434
|
-
*/function
|
|
434
|
+
*/function Ib({projectId:t}){return`${HR}/projects/${t}/installations`}function Rb(t){return{token:t.token,requestStatus:2,expiresIn:GR(t.expiresIn),creationTime:Date.now()}}async function Lb(t,e){const i=(await e.json()).error;return Gi.create("request-failed",{requestName:t,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})}function Mb({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function YR(t,{refreshToken:e}){const n=Mb(t);return n.append("Authorization",KR(e)),n}async function Nb(t){const e=await t();return e.status>=500&&e.status<600?t():e}function GR(t){return Number(t.replace("s","000"))}function KR(t){return`${kb} ${t}`}/**
|
|
435
435
|
* @license
|
|
436
436
|
* Copyright 2019 Google LLC
|
|
437
437
|
*
|
|
@@ -446,7 +446,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
446
446
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
447
447
|
* See the License for the specific language governing permissions and
|
|
448
448
|
* limitations under the License.
|
|
449
|
-
*/async function
|
|
449
|
+
*/async function XR({appConfig:t,heartbeatServiceProvider:e},{fid:n}){const i=Ib(t),o=Mb(t),a=e.getImmediate({optional:!0});if(a){const m=await a.getHeartbeatsHeader();m&&o.append("x-firebase-client",m)}const l={fid:n,authVersion:kb,appId:t.appId,sdkVersion:Ab},d={method:"POST",headers:o,body:JSON.stringify(l)},h=await Nb(()=>fetch(i,d));if(h.ok){const m=await h.json();return{fid:m.fid||n,registrationStatus:2,refreshToken:m.refreshToken,authToken:Rb(m.authToken)}}else throw await Lb("Create Installation",h)}/**
|
|
450
450
|
* @license
|
|
451
451
|
* Copyright 2019 Google LLC
|
|
452
452
|
*
|
|
@@ -461,7 +461,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
461
461
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
462
462
|
* See the License for the specific language governing permissions and
|
|
463
463
|
* limitations under the License.
|
|
464
|
-
*/function
|
|
464
|
+
*/function jb(t){return new Promise(e=>{setTimeout(e,t)})}/**
|
|
465
465
|
* @license
|
|
466
466
|
* Copyright 2019 Google LLC
|
|
467
467
|
*
|
|
@@ -476,7 +476,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
476
476
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
477
477
|
* See the License for the specific language governing permissions and
|
|
478
478
|
* limitations under the License.
|
|
479
|
-
*/function
|
|
479
|
+
*/function JR(t){return btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
480
480
|
* @license
|
|
481
481
|
* Copyright 2019 Google LLC
|
|
482
482
|
*
|
|
@@ -491,7 +491,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
491
491
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
492
492
|
* See the License for the specific language governing permissions and
|
|
493
493
|
* limitations under the License.
|
|
494
|
-
*/const
|
|
494
|
+
*/const ZR=/^[cdef][\w-]{21}$/,kf="";function QR(){try{const t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;const n=e2(t);return ZR.test(n)?n:kf}catch{return kf}}function e2(t){return JR(t).substr(0,22)}/**
|
|
495
495
|
* @license
|
|
496
496
|
* Copyright 2019 Google LLC
|
|
497
497
|
*
|
|
@@ -521,7 +521,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
521
521
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
522
522
|
* See the License for the specific language governing permissions and
|
|
523
523
|
* limitations under the License.
|
|
524
|
-
*/const
|
|
524
|
+
*/const Bb=new Map;function Fb(t,e){const n=Qu(t);Vb(n,e),t2(n,e)}function Vb(t,e){const n=Bb.get(t);if(n)for(const i of n)i(e)}function t2(t,e){const n=n2();n&&n.postMessage({key:t,fid:e}),r2()}let $i=null;function n2(){return!$i&&"BroadcastChannel"in self&&($i=new BroadcastChannel("[Firebase] FID Change"),$i.onmessage=t=>{Vb(t.data.key,t.data.fid)}),$i}function r2(){Bb.size===0&&$i&&($i.close(),$i=null)}/**
|
|
525
525
|
* @license
|
|
526
526
|
* Copyright 2019 Google LLC
|
|
527
527
|
*
|
|
@@ -536,7 +536,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
536
536
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
537
537
|
* See the License for the specific language governing permissions and
|
|
538
538
|
* limitations under the License.
|
|
539
|
-
*/const
|
|
539
|
+
*/const i2="firebase-installations-database",o2=1,Ki="firebase-installations-store";let Kc=null;function cd(){return Kc||(Kc=Zu(i2,o2,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Ki)}}})),Kc}async function Fu(t,e){const n=Qu(t),o=(await cd()).transaction(Ki,"readwrite"),a=o.objectStore(Ki),l=await a.get(n);return await a.put(e,n),await o.done,(!l||l.fid!==e.fid)&&Fb(t,e.fid),e}async function Wb(t){const e=Qu(t),i=(await cd()).transaction(Ki,"readwrite");await i.objectStore(Ki).delete(e),await i.done}async function el(t,e){const n=Qu(t),o=(await cd()).transaction(Ki,"readwrite"),a=o.objectStore(Ki),l=await a.get(n),d=e(l);return d===void 0?await a.delete(n):await a.put(d,n),await o.done,d&&(!l||l.fid!==d.fid)&&Fb(t,d.fid),d}/**
|
|
540
540
|
* @license
|
|
541
541
|
* Copyright 2019 Google LLC
|
|
542
542
|
*
|
|
@@ -551,7 +551,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
551
551
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
552
552
|
* See the License for the specific language governing permissions and
|
|
553
553
|
* limitations under the License.
|
|
554
|
-
*/async function
|
|
554
|
+
*/async function fd(t){let e;const n=await el(t.appConfig,i=>{const o=s2(i),a=a2(t,o);return e=a.registrationPromise,a.installationEntry});return n.fid===kf?{installationEntry:await e}:{installationEntry:n,registrationPromise:e}}function s2(t){const e=t||{fid:QR(),registrationStatus:0};return Hb(e)}function a2(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const o=Promise.reject(Gi.create("app-offline"));return{installationEntry:e,registrationPromise:o}}const n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},i=u2(t,n);return{installationEntry:n,registrationPromise:i}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:l2(t)}:{installationEntry:e}}async function u2(t,e){try{const n=await XR(t,e);return Fu(t.appConfig,n)}catch(n){throw Db(n)&&n.customData.serverCode===409?await Wb(t.appConfig):await Fu(t.appConfig,{fid:e.fid,registrationStatus:0}),n}}async function l2(t){let e=await Lm(t.appConfig);for(;e.registrationStatus===1;)await jb(100),e=await Lm(t.appConfig);if(e.registrationStatus===0){const{installationEntry:n,registrationPromise:i}=await fd(t);return i||n}return e}function Lm(t){return el(t,e=>{if(!e)throw Gi.create("installation-not-found");return Hb(e)})}function Hb(t){return c2(t)?{fid:t.fid,registrationStatus:0}:t}function c2(t){return t.registrationStatus===1&&t.registrationTime+Pb<Date.now()}/**
|
|
555
555
|
* @license
|
|
556
556
|
* Copyright 2019 Google LLC
|
|
557
557
|
*
|
|
@@ -566,7 +566,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
566
566
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
567
567
|
* See the License for the specific language governing permissions and
|
|
568
568
|
* limitations under the License.
|
|
569
|
-
*/async function
|
|
569
|
+
*/async function f2({appConfig:t,heartbeatServiceProvider:e},n){const i=d2(t,n),o=YR(t,n),a=e.getImmediate({optional:!0});if(a){const m=await a.getHeartbeatsHeader();m&&o.append("x-firebase-client",m)}const l={installation:{sdkVersion:Ab,appId:t.appId}},d={method:"POST",headers:o,body:JSON.stringify(l)},h=await Nb(()=>fetch(i,d));if(h.ok){const m=await h.json();return Rb(m)}else throw await Lb("Generate Auth Token",h)}function d2(t,{fid:e}){return`${Ib(t)}/${e}/authTokens:generate`}/**
|
|
570
570
|
* @license
|
|
571
571
|
* Copyright 2019 Google LLC
|
|
572
572
|
*
|
|
@@ -581,7 +581,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
581
581
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
582
582
|
* See the License for the specific language governing permissions and
|
|
583
583
|
* limitations under the License.
|
|
584
|
-
*/async function
|
|
584
|
+
*/async function dd(t,e=!1){let n;const i=await el(t.appConfig,a=>{if(!$b(a))throw Gi.create("not-registered");const l=a.authToken;if(!e&&g2(l))return a;if(l.requestStatus===1)return n=h2(t,e),a;{if(!navigator.onLine)throw Gi.create("app-offline");const d=v2(a);return n=p2(t,d),d}});return n?await n:i.authToken}async function h2(t,e){let n=await Mm(t.appConfig);for(;n.authToken.requestStatus===1;)await jb(100),n=await Mm(t.appConfig);const i=n.authToken;return i.requestStatus===0?dd(t,e):i}function Mm(t){return el(t,e=>{if(!$b(e))throw Gi.create("not-registered");const n=e.authToken;return y2(n)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function p2(t,e){try{const n=await f2(t,e),i=Object.assign(Object.assign({},e),{authToken:n});return await Fu(t.appConfig,i),n}catch(n){if(Db(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await Wb(t.appConfig);else{const i=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await Fu(t.appConfig,i)}throw n}}function $b(t){return t!==void 0&&t.registrationStatus===2}function g2(t){return t.requestStatus===2&&!m2(t)}function m2(t){const e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+$R}function v2(t){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}function y2(t){return t.requestStatus===1&&t.requestTime+Pb<Date.now()}/**
|
|
585
585
|
* @license
|
|
586
586
|
* Copyright 2019 Google LLC
|
|
587
587
|
*
|
|
@@ -596,7 +596,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
596
596
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
597
597
|
* See the License for the specific language governing permissions and
|
|
598
598
|
* limitations under the License.
|
|
599
|
-
*/async function
|
|
599
|
+
*/async function b2(t){const e=t,{installationEntry:n,registrationPromise:i}=await fd(e);return i?i.catch(console.error):dd(e).catch(console.error),n.fid}/**
|
|
600
600
|
* @license
|
|
601
601
|
* Copyright 2019 Google LLC
|
|
602
602
|
*
|
|
@@ -611,7 +611,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
611
611
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
612
612
|
* See the License for the specific language governing permissions and
|
|
613
613
|
* limitations under the License.
|
|
614
|
-
*/async function
|
|
614
|
+
*/async function w2(t,e=!1){const n=t;return await x2(n),(await dd(n,e)).token}async function x2(t){const{registrationPromise:e}=await fd(t);e&&await e}/**
|
|
615
615
|
* @license
|
|
616
616
|
* Copyright 2019 Google LLC
|
|
617
617
|
*
|
|
@@ -626,7 +626,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
626
626
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
627
627
|
* See the License for the specific language governing permissions and
|
|
628
628
|
* limitations under the License.
|
|
629
|
-
*/function
|
|
629
|
+
*/function S2(t){if(!t||!t.options)throw Xc("App Configuration");if(!t.name)throw Xc("App Name");const e=["projectId","apiKey","appId"];for(const n of e)if(!t.options[n])throw Xc(n);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function Xc(t){return Gi.create("missing-app-config-values",{valueName:t})}/**
|
|
630
630
|
* @license
|
|
631
631
|
* Copyright 2020 Google LLC
|
|
632
632
|
*
|
|
@@ -641,7 +641,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
641
641
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
642
642
|
* See the License for the specific language governing permissions and
|
|
643
643
|
* limitations under the License.
|
|
644
|
-
*/const
|
|
644
|
+
*/const Ub="installations",_2="installations-internal",C2=t=>{const e=t.getProvider("app").getImmediate(),n=S2(e),i=ud(e,"heartbeat");return{app:e,appConfig:n,heartbeatServiceProvider:i,_delete:()=>Promise.resolve()}},E2=t=>{const e=t.getProvider("app").getImmediate(),n=ud(e,Ub).getImmediate();return{getId:()=>b2(n),getToken:o=>w2(n,o)}};function T2(){Yi(new yi(Ub,C2,"PUBLIC")),Yi(new yi(_2,E2,"PRIVATE"))}T2();pi(Ob,ld);pi(Ob,ld,"esm2017");/**
|
|
645
645
|
* @license
|
|
646
646
|
* Copyright 2019 Google LLC
|
|
647
647
|
*
|
|
@@ -656,7 +656,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
656
656
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
657
657
|
* See the License for the specific language governing permissions and
|
|
658
658
|
* limitations under the License.
|
|
659
|
-
*/const
|
|
659
|
+
*/const O2="/firebase-messaging-sw.js",P2="/firebase-cloud-messaging-push-scope",zb="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",A2="https://fcmregistrations.googleapis.com/v1",qb="google.c.a.c_id",k2="google.c.a.c_l",D2="google.c.a.ts",I2="google.c.a.e";var Nm;(function(t){t[t.DATA_MESSAGE=1]="DATA_MESSAGE",t[t.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(Nm||(Nm={}));/**
|
|
660
660
|
* @license
|
|
661
661
|
* Copyright 2018 Google LLC
|
|
662
662
|
*
|
|
@@ -684,7 +684,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
684
684
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
685
685
|
* See the License for the specific language governing permissions and
|
|
686
686
|
* limitations under the License.
|
|
687
|
-
*/function Ir(t){const e=new Uint8Array(t);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function
|
|
687
|
+
*/function Ir(t){const e=new Uint8Array(t);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function R2(t){const e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/\-/g,"+").replace(/_/g,"/"),i=atob(n),o=new Uint8Array(i.length);for(let a=0;a<i.length;++a)o[a]=i.charCodeAt(a);return o}/**
|
|
688
688
|
* @license
|
|
689
689
|
* Copyright 2019 Google LLC
|
|
690
690
|
*
|
|
@@ -699,7 +699,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
699
699
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
700
700
|
* See the License for the specific language governing permissions and
|
|
701
701
|
* limitations under the License.
|
|
702
|
-
*/const
|
|
702
|
+
*/const Jc="fcm_token_details_db",L2=5,jm="fcm_token_object_Store";async function M2(t){if("databases"in indexedDB&&!(await indexedDB.databases()).map(a=>a.name).includes(Jc))return null;let e=null;return(await Zu(Jc,L2,{upgrade:async(i,o,a,l)=>{var d;if(o<2||!i.objectStoreNames.contains(jm))return;const h=l.objectStore(jm),m=await h.index("fcmSenderId").get(t);if(await h.clear(),!!m){if(o===2){const b=m;if(!b.auth||!b.p256dh||!b.endpoint)return;e={token:b.fcmToken,createTime:(d=b.createTime)!==null&&d!==void 0?d:Date.now(),subscriptionOptions:{auth:b.auth,p256dh:b.p256dh,endpoint:b.endpoint,swScope:b.swScope,vapidKey:typeof b.vapidKey=="string"?b.vapidKey:Ir(b.vapidKey)}}}else if(o===3){const b=m;e={token:b.fcmToken,createTime:b.createTime,subscriptionOptions:{auth:Ir(b.auth),p256dh:Ir(b.p256dh),endpoint:b.endpoint,swScope:b.swScope,vapidKey:Ir(b.vapidKey)}}}else if(o===4){const b=m;e={token:b.fcmToken,createTime:b.createTime,subscriptionOptions:{auth:Ir(b.auth),p256dh:Ir(b.p256dh),endpoint:b.endpoint,swScope:b.swScope,vapidKey:Ir(b.vapidKey)}}}}}})).close(),await qc(Jc),await qc("fcm_vapid_details_db"),await qc("undefined"),N2(e)?e:null}function N2(t){if(!t||!t.subscriptionOptions)return!1;const{subscriptionOptions:e}=t;return typeof t.createTime=="number"&&t.createTime>0&&typeof t.token=="string"&&t.token.length>0&&typeof e.auth=="string"&&e.auth.length>0&&typeof e.p256dh=="string"&&e.p256dh.length>0&&typeof e.endpoint=="string"&&e.endpoint.length>0&&typeof e.swScope=="string"&&e.swScope.length>0&&typeof e.vapidKey=="string"&&e.vapidKey.length>0}/**
|
|
703
703
|
* @license
|
|
704
704
|
* Copyright 2019 Google LLC
|
|
705
705
|
*
|
|
@@ -714,7 +714,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
714
714
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
715
715
|
* See the License for the specific language governing permissions and
|
|
716
716
|
* limitations under the License.
|
|
717
|
-
*/const
|
|
717
|
+
*/const j2="firebase-messaging-database",B2=1,Xi="firebase-messaging-store";let Zc=null;function hd(){return Zc||(Zc=Zu(j2,B2,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Xi)}}})),Zc}async function Yb(t){const e=gd(t),i=await(await hd()).transaction(Xi).objectStore(Xi).get(e);if(i)return i;{const o=await M2(t.appConfig.senderId);if(o)return await pd(t,o),o}}async function pd(t,e){const n=gd(t),o=(await hd()).transaction(Xi,"readwrite");return await o.objectStore(Xi).put(e,n),await o.done,e}async function F2(t){const e=gd(t),i=(await hd()).transaction(Xi,"readwrite");await i.objectStore(Xi).delete(e),await i.done}function gd({appConfig:t}){return t.appId}/**
|
|
718
718
|
* @license
|
|
719
719
|
* Copyright 2017 Google LLC
|
|
720
720
|
*
|
|
@@ -729,7 +729,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
729
729
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
730
730
|
* See the License for the specific language governing permissions and
|
|
731
731
|
* limitations under the License.
|
|
732
|
-
*/const
|
|
732
|
+
*/const V2={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},zt=new Ju("messaging","Messaging",V2);/**
|
|
733
733
|
* @license
|
|
734
734
|
* Copyright 2019 Google LLC
|
|
735
735
|
*
|
|
@@ -744,7 +744,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
744
744
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
745
745
|
* See the License for the specific language governing permissions and
|
|
746
746
|
* limitations under the License.
|
|
747
|
-
*/async function
|
|
747
|
+
*/async function W2(t,e){const n=await vd(t),i=Kb(e),o={method:"POST",headers:n,body:JSON.stringify(i)};let a;try{a=await(await fetch(md(t.appConfig),o)).json()}catch(l){throw zt.create("token-subscribe-failed",{errorInfo:l==null?void 0:l.toString()})}if(a.error){const l=a.error.message;throw zt.create("token-subscribe-failed",{errorInfo:l})}if(!a.token)throw zt.create("token-subscribe-no-token");return a.token}async function H2(t,e){const n=await vd(t),i=Kb(e.subscriptionOptions),o={method:"PATCH",headers:n,body:JSON.stringify(i)};let a;try{a=await(await fetch(`${md(t.appConfig)}/${e.token}`,o)).json()}catch(l){throw zt.create("token-update-failed",{errorInfo:l==null?void 0:l.toString()})}if(a.error){const l=a.error.message;throw zt.create("token-update-failed",{errorInfo:l})}if(!a.token)throw zt.create("token-update-no-token");return a.token}async function Gb(t,e){const i={method:"DELETE",headers:await vd(t)};try{const a=await(await fetch(`${md(t.appConfig)}/${e}`,i)).json();if(a.error){const l=a.error.message;throw zt.create("token-unsubscribe-failed",{errorInfo:l})}}catch(o){throw zt.create("token-unsubscribe-failed",{errorInfo:o==null?void 0:o.toString()})}}function md({projectId:t}){return`${A2}/projects/${t}/registrations`}async function vd({appConfig:t,installations:e}){const n=await e.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function Kb({p256dh:t,auth:e,endpoint:n,vapidKey:i}){const o={web:{endpoint:n,auth:e,p256dh:t}};return i!==zb&&(o.web.applicationPubKey=i),o}/**
|
|
748
748
|
* @license
|
|
749
749
|
* Copyright 2019 Google LLC
|
|
750
750
|
*
|
|
@@ -759,7 +759,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
759
759
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
760
760
|
* See the License for the specific language governing permissions and
|
|
761
761
|
* limitations under the License.
|
|
762
|
-
*/const
|
|
762
|
+
*/const $2=7*24*60*60*1e3;async function U2(t){const e=await Y2(t.swRegistration,t.vapidKey),n={vapidKey:t.vapidKey,swScope:t.swRegistration.scope,endpoint:e.endpoint,auth:Ir(e.getKey("auth")),p256dh:Ir(e.getKey("p256dh"))},i=await Yb(t.firebaseDependencies);if(i){if(G2(i.subscriptionOptions,n))return Date.now()>=i.createTime+$2?q2(t,{token:i.token,createTime:Date.now(),subscriptionOptions:n}):i.token;try{await Gb(t.firebaseDependencies,i.token)}catch(o){console.warn(o)}return Bm(t.firebaseDependencies,n)}else return Bm(t.firebaseDependencies,n)}async function z2(t){const e=await Yb(t.firebaseDependencies);e&&(await Gb(t.firebaseDependencies,e.token),await F2(t.firebaseDependencies));const n=await t.swRegistration.pushManager.getSubscription();return n?n.unsubscribe():!0}async function q2(t,e){try{const n=await H2(t.firebaseDependencies,e),i=Object.assign(Object.assign({},e),{token:n,createTime:Date.now()});return await pd(t.firebaseDependencies,i),n}catch(n){throw await z2(t),n}}async function Bm(t,e){const i={token:await W2(t,e),createTime:Date.now(),subscriptionOptions:e};return await pd(t,i),i.token}async function Y2(t,e){const n=await t.pushManager.getSubscription();return n||t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:R2(e)})}function G2(t,e){const n=e.vapidKey===t.vapidKey,i=e.endpoint===t.endpoint,o=e.auth===t.auth,a=e.p256dh===t.p256dh;return n&&i&&o&&a}/**
|
|
763
763
|
* @license
|
|
764
764
|
* Copyright 2020 Google LLC
|
|
765
765
|
*
|
|
@@ -774,7 +774,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
774
774
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
775
775
|
* See the License for the specific language governing permissions and
|
|
776
776
|
* limitations under the License.
|
|
777
|
-
*/function
|
|
777
|
+
*/function Fm(t){const e={from:t.from,collapseKey:t.collapse_key,messageId:t.fcmMessageId};return K2(e,t),X2(e,t),J2(e,t),e}function K2(t,e){if(!e.notification)return;t.notification={};const n=e.notification.title;n&&(t.notification.title=n);const i=e.notification.body;i&&(t.notification.body=i);const o=e.notification.image;o&&(t.notification.image=o);const a=e.notification.icon;a&&(t.notification.icon=a)}function X2(t,e){e.data&&(t.data=e.data)}function J2(t,e){var n,i,o,a,l;if(!e.fcmOptions&&!(!((n=e.notification)===null||n===void 0)&&n.click_action))return;t.fcmOptions={};const d=(o=(i=e.fcmOptions)===null||i===void 0?void 0:i.link)!==null&&o!==void 0?o:(a=e.notification)===null||a===void 0?void 0:a.click_action;d&&(t.fcmOptions.link=d);const h=(l=e.fcmOptions)===null||l===void 0?void 0:l.analytics_label;h&&(t.fcmOptions.analyticsLabel=h)}/**
|
|
778
778
|
* @license
|
|
779
779
|
* Copyright 2019 Google LLC
|
|
780
780
|
*
|
|
@@ -789,7 +789,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
789
789
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
790
790
|
* See the License for the specific language governing permissions and
|
|
791
791
|
* limitations under the License.
|
|
792
|
-
*/function
|
|
792
|
+
*/function Z2(t){return typeof t=="object"&&!!t&&qb in t}/**
|
|
793
793
|
* @license
|
|
794
794
|
* Copyright 2019 Google LLC
|
|
795
795
|
*
|
|
@@ -804,7 +804,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
804
804
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
805
805
|
* See the License for the specific language governing permissions and
|
|
806
806
|
* limitations under the License.
|
|
807
|
-
*/
|
|
807
|
+
*/Xb("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o");Xb("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function Xb(t,e){const n=[];for(let i=0;i<t.length;i++)n.push(t.charAt(i)),i<e.length&&n.push(e.charAt(i));return n.join("")}/**
|
|
808
808
|
* @license
|
|
809
809
|
* Copyright 2019 Google LLC
|
|
810
810
|
*
|
|
@@ -819,7 +819,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
819
819
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
820
820
|
* See the License for the specific language governing permissions and
|
|
821
821
|
* limitations under the License.
|
|
822
|
-
*/function
|
|
822
|
+
*/function Q2(t){if(!t||!t.options)throw Qc("App Configuration Object");if(!t.name)throw Qc("App Name");const e=["projectId","apiKey","appId","messagingSenderId"],{options:n}=t;for(const i of e)if(!n[i])throw Qc(i);return{appName:t.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Qc(t){return zt.create("missing-app-config-values",{valueName:t})}/**
|
|
823
823
|
* @license
|
|
824
824
|
* Copyright 2020 Google LLC
|
|
825
825
|
*
|
|
@@ -834,7 +834,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
834
834
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
835
835
|
* See the License for the specific language governing permissions and
|
|
836
836
|
* limitations under the License.
|
|
837
|
-
*/class
|
|
837
|
+
*/class eL{constructor(e,n,i){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const o=Q2(e);this.firebaseDependencies={app:e,appConfig:o,installations:n,analyticsProvider:i}}_delete(){return Promise.resolve()}}/**
|
|
838
838
|
* @license
|
|
839
839
|
* Copyright 2020 Google LLC
|
|
840
840
|
*
|
|
@@ -849,7 +849,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
849
849
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
850
850
|
* See the License for the specific language governing permissions and
|
|
851
851
|
* limitations under the License.
|
|
852
|
-
*/async function
|
|
852
|
+
*/async function tL(t){try{t.swRegistration=await navigator.serviceWorker.register(O2,{scope:P2}),t.swRegistration.update().catch(()=>{})}catch(e){throw zt.create("failed-service-worker-registration",{browserErrorMessage:e==null?void 0:e.message})}}/**
|
|
853
853
|
* @license
|
|
854
854
|
* Copyright 2020 Google LLC
|
|
855
855
|
*
|
|
@@ -864,7 +864,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
864
864
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
865
865
|
* See the License for the specific language governing permissions and
|
|
866
866
|
* limitations under the License.
|
|
867
|
-
*/async function
|
|
867
|
+
*/async function nL(t,e){if(!e&&!t.swRegistration&&await tL(t),!(!e&&t.swRegistration)){if(!(e instanceof ServiceWorkerRegistration))throw zt.create("invalid-sw-registration");t.swRegistration=e}}/**
|
|
868
868
|
* @license
|
|
869
869
|
* Copyright 2020 Google LLC
|
|
870
870
|
*
|
|
@@ -879,7 +879,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
879
879
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
880
880
|
* See the License for the specific language governing permissions and
|
|
881
881
|
* limitations under the License.
|
|
882
|
-
*/async function
|
|
882
|
+
*/async function rL(t,e){e?t.vapidKey=e:t.vapidKey||(t.vapidKey=zb)}/**
|
|
883
883
|
* @license
|
|
884
884
|
* Copyright 2020 Google LLC
|
|
885
885
|
*
|
|
@@ -894,7 +894,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
894
894
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
895
895
|
* See the License for the specific language governing permissions and
|
|
896
896
|
* limitations under the License.
|
|
897
|
-
*/async function
|
|
897
|
+
*/async function Jb(t,e){if(!navigator)throw zt.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw zt.create("permission-blocked");return await rL(t,e==null?void 0:e.vapidKey),await nL(t,e==null?void 0:e.serviceWorkerRegistration),U2(t)}/**
|
|
898
898
|
* @license
|
|
899
899
|
* Copyright 2019 Google LLC
|
|
900
900
|
*
|
|
@@ -909,7 +909,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
909
909
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
910
910
|
* See the License for the specific language governing permissions and
|
|
911
911
|
* limitations under the License.
|
|
912
|
-
*/async function
|
|
912
|
+
*/async function iL(t,e,n){const i=oL(e);(await t.firebaseDependencies.analyticsProvider.get()).logEvent(i,{message_id:n[qb],message_name:n[k2],message_time:n[D2],message_device_time:Math.floor(Date.now()/1e3)})}function oL(t){switch(t){case Bs.NOTIFICATION_CLICKED:return"notification_open";case Bs.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
|
|
913
913
|
* @license
|
|
914
914
|
* Copyright 2017 Google LLC
|
|
915
915
|
*
|
|
@@ -924,7 +924,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
924
924
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
925
925
|
* See the License for the specific language governing permissions and
|
|
926
926
|
* limitations under the License.
|
|
927
|
-
*/async function
|
|
927
|
+
*/async function sL(t,e){const n=e.data;if(!n.isFirebaseMessaging)return;t.onMessageHandler&&n.messageType===Bs.PUSH_RECEIVED&&(typeof t.onMessageHandler=="function"?t.onMessageHandler(Fm(n)):t.onMessageHandler.next(Fm(n)));const i=n.data;Z2(i)&&i[I2]==="1"&&await iL(t,n.messageType,i)}const Vm="@firebase/messaging",Wm="0.12.6";/**
|
|
928
928
|
* @license
|
|
929
929
|
* Copyright 2020 Google LLC
|
|
930
930
|
*
|
|
@@ -939,7 +939,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
939
939
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
940
940
|
* See the License for the specific language governing permissions and
|
|
941
941
|
* limitations under the License.
|
|
942
|
-
*/const
|
|
942
|
+
*/const aL=t=>{const e=new eL(t.getProvider("app").getImmediate(),t.getProvider("installations-internal").getImmediate(),t.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>sL(e,n)),e},uL=t=>{const e=t.getProvider("messaging").getImmediate();return{getToken:i=>Jb(e,i)}};function lL(){Yi(new yi("messaging",aL,"PUBLIC")),Yi(new yi("messaging-internal",uL,"PRIVATE")),pi(Vm,Wm),pi(Vm,Wm,"esm2017")}/**
|
|
943
943
|
* @license
|
|
944
944
|
* Copyright 2020 Google LLC
|
|
945
945
|
*
|
|
@@ -954,7 +954,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
954
954
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
955
955
|
* See the License for the specific language governing permissions and
|
|
956
956
|
* limitations under the License.
|
|
957
|
-
*/async function
|
|
957
|
+
*/async function cL(){try{await xb()}catch{return!1}return typeof window<"u"&&wb()&&DI()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
|
|
958
958
|
* @license
|
|
959
959
|
* Copyright 2020 Google LLC
|
|
960
960
|
*
|
|
@@ -969,7 +969,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
969
969
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
970
970
|
* See the License for the specific language governing permissions and
|
|
971
971
|
* limitations under the License.
|
|
972
|
-
*/function
|
|
972
|
+
*/function fL(t,e){if(!navigator)throw zt.create("only-available-in-window");return t.onMessageHandler=e,()=>{t.onMessageHandler=null}}/**
|
|
973
973
|
* @license
|
|
974
974
|
* Copyright 2017 Google LLC
|
|
975
975
|
*
|
|
@@ -984,4 +984,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
984
984
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
985
985
|
* See the License for the specific language governing permissions and
|
|
986
986
|
* limitations under the License.
|
|
987
|
-
*/function
|
|
987
|
+
*/function dL(t=kR()){return cL().then(e=>{if(!e)throw zt.create("unsupported-browser")},e=>{throw zt.create("indexed-db-unsupported")}),ud(sd(t),"messaging").getImmediate()}async function hL(t,e){return t=sd(t),Jb(t,e)}function pL(t,e){return t=sd(t),fL(t,e)}lL();const gL={"subscription-diaglog":"_subscription-diaglog_1bysb_2","subscription-container":"_subscription-container_1bysb_15","subscription-title":"_subscription-title_1bysb_25","subscription-text":"_subscription-text_1bysb_34","subscription-btn__container":"_subscription-btn__container_1bysb_38","btn-success":"_btn-success_1bysb_44","btn-cancel":"_btn-cancel_1bysb_45"},mL={"notification-massage_container":"_notification-massage_container_ql4az_1","notification-name":"_notification-name_ql4az_18","notification-message_service":"_notification-message_service_ql4az_23","notification-message_button-close":"_notification-message_button-close_ql4az_27"};exports.AuthProvider=PC;exports.CustomOpenList=Cv;exports.CustomOpenListProvider=AT;exports.DateRangePicker=wI;exports.GlobalMenu=uI;exports.InfiniteLoader=mI;exports.Language=Mf;exports.LogoutConfirmModal=Um;exports.PropTypes=YD;exports.Q=wC;exports.SaasThemeProvider=PT;exports.StyleWrapper=Ev;exports.TranslationProvider=gT;exports._=cI;exports._assertThisInitialized=Mr;exports._extends=Ro;exports._extends$1=ED;exports._inheritsLoose=rb;exports._objectWithoutPropertiesLoose=Lf;exports.activeStyles=ub;exports.clsx=Rr;exports.color=fn;exports.commonjsGlobal=Cn;exports.createCustomTheme=Sv;exports.getAugmentedNamespace=TE;exports.getAxiosInstance=cE;exports.getMessagingInWindow=dL;exports.getToken=hL;exports.initializeApp=Cb;exports.lodashExports=hb;exports.notify=OC;exports.objectWithoutPropertiesLoose=EE;exports.onMessage=pL;exports.pushError=If;exports.pushSuccess=EC;exports.pushWarning=TC;exports.search=fE;exports.styles=lI;exports.styles$1=gL;exports.styles$2=mL;exports.translate=hT;exports.translationConfig=dT;exports.useAuth=AC;exports.useCustomTranslation=fT;exports.useTheme=OT;exports.useTranslation=lv;exports.useTranslation$1=pT;
|