diff --git a/.eslintignore b/.eslintignore
index e0b8844..493f815 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -8,4 +8,5 @@ vite.config.ts
tailwind.config.cjs
postcss.config.cjs
fileMock.js
-jest.config.js
\ No newline at end of file
+jest.config.js
+/src/types
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 6ef046c..82deb66 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@ chrome-user-data
.vscode
*.swp
*.swo
+dist/
diff --git a/dist/assets/icons/createuser.svg b/dist/assets/icons/createuser.svg
index 081c6c0..cf55856 100644
--- a/dist/assets/icons/createuser.svg
+++ b/dist/assets/icons/createuser.svg
@@ -1,7 +1,7 @@
-
+
+
+
\ No newline at end of file
diff --git a/dist/assets/index-32cf486f.css b/dist/assets/index-32cf486f.css
deleted file mode 100644
index 03ddf0c..0000000
--- a/dist/assets/index-32cf486f.css
+++ /dev/null
@@ -1 +0,0 @@
-*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}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-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image: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}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}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.sticky{position:sticky}.bottom-5{bottom:1.25rem}.left-0{left:0px}.left-1\/2{left:50%}.top-0{top:0px}.top-10{top:2.5rem}.z-20{z-index:20}.z-30{z-index:30}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-9{margin-bottom:2.25rem}.mr-2{margin-right:.5rem}.mt-14{margin-top:3.5rem}.mt-auto{margin-top:auto}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-11{height:2.75rem}.h-12{height:3rem}.h-6{height:1.5rem}.h-\[35\%\]{height:35%}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[90\%\]{max-height:90%}.min-h-screen{min-height:100vh}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[15rem\]{width:15rem}.w-\[48\%\]{width:48%}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[10rem\]{min-width:10rem}.max-w-\[60\%\]{max-width:60%}.table-auto{table-layout:auto}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-4{gap:1rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.bg-bg-gray{--tw-bg-opacity: 1;background-color:rgb(242 243 245 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-primary-100{background-color:var(--color-primary-100)}.bg-primary-300{background-color:var(--color-primary-300)}.bg-primary-main{background-color:var(--color-primary-main)}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pl-2{padding-left:.5rem}.pt-12{padding-top:3rem}.pt-6{padding-top:1.5rem}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.font-semibold{font-weight:600}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-txt-medium{color:var(--color-text-medium)}.text-txt-second{--tw-text-opacity: 1;color:rgb(180 180 180 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-slate-400{--tw-shadow-color: #94a3b8;--tw-shadow: var(--tw-shadow-colored)}.shadow-txt-light{--tw-shadow-color: var(--color-text-light);--tw-shadow: var(--tw-shadow-colored)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\[background\:var\(--color-gradient-button\)\]{background:var(--color-gradient-button)}.\[background\:var\(--color-gradient-primary-dark\)\]{background:var(--color-gradient-primary-dark)}*{box-sizing:border-box}html,body{padding:0;margin:0}:root{--color-text-light: #D1D1D1;--color-text-medium: #8C8C8C;--color-gradient-primary-dark: linear-gradient(179.87deg, #001641 -7.06%, #03379C 108%);--color-primary-main: #0092DF;--color-primary-100: #C7E4F4;--color-primary-300: #0461B8;--color-primary-200: #80C8EF;--color-separated-border: #D4D4D4;--color-gradient-button: linear-gradient(90deg, #00A6FE -10.23%, #D700FE 114.77%)}th,td{border:.1px solid var(--color-text-light);border-spacing:0;border-collapse:separate;overflow:hidden;padding:4px 0;transition:all .2s}tr{transition:all .2s}tbody tr:hover{cursor:pointer}tr:hover .checkmak-container{opacity:1;visibility:visible}.checkmak-container{width:1rem;height:1rem;cursor:pointer;border-radius:100%;border:1px solid var(--color-text-medium)}.hover\:bg-primary-300:hover{background-color:var(--color-primary-300)}.hover\:brightness-90:hover{--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:outline-0:focus{outline-width:0px}.disabled\:opacity-25:disabled{opacity:.25}@media (min-width: 768px){.md\:flex{display:flex}.md\:w-6{width:1.5rem}.md\:w-\[50\%\]{width:50%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:px-20{padding-left:5rem;padding-right:5rem}}@media (min-width: 1024px){.lg\:w-8{width:2rem}.lg\:w-\[35\%\]{width:35%}.lg\:w-\[65\%\]{width:65%}}@media (min-width: 1280px){.xl\:w-10{width:2.5rem}}._ldsRing_15dwk_1{display:inline-block;position:relative;width:80px;height:80px}._ldsRing_15dwk_1 div{box-sizing:border-box;display:block;position:absolute;width:2rem;height:2rem;margin:4px;border:4px solid #fff;border-radius:50%;animation:_ldsRing_15dwk_1 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--color-primary-main) transparent transparent transparent}._ldsRing_15dwk_1 div:nth-child(1){animation-delay:-.45s}._ldsRing_15dwk_1 div:nth-child(2){animation-delay:-.3s}._ldsRing_15dwk_1 div:nth-child(3){animation-delay:-.15s}@keyframes _ldsRing_15dwk_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
diff --git a/dist/assets/index-43ad9ab6.js b/dist/assets/index-43ad9ab6.js
deleted file mode 100644
index bbfb033..0000000
--- a/dist/assets/index-43ad9ab6.js
+++ /dev/null
@@ -1,85 +0,0 @@
-var Xp=Object.defineProperty;var Zp=(e,t,n)=>t in e?Xp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var j=(e,t,n)=>(Zp(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Dc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fc={exports:{}},kl={},zc={exports:{}},U={};/**
- * @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 ao=Symbol.for("react.element"),bp=Symbol.for("react.portal"),eh=Symbol.for("react.fragment"),th=Symbol.for("react.strict_mode"),nh=Symbol.for("react.profiler"),rh=Symbol.for("react.provider"),oh=Symbol.for("react.context"),lh=Symbol.for("react.forward_ref"),ih=Symbol.for("react.suspense"),sh=Symbol.for("react.memo"),uh=Symbol.for("react.lazy"),la=Symbol.iterator;function ah(e){return e===null||typeof e!="object"?null:(e=la&&e[la]||e["@@iterator"],typeof e=="function"?e:null)}var Vc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hc=Object.assign,Bc={};function or(e,t,n){this.props=e,this.context=t,this.refs=Bc,this.updater=n||Vc}or.prototype.isReactComponent={};or.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")};or.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jc(){}jc.prototype=or.prototype;function Qs(e,t,n){this.props=e,this.context=t,this.refs=Bc,this.updater=n||Vc}var Gs=Qs.prototype=new jc;Gs.constructor=Qs;Hc(Gs,or.prototype);Gs.isPureReactComponent=!0;var ia=Array.isArray,$c=Object.prototype.hasOwnProperty,Ks={current:null},Wc={key:!0,ref:!0,__self:!0,__source:!0};function Qc(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)$c.call(t,r)&&!Wc.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1>>1,K=k[H];if(0>>1;Ho(Pn,O))lto(In,Pn)?(k[H]=In,k[lt]=O,H=lt):(k[H]=Pn,k[Ye]=O,H=Ye);else if(lto(In,O))k[H]=In,k[lt]=O,H=lt;else break e}}return L}function o(k,L){var O=k.sortIndex-L.sortIndex;return O!==0?O:k.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],c=1,f=null,d=3,y=!1,h=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(k){for(var L=n(a);L!==null;){if(L.callback===null)r(a);else if(L.startTime<=k)r(a),L.sortIndex=L.expirationTime,t(s,L);else break;L=n(a)}}function w(k){if(v=!1,g(k),!h)if(n(s)!==null)h=!0,Tn(P);else{var L=n(a);L!==null&&ot(w,L.startTime-k)}}function P(k,L){h=!1,v&&(v=!1,m(x),x=-1),y=!0;var O=d;try{for(g(L),f=n(s);f!==null&&(!(f.expirationTime>L)||k&&!ae());){var H=f.callback;if(typeof H=="function"){f.callback=null,d=f.priorityLevel;var K=H(f.expirationTime<=L);L=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(s)&&r(s),g(L)}else r(s);f=n(s)}if(f!==null)var ln=!0;else{var Ye=n(a);Ye!==null&&ot(w,Ye.startTime-L),ln=!1}return ln}finally{f=null,d=O,y=!1}}var I=!1,T=null,x=-1,M=5,A=-1;function ae(){return!(e.unstable_now()-Ak||125H?(k.sortIndex=O,t(a,k),n(s)===null&&k===n(a)&&(v?(m(x),x=-1):v=!0,ot(w,O-H))):(k.sortIndex=K,t(s,k),h||y||(h=!0,Tn(P))),k},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(k){var L=d;return function(){var O=d;d=L;try{return k.apply(this,arguments)}finally{d=O}}}})(qc);Yc.exports=qc;var wh=Yc.exports;/**
- * @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 Jc=_,De=wh;function C(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"),Hi=Object.prototype.hasOwnProperty,Sh=/^[: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]*$/,ua={},aa={};function _h(e){return Hi.call(aa,e)?!0:Hi.call(ua,e)?!1:Sh.test(e)?aa[e]=!0:(ua[e]=!0,!1)}function Rh(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 Ch(e,t,n,r){if(t===null||typeof t>"u"||Rh(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 Pe(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Pe(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){me[e]=new Pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Js=/[\-:]([a-z])/g;function Xs(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(Js,Xs);me[t]=new Pe(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(Js,Xs);me[t]=new Pe(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(Js,Xs);me[t]=new Pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Pe(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zs(e,t,n,r){var o=me.hasOwnProperty(t)?me[t]:null;(o!==null?o.type!==0:r||!(2u||o[i]!==l[u]){var s=`
-`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{oi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pr(e):""}function Th(e){switch(e.tag){case 5:return Pr(e.type);case 16:return Pr("Lazy");case 13:return Pr("Suspense");case 19:return Pr("SuspenseList");case 0:case 2:case 15:return e=li(e.type,!1),e;case 11:return e=li(e.type.render,!1),e;case 1:return e=li(e.type,!0),e;default:return""}}function Wi(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 On:return"Fragment";case An:return"Portal";case Bi:return"Profiler";case bs:return"StrictMode";case ji:return"Suspense";case $i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bc:return(e.displayName||"Context")+".Consumer";case Zc:return(e._context.displayName||"Context")+".Provider";case eu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tu:return t=e.displayName||null,t!==null?t:Wi(e.type)||"Memo";case Ut:t=e._payload,e=e._init;try{return Wi(e(t))}catch{}}return null}function Ph(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 Wi(t);case 8:return t===bs?"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 Zt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ih(e){var t=tf(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 o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wo(e){e._valueTracker||(e._valueTracker=Ih(e))}function nf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function el(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 Qi(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zt(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 rf(e,t){t=t.checked,t!=null&&Zs(e,"checked",t,!1)}function Gi(e,t){rf(e,t);var n=Zt(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")?Ki(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ki(e,t.type,Zt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function da(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 Ki(e,t,n){(t!=="number"||el(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ir=Array.isArray;function $n(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=So.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Br(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ar={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},kh=["Webkit","ms","Moz","O"];Object.keys(Ar).forEach(function(e){kh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ar[t]=Ar[e]})});function uf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ar.hasOwnProperty(e)&&Ar[e]?(""+t).trim():t+"px"}function af(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=uf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var xh=J({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 Ji(e,t){if(t){if(xh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Xi(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 Zi=null;function nu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bi=null,Wn=null,Qn=null;function ma(e){if(e=po(e)){if(typeof bi!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Ul(t),bi(e.stateNode,e.type,t))}}function cf(e){Wn?Qn?Qn.push(e):Qn=[e]:Wn=e}function ff(){if(Wn){var e=Wn,t=Qn;if(Qn=Wn=null,ma(e),t)for(e=0;e>>=0,e===0?32:31-(Hh(e)/Bh|0)|0}var _o=64,Ro=4194304;function kr(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 ol(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~o;u!==0?r=kr(u):(l&=i,l!==0&&(r=kr(l)))}else i=n&~o,i!==0?r=kr(i):l!==0&&(r=kr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function co(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function Qh(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=Lr),Ca=String.fromCharCode(32),Ta=!1;function Af(e,t){switch(e){case"keyup":return Em.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Of(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ln=!1;function Sm(e,t){switch(e){case"compositionend":return Of(t);case"keypress":return t.which!==32?null:(Ta=!0,Ca);case"textInput":return e=t.data,e===Ca&&Ta?null:e;default:return null}}function _m(e,t){if(Ln)return e==="compositionend"||!cu&&Af(e,t)?(e=xf(),Ho=su=zt=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=xa(n)}}function Df(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Df(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ff(){for(var e=window,t=el();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=el(e.document)}return t}function fu(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 Am(e){var t=Ff(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Df(n.ownerDocument.documentElement,n)){if(r!==null&&fu(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 o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=Na(n,l);var i=Na(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,Un=null,ls=null,Mr=null,is=!1;function Aa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;is||Un==null||Un!==el(r)||(r=Un,"selectionStart"in r&&fu(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}),Mr&&Kr(Mr,r)||(Mr=r,r=sl(ls,"onSelect"),0Fn||(e.current=ds[Fn],ds[Fn]=null,Fn--)}function $(e,t){Fn++,ds[Fn]=e.current,e.current=t}var bt={},we=nn(bt),xe=nn(!1),mn=bt;function Jn(e,t){var n=e.type.contextTypes;if(!n)return bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ne(e){return e=e.childContextTypes,e!=null}function al(){Q(xe),Q(we)}function za(e,t,n){if(we.current!==bt)throw Error(C(168));$(we,t),$(xe,n)}function Gf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(C(108,Ph(e)||"Unknown",o));return J({},n,r)}function cl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bt,mn=we.current,$(we,e),$(xe,xe.current),!0}function Va(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=Gf(e,t,mn),r.__reactInternalMemoizedMergedChildContext=e,Q(xe),Q(we),$(we,e)):Q(xe),$(xe,n)}var yt=null,Ml=!1,Ei=!1;function Kf(e){yt===null?yt=[e]:yt.push(e)}function $m(e){Ml=!0,Kf(e)}function rn(){if(!Ei&&yt!==null){Ei=!0;var e=0,t=V;try{var n=yt;for(V=1;e>=i,o-=i,wt=1<<32-et(t)+o|n<x?(M=T,T=null):M=T.sibling;var A=d(m,T,g[x],w);if(A===null){T===null&&(T=M);break}e&&T&&A.alternate===null&&t(m,T),p=l(A,p,x),I===null?P=A:I.sibling=A,I=A,T=M}if(x===g.length)return n(m,T),G&&sn(m,x),P;if(T===null){for(;xx?(M=T,T=null):M=T.sibling;var ae=d(m,T,A.value,w);if(ae===null){T===null&&(T=M);break}e&&T&&ae.alternate===null&&t(m,T),p=l(ae,p,x),I===null?P=ae:I.sibling=ae,I=ae,T=M}if(A.done)return n(m,T),G&&sn(m,x),P;if(T===null){for(;!A.done;x++,A=g.next())A=f(m,A.value,w),A!==null&&(p=l(A,p,x),I===null?P=A:I.sibling=A,I=A);return G&&sn(m,x),P}for(T=r(m,T);!A.done;x++,A=g.next())A=y(T,m,x,A.value,w),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?x:A.key),p=l(A,p,x),I===null?P=A:I.sibling=A,I=A);return e&&T.forEach(function(Ve){return t(m,Ve)}),G&&sn(m,x),P}function E(m,p,g,w){if(typeof g=="object"&&g!==null&&g.type===On&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Eo:e:{for(var P=g.key,I=p;I!==null;){if(I.key===P){if(P=g.type,P===On){if(I.tag===7){n(m,I.sibling),p=o(I,g.props.children),p.return=m,m=p;break e}}else if(I.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Ut&&Ga(P)===I.type){n(m,I.sibling),p=o(I,g.props),p.ref=Er(m,I,g),p.return=m,m=p;break e}n(m,I);break}else t(m,I);I=I.sibling}g.type===On?(p=hn(g.props.children,m.mode,w,g.key),p.return=m,m=p):(w=Yo(g.type,g.key,g.props,null,m.mode,w),w.ref=Er(m,p,g),w.return=m,m=w)}return i(m);case An:e:{for(I=g.key;p!==null;){if(p.key===I)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=o(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Ii(g,m.mode,w),p.return=m,m=p}return i(m);case Ut:return I=g._init,E(m,p,I(g._payload),w)}if(Ir(g))return h(m,p,g,w);if(hr(g))return v(m,p,g,w);No(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,g),p.return=m,m=p):(n(m,p),p=Pi(g,m.mode,w),p.return=m,m=p),i(m)):n(m,p)}return E}var Zn=td(!0),nd=td(!1),ho={},dt=nn(ho),Xr=nn(ho),Zr=nn(ho);function dn(e){if(e===ho)throw Error(C(174));return e}function wu(e,t){switch($(Zr,t),$(Xr,e),$(dt,ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qi(t,e)}Q(dt),$(dt,t)}function bn(){Q(dt),Q(Xr),Q(Zr)}function rd(e){dn(Zr.current);var t=dn(dt.current),n=qi(t,e.type);t!==n&&($(Xr,e),$(dt,n))}function Su(e){Xr.current===e&&(Q(dt),Q(Xr))}var Y=nn(0);function gl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wi=[];function _u(){for(var e=0;en?n:4,e(!0);var r=Si.transition;Si.transition={};try{e(!1),t()}finally{V=n,Si.transition=r}}function Ed(){return Ke().memoizedState}function Km(e,t,n){var r=Yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wd(e))Sd(t,n);else if(n=Xf(e,t,n,r),n!==null){var o=Ce();tt(n,e,r,o),_d(n,t,r)}}function Ym(e,t,n){var r=Yt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wd(e))Sd(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,u=l(i,n);if(o.hasEagerState=!0,o.eagerState=u,nt(u,i)){var s=t.interleaved;s===null?(o.next=o,vu(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Xf(e,t,o,r),n!==null&&(o=Ce(),tt(n,e,r,o),_d(n,t,r))}}function wd(e){var t=e.alternate;return e===q||t!==null&&t===q}function Sd(e,t){Dr=yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _d(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ou(e,n)}}var vl={readContext:Ge,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},qm={readContext:Ge,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:Ge,useEffect:Ya,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wo(4194308,4,hd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wo(4,2,e,t)},useMemo:function(e,t){var n=ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ut();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=Km.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:Ka,useDebugValue:Iu,useDeferredValue:function(e){return ut().memoizedState=e},useTransition:function(){var e=Ka(!1),t=e[0];return e=Gm.bind(null,e[1]),ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,o=ut();if(G){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),fe===null)throw Error(C(349));yn&30||id(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,Ya(ud.bind(null,r,l,e),[e]),r.flags|=2048,to(9,sd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=ut(),t=fe.identifierPrefix;if(G){var n=St,r=wt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=br++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[at]=t,e[Jr]=r,Ad(e,t,!1,!1),t.stateNode=e;e:{switch(i=Xi(n,r),n){case"dialog":W("cancel",e),W("close",e),o=r;break;case"iframe":case"object":case"embed":W("load",e),o=r;break;case"video":case"audio":for(o=0;otr&&(t.flags|=128,r=!0,wr(l,!1),t.lanes=4194304)}else{if(!r)if(e=gl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!G)return ve(t),null}else 2*ee()-l.renderingStartTime>tr&&n!==1073741824&&(t.flags|=128,r=!0,wr(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ee(),t.sibling=null,n=Y.current,$(Y,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return Lu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Le&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function r0(e,t){switch(pu(t),t.tag){case 1:return Ne(t.type)&&al(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bn(),Q(xe),Q(we),_u(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Su(t),null;case 13:if(Q(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Xn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Y),null;case 4:return bn(),null;case 10:return yu(t.type._context),null;case 22:case 23:return Lu(),null;case 24:return null;default:return null}}var Oo=!1,Ee=!1,o0=typeof WeakSet=="function"?WeakSet:Set,N=null;function Bn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Z(e,t,r)}else n.current=null}function Cs(e,t,n){try{n()}catch(r){Z(e,t,r)}}var rc=!1;function l0(e,t){if(ss=ll,e=Ff(),fu(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 o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,c=0,f=e,d=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(u=i+o),f!==l||r!==0&&f.nodeType!==3||(s=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(y=f.firstChild)!==null;)d=f,f=y;for(;;){if(f===e)break t;if(d===n&&++a===o&&(u=i),d===l&&++c===r&&(s=i),(y=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=y}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(us={focusedElem:e,selectionRange:n},ll=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,E=h.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Je(t.type,v),E);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(w){Z(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return h=rc,rc=!1,h}function Fr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&Cs(t,n,l)}o=o.next}while(o!==r)}}function zl(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 Ts(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 Ud(e){var t=e.alternate;t!==null&&(e.alternate=null,Ud(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[at],delete t[Jr],delete t[fs],delete t[Bm],delete t[jm])),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 Md(e){return e.tag===5||e.tag===3||e.tag===4}function oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Md(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 Ps(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=ul));else if(r!==4&&(e=e.child,e!==null))for(Ps(e,t,n),e=e.sibling;e!==null;)Ps(e,t,n),e=e.sibling}function Is(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(Is(e,t,n),e=e.sibling;e!==null;)Is(e,t,n),e=e.sibling}var pe=null,Xe=!1;function Ot(e,t,n){for(n=n.child;n!==null;)Dd(e,t,n),n=n.sibling}function Dd(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Nl,n)}catch{}switch(n.tag){case 5:Ee||Bn(n,t);case 6:var r=pe,o=Xe;pe=null,Ot(e,t,n),pe=r,Xe=o,pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?vi(e.parentNode,n):e.nodeType===1&&vi(e,n),Qr(e)):vi(pe,n.stateNode));break;case 4:r=pe,o=Xe,pe=n.stateNode.containerInfo,Xe=!0,Ot(e,t,n),pe=r,Xe=o;break;case 0:case 11:case 14:case 15:if(!Ee&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&Cs(n,t,i),o=o.next}while(o!==r)}Ot(e,t,n);break;case 1:if(!Ee&&(Bn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Z(n,t,u)}Ot(e,t,n);break;case 21:Ot(e,t,n);break;case 22:n.mode&1?(Ee=(r=Ee)||n.memoizedState!==null,Ot(e,t,n),Ee=r):Ot(e,t,n);break;default:Ot(e,t,n)}}function lc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new o0),t.forEach(function(r){var o=h0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function qe(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*s0(r/1960))-r,10e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,Sl=0,F&6)throw Error(C(331));var o=F;for(F|=4,N=e.current;N!==null;){var l=N,i=l.child;if(N.flags&16){var u=l.deletions;if(u!==null){for(var s=0;see()-Au?pn(e,0):Nu|=n),Ae(e,t)}function Wd(e,t){t===0&&(e.mode&1?(t=Ro,Ro<<=1,!(Ro&130023424)&&(Ro=4194304)):t=1);var n=Ce();e=Pt(e,t),e!==null&&(co(e,t,n),Ae(e,n))}function p0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wd(e,n)}function h0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),Wd(e,n)}var Qd;Qd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xe.current)ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ke=!1,t0(e,t,n);ke=!!(e.flags&131072)}else ke=!1,G&&t.flags&1048576&&Yf(t,dl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qo(e,t),e=t.pendingProps;var o=Jn(t,we.current);Kn(t,n),o=Cu(null,t,r,e,o,n);var l=Tu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ne(r)?(l=!0,cl(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Eu(t),o.updater=Dl,t.stateNode=o,o._reactInternals=t,ys(t,r,e,n),t=ws(null,t,r,!0,l,n)):(t.tag=0,G&&l&&du(t),_e(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=g0(r),e=Je(r,e),o){case 0:t=Es(null,t,r,e,n);break e;case 1:t=ec(null,t,r,e,n);break e;case 11:t=Za(null,t,r,e,n);break e;case 14:t=ba(null,t,r,Je(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Je(r,o),Es(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Je(r,o),ec(e,t,r,o,n);case 3:e:{if(kd(t),e===null)throw Error(C(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Zf(e,t),ml(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=er(Error(C(423)),t),t=tc(e,t,r,n,o);break e}else if(r!==o){o=er(Error(C(424)),t),t=tc(e,t,r,n,o);break e}else for(Ue=Qt(t.stateNode.containerInfo.firstChild),Me=t,G=!0,Ze=null,n=nd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xn(),r===o){t=It(e,t,n);break e}_e(e,t,r,n)}t=t.child}return t;case 5:return rd(t),e===null&&hs(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,as(r,o)?i=null:l!==null&&as(r,l)&&(t.flags|=32),Id(e,t),_e(e,t,i,n),t.child;case 6:return e===null&&hs(t),null;case 13:return xd(e,t,n);case 4:return wu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zn(t,null,r,n):_e(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Je(r,o),Za(e,t,r,o,n);case 7:return _e(e,t,t.pendingProps,n),t.child;case 8:return _e(e,t,t.pendingProps.children,n),t.child;case 12:return _e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,$(pl,r._currentValue),r._currentValue=i,l!==null)if(nt(l.value,i)){if(l.children===o.children&&!xe.current){t=It(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){i=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=_t(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),ms(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(C(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),ms(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}_e(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Kn(t,n),o=Ge(o),r=r(o),t.flags|=1,_e(e,t,r,n),t.child;case 14:return r=t.type,o=Je(r,t.pendingProps),o=Je(r.type,o),ba(e,t,r,o,n);case 15:return Td(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Je(r,o),Qo(e,t),t.tag=1,Ne(r)?(e=!0,cl(t)):e=!1,Kn(t,n),ed(t,r,o),ys(t,r,o,n),ws(null,t,r,!0,e,n);case 19:return Nd(e,t,n);case 22:return Pd(e,t,n)}throw Error(C(156,t.tag))};function Gd(e,t){return vf(e,t)}function m0(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 $e(e,t,n,r){return new m0(e,t,n,r)}function Mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g0(e){if(typeof e=="function")return Mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eu)return 11;if(e===tu)return 14}return 2}function qt(e,t){var n=e.alternate;return n===null?(n=$e(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 Yo(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")Mu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case On:return hn(n.children,o,l,t);case bs:i=8,o|=8;break;case Bi:return e=$e(12,n,t,o|2),e.elementType=Bi,e.lanes=l,e;case ji:return e=$e(13,n,t,o),e.elementType=ji,e.lanes=l,e;case $i:return e=$e(19,n,t,o),e.elementType=$i,e.lanes=l,e;case ef:return Hl(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zc:i=10;break e;case bc:i=9;break e;case eu:i=11;break e;case tu:i=14;break e;case Ut:i=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=$e(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function hn(e,t,n,r){return e=$e(7,e,r,t),e.lanes=n,e}function Hl(e,t,n,r){return e=$e(22,e,r,t),e.elementType=ef,e.lanes=n,e.stateNode={isHidden:!1},e}function Pi(e,t,n){return e=$e(6,e,null,t),e.lanes=n,e}function Ii(e,t,n){return t=$e(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y0(e,t,n,r,o){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=si(0),this.expirationTimes=si(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=si(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Du(e,t,n,r,o,l,i,u,s){return e=new y0(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=$e(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Eu(l),e}function v0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jd)}catch(e){console.error(e)}}Jd(),Kc.exports=Fe;var Xd=Kc.exports;const Zd=Dc(Xd);var pc=Xd;Vi.createRoot=pc.createRoot,Vi.hydrateRoot=pc.hydrateRoot;const bd=Re.createContext({user:null,setUser:null});function R0({children:e}){const[t,n]=_.useState(null);return R(bd.Provider,{value:{user:t,setUser:n},children:e})}const sr=()=>Re.useContext(bd);/**
- * @remix-run/router v1.6.2
- *
- * 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 ro(){return ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Hu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function T0(){return Math.random().toString(36).substr(2,8)}function mc(e,t){return{usr:e.state,key:e.key,idx:t}}function Os(e,t,n,r){return n===void 0&&(n=null),ro({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ur(t):t,{state:n,key:t&&t.key||r||T0()})}function Cl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ur(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function P0(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:l=!1}=r,i=o.history,u=Ht.Pop,s=null,a=c();a==null&&(a=0,i.replaceState(ro({},i.state,{idx:a}),""));function c(){return(i.state||{idx:null}).idx}function f(){u=Ht.Pop;let E=c(),m=E==null?null:E-a;a=E,s&&s({action:u,location:v.location,delta:m})}function d(E,m){u=Ht.Push;let p=Os(v.location,E,m);n&&n(p,E),a=c()+1;let g=mc(p,a),w=v.createHref(p);try{i.pushState(g,"",w)}catch{o.location.assign(w)}l&&s&&s({action:u,location:v.location,delta:1})}function y(E,m){u=Ht.Replace;let p=Os(v.location,E,m);n&&n(p,E),a=c();let g=mc(p,a),w=v.createHref(p);i.replaceState(g,"",w),l&&s&&s({action:u,location:v.location,delta:0})}function h(E){let m=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof E=="string"?E:Cl(E);return ne(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let v={get action(){return u},get location(){return e(o,i)},listen(E){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(hc,f),s=E,()=>{o.removeEventListener(hc,f),s=null}},createHref(E){return t(o,E)},createURL:h,encodeLocation(E){let m=h(E);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:y,go(E){return i.go(E)}};return v}var gc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gc||(gc={}));function I0(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ur(t):t,o=Bu(r.pathname||"/",n);if(o==null)return null;let l=ep(e);k0(l);let i=null;for(let u=0;i==null&&u{let s={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};s.relativePath.startsWith("/")&&(ne(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=Jt([r,s.relativePath]),c=n.concat(s);l.children&&l.children.length>0&&(ne(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),ep(l.children,t,c,a)),!(l.path==null&&!l.index)&&t.push({path:a,score:M0(a,l.index),routesMeta:c})};return e.forEach((l,i)=>{var u;if(l.path===""||!((u=l.path)!=null&&u.includes("?")))o(l,i);else for(let s of tp(l.path))o(l,i,s)}),t}function tp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let i=tp(r.join("/")),u=[];return u.push(...i.map(s=>s===""?l:[l,s].join("/"))),o&&u.push(...i),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function k0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:D0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const x0=/^:\w+$/,N0=3,A0=2,O0=1,L0=10,U0=-2,yc=e=>e==="*";function M0(e,t){let n=e.split("/"),r=n.length;return n.some(yc)&&(r+=U0),t&&(r+=A0),n.filter(o=>!yc(o)).reduce((o,l)=>o+(x0.test(l)?N0:l===""?O0:L0),r)}function D0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function F0(e,t){let{routesMeta:n}=e,r={},o="/",l=[];for(let i=0;i{if(c==="*"){let d=u[f]||"";i=l.slice(0,l.length-d.length).replace(/(.)\/+$/,"$1")}return a[c]=B0(u[f]||"",c),a},{}),pathname:l,pathnameBase:i,pattern:e}}function V0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Hu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,u)=>(r.push(u),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function H0(e){try{return decodeURI(e)}catch(t){return Hu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function B0(e,t){try{return decodeURIComponent(e)}catch(n){return Hu(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Bu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function j0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ur(e):e;return{pathname:n?n.startsWith("/")?n:$0(n,t):t,search:Q0(r),hash:G0(o)}}function $0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ki(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ju(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $u(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ur(e):(o=ro({},e),ne(!o.pathname||!o.pathname.includes("?"),ki("?","pathname","search",o)),ne(!o.pathname||!o.pathname.includes("#"),ki("#","pathname","hash",o)),ne(!o.search||!o.search.includes("#"),ki("#","search","hash",o)));let l=e===""||o.pathname==="",i=l?"/":o.pathname,u;if(r||i==null)u=n;else{let f=t.length-1;if(i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}u=f>=0?t[f]:"/"}let s=j0(o,u),a=i&&i!=="/"&&i.endsWith("/"),c=(l||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(a||c)&&(s.pathname+="/"),s}const Jt=e=>e.join("/").replace(/\/\/+/g,"/"),W0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Q0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,G0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function K0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const np=["post","put","patch","delete"];new Set(np);const Y0=["get",...np];new Set(Y0);/**
- * React Router v6.11.2
- *
- * 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 Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.pathnameBase)),i=_.useRef(!1);return op(()=>{i.current=!0}),_.useCallback(function(s,a){if(a===void 0&&(a={}),!i.current)return;if(typeof s=="number"){n.go(s);return}let c=$u(s,JSON.parse(l),o,a.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Jt([t,c.pathname])),(a.replace?n.replace:n.push)(c,a.state,a)},[t,n,l,o,e])}const Z0=_.createContext(null);function b0(e){let t=_.useContext(xt).outlet;return t&&_.createElement(Z0.Provider,{value:e},t)}function lp(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=_.useContext(xt),{pathname:o}=Rn(),l=JSON.stringify(ju(r).map(i=>i.pathnameBase));return _.useMemo(()=>$u(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function eg(e,t){return tg(e,t)}function tg(e,t,n){cr()||ne(!1);let{navigator:r}=_.useContext(ar),{matches:o}=_.useContext(xt),l=o[o.length-1],i=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let s=Rn(),a;if(t){var c;let v=typeof t=="string"?ur(t):t;u==="/"||(c=v.pathname)!=null&&c.startsWith(u)||ne(!1),a=v}else a=s;let f=a.pathname||"/",d=u==="/"?f:f.slice(u.length)||"/",y=I0(e,{pathname:d}),h=ig(y&&y.map(v=>Object.assign({},v,{params:Object.assign({},i,v.params),pathname:Jt([u,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?u:Jt([u,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n);return t&&h?_.createElement(Ql.Provider,{value:{location:Tl({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:Ht.Pop}},h):h}function ng(){let e=cg(),t=K0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},l=null;return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:o},n):null,l)}const rg=_.createElement(ng,null);class og extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?_.createElement(xt.Provider,{value:this.props.routeContext},_.createElement(rp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lg(e){let{routeContext:t,match:n,children:r}=e,o=_.useContext(Wu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(xt.Provider,{value:t},r)}function ig(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let l=e,i=(r=n)==null?void 0:r.errors;if(i!=null){let u=l.findIndex(s=>s.route.id&&(i==null?void 0:i[s.route.id]));u>=0||ne(!1),l=l.slice(0,Math.min(l.length,u+1))}return l.reduceRight((u,s,a)=>{let c=s.route.id?i==null?void 0:i[s.route.id]:null,f=null;n&&(f=s.route.errorElement||rg);let d=t.concat(l.slice(0,a+1)),y=()=>{let h;return c?h=f:s.route.Component?h=_.createElement(s.route.Component,null):s.route.element?h=s.route.element:h=u,_.createElement(lg,{match:s,routeContext:{outlet:u,matches:d,isDataRoute:n!=null},children:h})};return n&&(s.route.ErrorBoundary||s.route.errorElement||a===0)?_.createElement(og,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:y(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):y()},null)}var Ls;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Ls||(Ls={}));var oo;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(oo||(oo={}));function sg(e){let t=_.useContext(Wu);return t||ne(!1),t}function ug(e){let t=_.useContext(q0);return t||ne(!1),t}function ag(e){let t=_.useContext(xt);return t||ne(!1),t}function ip(e){let t=ag(),n=t.matches[t.matches.length-1];return n.route.id||ne(!1),n.route.id}function cg(){var e;let t=_.useContext(rp),n=ug(oo.UseRouteError),r=ip(oo.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function fg(){let{router:e}=sg(Ls.UseNavigateStable),t=ip(oo.UseNavigateStable),n=_.useRef(!1);return op(()=>{n.current=!0}),_.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Tl({fromRouteId:t},l)))},[e,t])}function Qu(e){let{to:t,replace:n,state:r,relative:o}=e;cr()||ne(!1);let{matches:l}=_.useContext(xt),{pathname:i}=Rn(),u=Gl(),s=$u(t,ju(l).map(c=>c.pathnameBase),i,o==="path"),a=JSON.stringify(s);return _.useEffect(()=>u(JSON.parse(a),{replace:n,state:r,relative:o}),[u,a,o,n,r]),null}function sp(e){return b0(e.context)}function an(e){ne(!1)}function dg(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ht.Pop,navigator:l,static:i=!1}=e;cr()&&ne(!1);let u=t.replace(/^\/*/,"/"),s=_.useMemo(()=>({basename:u,navigator:l,static:i}),[u,l,i]);typeof r=="string"&&(r=ur(r));let{pathname:a="/",search:c="",hash:f="",state:d=null,key:y="default"}=r,h=_.useMemo(()=>{let v=Bu(a,u);return v==null?null:{location:{pathname:v,search:c,hash:f,state:d,key:y},navigationType:o}},[u,a,c,f,d,y,o]);return h==null?null:_.createElement(ar.Provider,{value:s},_.createElement(Ql.Provider,{children:n,value:h}))}function pg(e){let{children:t,location:n}=e;return eg(Us(t),n)}var vc;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(vc||(vc={}));new Promise(()=>{});function Us(e,t){t===void 0&&(t=[]);let n=[];return _.Children.forEach(e,(r,o)=>{if(!_.isValidElement(r))return;let l=[...t,o];if(r.type===_.Fragment){n.push.apply(n,Us(r.props.children,l));return}r.type!==an&&ne(!1),!r.props.index||!r.props.children||ne(!1);let i={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Us(r.props.children,l)),n.push(i)}),n}/**
- * React Router DOM v6.11.2
- *
- * 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 Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function mg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gg(e,t){return e.button===0&&(!t||t==="_self")&&!mg(e)}const yg=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function vg(e){let{basename:t,children:n,window:r}=e,o=_.useRef();o.current==null&&(o.current=C0({window:r,v5Compat:!0}));let l=o.current,[i,u]=_.useState({action:l.action,location:l.location});return _.useLayoutEffect(()=>l.listen(u),[l]),_.createElement(dg,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:l})}const Eg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sg=_.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:l,replace:i,state:u,target:s,to:a,preventScrollReset:c}=t,f=hg(t,yg),{basename:d}=_.useContext(ar),y,h=!1;if(typeof a=="string"&&wg.test(a)&&(y=a,Eg))try{let p=new URL(window.location.href),g=a.startsWith("//")?new URL(p.protocol+a):new URL(a),w=Bu(g.pathname,d);g.origin===p.origin&&w!=null?a=w+g.search+g.hash:h=!0}catch{}let v=J0(a,{relative:o}),E=_g(a,{replace:i,state:u,target:s,preventScrollReset:c,relative:o});function m(p){r&&r(p),p.defaultPrevented||E(p)}return _.createElement("a",Ms({},f,{href:y||v,onClick:h||l?r:m,ref:n,target:s}))});var Ec;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Ec||(Ec={}));var wc;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wc||(wc={}));function _g(e,t){let{target:n,replace:r,state:o,preventScrollReset:l,relative:i}=t===void 0?{}:t,u=Gl(),s=Rn(),a=lp(e,{relative:i});return _.useCallback(c=>{if(gg(c,n)){c.preventDefault();let f=r!==void 0?r:Cl(s)===Cl(a);u(e,{replace:f,state:o,preventScrollReset:l,relative:i})}},[s,u,a,r,o,n,e,l,i])}const Rg="assets/",_r=`${Rg}icons/`,lo={logo:`${_r}logo.svg`,logoBlack:`${_r}logo-black.svg`,users:`${_r}users.svg`,createUser:`${_r}createuser.svg`,qrcode:`${_r}qrcode.png`},Oe={apiOrigin:"https://admin.dev.dipal.ru/api/v1",apiAuthOrigin:"https://auth.dev.dipal.ru/api/v1/auth",apiAuthPhonenumber:"/start-challenge",apiAuthLogin:"/login",apiAuthRefresh:"/refresh-token",apiGetPlaces:"/place",apiGetUsers:"/profile",apiCreateUserAccount:"/account",apiQr:{VITE_API_ORIGIN:"https://admin.dev.dipal.ru/api/v1",VITE_API_AUTH_ORIGIN:"https://auth.dev.dipal.ru/api/v1/auth",VITE_API_AUTH_PHONENUMBER:"/start-challenge",VITE_API_AUTH_LOGIN:"/login",VITE_API_AUTH_REFRESH:"/refresh-token",VITE_API_CREATE_MEMBER:"/user_place/members",VITE_API_PLACES:"/place",VITE_API_USERS:"/profile",VITE_API_USERS_ACCOUNT:"/account",VITE_API_USERS_PROFILE:"/profile"}.VITE_API_QR,apiCreateUserProfile:"/profile",apiCreateMember:"/user_place/members"},B={global:{errors:{input:"please fill all inputs correctly",phonenumber:"please fill the valid number",otp:"please fill the otp fields correctly"},users:"Users",submit:"Submit",firstname:"Firstname",lastname:"Lastname",place_id:"Place id",title:"title",status:"Status",placeType:"Place Type",address:"Address",qrCode:"qrCode",createUser:"Create user",phonenumber:"Phone Number",enterPanel:"Enter to Panel",enterPhoneNumber:"Enter your phone number",enterOtpCode:"Enter your Otp Code",success:{createUser:"user created successfully",createMember:"member created successfully"},and:"and",canUseFor:"can use for",oneTime:"one time",multipleTimes:"multiple times"},service:{errors:{500:"server not respond please try again later!",401:"Authentication error!"}}},mo={adminUserStorageKey:"adminUser"},Xt={usersList:"/",createUser:"/create-user",authentication:"/auth"},Rr={usersList:{path:Xt.usersList,icon:lo.users,title:B.global.users},createUser:{path:Xt.createUser,icon:lo.createUser,title:B.global.createUser}},Nn=Oe.apiOrigin,Nt={core:{getPlaces:`${Nn}${Oe.apiGetPlaces}`,getUsers:`${Nn}${Oe.apiGetUsers}`,getQrs:`${Nn}${Oe.apiQr}`,createUserAccount:`${Nn}${Oe.apiCreateUserAccount}`,createUserProfile:`${Nn}${Oe.apiCreateUserProfile}`,createMember:`${Nn}${Oe.apiCreateMember}`},generic:{authPhonenumber:`${Oe.apiAuthOrigin}${Oe.apiAuthPhonenumber}`,authLogin:`${Oe.apiAuthOrigin}${Oe.apiAuthLogin}`,authRefresh:`${Oe.apiAuthOrigin}${Oe.apiAuthRefresh}`}};class Cg{setData(t,n){const r=JSON.stringify(n);localStorage.setItem(t,r)}getData(t){const n=localStorage.getItem(t);return n&&JSON.parse(n)}deleteData(t){localStorage.removeItem(t)}}class Cn{constructor(t){j(this,"provider");this.provider=t}static localStorage(){return new Cn(new Cg)}setData(t,n){return this.provider.setData(t,n)}getData(t){return this.provider.getData(t)}deleteData(t){this.provider.deleteData(t)}}function up(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tg}=Object.prototype,{getPrototypeOf:Gu}=Object,Kl=(e=>t=>{const n=Tg.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pt=e=>(e=e.toLowerCase(),t=>Kl(t)===e),Yl=e=>t=>typeof t===e,{isArray:fr}=Array,io=Yl("undefined");function Pg(e){return e!==null&&!io(e)&&e.constructor!==null&&!io(e.constructor)&&Qe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ap=pt("ArrayBuffer");function Ig(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ap(e.buffer),t}const kg=Yl("string"),Qe=Yl("function"),cp=Yl("number"),ql=e=>e!==null&&typeof e=="object",xg=e=>e===!0||e===!1,qo=e=>{if(Kl(e)!=="object")return!1;const t=Gu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ng=pt("Date"),Ag=pt("File"),Og=pt("Blob"),Lg=pt("FileList"),Ug=e=>ql(e)&&Qe(e.pipe),Mg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qe(e.append)&&((t=Kl(e))==="formdata"||t==="object"&&Qe(e.toString)&&e.toString()==="[object FormData]"))},Dg=pt("URLSearchParams"),Fg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function go(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),fr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const dp=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),pp=e=>!io(e)&&e!==dp;function Ds(){const{caseless:e}=pp(this)&&this||{},t={},n=(r,o)=>{const l=e&&fp(t,o)||o;qo(t[l])&&qo(r)?t[l]=Ds(t[l],r):qo(r)?t[l]=Ds({},r):fr(r)?t[l]=r.slice():t[l]=r};for(let r=0,o=arguments.length;r(go(t,(o,l)=>{n&&Qe(o)?e[l]=up(o,n):e[l]=o},{allOwnKeys:r}),e),Vg=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hg=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Bg=(e,t,n,r)=>{let o,l,i;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)i=o[l],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&Gu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},jg=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},$g=e=>{if(!e)return null;if(fr(e))return e;let t=e.length;if(!cp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gu(Uint8Array)),Qg=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},Gg=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Kg=pt("HTMLFormElement"),Yg=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Sc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),qg=pt("RegExp"),hp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};go(n,(o,l)=>{t(o,l,e)!==!1&&(r[l]=o)}),Object.defineProperties(e,r)},Jg=e=>{hp(e,(t,n)=>{if(Qe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Xg=(e,t)=>{const n={},r=o=>{o.forEach(l=>{n[l]=!0})};return fr(e)?r(e):r(String(e).split(t)),n},Zg=()=>{},bg=(e,t)=>(e=+e,Number.isFinite(e)?e:t),xi="abcdefghijklmnopqrstuvwxyz",_c="0123456789",mp={DIGIT:_c,ALPHA:xi,ALPHA_DIGIT:xi+xi.toUpperCase()+_c},ey=(e=16,t=mp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ty(e){return!!(e&&Qe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ny=e=>{const t=new Array(10),n=(r,o)=>{if(ql(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const l=fr(r)?[]:{};return go(r,(i,u)=>{const s=n(i,o+1);!io(s)&&(l[u]=s)}),t[o]=void 0,l}}return r};return n(e,0)},ry=pt("AsyncFunction"),oy=e=>e&&(ql(e)||Qe(e))&&Qe(e.then)&&Qe(e.catch),S={isArray:fr,isArrayBuffer:ap,isBuffer:Pg,isFormData:Mg,isArrayBufferView:Ig,isString:kg,isNumber:cp,isBoolean:xg,isObject:ql,isPlainObject:qo,isUndefined:io,isDate:Ng,isFile:Ag,isBlob:Og,isRegExp:qg,isFunction:Qe,isStream:Ug,isURLSearchParams:Dg,isTypedArray:Wg,isFileList:Lg,forEach:go,merge:Ds,extend:zg,trim:Fg,stripBOM:Vg,inherits:Hg,toFlatObject:Bg,kindOf:Kl,kindOfTest:pt,endsWith:jg,toArray:$g,forEachEntry:Qg,matchAll:Gg,isHTMLForm:Kg,hasOwnProperty:Sc,hasOwnProp:Sc,reduceDescriptors:hp,freezeMethods:Jg,toObjectSet:Xg,toCamelCase:Yg,noop:Zg,toFiniteNumber:bg,findKey:fp,global:dp,isContextDefined:pp,ALPHABET:mp,generateString:ey,isSpecCompliantForm:ty,toJSONObject:ny,isAsyncFn:ry,isThenable:oy};function D(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}S.inherits(D,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:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gp=D.prototype,yp={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{yp[e]={value:e}});Object.defineProperties(D,yp);Object.defineProperty(gp,"isAxiosError",{value:!0});D.from=(e,t,n,r,o,l)=>{const i=Object.create(gp);return S.toFlatObject(e,i,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),D.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,l&&Object.assign(i,l),i};const ly=null;function Fs(e){return S.isPlainObject(e)||S.isArray(e)}function vp(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Rc(e,t,n){return e?e.concat(t).map(function(o,l){return o=vp(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function iy(e){return S.isArray(e)&&!e.some(Fs)}const sy=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Jl(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,E){return!S.isUndefined(E[v])});const r=n.metaTokens,o=n.visitor||c,l=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(o))throw new TypeError("visitor must be a function");function a(h){if(h===null)return"";if(S.isDate(h))return h.toISOString();if(!s&&S.isBlob(h))throw new D("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(h)||S.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,v,E){let m=h;if(h&&!E&&typeof h=="object"){if(S.endsWith(v,"{}"))v=r?v:v.slice(0,-2),h=JSON.stringify(h);else if(S.isArray(h)&&iy(h)||(S.isFileList(h)||S.endsWith(v,"[]"))&&(m=S.toArray(h)))return v=vp(v),m.forEach(function(g,w){!(S.isUndefined(g)||g===null)&&t.append(i===!0?Rc([v],w,l):i===null?v:v+"[]",a(g))}),!1}return Fs(h)?!0:(t.append(Rc(E,v,l),a(h)),!1)}const f=[],d=Object.assign(sy,{defaultVisitor:c,convertValue:a,isVisitable:Fs});function y(h,v){if(!S.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(h),S.forEach(h,function(m,p){(!(S.isUndefined(m)||m===null)&&o.call(t,m,S.isString(p)?p.trim():p,v,d))===!0&&y(m,v?v.concat(p):[p])}),f.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Cc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ku(e,t){this._pairs=[],e&&Jl(e,this,t)}const Ep=Ku.prototype;Ep.append=function(t,n){this._pairs.push([t,n])};Ep.toString=function(t){const n=t?function(r){return t.call(this,r,Cc)}:Cc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function uy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wp(e,t,n){if(!t)return e;const r=n&&n.encode||uy,o=n&&n.serialize;let l;if(o?l=o(t,n):l=S.isURLSearchParams(t)?t.toString():new Ku(t,n).toString(r),l){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class ay{constructor(){this.handlers=[]}use(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}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Tc=ay,Sp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cy=typeof URLSearchParams<"u"?URLSearchParams:Ku,fy=typeof FormData<"u"?FormData:null,dy=typeof Blob<"u"?Blob:null,py=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),hy=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ct={isBrowser:!0,classes:{URLSearchParams:cy,FormData:fy,Blob:dy},isStandardBrowserEnv:py,isStandardBrowserWebWorkerEnv:hy,protocols:["http","https","file","blob","url","data"]};function my(e,t){return Jl(e,new ct.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,l){return ct.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function gy(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yy(e){const t={},n=Object.keys(e);let r;const o=n.length;let l;for(r=0;r=n.length;return i=!i&&S.isArray(o)?o.length:i,s?(S.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!u):((!o[i]||!S.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],l)&&S.isArray(o[i])&&(o[i]=yy(o[i])),!u)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,o)=>{t(gy(r),o,n,0)}),n}return null}const vy={"Content-Type":void 0};function Ey(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Xl={transitional:Sp,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,l=S.isObject(t);if(l&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o&&o?JSON.stringify(_p(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return my(t,this.formSerializer).toString();if((u=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Jl(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return l||o?(n.setContentType("application/json",!1),Ey(t)):t}],transformResponse:[function(t){const n=this.transitional||Xl.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&S.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?D.from(u,D.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};S.forEach(["delete","get","head"],function(t){Xl.headers[t]={}});S.forEach(["post","put","patch"],function(t){Xl.headers[t]=S.merge(vy)});const Yu=Xl,wy=S.toObjectSet(["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"]),Sy=e=>{const t={};let n,r,o;return e&&e.split(`
-`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&wy[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Pc=Symbol("internals");function Cr(e){return e&&String(e).trim().toLowerCase()}function Jo(e){return e===!1||e==null?e:S.isArray(e)?e.map(Jo):String(e)}function _y(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Ry=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ni(e,t,n,r,o){if(S.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function Cy(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ty(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,l,i){return this[r].call(this,t,o,l,i)},configurable:!0})})}let Zl=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function l(u,s,a){const c=Cr(s);if(!c)throw new Error("header name must be a non-empty string");const f=S.findKey(o,c);(!f||o[f]===void 0||a===!0||a===void 0&&o[f]!==!1)&&(o[f||s]=Jo(u))}const i=(u,s)=>S.forEach(u,(a,c)=>l(a,c,s));return S.isPlainObject(t)||t instanceof this.constructor?i(t,n):S.isString(t)&&(t=t.trim())&&!Ry(t)?i(Sy(t),n):t!=null&&l(n,t,r),this}get(t,n){if(t=Cr(t),t){const r=S.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return _y(o);if(S.isFunction(n))return n.call(this,o,r);if(S.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Cr(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ni(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function l(i){if(i=Cr(i),i){const u=S.findKey(r,i);u&&(!n||Ni(r,r[u],u,n))&&(delete r[u],o=!0)}}return S.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const l=n[r];(!t||Ni(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,r={};return S.forEach(this,(o,l)=>{const i=S.findKey(r,l);if(i){n[i]=Jo(o),delete n[l];return}const u=t?Cy(l):String(l).trim();u!==l&&delete n[l],n[u]=Jo(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
-`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Pc]=this[Pc]={accessors:{}}).accessors,o=this.prototype;function l(i){const u=Cr(i);r[u]||(Ty(o,i),r[u]=!0)}return S.isArray(t)?t.forEach(l):l(t),this}};Zl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.freezeMethods(Zl.prototype);S.freezeMethods(Zl);const Rt=Zl;function Ai(e,t){const n=this||Yu,r=t||n,o=Rt.from(r.headers);let l=r.data;return S.forEach(e,function(u){l=u.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function Rp(e){return!!(e&&e.__CANCEL__)}function yo(e,t,n){D.call(this,e??"canceled",D.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(yo,D,{__CANCEL__:!0});function Py(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new D("Request failed with status code "+n.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Iy=ct.isStandardBrowserEnv?function(){return{write:function(n,r,o,l,i,u){const s=[];s.push(n+"="+encodeURIComponent(r)),S.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),S.isString(l)&&s.push("path="+l),S.isString(i)&&s.push("domain="+i),u===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function ky(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xy(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Cp(e,t){return e&&!ky(t)?xy(e,t):t}const Ny=ct.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(l){let i=l;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const u=S.isString(i)?o(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function Ay(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Oy(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,l=0,i;return t=t!==void 0?t:1e3,function(s){const a=Date.now(),c=r[l];i||(i=a),n[o]=s,r[o]=a;let f=l,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),a-i{const l=o.loaded,i=o.lengthComputable?o.total:void 0,u=l-n,s=r(u),a=l<=i;n=l;const c={loaded:l,total:i,progress:i?l/i:void 0,bytes:u,rate:s||void 0,estimated:s&&i&&a?(i-l)/s:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const Ly=typeof XMLHttpRequest<"u",Uy=Ly&&function(e){return new Promise(function(n,r){let o=e.data;const l=Rt.from(e.headers).normalize(),i=e.responseType;let u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}S.isFormData(o)&&(ct.isStandardBrowserEnv||ct.isStandardBrowserWebWorkerEnv?l.setContentType(!1):l.setContentType("multipart/form-data;",!1));let a=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";l.set("Authorization","Basic "+btoa(y+":"+h))}const c=Cp(e.baseURL,e.url);a.open(e.method.toUpperCase(),wp(c,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function f(){if(!a)return;const y=Rt.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),v={data:!i||i==="text"||i==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:y,config:e,request:a};Py(function(m){n(m),s()},function(m){r(m),s()},v),a=null}if("onloadend"in a?a.onloadend=f:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(f)},a.onabort=function(){a&&(r(new D("Request aborted",D.ECONNABORTED,e,a)),a=null)},a.onerror=function(){r(new D("Network Error",D.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Sp;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new D(h,v.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,e,a)),a=null},ct.isStandardBrowserEnv){const y=(e.withCredentials||Ny(c))&&e.xsrfCookieName&&Iy.read(e.xsrfCookieName);y&&l.set(e.xsrfHeaderName,y)}o===void 0&&l.setContentType(null),"setRequestHeader"in a&&S.forEach(l.toJSON(),function(h,v){a.setRequestHeader(v,h)}),S.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&i!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",Ic(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",Ic(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=y=>{a&&(r(!y||y.type?new yo(null,e,a):y),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const d=Ay(c);if(d&&ct.protocols.indexOf(d)===-1){r(new D("Unsupported protocol "+d+":",D.ERR_BAD_REQUEST,e));return}a.send(o||null)})},Xo={http:ly,xhr:Uy};S.forEach(Xo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const My={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof Rt?e.toJSON():e;function nr(e,t){t=t||{};const n={};function r(a,c,f){return S.isPlainObject(a)&&S.isPlainObject(c)?S.merge.call({caseless:f},a,c):S.isPlainObject(c)?S.merge({},c):S.isArray(c)?c.slice():c}function o(a,c,f){if(S.isUndefined(c)){if(!S.isUndefined(a))return r(void 0,a,f)}else return r(a,c,f)}function l(a,c){if(!S.isUndefined(c))return r(void 0,c)}function i(a,c){if(S.isUndefined(c)){if(!S.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function u(a,c,f){if(f in t)return r(a,c);if(f in e)return r(void 0,a)}const s={url:l,method:l,data:l,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(a,c)=>o(xc(a),xc(c),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=s[c]||o,d=f(e[c],t[c],c);S.isUndefined(d)&&f!==u||(n[c]=d)}),n}const Tp="1.4.0",qu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Nc={};qu.transitional=function(t,n,r){function o(l,i){return"[Axios v"+Tp+"] Transitional option '"+l+"'"+i+(r?". "+r:"")}return(l,i,u)=>{if(t===!1)throw new D(o(i," has been removed"+(n?" in "+n:"")),D.ERR_DEPRECATED);return n&&!Nc[i]&&(Nc[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,i,u):!0}};function Dy(e,t,n){if(typeof e!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const l=r[o],i=t[l];if(i){const u=e[l],s=u===void 0||i(u,l,e);if(s!==!0)throw new D("option "+l+" must be "+s,D.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new D("Unknown option "+l,D.ERR_BAD_OPTION)}}const zs={assertOptions:Dy,validators:qu},Lt=zs.validators;let Pl=class{constructor(t){this.defaults=t,this.interceptors={request:new Tc,response:new Tc}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=nr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:l}=n;r!==void 0&&zs.assertOptions(r,{silentJSONParsing:Lt.transitional(Lt.boolean),forcedJSONParsing:Lt.transitional(Lt.boolean),clarifyTimeoutError:Lt.transitional(Lt.boolean)},!1),o!=null&&(S.isFunction(o)?n.paramsSerializer={serialize:o}:zs.assertOptions(o,{encode:Lt.function,serialize:Lt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=l&&S.merge(l.common,l[n.method]),i&&S.forEach(["delete","get","head","post","put","patch","common"],h=>{delete l[h]}),n.headers=Rt.concat(i,l);const u=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(s=s&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!s){const h=[kc.bind(this),void 0];for(h.unshift.apply(h,u),h.push.apply(h,a),d=h.length,c=Promise.resolve(n);f{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](o);r._listeners=null}),this.promise.then=o=>{let l;const i=new Promise(u=>{r.subscribe(u),l=u}).then(o);return i.cancel=function(){r.unsubscribe(l)},i},t(function(l,i,u){r.reason||(r.reason=new yo(l,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Pp(function(o){t=o}),cancel:t}}};const zy=Fy;function Vy(e){return function(n){return e.apply(null,n)}}function Hy(e){return S.isObject(e)&&e.isAxiosError===!0}const Vs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vs).forEach(([e,t])=>{Vs[t]=e});const By=Vs;function Ip(e){const t=new Zo(e),n=up(Zo.prototype.request,t);return S.extend(n,Zo.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ip(nr(e,o))},n}const ue=Ip(Yu);ue.Axios=Zo;ue.CanceledError=yo;ue.CancelToken=zy;ue.isCancel=Rp;ue.VERSION=Tp;ue.toFormData=Jl;ue.AxiosError=D;ue.Cancel=ue.CanceledError;ue.all=function(t){return Promise.all(t)};ue.spread=Vy;ue.isAxiosError=Hy;ue.mergeConfig=nr;ue.AxiosHeaders=Rt;ue.formToJSON=e=>_p(S.isHTMLForm(e)?new FormData(e):e);ue.HttpStatusCode=By;ue.default=ue;const bo=ue,{Axios:fE,AxiosError:Ju,CanceledError:dE,isCancel:pE,CancelToken:hE,VERSION:mE,all:gE,Cancel:yE,isAxiosError:vE,spread:EE,toFormData:wE,AxiosHeaders:SE,HttpStatusCode:_E,formToJSON:RE,mergeConfig:CE}=bo;class on{constructor(t,n,r){j(this,"userTokens");j(this,"updateAccessToken");j(this,"navigateToAuth");this.userTokens=t,this.updateAccessToken=n,this.navigateToAuth=r}initalizeAxiosInstance(){return bo.create()}handleRequestInterceptor(){const t=this.initalizeAxiosInstance();return t.interceptors.request.use(n=>(n.headers.Authorization=`Bearer ${this.userTokens.accessToken}`,n)),t}async request(t){const n=this.handleRequestInterceptor();this.responseIncepter(n);const r=await n(t);if(!r)throw new Error(B.service.errors[500]);return r.data.data}async refreshAccessToken(){try{const t=await bo.post(Nt.generic.authRefresh,{refresh_token:this.userTokens.refreshToken});return this.updateAccessToken(t.data.access_token),t.data.access_token}catch{this.navigateToAuth()}}responseIncepter(t){t.interceptors.response.use(n=>n,n=>{const r=n.config;if(n.response.status===401&&n.response.message==="Unauthorized"){const o=this.refreshAccessToken().then(()=>(r.headers.Authorization=`Bearer ${o}`,bo(r)))}return Promise.reject(n)})}}function Xu({message:e,type:t,time:n=5,onCloseCallback:r}){const o=Re.useRef(null),l=Re.useRef(document.createElement("div"));return Re.useEffect(()=>{const i=document.getElementById("root");return i==null||i.appendChild(l.current),setTimeout(()=>{l.current.remove(),typeof r<"u"&&r()},1e3*n),()=>{var u;return typeof r<"u"&&r(),(u=l.current)==null?void 0:u.remove()}},[]),Zd.createPortal(R("div",{ref:o,className:`fixed top-10 left-1/2 translate-x-[-50%] z-30 p-2 rounded-md text-black ${t==="error"&&"bg-red-600 text-white"} ${t==="success"&&"bg-green-600 text-white"} ${t==="warning"&&"bg-yellow-500"}`,children:e}),l.current)}function Zu(e){const{onClick:t,title:n,className:r,isDisabled:o=!1}=e;return R("button",{disabled:o,onClick:t,className:`py-1 px-5 transition-all hover:bg-primary-300 bg-primary-main rounded-lg text-white text-center ${r}`,children:n})}function kp(e){const{title:t,className:n}=e;return R("div",{className:`w-full shadow-sm shadow-txt-light font-semibold ${n}`,children:t})}var xp={exports:{}},Np={};/**
- * @license React
- * use-sync-external-store-shim.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 rr=_;function jy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $y=typeof Object.is=="function"?Object.is:jy,Wy=rr.useState,Qy=rr.useEffect,Gy=rr.useLayoutEffect,Ky=rr.useDebugValue;function Yy(e,t){var n=t(),r=Wy({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return Gy(function(){o.value=n,o.getSnapshot=t,Li(o)&&l({inst:o})},[e,n,t]),Qy(function(){return Li(o)&&l({inst:o}),e(function(){Li(o)&&l({inst:o})})},[e]),Ky(n),n}function Li(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$y(e,n)}catch{return!0}}function qy(e,t){return t()}var Jy=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?qy:Yy;Np.useSyncExternalStore=rr.useSyncExternalStore!==void 0?rr.useSyncExternalStore:Jy;xp.exports=Np;var Xy=xp.exports;const vt=new WeakMap,Ui={},Mo={},Bt=()=>{},be=Bt(),Mi=Object,z=e=>e===be,Et=e=>typeof e=="function",en=(e,t)=>({...e,...t}),bu="undefined",bl=typeof window!=bu,Hs=typeof document!=bu,Zy=()=>bl&&typeof window.requestAnimationFrame!=bu,Ap=(e,t)=>{const n=vt.get(e);return[()=>!z(t)&&e.get(t)||Ui,r=>{if(!z(t)){const o=e.get(t);t in Mo||(Mo[t]=o),n[5](t,en(o,r),o||Ui)}},n[6],()=>!z(t)&&t in Mo?Mo[t]:!z(t)&&e.get(t)||Ui]},Do=new WeakMap;let by=0;const so=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,l;if(Mi(e)===e&&!r&&n!=RegExp){if(o=Do.get(e),o)return o;if(o=++by+"~",Do.set(e,o),n==Array){for(o="@",l=0;lBs,[js,$s]=bl&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Bt,Bt],tv=()=>{const e=Hs&&document.visibilityState;return z(e)||e!=="hidden"},nv=e=>(Hs&&document.addEventListener("visibilitychange",e),js("focus",e),()=>{Hs&&document.removeEventListener("visibilitychange",e),$s("focus",e)}),rv=e=>{const t=()=>{Bs=!0,e()},n=()=>{Bs=!1};return js("online",t),js("offline",n),()=>{$s("online",t),$s("offline",n)}},ov={isOnline:ev,isVisible:tv},lv={initFocus:nv,initReconnect:rv},Ac=!Re.useId,uo=!bl||"Deno"in window,iv=e=>Zy()?window.requestAnimationFrame(e):setTimeout(e,1),Di=uo?_.useEffect:_.useLayoutEffect,Fi=typeof navigator<"u"&&navigator.connection,Oc=!uo&&Fi&&(["slow-2g","2g"].includes(Fi.effectiveType)||Fi.saveData),ea=e=>{if(Et(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?so(e):"",[e,t]};let sv=0;const Ws=()=>++sv,Op=0,Lp=1,Up=2,uv=3;var Tr={__proto__:null,ERROR_REVALIDATE_EVENT:uv,FOCUS_EVENT:Op,MUTATE_EVENT:Up,RECONNECT_EVENT:Lp};async function Mp(...e){const[t,n,r,o]=e,l=en({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=l.populateCache;const u=l.rollbackOnError;let s=l.optimisticData;const a=l.revalidate!==!1,c=y=>typeof u=="function"?u(y):u!==!1,f=l.throwOnError;if(Et(n)){const y=n,h=[],v=t.keys();for(let E=v.next();!E.done;E=v.next()){const m=E.value;!/^\$(inf|sub)\$/.test(m)&&y(t.get(m)._k)&&h.push(m)}return Promise.all(h.map(d))}return d(n);async function d(y){const[h]=ea(y);if(!h)return;const[v,E]=Ap(t,h),[m,p,g]=vt.get(t),w=m[h],P=()=>a&&(delete g[h],w&&w[0])?w[0](Up).then(()=>v().data):v().data;if(e.length<3)return P();let I=r,T;const x=Ws();p[h]=[x,0];const M=!z(s),A=v(),ae=A.data,Ve=A._c,oe=z(Ve)?ae:Ve;if(M&&(s=Et(s)?s(oe):s,E({data:s,_c:oe})),Et(I))try{I=I(oe)}catch(rt){T=rt}if(I&&Et(I.then))if(I=await I.catch(rt=>{T=rt}),x!==p[h][0]){if(T)throw T;return I}else T&&M&&c(T)&&(i=!0,I=oe,E({data:I,_c:be}));i&&(T||(Et(i)&&(I=i(I,oe)),E({data:I,_c:be}))),p[h][1]=Ws();const At=await P();if(E({_c:be}),T){if(f)throw T;return}return i?At:I}}const Lc=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},av=(e,t)=>{if(!vt.has(e)){const n=en(lv,t),r={},o=Mp.bind(be,e);let l=Bt;const i={},u=(c,f)=>{const d=i[c]||[];return i[c]=d,d.push(f),()=>d.splice(d.indexOf(f),1)},s=(c,f,d)=>{e.set(c,f);const y=i[c];if(y)for(const h of y)h(f,d)},a=()=>{if(!vt.has(e)&&(vt.set(e,[r,{},{},{},o,s,u]),!uo)){const c=n.initFocus(setTimeout.bind(be,Lc.bind(be,r,Op))),f=n.initReconnect(setTimeout.bind(be,Lc.bind(be,r,Lp)));l=()=>{c&&c(),f&&f(),vt.delete(e)}}};return a(),[e,o,a,l]}return[e,vt.get(e)[4]]},cv=(e,t,n,r,o)=>{const l=n.errorRetryCount,i=o.retryCount,u=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!z(l)&&i>l||setTimeout(r,u,o)},fv=(e,t)=>so(e)==so(t),[Dp,dv]=av(new Map),pv=en({onLoadingSlow:Bt,onSuccess:Bt,onError:Bt,onErrorRetry:cv,onDiscarded:Bt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Oc?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Oc?5e3:3e3,compare:fv,isPaused:()=>!1,cache:Dp,mutate:dv,fallback:{}},ov),hv=(e,t)=>{const n=en(e,t);if(t){const{use:r,fallback:o}=e,{use:l,fallback:i}=t;r&&l&&(n.use=r.concat(l)),o&&i&&(n.fallback=en(o,i))}return n},mv=_.createContext({}),Fp=bl&&window.__SWR_DEVTOOLS_USE__,gv=Fp?window.__SWR_DEVTOOLS_USE__:[],yv=()=>{Fp&&(window.__SWR_DEVTOOLS_REACT__=Re)},vv=e=>Et(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Ev=()=>en(pv,_.useContext(mv)),wv=e=>(t,n,r)=>e(t,n&&((...l)=>{const[i]=ea(t),[,,,u]=vt.get(Dp),s=u[i];return s?(delete u[i],s):n(...l)}),r),Sv=gv.concat(wv),_v=e=>function(...n){const r=Ev(),[o,l,i]=vv(n),u=hv(r,i);let s=e;const{use:a}=u,c=(a||[]).concat(Sv);for(let f=c.length;f--;)s=c[f](s);return s(o,l||u.fetcher||null,u)},Rv=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};yv();const zi={dedupe:!0},Cv=(e,t,n)=>{const{cache:r,compare:o,suspense:l,fallbackData:i,revalidateOnMount:u,revalidateIfStale:s,refreshInterval:a,refreshWhenHidden:c,refreshWhenOffline:f,keepPreviousData:d}=n,[y,h,v]=vt.get(r),[E,m]=ea(e),p=_.useRef(!1),g=_.useRef(!1),w=_.useRef(E),P=_.useRef(t),I=_.useRef(n),T=()=>I.current,x=()=>T().isVisible()&&T().isOnline(),[M,A,ae,Ve]=Ap(r,E),oe=_.useRef({}).current,At=z(i)?n.fallback[E]:i,rt=(X,le)=>{for(const ge in oe){const b=ge;if(b==="data"){if(!o(X[b],le[b])&&(!z(X[b])||!o(Ye,le[b])))return!1}else if(le[b]!==X[b])return!1}return!0},Tn=_.useMemo(()=>{const X=(()=>!E||!t?!1:z(u)?T().isPaused()||l?!1:z(s)?!0:s:u)(),le=Se=>{const ht=en(Se);return delete ht._k,X?{isValidating:!0,isLoading:!0,...ht}:ht},ge=M(),b=Ve(),it=le(ge),kn=ge===b?it:le(b);let de=it;return[()=>{const Se=le(M());return rt(Se,de)?(de.data=Se.data,de.isLoading=Se.isLoading,de.isValidating=Se.isValidating,de.error=Se.error,de):(de=Se,Se)},()=>kn]},[r,E]),ot=Xy.useSyncExternalStore(_.useCallback(X=>ae(E,(le,ge)=>{rt(ge,le)||X()}),[r,E]),Tn[0],Tn[1]),k=!p.current,L=y[E]&&y[E].length>0,O=ot.data,H=z(O)?At:O,K=ot.error,ln=_.useRef(H),Ye=d?z(O)?ln.current:O:H,Pn=(()=>L&&!z(K)?!1:k&&!z(u)?u:T().isPaused()?!1:l?z(H)?!1:s:z(H)||s)(),lt=!!(E&&t&&k&&Pn),In=z(ot.isValidating)?lt:ot.isValidating,Yp=z(ot.isLoading)?lt:ot.isLoading,pr=_.useCallback(async X=>{const le=P.current;if(!E||!le||g.current||T().isPaused())return!1;let ge,b,it=!0;const kn=X||{},de=!v[E]||!kn.dedupe,Se=()=>Ac?!g.current&&E===w.current&&p.current:E===w.current,ht={isValidating:!1,isLoading:!1},na=()=>{A(ht)},ra=()=>{const He=v[E];He&&He[1]===b&&delete v[E]},oa={isValidating:!0};z(M().data)&&(oa.isLoading=!0);try{if(de&&(A(oa),n.loadingTimeout&&z(M().data)&&setTimeout(()=>{it&&Se()&&T().onLoadingSlow(E,n)},n.loadingTimeout),v[E]=[le(m),Ws()]),[ge,b]=v[E],ge=await ge,de&&setTimeout(ra,n.dedupingInterval),!v[E]||v[E][1]!==b)return de&&Se()&&T().onDiscarded(E),!1;ht.error=be;const He=h[E];if(!z(He)&&(b<=He[0]||b<=He[1]||He[1]===0))return na(),de&&Se()&&T().onDiscarded(E),!1;const mt=M().data;ht.data=o(mt,ge)?mt:ge,de&&Se()&&T().onSuccess(ge,E,n)}catch(He){ra();const mt=T(),{shouldRetryOnError:ei}=mt;mt.isPaused()||(ht.error=He,de&&Se()&&(mt.onError(He,E,mt),(ei===!0||Et(ei)&&ei(He))&&x()&&mt.onErrorRetry(He,E,mt,Jp=>{const ti=y[E];ti&&ti[0]&&ti[0](Tr.ERROR_REVALIDATE_EVENT,Jp)},{retryCount:(kn.retryCount||0)+1,dedupe:!0})))}return it=!1,na(),!0},[E,r]),qp=_.useCallback((...X)=>Mp(r,w.current,...X),[]);if(Di(()=>{P.current=t,I.current=n,z(O)||(ln.current=O)}),Di(()=>{if(!E)return;const X=pr.bind(be,zi);let le=0;const b=Rv(E,y,(it,kn={})=>{if(it==Tr.FOCUS_EVENT){const de=Date.now();T().revalidateOnFocus&&de>le&&x()&&(le=de+T().focusThrottleInterval,X())}else if(it==Tr.RECONNECT_EVENT)T().revalidateOnReconnect&&x()&&X();else{if(it==Tr.MUTATE_EVENT)return pr();if(it==Tr.ERROR_REVALIDATE_EVENT)return pr(kn)}});return g.current=!1,w.current=E,p.current=!0,A({_k:m}),Pn&&(z(H)||uo?X():iv(X)),()=>{g.current=!0,b()}},[E]),Di(()=>{let X;function le(){const b=Et(a)?a(M().data):a;b&&X!==-1&&(X=setTimeout(ge,b))}function ge(){!M().error&&(c||T().isVisible())&&(f||T().isOnline())?pr(zi).then(le):le()}return le(),()=>{X&&(clearTimeout(X),X=-1)}},[a,c,f,E]),_.useDebugValue(Ye),l&&z(H)&&E)throw!Ac&&uo?new Error("Fallback data is required when using suspense in SSR."):(P.current=t,I.current=n,g.current=!1,z(K)?pr(zi):K);return{mutate:qp,get data(){return oe.data=!0,Ye},get error(){return oe.error=!0,K},get isValidating(){return oe.isValidating=!0,In},get isLoading(){return oe.isLoading=!0,Yp}}},Tv=_v(Cv);class Pv{useGetQuery(t,n){return Tv(t,n)}}class ta{constructor(t){j(this,"provider");this.provider=t}static swr(){return new ta(new Pv)}useGetQuery(t,n){return this.provider.useGetQuery(t,n)}}const zp=(e,t)=>{const n=ta.swr();return()=>n.useGetQuery(e,t)},Vp=e=>(Number.isFinite(+e)||e==="+")&&e.length<=12,Iv=(e,t)=>{const{setUser:n,user:r}=t;if(!r||!n)return;const o=Cn.localStorage();r.adminUserData.accessToken=e,o.setData(mo.adminUserStorageKey,r),n(r)},Hp=(e,t)=>{const{setUser:n}=e;Cn.localStorage().deleteData(mo.adminUserStorageKey),n&&(n(null),t(Xt.authentication))},dr=()=>{const e=sr(),t=Gl();return{notLoginAuth:()=>{Hp(e,t)},accessTokenUpdateHandler:o=>{Iv(o,e)},userData:e,navigate:t}};class kv{constructor(t){j(this,"placesList");j(this,"modelTitle","places");this.placesList=t}getData(){return this.placesList}getTitle(){return this.modelTitle}updatePlaces(t){this.placesList=t}setQrFor(t){const n=this.placesList.map(r=>{const o=t.find(l=>l.placeId===r.id);return{...r,qr:o||null}});return this.updatePlaces(n),n}}const xv=e=>e.map(t=>({id:t._id,placeType:t.place_type,name:t.name,parentId:t.place_type,availableServices:t.available_services,createdAt:t.createdAt,updatedAt:t.updatedAt,qr:null})),Nv=async e=>{const t=await e(),n=xv(t);return new kv(n)};class Av{constructor(t){j(this,"repository");this.repository=t}async execute(){return await this.repository()}}const Ov=({httpHandler:e})=>{const t=()=>Nv(e),n=new Av(t);return()=>n.execute()},Lv=(e,t,n)=>{const r=Nt.core.getPlaces,o={url:r,method:"GET"},l=new on({accessToken:e.adminUserData.accessToken,refreshToken:e.adminUserData.refreshToken},t,n);return{httpHandler:async()=>l.request(o),url:r}},Uv="_ldsRing_15dwk_1",Mv={ldsRing:Uv};function Bp(){return te("div",{className:Mv.ldsRing,children:[R("div",{}),R("div",{}),R("div",{}),R("div",{})]})}const Dv=e=>{const{rowId:t,selectedRowId:n}=e;return{isRowSelected:t===n}};function Fv({onCloseCallback:e,children:t}){const n=Re.useRef(null),r=Re.useRef(document.createElement("div")),o=()=>{r.current.remove(),typeof e<"u"&&e()};return Re.useEffect(()=>{const l=document.getElementById("root");return l==null||l.appendChild(r.current),()=>{var i;return typeof e<"u"&&e(),(i=r.current)==null?void 0:i.remove()}},[]),Zd.createPortal(R("div",{onClick:o,ref:n,className:"fixed top-0 left-0 z-20 w-screen h-screen p-2 rounded-md text-black flex justify-center items-center",children:R("div",{className:"max-w-[60%] max-h-[90%] p-4 rounded-sm shadow-lg bg-white overflow-auto",onClick:l=>{l.stopPropagation()},children:t})}),r.current)}var zv=Object.defineProperty,Il=Object.getOwnPropertySymbols,jp=Object.prototype.hasOwnProperty,$p=Object.prototype.propertyIsEnumerable,Uc=(e,t,n)=>t in e?zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mc=(e,t)=>{for(var n in t||(t={}))jp.call(t,n)&&Uc(e,n,t[n]);if(Il)for(var n of Il(t))$p.call(t,n)&&Uc(e,n,t[n]);return e},Vv=(e,t)=>{var n={};for(var r in e)jp.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Il)for(var r of Il(e))t.indexOf(r)<0&&$p.call(e,r)&&(n[r]=e[r]);return n};/**
- * @license QR Code generator library (TypeScript)
- * Copyright (c) Project Nayuki.
- * SPDX-License-Identifier: MIT
- */var wn;(e=>{const t=class{constructor(s,a,c,f){if(this.version=s,this.errorCorrectionLevel=a,this.modules=[],this.isFunction=[],st.MAX_VERSION)throw new RangeError("Version value out of range");if(f<-1||f>7)throw new RangeError("Mask value out of range");this.size=s*4+17;let d=[];for(let h=0;h7)throw new RangeError("Invalid value");let h,v;for(h=c;;h++){const g=t.getNumDataCodewords(h,a)*8,w=u.getTotalBits(s,h);if(w<=g){v=w;break}if(h>=f)throw new RangeError("Data too long")}for(const g of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])y&&v<=t.getNumDataCodewords(h,g)*8&&(a=g);let E=[];for(const g of s){r(g.mode.modeBits,4,E),r(g.numChars,g.mode.numCharCountBits(h),E);for(const w of g.getData())E.push(w)}l(E.length==v);const m=t.getNumDataCodewords(h,a)*8;l(E.length<=m),r(0,Math.min(4,m-E.length),E),r(0,(8-E.length%8)%8,E),l(E.length%8==0);for(let g=236;E.lengthp[w>>>3]|=g<<7-(w&7)),new t(h,a,p,d)}getModule(s,a){return 0<=s&&s>>9)*1335;const f=(a<<10|c)^21522;l(f>>>15==0);for(let d=0;d<=5;d++)this.setFunctionModule(8,d,o(f,d));this.setFunctionModule(8,7,o(f,6)),this.setFunctionModule(8,8,o(f,7)),this.setFunctionModule(7,8,o(f,8));for(let d=9;d<15;d++)this.setFunctionModule(14-d,8,o(f,d));for(let d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,o(f,d));for(let d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,o(f,d));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let s=this.version;for(let c=0;c<12;c++)s=s<<1^(s>>>11)*7973;const a=this.version<<12|s;l(a>>>18==0);for(let c=0;c<18;c++){const f=o(a,c),d=this.size-11+c%3,y=Math.floor(c/3);this.setFunctionModule(d,y,f),this.setFunctionModule(y,d,f)}}drawFinderPattern(s,a){for(let c=-4;c<=4;c++)for(let f=-4;f<=4;f++){const d=Math.max(Math.abs(f),Math.abs(c)),y=s+f,h=a+c;0<=y&&y{(g!=v-d||P>=h)&&p.push(w[g])});return l(p.length==y),p}drawCodewords(s){if(s.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let a=0;for(let c=this.size-1;c>=1;c-=2){c==6&&(c=5);for(let f=0;f>>3],7-(a&7)),a++)}}l(a==s.length*8)}applyMask(s){if(s<0||s>7)throw new RangeError("Mask value out of range");for(let a=0;a5&&s++):(this.finderPenaltyAddHistory(h,v),y||(s+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),y=this.modules[d][E],h=1);s+=this.finderPenaltyTerminateAndCount(y,h,v)*t.PENALTY_N3}for(let d=0;d5&&s++):(this.finderPenaltyAddHistory(h,v),y||(s+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),y=this.modules[E][d],h=1);s+=this.finderPenaltyTerminateAndCount(y,h,v)*t.PENALTY_N3}for(let d=0;dy+(h?1:0),a);const c=this.size*this.size,f=Math.ceil(Math.abs(a*20-c*10)/c)-1;return l(0<=f&&f<=9),s+=f*t.PENALTY_N4,l(0<=s&&s<=2568888),s}getAlignmentPatternPositions(){if(this.version==1)return[];{const s=Math.floor(this.version/7)+2,a=this.version==32?26:Math.ceil((this.version*4+4)/(s*2-2))*2;let c=[6];for(let f=this.size-7;c.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let a=(16*s+128)*s+64;if(s>=2){const c=Math.floor(s/7)+2;a-=(25*c-10)*c-55,s>=7&&(a-=36)}return l(208<=a&&a<=29648),a}static getNumDataCodewords(s,a){return Math.floor(t.getNumRawDataModules(s)/8)-t.ECC_CODEWORDS_PER_BLOCK[a.ordinal][s]*t.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][s]}static reedSolomonComputeDivisor(s){if(s<1||s>255)throw new RangeError("Degree out of range");let a=[];for(let f=0;f0);for(const f of s){const d=f^c.shift();c.push(0),a.forEach((y,h)=>c[h]^=t.reedSolomonMultiply(y,d))}return c}static reedSolomonMultiply(s,a){if(s>>>8||a>>>8)throw new RangeError("Byte out of range");let c=0;for(let f=7;f>=0;f--)c=c<<1^(c>>>7)*285,c^=(a>>>f&1)*s;return l(c>>>8==0),c}finderPenaltyCountPatterns(s){const a=s[1];l(a<=this.size*3);const c=a>0&&s[2]==a&&s[3]==a*3&&s[4]==a&&s[5]==a;return(c&&s[0]>=a*4&&s[6]>=a?1:0)+(c&&s[6]>=a*4&&s[0]>=a?1:0)}finderPenaltyTerminateAndCount(s,a,c){return s&&(this.finderPenaltyAddHistory(a,c),a=0),a+=this.size,this.finderPenaltyAddHistory(a,c),this.finderPenaltyCountPatterns(c)}finderPenaltyAddHistory(s,a){a[0]==0&&(s+=this.size),a.pop(),a.unshift(s)}};let n=t;n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;function r(s,a,c){if(a<0||a>31||s>>>a)throw new RangeError("Value out of range");for(let f=a-1;f>=0;f--)c.push(s>>>f&1)}function o(s,a){return(s>>>a&1)!=0}function l(s){if(!s)throw new Error("Assertion error")}const i=class{constructor(s,a,c){if(this.mode=s,this.numChars=a,this.bitData=c,a<0)throw new RangeError("Invalid argument");this.bitData=c.slice()}static makeBytes(s){let a=[];for(const c of s)r(c,8,a);return new i(i.Mode.BYTE,s.length,a)}static makeNumeric(s){if(!i.isNumeric(s))throw new RangeError("String contains non-numeric characters");let a=[];for(let c=0;c=1<{(t=>{const n=class{constructor(o,l){this.ordinal=o,this.formatBits=l}};let r=n;r.LOW=new n(0,1),r.MEDIUM=new n(1,0),r.QUARTILE=new n(2,3),r.HIGH=new n(3,2),t.Ecc=r})(e.QrCode||(e.QrCode={}))})(wn||(wn={}));(e=>{(t=>{const n=class{constructor(o,l){this.modeBits=o,this.numBitsCharCount=l}numCharCountBits(o){return this.numBitsCharCount[Math.floor((o+7)/17)]}};let r=n;r.NUMERIC=new n(1,[10,12,14]),r.ALPHANUMERIC=new n(2,[9,11,13]),r.BYTE=new n(4,[8,16,16]),r.KANJI=new n(8,[8,10,12]),r.ECI=new n(7,[0,0,0]),t.Mode=r})(e.QrSegment||(e.QrSegment={}))})(wn||(wn={}));var Nr=wn;/**
- * @license qrcode.react
- * Copyright (c) Paul O'Shannessy
- * SPDX-License-Identifier: ISC
- */var Hv={L:Nr.QrCode.Ecc.LOW,M:Nr.QrCode.Ecc.MEDIUM,Q:Nr.QrCode.Ecc.QUARTILE,H:Nr.QrCode.Ecc.HIGH},Bv=128,jv="L",$v="#FFFFFF",Wv="#000000",Qv=!1,Wp=4,Gv=.1;function Kv(e,t=0){const n=[];return e.forEach(function(r,o){let l=null;r.forEach(function(i,u){if(!i&&l!==null){n.push(`M${l+t} ${o+t}h${u-l}v1H${l+t}z`),l=null;return}if(u===r.length-1){if(!i)return;l===null?n.push(`M${u+t},${o+t} h1v1H${u+t}z`):n.push(`M${l+t},${o+t} h${u+1-l}v1H${l+t}z`);return}i&&l===null&&(l=u)})}),n.join("")}function Yv(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((o,l)=>l=t.x+t.w?o:!1))}function qv(e,t,n,r){if(r==null)return null;const o=n?Wp:0,l=e.length+o*2,i=Math.floor(t*Gv),u=l/t,s=(r.width||i)*u,a=(r.height||i)*u,c=r.x==null?e.length/2-s/2:r.x*u,f=r.y==null?e.length/2-a/2:r.y*u;let d=null;if(r.excavate){let y=Math.floor(c),h=Math.floor(f),v=Math.ceil(s+c-y),E=Math.ceil(a+f-h);d={x:y,y:h,w:v,h:E}}return{x:c,y:f,h:a,w:s,excavation:d}}var Jv=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function Xv(e){const t=e,{value:n,size:r=Bv,level:o=jv,bgColor:l=$v,fgColor:i=Wv,includeMargin:u=Qv,style:s,imageSettings:a}=t,c=Vv(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=a==null?void 0:a.src,d=_.useRef(null),y=_.useRef(null),[h,v]=_.useState(!1);_.useEffect(()=>{if(d.current!=null){const p=d.current,g=p.getContext("2d");if(!g)return;let w=Nr.QrCode.encodeText(n,Hv[o]).getModules();const P=u?Wp:0,I=w.length+P*2,T=qv(w,r,u,a),x=y.current,M=T!=null&&x!==null&&x.complete&&x.naturalHeight!==0&&x.naturalWidth!==0;M&&T.excavation!=null&&(w=Yv(w,T.excavation));const A=window.devicePixelRatio||1;p.height=p.width=r*A;const ae=r/I*A;g.scale(ae,ae),g.fillStyle=l,g.fillRect(0,0,I,I),g.fillStyle=i,Jv?g.fill(new Path2D(Kv(w,P))):w.forEach(function(Ve,oe){Ve.forEach(function(At,rt){At&&g.fillRect(rt+P,oe+P,1,1)})}),M&&g.drawImage(x,T.x+P,T.y+P,T.w,T.h)}}),_.useEffect(()=>{v(!1)},[f]);const E=Mc({height:r,width:r},s);let m=null;return f!=null&&(m=Re.createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{v(!0)},ref:y})),Re.createElement(Re.Fragment,null,Re.createElement("canvas",Mc({style:E,height:r,width:r,ref:d},c)),m)}function Zv(e){const{QrCodeData:t,rowData:n}=e,r=n.rowItemsTitle[1],o=n.rowItemsTitle[0],l=t.oneTime?B.global.oneTime:B.global.multipleTimes,i=`${r} ${o} ${B.global.and} ${B.global.canUseFor} ${l}`;return R(Xv,{id:"qrCode",value:i,size:150,bgColor:"#fff",level:"H"})}function bv(e){const{QrCodeData:t,rowData:n}=e,[r,o]=_.useState(!1);return t?te(xl,{children:[r&&R(Fv,{onCloseCallback:()=>o(!1),children:R(Zv,{rowData:n,QrCodeData:t})}),R("button",{onClick:l=>{l.stopPropagation(),o(!0)},className:"w-full h-full mx-auto flex justify-center items-center",children:R("img",{className:"w-6 h-6",src:lo.qrcode,alt:"qrcode"})})]}):null}function e1(e){const{title:t,hasCheckbox:n,isSelected:r,rowData:o}=e;return R("td",{className:`px-1 py-2 ${r?"bg-primary-100":""}`,children:te("div",{className:"w-full flex",children:[n&&R("span",{className:`checkmak-container flex justify-center items-center mr-2 transition-all ${r?"opacity-100":"opacity-0"}`,children:R("span",{className:`${r?"visible":"hidden"} transition-all`,children:"✓"})}),typeof t=="string"?t:R(bv,{rowData:o,QrCodeData:t})]})})}function t1(e){const{isSelected:t,setSelectedRowId:n,rowData:r}=e,{rowId:o,rowItemsTitle:l}=r,i=l.map((u,s)=>R(e1,{rowData:r,hasCheckbox:s===0,isSelected:t,title:u},(u||"row")+s));return R("tr",{onClick:()=>n(o),children:i})}function Qp(e){const{rowData:t,selectedRowId:n,setSelectedRowId:r}=e,{rowId:o}=t,{isRowSelected:l}=Dv({selectedRowId:n,rowId:o});return R(t1,{isSelected:l,rowData:t,setSelectedRowId:r})}function n1(e){const{selectedRowId:t,setSelectedRowId:n,placesList:r}=e,o=_.useMemo(()=>r.data?r.data.getData().map(u=>{const s={rowItemsTitle:[u.name,u.placeType,u.qr],rowId:u.id};return R(Qp,{rowData:s,selectedRowId:t,setSelectedRowId:n},s.rowId)}):null,[r]);if(r.isLoading)return R("div",{className:"flex justify-center items-center",children:R(Bp,{})});const l={name:B.global.title,placeType:B.global.placeType,qr:B.global.qrCode},i=Object.keys(l).map(u=>{const s=u,a=l[s];return R("th",{className:"py-3",children:a},s)});return te("table",{className:"table-auto rounded-md w-full text-sm h-fit",children:[R("thead",{className:"text-txt-medium font-bold",children:R("tr",{children:i})}),R("tbody",{children:o})]})}const r1=e=>{const{useGetPlacesList:t}=e,n=t(),[r,o]=_.useState("");return{selectedRowId:r,setSelectedRowId:o,placesData:n}},o1=async e=>await e(),l1=e=>e.map(t=>({id:t._id,oneTime:t.one_time,placeId:t.place_id,userId:t.user_id})),i1=()=>{const{accessTokenUpdateHandler:e,notLoginAuth:t,userData:n}=dr(),{user:r}=n,o=Lv(r,e,t),{url:l}=o;return{getingPlacesLogic:Ov(o),url:l}};function s1(e){const{selectedRowId:t,setSelectedRowId:n}=e,{accessTokenUpdateHandler:r,notLoginAuth:o,userData:l}=dr(),i=async()=>{var y,h;try{const E={url:Nt.core.getQrs},m={accessToken:((y=l.user)==null?void 0:y.adminUserData.accessToken)||null,refreshToken:((h=l.user)==null?void 0:h.adminUserData.refreshToken)||null},g=await new on(m,r,o).request(E);return l1(g)}catch(v){console.log(v)}},{getingPlacesLogic:u,url:s}=i1(),a=async()=>{const y=await u(),h=await i();return y.setQrFor(h||[]),y},f=zp(s,async()=>await o1(a)),{placesData:d}=r1({useGetPlacesList:f});return R(n1,{placesList:d,selectedRowId:t,setSelectedRowId:n})}const u1=(e,t,n)=>{const r=Nt.core.getUsers,o={url:r,method:"GET"},l=new on({accessToken:e.adminUserData.accessToken,refreshToken:e.adminUserData.refreshToken},t,n);return{httpHandler:async()=>l.request(o),url:r}};class a1{constructor(t){j(this,"usersList");j(this,"modelTitle","users");this.usersList=t}getData(){return this.usersList}getTitle(){return this.modelTitle}addUser(t){return this.usersList.push(t),this.usersList}}const c1=e=>e.map(t=>({profileId:t._id,firstname:t.user_data.first_name,lastname:t.user_data.last_name,accountId:t.account_id})),f1=async e=>{const t=await e(),n=c1(t);return new a1(n)};class d1{constructor(t){j(this,"repository");this.repository=t}async execute(){return await this.repository()}}const p1=({httpHandler:e})=>{const t=()=>f1(e),n=new d1(t);return()=>n.execute()},h1=e=>{const{useGetusersList:t}=e,[n,r]=_.useState(""),o=t();return{selectedRowId:n,setSelectedRowId:r,usersData:o}};function m1(e){const{selectedRowId:t,setSelectedRowId:n,usersList:r}=e,o=_.useMemo(()=>r.data?r.data.getData().map(u=>{const s={rowItemsTitle:[u.firstname,u.lastname],rowId:u.accountId};return R(Qp,{rowData:s,selectedRowId:t,setSelectedRowId:n},s.rowId)}):null,[r]),l={firstname:B.global.firstname,lastname:B.global.lastname},i=Object.keys(l).map(u=>{const s=u,a=l[s];return R("th",{className:"py-3",children:a},s)});return r.isLoading?R("div",{className:"flex justify-center items-center",children:R(Bp,{})}):te("table",{className:"table-auto rounded-md w-full text-sm h-fit",children:[R("thead",{className:"text-txt-medium font-bold",children:R("tr",{children:i})}),R("tbody",{children:o})]})}const g1=async e=>await e(),y1=()=>{const{accessTokenUpdateHandler:e,notLoginAuth:t,userData:n}=dr(),{user:r}=n,o=u1(r,e,t),{url:l}=o;return{getingusersLogic:p1(o),url:l}};function v1(e){const{selectedRowId:t,setSelectedRowId:n}=e,{getingusersLogic:r,url:o}=y1(),i=zp(o,async()=>await g1(r)),{usersData:u}=h1({useGetusersList:i});return R(m1,{usersList:u,selectedRowId:t,setSelectedRowId:n})}function E1(){const[e,t]=_.useState(""),[n,r]=_.useState(""),{accessTokenUpdateHandler:o,notLoginAuth:l,userData:i}=dr(),[u,s]=_.useState({message:"",type:"error"}),[a,c]=_.useState(!0),f=async d=>{var y,h,v,E;d.preventDefault();try{const g={url:Nt.core.createMember,data:{place_id:n,account_id:e},headers:{"Content-Type":"application/json"},method:"POST"},w={accessToken:((y=i.user)==null?void 0:y.adminUserData.accessToken)||null,refreshToken:((h=i.user)==null?void 0:h.adminUserData.refreshToken)||null};await new on(w,o,l).request(g),s({message:B.global.success.createMember,type:"success"})}catch(m){m instanceof Ju?s({message:(E=(v=m.response)==null?void 0:v.data)==null?void 0:E.description,type:"error"}):m instanceof Error&&s({message:m.message,type:"error"})}};return _.useEffect(()=>{c(!(e&&n))},[e,n]),te(xl,{children:[!!u.message&&R(Xu,{message:u.message,type:u.type,onCloseCallback:()=>s({message:"",type:"error"})}),R(kp,{className:"px-4 py-5",title:B.global.users}),te("div",{className:"container mx-auto px-4",children:[R("form",{onSubmit:f,className:"w-full flex flex-row-reverse items-center py-2 sticky top-0",children:R(Zu,{isDisabled:a,className:"text-sm disabled:opacity-25",title:B.global.submit,onClick:()=>null})}),te("div",{className:"md:grid-cols-2 gap-x-4 grid grid-cols-1 mx-auto",children:[R(v1,{selectedRowId:e,setSelectedRowId:t}),R(s1,{selectedRowId:n,setSelectedRowId:r})]})]})]})}const w1=(e,t,n)=>{const r=Nt.core.createUserAccount,o=new on({accessToken:e.adminUserData.accessToken,refreshToken:e.adminUserData.refreshToken},t,n);return i=>{const u={url:r,method:"POST",headers:{"Content-Type":"application/json"},data:i};return o.request(u)}},S1=(e,t,n)=>{const r=Nt.core.createUserProfile,o=new on({accessToken:e.adminUserData.accessToken,refreshToken:e.adminUserData.refreshToken},t,n);return i=>{const u={url:r,method:"POST",headers:{"Content-Type":"application/json"},data:i};return o.request(u)}},_1=e=>({enabled:!0,firstName:e.firstname,lastName:e.lastname,username:e.phonenumber}),R1=e=>({accountId:e.id,phonenumber:e.username});class C1{constructor(t){j(this,"httpHandler");j(this,"execute",async t=>{const n=_1(t),r=await this.httpHandler(n);return R1(r)});this.httpHandler=t}}class T1{constructor(t){j(this,"httpHandler");this.httpHandler=t}}const P1=e=>({account_id:e.accountId,first_name:e.firstname,last_name:e.lastname});class I1 extends T1{constructor(t){super(t)}async execute(t){const n=P1(t);return await this.httpHandler(n)}}class k1{constructor(t,n){j(this,"accountRepository");j(this,"profileRepository");this.accountRepository=t,this.profileRepository=n}async execute(t){const r={...await this.accountRepository.execute(t),...t};return await this.profileRepository.execute(r)}}class x1{constructor(t,n){j(this,"httpAccountHandler");j(this,"httpProfileHandler");this.httpAccountHandler=t,this.httpProfileHandler=n}execute(){const t=new C1(this.httpAccountHandler),n=new I1(this.httpProfileHandler);return new k1(t,n)}}function Gp(e){const{className:t,inputData:n,stateHanlder:r}=e,{name:o,title:l}=n,{setState:i,state:u}=r,s=a=>{const{value:c,name:f}=a.target;i(f,c)};return te("div",{className:`flex flex-col ${t}`,children:[R("label",{className:"mb-1 text-txt-second text-xs",htmlFor:l,children:l}),R("input",{value:u,onChange:s,name:o,className:"bg-bg-gray h-11 rounded-lg focus:outline-0 px-2 text-txt-medium w-full",id:l})]})}function N1(e){const{onSubmit:t,inputNames:n,stateHandler:r,error:o,setError:l}=e,{inputStates:i,inputsSetStates:u}=r,s=n.map(a=>{const c=B.global[a];return R(Gp,{inputData:{title:c,name:a},stateHanlder:{setState:u,state:i[a]},className:"mb-4 w-[48%] px-2"},a)});return te("form",{onSubmit:t,className:"px-4 my-8",children:[!!o.message&&R(Xu,{message:o.message,type:o.type,onCloseCallback:()=>l({message:"",type:"error"})}),R("div",{className:"flex flex-wrap w-full gap-4",children:s}),R("div",{className:"flex",children:R(Zu,{onClick:()=>null,title:B.global.submit})})]})}const A1={firstname:"",lastname:"",phonenumber:""},O1=["firstname","lastname","phonenumber"],L1=e=>{const[t,n]=_.useState({message:"",type:"error"}),{handleSubmitForm:r}=e,[o,l]=_.useState(A1),i=(a,c)=>{a==="phonenumber"&&!Vp(c)||l(f=>({...f,[a]:c}))},u=async a=>{var c,f;a.preventDefault();try{await r(o),n({message:B.global.success.createUser,type:"success"})}catch(d){d instanceof Ju?n({message:(f=(c=d.response)==null?void 0:c.data)==null?void 0:f.description,type:"error"}):d instanceof Error&&n({message:d.message,type:"error"})}},s={...o};return{stateHandler:{inputsSetStates:i,inputStates:s},onSubmit:u,inputNames:O1,error:t,setError:n}},U1=e=>{const{createUserLogic:t}=e;return{handleSubmitForm:async r=>{await t.execute(r)}}};function M1(){const{accessTokenUpdateHandler:e,notLoginAuth:t,userData:n}=dr(),{user:r}=n,o=w1(r,e,t),l=S1(r,e,t),u=new x1(o,l).execute(),{handleSubmitForm:s}=U1({createUserLogic:u}),{stateHandler:a,onSubmit:c,inputNames:f,error:d,setError:y}=L1({handleSubmitForm:s});return R(N1,{error:d,setError:y,stateHandler:a,inputNames:f,onSubmit:c})}function D1(){return te(xl,{children:[R(kp,{className:"px-4 py-5",title:B.global.createUser}),R(M1,{})]})}function F1(){const e=Rn(),t=sr(),n=Gl(),r=Object.keys(Rr).map(o=>{const l=o;return te(Sg,{to:Rr[l].path,className:`flex text-white mb-6 text-sm w-full py-2 pl-2 rounded-lg ${e.pathname===Rr[l].path?"bg-primary-300":""}`,children:[R("img",{src:Rr[l].icon,alt:"page icon",className:"mr-2"}),R("div",{children:Rr[l].title})]},l)});return te("aside",{className:"w-[15rem] min-w-[10rem] [background:var(--color-gradient-primary-dark)] p-4 pt-6",children:[R("div",{className:"logo",children:R("img",{src:lo.logo,alt:"logo icon"})}),te("div",{className:"mt-14 flex flex-col items-baseline",children:[r,R("div",{className:"mt-auto text-white px-3 absolute bottom-5",children:R("button",{onClick:()=>Hp(t,n),children:"Log out"})})]})]})}function z1(){const{user:e,setUser:t}=sr();return _.useEffect(()=>{!Cn.localStorage().getData(mo.adminUserStorageKey)&&t&&t(null)}),!e||!e.adminUserData.accessToken?R(Qu,{to:Xt.authentication,replace:!0}):te("div",{className:"flex flex-nowrap min-h-screen",children:[R(F1,{}),R("main",{className:"dipal-panel w-full text-black bg-white h-screen overflow-auto",children:R(sp,{})})]})}const V1=(e,t,n)=>{const r=B.global.errors.phonenumber,o=new on({accessToken:e&&(e==null?void 0:e.adminUserData.accessToken)&&null,refreshToken:e&&(e==null?void 0:e.adminUserData.refreshToken)&&null},t,n);return{httpHandler:i=>{const s={url:Nt.generic.authPhonenumber,headers:{"Content-Type":"application/json"},method:"POST",data:i};return o.request(s)},wrongPhoneNumberMessage:r}},H1=e=>({username:e.phonenumber});class B1{constructor(t){j(this,"httpHandler");this.httpHandler=t}async execute(t){const n=H1(t);return await this.httpHandler(n)}}class j1 extends Error{}class $1{constructor(t,n){j(this,"repository");j(this,"wrongPhoneNumberMessage");this.repository=t,this.wrongPhoneNumberMessage=n}async execute(t){if(!this.isPhoneNumberValid(t.phonenumber))throw new j1(this.wrongPhoneNumberMessage);return await this.repository.execute(t)}isPhoneNumberValid(t){return/\(?([0-9]{3})\)?([ .-]?)([0-9]{3})\2([0-9]{4})/.test(t)}}const W1=({httpHandler:e,wrongPhoneNumberMessage:t})=>{const n=new B1(e);return new $1(n,t)},Q1=(e,t,n)=>{const r=new on({accessToken:e&&e.adminUserData.accessToken&&null,refreshToken:e&&e.adminUserData.refreshToken&&null},t,n);return{httpHandler:l=>{const u={url:Nt.generic.authLogin,headers:{"Content-Type":"application/json"},method:"POST",data:l};return r.request(u)}}};class G1{constructor(t){j(this,"adminUserData");this.adminUserData=t}get(){return this.adminUserData}}const K1=e=>({accessToken:e.access_token,expiresIn:e.expires_in,phonenumber:e.phonenumber,refreshExpiresIn:e.refresh_expires_in,refreshToken:e.refresh_token,tokenType:e.token_type}),Y1=e=>({grant_type:"otp",password:e.otp,username:e.phonenumber});class q1{constructor(t){j(this,"httpHandler");this.httpHandler=t}async execute(t){const n=Y1(t),o={...await this.httpHandler(n),phonenumber:t.phonenumber},l=K1(o);return new G1(l)}}class Kp extends Error{}class J1{constructor(t){j(this,"repository");j(this,"validLenghtOfOtp",6);this.repository=t}async execute(t){if(!this.isOtpValid(t.otp))throw new Kp;return await this.repository.execute(t)}isOtpValid(t){return t.length>=this.validLenghtOfOtp}}const X1=e=>{const t=new q1(e);return new J1(t)};function Z1(e){const{eventHandlers:t,otpChar:n}=e,{handleFocusInput:r,handleKeyPressInput:o}=t,l=Array.from({length:6}).map((i,u)=>R("input",{tabIndex:u+1,ref:s=>n.current[u]=s,className:"font-bold text-base inline-block w-5 md:w-6 lg:w-8 xl:w-10 bg-transparent text-center focus:outline-none",maxLength:1,defaultValue:"_",placeholder:"_",onClick:s=>s.stopPropagation(),onFocus:r,onKeyDown:o},`otp_char_${u}`));return te("div",{className:"mb-9 justify-end items-center text-xs self-start",children:[R("div",{className:"text-xs mb-9 self-start text-txt-medium",children:B.global.enterOtpCode}),R("div",{className:"w-full flex gap-4",children:l})]})}const b1=e=>{const{otpChar:t}=e;function n(s,a){var f;const c=(f=s.parentElement)==null?void 0:f.querySelector(`input[tabindex="${a}"]`);c&&setTimeout(()=>c.focus(),150)}const r=()=>{t.current.length&&t.current[0].focus()};_.useEffect(()=>{r()},[]);const o=s=>{const a=s.target,c=a.getAttribute("tabindex");if(!c||+c==1){a.select();return}let f=!1;const d=t.current.find(y=>{const h=y.getAttribute("tabindex");if(!h)return!1;const v=!y.value.trim()||y.value.trim()==="_";return+h<+c&&v&&!f?(f=!0,!0):!1});if(d){d.select();return}a.select()};function l(s,a){const c=+a-1;c&&n(s,c)}function i(s,a){const c=+a+1;c&&n(s,c)}return{eventHandlers:{handleFocusInput:o,handleKeyPressInput:s=>{const a=s.target,c=a.getAttribute("tabindex");if(!c)return;if(s.key.toLowerCase()==="backspace"&&+c!=1){l(a,+c);return}i(a,+c)}}}},eE=Re.forwardRef((e,t)=>{const{eventHandlers:n}=b1({otpChar:t});return R(Z1,{eventHandlers:n,otpChar:t})});function tE(e){const{stateData:t}=e,{setState:n,stateValue:r}=t,o=(l,i)=>{Vp(i)&&n(i)};return te(xl,{children:[R("div",{className:"text-txt-medium text-xs mb-9 self-start",children:B.global.enterPhoneNumber}),R(Gp,{inputData:{name:B.global.phonenumber,title:B.global.phonenumber},stateHanlder:{setState:o,state:r},className:"mb-9 w-full self-start"})]})}function nE(e){const{authPhone:t,otpAuth:n}=e,[r,o]=_.useState(""),[l,i]=_.useState(""),{setUser:u}=sr(),s=_.useRef([]),a={phonenumber:R(tE,{stateData:{setState:o,stateValue:r}}),otp:R(eE,{ref:s})},[c,f]=_.useState("phonenumber");return te("div",{className:"main-auth flex flex-nowrap justify-start flex-row-reverse h-screen w-screen",children:[!!l&&R(Xu,{message:l,type:"error",onCloseCallback:()=>i("")}),te("form",{onSubmit:async y=>{var h,v;y.preventDefault();try{if(c==="phonenumber"&&(await t.execute({phonenumber:r}),f("otp")),c==="otp"){const E=s.current.map(g=>g.value).join(""),m=await n.execute({otp:E,phonenumber:r});Cn.localStorage().setData(mo.adminUserStorageKey,m),u&&u(m)}}catch(E){E instanceof Kp?i(B.global.errors.otp):E instanceof Ju?i((v=(h=E.response)==null?void 0:h.data)==null?void 0:v.description):E instanceof Error&&i(E.message)}},className:"w-full px-7 md:px-20 md:w-[50%] lg:w-[35%] min-w-[10rem] h-full shadow-lg shadow-slate-400 flex flex-col items-center justify-start pt-12",children:[R("div",{className:"w-48 h-[35%]",children:R("img",{src:lo.logoBlack,className:"w-full h-12",alt:"page icon"})}),R("div",{className:"font-normal mb-4 text-lg self-start",children:B.global.enterPanel}),a[c],R(Zu,{onClick:()=>null,title:B.global.submit,className:"[background:var(--color-gradient-button)] hover:brightness-90 transition-all w-full h-11"})]}),R("div",{className:"hidden md:flex md:w-[50%] lg:w-[65%] h-full"})]})}function rE(){const{accessTokenUpdateHandler:e,notLoginAuth:t,userData:n}=dr(),{user:r}=n,o=V1(r,e,t),l=W1(o),i=Q1(r,e,t),u=X1(i.httpHandler);return R(nE,{authPhone:l,otpAuth:u})}function oE(){return R(rE,{})}function lE(){const{user:e}=sr();return e&&e.adminUserData.accessToken?R(Qu,{to:Xt.usersList,replace:!0}):R(sp,{})}function iE(){const e=Rn();return te(pg,{location:e,children:[te(an,{element:R(z1,{}),children:[R(an,{index:!0,element:R(E1,{})}),R(an,{path:Xt.createUser,element:R(D1,{})})]}),R(an,{element:R(lE,{}),children:R(an,{path:Xt.authentication,element:R(oE,{})})}),R(an,{path:"*",element:R(Qu,{to:Xt.usersList,replace:!0})})]},e.key)}function sE(){const e=sr(),{setUser:t}=e;return _.useEffect(()=>{const r=Cn.localStorage().getData(mo.adminUserStorageKey);r&&r.adminUserData.accessToken&&t&&t(r)},[]),R(iE,{})}Vi.createRoot(document.getElementById("root")).render(R(R0,{children:R(vg,{children:R(sE,{})})}));
diff --git a/dist/index.html b/dist/index.html
index 043be88..bde7c61 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -2,11 +2,13 @@
-
+
- Vite + React + TS
-
-
+
+
+ Dipal admin panel
+
+
diff --git a/dist/vite.svg b/dist/vite.svg
deleted file mode 100644
index e7b8dfb..0000000
--- a/dist/vite.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml
index 4e3dcbc..66c87bf 100644
--- a/docker-compose.prod.yml
+++ b/docker-compose.prod.yml
@@ -3,7 +3,18 @@ services:
dipal-admin:
ports:
- 8000:80
- env_file: .env.production
+ environment:
+ - VITE_API_ORIGIN=http://behnam/api/v1
+ - VITE_API_AUTH_ORIGIN=http://176.53.196.42:5000/api/v1/auth
+ - VITE_API_AUTH_PHONENUMBER=/start-challenge
+ - VITE_API_AUTH_LOGIN=/login
+ - VITE_API_AUTH_REFRESH=/refresh-token
+ - VITE_API_CREATE_MEMBER=/user_place/members
+ - VITE_API_PLACES=/place
+ - VITE_API_USERS=/profile
+ - VITE_API_USERS_ACCOUNT=/account
+ - VITE_API_USERS_PROFILE=/profile
+ - VITE_API_QR=/qr_code
build:
context: .
dockerfile: dockerfile.prod
\ No newline at end of file
diff --git a/dockerfile.prod b/dockerfile.prod
index a2122da..96648ed 100644
--- a/dockerfile.prod
+++ b/dockerfile.prod
@@ -14,8 +14,7 @@ COPY --from=build /usr/app/dist /usr/share/nginx/html
RUN touch /var/run/nginx.pid
RUN chown -R nginx:nginx /var/run/nginx.pid /var/cache/nginx /var/log/nginx /etc/nginx/conf.d
-USER nginx
EXPOSE 80
-CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
+CMD ["/bin/sh", "-c", "envsubst < /usr/share/nginx/html/env/env.template.js > /usr/share/nginx/html/env/env.js && exec nginx -g 'daemon off;'"]
diff --git a/index.html b/index.html
index ddc9158..0494e24 100644
--- a/index.html
+++ b/index.html
@@ -4,6 +4,8 @@
+
+
Dipal admin panel
diff --git a/public/env/env.js b/public/env/env.js
new file mode 100644
index 0000000..6789549
--- /dev/null
+++ b/public/env/env.js
@@ -0,0 +1,13 @@
+const ENV = Object.freeze({
+ VITE_API_ORIGIN: 'http://176.53.196.42:6001/api/v1',
+ VITE_API_AUTH_ORIGIN: 'http://176.53.196.42:5000/api/v1/auth',
+ VITE_API_AUTH_PHONENUMBER: '/start-challenge',
+ VITE_API_AUTH_LOGIN: '/login',
+ VITE_API_AUTH_REFRESH: '/refresh-token',
+ VITE_API_CREATE_MEMBER: '/user_place/members',
+ VITE_API_PLACES: '/place',
+ VITE_API_USERS: '/profile',
+ VITE_API_USERS_ACCOUNT: '/account',
+ VITE_API_USERS_PROFILE: '/profile',
+ VITE_API_QR: '/qr_code',
+});
diff --git a/public/env/env.template.js b/public/env/env.template.js
new file mode 100644
index 0000000..169f63c
--- /dev/null
+++ b/public/env/env.template.js
@@ -0,0 +1,13 @@
+const ENV = Object.freeze({
+ VITE_API_ORIGIN: '${VITE_API_ORIGIN}',
+ VITE_API_AUTH_ORIGIN: '${VITE_API_AUTH_ORIGIN}',
+ VITE_API_AUTH_PHONENUMBER: '${VITE_API_AUTH_PHONENUMBER}',
+ VITE_API_AUTH_LOGIN: '${VITE_API_AUTH_LOGIN}',
+ VITE_API_AUTH_REFRESH: '${VITE_API_AUTH_REFRESH}',
+ VITE_API_CREATE_MEMBER: '${VITE_API_CREATE_MEMBER}',
+ VITE_API_PLACES: '${VITE_API_PLACES}',
+ VITE_API_USERS: '${VITE_API_USERS}',
+ VITE_API_USERS_ACCOUNT: '${VITE_API_USERS_ACCOUNT}',
+ VITE_API_USERS_PROFILE: '${VITE_API_USERS_PROFILE}',
+ VITE_API_QR: '${VITE_API_QR}',
+});
diff --git a/src/driven/utils/constants/envs.ts b/src/driven/utils/constants/envs.ts
index 80f6d65..8291109 100644
--- a/src/driven/utils/constants/envs.ts
+++ b/src/driven/utils/constants/envs.ts
@@ -1,14 +1,14 @@
export const ENVs = {
- apiOrigin: process.env.VITE_API_ORIGIN,
- apiAuthOrigin: process.env.VITE_API_AUTH_ORIGIN,
- apiAuthPhonenumber: process.env.VITE_API_AUTH_PHONENUMBER,
- apiAuthLogin: process.env.VITE_API_AUTH_LOGIN,
- apiAuthRefresh: process.env.VITE_API_AUTH_REFRESH,
- apiGetPlaces: process.env.VITE_API_PLACES,
- apiGetUsers: process.env.VITE_API_USERS,
- apiCreateUserAccount: process.env.VITE_API_USERS_ACCOUNT,
- apiQr: process.env.VITE_API_QR,
- apiCreateUserProfile: process.env.VITE_API_USERS_PROFILE,
- apiCreateMember: process.env.VITE_API_CREATE_MEMBER,
- apiCreatePlace: process.env.VITE_API_PLACES,
+ apiOrigin: ENV.VITE_API_ORIGIN,
+ apiAuthOrigin: ENV.VITE_API_AUTH_ORIGIN,
+ apiAuthPhonenumber: ENV.VITE_API_AUTH_PHONENUMBER,
+ apiAuthLogin: ENV.VITE_API_AUTH_LOGIN,
+ apiAuthRefresh: ENV.VITE_API_AUTH_REFRESH,
+ apiGetPlaces: ENV.VITE_API_PLACES,
+ apiGetUsers: ENV.VITE_API_USERS,
+ apiCreateUserAccount: ENV.VITE_API_USERS_ACCOUNT,
+ apiQr: ENV.VITE_API_QR,
+ apiCreateUserProfile: ENV.VITE_API_USERS_PROFILE,
+ apiCreateMember: ENV.VITE_API_CREATE_MEMBER,
+ apiCreatePlace: ENV.VITE_API_PLACES,
};
diff --git a/src/types/global.d.ts b/src/types/global.d.ts
new file mode 100644
index 0000000..4f3c05b
--- /dev/null
+++ b/src/types/global.d.ts
@@ -0,0 +1,17 @@
+declare global {
+ var ENV: {
+ VITE_API_ORIGIN: string;
+ VITE_API_AUTH_ORIGIN: string;
+ VITE_API_AUTH_PHONENUMBER: string;
+ VITE_API_AUTH_LOGIN: string;
+ VITE_API_AUTH_REFRESH: string;
+ VITE_API_CREATE_MEMBER: string;
+ VITE_API_PLACES: string;
+ VITE_API_USERS: string;
+ VITE_API_USERS_ACCOUNT: string;
+ VITE_API_USERS_PROFILE: string;
+ VITE_API_QR: string;
+ };
+}
+
+export {};