diff --git a/.gitignore b/.gitignore index d600b6c..f587b9a 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,6 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist dist-ssr *.local diff --git a/dist/assets/index.8d6fe315.css b/dist/assets/index.8d6fe315.css new file mode 100644 index 0000000..d1ac65f --- /dev/null +++ b/dist/assets/index.8d6fe315.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Roboto&display=swap";*{font-family:Roboto,sans-serif;margin:0;padding:0;box-sizing:border-box;scroll-behavior:smooth}.container{width:100%;padding:0 5rem;max-width:100%;margin:0 auto;height:100%}html{font-size:62.5%;height:100%}body{background-color:#f1f4f8}body,#root,.App{height:100%}ul{list-style-type:none}input,button{background:none;outline:none;border:none}button:disabled{background:#d4d4d4!important;border:none!important;cursor:not-allowed}a{color:#000;text-decoration:none}.login{height:100%}.login.inner{display:flex;align-items:center;justify-content:center}.login__wrapper{display:flex;flex-direction:column;gap:2.4rem}.login__header{text-align:center;font-size:2.8rem}.login__form{min-width:35rem;background:#fff;padding:3.5rem;border:1px solid #d9e2ef;border-radius:.5rem;display:flex;flex-direction:column;gap:1.6rem}.login__form__error{overflow:hidden;height:0;color:red;font-size:1.4rem;font-weight:700;transition:.3s all ease}.login__form__error.active{transition:.3s all ease;height:2rem}.login__form__button{border-radius:.2rem;cursor:pointer;width:100%;padding:.6rem 1.2rem;color:#fff;font-size:1.6rem}.login__form__button--violet{background-color:#7c69ef;border:.1rem solid #7c69ef;transition:.3s all ease}.login__form__button--violet:hover{transition:.3s all ease;background-color:#705ed6;border:.1rem solid #705ed6}.login__form__block{display:flex;flex-direction:column;gap:.8rem}.login__form__block label{font-size:1.6rem}.login__form__block input{font-size:1.6rem;padding:.6rem 1.2rem;border:1px solid #d9e2ef;border-radius:.2rem}.login__form__block--check label{font-size:1.6rem;display:flex;align-items:center;gap:.6rem}.nav__dropdown{background:#f1f4f8;z-index:5;border-radius:1rem;width:100%;opacity:0;overflow:hidden;position:absolute;transition:.3s all ease;top:calc(100% + 1rem);left:0;height:0;border:.1rem solid #c8c8c8}.nav__dropdown.active{height:16.3rem;opacity:1;transition:.3s all ease}.nav__dropdown__wrapper{display:flex;flex-direction:column}.nav__dropdown__wrapper li{display:flex;flex-direction:column;gap:.2rem}.nav__dropdown__wrapper li:nth-child(2n){padding-bottom:1rem}.nav__left{display:flex;align-items:center;justify-content:flex-start;gap:5%}.nav__right{justify-self:flex-end;max-width:10rem;display:flex;align-items:center}.nav__right__user{cursor:pointer;position:relative;background:#f1f4f8;border:.1rem solid #c8c8c8;border-radius:1rem;padding:1rem;display:flex;align-items:center;gap:.5rem;transition:.3s all ease}.nav__right__user:hover{transition:.3s all ease;background:#b9b9b9}.nav__right__user button{border-top:.1rem solid #c8c8c8;padding:1rem 1rem .5rem;cursor:pointer;color:#25acda}.nav__right__user span{font-size:1.6rem}.nav__right__user p{font-size:1.2rem;padding:0 1rem}.nav__right__user__img{width:3rem;height:3rem}.nav__right__user__img img{width:3rem;height:3rem;object-fit:contain}.nav__right__user h2,.nav__right__user h3{padding:1rem 1rem .5rem;width:100%;font-size:1.4rem}.nav.inner{display:grid;grid-template-columns:1fr 1fr;gap:3rem;padding:2rem 0}.nav__img{width:7rem;height:5rem}.nav__img svg{width:7rem;height:5rem}.nav__btn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:4.8rem;height:3.2rem;padding:.4rem 0;border:.1rem solid rgba(0,0,0,.4);border-radius:.5rem;transition:.3s all ease}.nav__btn img{width:4.8rem;height:3.2rem;object-fit:contain}.nav__btn:active{transition:.3s all ease;border:.3rem solid rgba(0,0,0,.8)}.main__mid{display:grid;grid-template-columns:auto 1fr}.aside{transition:.3s all ease;overflow:hidden;max-width:0;width:100%}.aside__img{width:3rem;height:3rem}.aside.active{max-width:25rem;transition:.3s all ease}.aside__list{width:100%;padding:1rem;display:flex;flex-direction:column}.aside__list__element{min-width:13.12rem;transition:.3s all ease;background:transparent;display:flex;gap:.6rem;align-items:center;font-size:1.6rem;cursor:pointer}.aside__list__element a,.aside__list__element div{display:flex;align-items:center;justify-content:flex-start;gap:1rem;width:100%;padding:.8rem .4rem .8rem 1.2rem}.aside__list__element:hover{transition:.3s all ease;background:#cccccc}.aside__list__element__img{width:2rem;height:2rem}.aside__list__element__img img{width:2rem;height:2rem;object-fit:contain}.aside__list__element--title{cursor:default!important;background:transparent!important;font-size:1.4rem}.aside__list__element--title:not(:first-child){padding-top:1rem;margin-top:1rem}.dashboard__head{display:flex;align-items:center;gap:1rem}.dashboard__head h1{font-size:3.2rem}.dashboard__img{width:4rem;height:4rem}.dashboard__content__stats{display:grid;grid-template-columns:repeat(4,1fr);gap:3rem}.dashboard.inner{display:flex;flex-direction:column;gap:4rem}.statcard{cursor:default;transition:.3s all ease;transform:translateY(0);border-radius:.5rem;color:#fff;display:flex;flex-direction:column;justify-content:center;padding:2rem}.statcard:hover{transition:.3s all ease;transform:translateY(-1rem)}.statcard.yellow{background:#ffc107}.statcard.black{background:#161c2d}.statcard.green{background:#42ba96}.statcard.violet{background:#7c69ef}.statcard span{font-size:2.4rem}.statcard p{font-size:1.6rem}.posts select{padding:1rem 1.2rem;border:1px solid #b8b9bb}.posts.inner{display:flex;flex-direction:column;gap:4rem;padding-bottom:3rem}.posts__table__head{min-height:unset!important;background:#dbdbdb}.posts__table th{text-align:center;font-size:1.6rem;justify-self:center}.posts__table .post-link{background:#f2f0fd}.posts__table .post-link:nth-child(2n){background:#fafafa}.posts__table tr{min-height:7rem;padding:1rem;display:grid;grid-template-columns:1fr 2.5fr 2fr 2fr 1.5fr 3fr 1.5fr 1.5fr;gap:1rem}.posts__table td{text-align:center;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;justify-self:center;font-size:1.2rem;align-self:center}.posts__table td a{width:100%;display:flex;align-items:center;justify-content:center}.posts__table td svg{width:2rem;height:2rem}.posts__table tbody{max-height:70vh;overflow-y:auto;display:flex;flex-direction:column}.post{padding-bottom:4rem}.post.inner{display:flex;flex-direction:column;gap:4rem}.post h1{font-size:2.4rem}.post__head svg{width:5rem;height:5rem}.post__content{display:flex;flex-direction:column;gap:3rem}.post__content__btn{display:flex;align-items:center;gap:1rem;max-width:30rem;border-radius:.2rem;cursor:pointer;width:100%;padding:.6rem 1.2rem;color:#fff;font-size:1.6rem;background-color:#7c69ef;border:.1rem solid #7c69ef;transition:.3s all ease}.post__content__btn:hover{transition:.3s all ease;background-color:#705ed6;border:.1rem solid #705ed6}.post__content input{font-size:1.6rem;padding:1rem 1.2rem;border:1px solid #b8b9bb;border-radius:.2rem;cursor:default;background:#ebedef}.post__content textarea{background:#ebedef;cursor:default;padding:1rem 1.2rem;resize:none;outline:none;font-size:1.6rem;border:1px solid #b8b9bb;border-radius:.2rem}.post__content__block{display:flex;flex-direction:column;gap:.8rem}.post__content__block h4{font-size:1.6rem}.details.inner{display:flex;flex-direction:column;gap:4rem}.details__data{display:grid;grid-template-columns:1fr 1fr;gap:3rem}.details__data__block{width:100%;display:flex;flex-direction:column;gap:.6rem}.details__data label{font-size:2rem}.details__data input{padding:.7rem 1rem;border:.1rem solid #cccccc;border-radius:.5rem}.details__content{display:flex;flex-direction:column;gap:4rem} diff --git a/dist/assets/index.fdf73cab.js b/dist/assets/index.fdf73cab.js new file mode 100644 index 0000000..12dd4a4 --- /dev/null +++ b/dist/assets/index.fdf73cab.js @@ -0,0 +1,59 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerpolicy&&(i.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?i.credentials="include":l.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function Ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R={exports:{}},M={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var _r=Symbol.for("react.element"),xd=Symbol.for("react.portal"),Cd=Symbol.for("react.fragment"),Nd=Symbol.for("react.strict_mode"),Pd=Symbol.for("react.profiler"),Rd=Symbol.for("react.provider"),Od=Symbol.for("react.context"),Ld=Symbol.for("react.forward_ref"),Td=Symbol.for("react.suspense"),zd=Symbol.for("react.memo"),Dd=Symbol.for("react.lazy"),ts=Symbol.iterator;function Md(e){return e===null||typeof e!="object"?null:(e=ts&&e[ts]||e["@@iterator"],typeof e=="function"?e:null)}var $a={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ha=Object.assign,Va={};function Ln(e,t,n){this.props=e,this.context=t,this.refs=Va,this.updater=n||$a}Ln.prototype.isReactComponent={};Ln.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ln.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wa(){}Wa.prototype=Ln.prototype;function Xo(e,t,n){this.props=e,this.context=t,this.refs=Va,this.updater=n||$a}var Yo=Xo.prototype=new Wa;Yo.constructor=Xo;Ha(Yo,Ln.prototype);Yo.isPureReactComponent=!0;var ns=Array.isArray,Qa=Object.prototype.hasOwnProperty,Jo={current:null},Ka={key:!0,ref:!0,__self:!0,__source:!0};function qa(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Qa.call(t,r)&&!Ka.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}/** + * React Router v6.3.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const Zo=R.exports.createContext(null),bo=R.exports.createContext(null),kr=R.exports.createContext({outlet:null,matches:[]});function Ge(e,t){if(!e)throw new Error(t)}function Hd(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Yt(t):t,l=Ja(r.pathname||"/",n);if(l==null)return null;let i=Xa(e);Vd(i);let o=null;for(let u=0;o==null&&u{let o={relativePath:l.path||"",caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};o.relativePath.startsWith("/")&&(o.relativePath.startsWith(r)||Ge(!1),o.relativePath=o.relativePath.slice(r.length));let u=yt([r,o.relativePath]),s=n.concat(o);l.children&&l.children.length>0&&(l.index===!0&&Ge(!1),Xa(l.children,t,s,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:Jd(u,l.index),routesMeta:s})}),t}function Vd(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Gd(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Wd=/^:\w+$/,Qd=3,Kd=2,qd=1,Xd=10,Yd=-2,ss=e=>e==="*";function Jd(e,t){let n=e.split("/"),r=n.length;return n.some(ss)&&(r+=Yd),t&&(r+=Kd),n.filter(l=>!ss(l)).reduce((l,i)=>l+(Wd.test(i)?Qd:i===""?qd:Xd),r)}function Gd(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Zd(e,t){let{routesMeta:n}=e,r={},l="/",i=[];for(let o=0;o{if(h==="*"){let f=u[m]||"";o=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return a[h]=tp(u[m]||""),a},{}),pathname:i,pathnameBase:o,pattern:e}}function ep(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0);let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(o,u)=>(r.push(u),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(l,t?void 0:"i"),r]}function tp(e,t){try{return decodeURIComponent(e)}catch{return e}}function np(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Yt(e):e;return{pathname:n?n.startsWith("/")?n:rp(n,t):t,search:ip(r),hash:op(l)}}function rp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Ya(e,t,n){let r=typeof e=="string"?Yt(e):e,l=e===""||r.pathname===""?"/":r.pathname,i;if(l==null)i=n;else{let u=t.length-1;if(l.startsWith("..")){let s=l.split("/");for(;s[0]==="..";)s.shift(),u-=1;r.pathname=s.join("/")}i=u>=0?t[u]:"/"}let o=np(r,i);return l&&l!=="/"&&l.endsWith("/")&&!o.pathname.endsWith("/")&&(o.pathname+="/"),o}function lp(e){return e===""||e.pathname===""?"/":typeof e=="string"?Yt(e).pathname:e.pathname}function Ja(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&n!=="/"?null:e.slice(t.length)||"/"}const yt=e=>e.join("/").replace(/\/\/+/g,"/"),Ga=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ip=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,op=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function up(e){Er()||Ge(!1);let{basename:t,navigator:n}=R.exports.useContext(Zo),{hash:r,pathname:l,search:i}=Za(e),o=l;if(t!=="/"){let u=lp(e),s=u!=null&&u.endsWith("/");o=l==="/"?t+(s?"/":""):yt([t,l])}return n.createHref({pathname:o,search:i,hash:r})}function Er(){return R.exports.useContext(bo)!=null}function Fl(){return Er()||Ge(!1),R.exports.useContext(bo).location}function eu(){Er()||Ge(!1);let{basename:e,navigator:t}=R.exports.useContext(Zo),{matches:n}=R.exports.useContext(kr),{pathname:r}=Fl(),l=JSON.stringify(n.map(u=>u.pathnameBase)),i=R.exports.useRef(!1);return R.exports.useEffect(()=>{i.current=!0}),R.exports.useCallback(function(u,s){if(s===void 0&&(s={}),!i.current)return;if(typeof u=="number"){t.go(u);return}let a=Ya(u,JSON.parse(l),r);e!=="/"&&(a.pathname=yt([e,a.pathname])),(s.replace?t.replace:t.push)(a,s.state)},[e,t,l,r])}function sp(){let{matches:e}=R.exports.useContext(kr),t=e[e.length-1];return t?t.params:{}}function Za(e){let{matches:t}=R.exports.useContext(kr),{pathname:n}=Fl(),r=JSON.stringify(t.map(l=>l.pathnameBase));return R.exports.useMemo(()=>Ya(e,JSON.parse(r),n),[e,r,n])}function ap(e,t){Er()||Ge(!1);let{matches:n}=R.exports.useContext(kr),r=n[n.length-1],l=r?r.params:{};r&&r.pathname;let i=r?r.pathnameBase:"/";r&&r.route;let o=Fl(),u;if(t){var s;let f=typeof t=="string"?Yt(t):t;i==="/"||((s=f.pathname)==null?void 0:s.startsWith(i))||Ge(!1),u=f}else u=o;let a=u.pathname||"/",h=i==="/"?a:a.slice(i.length)||"/",m=Hd(e,{pathname:h});return cp(m&&m.map(f=>Object.assign({},f,{params:Object.assign({},l,f.params),pathname:yt([i,f.pathname]),pathnameBase:f.pathnameBase==="/"?i:yt([i,f.pathnameBase])})),n)}function cp(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((n,r,l)=>R.exports.createElement(kr.Provider,{children:r.route.element!==void 0?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,l+1))}}),null)}function At(e){Ge(!1)}function fp(e){let{basename:t="/",children:n=null,location:r,navigationType:l=jt.Pop,navigator:i,static:o=!1}=e;Er()&&Ge(!1);let u=Ga(t),s=R.exports.useMemo(()=>({basename:u,navigator:i,static:o}),[u,i,o]);typeof r=="string"&&(r=Yt(r));let{pathname:a="/",search:h="",hash:m="",state:f=null,key:g="default"}=r,x=R.exports.useMemo(()=>{let E=Ja(a,u);return E==null?null:{pathname:E,search:h,hash:m,state:f,key:g}},[u,a,h,m,f,g]);return x==null?null:R.exports.createElement(Zo.Provider,{value:s},R.exports.createElement(bo.Provider,{children:n,value:{location:x,navigationType:l}}))}function dp(e){let{children:t,location:n}=e;return ap(Ji(t),n)}function Ji(e){let t=[];return R.exports.Children.forEach(e,n=>{if(!R.exports.isValidElement(n))return;if(n.type===R.exports.Fragment){t.push.apply(t,Ji(n.props.children));return}n.type!==At&&Ge(!1);let r={caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path};n.props.children&&(r.children=Ji(n.props.children)),t.push(r)}),t}/** + * React Router DOM v6.3.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Gi(){return Gi=Object.assign||function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}const hp=["onClick","reloadDocument","replace","state","target","to"];function mp(e){let{basename:t,children:n,window:r}=e,l=R.exports.useRef();l.current==null&&(l.current=Bd({window:r}));let i=l.current,[o,u]=R.exports.useState({action:i.action,location:i.location});return R.exports.useLayoutEffect(()=>i.listen(u),[i]),R.exports.createElement(fp,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:i})}function vp(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const rr=R.exports.forwardRef(function(t,n){let{onClick:r,reloadDocument:l,replace:i=!1,state:o,target:u,to:s}=t,a=pp(t,hp),h=up(s),m=yp(s,{replace:i,state:o,target:u});function f(g){r&&r(g),!g.defaultPrevented&&!l&&m(g)}return R.exports.createElement("a",Gi({},a,{href:h,onClick:f,ref:n,target:u}))});function yp(e,t){let{target:n,replace:r,state:l}=t===void 0?{}:t,i=eu(),o=Fl(),u=Za(e);return R.exports.useCallback(s=>{if(s.button===0&&(!n||n==="_self")&&!vp(s)){s.preventDefault();let a=!!r||Yi(o)===Yi(u);i(e,{replace:a,state:l})}},[o,i,u,r,l,n,e])}var Zi={},ba={exports:{}},Oe={},ec={exports:{}},tc={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(e){function t(N,T){var D=N.length;N.push(T);e:for(;0>>1,b=N[X];if(0>>1;Xl(ii,D))Mtl(Lr,ii)?(N[X]=Lr,N[Mt]=D,X=Mt):(N[X]=ii,N[Dt]=D,X=Dt);else if(Mtl(Lr,D))N[X]=Lr,N[Mt]=D,X=Mt;else break e}}return T}function l(N,T){var D=N.sortIndex-T.sortIndex;return D!==0?D:N.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],a=[],h=1,m=null,f=3,g=!1,x=!1,E=!1,A=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(N){for(var T=n(a);T!==null;){if(T.callback===null)r(a);else if(T.startTime<=N)r(a),T.sortIndex=T.expirationTime,t(s,T);else break;T=n(a)}}function w(N){if(E=!1,p(N),!x)if(n(s)!==null)x=!0,zt(y);else{var T=n(a);T!==null&&li(w,T.startTime-N)}}function y(N,T){x=!1,E&&(E=!1,d(k),k=-1),g=!0;var D=f;try{for(p(T),m=n(s);m!==null&&(!(m.expirationTime>T)||N&&!j());){var X=m.callback;if(typeof X=="function"){m.callback=null,f=m.priorityLevel;var b=X(m.expirationTime<=T);T=e.unstable_now(),typeof b=="function"?m.callback=b:m===n(s)&&r(s),p(T)}else r(s);m=n(s)}if(m!==null)var Or=!0;else{var Dt=n(a);Dt!==null&&li(w,Dt.startTime-T),Or=!1}return Or}finally{m=null,f=D,g=!1}}var P=!1,S=null,k=-1,z=5,O=-1;function j(){return!(e.unstable_now()-ON||125X?(N.sortIndex=D,t(a,N),n(s)===null&&N===n(a)&&(E?(d(k),k=-1):E=!0,li(w,D-X))):(N.sortIndex=b,t(s,N),x||g||(x=!0,zt(y))),N},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(N){var T=f;return function(){var D=f;f=T;try{return N.apply(this,arguments)}finally{f=D}}}})(tc);(function(e){e.exports=tc})(ec);/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var nc=R.exports,Re=ec.exports;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bi=Object.prototype.hasOwnProperty,gp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,as={},cs={};function wp(e){return bi.call(cs,e)?!0:bi.call(as,e)?!1:gp.test(e)?cs[e]=!0:(as[e]=!0,!1)}function Sp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _p(e,t,n,r){if(t===null||typeof t>"u"||Sp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ye(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[e]=new ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oe[t]=new ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[e]=new ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){oe[e]=new ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var tu=/[\-:]([a-z])/g;function nu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(tu,nu);oe[t]=new ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(tu,nu);oe[t]=new ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(tu,nu);oe[t]=new ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oe[e]=new ye(e,1,!1,e.toLowerCase(),null,!1,!1)});oe.xlinkHref=new ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oe[e]=new ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function ru(e,t,n,r){var l=oe.hasOwnProperty(t)?oe[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var s=` +`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{si=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wn(e):""}function kp(e){switch(e.tag){case 5:return Wn(e.type);case 16:return Wn("Lazy");case 13:return Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 2:case 15:return e=ai(e.type,!1),e;case 11:return e=ai(e.type.render,!1),e;case 1:return e=ai(e.type,!0),e;default:return""}}function ro(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rn:return"Fragment";case nn:return"Portal";case eo:return"Profiler";case lu:return"StrictMode";case to:return"Suspense";case no:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ic:return(e.displayName||"Context")+".Consumer";case lc:return(e._context.displayName||"Context")+".Provider";case iu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ou:return t=e.displayName||null,t!==null?t:ro(e.type)||"Memo";case ct:t=e._payload,e=e._init;try{return ro(e(t))}catch{}}return null}function Ep(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ro(t);case 8:return t===lu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Pt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xp(e){var t=uc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dr(e){e._valueTracker||(e._valueTracker=xp(e))}function sc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function dl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function lo(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function ds(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Pt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ac(e,t){t=t.checked,t!=null&&ru(e,"checked",t,!1)}function io(e,t){ac(e,t);var n=Pt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?oo(e,t.type,n):t.hasOwnProperty("defaultValue")&&oo(e,t.type,Pt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ps(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function oo(e,t,n){(t!=="number"||dl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qn=Array.isArray;function mn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Mr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cp=["Webkit","ms","Moz","O"];Object.keys(Xn).forEach(function(e){Cp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xn[t]=Xn[e]})});function pc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xn.hasOwnProperty(e)&&Xn[e]?(""+t).trim():t+"px"}function hc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=pc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Np=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ao(e,t){if(t){if(Np[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function co(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fo=null;function uu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var po=null,vn=null,yn=null;function vs(e){if(e=Nr(e)){if(typeof po!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Hl(t),po(e.stateNode,e.type,t))}}function mc(e){vn?yn?yn.push(e):yn=[e]:vn=e}function vc(){if(vn){var e=vn,t=yn;if(yn=vn=null,vs(e),t)for(e=0;e>>=0,e===0?32:31-(Fp(e)/jp|0)|0}var Ar=64,Ir=4194304;function Kn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function vl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Kn(u):(i&=o,i!==0&&(r=Kn(i)))}else o=n&~l,o!==0?r=Kn(o):i!==0&&(r=Kn(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function xr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-He(t),e[t]=n}function Hp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Jn),Cs=String.fromCharCode(32),Ns=!1;function Ic(e,t){switch(e){case"keyup":return vh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ln=!1;function gh(e,t){switch(e){case"compositionend":return Fc(t);case"keypress":return t.which!==32?null:(Ns=!0,Cs);case"textInput":return e=t.data,e===Cs&&Ns?null:e;default:return null}}function wh(e,t){if(ln)return e==="compositionend"||!mu&&Ic(e,t)?(e=Mc(),br=du=mt=null,ln=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ls(n)}}function $c(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$c(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hc(){for(var e=window,t=dl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=dl(e.document)}return t}function vu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Rh(e){var t=Hc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$c(n.ownerDocument.documentElement,n)){if(r!==null&&vu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Ts(n,i);var o=Ts(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,on=null,wo=null,Zn=null,So=!1;function zs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;So||on==null||on!==dl(r)||(r=on,"selectionStart"in r&&vu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zn&&fr(Zn,r)||(Zn=r,r=wl(wo,"onSelect"),0an||(e.current=No[an],No[an]=null,an--)}function U(e,t){an++,No[an]=e.current,e.current=t}var Rt={},de=Lt(Rt),Se=Lt(!1),Wt=Rt;function kn(e,t){var n=e.type.contextTypes;if(!n)return Rt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function _e(e){return e=e.childContextTypes,e!=null}function _l(){$(Se),$(de)}function Us(e,t,n){if(de.current!==Rt)throw Error(_(168));U(de,t),U(Se,n)}function Gc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(_(108,Ep(e)||"Unknown",l));return K({},n,r)}function kl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rt,Wt=de.current,U(de,e),U(Se,Se.current),!0}function Bs(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Gc(e,t,Wt),r.__reactInternalMemoizedMergedChildContext=e,$(Se),$(de),U(de,e)):$(Se),U(Se,n)}var be=null,Vl=!1,Ei=!1;function Zc(e){be===null?be=[e]:be.push(e)}function Bh(e){Vl=!0,Zc(e)}function Tt(){if(!Ei&&be!==null){Ei=!0;var e=0,t=F;try{var n=be;for(F=1;e>=o,l-=o,tt=1<<32-He(t)+l|n<k?(z=S,S=null):z=S.sibling;var O=f(d,S,p[k],w);if(O===null){S===null&&(S=z);break}e&&S&&O.alternate===null&&t(d,S),c=i(O,c,k),P===null?y=O:P.sibling=O,P=O,S=z}if(k===p.length)return n(d,S),V&&It(d,k),y;if(S===null){for(;kk?(z=S,S=null):z=S.sibling;var j=f(d,S,O.value,w);if(j===null){S===null&&(S=z);break}e&&S&&j.alternate===null&&t(d,S),c=i(j,c,k),P===null?y=j:P.sibling=j,P=j,S=z}if(O.done)return n(d,S),V&&It(d,k),y;if(S===null){for(;!O.done;k++,O=p.next())O=m(d,O.value,w),O!==null&&(c=i(O,c,k),P===null?y=O:P.sibling=O,P=O);return V&&It(d,k),y}for(S=r(d,S);!O.done;k++,O=p.next())O=g(S,d,k,O.value,w),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?k:O.key),c=i(O,c,k),P===null?y=O:P.sibling=O,P=O);return e&&S.forEach(function(H){return t(d,H)}),V&&It(d,k),y}function A(d,c,p,w){if(typeof p=="object"&&p!==null&&p.type===rn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case zr:e:{for(var y=p.key,P=c;P!==null;){if(P.key===y){if(y=p.type,y===rn){if(P.tag===7){n(d,P.sibling),c=l(P,p.props.children),c.return=d,d=c;break e}}else if(P.elementType===y||typeof y=="object"&&y!==null&&y.$$typeof===ct&&qs(y)===P.type){n(d,P.sibling),c=l(P,p.props),c.ref=Bn(d,P,p),c.return=d,d=c;break e}n(d,P);break}else t(d,P);P=P.sibling}p.type===rn?(c=Vt(p.props.children,d.mode,w,p.key),c.return=d,d=c):(w=ul(p.type,p.key,p.props,null,d.mode,w),w.ref=Bn(d,c,p),w.return=d,d=w)}return o(d);case nn:e:{for(P=p.key;c!==null;){if(c.key===P)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(d,c.sibling),c=l(c,p.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=Ti(p,d.mode,w),c.return=d,d=c}return o(d);case ct:return P=p._init,A(d,c,P(p._payload),w)}if(Qn(p))return x(d,c,p,w);if(An(p))return E(d,c,p,w);Vr(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,p),c.return=d,d=c):(n(d,c),c=Li(p,d.mode,w),c.return=d,d=c),o(d)):n(d,c)}return A}var xn=uf(!0),sf=uf(!1),Pr={},Je=Lt(Pr),mr=Lt(Pr),vr=Lt(Pr);function $t(e){if(e===Pr)throw Error(_(174));return e}function Cu(e,t){switch(U(vr,t),U(mr,e),U(Je,Pr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:so(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=so(t,e)}$(Je),U(Je,t)}function Cn(){$(Je),$(mr),$(vr)}function af(e){$t(vr.current);var t=$t(Je.current),n=so(t,e.type);t!==n&&(U(mr,e),U(Je,n))}function Nu(e){mr.current===e&&($(Je),$(mr))}var W=Lt(0);function Rl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xi=[];function Pu(){for(var e=0;en?n:4,e(!0);var r=Ci.transition;Ci.transition={};try{e(!1),t()}finally{F=n,Ci.transition=r}}function Cf(){return Ie().memoizedState}function Wh(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Nf(e))Pf(t,n);else if(n=nf(e,t,n,r),n!==null){var l=me();Ve(n,e,r,l),Rf(n,t,r)}}function Qh(e,t,n){var r=xt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nf(e))Pf(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,We(u,o)){var s=t.interleaved;s===null?(l.next=l,Eu(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=nf(e,t,l,r),n!==null&&(l=me(),Ve(n,e,r,l),Rf(n,t,r))}}function Nf(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Pf(e,t){bn=Ol=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rf(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,au(e,n)}}var Ll={readContext:Ae,useCallback:ae,useContext:ae,useEffect:ae,useImperativeHandle:ae,useInsertionEffect:ae,useLayoutEffect:ae,useMemo:ae,useReducer:ae,useRef:ae,useState:ae,useDebugValue:ae,useDeferredValue:ae,useTransition:ae,useMutableSource:ae,useSyncExternalStore:ae,useId:ae,unstable_isNewReconciler:!1},Kh={readContext:Ae,useCallback:function(e,t){return qe().memoizedState=[e,t===void 0?null:t],e},useContext:Ae,useEffect:Ys,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rl(4194308,4,Sf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return rl(4,2,e,t)},useMemo:function(e,t){var n=qe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qe();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Wh.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=qe();return e={current:e},t.memoizedState=e},useState:Xs,useDebugValue:zu,useDeferredValue:function(e){return qe().memoizedState=e},useTransition:function(){var e=Xs(!1),t=e[0];return e=Vh.bind(null,e[1]),qe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,l=qe();if(V){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),ne===null)throw Error(_(349));(Kt&30)!==0||df(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Ys(hf.bind(null,r,i,e),[e]),r.flags|=2048,wr(9,pf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=qe(),t=ne.identifierPrefix;if(V){var n=nt,r=tt;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Xe]=t,e[hr]=r,Ff(e,t,!1,!1),t.stateNode=e;e:{switch(o=co(n,r),n){case"dialog":B("cancel",e),B("close",e),l=r;break;case"iframe":case"object":case"embed":B("load",e),l=r;break;case"video":case"audio":for(l=0;lPn&&(t.flags|=128,r=!0,$n(i,!1),t.lanes=4194304)}else{if(!r)if(e=Rl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$n(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!V)return ce(t),null}else 2*Y()-i.renderingStartTime>Pn&&n!==1073741824&&(t.flags|=128,r=!0,$n(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Y(),t.sibling=null,n=W.current,U(W,r?n&1|2:n&1),t):(ce(t),null);case 22:case 23:return ju(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Ce&1073741824)!==0&&(ce(t),t.subtreeFlags&6&&(t.flags|=8192)):ce(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function em(e,t){switch(gu(t),t.tag){case 1:return _e(t.type)&&_l(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cn(),$(Se),$(de),Pu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Nu(t),null;case 13:if($(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));En()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(W),null;case 4:return Cn(),null;case 10:return ku(t.type._context),null;case 22:case 23:return ju(),null;case 24:return null;default:return null}}var Qr=!1,fe=!1,tm=typeof WeakSet=="function"?WeakSet:Set,C=null;function pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(e,t,r)}else n.current=null}function jo(e,t,n){try{n()}catch(r){q(e,t,r)}}var la=!1;function nm(e,t){if(_o=yl,e=Hc(),vu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,a=0,h=0,m=e,f=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(u=o+l),m!==i||r!==0&&m.nodeType!==3||(s=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(g=m.firstChild)!==null;)f=m,m=g;for(;;){if(m===e)break t;if(f===n&&++a===l&&(u=o),f===i&&++h===r&&(s=o),(g=m.nextSibling)!==null)break;m=f,f=m.parentNode}m=g}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ko={focusedElem:e,selectionRange:n},yl=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var x=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var E=x.memoizedProps,A=x.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?E:Ue(t.type,E),A);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(w){q(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return x=la,la=!1,x}function er(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&jo(t,n,i)}l=l.next}while(l!==r)}}function Kl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Uo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Bf(e){var t=e.alternate;t!==null&&(e.alternate=null,Bf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xe],delete t[hr],delete t[Co],delete t[jh],delete t[Uh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $f(e){return e.tag===5||e.tag===3||e.tag===4}function ia(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$f(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Bo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Sl));else if(r!==4&&(e=e.child,e!==null))for(Bo(e,t,n),e=e.sibling;e!==null;)Bo(e,t,n),e=e.sibling}function $o(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($o(e,t,n),e=e.sibling;e!==null;)$o(e,t,n),e=e.sibling}var le=null,Be=!1;function at(e,t,n){for(n=n.child;n!==null;)Hf(e,t,n),n=n.sibling}function Hf(e,t,n){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(jl,n)}catch{}switch(n.tag){case 5:fe||pn(n,t);case 6:var r=le,l=Be;le=null,at(e,t,n),le=r,Be=l,le!==null&&(Be?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Be?(e=le,n=n.stateNode,e.nodeType===8?ki(e.parentNode,n):e.nodeType===1&&ki(e,n),ar(e)):ki(le,n.stateNode));break;case 4:r=le,l=Be,le=n.stateNode.containerInfo,Be=!0,at(e,t,n),le=r,Be=l;break;case 0:case 11:case 14:case 15:if(!fe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&((i&2)!==0||(i&4)!==0)&&jo(n,t,o),l=l.next}while(l!==r)}at(e,t,n);break;case 1:if(!fe&&(pn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){q(n,t,u)}at(e,t,n);break;case 21:at(e,t,n);break;case 22:n.mode&1?(fe=(r=fe)||n.memoizedState!==null,at(e,t,n),fe=r):at(e,t,n);break;default:at(e,t,n)}}function oa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tm),t.forEach(function(r){var l=fm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Fe(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lm(r/1960))-r,10e?16:e,vt===null)var r=!1;else{if(e=vt,vt=null,Dl=0,(I&6)!==0)throw Error(_(331));var l=I;for(I|=4,C=e.current;C!==null;){var i=C,o=i.child;if((C.flags&16)!==0){var u=i.deletions;if(u!==null){for(var s=0;sY()-Iu?Ht(e,0):Au|=n),ke(e,t)}function Jf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ir,Ir<<=1,(Ir&130023424)===0&&(Ir=4194304)));var n=me();e=ot(e,t),e!==null&&(xr(e,t,n),ke(e,n))}function cm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jf(e,n)}function fm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Jf(e,n)}var Gf;Gf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Se.current)we=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return we=!1,Zh(e,t,n);we=(e.flags&131072)!==0}else we=!1,V&&(t.flags&1048576)!==0&&bc(t,xl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ll(e,t),e=t.pendingProps;var l=kn(t,de.current);wn(t,n),l=Ou(null,t,r,e,l,n);var i=Lu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_e(r)?(i=!0,kl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,xu(t),l.updater=Wl,t.stateNode=l,l._reactInternals=t,To(t,r,e,n),t=Mo(null,t,r,!0,i,n)):(t.tag=0,V&&i&&yu(t),he(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ll(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=pm(r),e=Ue(r,e),l){case 0:t=Do(null,t,r,e,n);break e;case 1:t=ta(null,t,r,e,n);break e;case 11:t=bs(null,t,r,e,n);break e;case 14:t=ea(null,t,r,Ue(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),Do(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),ta(e,t,r,l,n);case 3:e:{if(Mf(t),e===null)throw Error(_(387));r=t.pendingProps,i=t.memoizedState,l=i.element,rf(e,t),Pl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Nn(Error(_(423)),t),t=na(e,t,r,n,l);break e}else if(r!==l){l=Nn(Error(_(424)),t),t=na(e,t,r,n,l);break e}else for(Ne=_t(t.stateNode.containerInfo.firstChild),Pe=t,V=!0,$e=null,n=sf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(En(),r===l){t=ut(e,t,n);break e}he(e,t,r,n)}t=t.child}return t;case 5:return af(t),e===null&&Ro(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Eo(r,l)?o=null:i!==null&&Eo(r,i)&&(t.flags|=32),Df(e,t),he(e,t,o,n),t.child;case 6:return e===null&&Ro(t),null;case 13:return Af(e,t,n);case 4:return Cu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xn(t,null,r,n):he(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),bs(e,t,r,l,n);case 7:return he(e,t,t.pendingProps,n),t.child;case 8:return he(e,t,t.pendingProps.children,n),t.child;case 12:return he(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,U(Cl,r._currentValue),r._currentValue=o,i!==null)if(We(i.value,o)){if(i.children===l.children&&!Se.current){t=ut(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=rt(-1,n&-n),s.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var h=a.pending;h===null?s.next=s:(s.next=h.next,h.next=s),a.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Oo(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(_(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Oo(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}he(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,wn(t,n),l=Ae(l),r=r(l),t.flags|=1,he(e,t,r,n),t.child;case 14:return r=t.type,l=Ue(r,t.pendingProps),l=Ue(r.type,l),ea(e,t,r,l,n);case 15:return Tf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),ll(e,t),t.tag=1,_e(r)?(e=!0,kl(t)):e=!1,wn(t,n),of(t,r,l),To(t,r,l,n),Mo(null,t,r,!0,e,n);case 19:return If(e,t,n);case 22:return zf(e,t,n)}throw Error(_(156,t.tag))};function Zf(e,t){return Ec(e,t)}function dm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function De(e,t,n,r){return new dm(e,t,n,r)}function Bu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pm(e){if(typeof e=="function")return Bu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===iu)return 11;if(e===ou)return 14}return 2}function Ct(e,t){var n=e.alternate;return n===null?(n=De(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ul(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Bu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case rn:return Vt(n.children,l,i,t);case lu:o=8,l|=8;break;case eo:return e=De(12,n,t,l|2),e.elementType=eo,e.lanes=i,e;case to:return e=De(13,n,t,l),e.elementType=to,e.lanes=i,e;case no:return e=De(19,n,t,l),e.elementType=no,e.lanes=i,e;case oc:return Xl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lc:o=10;break e;case ic:o=9;break e;case iu:o=11;break e;case ou:o=14;break e;case ct:o=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=De(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Vt(e,t,n,r){return e=De(7,e,r,t),e.lanes=n,e}function Xl(e,t,n,r){return e=De(22,e,r,t),e.elementType=oc,e.lanes=n,e.stateNode={isHidden:!1},e}function Li(e,t,n){return e=De(6,e,null,t),e.lanes=n,e}function Ti(e,t,n){return t=De(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fi(0),this.expirationTimes=fi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function $u(e,t,n,r,l,i,o,u,s){return e=new hm(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=De(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xu(i),e}function mm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Oe})(ba);var ha=ba.exports;Zi.createRoot=ha.createRoot,Zi.hydrateRoot=ha.hydrateRoot;const Dn=R.exports.createContext(null),Qu=R.exports.createContext(null);const ma={username:"admin",password:"admin@tps"};var Ku={exports:{}},bl={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Sm=R.exports,_m=Symbol.for("react.element"),km=Symbol.for("react.fragment"),Em=Object.prototype.hasOwnProperty,xm=Sm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cm={key:!0,ref:!0,__self:!0,__source:!0};function nd(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Em.call(t,r)&&!Cm.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:_m,type:e,key:i,ref:o,props:l,_owner:xm.current}}bl.Fragment=km;bl.jsx=nd;bl.jsxs=nd;(function(e){e.exports=bl})(Ku);const v=Ku.exports.jsx,L=Ku.exports.jsxs,Nm=()=>{const[e,t]=R.exports.useState({username:"",password:"",remember:!1,check:!1,valid:!1}),{user:n,setUser:r}=R.exports.useContext(Dn),l=eu();return R.exports.useEffect(()=>{e.username===ma.username&&e.password===ma.password?t({...e,valid:!0}):t({...e,valid:!1})},[e.username,e.password]),R.exports.useEffect(()=>{n.username&&l("/dashboard")},[n]),v("main",{className:"login",children:v("div",{className:"container",children:v("div",{className:"login inner",children:L("div",{className:"login__wrapper",children:[v("h1",{className:"login__header",children:"Login"}),L("form",{className:"login__form",onSubmit:i=>{i.preventDefault()},children:[L("div",{className:"login__form__block",children:[v("label",{htmlFor:"username",children:"Username"}),v("input",{required:!0,autoComplete:"true",type:"text",id:"username",placeholder:"username",onChange:i=>{t({...e,username:i.target.value})}})]}),L("div",{className:"login__form__block",children:[v("label",{htmlFor:"password",children:"Password"}),v("input",{required:!0,autoComplete:"true",type:"password",id:"password",placeholder:"password",onChange:i=>{t({...e,password:i.target.value})}})]}),v("div",{className:"login__form__block--check",children:L("label",{children:[v("input",{type:"checkbox",name:"remember",id:"remember",onChange:i=>{t({...e,remember:i.target.checked})}}),v("span",{children:"Remember me"})]})}),v("span",{className:e.check&&!e.valid?"login__form__error active":"login__form__error",children:"Invalid credentials"}),v("button",{className:"login__form__button login__form__button--violet",onClick:()=>{if(t({...e,check:!0}),e.valid&&r({username:e.username,accessLevel:"admin"}),e.remember){const i={username:e.username,accessLevel:"admin"};localStorage.setItem("userData",JSON.stringify(i))}},children:"Login"})]})]})})})})};var rd={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},va=cl.createContext&&cl.createContext(rd),Nt=globalThis&&globalThis.__assign||function(){return Nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const{user:n,setUser:r}=R.exports.useContext(Dn),[l,i]=R.exports.useState(!1);return v("nav",{className:"nav",children:v("div",{className:"container",children:L("div",{className:"nav inner",children:[L("div",{className:"nav__left",children:[v(rr,{to:"/dashboard",className:"nav__img",children:v(Lm,{})}),v(Tm,{type:"button",className:"nav__btn",onClick:()=>t(!e)})]}),v("div",{className:"nav__right",children:L("div",{className:"nav__right__user",onClick:()=>{i(!l)},children:[v(Mm,{className:"nav__right__user__img"}),v("span",{children:"Profile"}),v("div",{className:l?"nav__dropdown active":"nav__dropdown",children:L("ul",{className:"nav__dropdown__wrapper",children:[L("li",{children:[v("h2",{children:"Username:"}),v("p",{children:n.username})]}),L("li",{children:[v("h2",{children:"Access:"}),v("p",{children:n.accessLevel})]}),v("li",{children:v("button",{type:"button",onClick:()=>{localStorage.removeItem("userData"),r({username:"",accessLevel:""})},children:"Log out"})})]})})]})})]})})})};function id(e){return Qe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zm-5-.5H7a.5.5 0 0 1 0 1H4.5a.5.5 0 0 1 0-1zm0 3h7a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5z"}}]})(e)}function Im(e){return Qe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M4 18v-.65c0-.34.16-.66.41-.81C6.1 15.53 8.03 15 10 15c.03 0 .05 0 .08.01.1-.7.3-1.37.59-1.98-.22-.02-.44-.03-.67-.03-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.42-.6-.75-1.28-.97-2H4zM10 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63zM17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}}]})(e)}function od(e){return Qe({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M3 9C2.44772 9 2 9.44772 2 10C2 10.5523 2.44772 11 3 11H21C21.5523 11 22 10.5523 22 10C22 9.44772 21.5523 9 21 9H3Z",fill:"currentColor"}},{tag:"path",attr:{d:"M3 13C2.44772 13 2 13.4477 2 14C2 14.5523 2.44772 15 3 15H15C15.5523 15 16 14.5523 16 14C16 13.4477 15.5523 13 15 13H3Z",fill:"currentColor"}}]})(e)}function Ko(e){return Qe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m13 3 3.293 3.293-7 7 1.414 1.414 7-7L21 11V3z"}},{tag:"path",attr:{d:"M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z"}}]})(e)}function Fm(e){return Qe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16 13v-2H7V8l-5 4 5 4v-3z"}},{tag:"path",attr:{d:"M20 3h-9c-1.103 0-2 .897-2 2v4h2V5h9v14h-9v-4H9v4c0 1.103.897 2 2 2h9c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2z"}}]})(e)}const jm=({aside:e,setAside:t})=>{const{setUser:n}=R.exports.useContext(Dn);return v("aside",{className:e?"aside active":"aside",children:L("ul",{className:"aside__list",children:[L("li",{className:"aside__list__element aside__list__element--title",children:[v(zm,{className:"aside__img"}),v("h2",{children:"Elements"})]}),v("li",{className:"aside__list__element",children:L(rr,{to:"/posts",children:[v(id,{className:"aside__list__element__img"}),v("span",{children:"Posts"})]})}),L("li",{className:"aside__list__element aside__list__element--title",children:[v(Im,{className:"aside__img"}),v("h2",{children:"Account"})]}),v("li",{className:"aside__list__element",children:L(rr,{to:"/user_details",children:[v(od,{className:"aside__list__element__img"}),v("span",{children:"Details"})]})}),v("li",{className:"aside__list__element",onClick:()=>{localStorage.removeItem("userData"),n({username:"",accessLevel:""})},children:L("div",{children:[v(Fm,{className:"aside__list__element__img"}),v("span",{children:"Log out"})]})})]})})},Vn=({child:e})=>{const t=eu(),{user:n,setUser:r}=R.exports.useContext(Dn),[l,i]=R.exports.useState(!0);return R.exports.useEffect(()=>{n.username||t("/login")},[n]),L("main",{className:"main",children:[v("div",{className:"main__top",children:v(Am,{aside:l,setAside:i})}),L("div",{className:"main__mid",children:[v(jm,{aside:l,setAside:i}),v("div",{className:"main-inner",children:e})]})]})},Xr=({color:e,topNumber:t,text:n})=>L("div",{className:`statcard ${e}`,children:[v("span",{children:t}),v("p",{children:n})]}),Um=()=>v("main",{className:"dashboard",children:v("div",{className:"container",children:L("div",{className:"dashboard inner",children:[L("div",{className:"dashboard__head",children:[v(Dm,{className:"dashboard__img"}),v("h1",{children:"Dashboard"})]}),L("div",{className:"dashboard__content__stats",children:[v(Xr,{color:"yellow",text:"Lorem, ipsum dolor sit amet consectetur adipisicing elit.",topNumber:123}),v(Xr,{color:"green",text:"Lorem, ipsum dolor sit amet consectetur adipisicing elit.",topNumber:123}),v(Xr,{color:"violet",text:"Lorem, ipsum dolor sit amet consectetur adipisicing elit.",topNumber:123}),v(Xr,{color:"black",text:"Lorem, ipsum dolor sit amet consectetur adipisicing elit.",topNumber:123})]})]})})});var Yr,Bm=new Uint8Array(16);function $m(){if(!Yr&&(Yr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Yr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yr(Bm)}const Hm=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Vm(e){return typeof e=="string"&&Hm.test(e)}var re=[];for(var zi=0;zi<256;++zi)re.push((zi+256).toString(16).substr(1));function Wm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(re[e[t+0]]+re[e[t+1]]+re[e[t+2]]+re[e[t+3]]+"-"+re[e[t+4]]+re[e[t+5]]+"-"+re[e[t+6]]+re[e[t+7]]+"-"+re[e[t+8]]+re[e[t+9]]+"-"+re[e[t+10]]+re[e[t+11]]+re[e[t+12]]+re[e[t+13]]+re[e[t+14]]+re[e[t+15]]).toLowerCase();if(!Vm(n))throw TypeError("Stringified UUID is invalid");return n}function Di(e,t,n){e=e||{};var r=e.random||(e.rng||$m)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var l=0;l<16;++l)t[n+l]=r[l];return t}return Wm(r)}var ud={exports:{}},qu={exports:{}},sd=function(t,n){return function(){for(var l=new Array(arguments.length),i=0;i"u"}function Km(e){return e!==null&&!Il(e)&&e.constructor!==null&&!Il(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var ad=Zt("ArrayBuffer");function qm(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ad(e.buffer),t}function Xm(e){return typeof e=="string"}function Ym(e){return typeof e=="number"}function cd(e){return e!==null&&typeof e=="object"}function sl(e){if(Yu(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var Jm=Zt("Date"),Gm=Zt("File"),Zm=Zt("Blob"),bm=Zt("FileList");function Gu(e){return Xu.call(e)==="[object Function]"}function e0(e){return cd(e)&&Gu(e.pipe)}function t0(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Xu.call(e)===t||Gu(e.toString)&&e.toString()===t)}var n0=Zt("URLSearchParams");function r0(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function l0(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Zu(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Ju(e))for(var n=0,r=e.length;n0;)i=r[l],o[i]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function a0(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function c0(e){if(!e)return null;var t=e.length;if(Il(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var f0=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),ue={isArray:Ju,isArrayBuffer:ad,isBuffer:Km,isFormData:t0,isArrayBufferView:qm,isString:Xm,isNumber:Ym,isObject:cd,isPlainObject:sl,isUndefined:Il,isDate:Jm,isFile:Gm,isBlob:Zm,isFunction:Gu,isStream:e0,isURLSearchParams:n0,isStandardBrowserEnv:l0,forEach:Zu,merge:qo,extend:i0,trim:r0,stripBOM:o0,inherits:u0,toFlatObject:s0,kindOf:Yu,kindOfTest:Zt,endsWith:a0,toArray:c0,isTypedArray:f0,isFileList:bm},en=ue;function ya(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var fd=function(t,n,r){if(!n)return t;var l;if(r)l=r(n);else if(en.isURLSearchParams(n))l=n.toString();else{var i=[];en.forEach(n,function(s,a){s===null||typeof s>"u"||(en.isArray(s)?a=a+"[]":s=[s],en.forEach(s,function(m){en.isDate(m)?m=m.toISOString():en.isObject(m)&&(m=JSON.stringify(m)),i.push(ya(a)+"="+ya(m))}))}),l=i.join("&")}if(l){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t},d0=ue;function ei(){this.handlers=[]}ei.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};ei.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};ei.prototype.forEach=function(t){d0.forEach(this.handlers,function(r){r!==null&&t(r)})};var p0=ei,h0=ue,m0=function(t,n){h0.forEach(t,function(l,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=l,delete t[i])})},dd=ue;function Rn(e,t,n,r,l){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l)}dd.inherits(Rn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var pd=Rn.prototype,hd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){hd[e]={value:e}});Object.defineProperties(Rn,hd);Object.defineProperty(pd,"isAxiosError",{value:!0});Rn.from=function(e,t,n,r,l,i){var o=Object.create(pd);return dd.toFlatObject(e,o,function(s){return s!==Error.prototype}),Rn.call(o,e.message,t,n,r,l),o.name=e.name,i&&Object.assign(o,i),o};var Mn=Rn,md={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},je=ue;function v0(e,t){t=t||new FormData;var n=[];function r(i){return i===null?"":je.isDate(i)?i.toISOString():je.isArrayBuffer(i)||je.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Buffer.from(i):i}function l(i,o){if(je.isPlainObject(i)||je.isArray(i)){if(n.indexOf(i)!==-1)throw Error("Circular reference detected in "+o);n.push(i),je.forEach(i,function(s,a){if(!je.isUndefined(s)){var h=o?o+"."+a:a,m;if(s&&!o&&typeof s=="object"){if(je.endsWith(a,"{}"))s=JSON.stringify(s);else if(je.endsWith(a,"[]")&&(m=je.toArray(s))){m.forEach(function(f){!je.isUndefined(f)&&t.append(h,r(f))});return}}l(s,h)}}),n.pop()}else t.append(o,r(i))}return l(e),t}var vd=v0,Mi,ga;function y0(){if(ga)return Mi;ga=1;var e=Mn;return Mi=function(n,r,l){var i=l.config.validateStatus;!l.status||!i||i(l.status)?n(l):r(new e("Request failed with status code "+l.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(l.status/100)-4],l.config,l.request,l))},Mi}var Ai,wa;function g0(){if(wa)return Ai;wa=1;var e=ue;return Ai=e.isStandardBrowserEnv()?function(){return{write:function(r,l,i,o,u,s){var a=[];a.push(r+"="+encodeURIComponent(l)),e.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),e.isString(o)&&a.push("path="+o),e.isString(u)&&a.push("domain="+u),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(r){var l=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return l?decodeURIComponent(l[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ai}var w0=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},S0=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},_0=w0,k0=S0,yd=function(t,n){return t&&!_0(n)?k0(t,n):n},Ii,Sa;function E0(){if(Sa)return Ii;Sa=1;var e=ue,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Ii=function(r){var l={},i,o,u;return r&&e.forEach(r.split(` +`),function(a){if(u=a.indexOf(":"),i=e.trim(a.substr(0,u)).toLowerCase(),o=e.trim(a.substr(u+1)),i){if(l[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?l[i]=(l[i]?l[i]:[]).concat([o]):l[i]=l[i]?l[i]+", "+o:o}}),l},Ii}var Fi,_a;function x0(){if(_a)return Fi;_a=1;var e=ue;return Fi=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),l;function i(o){var u=o;return n&&(r.setAttribute("href",u),u=r.href),r.setAttribute("href",u),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return l=i(window.location.href),function(u){var s=e.isString(u)?i(u):u;return s.protocol===l.protocol&&s.host===l.host}}():function(){return function(){return!0}}(),Fi}var ji,ka;function ti(){if(ka)return ji;ka=1;var e=Mn,t=ue;function n(r){e.call(this,r==null?"canceled":r,e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),ji=n,ji}var Ui,Ea;function C0(){return Ea||(Ea=1,Ui=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Ui}var Bi,xa;function Ca(){if(xa)return Bi;xa=1;var e=ue,t=y0(),n=g0(),r=fd,l=yd,i=E0(),o=x0(),u=md,s=Mn,a=ti(),h=C0();return Bi=function(f){return new Promise(function(x,E){var A=f.data,d=f.headers,c=f.responseType,p;function w(){f.cancelToken&&f.cancelToken.unsubscribe(p),f.signal&&f.signal.removeEventListener("abort",p)}e.isFormData(A)&&e.isStandardBrowserEnv()&&delete d["Content-Type"];var y=new XMLHttpRequest;if(f.auth){var P=f.auth.username||"",S=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";d.Authorization="Basic "+btoa(P+":"+S)}var k=l(f.baseURL,f.url);y.open(f.method.toUpperCase(),r(k,f.params,f.paramsSerializer),!0),y.timeout=f.timeout;function z(){if(!!y){var H="getAllResponseHeaders"in y?i(y.getAllResponseHeaders()):null,se=!c||c==="text"||c==="json"?y.responseText:y.response,pe={data:se,status:y.status,statusText:y.statusText,headers:H,config:f,request:y};t(function(zt){x(zt),w()},function(zt){E(zt),w()},pe),y=null}}if("onloadend"in y?y.onloadend=z:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(z)},y.onabort=function(){!y||(E(new s("Request aborted",s.ECONNABORTED,f,y)),y=null)},y.onerror=function(){E(new s("Network Error",s.ERR_NETWORK,f,y,y)),y=null},y.ontimeout=function(){var se=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",pe=f.transitional||u;f.timeoutErrorMessage&&(se=f.timeoutErrorMessage),E(new s(se,pe.clarifyTimeoutError?s.ETIMEDOUT:s.ECONNABORTED,f,y)),y=null},e.isStandardBrowserEnv()){var O=(f.withCredentials||o(k))&&f.xsrfCookieName?n.read(f.xsrfCookieName):void 0;O&&(d[f.xsrfHeaderName]=O)}"setRequestHeader"in y&&e.forEach(d,function(se,pe){typeof A>"u"&&pe.toLowerCase()==="content-type"?delete d[pe]:y.setRequestHeader(pe,se)}),e.isUndefined(f.withCredentials)||(y.withCredentials=!!f.withCredentials),c&&c!=="json"&&(y.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&y.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(p=function(H){!y||(E(!H||H&&H.type?new a:H),y.abort(),y=null)},f.cancelToken&&f.cancelToken.subscribe(p),f.signal&&(f.signal.aborted?p():f.signal.addEventListener("abort",p))),A||(A=null);var j=h(k);if(j&&["http","https","file"].indexOf(j)===-1){E(new s("Unsupported protocol "+j+":",s.ERR_BAD_REQUEST,f));return}y.send(A)})},Bi}var $i,Na;function N0(){return Na||(Na=1,$i=null),$i}var ee=ue,Pa=m0,Ra=Mn,P0=md,R0=vd,O0={"Content-Type":"application/x-www-form-urlencoded"};function Oa(e,t){!ee.isUndefined(e)&&ee.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function L0(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ca()),e}function T0(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var ni={transitional:P0,adapter:L0(),transformRequest:[function(t,n){if(Pa(n,"Accept"),Pa(n,"Content-Type"),ee.isFormData(t)||ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return Oa(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=ee.isObject(t),l=n&&n["Content-Type"],i;if((i=ee.isFileList(t))||r&&l==="multipart/form-data"){var o=this.env&&this.env.FormData;return R0(i?{"files[]":t}:t,o&&new o)}else if(r||l==="application/json")return Oa(n,"application/json"),T0(t);return t}],transformResponse:[function(t){var n=this.transitional||ni.transitional,r=n&&n.silentJSONParsing,l=n&&n.forcedJSONParsing,i=!r&&this.responseType==="json";if(i||l&&ee.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i)throw o.name==="SyntaxError"?Ra.from(o,Ra.ERR_BAD_RESPONSE,this,null,this.response):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:N0()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ee.forEach(["delete","get","head"],function(t){ni.headers[t]={}});ee.forEach(["post","put","patch"],function(t){ni.headers[t]=ee.merge(O0)});var bu=ni,z0=ue,D0=bu,M0=function(t,n,r){var l=this||D0;return z0.forEach(r,function(o){t=o.call(l,t,n)}),t},Hi,La;function gd(){return La||(La=1,Hi=function(t){return!!(t&&t.__CANCEL__)}),Hi}var Ta=ue,Vi=M0,A0=gd(),I0=bu,F0=ti();function Wi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new F0}var j0=function(t){Wi(t),t.headers=t.headers||{},t.data=Vi.call(t,t.data,t.headers,t.transformRequest),t.headers=Ta.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Ta.forEach(["delete","get","head","post","put","patch","common"],function(l){delete t.headers[l]});var n=t.adapter||I0.adapter;return n(t).then(function(l){return Wi(t),l.data=Vi.call(t,l.data,l.headers,t.transformResponse),l},function(l){return A0(l)||(Wi(t),l&&l.response&&(l.response.data=Vi.call(t,l.response.data,l.response.headers,t.transformResponse))),Promise.reject(l)})},xe=ue,wd=function(t,n){n=n||{};var r={};function l(h,m){return xe.isPlainObject(h)&&xe.isPlainObject(m)?xe.merge(h,m):xe.isPlainObject(m)?xe.merge({},m):xe.isArray(m)?m.slice():m}function i(h){if(xe.isUndefined(n[h])){if(!xe.isUndefined(t[h]))return l(void 0,t[h])}else return l(t[h],n[h])}function o(h){if(!xe.isUndefined(n[h]))return l(void 0,n[h])}function u(h){if(xe.isUndefined(n[h])){if(!xe.isUndefined(t[h]))return l(void 0,t[h])}else return l(void 0,n[h])}function s(h){if(h in n)return l(t[h],n[h]);if(h in t)return l(void 0,t[h])}var a={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:s};return xe.forEach(Object.keys(t).concat(Object.keys(n)),function(m){var f=a[m]||i,g=f(m);xe.isUndefined(g)&&f!==s||(r[m]=g)}),r},Qi,za;function Sd(){return za||(za=1,Qi={version:"0.27.2"}),Qi}var U0=Sd().version,dt=Mn,es={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){es[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Da={};es.transitional=function(t,n,r){function l(i,o){return"[Axios v"+U0+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return function(i,o,u){if(t===!1)throw new dt(l(o," has been removed"+(n?" in "+n:"")),dt.ERR_DEPRECATED);return n&&!Da[o]&&(Da[o]=!0,console.warn(l(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,u):!0}};function B0(e,t,n){if(typeof e!="object")throw new dt("options must be an object",dt.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),l=r.length;l-- >0;){var i=r[l],o=t[i];if(o){var u=e[i],s=u===void 0||o(u,i,e);if(s!==!0)throw new dt("option "+i+" must be "+s,dt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new dt("Unknown option "+i,dt.ERR_BAD_OPTION)}}var $0={assertOptions:B0,validators:es},_d=ue,H0=fd,Ma=p0,Aa=j0,ri=wd,V0=yd,kd=$0,tn=kd.validators;function On(e){this.defaults=e,this.interceptors={request:new Ma,response:new Ma}}On.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ri(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&kd.assertOptions(r,{silentJSONParsing:tn.transitional(tn.boolean),forcedJSONParsing:tn.transitional(tn.boolean),clarifyTimeoutError:tn.transitional(tn.boolean)},!1);var l=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(i=i&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});var o=[];this.interceptors.response.forEach(function(g){o.push(g.fulfilled,g.rejected)});var u;if(!i){var s=[Aa,void 0];for(Array.prototype.unshift.apply(s,l),s=s.concat(o),u=Promise.resolve(n);s.length;)u=u.then(s.shift(),s.shift());return u}for(var a=n;l.length;){var h=l.shift(),m=l.shift();try{a=h(a)}catch(f){m(f);break}}try{u=Aa(a)}catch(f){return Promise.reject(f)}for(;o.length;)u=u.then(o.shift(),o.shift());return u};On.prototype.getUri=function(t){t=ri(this.defaults,t);var n=V0(t.baseURL,t.url);return H0(n,t.params,t.paramsSerializer)};_d.forEach(["delete","get","head","options"],function(t){On.prototype[t]=function(n,r){return this.request(ri(r||{},{method:t,url:n,data:(r||{}).data}))}});_d.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,u){return this.request(ri(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}On.prototype[t]=n(),On.prototype[t+"Form"]=n(!0)});var W0=On,Ki,Ia;function Q0(){if(Ia)return Ki;Ia=1;var e=ti();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var l=this;this.promise.then(function(i){if(!!l._listeners){var o,u=l._listeners.length;for(o=0;o{G0.get("http://95.85.124.41:8080/posts").then(t=>{e(t.data)}).catch()},et=e=>{const t=e.toString().split("T"),n=t[0],l=t[1].split(".")[0];return[n,l]},b0=["ID","Category","Title","Link","Date","Summary","Created","Updated"],ev=()=>{const{posts:e,setPosts:t}=R.exports.useContext(Qu),[n,r]=R.exports.useState("All");return R.exports.useEffect(()=>{Z0(t)},[]),v("main",{className:"posts",children:v("div",{className:"container",children:L("div",{className:"posts inner",children:[L("div",{className:"dashboard__head",children:[v(id,{className:"dashboard__img"}),v("h1",{children:"Posts"})]}),v("div",{className:"posts_select",children:L("select",{value:n,onChange:l=>{r(l.target.value)},children:[v("option",{value:"All",defaultChecked:!0,children:"All"}),v("option",{value:"TurkmenPortal",children:"TurkmenPortal"}),v("option",{value:"Orient",children:"Orient"})]})}),v("table",{className:"posts__table",children:L("tbody",{children:[v("tr",{className:"posts__table__head",children:b0.map(l=>v("th",{children:l},Di()))}),e[0].id!==-1?n==="All"?e.map((l,i)=>v(rr,{className:"post-link",to:`/posts/${l.id}`,children:L("tr",{children:[v("td",{children:i+1}),v("td",{children:l.category}),v("td",{children:l.title}),v("td",{children:v("a",{href:l.link,target:"_blank",rel:"noopener noreferrer",children:v(Ko,{})})}),v("td",{children:et(l.date)[0]}),v("td",{children:l.summary}),v("td",{children:et(l.createdAt)[0]}),v("td",{children:et(l.updatedAt)[0]})]})},Di())):e.map((l,i)=>l.category===n?v(rr,{className:"post-link",to:`/posts/${l.id}`,children:L("tr",{children:[v("td",{children:i+1}),v("td",{children:l.category}),v("td",{children:l.title}),v("td",{children:v("a",{href:l.link,target:"_blank",rel:"noopener noreferrer",children:v(Ko,{})})}),v("td",{children:et(l.date)[0]}),v("td",{children:l.summary}),v("td",{children:et(l.createdAt)[0]}),v("td",{children:et(l.updatedAt)[0]})]})},Di()):""):""]})})]})})})},tv=()=>{const{user:e}=R.exports.useContext(Dn);return v("main",{className:"details",children:v("div",{className:"container",children:L("div",{className:"details inner",children:[L("div",{className:"dashboard__head",children:[v(od,{className:"dashboard__img"}),v("h1",{children:"Details"})]}),v("div",{className:"details__content",children:L("form",{className:"details__data",children:[L("div",{className:"details__data__block",children:[v("label",{htmlFor:"user",children:"Username"}),v("input",{type:"text",id:"user",value:e.username,readOnly:!0})]}),L("div",{className:"details__data__block",children:[v("label",{htmlFor:"access",children:"Access"}),v("input",{type:"text",id:"access",value:e.accessLevel,readOnly:!0})]})]})})]})})})},nv=()=>{const e=new Date("0.0.0000"),[t,n]=R.exports.useState({id:-1,category:"",title:"",link:"",date:e,summary:"",createdAt:e,updatedAt:e}),{posts:r}=R.exports.useContext(Qu),{id:l}=sp();return R.exports.useEffect(()=>{r[0].id!==-1&&r.map(i=>{i.id.toString()===l&&n(i)})},[r]),v("main",{className:"post",children:v("div",{className:"container",children:L("div",{className:"post inner",children:[L("div",{className:"dashboard__head post__head",children:[v(Om,{}),v("h1",{className:"post__head",children:t.id!==-1?t.title:""})]}),L("div",{className:"post__content",children:[L("div",{className:"post__content__block",children:[v("h4",{children:"ID"}),v("input",{type:"text",readOnly:!0,value:t.id!==-1?t.id:""})]}),L("div",{className:"post__content__block",children:[v("h4",{children:"Category"}),v("input",{type:"text",readOnly:!0,value:t.id!==-1?t.category:""})]}),L("div",{className:"post__content__block",children:[v("h4",{children:"Title"}),v("input",{type:"text",readOnly:!0,value:t.id!==-1?t.title:""})]}),L("div",{className:"post__content__block",children:[v("h4",{children:"Date"}),v("input",{type:"text",readOnly:!0,value:t.id!==-1?et(t.date)[0]:""})]}),L("div",{className:"post__content__block",children:[v("h4",{children:"Summary"}),v("textarea",{readOnly:!0,rows:20,value:t.id!==-1?t.summary:""})]}),L("div",{className:"post__content__block",children:[v("h4",{children:"Created"}),v("input",{type:"text",readOnly:!0,value:t.id!==-1?et(t.createdAt)[0]:""})]}),L("div",{className:"post__content__block",children:[v("h4",{children:"Updated"}),v("input",{type:"text",readOnly:!0,value:t.id!==-1?et(t.updatedAt)[0]:""})]}),L("a",{className:"post__content__btn",href:t.id!==-1?t.link:"",children:[v(Ko,{}),v("span",{children:"Link"})]})]})]})})})},rv=()=>{const e=new Date("0.0.0000"),[t,n]=R.exports.useState([{id:-1,category:"",title:"",link:"",date:e,summary:"",createdAt:e,updatedAt:e}]),[r,l]=R.exports.useState({username:"",accessLevel:""});R.exports.useEffect(()=>{const u=localStorage.getItem("userData");u&&l(JSON.parse(u))},[]);const i=R.exports.useMemo(()=>({user:r,setUser:l}),[r,l]),o=R.exports.useMemo(()=>({posts:t,setPosts:n}),[t,n]);return v(Qu.Provider,{value:o,children:v(Dn.Provider,{value:i,children:v("div",{className:"App",children:L(dp,{children:[v(At,{path:"/",element:v(Vn,{})}),v(At,{path:"/dashboard",element:v(Vn,{child:v(Um,{})})}),v(At,{path:"/posts",element:v(Vn,{child:v(ev,{})})}),v(At,{path:"/posts/:id",element:v(Vn,{child:v(nv,{})})}),v(At,{path:"/user_details",element:v(Vn,{child:v(tv,{})})}),v(At,{path:"/login",element:v(Nm,{})})]})})})})};Zi.createRoot(document.getElementById("root")).render(v(cl.StrictMode,{children:v(mp,{children:v(rv,{})})})); diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..fa3bfa7 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,15 @@ + + + + + + + Admin Panel + + + + +
+ + +