diff --git a/assets/index-Lx56BCcT.css b/assets/index-Lx56BCcT.css new file mode 100644 index 0000000..a84fe10 --- /dev/null +++ b/assets/index-Lx56BCcT.css @@ -0,0 +1 @@ +*,: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-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}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}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,: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: }.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.left-0{left:0}.top-0{top:0}.m-10{margin:2.5rem}.m-3{margin:.75rem}.m-8{margin:2rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-2{margin-bottom:.5rem}.ml-20{margin-left:5rem}.mr-2{margin-right:.5rem}.mr-5{margin-right:1.25rem}.mr-8{margin-right:2rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.box-border{box-sizing:border-box}.flex{display:flex}.h-8{height:2rem}.h-full{height:100%}.min-h-max{min-height:-moz-max-content;min-height:max-content}.min-h-screen{min-height:100vh}.w-32{width:8rem}.w-80{width:20rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.border-none{border-style:none}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-contain{background-size:contain}.p-0{padding:0}.p-3{padding:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pt-10{padding-top:2.5rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-amber-950{--tw-text-opacity: 1;color:rgb(69 26 3 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-orange-900{--tw-text-opacity: 1;color:rgb(124 45 18 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{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)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-500{transition-duration:.5s}.hover\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){.sm\:text-5xl{font-size:3rem;line-height:1}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 768px){.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}}@media (min-width: 1024px){.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 1280px){.xl\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\:text-base{font-size:1rem;line-height:1.5rem}.xl\:text-xl{font-size:1.25rem;line-height:1.75rem}} diff --git a/assets/index-eAIAgAOC.js b/assets/index-eAIAgAOC.js new file mode 100644 index 0000000..4d63b76 --- /dev/null +++ b/assets/index-eAIAgAOC.js @@ -0,0 +1,75 @@ +function xd(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function kd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _a={exports:{}},Fl={},Pa={exports:{}},j={};/** + * @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 gr=Symbol.for("react.element"),Ed=Symbol.for("react.portal"),Cd=Symbol.for("react.fragment"),_d=Symbol.for("react.strict_mode"),Pd=Symbol.for("react.profiler"),Nd=Symbol.for("react.provider"),zd=Symbol.for("react.context"),Rd=Symbol.for("react.forward_ref"),Td=Symbol.for("react.suspense"),Od=Symbol.for("react.memo"),jd=Symbol.for("react.lazy"),Ju=Symbol.iterator;function Ld(e){return e===null||typeof e!="object"?null:(e=Ju&&e[Ju]||e["@@iterator"],typeof e=="function"?e:null)}var Na={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},za=Object.assign,Ra={};function xn(e,t,n){this.props=e,this.context=t,this.refs=Ra,this.updater=n||Na}xn.prototype.isReactComponent={};xn.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")};xn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ta(){}Ta.prototype=xn.prototype;function Ho(e,t,n){this.props=e,this.context=t,this.refs=Ra,this.updater=n||Na}var Qo=Ho.prototype=new Ta;Qo.constructor=Ho;za(Qo,xn.prototype);Qo.isPureReactComponent=!0;var Zu=Array.isArray,Oa=Object.prototype.hasOwnProperty,Ko={current:null},ja={key:!0,ref:!0,__self:!0,__source:!0};function La(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Oa.call(t,r)&&!ja.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,Z=P[Q];if(0>>1;Q<_r;){var Rt=2*(Q+1)-1,si=P[Rt],Tt=Rt+1,Pr=P[Tt];if(0>l(si,O))Ttl(Pr,si)?(P[Q]=Pr,P[Tt]=O,Q=Tt):(P[Q]=si,P[Rt]=O,Q=Rt);else if(Ttl(Pr,O))P[Q]=Pr,P[Tt]=O,Q=Tt;else break e}}return T}function l(P,T){var O=P.sortIndex-T.sortIndex;return O!==0?O:P.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],a=[],d=1,p=null,m=3,v=!1,y=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(P){for(var T=n(a);T!==null;){if(T.callback===null)r(a);else if(T.startTime<=P)r(a),T.sortIndex=T.expirationTime,t(s,T);else break;T=n(a)}}function w(P){if(g=!1,h(P),!y)if(n(s)!==null)y=!0,oi(k);else{var T=n(a);T!==null&&ui(w,T.startTime-P)}}function k(P,T){y=!1,g&&(g=!1,f(R),R=-1),v=!0;var O=m;try{for(h(T),p=n(s);p!==null&&(!(p.expirationTime>T)||P&&!je());){var Q=p.callback;if(typeof Q=="function"){p.callback=null,m=p.priorityLevel;var Z=Q(p.expirationTime<=T);T=e.unstable_now(),typeof Z=="function"?p.callback=Z:p===n(s)&&r(s),h(T)}else r(s);p=n(s)}if(p!==null)var _r=!0;else{var Rt=n(a);Rt!==null&&ui(w,Rt.startTime-T),_r=!1}return _r}finally{p=null,m=O,v=!1}}var N=!1,z=null,R=-1,H=5,L=-1;function je(){return!(e.unstable_now()-LP||125Q?(P.sortIndex=O,t(a,P),n(s)===null&&P===n(a)&&(g?(f(R),R=-1):g=!0,ui(w,O-Q))):(P.sortIndex=Z,t(s,P),y||v||(y=!0,oi(k))),P},e.unstable_shouldYield=je,e.unstable_wrapCallback=function(P){var T=m;return function(){var O=m;m=T;try{return P.apply(this,arguments)}finally{m=O}}}})(Fa);Da.exports=Fa;var Hd=Da.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 Ua=E,xe=Hd;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bi=Object.prototype.hasOwnProperty,Qd=/^[: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]*$/,bu={},es={};function Kd(e){return Bi.call(es,e)?!0:Bi.call(bu,e)?!1:Qd.test(e)?es[e]=!0:(bu[e]=!0,!1)}function Xd(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 Yd(e,t,n,r){if(t===null||typeof t>"u"||Xd(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 fe(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new fe(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){re[e]=new fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Go=/[\-:]([a-z])/g;function Jo(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(Go,Jo);re[t]=new fe(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(Go,Jo);re[t]=new fe(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(Go,Jo);re[t]=new fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new fe(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zo(e,t,n,r){var l=re.hasOwnProperty(t)?re[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var s=` +`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{fi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dn(e):""}function Gd(e){switch(e.tag){case 5:return Dn(e.type);case 16:return Dn("Lazy");case 13:return Dn("Suspense");case 19:return Dn("SuspenseList");case 0:case 2:case 15:return e=di(e.type,!1),e;case 11:return e=di(e.type.render,!1),e;case 1:return e=di(e.type,!0),e;default:return""}}function Qi(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 Gt:return"Fragment";case Yt:return"Portal";case Wi:return"Profiler";case qo:return"StrictMode";case Vi:return"Suspense";case Hi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ba:return(e.displayName||"Context")+".Consumer";case Aa:return(e._context.displayName||"Context")+".Provider";case bo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case eu:return t=e.displayName||null,t!==null?t:Qi(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return Qi(e(t))}catch{}}return null}function Jd(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 Qi(t);case 8:return t===qo?"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 xt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Va(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zd(e){var t=Va(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rr(e){e._valueTracker||(e._valueTracker=Zd(e))}function Ha(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Va(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function il(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 Ki(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ns(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xt(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 Qa(e,t){t=t.checked,t!=null&&Zo(e,"checked",t,!1)}function Xi(e,t){Qa(e,t);var n=xt(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")?Yi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yi(e,t.type,xt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rs(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 Yi(e,t,n){(t!=="number"||il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bn={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},qd=["Webkit","ms","Moz","O"];Object.keys(Bn).forEach(function(e){qd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bn[t]=Bn[e]})});function Ga(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bn.hasOwnProperty(e)&&Bn[e]?(""+t).trim():t+"px"}function Ja(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ga(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var bd=W({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 Zi(e,t){if(t){if(bd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function qi(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 bi=null;function tu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var eo=null,sn=null,an=null;function os(e){if(e=xr(e)){if(typeof eo!="function")throw Error(x(280));var t=e.stateNode;t&&(t=Wl(t),eo(e.stateNode,e.type,t))}}function Za(e){sn?an?an.push(e):an=[e]:sn=e}function qa(){if(sn){var e=sn,t=an;if(an=sn=null,os(e),t)for(e=0;e>>=0,e===0?32:31-(cp(e)/fp|0)|0}var Or=64,jr=4194304;function Un(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 al(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Un(u):(i&=o,i!==0&&(r=Un(i)))}else o=n&~l,o!==0?r=Un(o):i!==0&&(r=Un(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&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 wr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function mp(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=Vn),ms=" ",vs=!1;function gc(e,t){switch(e){case"keyup":return Vp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jt=!1;function Qp(e,t){switch(e){case"compositionend":return wc(t);case"keypress":return t.which!==32?null:(vs=!0,ms);case"textInput":return e=t.data,e===ms&&vs?null:e;default:return null}}function Kp(e,t){if(Jt)return e==="compositionend"||!au&&gc(e,t)?(e=vc(),Gr=ou=at=null,Jt=!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=Ss(n)}}function Ec(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ec(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cc(){for(var e=window,t=il();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=il(e.document)}return t}function cu(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 th(e){var t=Cc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ec(n.ownerDocument.documentElement,n)){if(r!==null&&cu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=xs(n,i);var o=xs(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Zt=null,oo=null,Qn=null,uo=!1;function ks(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uo||Zt==null||Zt!==il(r)||(r=Zt,"selectionStart"in r&&cu(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}),Qn&&rr(Qn,r)||(Qn=r,r=dl(oo,"onSelect"),0en||(e.current=ho[en],ho[en]=null,en--)}function D(e,t){en++,ho[en]=e.current,e.current=t}var kt={},ue=Pt(kt),he=Pt(!1),$t=kt;function hn(e,t){var n=e.type.contextTypes;if(!n)return kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function me(e){return e=e.childContextTypes,e!=null}function hl(){U(he),U(ue)}function Rs(e,t,n){if(ue.current!==kt)throw Error(x(168));D(ue,t),D(he,n)}function Lc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(x(108,Jd(e)||"Unknown",l));return W({},n,r)}function ml(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kt,$t=ue.current,D(ue,e),D(he,he.current),!0}function Ts(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=Lc(e,t,$t),r.__reactInternalMemoizedMergedChildContext=e,U(he),U(ue),D(ue,e)):U(he),D(he,n)}var Ye=null,Vl=!1,Pi=!1;function Ic(e){Ye===null?Ye=[e]:Ye.push(e)}function ph(e){Vl=!0,Ic(e)}function Nt(){if(!Pi&&Ye!==null){Pi=!0;var e=0,t=M;try{var n=Ye;for(M=1;e>=o,l-=o,Ge=1<<32-Ue(t)+l|n<R?(H=z,z=null):H=z.sibling;var L=m(f,z,h[R],w);if(L===null){z===null&&(z=H);break}e&&z&&L.alternate===null&&t(f,z),c=i(L,c,R),N===null?k=L:N.sibling=L,N=L,z=H}if(R===h.length)return n(f,z),$&&Ot(f,R),k;if(z===null){for(;RR?(H=z,z=null):H=z.sibling;var je=m(f,z,L.value,w);if(je===null){z===null&&(z=H);break}e&&z&&je.alternate===null&&t(f,z),c=i(je,c,R),N===null?k=je:N.sibling=je,N=je,z=H}if(L.done)return n(f,z),$&&Ot(f,R),k;if(z===null){for(;!L.done;R++,L=h.next())L=p(f,L.value,w),L!==null&&(c=i(L,c,R),N===null?k=L:N.sibling=L,N=L);return $&&Ot(f,R),k}for(z=r(f,z);!L.done;R++,L=h.next())L=v(z,f,R,L.value,w),L!==null&&(e&&L.alternate!==null&&z.delete(L.key===null?R:L.key),c=i(L,c,R),N===null?k=L:N.sibling=L,N=L);return e&&z.forEach(function(Pn){return t(f,Pn)}),$&&Ot(f,R),k}function S(f,c,h,w){if(typeof h=="object"&&h!==null&&h.type===Gt&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case zr:e:{for(var k=h.key,N=c;N!==null;){if(N.key===k){if(k=h.type,k===Gt){if(N.tag===7){n(f,N.sibling),c=l(N,h.props.children),c.return=f,f=c;break e}}else if(N.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===it&&Fs(k)===N.type){n(f,N.sibling),c=l(N,h.props),c.ref=Ln(f,N,h),c.return=f,f=c;break e}n(f,N);break}else t(f,N);N=N.sibling}h.type===Gt?(c=Ut(h.props.children,f.mode,w,h.key),c.return=f,f=c):(w=rl(h.type,h.key,h.props,null,f.mode,w),w.ref=Ln(f,c,h),w.return=f,f=w)}return o(f);case Yt:e:{for(N=h.key;c!==null;){if(c.key===N)if(c.tag===4&&c.stateNode.containerInfo===h.containerInfo&&c.stateNode.implementation===h.implementation){n(f,c.sibling),c=l(c,h.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=Ii(h,f.mode,w),c.return=f,f=c}return o(f);case it:return N=h._init,S(f,c,N(h._payload),w)}if(Fn(h))return y(f,c,h,w);if(zn(h))return g(f,c,h,w);$r(f,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,h),c.return=f,f=c):(n(f,c),c=Li(h,f.mode,w),c.return=f,f=c),o(f)):n(f,c)}return S}var vn=Wc(!0),Vc=Wc(!1),kr={},Ke=Pt(kr),ur=Pt(kr),sr=Pt(kr);function Dt(e){if(e===kr)throw Error(x(174));return e}function wu(e,t){switch(D(sr,t),D(ur,e),D(Ke,kr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ji(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ji(t,e)}U(Ke),D(Ke,t)}function yn(){U(Ke),U(ur),U(sr)}function Hc(e){Dt(sr.current);var t=Dt(Ke.current),n=Ji(t,e.type);t!==n&&(D(ur,e),D(Ke,n))}function Su(e){ur.current===e&&(U(Ke),U(ur))}var A=Pt(0);function xl(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 Ni=[];function xu(){for(var e=0;en?n:4,e(!0);var r=zi.transition;zi.transition={};try{e(!1),t()}finally{M=n,zi.transition=r}}function uf(){return Oe().memoizedState}function yh(e,t,n){var r=gt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sf(e))af(t,n);else if(n=Uc(e,t,n,r),n!==null){var l=ae();$e(n,e,r,l),cf(n,t,r)}}function gh(e,t,n){var r=gt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sf(e))af(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Be(u,o)){var s=t.interleaved;s===null?(l.next=l,yu(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=Uc(e,t,l,r),n!==null&&(l=ae(),$e(n,e,r,l),cf(n,t,r))}}function sf(e){var t=e.alternate;return e===B||t!==null&&t===B}function af(e,t){Kn=kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ru(e,n)}}var El={readContext:Te,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},wh={readContext:Te,useCallback:function(e,t){return Ve().memoizedState=[e,t===void 0?null:t],e},useContext:Te,useEffect:$s,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,br(4194308,4,tf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return br(4194308,4,e,t)},useInsertionEffect:function(e,t){return br(4,2,e,t)},useMemo:function(e,t){var n=Ve();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ve();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=yh.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=Ve();return e={current:e},t.memoizedState=e},useState:Us,useDebugValue:Pu,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=Us(!1),t=e[0];return e=vh.bind(null,e[1]),Ve().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=B,l=Ve();if($){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),b===null)throw Error(x(349));Bt&30||Xc(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,$s(Gc.bind(null,r,i,e),[e]),r.flags|=2048,fr(9,Yc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ve(),t=b.identifierPrefix;if($){var n=Je,r=Ge;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ar++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[He]=t,e[or]=r,wf(e,t,!1,!1),t.stateNode=e;e:{switch(o=qi(n,r),n){case"dialog":F("cancel",e),F("close",e),l=r;break;case"iframe":case"object":case"embed":F("load",e),l=r;break;case"video":case"audio":for(l=0;l<$n.length;l++)F($n[l],e);l=r;break;case"source":F("error",e),l=r;break;case"img":case"image":case"link":F("error",e),F("load",e),l=r;break;case"details":F("toggle",e),l=r;break;case"input":ns(e,r),l=Ki(e,r),F("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=W({},r,{value:void 0}),F("invalid",e);break;case"textarea":ls(e,r),l=Gi(e,r),F("invalid",e);break;default:l=r}Zi(n,l),u=l;for(i in u)if(u.hasOwnProperty(i)){var s=u[i];i==="style"?Ja(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Ya(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Zn(e,s):typeof s=="number"&&Zn(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Jn.hasOwnProperty(i)?s!=null&&i==="onScroll"&&F("scroll",e):s!=null&&Zo(e,i,s,o))}switch(n){case"input":Rr(e),rs(e,r,!1);break;case"textarea":Rr(e),is(e);break;case"option":r.value!=null&&e.setAttribute("value",""+xt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?un(e,!!r.multiple,i,!1):r.defaultValue!=null&&un(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=pl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ie(t),null;case 6:if(e&&t.stateNode!=null)xf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Dt(sr.current),Dt(Ke.current),Ur(t)){if(r=t.stateNode,n=t.memoizedProps,r[He]=t,(i=r.nodeValue!==n)&&(e=Se,e!==null))switch(e.tag){case 3:Fr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Fr(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[He]=t,t.stateNode=r}return ie(t),null;case 13:if(U(A),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($&&ge!==null&&t.mode&1&&!(t.flags&128))Fc(),mn(),t.flags|=98560,i=!1;else if(i=Ur(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(x(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(x(317));i[He]=t}else mn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ie(t),i=!1}else De!==null&&(Lo(De),De=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||A.current&1?J===0&&(J=3):Lu())),t.updateQueue!==null&&(t.flags|=4),ie(t),null);case 4:return yn(),_o(e,t),e===null&&lr(t.stateNode.containerInfo),ie(t),null;case 10:return vu(t.type._context),ie(t),null;case 17:return me(t.type)&&hl(),ie(t),null;case 19:if(U(A),i=t.memoizedState,i===null)return ie(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)In(i,!1);else{if(J!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=xl(e),o!==null){for(t.flags|=128,In(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return D(A,A.current&1|2),t.child}e=e.sibling}i.tail!==null&&K()>wn&&(t.flags|=128,r=!0,In(i,!1),t.lanes=4194304)}else{if(!r)if(e=xl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),In(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!$)return ie(t),null}else 2*K()-i.renderingStartTime>wn&&n!==1073741824&&(t.flags|=128,r=!0,In(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=K(),t.sibling=null,n=A.current,D(A,r?n&1|2:n&1),t):(ie(t),null);case 22:case 23:return ju(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ye&1073741824&&(ie(t),t.subtreeFlags&6&&(t.flags|=8192)):ie(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function Nh(e,t){switch(du(t),t.tag){case 1:return me(t.type)&&hl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yn(),U(he),U(ue),xu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Su(t),null;case 13:if(U(A),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(A),null;case 4:return yn(),null;case 10:return vu(t.type._context),null;case 22:case 23:return ju(),null;case 24:return null;default:return null}}var Br=!1,oe=!1,zh=typeof WeakSet=="function"?WeakSet:Set,_=null;function ln(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function Po(e,t,n){try{n()}catch(r){V(e,t,r)}}var Ys=!1;function Rh(e,t){if(so=cl,e=Cc(),cu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,a=0,d=0,p=e,m=null;t:for(;;){for(var v;p!==n||l!==0&&p.nodeType!==3||(u=o+l),p!==i||r!==0&&p.nodeType!==3||(s=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(v=p.firstChild)!==null;)m=p,p=v;for(;;){if(p===e)break t;if(m===n&&++a===l&&(u=o),m===i&&++d===r&&(s=o),(v=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=v}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ao={focusedElem:e,selectionRange:n},cl=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,S=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ie(t.type,g),S);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(w){V(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return y=Ys,Ys=!1,y}function Xn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Po(t,n,i)}l=l.next}while(l!==r)}}function Kl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function No(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 kf(e){var t=e.alternate;t!==null&&(e.alternate=null,kf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[He],delete t[or],delete t[po],delete t[fh],delete t[dh])),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 Ef(e){return e.tag===5||e.tag===3||e.tag===4}function Gs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ef(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 zo(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=pl));else if(r!==4&&(e=e.child,e!==null))for(zo(e,t,n),e=e.sibling;e!==null;)zo(e,t,n),e=e.sibling}function Ro(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(Ro(e,t,n),e=e.sibling;e!==null;)Ro(e,t,n),e=e.sibling}var te=null,Me=!1;function lt(e,t,n){for(n=n.child;n!==null;)Cf(e,t,n),n=n.sibling}function Cf(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(Ul,n)}catch{}switch(n.tag){case 5:oe||ln(n,t);case 6:var r=te,l=Me;te=null,lt(e,t,n),te=r,Me=l,te!==null&&(Me?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Me?(e=te,n=n.stateNode,e.nodeType===8?_i(e.parentNode,n):e.nodeType===1&&_i(e,n),tr(e)):_i(te,n.stateNode));break;case 4:r=te,l=Me,te=n.stateNode.containerInfo,Me=!0,lt(e,t,n),te=r,Me=l;break;case 0:case 11:case 14:case 15:if(!oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Po(n,t,o),l=l.next}while(l!==r)}lt(e,t,n);break;case 1:if(!oe&&(ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){V(n,t,u)}lt(e,t,n);break;case 21:lt(e,t,n);break;case 22:n.mode&1?(oe=(r=oe)||n.memoizedState!==null,lt(e,t,n),oe=r):lt(e,t,n);break;default:lt(e,t,n)}}function Js(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zh),t.forEach(function(r){var l=Uh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Oh(r/1960))-r,10e?16:e,ct===null)var r=!1;else{if(e=ct,ct=null,Pl=0,I&6)throw Error(x(331));var l=I;for(I|=4,_=e.current;_!==null;){var i=_,o=i.child;if(_.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sK()-Tu?Ft(e,0):Ru|=n),ve(e,t)}function jf(e,t){t===0&&(e.mode&1?(t=jr,jr<<=1,!(jr&130023424)&&(jr=4194304)):t=1);var n=ae();e=et(e,t),e!==null&&(wr(e,t,n),ve(e,n))}function Fh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jf(e,n)}function Uh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),jf(e,n)}var Lf;Lf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,_h(e,t,n);pe=!!(e.flags&131072)}else pe=!1,$&&t.flags&1048576&&Mc(t,yl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;el(e,t),e=t.pendingProps;var l=hn(t,ue.current);fn(t,n),l=Eu(null,t,r,e,l,n);var i=Cu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(i=!0,ml(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,gu(t),l.updater=Hl,t.stateNode=l,l._reactInternals=t,wo(t,r,e,n),t=ko(null,t,r,!0,i,n)):(t.tag=0,$&&i&&fu(t),se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(el(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ah(r),e=Ie(r,e),l){case 0:t=xo(null,t,r,e,n);break e;case 1:t=Qs(null,t,r,e,n);break e;case 11:t=Vs(null,t,r,e,n);break e;case 14:t=Hs(null,t,r,Ie(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),xo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Qs(e,t,r,l,n);case 3:e:{if(vf(t),e===null)throw Error(x(387));r=t.pendingProps,i=t.memoizedState,l=i.element,$c(e,t),Sl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=gn(Error(x(423)),t),t=Ks(e,t,r,n,l);break e}else if(r!==l){l=gn(Error(x(424)),t),t=Ks(e,t,r,n,l);break e}else for(ge=mt(t.stateNode.containerInfo.firstChild),Se=t,$=!0,De=null,n=Vc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mn(),r===l){t=tt(e,t,n);break e}se(e,t,r,n)}t=t.child}return t;case 5:return Hc(t),e===null&&vo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,co(r,l)?o=null:i!==null&&co(r,i)&&(t.flags|=32),mf(e,t),se(e,t,o,n),t.child;case 6:return e===null&&vo(t),null;case 13:return yf(e,t,n);case 4:return wu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vn(t,null,r,n):se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Vs(e,t,r,l,n);case 7:return se(e,t,t.pendingProps,n),t.child;case 8:return se(e,t,t.pendingProps.children,n),t.child;case 12:return se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,D(gl,r._currentValue),r._currentValue=o,i!==null)if(Be(i.value,o)){if(i.children===l.children&&!he.current){t=tt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ze(-1,n&-n),s.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),yo(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(x(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),yo(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,fn(t,n),l=Te(l),r=r(l),t.flags|=1,se(e,t,r,n),t.child;case 14:return r=t.type,l=Ie(r,t.pendingProps),l=Ie(r.type,l),Hs(e,t,r,l,n);case 15:return pf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),el(e,t),t.tag=1,me(r)?(e=!0,ml(t)):e=!1,fn(t,n),Bc(t,r,l),wo(t,r,l,n),ko(null,t,r,!0,e,n);case 19:return gf(e,t,n);case 22:return hf(e,t,n)}throw Error(x(156,t.tag))};function If(e,t){return ic(e,t)}function $h(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 ze(e,t,n,r){return new $h(e,t,n,r)}function Iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ah(e){if(typeof e=="function")return Iu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bo)return 11;if(e===eu)return 14}return 2}function wt(e,t){var n=e.alternate;return n===null?(n=ze(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 rl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Iu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Gt:return Ut(n.children,l,i,t);case qo:o=8,l|=8;break;case Wi:return e=ze(12,n,t,l|2),e.elementType=Wi,e.lanes=i,e;case Vi:return e=ze(13,n,t,l),e.elementType=Vi,e.lanes=i,e;case Hi:return e=ze(19,n,t,l),e.elementType=Hi,e.lanes=i,e;case Wa:return Yl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Aa:o=10;break e;case Ba:o=9;break e;case bo:o=11;break e;case eu:o=14;break e;case it:o=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=ze(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Ut(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function Yl(e,t,n,r){return e=ze(22,e,r,t),e.elementType=Wa,e.lanes=n,e.stateNode={isHidden:!1},e}function Li(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function Ii(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bh(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hi(0),this.expirationTimes=hi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Mu(e,t,n,r,l,i,o,u,s){return e=new Bh(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ze(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gu(i),e}function Wh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uf)}catch(e){console.error(e)}}Uf(),Ma.exports=Ce;var $f=Ma.exports,la=$f;Ai.createRoot=la.createRoot,Ai.hydrateRoot=la.hydrateRoot;/** + * @remix-run/router v1.13.1 + * + * 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 pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function $u(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Yh(){return Math.random().toString(36).substr(2,8)}function oa(e,t){return{usr:e.state,key:e.key,idx:t}}function Io(e,t,n,r){return n===void 0&&(n=null),pr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Cn(t):t,{state:n,key:t&&t.key||r||Yh()})}function Rl(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 Cn(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 Gh(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,u=ft.Pop,s=null,a=d();a==null&&(a=0,o.replaceState(pr({},o.state,{idx:a}),""));function d(){return(o.state||{idx:null}).idx}function p(){u=ft.Pop;let S=d(),f=S==null?null:S-a;a=S,s&&s({action:u,location:g.location,delta:f})}function m(S,f){u=ft.Push;let c=Io(g.location,S,f);n&&n(c,S),a=d()+1;let h=oa(c,a),w=g.createHref(c);try{o.pushState(h,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;l.location.assign(w)}i&&s&&s({action:u,location:g.location,delta:1})}function v(S,f){u=ft.Replace;let c=Io(g.location,S,f);n&&n(c,S),a=d();let h=oa(c,a),w=g.createHref(c);o.replaceState(h,"",w),i&&s&&s({action:u,location:g.location,delta:0})}function y(S){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof S=="string"?S:Rl(S);return Y(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let g={get action(){return u},get location(){return e(l,o)},listen(S){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(ia,p),s=S,()=>{l.removeEventListener(ia,p),s=null}},createHref(S){return t(l,S)},createURL:y,encodeLocation(S){let f=y(S);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:v,go(S){return o.go(S)}};return g}var ua;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ua||(ua={}));function Jh(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Cn(t):t,l=Au(r.pathname||"/",n);if(l==null)return null;let i=Af(e);Zh(i);let o=null;for(let u=0;o==null&&u{let s={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&(Y(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=St([r,s.relativePath]),d=n.concat(s);i.children&&i.children.length>0&&(Y(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Af(i.children,t,d,a)),!(i.path==null&&!i.index)&&t.push({path:a,score:lm(a,i.index),routesMeta:d})};return e.forEach((i,o)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,o);else for(let s of Bf(i.path))l(i,o,s)}),t}function Bf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=Bf(r.join("/")),u=[];return u.push(...o.map(s=>s===""?i:[i,s].join("/"))),l&&u.push(...o),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Zh(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:im(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const qh=/^:\w+$/,bh=3,em=2,tm=1,nm=10,rm=-2,sa=e=>e==="*";function lm(e,t){let n=e.split("/"),r=n.length;return n.some(sa)&&(r+=rm),t&&(r+=em),n.filter(l=>!sa(l)).reduce((l,i)=>l+(qh.test(i)?bh:i===""?tm:nm),r)}function im(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function om(e,t){let{routesMeta:n}=e,r={},l="/",i=[];for(let o=0;o{let{paramName:m,isOptional:v}=d;if(m==="*"){let g=u[p]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const y=u[p];return v&&!y?a[m]=void 0:a[m]=cm(y||"",m),a},{}),pathname:i,pathnameBase:o,pattern:e}}function sm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),$u(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=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function am(e){try{return decodeURI(e)}catch(t){return $u(!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 cm(e,t){try{return decodeURIComponent(e)}catch(n){return $u(!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 Au(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 fm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Cn(e):e;return{pathname:n?n.startsWith("/")?n:dm(n,t):t,search:hm(r),hash:mm(l)}}function dm(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Mi(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 Wf(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Vf(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Cn(e):(l=pr({},e),Y(!l.pathname||!l.pathname.includes("?"),Mi("?","pathname","search",l)),Y(!l.pathname||!l.pathname.includes("#"),Mi("#","pathname","hash",l)),Y(!l.search||!l.search.includes("#"),Mi("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,u;if(o==null)u=n;else if(r){let p=t[t.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),p.pop();l.pathname=m.join("/")}u="/"+p.join("/")}else{let p=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),p-=1;l.pathname=m.join("/")}u=p>=0?t[p]:"/"}let s=fm(l,u),a=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(a||d)&&(s.pathname+="/"),s}const St=e=>e.join("/").replace(/\/\/+/g,"/"),pm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function vm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Hf=["post","put","patch","delete"];new Set(Hf);const ym=["get",...Hf];new Set(ym);/** + * React Router v6.20.1 + * + * 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)),o=E.useRef(!1);return Kf(()=>{o.current=!0}),E.useCallback(function(s,a){if(a===void 0&&(a={}),!o.current)return;if(typeof s=="number"){n.go(s);return}let d=Vf(s,JSON.parse(i),l,a.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:St([t,d.pathname])),(a.replace?n.replace:n.push)(d,a.state,a)},[t,n,i,l,e])}function km(){let{matches:e}=E.useContext(zt),t=e[e.length-1];return t?t.params:{}}function Xf(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=E.useContext(zt),{pathname:l}=ei(),i=JSON.stringify(Wf(r).map(o=>o.pathnameBase));return E.useMemo(()=>Vf(e,JSON.parse(i),l,n==="path"),[e,i,l,n])}function Em(e,t){return Cm(e,t)}function Cm(e,t,n){Er()||Y(!1);let{navigator:r}=E.useContext(_n),{matches:l}=E.useContext(zt),i=l[l.length-1],o=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let s=ei(),a;if(t){var d;let g=typeof t=="string"?Cn(t):t;u==="/"||(d=g.pathname)!=null&&d.startsWith(u)||Y(!1),a=g}else a=s;let p=a.pathname||"/",m=u==="/"?p:p.slice(u.length)||"/",v=Jh(e,{pathname:m}),y=Rm(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:St([u,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?u:St([u,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),l,n);return t&&y?E.createElement(bl.Provider,{value:{location:Tl({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:ft.Pop}},y):y}function _m(){let e=Lm(),t=vm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:l},n):null,i)}const Pm=E.createElement(_m,null);class Nm extends E.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?E.createElement(zt.Provider,{value:this.props.routeContext},E.createElement(Qf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zm(e){let{routeContext:t,match:n,children:r}=e,l=E.useContext(Bu);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(zt.Provider,{value:t},r)}function Rm(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var l;if((l=n)!=null&&l.errors)e=n.matches;else return null}let i=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let u=i.findIndex(s=>s.route.id&&(o==null?void 0:o[s.route.id]));u>=0||Y(!1),i=i.slice(0,Math.min(i.length,u+1))}return i.reduceRight((u,s,a)=>{let d=s.route.id?o==null?void 0:o[s.route.id]:null,p=null;n&&(p=s.route.errorElement||Pm);let m=t.concat(i.slice(0,a+1)),v=()=>{let y;return d?y=p:s.route.Component?y=E.createElement(s.route.Component,null):s.route.element?y=s.route.element:y=u,E.createElement(zm,{match:s,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:y})};return n&&(s.route.ErrorBoundary||s.route.errorElement||a===0)?E.createElement(Nm,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var Yf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Yf||{}),Ol=function(e){return 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",e}(Ol||{});function Tm(e){let t=E.useContext(Bu);return t||Y(!1),t}function Om(e){let t=E.useContext(gm);return t||Y(!1),t}function jm(e){let t=E.useContext(zt);return t||Y(!1),t}function Gf(e){let t=jm(),n=t.matches[t.matches.length-1];return n.route.id||Y(!1),n.route.id}function Lm(){var e;let t=E.useContext(Qf),n=Om(Ol.UseRouteError),r=Gf(Ol.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Im(){let{router:e}=Tm(Yf.UseNavigateStable),t=Gf(Ol.UseNavigateStable),n=E.useRef(!1);return Kf(()=>{n.current=!0}),E.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Tl({fromRouteId:t},i)))},[e,t])}function ll(e){Y(!1)}function Mm(e){let{basename:t="/",children:n=null,location:r,navigationType:l=ft.Pop,navigator:i,static:o=!1}=e;Er()&&Y(!1);let u=t.replace(/^\/*/,"/"),s=E.useMemo(()=>({basename:u,navigator:i,static:o}),[u,i,o]);typeof r=="string"&&(r=Cn(r));let{pathname:a="/",search:d="",hash:p="",state:m=null,key:v="default"}=r,y=E.useMemo(()=>{let g=Au(a,u);return g==null?null:{location:{pathname:g,search:d,hash:p,state:m,key:v},navigationType:l}},[u,a,d,p,m,v,l]);return y==null?null:E.createElement(_n.Provider,{value:s},E.createElement(bl.Provider,{children:n,value:y}))}function Dm(e){let{children:t,location:n}=e;return Em(Mo(t),n)}new Promise(()=>{});function Mo(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,l)=>{if(!E.isValidElement(r))return;let i=[...t,l];if(r.type===E.Fragment){n.push.apply(n,Mo(r.props.children,i));return}r.type!==ll&&Y(!1),!r.props.index||!r.props.children||Y(!1);let o={id:r.props.id||i.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&&(o.children=Mo(r.props.children,i)),n.push(o)}),n}/** + * React Router DOM v6.20.1 + * + * 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 Do(){return Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function Um(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $m(e,t){return e.button===0&&(!t||t==="_self")&&!Um(e)}const Am=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Bm="startTransition",aa=$i[Bm];function Wm(e){let{basename:t,children:n,future:r,window:l}=e,i=E.useRef();i.current==null&&(i.current=Xh({window:l,v5Compat:!0}));let o=i.current,[u,s]=E.useState({action:o.action,location:o.location}),{v7_startTransition:a}=r||{},d=E.useCallback(p=>{a&&aa?aa(()=>s(p)):s(p)},[s,a]);return E.useLayoutEffect(()=>o.listen(d),[o,d]),E.createElement(Mm,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o})}const Vm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Hm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fo=E.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:u,target:s,to:a,preventScrollReset:d,unstable_viewTransition:p}=t,m=Fm(t,Am),{basename:v}=E.useContext(_n),y,g=!1;if(typeof a=="string"&&Hm.test(a)&&(y=a,Vm))try{let h=new URL(window.location.href),w=a.startsWith("//")?new URL(h.protocol+a):new URL(a),k=Au(w.pathname,v);w.origin===h.origin&&k!=null?a=k+w.search+w.hash:g=!0}catch{}let S=wm(a,{relative:l}),f=Qm(a,{replace:o,state:u,target:s,preventScrollReset:d,relative:l,unstable_viewTransition:p});function c(h){r&&r(h),h.defaultPrevented||f(h)}return E.createElement("a",Do({},m,{href:y||S,onClick:g||i?r:c,ref:n,target:s}))});var ca;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ca||(ca={}));var fa;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fa||(fa={}));function Qm(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o,unstable_viewTransition:u}=t===void 0?{}:t,s=Sm(),a=ei(),d=Xf(e,{relative:o});return E.useCallback(p=>{if($m(p,n)){p.preventDefault();let m=r!==void 0?r:Rl(a)===Rl(d);s(e,{replace:m,state:l,preventScrollReset:i,relative:o,unstable_viewTransition:u})}},[a,s,d,r,l,n,e,i,o,u])}const Km=[{id:1,label:"XS",number:44},{id:2,label:"S",number:46},{id:3,label:"M",number:48},{id:4,label:"L",number:50},{id:5,label:"XL",number:52}],Jf=[{id:1,name:"Футболка",colors:[{id:1,name:"черный",images:["../../images/1/black_front.png","../../images/1/black_back.png"],price:"123.00",description:'Описание для "Футболка черный"',sizes:[1,2,3]},{id:2,name:"белый",images:["../../images/1/white_front.png","../../images/1/white_back.png"],price:"125.00",description:'Описание для "Футболка белый"',sizes:[1,2,3,4,5]},{id:3,name:"серый",images:["../../images/1/gray_front.png","../../images/1/gray_back.png"],price:"120.00",description:'Описание для "Футболка серый"',sizes:[]}]},{id:2,name:"Майка",colors:[{id:1,name:"желтый",images:["../../images/2/yellow_front.png","../../images/2/yellow_back.png"],price:"88.00",description:'Описание для "Майка желтый"',sizes:[1,2,3,4,5]},{id:2,name:"синий",images:["../../images/2/blue_front.png","../../images/2/blue_back.png"],price:"89.00",description:'Описание для "Майка синий"',sizes:[2]},{id:3,name:"черный",images:["../../images/2/black_front.png","../../images/2/black_back.png"],price:"90.00",description:'Описание для "Майка черный"',sizes:[]}]}];function Xm(e){return new Promise((t,n)=>{setTimeout(()=>{const r=Km.find(l=>l.id==e);r?t(r):n(new Error("getSize: Size not found"))},250)})}function Ym(){return new Promise(e=>{setTimeout(()=>e(Jf),250)})}function Gm(e){return new Promise((t,n)=>{setTimeout(()=>{const r=Jf.find(l=>l.id==e);r?t(r):n(new Error("getProduct: Product not found"))},250)})}var Zf={exports:{}},qf={};/** + * @license React + * use-sync-external-store-with-selector.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 Cr=E;function Jm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zm=typeof Object.is=="function"?Object.is:Jm,qm=Cr.useSyncExternalStore,bm=Cr.useRef,ev=Cr.useEffect,tv=Cr.useMemo,nv=Cr.useDebugValue;qf.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var i=bm(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=tv(function(){function s(v){if(!a){if(a=!0,d=v,v=r(v),l!==void 0&&o.hasValue){var y=o.value;if(l(y,v))return p=y}return p=v}if(y=p,Zm(d,v))return y;var g=r(v);return l!==void 0&&l(y,g)?y:(d=v,p=g)}var a=!1,d,p,m=n===void 0?null:n;return[function(){return s(t())},m===null?void 0:function(){return s(m())}]},[t,n,r,l]);var u=qm(e,i[0],i[1]);return ev(function(){o.hasValue=!0,o.value=u},[u]),nv(u),u};Zf.exports=qf;var rv=Zf.exports;function lv(e){e()}var bf=lv,iv=e=>bf=e,ov=()=>bf,we="default"in $i?Yo:$i,da=Symbol.for("react-redux-context"),pa=typeof globalThis<"u"?globalThis:{};function uv(){if(!we.createContext)return{};const e=pa[da]??(pa[da]=new Map);let t=e.get(we.createContext);return t||(t=we.createContext(null),e.set(we.createContext,t)),t}var Et=uv(),sv=()=>{throw new Error("uSES not initialized!")};function Wu(e=Et){return function(){return we.useContext(e)}}var ed=Wu(),td=sv,av=e=>{td=e},cv=(e,t)=>e===t;function fv(e=Et){const t=e===Et?ed:Wu(e);return function(r,l={}){const{equalityFn:i=cv,devModeChecks:o={}}=typeof l=="function"?{equalityFn:l}:l,{store:u,subscription:s,getServerState:a,stabilityCheck:d,identityFunctionCheck:p}=t();we.useRef(!0);const m=we.useCallback({[r.name](y){return r(y)}}[r.name],[r,d,o.stabilityCheck]),v=td(s.addNestedSub,u.getState,a||u.getState,m,i);return we.useDebugValue(v),v}}var jl=fv();function dv(){const e=ov();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],l=t;for(;l;)r.push(l),l=l.next;return r},subscribe(r){let l=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!l||t===null||(l=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var ha={notify(){},get:()=>[]};function pv(e,t){let n,r=ha,l=0,i=!1;function o(g){d();const S=r.subscribe(g);let f=!1;return()=>{f||(f=!0,S(),p())}}function u(){r.notify()}function s(){y.onStateChange&&y.onStateChange()}function a(){return i}function d(){l++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=dv())}function p(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=ha)}function m(){i||(i=!0,d())}function v(){i&&(i=!1,p())}const y={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:s,isSubscribed:a,trySubscribe:m,tryUnsubscribe:v,getListeners:()=>r};return y}var hv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mv=hv?we.useLayoutEffect:we.useEffect;function vv({store:e,context:t,children:n,serverState:r,stabilityCheck:l="once",identityFunctionCheck:i="once"}){const o=we.useMemo(()=>{const a=pv(e);return{store:e,subscription:a,getServerState:r?()=>r:void 0,stabilityCheck:l,identityFunctionCheck:i}},[e,r,l,i]),u=we.useMemo(()=>e.getState(),[e]);mv(()=>{const{subscription:a}=o;return a.onStateChange=a.notifyNestedSubs,a.trySubscribe(),u!==e.getState()&&a.notifyNestedSubs(),()=>{a.tryUnsubscribe(),a.onStateChange=void 0}},[o,u]);const s=t||Et;return we.createElement(s.Provider,{value:o},n)}var yv=vv;function nd(e=Et){const t=e===Et?ed:Wu(e);return function(){const{store:r}=t();return r}}var gv=nd();function wv(e=Et){const t=e===Et?gv:nd(e);return function(){return t().dispatch}}var ti=wv();av(rv.useSyncExternalStoreWithSelector);iv($f.unstable_batchedUpdates);const Vu=()=>{const[e,t]=E.useState(0),n=sessionStorage.getItem("cartItems"),r=jl(l=>l.cart.length);return E.useEffect(()=>{if(r===0){const l=JSON.parse(n||"[]");t(l.length)}else t(r)},[r]),C.jsxs("nav",{className:"m-10 flex flex-col md:flex-row justify-between md:items-center h-{50px} px-5 bg-gray-500 text-white",children:[C.jsx("h3",{className:"font-bold",children:"goods"}),C.jsxs("span",{className:"flex flex-col md:flex-row justify-between items-center",children:[C.jsx(Fo,{className:"mr-8 my-2 text-3xl",to:"/",children:"Все товары"}),C.jsxs(Fo,{className:"flex mr-2 my-2 text-3xl",to:"/favorite",children:["Корзина ",C.jsx("p",{className:"mr-5 text-base font-bold",children:e})]})]})]})},Sv=()=>{const[e,t]=E.useState([]);return E.useEffect(()=>{Ym().then(n=>{t(n)})},[]),C.jsxs(C.Fragment,{children:[C.jsx(Vu,{}),C.jsx("h2",{className:"ml-20 text-3xl underline",children:"Все товары"}),C.jsx("div",{className:"m-8 flex flex-wrap justify-center ",children:e.map(n=>C.jsxs(Fo,{className:"m-10 w-282 flex flex-col items-center box-border rounded-10 overflow-hidden bg-gray-100 cursor-pointer shadow-md hover:shadow-2xl",to:`/product/${n.id}`,children:[n.colors.length>0&&C.jsx("div",{className:"",children:C.jsx("img",{className:"w-80 bg-contain ",src:n.colors[0].images[0],alt:n.colors[0].name})}),C.jsx("h2",{className:"my-5 mr-5 xl:text-3xl lg:text-2xl sm:text-xl font-bold text-orange-900",children:n.name})]},n.id))})]})};function ee(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var xv=typeof Symbol=="function"&&Symbol.observable||"@@observable",ma=xv,Di=()=>Math.random().toString(36).substring(7).split("").join("."),kv={INIT:`@@redux/INIT${Di()}`,REPLACE:`@@redux/REPLACE${Di()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Di()}`},Ll=kv;function Hu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function rd(e,t,n){if(typeof e!="function")throw new Error(ee(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ee(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ee(1));return n(rd)(e,t)}let r=e,l=t,i=new Map,o=i,u=0,s=!1;function a(){o===i&&(o=new Map,i.forEach((S,f)=>{o.set(f,S)}))}function d(){if(s)throw new Error(ee(3));return l}function p(S){if(typeof S!="function")throw new Error(ee(4));if(s)throw new Error(ee(5));let f=!0;a();const c=u++;return o.set(c,S),function(){if(f){if(s)throw new Error(ee(6));f=!1,a(),o.delete(c),i=null}}}function m(S){if(!Hu(S))throw new Error(ee(7));if(typeof S.type>"u")throw new Error(ee(8));if(typeof S.type!="string")throw new Error(ee(17));if(s)throw new Error(ee(9));try{s=!0,l=r(l,S)}finally{s=!1}return(i=o).forEach(c=>{c()}),S}function v(S){if(typeof S!="function")throw new Error(ee(10));r=S,m({type:Ll.REPLACE})}function y(){const S=p;return{subscribe(f){if(typeof f!="object"||f===null)throw new Error(ee(11));function c(){const w=f;w.next&&w.next(d())}return c(),{unsubscribe:S(c)}},[ma](){return this}}}return m({type:Ll.INIT}),{dispatch:m,subscribe:p,getState:d,replaceReducer:v,[ma]:y}}function Ev(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ll.INIT})>"u")throw new Error(ee(12));if(typeof n(void 0,{type:Ll.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ee(13))})}function Cv(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw u&&u.type,new Error(ee(14));a[p]=y,s=s||y!==v}return s=s||r.length!==Object.keys(o).length,s?a:o}}function Il(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function _v(...e){return t=>(n,r)=>{const l=t(n,r);let i=()=>{throw new Error(ee(15))};const o={getState:l.getState,dispatch:(s,...a)=>i(s,...a)},u=e.map(s=>s(o));return i=Il(...u)(l.dispatch),{...l,dispatch:i}}}function Pv(e){return Hu(e)&&"type"in e&&typeof e.type=="string"}var ld=Symbol.for("immer-nothing"),va=Symbol.for("immer-draftable"),ke=Symbol.for("immer-state");function Fe(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Sn=Object.getPrototypeOf;function Ct(e){return!!e&&!!e[ke]}function nt(e){var t;return e?id(e)||Array.isArray(e)||!!e[va]||!!((t=e.constructor)!=null&&t[va])||ri(e)||li(e):!1}var Nv=Object.prototype.constructor.toString();function id(e){if(!e||typeof e!="object")return!1;const t=Sn(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Nv}function hr(e,t){ni(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function ni(e){const t=e[ke];return t?t.type_:Array.isArray(e)?1:ri(e)?2:li(e)?3:0}function Uo(e,t){return ni(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function od(e,t,n){const r=ni(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function zv(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ri(e){return e instanceof Map}function li(e){return e instanceof Set}function Lt(e){return e.copy_||e.base_}function $o(e,t){if(ri(e))return new Map(e);if(li(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&id(e))return Sn(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[ke];let r=Reflect.ownKeys(n);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=Rv),Object.freeze(e),t&&hr(e,(n,r)=>Qu(r,!0))),e}function Rv(){Fe(2)}function ii(e){return Object.isFrozen(e)}var Tv={};function Ht(e){const t=Tv[e];return t||Fe(0,e),t}var mr;function ud(){return mr}function Ov(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ya(e,t){t&&(Ht("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ao(e){Bo(e),e.drafts_.forEach(jv),e.drafts_=null}function Bo(e){e===mr&&(mr=e.parent_)}function ga(e){return mr=Ov(mr,e)}function jv(e){const t=e[ke];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function wa(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ke].modified_&&(Ao(t),Fe(4)),nt(e)&&(e=Ml(t,e),t.parent_||Dl(t,e)),t.patches_&&Ht("Patches").generateReplacementPatches_(n[ke].base_,e,t.patches_,t.inversePatches_)):e=Ml(t,n,[]),Ao(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ld?e:void 0}function Ml(e,t,n){if(ii(t))return t;const r=t[ke];if(!r)return hr(t,(l,i)=>Sa(e,r,t,l,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Dl(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const l=r.copy_;let i=l,o=!1;r.type_===3&&(i=new Set(l),l.clear(),o=!0),hr(i,(u,s)=>Sa(e,r,l,u,s,n,o)),Dl(e,l,!1),n&&e.patches_&&Ht("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Sa(e,t,n,r,l,i,o){if(Ct(l)){const u=i&&t&&t.type_!==3&&!Uo(t.assigned_,r)?i.concat(r):void 0,s=Ml(e,l,u);if(od(n,r,s),Ct(s))e.canAutoFreeze_=!1;else return}else o&&n.add(l);if(nt(l)&&!ii(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ml(e,l),(!t||!t.scope_.parent_)&&Dl(e,l)}}function Dl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Qu(t,n)}function Lv(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:ud(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=r,i=Ku;n&&(l=[r],i=vr);const{revoke:o,proxy:u}=Proxy.revocable(l,i);return r.draft_=u,r.revoke_=o,u}var Ku={get(e,t){if(t===ke)return e;const n=Lt(e);if(!Uo(n,t))return Iv(e,n,t);const r=n[t];return e.finalized_||!nt(r)?r:r===Fi(e.base_,t)?(Ui(e),e.copy_[t]=Vo(r,e)):r},has(e,t){return t in Lt(e)},ownKeys(e){return Reflect.ownKeys(Lt(e))},set(e,t,n){const r=sd(Lt(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const l=Fi(Lt(e),t),i=l==null?void 0:l[ke];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(zv(n,l)&&(n!==void 0||Uo(e.base_,t)))return!0;Ui(e),Wo(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Fi(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ui(e),Wo(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Lt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Fe(11)},getPrototypeOf(e){return Sn(e.base_)},setPrototypeOf(){Fe(12)}},vr={};hr(Ku,(e,t)=>{vr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});vr.deleteProperty=function(e,t){return vr.set.call(this,e,t,void 0)};vr.set=function(e,t,n){return Ku.set.call(this,e[0],t,n,e[0])};function Fi(e,t){const n=e[ke];return(n?Lt(n):e)[t]}function Iv(e,t,n){var l;const r=sd(t,n);return r?"value"in r?r.value:(l=r.get)==null?void 0:l.call(e.draft_):void 0}function sd(e,t){if(!(t in e))return;let n=Sn(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Sn(n)}}function Wo(e){e.modified_||(e.modified_=!0,e.parent_&&Wo(e.parent_))}function Ui(e){e.copy_||(e.copy_=$o(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Mv=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const o=this;return function(s=i,...a){return o.produce(s,d=>n.call(this,d,...a))}}typeof n!="function"&&Fe(6),r!==void 0&&typeof r!="function"&&Fe(7);let l;if(nt(t)){const i=ga(this),o=Vo(t,void 0);let u=!0;try{l=n(o),u=!1}finally{u?Ao(i):Bo(i)}return ya(i,r),wa(l,i)}else if(!t||typeof t!="object"){if(l=n(t),l===void 0&&(l=t),l===ld&&(l=void 0),this.autoFreeze_&&Qu(l,!0),r){const i=[],o=[];Ht("Patches").generateReplacementPatches_(t,l,i,o),r(i,o)}return l}else Fe(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,s=>t(s,...u));let r,l;return[this.produce(t,n,(o,u)=>{r=o,l=u}),r,l]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){nt(e)||Fe(8),Ct(e)&&(e=ad(e));const t=ga(this),n=Vo(e,void 0);return n[ke].isManual_=!0,Bo(t),n}finishDraft(e,t){const n=e&&e[ke];(!n||!n.isManual_)&&Fe(9);const{scope_:r}=n;return ya(r,t),wa(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const l=t[n];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}n>-1&&(t=t.slice(n+1));const r=Ht("Patches").applyPatches_;return Ct(e)?r(e,t):this.produce(e,l=>r(l,t))}};function Vo(e,t){const n=ri(e)?Ht("MapSet").proxyMap_(e,t):li(e)?Ht("MapSet").proxySet_(e,t):Lv(e,t);return(t?t.scope_:ud()).drafts_.push(n),n}function ad(e){return Ct(e)||Fe(10,e),cd(e)}function cd(e){if(!nt(e)||ii(e))return e;const t=e[ke];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=$o(e,t.scope_.immer_.useStrictShallowCopy_)}else n=$o(e,!0);return hr(n,(r,l)=>{od(n,r,cd(l))}),t&&(t.finalized_=!1),n}var Ee=new Mv,fd=Ee.produce;Ee.produceWithPatches.bind(Ee);Ee.setAutoFreeze.bind(Ee);Ee.setUseStrictShallowCopy.bind(Ee);Ee.applyPatches.bind(Ee);Ee.createDraft.bind(Ee);Ee.finishDraft.bind(Ee);function Dv(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Fv(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var xa=e=>Array.isArray(e)?e:[e];function Uv(e){const t=Array.isArray(e[0])?e[0]:e;return Fv(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function $v(e,t){const n=[],{length:r}=e;for(let l=0;l{n=Hr(),o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function Vv(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e;return(...l)=>{let i=0,o=0,u,s={},a=l.pop();typeof a=="object"&&(s=a,a=l.pop()),Dv(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const d={...n,...s},{memoize:p,memoizeOptions:m=[],argsMemoize:v=dd,argsMemoizeOptions:y=[],devModeChecks:g={}}=d,S=xa(m),f=xa(y),c=Uv(l),h=p(function(){return i++,a.apply(null,arguments)},...S),w=v(function(){o++;const N=$v(c,arguments);return u=h.apply(null,N),u},...f);return Object.assign(w,{resultFunc:a,memoizedResultFunc:h,dependencies:c,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:p,argsMemoize:v})}}function pd(e){return({dispatch:n,getState:r})=>l=>i=>typeof i=="function"?i(n,r,e):l(i)}var Hv=pd(),Qv=pd,Kv=(...e)=>{const t=Vv(...e);return(...n)=>{const r=t(...n),l=(i,...o)=>r(Ct(i)?ad(i):i,...o);return Object.assign(l,r),l}};Kv(dd);var Xv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Il:Il.apply(null,arguments)};function yr(e,t){function n(...r){if(t){let l=t(...r);if(!l)throw new Error(Ae(0));return{type:e,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Pv(r)&&r.type===e,n}var hd=class An extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,An.prototype)}static get[Symbol.species](){return An}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new An(...t[0].concat(this)):new An(...t.concat(this))}};function Ea(e){return nt(e)?fd(e,()=>{}):e}function Ca(e,t,n){if(e.has(t)){let l=e.get(t);return n.update&&(l=n.update(l,t,e),e.set(t,l)),l}if(!n.insert)throw new Error(Ae(10));const r=n.insert(t,e);return e.set(t,r),r}function Yv(e){return typeof e=="boolean"}var Gv=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:l=!0,actionCreatorCheck:i=!0}=t??{};let o=new hd;return n&&(Yv(n)?o.push(Hv):o.push(Qv(n.extraArgument))),o},Jv="RTK_autoBatch",md=e=>t=>{setTimeout(t,e)},Zv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:md(10),qv=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let l=!0,i=!1,o=!1;const u=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?Zv:e.type==="callback"?e.queueNotification:md(e.timeout),a=()=>{o=!1,i&&(i=!1,u.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const p=()=>l&&d(),m=r.subscribe(p);return u.add(d),()=>{m(),u.delete(d)}},dispatch(d){var p;try{return l=!((p=d==null?void 0:d.meta)!=null&&p[Jv]),i=!l,i&&(o||(o=!0,s(a))),r.dispatch(d)}finally{l=!0}}})},bv=e=>function(n){const{autoBatch:r=!0}=n??{};let l=new hd(e);return r&&l.push(qv(typeof r=="object"?r:void 0)),l},ey=!0;function ty(e){const t=Gv(),{reducer:n=void 0,middleware:r,devTools:l=!0,preloadedState:i=void 0,enhancers:o=void 0}=e||{};let u;if(typeof n=="function")u=n;else if(Hu(n))u=Cv(n);else throw new Error(Ae(1));let s;typeof r=="function"?s=r(t):s=t();let a=Il;l&&(a=Xv({trace:!ey,...typeof l=="object"&&l}));const d=_v(...s),p=bv(d);let m=typeof o=="function"?o(p):p();const v=a(...m);return rd(u,i,v)}function vd(e){const t={},n=[];let r;const l={addCase(i,o){const u=typeof i=="string"?i:i.type;if(!u)throw new Error(Ae(28));if(u in t)throw new Error(Ae(29));return t[u]=o,l},addMatcher(i,o){return n.push({matcher:i,reducer:o}),l},addDefaultCase(i){return r=i,l}};return e(l),[t,n,r]}function ny(e){return typeof e=="function"}function ry(e,t){let[n,r,l]=vd(t),i;if(ny(e))i=()=>Ea(e());else{const u=Ea(e);i=()=>u}function o(u=i(),s){let a=[n[s.type],...r.filter(({matcher:d})=>d(s)).map(({reducer:d})=>d)];return a.filter(d=>!!d).length===0&&(a=[l]),a.reduce((d,p)=>{if(p)if(Ct(d)){const v=p(d,s);return v===void 0?d:v}else{if(nt(d))return fd(d,m=>p(m,s));{const m=p(d,s);if(m===void 0){if(d===null)return d;throw new Error(Ae(9))}return m}}return d},u)}return o.getInitialState=i,o}var ly=Symbol.for("rtk-slice-createasyncthunk");function iy(e,t){return`${e}/${t}`}function oy({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[ly];return function(l){const{name:i,reducerPath:o=i}=l;if(!i)throw new Error(Ae(11));typeof process<"u";const u=(typeof l.reducers=="function"?l.reducers(sy()):l.reducers)||{},s=Object.keys(u),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(S,f){const c=typeof S=="string"?S:S.type;if(!c)throw new Error(Ae(12));if(c in a.sliceCaseReducersByType)throw new Error(Ae(13));return a.sliceCaseReducersByType[c]=f,d},addMatcher(S,f){return a.sliceMatchers.push({matcher:S,reducer:f}),d},exposeAction(S,f){return a.actionCreators[S]=f,d},exposeCaseReducer(S,f){return a.sliceCaseReducersByName[S]=f,d}};s.forEach(S=>{const f=u[S],c={reducerName:S,type:iy(i,S),createNotation:typeof l.reducers=="function"};cy(f)?dy(c,f,d,t):ay(c,f,d)});function p(){const[S={},f=[],c=void 0]=typeof l.extraReducers=="function"?vd(l.extraReducers):[l.extraReducers],h={...S,...a.sliceCaseReducersByType};return ry(l.initialState,w=>{for(let k in h)w.addCase(k,h[k]);for(let k of a.sliceMatchers)w.addMatcher(k.matcher,k.reducer);for(let k of f)w.addMatcher(k.matcher,k.reducer);c&&w.addDefaultCase(c)})}const m=S=>S,v=new WeakMap;let y;const g={name:i,reducerPath:o,reducer(S,f){return y||(y=p()),y(S,f)},actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState(){return y||(y=p()),y.getInitialState()},getSelectors(S=m){const f=Ca(v,this,{insert:()=>new WeakMap});return Ca(f,S,{insert:()=>{const c={};for(const[h,w]of Object.entries(l.selectors??{}))c[h]=uy(this,w,S,this!==g);return c}})},selectSlice(S){let f=S[this.reducerPath];return typeof f>"u"&&this!==g&&(f=this.getInitialState()),f},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(S,{reducerPath:f,...c}={}){const h=f??this.reducerPath;return S.inject({reducerPath:h,reducer:this.reducer},c),{...this,reducerPath:h}}};return g}}function uy(e,t,n,r){function l(i,...o){let u=n.call(e,i);return typeof u>"u"&&r&&(u=e.getInitialState()),t(u,...o)}return l.unwrapped=t,l}var Xu=oy();function sy(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function ay({type:e,reducerName:t,createNotation:n},r,l){let i,o;if("reducer"in r){if(n&&!fy(r))throw new Error(Ae(17));i=r.reducer,o=r.prepare}else i=r;l.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?yr(e,o):yr(e))}function cy(e){return e._reducerDefinitionType==="asyncThunk"}function fy(e){return e._reducerDefinitionType==="reducerWithPrepare"}function dy({type:e,reducerName:t},n,r,l){if(!l)throw new Error(Ae(18));const{payloadCreator:i,fulfilled:o,pending:u,rejected:s,settled:a,options:d}=n,p=l(e,i,d);r.exposeAction(t,p),o&&r.addCase(p.fulfilled,o),u&&r.addCase(p.pending,u),s&&r.addCase(p.rejected,s),a&&r.addMatcher(p.settled,a),r.exposeCaseReducer(t,{fulfilled:o||Qr,pending:u||Qr,rejected:s||Qr,settled:a||Qr})}function Qr(){}var Yu="listenerMiddleware";yr(`${Yu}/add`);yr(`${Yu}/removeAll`);yr(`${Yu}/remove`);function Ae(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const py={items:[],length:0},yd=Xu({name:"cart",initialState:py,reducers:{addToCart:(e,t)=>{e.items.push(t.payload),e.length=e.items.length},removeFromCart:(e,t)=>{const n=t.payload;n>=0&&n{const e=ti(),[t,n]=E.useState([]);E.useEffect(()=>{const i=JSON.parse(sessionStorage.getItem("cartItems")||"[]");console.log(i),n(i)},[]);const r=i=>{sessionStorage.setItem("cartItems",JSON.stringify(i))},l=i=>{e(my(i)),n(o=>{const u=o.filter((s,a)=>a!==i);return r(u),u})};return C.jsxs(C.Fragment,{children:[C.jsx(Vu,{}),C.jsx("h2",{className:"ml-20 text-3xl underline",children:"Ваша корзина"}),C.jsxs("div",{className:"m-8 flex flex-wrap justify-center",children:[t.length===0&&C.jsx("h2",{className:"mt-3 xl:text-3xl lg:text-2xl sm:text-sm font-bold text-amber-950",children:"товаров в корзине нет"}),t.map((i,o)=>C.jsxs("div",{className:"m-10 w-282 flex flex-col items-center box-border rounded-10 overflow-hidden bg-gray-100 shadow-md rounded",children:[C.jsx("div",{className:"min-h-max",children:C.jsx("img",{className:"w-80 bg-contain cursor-pointer hover:shadow-2xl",src:i.photo,alt:i.nameProduct,title:"фото товара"})}),C.jsx("h2",{className:"mt-3 xl:text-3xl lg:text-2xl sm:text-sm font-bold text-amber-950",children:i.nameProduct}),C.jsxs("p",{className:"mt-2 xl:text-xl lg:text-base sm:text-sm",children:["цвет: ",i.colorName]}),C.jsxs("p",{className:"mt-2 xl:text-xl lg:text-base sm:text-sm",children:["размер: ",i.sizeName," "]}),C.jsxs("p",{className:"mt-2 xl:text-xl lg:text-base sm:text-sm",children:["цена: ",i.price," "]}),C.jsx("button",{className:"mb-2 bg-slate-400 rounded-full",onClick:()=>l(o),children:C.jsx("p",{className:"py-2 px-3 font-bold xl:text-base lg:text-base sm:text-sm text-black",children:"Удалить из корзины"})})]},o))]})]})},gy={isOpen:!1,images:[],currentImageIndex:0},gd=Xu({name:"popup",initialState:gy,reducers:{openPopup:(e,t)=>{e.isOpen=!0,e.images=t.payload,e.currentImageIndex=0},closePopup:e=>{e.isOpen=!1,e.images=[],e.currentImageIndex=0},nextImage:e=>{e.currentImageIndex=(e.currentImageIndex+1)%e.images.length},prevImage:e=>{e.currentImageIndex=(e.currentImageIndex-1+e.images.length)%e.images.length}}}),{openPopup:wy,closePopup:Sy,nextImage:xy,prevImage:ky}=gd.actions,Ey=gd.reducer,Cy={selectedSizes:{}},wd=Xu({name:"sizeSelect",initialState:Cy,reducers:{isSelect:(e,t)=>{const{cardId:n,sizeName:r}=t.payload;e.selectedSizes={...e.selectedSizes,[n]:r}},notSelect:(e,t)=>{const n=t.payload;e.selectedSizes={...e.selectedSizes,[n]:null}}}}),{isSelect:_y,notSelect:Py}=wd.actions,Ny=wd.reducer,zy=({sizes:e,colorId:t})=>{const n=ti(),[r,l]=E.useState([]),[i,o]=E.useState(null);E.useEffect(()=>{(async()=>{const a=e.map(async p=>(await Xm(p)).label),d=await Promise.all(a);l(d)})()},[e]);const u=s=>{i===s?(o(null),n(Py(t.toString()))):(o(s),n(_y({cardId:t.toString(),sizeName:s})))};return C.jsx("div",{className:"flex",children:r.map((s,a)=>C.jsx("p",{className:`m-3 p-0 cursor-pointer font-bold ${i===s?"underline":""}`,onClick:()=>u(s),children:s},a))})},Ry=()=>{const e=ti(),{isOpen:t,images:n,currentImageIndex:r}=jl(u=>u.popup),l=()=>{e(Sy())},i=()=>{e(xy())},o=()=>{e(ky())};return!t||!n.length?null:C.jsx("div",{className:`fixed top-0 left-0 w-full h-full flex items-center justify-center bg-black bg-opacity-50 transition-all duration-500 ${t?"visible opacity-100":"invisible opacity-0"}`,children:C.jsxs("div",{className:"w-430 mx-auto bg-white shadow-md rounded-10 flex flex-col items-center",children:[C.jsx("button",{type:"button",className:"w-32 h-8 bg-slate-400 border-none font-bold text-24 text-black",onClick:l,children:"Закрыть ×"}),C.jsx("img",{className:"w-80 bg-contain",src:n[r],alt:`Image ${r+1}`}),C.jsxs("div",{className:"flex justify-between w-full items-start p-3",children:[C.jsx("button",{className:"w-32 h-8 bg-slate-400 font-bold text-24 text-black",onClick:o,children:"< Предыдущая"}),C.jsx("button",{className:"w-32 h-8 bg-slate-400 font-bold text-24 text-black",onClick:i,children:"Следующая >"})]})]})})},Ty=()=>{const e=ti(),{id:t}=km(),[n,r]=E.useState([]),[l,i]=E.useState(""),[o,u]=E.useState([]),{items:s}=jl(v=>v.cart);E.useEffect(()=>{sessionStorage.setItem("cartItems",JSON.stringify(s))},[s]);const{selectedSizes:a}=jl(v=>v.sizeSelect),d=async()=>{if(t!==void 0){const v=await Gm(parseInt(t.toString()));i(v.name),r(v.colors);const g=await Promise.all(v.colors.map(async S=>S.sizes));u(g)}};E.useEffect(()=>{d()},[]);const p=v=>{const g=v.currentTarget.getAttribute("data-images");g&&e(wy(JSON.parse(g)))},m=(v,y,g,S,f)=>{e(hy({colorName:y,sizeName:f,photo:g,price:S,nameProduct:v}))};return C.jsxs(C.Fragment,{children:[C.jsx(Vu,{}),C.jsx("h2",{className:"ml-20 text-3xl underline",children:l}),C.jsx("div",{className:"m-8 flex flex-wrap justify-center",children:n.map((v,y)=>C.jsxs("div",{className:"m-10 w-282 flex flex-col items-center box-border rounded-10 overflow-hidden bg-gray-100 shadow-md rounded",children:[C.jsx("div",{className:"",children:C.jsx("img",{className:"w-80 bg-contain cursor-pointer hover:shadow-2xl",src:v.images[0],alt:v.name,title:"посмотреть","data-images":JSON.stringify(v.images),onClick:p,onTouchStart:p})}),C.jsxs("h2",{className:"mt-3 xl:text-3xl lg:text-2xl sm:text-sm font-bold text-amber-950",children:["цвет: ",v.name]}),C.jsxs("p",{className:"mt-2 xl:text-xl lg:text-base sm:text-sm",children:["цена: ",v.price," "]}),C.jsx("p",{className:"my-2",children:"выберете размер:"}),v.sizes.length>0?C.jsxs("div",{className:"flex flex-col items-center",children:[C.jsx(zy,{sizes:o[y],colorId:v.id}),C.jsx("button",{className:`mb-2 ${a[v.id]?"bg-slate-400":"bg-gray-300"} rounded-full`,disabled:!a[v.id],onClick:()=>{const g=a[v.id];g!==null&&m(l,v.name,v.images[0],v.price,g)},children:C.jsx("p",{className:"py-2 px-3 font-bold xl:text-base lg:text-base sm:text-sm text-black",children:"Добавить в корзину"})})]}):C.jsx("p",{className:"my-2 font-bold xl:text-base lg:text-base sm:text-sm",children:"нет в наличии"})]},v.id))}),C.jsx(Ry,{})]})},Oy=()=>C.jsxs("main",{className:"bg-slate-200 min-h-screen",children:[C.jsx("h2",{className:"pt-10 mx-10 text-3xl sm:text-5xl font-bold",children:"E-commerce"}),C.jsxs(Dm,{children:[C.jsx(ll,{path:"/e-commmerce-spa",element:C.jsx(Sv,{})}),C.jsx(ll,{path:"/product/:id",element:C.jsx(Ty,{})}),C.jsx(ll,{path:"/favorite",element:C.jsx(yy,{})})]})]}),jy=ty({reducer:{popup:Ey,cart:vy,sizeSelect:Ny}});Ai.createRoot(document.getElementById("root")).render(C.jsx(Yo.StrictMode,{children:C.jsx(yv,{store:jy,children:C.jsx(Wm,{children:C.jsx(Oy,{})})})})); diff --git a/images/1/black_back.png b/images/1/black_back.png new file mode 100644 index 0000000..2b41738 Binary files /dev/null and b/images/1/black_back.png differ diff --git a/images/1/black_front.png b/images/1/black_front.png new file mode 100644 index 0000000..ecbffed Binary files /dev/null and b/images/1/black_front.png differ diff --git a/images/1/gray_back.png b/images/1/gray_back.png new file mode 100644 index 0000000..62c8eaf Binary files /dev/null and b/images/1/gray_back.png differ diff --git a/images/1/gray_front.png b/images/1/gray_front.png new file mode 100644 index 0000000..6a02fe3 Binary files /dev/null and b/images/1/gray_front.png differ diff --git a/images/1/white_back.png b/images/1/white_back.png new file mode 100644 index 0000000..10e3f50 Binary files /dev/null and b/images/1/white_back.png differ diff --git a/images/1/white_front.png b/images/1/white_front.png new file mode 100644 index 0000000..d3b3473 Binary files /dev/null and b/images/1/white_front.png differ diff --git a/images/2/black_back.png b/images/2/black_back.png new file mode 100644 index 0000000..dfd17c3 Binary files /dev/null and b/images/2/black_back.png differ diff --git a/images/2/black_front.png b/images/2/black_front.png new file mode 100644 index 0000000..fed4ab8 Binary files /dev/null and b/images/2/black_front.png differ diff --git a/images/2/blue_back.png b/images/2/blue_back.png new file mode 100644 index 0000000..fec4c79 Binary files /dev/null and b/images/2/blue_back.png differ diff --git a/images/2/blue_front.png b/images/2/blue_front.png new file mode 100644 index 0000000..3ca4dee Binary files /dev/null and b/images/2/blue_front.png differ diff --git a/images/2/yellow_back.png b/images/2/yellow_back.png new file mode 100644 index 0000000..d7e18fa Binary files /dev/null and b/images/2/yellow_back.png differ diff --git a/images/2/yellow_front.png b/images/2/yellow_front.png new file mode 100644 index 0000000..ecd70a8 Binary files /dev/null and b/images/2/yellow_front.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..469a95b --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + + E-commerce + + + + +
+ +