From cf8ab8eef08bea3b60d55033341cee8976cd3f8c Mon Sep 17 00:00:00 2001 From: SealyBoi Date: Thu, 9 Nov 2023 08:53:02 -0600 Subject: [PATCH] Updates --- assets/index-189df5a9.js | 99 ------------------- assets/index-8961a477.js | 99 +++++++++++++++++++ ...{index-fa33197f.css => index-b426cbf6.css} | 2 +- index.html | 4 +- 4 files changed, 102 insertions(+), 102 deletions(-) delete mode 100644 assets/index-189df5a9.js create mode 100644 assets/index-8961a477.js rename assets/{index-fa33197f.css => index-b426cbf6.css} (87%) diff --git a/assets/index-189df5a9.js b/assets/index-189df5a9.js deleted file mode 100644 index d626587..0000000 --- a/assets/index-189df5a9.js +++ /dev/null @@ -1,99 +0,0 @@ -function Zf(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 o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function qf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zu={exports:{}},ao={},qu={exports:{}},O={};/** - * @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 Fr=Symbol.for("react.element"),bf=Symbol.for("react.portal"),ep=Symbol.for("react.fragment"),tp=Symbol.for("react.strict_mode"),np=Symbol.for("react.profiler"),rp=Symbol.for("react.provider"),lp=Symbol.for("react.context"),op=Symbol.for("react.forward_ref"),ip=Symbol.for("react.suspense"),sp=Symbol.for("react.memo"),ap=Symbol.for("react.lazy"),ya=Symbol.iterator;function up(e){return e===null||typeof e!="object"?null:(e=ya&&e[ya]||e["@@iterator"],typeof e=="function"?e:null)}var bu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ec=Object.assign,tc={};function Qn(e,t,n){this.props=e,this.context=t,this.refs=tc,this.updater=n||bu}Qn.prototype.isReactComponent={};Qn.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")};Qn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nc(){}nc.prototype=Qn.prototype;function hs(e,t,n){this.props=e,this.context=t,this.refs=tc,this.updater=n||bu}var ms=hs.prototype=new nc;ms.constructor=hs;ec(ms,Qn.prototype);ms.isPureReactComponent=!0;var Sa=Array.isArray,rc=Object.prototype.hasOwnProperty,vs={current:null},lc={key:!0,ref:!0,__self:!0,__source:!0};function oc(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)rc.call(t,r)&&!lc.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1>>1,H=j[L];if(0>>1;Ll(yt,D))Rel($e,yt)?(j[L]=$e,j[Re]=D,L=Re):(j[L]=yt,j[je]=D,L=je);else if(Rel($e,D))j[L]=$e,j[Re]=D,L=Re;else break e}}return _}function l(j,_){var D=j.sortIndex-_.sortIndex;return D!==0?D:j.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var a=[],u=[],p=1,m=null,h=3,g=!1,S=!1,y=!1,P=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(j){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=j)r(u),_.sortIndex=_.expirationTime,t(a,_);else break;_=n(u)}}function w(j){if(y=!1,f(j),!S)if(n(a)!==null)S=!0,it(k);else{var _=n(u);_!==null&&ke(w,_.startTime-j)}}function k(j,_){S=!1,y&&(y=!1,d(T),T=-1),g=!0;var D=h;try{for(f(_),m=n(a);m!==null&&(!(m.expirationTime>_)||j&&!le());){var L=m.callback;if(typeof L=="function"){m.callback=null,h=m.priorityLevel;var H=L(m.expirationTime<=_);_=e.unstable_now(),typeof H=="function"?m.callback=H:m===n(a)&&r(a),f(_)}else r(a);m=n(a)}if(m!==null)var oe=!0;else{var je=n(u);je!==null&&ke(w,je.startTime-_),oe=!1}return oe}finally{m=null,h=D,g=!1}}var x=!1,C=null,T=-1,F=5,I=-1;function le(){return!(e.unstable_now()-Ij||125L?(j.sortIndex=D,t(u,j),n(a)===null&&j===n(u)&&(y?(d(T),T=-1):y=!0,ke(w,D-L))):(j.sortIndex=H,t(a,j),S||g||(S=!0,it(k))),j},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(j){var _=h;return function(){var D=h;h=_;try{return j.apply(this,arguments)}finally{h=D}}}})(uc);ac.exports=uc;var kp=ac.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 cc=N,Ie=kp;function E(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"),pi=Object.prototype.hasOwnProperty,xp=/^[: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]*$/,ka={},xa={};function Cp(e){return pi.call(xa,e)?!0:pi.call(ka,e)?!1:xp.test(e)?xa[e]=!0:(ka[e]=!0,!1)}function Ep(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 Np(e,t,n,r){if(t===null||typeof t>"u"||Ep(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 we(e,t,n,r,l,o,i){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=o,this.removeEmptyString=i}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new we(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new we(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new we(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){de[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){de[e]=new we(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){de[e]=new we(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){de[e]=new we(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){de[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var ys=/[\-:]([a-z])/g;function Ss(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(ys,Ss);de[t]=new we(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(ys,Ss);de[t]=new we(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(ys,Ss);de[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){de[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)});de.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){de[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)});function ws(e,t,n,r){var l=de.hasOwnProperty(t)?de[t]:null;(l!==null?l.type!==0:r||!(2s||l[i]!==o[s]){var a=` -`+l[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=s);break}}}finally{zo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sr(e):""}function _p(e){switch(e.tag){case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 2:case 15:return e=Oo(e.type,!1),e;case 11:return e=Oo(e.type.render,!1),e;case 1:return e=Oo(e.type,!0),e;default:return""}}function gi(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 vn:return"Fragment";case mn:return"Portal";case hi:return"Profiler";case ks:return"StrictMode";case mi:return"Suspense";case vi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pc:return(e.displayName||"Context")+".Consumer";case fc:return(e._context.displayName||"Context")+".Provider";case xs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cs:return t=e.displayName||null,t!==null?t:gi(e.type)||"Memo";case Ct:t=e._payload,e=e._init;try{return gi(e(t))}catch{}}return null}function Pp(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 gi(t);case 8:return t===ks?"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 Mt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jp(e){var t=mc(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function br(e){e._valueTracker||(e._valueTracker=jp(e))}function vc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Dl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yi(e,t){var n=t.checked;return X({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ea(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mt(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 gc(e,t){t=t.checked,t!=null&&ws(e,"checked",t,!1)}function Si(e,t){gc(e,t);var n=Mt(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")?wi(e,t.type,n):t.hasOwnProperty("defaultValue")&&wi(e,t.type,Mt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Na(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 wi(e,t,n){(t!=="number"||Dl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ar=Array.isArray;function jn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=el.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fr={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},Rp=["Webkit","ms","Moz","O"];Object.keys(fr).forEach(function(e){Rp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fr[t]=fr[e]})});function kc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fr.hasOwnProperty(e)&&fr[e]?(""+t).trim():t+"px"}function xc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=kc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Tp=X({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 Ci(e,t){if(t){if(Tp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Ei(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 Ni=null;function Es(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _i=null,Rn=null,Tn=null;function ja(e){if(e=Yr(e)){if(typeof _i!="function")throw Error(E(280));var t=e.stateNode;t&&(t=ho(t),_i(e.stateNode,e.type,t))}}function Cc(e){Rn?Tn?Tn.push(e):Tn=[e]:Rn=e}function Ec(){if(Rn){var e=Rn,t=Tn;if(Tn=Rn=null,ja(e),t)for(e=0;e>>=0,e===0?32:31-(Fp(e)/Hp|0)|0}var tl=64,nl=4194304;function ur(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ol(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=ur(s):(o&=i,o!==0&&(r=ur(o)))}else i=n&~l,i!==0?r=ur(i):o!==0&&(r=ur(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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 Hr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ke(t),e[t]=n}function Qp(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=hr),Aa=String.fromCharCode(32),Ua=!1;function Yc(e,t){switch(e){case"keyup":return wh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gn=!1;function xh(e,t){switch(e){case"compositionend":return Vc(t);case"keypress":return t.which!==32?null:(Ua=!0,Aa);case"textInput":return e=t.data,e===Aa&&Ua?null:e;default:return null}}function Ch(e,t){if(gn)return e==="compositionend"||!Ls&&Yc(e,t)?(e=Hc(),yl=Rs=Pt=null,gn=!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=Ha(n)}}function Xc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jc(){for(var e=window,t=Dl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dl(e.document)}return t}function Is(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 Lh(e){var t=Jc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xc(n.ownerDocument.documentElement,n)){if(r!==null&&Is(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,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Wa(n,o);var i=Wa(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,yn=null,Li=null,vr=null,Ii=!1;function Ya(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ii||yn==null||yn!==Dl(r)||(r=yn,"selectionStart"in r&&Is(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}),vr&&Rr(vr,r)||(vr=r,r=Ul(Li,"onSelect"),0kn||(e.current=Mi[kn],Mi[kn]=null,kn--)}function B(e,t){kn++,Mi[kn]=e.current,e.current=t}var Bt={},ve=Ht(Bt),Ne=Ht(!1),tn=Bt;function On(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function _e(e){return e=e.childContextTypes,e!=null}function Bl(){V(Ne),V(ve)}function Za(e,t,n){if(ve.current!==Bt)throw Error(E(168));B(ve,t),B(Ne,n)}function od(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(E(108,Pp(e)||"Unknown",l));return X({},n,r)}function Fl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,tn=ve.current,B(ve,e),B(Ne,Ne.current),!0}function qa(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=od(e,t,tn),r.__reactInternalMemoizedMergedChildContext=e,V(Ne),V(ve),B(ve,e)):V(Ne),B(Ne,n)}var ut=null,mo=!1,Xo=!1;function id(e){ut===null?ut=[e]:ut.push(e)}function Yh(e){mo=!0,id(e)}function Wt(){if(!Xo&&ut!==null){Xo=!0;var e=0,t=U;try{var n=ut;for(U=1;e>=i,l-=i,ct=1<<32-Ke(t)+l|n<T?(F=C,C=null):F=C.sibling;var I=h(d,C,f[T],w);if(I===null){C===null&&(C=F);break}e&&C&&I.alternate===null&&t(d,C),c=o(I,c,T),x===null?k=I:x.sibling=I,x=I,C=F}if(T===f.length)return n(d,C),Q&&Yt(d,T),k;if(C===null){for(;TT?(F=C,C=null):F=C.sibling;var le=h(d,C,I.value,w);if(le===null){C===null&&(C=F);break}e&&C&&le.alternate===null&&t(d,C),c=o(le,c,T),x===null?k=le:x.sibling=le,x=le,C=F}if(I.done)return n(d,C),Q&&Yt(d,T),k;if(C===null){for(;!I.done;T++,I=f.next())I=m(d,I.value,w),I!==null&&(c=o(I,c,T),x===null?k=I:x.sibling=I,x=I);return Q&&Yt(d,T),k}for(C=r(d,C);!I.done;T++,I=f.next())I=g(C,d,T,I.value,w),I!==null&&(e&&I.alternate!==null&&C.delete(I.key===null?T:I.key),c=o(I,c,T),x===null?k=I:x.sibling=I,x=I);return e&&C.forEach(function(ot){return t(d,ot)}),Q&&Yt(d,T),k}function P(d,c,f,w){if(typeof f=="object"&&f!==null&&f.type===vn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case qr:e:{for(var k=f.key,x=c;x!==null;){if(x.key===k){if(k=f.type,k===vn){if(x.tag===7){n(d,x.sibling),c=l(x,f.props.children),c.return=d,d=c;break e}}else if(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ct&&ou(k)===x.type){n(d,x.sibling),c=l(x,f.props),c.ref=rr(d,x,f),c.return=d,d=c;break e}n(d,x);break}else t(d,x);x=x.sibling}f.type===vn?(c=Zt(f.props.children,d.mode,w,f.key),c.return=d,d=c):(w=_l(f.type,f.key,f.props,null,d.mode,w),w.ref=rr(d,c,f),w.return=d,d=w)}return i(d);case mn:e:{for(x=f.key;c!==null;){if(c.key===x)if(c.tag===4&&c.stateNode.containerInfo===f.containerInfo&&c.stateNode.implementation===f.implementation){n(d,c.sibling),c=l(c,f.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=ri(f,d.mode,w),c.return=d,d=c}return i(d);case Ct:return x=f._init,P(d,c,x(f._payload),w)}if(ar(f))return S(d,c,f,w);if(qn(f))return y(d,c,f,w);ul(d,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,f),c.return=d,d=c):(n(d,c),c=ni(f,d.mode,w),c.return=d,d=c),i(d)):n(d,c)}return P}var An=hd(!0),md=hd(!1),Vr={},lt=Ht(Vr),Ir=Ht(Vr),zr=Ht(Vr);function Kt(e){if(e===Vr)throw Error(E(174));return e}function Hs(e,t){switch(B(zr,t),B(Ir,e),B(lt,Vr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xi(t,e)}V(lt),B(lt,t)}function Un(){V(lt),V(Ir),V(zr)}function vd(e){Kt(zr.current);var t=Kt(lt.current),n=xi(t,e.type);t!==n&&(B(Ir,e),B(lt,n))}function Ws(e){Ir.current===e&&(V(lt),V(Ir))}var G=Ht(0);function Gl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jo=[];function Ys(){for(var e=0;en?n:4,e(!0);var r=Zo.transition;Zo.transition={};try{e(!1),t()}finally{U=n,Zo.transition=r}}function Ld(){return He().memoizedState}function Kh(e,t,n){var r=$t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Id(e))zd(t,n);else if(n=cd(e,t,n,r),n!==null){var l=ye();Xe(n,e,r,l),Od(n,t,r)}}function Xh(e,t,n){var r=$t(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Id(e))zd(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,Ze(s,i)){var a=t.interleaved;a===null?(l.next=l,Bs(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=cd(e,t,l,r),n!==null&&(l=ye(),Xe(n,e,r,l),Od(n,t,r))}}function Id(e){var t=e.alternate;return e===K||t!==null&&t===K}function zd(e,t){gr=Kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Od(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_s(e,n)}}var Xl={readContext:Fe,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},Jh={readContext:Fe,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:su,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xl(4194308,4,Pd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xl(4194308,4,e,t)},useInsertionEffect:function(e,t){return xl(4,2,e,t)},useMemo:function(e,t){var n=et();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=et();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=Kh.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:iu,useDebugValue:Xs,useDeferredValue:function(e){return et().memoizedState=e},useTransition:function(){var e=iu(!1),t=e[0];return e=Gh.bind(null,e[1]),et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,l=et();if(Q){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ae===null)throw Error(E(349));rn&30||Sd(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,su(kd.bind(null,r,o,e),[e]),r.flags|=2048,Ar(9,wd.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=et(),t=ae.identifierPrefix;if(Q){var n=dt,r=ct;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Or++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[nt]=t,e[Lr]=r,Yd(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ei(n,r),n){case"dialog":W("cancel",e),W("close",e),l=r;break;case"iframe":case"object":case"embed":W("load",e),l=r;break;case"video":case"audio":for(l=0;lBn&&(t.flags|=128,r=!0,lr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Gl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),lr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Q)return pe(t),null}else 2*Z()-o.renderingStartTime>Bn&&n!==1073741824&&(t.flags|=128,r=!0,lr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Z(),t.sibling=null,n=G.current,B(G,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return ta(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Te&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function lm(e,t){switch(Os(t),t.tag){case 1:return _e(t.type)&&Bl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(),V(Ne),V(ve),Ys(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ws(t),null;case 13:if(V(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));$n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(G),null;case 4:return Un(),null;case 10:return Ms(t.type._context),null;case 22:case 23:return ta(),null;case 24:return null;default:return null}}var dl=!1,me=!1,om=typeof WeakSet=="function"?WeakSet:Set,R=null;function Nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function Zi(e,t,n){try{n()}catch(r){J(e,t,r)}}var vu=!1;function im(e,t){if(zi=$l,e=Jc(),Is(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,a=-1,u=0,p=0,m=e,h=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(s=i+l),m!==o||r!==0&&m.nodeType!==3||(a=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)h=m,m=g;for(;;){if(m===e)break t;if(h===n&&++u===l&&(s=i),h===o&&++p===r&&(a=i),(g=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=g}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Oi={focusedElem:e,selectionRange:n},$l=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var y=S.memoizedProps,P=S.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ve(t.type,y),P);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(w){J(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return S=vu,vu=!1,S}function yr(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 o=l.destroy;l.destroy=void 0,o!==void 0&&Zi(t,n,o)}l=l.next}while(l!==r)}}function yo(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 qi(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 Gd(e){var t=e.alternate;t!==null&&(e.alternate=null,Gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nt],delete t[Lr],delete t[Ui],delete t[Hh],delete t[Wh])),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 Kd(e){return e.tag===5||e.tag===3||e.tag===4}function gu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kd(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 bi(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=Ml));else if(r!==4&&(e=e.child,e!==null))for(bi(e,t,n),e=e.sibling;e!==null;)bi(e,t,n),e=e.sibling}function es(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(es(e,t,n),e=e.sibling;e!==null;)es(e,t,n),e=e.sibling}var ue=null,Qe=!1;function wt(e,t,n){for(n=n.child;n!==null;)Xd(e,t,n),n=n.sibling}function Xd(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(uo,n)}catch{}switch(n.tag){case 5:me||Nn(n,t);case 6:var r=ue,l=Qe;ue=null,wt(e,t,n),ue=r,Qe=l,ue!==null&&(Qe?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(Qe?(e=ue,n=n.stateNode,e.nodeType===8?Ko(e.parentNode,n):e.nodeType===1&&Ko(e,n),Pr(e)):Ko(ue,n.stateNode));break;case 4:r=ue,l=Qe,ue=n.stateNode.containerInfo,Qe=!0,wt(e,t,n),ue=r,Qe=l;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Zi(n,t,i),l=l.next}while(l!==r)}wt(e,t,n);break;case 1:if(!me&&(Nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){J(n,t,s)}wt(e,t,n);break;case 21:wt(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,wt(e,t,n),me=r):wt(e,t,n);break;default:wt(e,t,n)}}function yu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new om),t.forEach(function(r){var l=mm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ye(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*am(r/1960))-r,10e?16:e,jt===null)var r=!1;else{if(e=jt,jt=null,ql=0,$&6)throw Error(E(331));var l=$;for($|=4,R=e.current;R!==null;){var o=R,i=o.child;if(R.flags&16){var s=o.deletions;if(s!==null){for(var a=0;aZ()-bs?Jt(e,0):qs|=n),Pe(e,t)}function rf(e,t){t===0&&(e.mode&1?(t=nl,nl<<=1,!(nl&130023424)&&(nl=4194304)):t=1);var n=ye();e=mt(e,t),e!==null&&(Hr(e,t,n),Pe(e,n))}function hm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rf(e,n)}function mm(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(E(314))}r!==null&&r.delete(t),rf(e,n)}var lf;lf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)Ce=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ce=!1,nm(e,t,n);Ce=!!(e.flags&131072)}else Ce=!1,Q&&t.flags&1048576&&sd(t,Wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Cl(e,t),e=t.pendingProps;var l=On(t,ve.current);Ln(t,n),l=Qs(null,t,r,e,l,n);var o=Gs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_e(r)?(o=!0,Fl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Fs(t),l.updater=vo,t.stateNode=l,l._reactInternals=t,Yi(t,r,e,n),t=Gi(null,t,r,!0,o,n)):(t.tag=0,Q&&o&&zs(t),ge(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Cl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=gm(r),e=Ve(r,e),l){case 0:t=Qi(null,t,r,e,n);break e;case 1:t=pu(null,t,r,e,n);break e;case 11:t=du(null,t,r,e,n);break e;case 14:t=fu(null,t,r,Ve(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),Qi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),pu(e,t,r,l,n);case 3:e:{if(Fd(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,l=o.element,dd(e,t),Ql(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Mn(Error(E(423)),t),t=hu(e,t,r,n,l);break e}else if(r!==l){l=Mn(Error(E(424)),t),t=hu(e,t,r,n,l);break e}else for(De=It(t.stateNode.containerInfo.firstChild),Le=t,Q=!0,Ge=null,n=md(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($n(),r===l){t=vt(e,t,n);break e}ge(e,t,r,n)}t=t.child}return t;case 5:return vd(t),e===null&&Fi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,$i(r,l)?i=null:o!==null&&$i(r,o)&&(t.flags|=32),Bd(e,t),ge(e,t,i,n),t.child;case 6:return e===null&&Fi(t),null;case 13:return Hd(e,t,n);case 4:return Hs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=An(t,null,r,n):ge(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),du(e,t,r,l,n);case 7:return ge(e,t,t.pendingProps,n),t.child;case 8:return ge(e,t,t.pendingProps.children,n),t.child;case 12:return ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,B(Yl,r._currentValue),r._currentValue=i,o!==null)if(Ze(o.value,i)){if(o.children===l.children&&!Ne.current){t=vt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=ft(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?a.next=a:(a.next=p.next,p.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Hi(o.return,n,t),s.lanes|=n;break}a=a.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(E(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Hi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ge(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Ln(t,n),l=Fe(l),r=r(l),t.flags|=1,ge(e,t,r,n),t.child;case 14:return r=t.type,l=Ve(r,t.pendingProps),l=Ve(r.type,l),fu(e,t,r,l,n);case 15:return Ud(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),Cl(e,t),t.tag=1,_e(r)?(e=!0,Fl(t)):e=!1,Ln(t,n),pd(t,r,l),Yi(t,r,l,n),Gi(null,t,r,!0,e,n);case 19:return Wd(e,t,n);case 22:return Md(e,t,n)}throw Error(E(156,t.tag))};function of(e,t){return Dc(e,t)}function vm(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 Me(e,t,n,r){return new vm(e,t,n,r)}function ra(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gm(e){if(typeof e=="function")return ra(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xs)return 11;if(e===Cs)return 14}return 2}function At(e,t){var n=e.alternate;return n===null?(n=Me(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 _l(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")ra(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case vn:return Zt(n.children,l,o,t);case ks:i=8,l|=8;break;case hi:return e=Me(12,n,t,l|2),e.elementType=hi,e.lanes=o,e;case mi:return e=Me(13,n,t,l),e.elementType=mi,e.lanes=o,e;case vi:return e=Me(19,n,t,l),e.elementType=vi,e.lanes=o,e;case hc:return wo(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fc:i=10;break e;case pc:i=9;break e;case xs:i=11;break e;case Cs:i=14;break e;case Ct:i=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Me(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Zt(e,t,n,r){return e=Me(7,e,r,t),e.lanes=n,e}function wo(e,t,n,r){return e=Me(22,e,r,t),e.elementType=hc,e.lanes=n,e.stateNode={isHidden:!1},e}function ni(e,t,n){return e=Me(6,e,null,t),e.lanes=n,e}function ri(e,t,n){return t=Me(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ym(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=Ao(0),this.expirationTimes=Ao(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ao(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function la(e,t,n,r,l,o,i,s,a){return e=new ym(e,t,n,s,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Me(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fs(o),e}function Sm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cf)}catch(e){console.error(e)}}cf(),sc.exports=ze;var Em=sc.exports,_u=Em;fi.createRoot=_u.createRoot,fi.hydrateRoot=_u.hydrateRoot;/** - * @remix-run/router v1.9.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function aa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _m(){return Math.random().toString(36).substr(2,8)}function ju(e,t){return{usr:e.state,key:e.key,idx:t}}function os(e,t,n,r){return n===void 0&&(n=null),Mr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xn(t):t,{state:n,key:t&&t.key||r||_m()})}function to(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 Xn(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 Pm(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,s=Rt.Pop,a=null,u=p();u==null&&(u=0,i.replaceState(Mr({},i.state,{idx:u}),""));function p(){return(i.state||{idx:null}).idx}function m(){s=Rt.Pop;let P=p(),d=P==null?null:P-u;u=P,a&&a({action:s,location:y.location,delta:d})}function h(P,d){s=Rt.Push;let c=os(y.location,P,d);n&&n(c,P),u=p()+1;let f=ju(c,u),w=y.createHref(c);try{i.pushState(f,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;l.location.assign(w)}o&&a&&a({action:s,location:y.location,delta:1})}function g(P,d){s=Rt.Replace;let c=os(y.location,P,d);n&&n(c,P),u=p();let f=ju(c,u),w=y.createHref(c);i.replaceState(f,"",w),o&&a&&a({action:s,location:y.location,delta:0})}function S(P){let d=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof P=="string"?P:to(P);return te(d,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,d)}let y={get action(){return s},get location(){return e(l,i)},listen(P){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(Pu,m),a=P,()=>{l.removeEventListener(Pu,m),a=null}},createHref(P){return t(l,P)},createURL:S,encodeLocation(P){let d=S(P);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:h,replace:g,go(P){return i.go(P)}};return y}var Ru;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ru||(Ru={}));function jm(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Xn(t):t,l=ua(r.pathname||"/",n);if(l==null)return null;let o=df(e);Rm(o);let i=null;for(let s=0;i==null&&s{let a={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};a.relativePath.startsWith("/")&&(te(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Ut([r,a.relativePath]),p=n.concat(a);o.children&&o.children.length>0&&(te(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),df(o.children,t,p,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:$m(u,o.index),routesMeta:p})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))l(o,i);else for(let a of ff(o.path))l(o,i,a)}),t}function ff(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=ff(r.join("/")),s=[];return s.push(...i.map(a=>a===""?o:[o,a].join("/"))),l&&s.push(...i),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function Rm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Am(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Tm=/^:\w+$/,Dm=3,Lm=2,Im=1,zm=10,Om=-2,Tu=e=>e==="*";function $m(e,t){let n=e.split("/"),r=n.length;return n.some(Tu)&&(r+=Om),t&&(r+=Lm),n.filter(l=>!Tu(l)).reduce((l,o)=>l+(Tm.test(o)?Dm:o===""?Im:zm),r)}function Am(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 Um(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{if(p==="*"){let h=s[m]||"";i=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}return u[p]=Hm(s[m]||"",p),u},{}),pathname:o,pathnameBase:i,pattern:e}}function Bm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),aa(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,(i,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Fm(e){try{return decodeURI(e)}catch(t){return aa(!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 Hm(e,t){try{return decodeURIComponent(e)}catch(n){return aa(!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 ua(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 Wm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Xn(e):e;return{pathname:n?n.startsWith("/")?n:Ym(n,t):t,search:Qm(r),hash:Gm(l)}}function Ym(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 li(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 pf(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hf(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Xn(e):(l=Mr({},e),te(!l.pathname||!l.pathname.includes("?"),li("?","pathname","search",l)),te(!l.pathname||!l.pathname.includes("#"),li("#","pathname","hash",l)),te(!l.search||!l.search.includes("#"),li("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,s;if(r||i==null)s=n;else{let m=t.length-1;if(i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),m-=1;l.pathname=h.join("/")}s=m>=0?t[m]:"/"}let a=Wm(l,s),u=i&&i!=="/"&&i.endsWith("/"),p=(o||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||p)&&(a.pathname+="/"),a}const Ut=e=>e.join("/").replace(/\/\/+/g,"/"),Vm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Qm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Km(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mf=["post","put","patch","delete"];new Set(mf);const Xm=["get",...mf];new Set(Xm);/** - * React Router v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.pathnameBase)),i=N.useRef(!1);return yf(()=>{i.current=!0}),N.useCallback(function(a,u){if(u===void 0&&(u={}),!i.current)return;if(typeof a=="number"){n.go(a);return}let p=hf(a,JSON.parse(o),l,u.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ut([t,p.pathname])),(u.replace?n.replace:n.push)(p,u.state,u)},[t,n,o,l,e])}function da(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=N.useContext(cn),{pathname:l}=Gr(),o=JSON.stringify(pf(r).map(i=>i.pathnameBase));return N.useMemo(()=>hf(e,JSON.parse(o),l,n==="path"),[e,o,l,n])}function qm(e,t){return bm(e,t)}function bm(e,t,n){Qr()||te(!1);let{navigator:r}=N.useContext(un),{matches:l}=N.useContext(cn),o=l[l.length-1],i=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let a=Gr(),u;if(t){var p;let y=typeof t=="string"?Xn(t):t;s==="/"||(p=y.pathname)!=null&&p.startsWith(s)||te(!1),u=y}else u=a;let m=u.pathname||"/",h=s==="/"?m:m.slice(s.length)||"/",g=jm(e,{pathname:h}),S=lv(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},i,y.params),pathname:Ut([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Ut([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),l,n);return t&&S?N.createElement(No.Provider,{value:{location:no({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Rt.Pop}},S):S}function ev(){let e=av(),t=Km(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)"},o=null;return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:l},n):null,o)}const tv=N.createElement(ev,null);class nv extends N.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?N.createElement(cn.Provider,{value:this.props.routeContext},N.createElement(gf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function rv(e){let{routeContext:t,match:n,children:r}=e,l=N.useContext(ca);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(cn.Provider,{value:t},r)}function lv(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 o=e,i=(r=n)==null?void 0:r.errors;if(i!=null){let s=o.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));s>=0||te(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((s,a,u)=>{let p=a.route.id?i==null?void 0:i[a.route.id]:null,m=null;n&&(m=a.route.errorElement||tv);let h=t.concat(o.slice(0,u+1)),g=()=>{let S;return p?S=m:a.route.Component?S=N.createElement(a.route.Component,null):a.route.element?S=a.route.element:S=s,N.createElement(rv,{match:a,routeContext:{outlet:s,matches:h,isDataRoute:n!=null},children:S})};return n&&(a.route.ErrorBoundary||a.route.errorElement||u===0)?N.createElement(nv,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):g()},null)}var wf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(wf||{}),ro=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}(ro||{});function ov(e){let t=N.useContext(ca);return t||te(!1),t}function iv(e){let t=N.useContext(vf);return t||te(!1),t}function sv(e){let t=N.useContext(cn);return t||te(!1),t}function kf(e){let t=sv(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function av(){var e;let t=N.useContext(gf),n=iv(ro.UseRouteError),r=kf(ro.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function uv(){let{router:e}=ov(wf.UseNavigateStable),t=kf(ro.UseNavigateStable),n=N.useRef(!1);return yf(()=>{n.current=!0}),N.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,no({fromRouteId:t},o)))},[e,t])}function kt(e){te(!1)}function cv(e){let{basename:t="/",children:n=null,location:r,navigationType:l=Rt.Pop,navigator:o,static:i=!1}=e;Qr()&&te(!1);let s=t.replace(/^\/*/,"/"),a=N.useMemo(()=>({basename:s,navigator:o,static:i}),[s,o,i]);typeof r=="string"&&(r=Xn(r));let{pathname:u="/",search:p="",hash:m="",state:h=null,key:g="default"}=r,S=N.useMemo(()=>{let y=ua(u,s);return y==null?null:{location:{pathname:y,search:p,hash:m,state:h,key:g},navigationType:l}},[s,u,p,m,h,g,l]);return S==null?null:N.createElement(un.Provider,{value:a},N.createElement(No.Provider,{children:n,value:S}))}function dv(e){let{children:t,location:n}=e;return qm(is(t),n)}new Promise(()=>{});function is(e,t){t===void 0&&(t=[]);let n=[];return N.Children.forEach(e,(r,l)=>{if(!N.isValidElement(r))return;let o=[...t,l];if(r.type===N.Fragment){n.push.apply(n,is(r.props.children,o));return}r.type!==kt&&te(!1),!r.props.index||!r.props.children||te(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=is(r.props.children,o)),n.push(i)}),n}/** - * React Router DOM v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function lo(){return lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function fv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pv(e,t){return e.button===0&&(!t||t==="_self")&&!fv(e)}const hv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],mv=["aria-current","caseSensitive","className","end","style","to","children"],vv="startTransition",Du=hp[vv];function gv(e){let{basename:t,children:n,future:r,window:l}=e,o=N.useRef();o.current==null&&(o.current=Nm({window:l,v5Compat:!0}));let i=o.current,[s,a]=N.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},p=N.useCallback(m=>{u&&Du?Du(()=>a(m)):a(m)},[a,u]);return N.useLayoutEffect(()=>i.listen(p),[i,p]),N.createElement(cv,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}const yv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Sv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wv=N.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:s,target:a,to:u,preventScrollReset:p}=t,m=xf(t,hv),{basename:h}=N.useContext(un),g,S=!1;if(typeof u=="string"&&Sv.test(u)&&(g=u,yv))try{let c=new URL(window.location.href),f=u.startsWith("//")?new URL(c.protocol+u):new URL(u),w=ua(f.pathname,h);f.origin===c.origin&&w!=null?u=w+f.search+f.hash:S=!0}catch{}let y=Jm(u,{relative:l}),P=xv(u,{replace:i,state:s,target:a,preventScrollReset:p,relative:l});function d(c){r&&r(c),c.defaultPrevented||P(c)}return N.createElement("a",lo({},m,{href:g||y,onClick:S||o?r:d,ref:n,target:a}))}),kv=N.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:o="",end:i=!1,style:s,to:a,children:u}=t,p=xf(t,mv),m=da(a,{relative:p.relative}),h=Gr(),g=N.useContext(vf),{navigator:S}=N.useContext(un),y=S.encodeLocation?S.encodeLocation(m).pathname:m.pathname,P=h.pathname,d=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;l||(P=P.toLowerCase(),d=d?d.toLowerCase():null,y=y.toLowerCase());let c=P===y||!i&&P.startsWith(y)&&P.charAt(y.length)==="/",f=d!=null&&(d===y||!i&&d.startsWith(y)&&d.charAt(y.length)==="/"),w=c?r:void 0,k;typeof o=="function"?k=o({isActive:c,isPending:f}):k=[o,c?"active":null,f?"pending":null].filter(Boolean).join(" ");let x=typeof s=="function"?s({isActive:c,isPending:f}):s;return N.createElement(wv,lo({},p,{"aria-current":w,className:k,ref:n,style:x,to:a}),typeof u=="function"?u({isActive:c,isPending:f}):u)});var Lu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Lu||(Lu={}));var Iu;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Iu||(Iu={}));function xv(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i}=t===void 0?{}:t,s=Sf(),a=Gr(),u=da(e,{relative:i});return N.useCallback(p=>{if(pv(p,n)){p.preventDefault();let m=r!==void 0?r:to(a)===to(u);s(e,{replace:m,state:l,preventScrollReset:o,relative:i})}},[a,s,u,r,l,n,e,o,i])}const Cf="/blackjack_probability",Ef="/about-us",Nf="/charts",_f="/terms",fa="/game",Pf="/customize",Cv="*",Ev=()=>{const e=Sf(),t=()=>{e(fa)},n=()=>{e(Pf)};return v.jsx("div",{className:"background",children:v.jsxs("div",{className:"titleHolder",children:[v.jsx("h1",{className:"title",children:"Blackjack Probability"}),v.jsx("p",{className:"info",children:"Ever wanted to learn how to become a true professional at Blackjack? Well click 'Play' below to get started!"}),v.jsxs("div",{className:"row",children:[v.jsx("button",{className:"btn-hover",onClick:t,children:"Play the Game"}),v.jsx("button",{className:"btn-hover",onClick:n,children:"Customize Table"})]})]})})};const Nv="/blackjack_probability/assets/CardsAndChips-891df8e4.svg",_v="/blackjack_probability/assets/PuzzleWall-d409c30e.svg",Pv="/blackjack_probability/assets/PiggyBank-fe8bea6a.svg",jv="/blackjack_probability/assets/CardDecks-bb474b3e.svg",Rv=()=>v.jsxs("div",{className:"container",children:[v.jsxs("div",{className:"subContainer",children:[v.jsx("p",{className:"titleText",children:"Learn How to Play!"}),v.jsx("img",{className:"image",src:Nv})]}),v.jsxs("div",{className:"subContainer",children:[v.jsx("img",{className:"image",src:jv}),v.jsx("p",{className:"titleText",children:"Learn Basic Strategy!"})]}),v.jsxs("div",{className:"subContainer",children:[v.jsx("p",{className:"titleText",children:"See The Odds and Learn to Beat Them!"}),v.jsx("img",{className:"image",src:_v})]}),v.jsxs("div",{className:"subContainer",children:[v.jsx("img",{className:"image",src:Pv}),v.jsx("p",{className:"titleText",children:"Learn Without Spending a Dime!"})]})]}),Tv=()=>v.jsxs("div",{children:[v.jsx(Ev,{}),v.jsx(Rv,{})]});var Ee=function(){return Ee=Object.assign||function(t){for(var n,r=1,l=arguments.length;r0?se(Jn,--We):0,Hn--,b===10&&(Hn=1,Po--),b}function Je(){return b=We2||as(b)>3?"":" "}function Fv(e,t){for(;--t&&Je()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return Ro(e,jl()+(t<6&&qt()==32&&Je()==32))}function us(e){for(;Je();)switch(b){case e:return We;case 34:case 39:e!==34&&e!==39&&us(b);break;case 40:e===41&&us(e);break;case 92:Je();break}return We}function Hv(e,t){for(;Je()&&e+b!==47+10;)if(e+b===42+42&&qt()===47)break;return"/*"+Ro(t,We-1)+"*"+ha(e===47?e:Je())}function Wv(e){for(;!as(qt());)Je();return Ro(e,We)}function Yv(e){return Mv(Rl("",null,null,null,[""],e=Uv(e),0,[0],e))}function Rl(e,t,n,r,l,o,i,s,a){for(var u=0,p=0,m=i,h=0,g=0,S=0,y=1,P=1,d=1,c=0,f="",w=l,k=o,x=r,C=f;P;)switch(S=c,c=Je()){case 40:if(S!=108&&se(C,m-1)==58){Pl(C+=z(oi(c),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:C+=oi(c);break;case 9:case 10:case 13:case 32:C+=Bv(S);break;case 92:C+=Fv(jl()-1,7);continue;case 47:switch(qt()){case 42:case 47:dr(Vv(Hv(Je(),jl()),t,n,a),a);break;default:C+="/"}break;case 123*y:s[u++]=tt(C)*d;case 125*y:case 59:case 0:switch(c){case 0:case 125:P=0;case 59+p:d==-1&&(C=z(C,/\f/g,"")),g>0&&tt(C)-m&&dr(g>32?$u(C+";",r,n,m-1,a):$u(z(C," ","")+";",r,n,m-2,a),a);break;case 59:C+=";";default:if(dr(x=Ou(C,t,n,u,p,l,s,f,w=[],k=[],m,o),o),c===123)if(p===0)Rl(C,t,x,x,w,o,m,s,k);else switch(h===99&&se(C,3)===110?100:h){case 100:case 108:case 109:case 115:Rl(e,x,x,r&&dr(Ou(e,x,x,0,0,l,s,f,l,w=[],m,k),k),l,k,m,s,r?w:k);break;default:Rl(C,x,x,x,[""],k,0,s,k)}}u=p=g=0,y=d=1,f=C="",m=i;break;case 58:m=1+tt(C),g=S;default:if(y<1){if(c==123)--y;else if(c==125&&y++==0&&Av()==125)continue}switch(C+=ha(c),c*y){case 38:d=p>0?1:(C+="\f",-1);break;case 44:s[u++]=(tt(C)-1)*d,d=1;break;case 64:qt()===45&&(C+=oi(Je())),h=qt(),p=m=tt(f=C+=Wv(jl())),c++;break;case 45:S===45&&tt(C)==2&&(y=0)}}return o}function Ou(e,t,n,r,l,o,i,s,a,u,p,m){for(var h=l-1,g=l===0?o:[""],S=Df(g),y=0,P=0,d=0;y0?g[c]+" "+f:z(f,/&\f/g,g[c])))&&(a[d++]=w);return jo(e,t,n,l===0?_o:s,a,u,p,m)}function Vv(e,t,n,r){return jo(e,t,n,jf,ha($v()),Fn(e,2,-2),0,r)}function $u(e,t,n,r,l){return jo(e,t,n,pa,Fn(e,0,r),Fn(e,r+1,-1),r,l)}function If(e,t,n){switch(zv(e,t)){case 5103:return A+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+e+e;case 4789:return kr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return A+e+kr+e+Y+e+e;case 5936:switch(se(e,t+11)){case 114:return A+e+Y+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return A+e+Y+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return A+e+Y+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return A+e+Y+e+e;case 6165:return A+e+Y+"flex-"+e+e;case 5187:return A+e+z(e,/(\w+).+(:[^]+)/,A+"box-$1$2"+Y+"flex-$1$2")+e;case 5443:return A+e+Y+"flex-item-"+z(e,/flex-|-self/g,"")+(at(e,/flex-|baseline/)?"":Y+"grid-row-"+z(e,/flex-|-self/g,""))+e;case 4675:return A+e+Y+"flex-line-pack"+z(e,/align-content|flex-|-self/g,"")+e;case 5548:return A+e+Y+z(e,"shrink","negative")+e;case 5292:return A+e+Y+z(e,"basis","preferred-size")+e;case 6060:return A+"box-"+z(e,"-grow","")+A+e+Y+z(e,"grow","positive")+e;case 4554:return A+z(e,/([^-])(transform)/g,"$1"+A+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+Y+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+e+e;case 4200:if(!at(e,/flex-|baseline/))return Y+"grid-column-align"+Fn(e,t)+e;break;case 2592:case 3360:return Y+z(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,l){return t=l,at(r.props,/grid-\w+-end/)})?~Pl(e+(n=n[t].value),"span")?e:Y+z(e,"-start","")+e+Y+"grid-row-span:"+(~Pl(n,"span")?at(n,/\d+/):+at(n,/\d+/)-+at(e,/\d+/))+";":Y+z(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return at(r.props,/grid-\w+-start/)})?e:Y+z(z(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,A+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tt(e)-1-t>6)switch(se(e,t+1)){case 109:if(se(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+kr+(se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Pl(e,"stretch")?If(z(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return z(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,l,o,i,s,a,u){return Y+l+":"+o+u+(i?Y+l+"-span:"+(s?a:+a-+o)+u:"")+e});case 4949:if(se(e,t+6)===121)return z(e,":",":"+A)+e;break;case 6444:switch(se(e,se(e,14)===45?18:11)){case 120:return z(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+A+(se(e,14)===45?"inline-":"")+"box$3$1"+A+"$2$3$1"+Y+"$2box$3")+e;case 100:return z(e,":",":"+Y)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return z(e,"scroll-","scroll-snap-")+e}return e}function io(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case pa:e.return=If(e.value,e.length,n);return;case Rf:return io([xt(e,{value:z(e.value,"@","@"+A)})],r);case _o:if(e.length)return Ov(n=e.props,function(l){switch(at(l,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pn(xt(e,{props:[z(l,/:(read-\w+)/,":"+kr+"$1")]})),pn(xt(e,{props:[l]})),ss(e,{props:zu(n,r)});break;case"::placeholder":pn(xt(e,{props:[z(l,/:(plac\w+)/,":"+A+"input-$1")]})),pn(xt(e,{props:[z(l,/:(plac\w+)/,":"+kr+"$1")]})),pn(xt(e,{props:[z(l,/:(plac\w+)/,Y+"input-$1")]})),pn(xt(e,{props:[l]})),ss(e,{props:zu(n,r)});break}return""})}}var Jv={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wn=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",ma=typeof window<"u"&&"HTMLElement"in window,Zv=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),To=Object.freeze([]),Yn=Object.freeze({});function qv(e,t,n){return n===void 0&&(n=Yn),e.theme!==n.theme&&e.theme||t||n.theme}var zf=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),bv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eg=/(^-|-$)/g;function Au(e){return e.replace(bv,"-").replace(eg,"")}var tg=/(a)(d)/gi,Uu=function(e){return String.fromCharCode(e+(e>25?39:97))};function cs(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Uu(t%52)+n;return(Uu(t%52)+n).replace(tg,"$1-$2")}var ii,Pn=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Of=function(e){return Pn(5381,e)};function ng(e){return cs(Of(e)>>>0)}function rg(e){return e.displayName||e.name||"Component"}function si(e){return typeof e=="string"&&!0}var $f=typeof Symbol=="function"&&Symbol.for,Af=$f?Symbol.for("react.memo"):60115,lg=$f?Symbol.for("react.forward_ref"):60112,og={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ig={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Uf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sg=((ii={})[lg]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ii[Af]=Uf,ii);function Mu(e){return("type"in(t=e)&&t.type.$$typeof)===Af?Uf:"$$typeof"in e?sg[e.$$typeof]:og;var t}var ag=Object.defineProperty,ug=Object.getOwnPropertyNames,Bu=Object.getOwnPropertySymbols,cg=Object.getOwnPropertyDescriptor,dg=Object.getPrototypeOf,Fu=Object.prototype;function Mf(e,t,n){if(typeof t!="string"){if(Fu){var r=dg(t);r&&r!==Fu&&Mf(e,r,n)}var l=ug(t);Bu&&(l=l.concat(Bu(t)));for(var o=Mu(e),i=Mu(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var fg=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,l=r.length,o=l;t>=o;)if((o<<=1)<0)throw Kr(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=l;i=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],l=this.indexOfGroup(t),o=l+r,i=l;i=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(P+="".concat(d,","))}),a+="".concat(S).concat(y,'{content:"').concat(P,'"}').concat(`/*!sc*/ -`)},p=0;p0?".".concat(t):h},p=a.slice();p.push(function(h){h.type===_o&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Cg,n).replace(r,u))}),i.prefix&&p.push(Xv),p.push(Qv);var m=function(h,g,S,y){g===void 0&&(g=""),S===void 0&&(S=""),y===void 0&&(y="&"),t=y,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var P=h.replace(Eg,""),d=Yv(S||g?"".concat(S," ").concat(g," { ").concat(P," }"):P);i.namespace&&(d=Hf(d,i.namespace));var c=[];return io(d,Gv(p.concat(Kv(function(f){return c.push(f)})))),c};return m.hash=a.length?a.reduce(function(h,g){return g.name||Kr(15),Pn(h,g.name)},5381).toString():"",m}var _g=new Ff,fs=Ng(),Wf=en.createContext({shouldForwardProp:void 0,styleSheet:_g,stylis:fs});Wf.Consumer;en.createContext(void 0);function Yu(){return N.useContext(Wf)}var Pg=function(){function e(t,n){var r=this;this.inject=function(l,o){o===void 0&&(o=fs);var i=r.name+o.hash;l.hasNameForId(r.id,i)||l.insertRules(r.id,i,o(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ga(this,function(){throw Kr(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=fs),this.name+t.hash},e}(),jg=function(e){return e>="A"&&e<="Z"};function Vu(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,i)){var s=r(o,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,s)}l=Xt(l,i),this.staticRulesId=i}else{for(var a=Pn(this.baseHash,r.hash),u="",p=0;p>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(u,".".concat(g),void 0,this.componentId)),l=Xt(l,g)}}return l},e}(),Qf=en.createContext(void 0);Qf.Consumer;var ui={};function Lg(e,t,n){var r=va(e),l=e,o=!si(e),i=t.attrs,s=i===void 0?To:i,a=t.componentId,u=a===void 0?function(f,w){var k=typeof f!="string"?"sc":Au(f);ui[k]=(ui[k]||0)+1;var x="".concat(k,"-").concat(ng("6.0.8"+k+ui[k]));return w?"".concat(w,"-").concat(x):x}(t.displayName,t.parentComponentId):a,p=t.displayName;p===void 0&&function(f){return si(f)?"styled.".concat(f):"Styled(".concat(rg(f),")")}(e);var m=t.displayName&&t.componentId?"".concat(Au(t.displayName),"-").concat(t.componentId):t.componentId||u,h=r&&l.attrs?l.attrs.concat(s).filter(Boolean):s,g=t.shouldForwardProp;if(r&&l.shouldForwardProp){var S=l.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;g=function(f,w){return S(f,w)&&y(f,w)}}else g=S}var P=new Dg(n,m,r?l.componentStyle:void 0);function d(f,w){return function(k,x,C){var T=k.attrs,F=k.componentStyle,I=k.defaultProps,le=k.foldedComponentIds,ot=k.styledComponentId,qe=k.target,dn=en.useContext(Qf),Zn=Yu(),it=k.shouldForwardProp||Zn.shouldForwardProp,ke=function(oe,je,yt){for(var Re,$e=Ee(Ee({},je),{className:void 0,theme:yt}),Do=0;Dov.jsx(v.Fragment,{children:v.jsxs(zg,{children:[v.jsx($g,{children:"The Gamblers Inc."}),v.jsxs(Og,{children:[v.jsx(ir,{to:Cf,children:"Home"}),v.jsx(ir,{to:fa,children:"Play the Game"}),v.jsx(ir,{to:Ef,children:"About Us"}),v.jsx(ir,{to:Nf,children:"Charts"}),v.jsx(ir,{to:_f,children:"Terms"})]})]})}),Ug="/blackjack_probability/assets/Wireframe-a972ebe5.svg",Mg="/blackjack_probability/assets/CardFan2-7ec4e5d9.svg";const Bg=()=>v.jsxs("div",{className:"column",children:[v.jsxs("div",{className:"about-row",children:[v.jsx("div",{className:"column",children:v.jsxs("div",{className:"text-holder",children:[v.jsx("h1",{className:"about-header",children:"Who are we?"}),v.jsx("p",{className:"about-p",children:"We are a group of college students currently completing a course called Interface Design. We are a small group of four hoping to create an easy to use application for those wanting to delve deeper into the game of Blackjack."})]})}),v.jsx("img",{src:Ug})]}),v.jsxs("div",{className:"about-row",children:[v.jsx("img",{src:Mg}),v.jsx("div",{className:"column",children:v.jsxs("div",{className:"text-holder",children:[v.jsx("h1",{className:"about-header",children:"What is the purpose of this website?"}),v.jsx("p",{className:"about-p",children:"We believe there aren't many applications on the web suited for learning how to count cards easily. Most of the methods used today are charts that you must memorize for different true counts. We want to create a user-friendly website that allows people to learn these deviations without memorizing a set of tables."})]})})]})]});const Fg="/blackjack_probability/assets/404Error-40e8e704.svg",Hg=()=>v.jsx("div",{className:"errorContainer",children:v.jsx("img",{src:Fg,className:"error-img"})});const Wg={data:[{label:"8",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"9",value:["H","D","D","D","D","H","H","H","H","H"]},{label:"10",value:["D","D","D","D","D","D","D","D","H","H"]},{label:"11",value:["D","D","D","D","D","D","D","D","D","D"]},{label:"12",value:["H","H","S","S","S","H","H","H","H","H"]},{label:"13",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"14",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"15",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"16",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"17",value:["S","S","S","S","S","S","S","S","S","S"]}],data2:[{label:"A/2",value:["H","H","H","D","D","H","H","H","H","H"]},{label:"A/3",value:["H","H","H","D","D","H","H","H","H","H"]},{label:"A/4",value:["H","H","D","D","D","H","H","H","H","H"]},{label:"A/5",value:["H","H","D","D","D","H","H","H","H","H"]},{label:"A/6",value:["H","D","D","D","D","H","H","H","H","H"]},{label:"A/7",value:["Ds","Ds","Ds","Ds","Ds","S","S","H","H","H"]},{label:"A/8",value:["S","S","S","S","Ds","S","S","S","S","S"]},{label:"A/9",value:["S","S","S","S","S","S","S","S","S","S"]}],data3:[{label:"A/A",value:["Y","Y","Y","Y","Y","Y","Y","Y","Y","Y"]},{label:"T/T",value:["N","N","N","N","N","N","N","N","N","N"]},{label:"9/9",value:["Y","Y","Y","Y","Y","N","Y","Y","N","N"]},{label:"8/8",value:["Y","Y","Y","Y","Y","Y","Y","Y","Y","Y"]},{label:"7/7",value:["Y","Y","Y","Y","Y","Y","N","N","N","N"]},{label:"6/6",value:["Y","Y","Y","Y","Y","N","N","N","N","N"]},{label:"5/5",value:["N","N","N","N","N","N","N","N","N","N"]},{label:"4/4",value:["N","N","N","Y","Y","N","N","N","N","N"]},{label:"3/3",value:["Y","Y","Y","Y","Y","Y","N","N","N","N"]},{label:"2/2",value:["Y","Y","Y","Y","Y","Y","N","N","N","N"]}]},Yg=["2","3","4","5","6","7","8","9","10","A"],Ku={chart1:Wg,dealerRow:Yg},Vg=()=>{const e=JSON.parse(JSON.stringify(Ku.chart1)),t=JSON.parse(JSON.stringify(Ku.dealerRow)),n=r=>{switch(r){case"H":return"green";case"S":return"yellow";case"D":return"lightblue";case"Ds":return"orange";case"N":return"red";case"Y":return"green"}};return v.jsxs("div",{className:"table-container",children:[v.jsxs("table",{className:"chart-table",children:[v.jsxs("tr",{children:[v.jsx("th",{children:`Dealer's Card -Your Hand`}),t.map((r,l)=>v.jsx("th",{children:r},l))]}),e.data.map((r,l)=>v.jsxs("tr",{children:[v.jsx("th",{children:r.label}),r.value.map(o=>v.jsx("td",{style:{backgroundColor:n(o)},children:o}))]},l))]}),v.jsxs("table",{className:"chart-table",children:[v.jsxs("tr",{children:[v.jsx("th",{children:"Your Hand\\Dealer's Card"}),t.map((r,l)=>v.jsx("th",{children:r},l))]}),e.data2.map((r,l)=>v.jsxs("tr",{children:[v.jsx("th",{children:r.label}),r.value.map(o=>v.jsx("td",{style:{backgroundColor:n(o)},children:o}))]},l))]}),v.jsxs("table",{className:"chart-table",children:[v.jsxs("tr",{children:[v.jsx("th",{children:"Your Hand\\Dealer's Card"}),t.map((r,l)=>v.jsx("th",{children:r},l))]}),e.data3.map((r,l)=>v.jsxs("tr",{children:[v.jsx("th",{children:r.label}),r.value.map(o=>v.jsx("td",{style:{backgroundColor:n(o)},children:o}))]},l))]}),v.jsx("div",{className:"floating-key",children:v.jsxs("table",{className:"key-table",children:[v.jsxs("tr",{children:[v.jsx("th",{children:"Hit (H)"}),v.jsx("th",{style:{backgroundColor:"green"}})]}),v.jsxs("tr",{children:[v.jsx("th",{children:"Stand (S)"}),v.jsx("th",{style:{backgroundColor:"yellow"}})]}),v.jsxs("tr",{children:[v.jsx("th",{children:"Double Down (D)"}),v.jsx("th",{style:{backgroundColor:"lightblue"}})]}),v.jsxs("tr",{children:[v.jsx("th",{children:"Double Down if Stand is allowed after (Ds)"}),v.jsx("th",{style:{backgroundColor:"orange"}})]}),v.jsxs("tr",{children:[v.jsx("th",{children:"Split (Y)"}),v.jsx("th",{style:{backgroundColor:"green"}})]}),v.jsxs("tr",{children:[v.jsx("th",{children:"Don't Split (N)"}),v.jsx("th",{style:{backgroundColor:"red"}})]})]})})]})};const Qg=()=>{const e=[{term:"Anchorman",definition:"When seated at the blackjack table, the last player to act before the dealer is called the Anchorman."},{term:"Bankroll",definition:"The money you have available to gamble with is called your bankroll. It would help if you did not confuse this with your total available cash - only count the portion you are willing to risk in a casino."},{term:"Blackjack",definition:"Blackjack is the name of the game, but also the perfect hand to receive - one ace and one ten or a picture card, making 21."},{term:"Burn Card",definition:"Before the dealer commences dealing, he places the first card to one side, face down. This is the burn card, designed to make it impossible for the first player to know what the first card is going to be (which would affect how he bets)."},{term:"Bust",definition:"Bust is a word you never wish to be applied to you. Bust means you have run out of money (it is not the end of the world if you lose your bankroll, so long as you did separate it from your day-to-day living funds)."},{term:"Cold Deck",definition:"If the shoe, the name applied to the box holding the cards, is spewing out awful cards and causing the players to lose too much, it is known as a cold deck, as opposed to the players running hot."},{term:"Color Up",definition:"If a player has lots of low denomination chips, he might ask the dealer to color up some of them, changing many small-value chips for higher-value ones."},{term:"Cut Card",definition:"When a new shoe, complete with shuffled cards, is introduced, the dealer asks one player to cut the deck with a cut card. The cut card then signals when action with that shoe finishes, and a new one is required."},{term:"Discards",definition:"All cards that have already been dealt are discards, which then sit idly to one side until a new shoe is needed, and they get reshuffled and re-used."},{term:"Double Down",definition:"If luck is on your side, you have a promising starting hand, and the dealer looks weak—time to double down and double your initial wager. If your hand holds up, you win twice as much as you would have done. However, if it loses… well, let’s not go there."},{term:"House Edge",definition:"The house edge is the expected advantage the house or casino has in a particular game. In blackjack, against players with a basic knowledge of blackjack strategy, the house edge is little over 1%. This means that on average, for every $100 you gamble, you’ll lose $1."},{term:"Flat Betting",definition:"When a player bets the same amount consistently, hand after hand, he is considered to be flat betting. It’s perfectly okay to flat bet, but just not very adventurous."},{term:"Hit",definition:"When you wish the dealer to give you another card, you hit."},{term:"Surrender/Late Surrender",definition:"In some variations of blackjack, you can surrender your hand without making any further decisions. You will receive only half of your stake back, but if your hand looks a dud, you potentially save some money."},{term:"Multi Deck",definition:"Most blackjack games in a casino have multi decks, rather than using one deck of cards. Many games will use six to eight decks at a time."},{term:"Pit",definition:"The table area you sit at for your blackjack game is called the pit, overseen by an often stern-looking casino employee called a pit boss."},{term:"Split",definition:"If you receive two cards of the same value, you have the option to split, matching your initial wager. Now you play two separate hands."},{term:"Stand",definition:"If you like your first two cards or have hit and taken another, you can choose to stand at any time, meaning you won’t take another."},{term:"Toke",definition:"Toke is a casino term for a tip. In bricks and mortar casino games, you don’t have to tip the staff, but they don’t get paid massive amounts, and it’s nice to show your appreciation once in a while."},{term:"Up Card",definition:"You only get to see one face-up card for the dealer while you are playing your hands. This is the up card, while his other card remains face down."}];return v.jsx("div",{className:"term-container",children:e.map((t,n)=>v.jsxs("div",{className:"term-row",children:[v.jsxs("h1",{className:"term-text",children:[t.term,":"]}),v.jsx("p",{className:"term-text",children:t.definition})]},n))})},Gg="_statusContainer_1dlho_1",Kg="_status_1dlho_1",Xg="_balance_1dlho_37",Jg="_value_1dlho_65",ci={statusContainer:Gg,status:Kg,balance:Xg,value:Jg},Zg="_controlsContainer_1wb3m_1",qg="_button_1wb3m_13",bg="_betContainer_1wb3m_73",hn={controlsContainer:Zg,button:qg,betContainer:bg},ey=({gameState:e,buttonState:t,playEvent:n,hitEvent:r,standEvent:l,resetEvent:o})=>{const i=()=>{n()},s=()=>e===0?v.jsx("div",{className:hn.controlsContainer,children:v.jsx("button",{onClick:()=>i(),className:hn.button,children:"Play"})}):v.jsxs("div",{className:hn.controlsContainer,children:[v.jsx("button",{onClick:()=>r(),disabled:t.hitDisabled,className:hn.button,children:"Hit"}),v.jsx("button",{onClick:()=>l(),disabled:t.standDisabled,className:hn.button,children:"Stand"}),v.jsx("button",{onClick:()=>o(),disabled:t.resetDisabled,className:hn.button,children:"Reset"})]});return v.jsx(v.Fragment,{children:s()})},ty=({message:e,gameState:t,buttonState:n,playGame:r,hit:l,stand:o,resetGame:i})=>v.jsx("div",{className:ci.statusContainer,children:v.jsxs("div",{className:ci.status,children:[v.jsx("h1",{className:ci.value,children:e}),v.jsx(ey,{gameState:t,buttonState:n,playEvent:r,hitEvent:l,standEvent:o,resetEvent:i})]})}),ny="_handContainer_1k3ef_1",ry="_cardContainer_1k3ef_19",ly="_title_1k3ef_39",di={handContainer:ny,cardContainer:ry,title:ly},oy="_card_1x2tl_1",iy="_baseStyleRed_1x2tl_25",sy="_baseStyleBlue_1x2tl_69",ay="_baseStyleGreen_1x2tl_113",uy="_baseStyleUnique_1x2tl_157",cy="_baseStyleUniqueAnimation_1x2tl_1",dy="_gradientStyleRed_1x2tl_225",fy="_gradientStyleBlue_1x2tl_251",py="_gradientStyleGreen_1x2tl_277",hy="_gradientStyleUnique_1x2tl_303",my="_gradientStyleUniqueAnimation_1x2tl_1",vy="_black_1x2tl_393",gy="_red_1x2tl_401",yy="_value_1x2tl_409",Sy="_suit_1x2tl_419",wy="_hiddenCard_1x2tl_443",he={card:oy,baseStyleRed:iy,baseStyleBlue:sy,baseStyleGreen:ay,baseStyleUnique:uy,baseStyleUniqueAnimation:cy,gradientStyleRed:dy,gradientStyleBlue:fy,gradientStyleGreen:py,gradientStyleUnique:hy,gradientStyleUniqueAnimation:my,black:vy,red:gy,value:yy,suit:Sy,hiddenCard:wy};var M=(e=>(e[e.RED=0]="RED",e[e.BLUE=1]="BLUE",e[e.GREEN=2]="GREEN",e[e.UNIQUE=3]="UNIQUE",e))(M||{}),q=(e=>(e[e.BASE=0]="BASE",e[e.GRADIENT=1]="GRADIENT",e))(q||{});const Kf=N.createContext({cardColor:0,setCardColor:()=>{},cardStyle:0,setCardStyle:()=>{}}),Xf=()=>N.useContext(Kf),Jf=({value:e,suit:t,hidden:n})=>{const{cardColor:r,cardStyle:l}=Xf(),o=()=>t==="♠"||t==="♣"?he.black:he.red,i=()=>{switch(l){case q.BASE:switch(r){case M.RED:return he.baseStyleRed;case M.BLUE:return he.baseStyleBlue;case M.GREEN:return he.baseStyleGreen;case M.UNIQUE:return he.baseStyleUnique;default:return he.baseStyleRed}case q.GRADIENT:switch(r){case M.RED:return he.gradientStyleRed;case M.BLUE:return he.gradientStyleBlue;case M.GREEN:return he.gradientStyleGreen;case M.UNIQUE:return he.gradientStyleUnique;default:return he.gradientStyleRed}default:return he.baseStyleRed}},s=()=>n?v.jsx("div",{className:i()}):v.jsx("div",{className:he.card,children:v.jsxs("div",{className:o(),children:[v.jsx("h1",{className:he.value,children:e}),v.jsx("h1",{className:he.suit,children:t})]})});return v.jsx(v.Fragment,{children:s()})},Xu=({title:e,cards:t})=>{const n=()=>{if(t.length>0)return v.jsx("h1",{className:di.title,children:e})};return v.jsxs("div",{className:di.handContainer,children:[n(),v.jsx("div",{className:t.length>0?di.cardContainer:"",children:t.map((r,l)=>v.jsx(Jf,{value:r.value,suit:r.suit,hidden:r.hidden},l))})]})},ky=[{value:"A",suit:"spades"},{value:"A",suit:"diamonds"},{value:"A",suit:"clubs"},{value:"A",suit:"hearts"},{value:"2",suit:"spades"},{value:"2",suit:"diamonds"},{value:"2",suit:"clubs"},{value:"2",suit:"hearts"},{value:"3",suit:"spades"},{value:"3",suit:"diamonds"},{value:"3",suit:"clubs"},{value:"3",suit:"hearts"},{value:"4",suit:"spades"},{value:"4",suit:"diamonds"},{value:"4",suit:"clubs"},{value:"4",suit:"hearts"},{value:"5",suit:"spades"},{value:"5",suit:"diamonds"},{value:"5",suit:"clubs"},{value:"5",suit:"hearts"},{value:"6",suit:"spades"},{value:"6",suit:"diamonds"},{value:"6",suit:"clubs"},{value:"6",suit:"hearts"},{value:"7",suit:"spades"},{value:"7",suit:"diamonds"},{value:"7",suit:"clubs"},{value:"7",suit:"hearts"},{value:"8",suit:"spades"},{value:"8",suit:"diamonds"},{value:"8",suit:"clubs"},{value:"8",suit:"hearts"},{value:"9",suit:"spades"},{value:"9",suit:"diamonds"},{value:"9",suit:"clubs"},{value:"9",suit:"hearts"},{value:"10",suit:"spades"},{value:"10",suit:"diamonds"},{value:"10",suit:"clubs"},{value:"10",suit:"hearts"},{value:"J",suit:"spades"},{value:"J",suit:"diamonds"},{value:"J",suit:"clubs"},{value:"J",suit:"hearts"},{value:"Q",suit:"spades"},{value:"Q",suit:"diamonds"},{value:"Q",suit:"clubs"},{value:"Q",suit:"hearts"},{value:"K",suit:"spades"},{value:"K",suit:"diamonds"},{value:"K",suit:"clubs"},{value:"K",suit:"hearts"}],xy={cards:ky},Cy="_gameBackground_1mo3b_1",Ey="_handSection_1mo3b_23",Ju={gameBackground:Cy,handSection:Ey},Ny=()=>{let e;(_=>{_[_.bet=0]="bet",_[_.init=1]="init",_[_.userTurn=2]="userTurn",_[_.dealerTurn=3]="dealerTurn"})(e||(e={}));let t;(_=>{_[_.user=0]="user",_[_.dealer=1]="dealer",_[_.hidden=2]="hidden"})(t||(t={}));let n;(_=>{_.bet="Press Play to Start!",_.hitStand="Hit or Stand?",_.bust="Bust!",_.blackjack="Blackjack!",_.userWin="You Win!",_.dealerWin="Dealer Wins!",_.tie="Tie!"})(n||(n={}));const r=JSON.parse(JSON.stringify(xy.cards)),[l,o]=N.useState(r),[i,s]=N.useState([]),[a,u]=N.useState(0),[p,m]=N.useState(0),[h,g]=N.useState([]),[S,y]=N.useState(0),[P,d]=N.useState(0),[c,f]=N.useState(0),[w,k]=N.useState("Press Play to Start!"),[x,C]=N.useState({hitDisabled:!1,standDisabled:!1,resetDisabled:!0});N.useEffect(()=>{c===1&&(I(0),I(2),I(0),I(1),f(2),k("Hit or Stand?"))},[c]),N.useEffect(()=>{qe(i,u),m(p+1)},[i]),N.useEffect(()=>{qe(h,y),d(P+1)},[h]),N.useEffect(()=>{c===2&&(a===21?i.length===2?ke():(x.hitDisabled=!0,C({...x})):a>21&&it())},[p]),N.useEffect(()=>{c===3&&(S>=17?j():I(1))},[P]);const T=()=>{f(1)},F=()=>{console.clear(),o(r),s([]),u(0),m(0),g([]),y(0),d(0),f(0),k("Press Play to Start!"),C({hitDisabled:!1,standDisabled:!1,resetDisabled:!0})},I=_=>{if(l.length>0){const D=Math.floor(Math.random()*l.length),L=l[D];switch(l.splice(D,1),o([...l]),console.log("Remaining Cards:",l.length),L.suit){case"spades":le(_,L.value,"♠");break;case"diamonds":le(_,L.value,"♦");break;case"clubs":le(_,L.value,"♣");break;case"hearts":le(_,L.value,"♥");break}}else alert("All cards have been drawn")},le=(_,D,L)=>{switch(_){case 0:i.push({value:D,suit:L,hidden:!1}),s([...i]);break;case 1:h.push({value:D,suit:L,hidden:!1}),g([...h]);break;case 2:h.push({value:D,suit:L,hidden:!0}),g([...h]);break}},ot=()=>{h.filter(_=>(_.hidden===!0&&(_.hidden=!1),_)),g([...h])},qe=(_,D)=>{let L=0;_.forEach(oe=>{if(oe.hidden===!1&&oe.value!=="A")switch(oe.value){case"K":L+=10;break;case"Q":L+=10;break;case"J":L+=10;break;default:L+=Number(oe.value);break}});const H=_.filter(oe=>oe.value==="A");H.forEach(oe=>{oe.hidden===!1&&(L+11>21||L+11===21&&H.length>1?L+=1:L+=11)}),D(L)},dn=()=>{I(0)},Zn=()=>{x.hitDisabled=!0,x.standDisabled=!0,x.resetDisabled=!1,C({...x}),f(3),ot()},it=()=>{x.hitDisabled=!0,x.standDisabled=!0,x.resetDisabled=!1,C({...x}),k("Bust!")},ke=()=>{x.hitDisabled=!0,x.standDisabled=!0,x.resetDisabled=!1,C({...x}),k("Blackjack!")},j=()=>{a>S||S>21?k("You Win!"):S>a?k("Dealer Wins!"):k("Tie!")};return v.jsxs("div",{className:Ju.gameBackground,children:[v.jsx(ty,{message:w,gameState:c,buttonState:x,playGame:T,hit:dn,stand:Zn,resetGame:F}),v.jsxs("div",{className:Ju.handSection,children:[v.jsx(Xu,{title:`Dealer's Hand (${S})`,cards:h}),v.jsx(Xu,{title:`Your Hand (${a})`,cards:i})]})]})};const _y=()=>{const{cardColor:e,setCardColor:t,cardStyle:n,setCardStyle:r}=Xf(),l=(i,s)=>e.valueOf()===i.valueOf()&&n.valueOf()===s.valueOf()?"buttonSelected":"button",o=(i,s)=>{t(i),r(s)};return v.jsxs("div",{className:"pageContainer",children:[v.jsx(Jf,{value:"A",suit:"spade",hidden:!0}),v.jsxs("div",{className:"buttonsContainer",children:[v.jsxs("div",{className:"buttonGroup",children:[v.jsx("h1",{children:"Base"}),v.jsx("button",{className:l(M.RED,q.BASE),onClick:()=>o(M.RED,q.BASE),children:"Red"}),v.jsx("button",{className:l(M.BLUE,q.BASE),onClick:()=>o(M.BLUE,q.BASE),children:"Blue"}),v.jsx("button",{className:l(M.GREEN,q.BASE),onClick:()=>o(M.GREEN,q.BASE),children:"Green"}),v.jsx("button",{className:l(M.UNIQUE,q.BASE),onClick:()=>o(M.UNIQUE,q.BASE),children:"Unique"})]}),v.jsxs("div",{className:"buttonGroup",children:[v.jsx("h1",{children:"Gradient"}),v.jsx("button",{className:l(M.RED,q.GRADIENT),onClick:()=>o(M.RED,q.GRADIENT),children:"Red"}),v.jsx("button",{className:l(M.BLUE,q.GRADIENT),onClick:()=>o(M.BLUE,q.GRADIENT),children:"Blue"}),v.jsx("button",{className:l(M.GREEN,q.GRADIENT),onClick:()=>o(M.GREEN,q.GRADIENT),children:"Green"}),v.jsx("button",{className:l(M.UNIQUE,q.GRADIENT),onClick:()=>o(M.UNIQUE,q.GRADIENT),children:"Unique"})]})]})]})},Py=()=>{const[e,t]=N.useState(M.RED),[n,r]=N.useState(q.BASE);return v.jsxs(Kf.Provider,{value:{cardColor:e,setCardColor:t,cardStyle:n,setCardStyle:r},children:[v.jsx(Ag,{}),v.jsxs(dv,{children:[v.jsx(kt,{path:Cf,element:v.jsx(Tv,{})}),v.jsx(kt,{path:Ef,element:v.jsx(Bg,{})}),v.jsx(kt,{path:Nf,element:v.jsx(Vg,{})}),v.jsx(kt,{path:_f,element:v.jsx(Qg,{})}),v.jsx(kt,{path:fa,element:v.jsx(Ny,{})}),v.jsx(kt,{path:Pf,element:v.jsx(_y,{})}),v.jsx(kt,{path:Cv,element:v.jsx(Hg,{})})]})]})};fi.createRoot(document.getElementById("root")).render(v.jsx(en.StrictMode,{children:v.jsx(gv,{children:v.jsx(Py,{})})})); diff --git a/assets/index-8961a477.js b/assets/index-8961a477.js new file mode 100644 index 0000000..f2c9257 --- /dev/null +++ b/assets/index-8961a477.js @@ -0,0 +1,99 @@ +function Zf(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 qf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zu={exports:{}},ai={},qu={exports:{}},O={};/** + * @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 Fr=Symbol.for("react.element"),bf=Symbol.for("react.portal"),ep=Symbol.for("react.fragment"),tp=Symbol.for("react.strict_mode"),np=Symbol.for("react.profiler"),rp=Symbol.for("react.provider"),lp=Symbol.for("react.context"),ip=Symbol.for("react.forward_ref"),op=Symbol.for("react.suspense"),sp=Symbol.for("react.memo"),ap=Symbol.for("react.lazy"),ya=Symbol.iterator;function up(e){return e===null||typeof e!="object"?null:(e=ya&&e[ya]||e["@@iterator"],typeof e=="function"?e:null)}var bu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ec=Object.assign,tc={};function Qn(e,t,n){this.props=e,this.context=t,this.refs=tc,this.updater=n||bu}Qn.prototype.isReactComponent={};Qn.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")};Qn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nc(){}nc.prototype=Qn.prototype;function hs(e,t,n){this.props=e,this.context=t,this.refs=tc,this.updater=n||bu}var ms=hs.prototype=new nc;ms.constructor=hs;ec(ms,Qn.prototype);ms.isPureReactComponent=!0;var Sa=Array.isArray,rc=Object.prototype.hasOwnProperty,vs={current:null},lc={key:!0,ref:!0,__self:!0,__source:!0};function ic(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)rc.call(t,r)&&!lc.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1>>1,H=R[L];if(0>>1;Ll(yt,D))jel($e,yt)?(R[L]=$e,R[je]=D,L=je):(R[L]=yt,R[Re]=D,L=Re);else if(jel($e,D))R[L]=$e,R[je]=D,L=je;else break e}}return _}function l(R,_){var D=R.sortIndex-_.sortIndex;return D!==0?D:R.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],p=1,m=null,h=3,g=!1,S=!1,y=!1,P=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(R){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=R)r(u),_.sortIndex=_.expirationTime,t(a,_);else break;_=n(u)}}function w(R){if(y=!1,f(R),!S)if(n(a)!==null)S=!0,ot(k);else{var _=n(u);_!==null&&ke(w,_.startTime-R)}}function k(R,_){S=!1,y&&(y=!1,d(T),T=-1),g=!0;var D=h;try{for(f(_),m=n(a);m!==null&&(!(m.expirationTime>_)||R&&!le());){var L=m.callback;if(typeof L=="function"){m.callback=null,h=m.priorityLevel;var H=L(m.expirationTime<=_);_=e.unstable_now(),typeof H=="function"?m.callback=H:m===n(a)&&r(a),f(_)}else r(a);m=n(a)}if(m!==null)var ie=!0;else{var Re=n(u);Re!==null&&ke(w,Re.startTime-_),ie=!1}return ie}finally{m=null,h=D,g=!1}}var x=!1,E=null,T=-1,F=5,I=-1;function le(){return!(e.unstable_now()-IR||125L?(R.sortIndex=D,t(u,R),n(a)===null&&R===n(u)&&(y?(d(T),T=-1):y=!0,ke(w,D-L))):(R.sortIndex=H,t(a,R),S||g||(S=!0,ot(k))),R},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(R){var _=h;return function(){var D=h;h=_;try{return R.apply(this,arguments)}finally{h=D}}}})(uc);ac.exports=uc;var kp=ac.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 cc=N,Ie=kp;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),po=Object.prototype.hasOwnProperty,xp=/^[: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]*$/,ka={},xa={};function Ep(e){return po.call(xa,e)?!0:po.call(ka,e)?!1:xp.test(e)?xa[e]=!0:(ka[e]=!0,!1)}function Cp(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 Np(e,t,n,r){if(t===null||typeof t>"u"||Cp(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 we(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 de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new we(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new we(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new we(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){de[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){de[e]=new we(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){de[e]=new we(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){de[e]=new we(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){de[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var ys=/[\-:]([a-z])/g;function Ss(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(ys,Ss);de[t]=new we(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(ys,Ss);de[t]=new we(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(ys,Ss);de[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){de[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)});de.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){de[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)});function ws(e,t,n,r){var l=de.hasOwnProperty(t)?de[t]:null;(l!==null?l.type!==0:r||!(2s||l[o]!==i[s]){var a=` +`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{Ii=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sr(e):""}function _p(e){switch(e.tag){case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 2:case 15:return e=zi(e.type,!1),e;case 11:return e=zi(e.type.render,!1),e;case 1:return e=zi(e.type,!0),e;default:return""}}function go(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 vn:return"Fragment";case mn:return"Portal";case ho:return"Profiler";case ks:return"StrictMode";case mo:return"Suspense";case vo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pc:return(e.displayName||"Context")+".Consumer";case fc:return(e._context.displayName||"Context")+".Provider";case xs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Es:return t=e.displayName||null,t!==null?t:go(e.type)||"Memo";case Et:t=e._payload,e=e._init;try{return go(e(t))}catch{}}return null}function Pp(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 go(t);case 8:return t===ks?"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 Mt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rp(e){var t=mc(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 br(e){e._valueTracker||(e._valueTracker=Rp(e))}function vc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Dl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yo(e,t){var n=t.checked;return X({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ca(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mt(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 gc(e,t){t=t.checked,t!=null&&ws(e,"checked",t,!1)}function So(e,t){gc(e,t);var n=Mt(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")?wo(e,t.type,n):t.hasOwnProperty("defaultValue")&&wo(e,t.type,Mt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Na(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 wo(e,t,n){(t!=="number"||Dl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ar=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=el.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Er(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fr={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},jp=["Webkit","ms","Moz","O"];Object.keys(fr).forEach(function(e){jp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fr[t]=fr[e]})});function kc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fr.hasOwnProperty(e)&&fr[e]?(""+t).trim():t+"px"}function xc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=kc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Tp=X({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 Eo(e,t){if(t){if(Tp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Co(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var No=null;function Cs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _o=null,jn=null,Tn=null;function Ra(e){if(e=Yr(e)){if(typeof _o!="function")throw Error(C(280));var t=e.stateNode;t&&(t=pi(t),_o(e.stateNode,e.type,t))}}function Ec(e){jn?Tn?Tn.push(e):Tn=[e]:jn=e}function Cc(){if(jn){var e=jn,t=Tn;if(Tn=jn=null,Ra(e),t)for(e=0;e>>=0,e===0?32:31-(Fp(e)/Hp|0)|0}var tl=64,nl=4194304;function ur(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ol(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=ur(s):(i&=o,i!==0&&(r=ur(i)))}else o=n&~l,o!==0?r=ur(o):i!==0&&(r=ur(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 Hr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ke(t),e[t]=n}function Qp(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=hr),Aa=String.fromCharCode(32),Ua=!1;function Yc(e,t){switch(e){case"keyup":return wh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gn=!1;function xh(e,t){switch(e){case"compositionend":return Vc(t);case"keypress":return t.which!==32?null:(Ua=!0,Aa);case"textInput":return e=t.data,e===Aa&&Ua?null:e;default:return null}}function Eh(e,t){if(gn)return e==="compositionend"||!Ls&&Yc(e,t)?(e=Hc(),yl=js=Pt=null,gn=!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=Ha(n)}}function Xc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jc(){for(var e=window,t=Dl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dl(e.document)}return t}function Is(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 Lh(e){var t=Jc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xc(n.ownerDocument.documentElement,n)){if(r!==null&&Is(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=Wa(n,i);var o=Wa(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,yn=null,Lo=null,vr=null,Io=!1;function Ya(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Io||yn==null||yn!==Dl(r)||(r=yn,"selectionStart"in r&&Is(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}),vr&&jr(vr,r)||(vr=r,r=Ul(Lo,"onSelect"),0kn||(e.current=Mo[kn],Mo[kn]=null,kn--)}function B(e,t){kn++,Mo[kn]=e.current,e.current=t}var Bt={},ve=Ht(Bt),Ne=Ht(!1),tn=Bt;function On(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function _e(e){return e=e.childContextTypes,e!=null}function Bl(){V(Ne),V(ve)}function Za(e,t,n){if(ve.current!==Bt)throw Error(C(168));B(ve,t),B(Ne,n)}function id(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(C(108,Pp(e)||"Unknown",l));return X({},n,r)}function Fl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,tn=ve.current,B(ve,e),B(Ne,Ne.current),!0}function qa(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=id(e,t,tn),r.__reactInternalMemoizedMergedChildContext=e,V(Ne),V(ve),B(ve,e)):V(Ne),B(Ne,n)}var ut=null,hi=!1,Ki=!1;function od(e){ut===null?ut=[e]:ut.push(e)}function Yh(e){hi=!0,od(e)}function Wt(){if(!Ki&&ut!==null){Ki=!0;var e=0,t=U;try{var n=ut;for(U=1;e>=o,l-=o,ct=1<<32-Ke(t)+l|n<T?(F=E,E=null):F=E.sibling;var I=h(d,E,f[T],w);if(I===null){E===null&&(E=F);break}e&&E&&I.alternate===null&&t(d,E),c=i(I,c,T),x===null?k=I:x.sibling=I,x=I,E=F}if(T===f.length)return n(d,E),Q&&Yt(d,T),k;if(E===null){for(;TT?(F=E,E=null):F=E.sibling;var le=h(d,E,I.value,w);if(le===null){E===null&&(E=F);break}e&&E&&le.alternate===null&&t(d,E),c=i(le,c,T),x===null?k=le:x.sibling=le,x=le,E=F}if(I.done)return n(d,E),Q&&Yt(d,T),k;if(E===null){for(;!I.done;T++,I=f.next())I=m(d,I.value,w),I!==null&&(c=i(I,c,T),x===null?k=I:x.sibling=I,x=I);return Q&&Yt(d,T),k}for(E=r(d,E);!I.done;T++,I=f.next())I=g(E,d,T,I.value,w),I!==null&&(e&&I.alternate!==null&&E.delete(I.key===null?T:I.key),c=i(I,c,T),x===null?k=I:x.sibling=I,x=I);return e&&E.forEach(function(it){return t(d,it)}),Q&&Yt(d,T),k}function P(d,c,f,w){if(typeof f=="object"&&f!==null&&f.type===vn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case qr:e:{for(var k=f.key,x=c;x!==null;){if(x.key===k){if(k=f.type,k===vn){if(x.tag===7){n(d,x.sibling),c=l(x,f.props.children),c.return=d,d=c;break e}}else if(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Et&&iu(k)===x.type){n(d,x.sibling),c=l(x,f.props),c.ref=rr(d,x,f),c.return=d,d=c;break e}n(d,x);break}else t(d,x);x=x.sibling}f.type===vn?(c=Zt(f.props.children,d.mode,w,f.key),c.return=d,d=c):(w=_l(f.type,f.key,f.props,null,d.mode,w),w.ref=rr(d,c,f),w.return=d,d=w)}return o(d);case mn:e:{for(x=f.key;c!==null;){if(c.key===x)if(c.tag===4&&c.stateNode.containerInfo===f.containerInfo&&c.stateNode.implementation===f.implementation){n(d,c.sibling),c=l(c,f.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=no(f,d.mode,w),c.return=d,d=c}return o(d);case Et:return x=f._init,P(d,c,x(f._payload),w)}if(ar(f))return S(d,c,f,w);if(qn(f))return y(d,c,f,w);ul(d,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,f),c.return=d,d=c):(n(d,c),c=to(f,d.mode,w),c.return=d,d=c),o(d)):n(d,c)}return P}var An=hd(!0),md=hd(!1),Vr={},lt=Ht(Vr),Ir=Ht(Vr),zr=Ht(Vr);function Kt(e){if(e===Vr)throw Error(C(174));return e}function Hs(e,t){switch(B(zr,t),B(Ir,e),B(lt,Vr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xo(t,e)}V(lt),B(lt,t)}function Un(){V(lt),V(Ir),V(zr)}function vd(e){Kt(zr.current);var t=Kt(lt.current),n=xo(t,e.type);t!==n&&(B(Ir,e),B(lt,n))}function Ws(e){Ir.current===e&&(V(lt),V(Ir))}var G=Ht(0);function Gl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xi=[];function Ys(){for(var e=0;en?n:4,e(!0);var r=Ji.transition;Ji.transition={};try{e(!1),t()}finally{U=n,Ji.transition=r}}function Ld(){return He().memoizedState}function Kh(e,t,n){var r=$t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Id(e))zd(t,n);else if(n=cd(e,t,n,r),n!==null){var l=ye();Xe(n,e,r,l),Od(n,t,r)}}function Xh(e,t,n){var r=$t(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Id(e))zd(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,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,Ze(s,o)){var a=t.interleaved;a===null?(l.next=l,Bs(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=cd(e,t,l,r),n!==null&&(l=ye(),Xe(n,e,r,l),Od(n,t,r))}}function Id(e){var t=e.alternate;return e===K||t!==null&&t===K}function zd(e,t){gr=Kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Od(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_s(e,n)}}var Xl={readContext:Fe,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},Jh={readContext:Fe,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:su,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xl(4194308,4,Pd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xl(4194308,4,e,t)},useInsertionEffect:function(e,t){return xl(4,2,e,t)},useMemo:function(e,t){var n=et();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=et();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=Kh.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:ou,useDebugValue:Xs,useDeferredValue:function(e){return et().memoizedState=e},useTransition:function(){var e=ou(!1),t=e[0];return e=Gh.bind(null,e[1]),et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,l=et();if(Q){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ae===null)throw Error(C(349));rn&30||Sd(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,su(kd.bind(null,r,i,e),[e]),r.flags|=2048,Ar(9,wd.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=et(),t=ae.identifierPrefix;if(Q){var n=dt,r=ct;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Or++,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[nt]=t,e[Lr]=r,Yd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Co(n,r),n){case"dialog":W("cancel",e),W("close",e),l=r;break;case"iframe":case"object":case"embed":W("load",e),l=r;break;case"video":case"audio":for(l=0;lBn&&(t.flags|=128,r=!0,lr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Gl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),lr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Q)return pe(t),null}else 2*Z()-i.renderingStartTime>Bn&&n!==1073741824&&(t.flags|=128,r=!0,lr(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=Z(),t.sibling=null,n=G.current,B(G,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return ta(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Te&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function lm(e,t){switch(Os(t),t.tag){case 1:return _e(t.type)&&Bl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(),V(Ne),V(ve),Ys(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ws(t),null;case 13:if(V(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));$n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(G),null;case 4:return Un(),null;case 10:return Ms(t.type._context),null;case 22:case 23:return ta(),null;case 24:return null;default:return null}}var dl=!1,me=!1,im=typeof WeakSet=="function"?WeakSet:Set,j=null;function Nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function Zo(e,t,n){try{n()}catch(r){J(e,t,r)}}var vu=!1;function om(e,t){if(zo=$l,e=Jc(),Is(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,s=-1,a=-1,u=0,p=0,m=e,h=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(s=o+l),m!==i||r!==0&&m.nodeType!==3||(a=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(g=m.firstChild)!==null;)h=m,m=g;for(;;){if(m===e)break t;if(h===n&&++u===l&&(s=o),h===i&&++p===r&&(a=o),(g=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=g}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Oo={focusedElem:e,selectionRange:n},$l=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var y=S.memoizedProps,P=S.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ve(t.type,y),P);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(w){J(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return S=vu,vu=!1,S}function yr(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&&Zo(t,n,i)}l=l.next}while(l!==r)}}function gi(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 qo(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 Gd(e){var t=e.alternate;t!==null&&(e.alternate=null,Gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nt],delete t[Lr],delete t[Uo],delete t[Hh],delete t[Wh])),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 Kd(e){return e.tag===5||e.tag===3||e.tag===4}function gu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ml));else if(r!==4&&(e=e.child,e!==null))for(bo(e,t,n),e=e.sibling;e!==null;)bo(e,t,n),e=e.sibling}function es(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(es(e,t,n),e=e.sibling;e!==null;)es(e,t,n),e=e.sibling}var ue=null,Qe=!1;function wt(e,t,n){for(n=n.child;n!==null;)Xd(e,t,n),n=n.sibling}function Xd(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(ui,n)}catch{}switch(n.tag){case 5:me||Nn(n,t);case 6:var r=ue,l=Qe;ue=null,wt(e,t,n),ue=r,Qe=l,ue!==null&&(Qe?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(Qe?(e=ue,n=n.stateNode,e.nodeType===8?Gi(e.parentNode,n):e.nodeType===1&&Gi(e,n),Pr(e)):Gi(ue,n.stateNode));break;case 4:r=ue,l=Qe,ue=n.stateNode.containerInfo,Qe=!0,wt(e,t,n),ue=r,Qe=l;break;case 0:case 11:case 14:case 15:if(!me&&(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)&&Zo(n,t,o),l=l.next}while(l!==r)}wt(e,t,n);break;case 1:if(!me&&(Nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){J(n,t,s)}wt(e,t,n);break;case 21:wt(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,wt(e,t,n),me=r):wt(e,t,n);break;default:wt(e,t,n)}}function yu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new im),t.forEach(function(r){var l=mm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ye(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*am(r/1960))-r,10e?16:e,Rt===null)var r=!1;else{if(e=Rt,Rt=null,ql=0,$&6)throw Error(C(331));var l=$;for($|=4,j=e.current;j!==null;){var i=j,o=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aZ()-bs?Jt(e,0):qs|=n),Pe(e,t)}function rf(e,t){t===0&&(e.mode&1?(t=nl,nl<<=1,!(nl&130023424)&&(nl=4194304)):t=1);var n=ye();e=mt(e,t),e!==null&&(Hr(e,t,n),Pe(e,n))}function hm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rf(e,n)}function mm(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(C(314))}r!==null&&r.delete(t),rf(e,n)}var lf;lf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)Ee=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ee=!1,nm(e,t,n);Ee=!!(e.flags&131072)}else Ee=!1,Q&&t.flags&1048576&&sd(t,Wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;El(e,t),e=t.pendingProps;var l=On(t,ve.current);Ln(t,n),l=Qs(null,t,r,e,l,n);var i=Gs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_e(r)?(i=!0,Fl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Fs(t),l.updater=mi,t.stateNode=l,l._reactInternals=t,Yo(t,r,e,n),t=Go(null,t,r,!0,i,n)):(t.tag=0,Q&&i&&zs(t),ge(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=gm(r),e=Ve(r,e),l){case 0:t=Qo(null,t,r,e,n);break e;case 1:t=pu(null,t,r,e,n);break e;case 11:t=du(null,t,r,e,n);break e;case 14:t=fu(null,t,r,Ve(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),Qo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),pu(e,t,r,l,n);case 3:e:{if(Fd(t),e===null)throw Error(C(387));r=t.pendingProps,i=t.memoizedState,l=i.element,dd(e,t),Ql(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=Mn(Error(C(423)),t),t=hu(e,t,r,n,l);break e}else if(r!==l){l=Mn(Error(C(424)),t),t=hu(e,t,r,n,l);break e}else for(De=It(t.stateNode.containerInfo.firstChild),Le=t,Q=!0,Ge=null,n=md(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($n(),r===l){t=vt(e,t,n);break e}ge(e,t,r,n)}t=t.child}return t;case 5:return vd(t),e===null&&Fo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,$o(r,l)?o=null:i!==null&&$o(r,i)&&(t.flags|=32),Bd(e,t),ge(e,t,o,n),t.child;case 6:return e===null&&Fo(t),null;case 13:return Hd(e,t,n);case 4:return Hs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=An(t,null,r,n):ge(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),du(e,t,r,l,n);case 7:return ge(e,t,t.pendingProps,n),t.child;case 8:return ge(e,t,t.pendingProps.children,n),t.child;case 12:return ge(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,B(Yl,r._currentValue),r._currentValue=o,i!==null)if(Ze(i.value,o)){if(i.children===l.children&&!Ne.current){t=vt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=ft(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?a.next=a:(a.next=p.next,p.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ho(i.return,n,t),s.lanes|=n;break}a=a.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(C(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ho(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}ge(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Ln(t,n),l=Fe(l),r=r(l),t.flags|=1,ge(e,t,r,n),t.child;case 14:return r=t.type,l=Ve(r,t.pendingProps),l=Ve(r.type,l),fu(e,t,r,l,n);case 15:return Ud(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),El(e,t),t.tag=1,_e(r)?(e=!0,Fl(t)):e=!1,Ln(t,n),pd(t,r,l),Yo(t,r,l,n),Go(null,t,r,!0,e,n);case 19:return Wd(e,t,n);case 22:return Md(e,t,n)}throw Error(C(156,t.tag))};function of(e,t){return Dc(e,t)}function vm(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 Me(e,t,n,r){return new vm(e,t,n,r)}function ra(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gm(e){if(typeof e=="function")return ra(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xs)return 11;if(e===Es)return 14}return 2}function At(e,t){var n=e.alternate;return n===null?(n=Me(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 _l(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")ra(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case vn:return Zt(n.children,l,i,t);case ks:o=8,l|=8;break;case ho:return e=Me(12,n,t,l|2),e.elementType=ho,e.lanes=i,e;case mo:return e=Me(13,n,t,l),e.elementType=mo,e.lanes=i,e;case vo:return e=Me(19,n,t,l),e.elementType=vo,e.lanes=i,e;case hc:return Si(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fc:o=10;break e;case pc:o=9;break e;case xs:o=11;break e;case Es:o=14;break e;case Et:o=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Me(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Zt(e,t,n,r){return e=Me(7,e,r,t),e.lanes=n,e}function Si(e,t,n,r){return e=Me(22,e,r,t),e.elementType=hc,e.lanes=n,e.stateNode={isHidden:!1},e}function to(e,t,n){return e=Me(6,e,null,t),e.lanes=n,e}function no(e,t,n){return t=Me(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ym(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=$i(0),this.expirationTimes=$i(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$i(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function la(e,t,n,r,l,i,o,s,a){return e=new ym(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Me(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fs(i),e}function Sm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cf)}catch(e){console.error(e)}}cf(),sc.exports=ze;var Cm=sc.exports,_u=Cm;fo.createRoot=_u.createRoot,fo.hydrateRoot=_u.hydrateRoot;/** + * @remix-run/router v1.9.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function aa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _m(){return Math.random().toString(36).substr(2,8)}function Ru(e,t){return{usr:e.state,key:e.key,idx:t}}function is(e,t,n,r){return n===void 0&&(n=null),Mr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xn(t):t,{state:n,key:t&&t.key||r||_m()})}function ti(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 Xn(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 Pm(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,s=jt.Pop,a=null,u=p();u==null&&(u=0,o.replaceState(Mr({},o.state,{idx:u}),""));function p(){return(o.state||{idx:null}).idx}function m(){s=jt.Pop;let P=p(),d=P==null?null:P-u;u=P,a&&a({action:s,location:y.location,delta:d})}function h(P,d){s=jt.Push;let c=is(y.location,P,d);n&&n(c,P),u=p()+1;let f=Ru(c,u),w=y.createHref(c);try{o.pushState(f,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;l.location.assign(w)}i&&a&&a({action:s,location:y.location,delta:1})}function g(P,d){s=jt.Replace;let c=is(y.location,P,d);n&&n(c,P),u=p();let f=Ru(c,u),w=y.createHref(c);o.replaceState(f,"",w),i&&a&&a({action:s,location:y.location,delta:0})}function S(P){let d=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof P=="string"?P:ti(P);return te(d,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,d)}let y={get action(){return s},get location(){return e(l,o)},listen(P){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(Pu,m),a=P,()=>{l.removeEventListener(Pu,m),a=null}},createHref(P){return t(l,P)},createURL:S,encodeLocation(P){let d=S(P);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:h,replace:g,go(P){return o.go(P)}};return y}var ju;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ju||(ju={}));function Rm(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Xn(t):t,l=ua(r.pathname||"/",n);if(l==null)return null;let i=df(e);jm(i);let o=null;for(let s=0;o==null&&s{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(te(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Ut([r,a.relativePath]),p=n.concat(a);i.children&&i.children.length>0&&(te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),df(i.children,t,p,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:$m(u,i.index),routesMeta:p})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,o);else for(let a of ff(i.path))l(i,o,a)}),t}function ff(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=ff(r.join("/")),s=[];return s.push(...o.map(a=>a===""?i:[i,a].join("/"))),l&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function jm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Am(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Tm=/^:\w+$/,Dm=3,Lm=2,Im=1,zm=10,Om=-2,Tu=e=>e==="*";function $m(e,t){let n=e.split("/"),r=n.length;return n.some(Tu)&&(r+=Om),t&&(r+=Lm),n.filter(l=>!Tu(l)).reduce((l,i)=>l+(Tm.test(i)?Dm:i===""?Im:zm),r)}function Am(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 Um(e,t){let{routesMeta:n}=e,r={},l="/",i=[];for(let o=0;o{if(p==="*"){let h=s[m]||"";o=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}return u[p]=Hm(s[m]||"",p),u},{}),pathname:i,pathnameBase:o,pattern:e}}function Bm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),aa(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,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Fm(e){try{return decodeURI(e)}catch(t){return aa(!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 Hm(e,t){try{return decodeURIComponent(e)}catch(n){return aa(!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 ua(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 Wm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Xn(e):e;return{pathname:n?n.startsWith("/")?n:Ym(n,t):t,search:Qm(r),hash:Gm(l)}}function Ym(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 ro(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 pf(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hf(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Xn(e):(l=Mr({},e),te(!l.pathname||!l.pathname.includes("?"),ro("?","pathname","search",l)),te(!l.pathname||!l.pathname.includes("#"),ro("#","pathname","hash",l)),te(!l.search||!l.search.includes("#"),ro("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,s;if(r||o==null)s=n;else{let m=t.length-1;if(o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),m-=1;l.pathname=h.join("/")}s=m>=0?t[m]:"/"}let a=Wm(l,s),u=o&&o!=="/"&&o.endsWith("/"),p=(i||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||p)&&(a.pathname+="/"),a}const Ut=e=>e.join("/").replace(/\/\/+/g,"/"),Vm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Qm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Km(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mf=["post","put","patch","delete"];new Set(mf);const Xm=["get",...mf];new Set(Xm);/** + * React Router v6.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.pathnameBase)),o=N.useRef(!1);return yf(()=>{o.current=!0}),N.useCallback(function(a,u){if(u===void 0&&(u={}),!o.current)return;if(typeof a=="number"){n.go(a);return}let p=hf(a,JSON.parse(i),l,u.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ut([t,p.pathname])),(u.replace?n.replace:n.push)(p,u.state,u)},[t,n,i,l,e])}function da(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=N.useContext(cn),{pathname:l}=Gr(),i=JSON.stringify(pf(r).map(o=>o.pathnameBase));return N.useMemo(()=>hf(e,JSON.parse(i),l,n==="path"),[e,i,l,n])}function qm(e,t){return bm(e,t)}function bm(e,t,n){Qr()||te(!1);let{navigator:r}=N.useContext(un),{matches:l}=N.useContext(cn),i=l[l.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let a=Gr(),u;if(t){var p;let y=typeof t=="string"?Xn(t):t;s==="/"||(p=y.pathname)!=null&&p.startsWith(s)||te(!1),u=y}else u=a;let m=u.pathname||"/",h=s==="/"?m:m.slice(s.length)||"/",g=Rm(e,{pathname:h}),S=lv(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:Ut([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Ut([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),l,n);return t&&S?N.createElement(Ci.Provider,{value:{location:ni({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:jt.Pop}},S):S}function ev(){let e=av(),t=Km(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 N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:l},n):null,i)}const tv=N.createElement(ev,null);class nv extends N.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?N.createElement(cn.Provider,{value:this.props.routeContext},N.createElement(gf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function rv(e){let{routeContext:t,match:n,children:r}=e,l=N.useContext(ca);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(cn.Provider,{value:t},r)}function lv(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 s=i.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));s>=0||te(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,a,u)=>{let p=a.route.id?o==null?void 0:o[a.route.id]:null,m=null;n&&(m=a.route.errorElement||tv);let h=t.concat(i.slice(0,u+1)),g=()=>{let S;return p?S=m:a.route.Component?S=N.createElement(a.route.Component,null):a.route.element?S=a.route.element:S=s,N.createElement(rv,{match:a,routeContext:{outlet:s,matches:h,isDataRoute:n!=null},children:S})};return n&&(a.route.ErrorBoundary||a.route.errorElement||u===0)?N.createElement(nv,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):g()},null)}var wf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(wf||{}),ri=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}(ri||{});function iv(e){let t=N.useContext(ca);return t||te(!1),t}function ov(e){let t=N.useContext(vf);return t||te(!1),t}function sv(e){let t=N.useContext(cn);return t||te(!1),t}function kf(e){let t=sv(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function av(){var e;let t=N.useContext(gf),n=ov(ri.UseRouteError),r=kf(ri.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function uv(){let{router:e}=iv(wf.UseNavigateStable),t=kf(ri.UseNavigateStable),n=N.useRef(!1);return yf(()=>{n.current=!0}),N.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,ni({fromRouteId:t},i)))},[e,t])}function kt(e){te(!1)}function cv(e){let{basename:t="/",children:n=null,location:r,navigationType:l=jt.Pop,navigator:i,static:o=!1}=e;Qr()&&te(!1);let s=t.replace(/^\/*/,"/"),a=N.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Xn(r));let{pathname:u="/",search:p="",hash:m="",state:h=null,key:g="default"}=r,S=N.useMemo(()=>{let y=ua(u,s);return y==null?null:{location:{pathname:y,search:p,hash:m,state:h,key:g},navigationType:l}},[s,u,p,m,h,g,l]);return S==null?null:N.createElement(un.Provider,{value:a},N.createElement(Ci.Provider,{children:n,value:S}))}function dv(e){let{children:t,location:n}=e;return qm(os(t),n)}new Promise(()=>{});function os(e,t){t===void 0&&(t=[]);let n=[];return N.Children.forEach(e,(r,l)=>{if(!N.isValidElement(r))return;let i=[...t,l];if(r.type===N.Fragment){n.push.apply(n,os(r.props.children,i));return}r.type!==kt&&te(!1),!r.props.index||!r.props.children||te(!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=os(r.props.children,i)),n.push(o)}),n}/** + * React Router DOM v6.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function fv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pv(e,t){return e.button===0&&(!t||t==="_self")&&!fv(e)}const hv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],mv=["aria-current","caseSensitive","className","end","style","to","children"],vv="startTransition",Du=hp[vv];function gv(e){let{basename:t,children:n,future:r,window:l}=e,i=N.useRef();i.current==null&&(i.current=Nm({window:l,v5Compat:!0}));let o=i.current,[s,a]=N.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},p=N.useCallback(m=>{u&&Du?Du(()=>a(m)):a(m)},[a,u]);return N.useLayoutEffect(()=>o.listen(p),[o,p]),N.createElement(cv,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}const yv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Sv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wv=N.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:s,target:a,to:u,preventScrollReset:p}=t,m=xf(t,hv),{basename:h}=N.useContext(un),g,S=!1;if(typeof u=="string"&&Sv.test(u)&&(g=u,yv))try{let c=new URL(window.location.href),f=u.startsWith("//")?new URL(c.protocol+u):new URL(u),w=ua(f.pathname,h);f.origin===c.origin&&w!=null?u=w+f.search+f.hash:S=!0}catch{}let y=Jm(u,{relative:l}),P=xv(u,{replace:o,state:s,target:a,preventScrollReset:p,relative:l});function d(c){r&&r(c),c.defaultPrevented||P(c)}return N.createElement("a",li({},m,{href:g||y,onClick:S||i?r:d,ref:n,target:a}))}),kv=N.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:i="",end:o=!1,style:s,to:a,children:u}=t,p=xf(t,mv),m=da(a,{relative:p.relative}),h=Gr(),g=N.useContext(vf),{navigator:S}=N.useContext(un),y=S.encodeLocation?S.encodeLocation(m).pathname:m.pathname,P=h.pathname,d=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;l||(P=P.toLowerCase(),d=d?d.toLowerCase():null,y=y.toLowerCase());let c=P===y||!o&&P.startsWith(y)&&P.charAt(y.length)==="/",f=d!=null&&(d===y||!o&&d.startsWith(y)&&d.charAt(y.length)==="/"),w=c?r:void 0,k;typeof i=="function"?k=i({isActive:c,isPending:f}):k=[i,c?"active":null,f?"pending":null].filter(Boolean).join(" ");let x=typeof s=="function"?s({isActive:c,isPending:f}):s;return N.createElement(wv,li({},p,{"aria-current":w,className:k,ref:n,style:x,to:a}),typeof u=="function"?u({isActive:c,isPending:f}):u)});var Lu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Lu||(Lu={}));var Iu;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Iu||(Iu={}));function xv(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o}=t===void 0?{}:t,s=Sf(),a=Gr(),u=da(e,{relative:o});return N.useCallback(p=>{if(pv(p,n)){p.preventDefault();let m=r!==void 0?r:ti(a)===ti(u);s(e,{replace:m,state:l,preventScrollReset:i,relative:o})}},[a,s,u,r,l,n,e,i,o])}const Ef="/blackjack_probability",Cf="/blackjack_probability/about-us",Nf="/blackjack_probability/charts",_f="/blackjack_probability/terms",fa="/blackjack_probability/game",Pf="/blackjack_probability/customize",Ev="*",Cv=()=>{const e=Sf(),t=()=>{e(fa)},n=()=>{e(Pf)};return v.jsx("div",{className:"background",children:v.jsxs("div",{className:"titleHolder",children:[v.jsx("h1",{className:"title",children:"Blackjack Probability"}),v.jsx("p",{className:"info",children:"Ever wanted to learn how to become a true professional at Blackjack? Well click 'Play' below to get started!"}),v.jsxs("div",{className:"row",children:[v.jsx("button",{className:"btn-hover",onClick:t,children:"Play the Game"}),v.jsx("button",{className:"btn-hover",onClick:n,children:"Customize Table"})]})]})})};const Nv="/blackjack_probability/assets/CardsAndChips-891df8e4.svg",_v="/blackjack_probability/assets/PuzzleWall-d409c30e.svg",Pv="/blackjack_probability/assets/PiggyBank-fe8bea6a.svg",Rv="/blackjack_probability/assets/CardDecks-bb474b3e.svg",jv=()=>v.jsxs("div",{className:"container",children:[v.jsxs("div",{className:"subContainer",children:[v.jsx("p",{className:"titleText",children:"Learn How to Play!"}),v.jsx("img",{className:"image",src:Nv})]}),v.jsxs("div",{className:"subContainer",children:[v.jsx("img",{className:"image",src:Rv}),v.jsx("p",{className:"titleText",children:"Learn Basic Strategy!"})]}),v.jsxs("div",{className:"subContainer",children:[v.jsx("p",{className:"titleText",children:"See The Odds and Learn to Beat Them!"}),v.jsx("img",{className:"image",src:_v})]}),v.jsxs("div",{className:"subContainer",children:[v.jsx("img",{className:"image",src:Pv}),v.jsx("p",{className:"titleText",children:"Learn Without Spending a Dime!"})]})]}),Tv=()=>v.jsxs("div",{children:[v.jsx(Cv,{}),v.jsx(jv,{})]});var Ce=function(){return Ce=Object.assign||function(t){for(var n,r=1,l=arguments.length;r0?se(Jn,--We):0,Hn--,b===10&&(Hn=1,_i--),b}function Je(){return b=We2||as(b)>3?"":" "}function Fv(e,t){for(;--t&&Je()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return Ri(e,Rl()+(t<6&&qt()==32&&Je()==32))}function us(e){for(;Je();)switch(b){case e:return We;case 34:case 39:e!==34&&e!==39&&us(b);break;case 40:e===41&&us(e);break;case 92:Je();break}return We}function Hv(e,t){for(;Je()&&e+b!==47+10;)if(e+b===42+42&&qt()===47)break;return"/*"+Ri(t,We-1)+"*"+ha(e===47?e:Je())}function Wv(e){for(;!as(qt());)Je();return Ri(e,We)}function Yv(e){return Mv(jl("",null,null,null,[""],e=Uv(e),0,[0],e))}function jl(e,t,n,r,l,i,o,s,a){for(var u=0,p=0,m=o,h=0,g=0,S=0,y=1,P=1,d=1,c=0,f="",w=l,k=i,x=r,E=f;P;)switch(S=c,c=Je()){case 40:if(S!=108&&se(E,m-1)==58){Pl(E+=z(lo(c),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:E+=lo(c);break;case 9:case 10:case 13:case 32:E+=Bv(S);break;case 92:E+=Fv(Rl()-1,7);continue;case 47:switch(qt()){case 42:case 47:dr(Vv(Hv(Je(),Rl()),t,n,a),a);break;default:E+="/"}break;case 123*y:s[u++]=tt(E)*d;case 125*y:case 59:case 0:switch(c){case 0:case 125:P=0;case 59+p:d==-1&&(E=z(E,/\f/g,"")),g>0&&tt(E)-m&&dr(g>32?$u(E+";",r,n,m-1,a):$u(z(E," ","")+";",r,n,m-2,a),a);break;case 59:E+=";";default:if(dr(x=Ou(E,t,n,u,p,l,s,f,w=[],k=[],m,i),i),c===123)if(p===0)jl(E,t,x,x,w,i,m,s,k);else switch(h===99&&se(E,3)===110?100:h){case 100:case 108:case 109:case 115:jl(e,x,x,r&&dr(Ou(e,x,x,0,0,l,s,f,l,w=[],m,k),k),l,k,m,s,r?w:k);break;default:jl(E,x,x,x,[""],k,0,s,k)}}u=p=g=0,y=d=1,f=E="",m=o;break;case 58:m=1+tt(E),g=S;default:if(y<1){if(c==123)--y;else if(c==125&&y++==0&&Av()==125)continue}switch(E+=ha(c),c*y){case 38:d=p>0?1:(E+="\f",-1);break;case 44:s[u++]=(tt(E)-1)*d,d=1;break;case 64:qt()===45&&(E+=lo(Je())),h=qt(),p=m=tt(f=E+=Wv(Rl())),c++;break;case 45:S===45&&tt(E)==2&&(y=0)}}return i}function Ou(e,t,n,r,l,i,o,s,a,u,p,m){for(var h=l-1,g=l===0?i:[""],S=Df(g),y=0,P=0,d=0;y0?g[c]+" "+f:z(f,/&\f/g,g[c])))&&(a[d++]=w);return Pi(e,t,n,l===0?Ni:s,a,u,p,m)}function Vv(e,t,n,r){return Pi(e,t,n,Rf,ha($v()),Fn(e,2,-2),0,r)}function $u(e,t,n,r,l){return Pi(e,t,n,pa,Fn(e,0,r),Fn(e,r+1,-1),r,l)}function If(e,t,n){switch(zv(e,t)){case 5103:return A+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+e+e;case 4789:return kr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return A+e+kr+e+Y+e+e;case 5936:switch(se(e,t+11)){case 114:return A+e+Y+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return A+e+Y+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return A+e+Y+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return A+e+Y+e+e;case 6165:return A+e+Y+"flex-"+e+e;case 5187:return A+e+z(e,/(\w+).+(:[^]+)/,A+"box-$1$2"+Y+"flex-$1$2")+e;case 5443:return A+e+Y+"flex-item-"+z(e,/flex-|-self/g,"")+(at(e,/flex-|baseline/)?"":Y+"grid-row-"+z(e,/flex-|-self/g,""))+e;case 4675:return A+e+Y+"flex-line-pack"+z(e,/align-content|flex-|-self/g,"")+e;case 5548:return A+e+Y+z(e,"shrink","negative")+e;case 5292:return A+e+Y+z(e,"basis","preferred-size")+e;case 6060:return A+"box-"+z(e,"-grow","")+A+e+Y+z(e,"grow","positive")+e;case 4554:return A+z(e,/([^-])(transform)/g,"$1"+A+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+Y+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+e+e;case 4200:if(!at(e,/flex-|baseline/))return Y+"grid-column-align"+Fn(e,t)+e;break;case 2592:case 3360:return Y+z(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,l){return t=l,at(r.props,/grid-\w+-end/)})?~Pl(e+(n=n[t].value),"span")?e:Y+z(e,"-start","")+e+Y+"grid-row-span:"+(~Pl(n,"span")?at(n,/\d+/):+at(n,/\d+/)-+at(e,/\d+/))+";":Y+z(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return at(r.props,/grid-\w+-start/)})?e:Y+z(z(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,A+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tt(e)-1-t>6)switch(se(e,t+1)){case 109:if(se(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+kr+(se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Pl(e,"stretch")?If(z(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return z(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,l,i,o,s,a,u){return Y+l+":"+i+u+(o?Y+l+"-span:"+(s?a:+a-+i)+u:"")+e});case 4949:if(se(e,t+6)===121)return z(e,":",":"+A)+e;break;case 6444:switch(se(e,se(e,14)===45?18:11)){case 120:return z(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+A+(se(e,14)===45?"inline-":"")+"box$3$1"+A+"$2$3$1"+Y+"$2box$3")+e;case 100:return z(e,":",":"+Y)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return z(e,"scroll-","scroll-snap-")+e}return e}function oi(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case pa:e.return=If(e.value,e.length,n);return;case jf:return oi([xt(e,{value:z(e.value,"@","@"+A)})],r);case Ni:if(e.length)return Ov(n=e.props,function(l){switch(at(l,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pn(xt(e,{props:[z(l,/:(read-\w+)/,":"+kr+"$1")]})),pn(xt(e,{props:[l]})),ss(e,{props:zu(n,r)});break;case"::placeholder":pn(xt(e,{props:[z(l,/:(plac\w+)/,":"+A+"input-$1")]})),pn(xt(e,{props:[z(l,/:(plac\w+)/,":"+kr+"$1")]})),pn(xt(e,{props:[z(l,/:(plac\w+)/,Y+"input-$1")]})),pn(xt(e,{props:[l]})),ss(e,{props:zu(n,r)});break}return""})}}var Jv={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wn=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",ma=typeof window<"u"&&"HTMLElement"in window,Zv=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),ji=Object.freeze([]),Yn=Object.freeze({});function qv(e,t,n){return n===void 0&&(n=Yn),e.theme!==n.theme&&e.theme||t||n.theme}var zf=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),bv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eg=/(^-|-$)/g;function Au(e){return e.replace(bv,"-").replace(eg,"")}var tg=/(a)(d)/gi,Uu=function(e){return String.fromCharCode(e+(e>25?39:97))};function cs(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Uu(t%52)+n;return(Uu(t%52)+n).replace(tg,"$1-$2")}var io,Pn=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Of=function(e){return Pn(5381,e)};function ng(e){return cs(Of(e)>>>0)}function rg(e){return e.displayName||e.name||"Component"}function oo(e){return typeof e=="string"&&!0}var $f=typeof Symbol=="function"&&Symbol.for,Af=$f?Symbol.for("react.memo"):60115,lg=$f?Symbol.for("react.forward_ref"):60112,ig={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},og={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Uf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sg=((io={})[lg]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},io[Af]=Uf,io);function Mu(e){return("type"in(t=e)&&t.type.$$typeof)===Af?Uf:"$$typeof"in e?sg[e.$$typeof]:ig;var t}var ag=Object.defineProperty,ug=Object.getOwnPropertyNames,Bu=Object.getOwnPropertySymbols,cg=Object.getOwnPropertyDescriptor,dg=Object.getPrototypeOf,Fu=Object.prototype;function Mf(e,t,n){if(typeof t!="string"){if(Fu){var r=dg(t);r&&r!==Fu&&Mf(e,r,n)}var l=ug(t);Bu&&(l=l.concat(Bu(t)));for(var i=Mu(e),o=Mu(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var fg=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,l=r.length,i=l;t>=i;)if((i<<=1)<0)throw Kr(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=l;o=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],l=this.indexOfGroup(t),i=l+r,o=l;o=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(P+="".concat(d,","))}),a+="".concat(S).concat(y,'{content:"').concat(P,'"}').concat(`/*!sc*/ +`)},p=0;p0?".".concat(t):h},p=a.slice();p.push(function(h){h.type===Ni&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Eg,n).replace(r,u))}),o.prefix&&p.push(Xv),p.push(Qv);var m=function(h,g,S,y){g===void 0&&(g=""),S===void 0&&(S=""),y===void 0&&(y="&"),t=y,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var P=h.replace(Cg,""),d=Yv(S||g?"".concat(S," ").concat(g," { ").concat(P," }"):P);o.namespace&&(d=Hf(d,o.namespace));var c=[];return oi(d,Gv(p.concat(Kv(function(f){return c.push(f)})))),c};return m.hash=a.length?a.reduce(function(h,g){return g.name||Kr(15),Pn(h,g.name)},5381).toString():"",m}var _g=new Ff,fs=Ng(),Wf=en.createContext({shouldForwardProp:void 0,styleSheet:_g,stylis:fs});Wf.Consumer;en.createContext(void 0);function Yu(){return N.useContext(Wf)}var Pg=function(){function e(t,n){var r=this;this.inject=function(l,i){i===void 0&&(i=fs);var o=r.name+i.hash;l.hasNameForId(r.id,o)||l.insertRules(r.id,o,i(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ga(this,function(){throw Kr(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=fs),this.name+t.hash},e}(),Rg=function(e){return e>="A"&&e<="Z"};function Vu(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,o)){var s=r(i,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,s)}l=Xt(l,o),this.staticRulesId=o}else{for(var a=Pn(this.baseHash,r.hash),u="",p=0;p>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(u,".".concat(g),void 0,this.componentId)),l=Xt(l,g)}}return l},e}(),Qf=en.createContext(void 0);Qf.Consumer;var ao={};function Lg(e,t,n){var r=va(e),l=e,i=!oo(e),o=t.attrs,s=o===void 0?ji:o,a=t.componentId,u=a===void 0?function(f,w){var k=typeof f!="string"?"sc":Au(f);ao[k]=(ao[k]||0)+1;var x="".concat(k,"-").concat(ng("6.0.8"+k+ao[k]));return w?"".concat(w,"-").concat(x):x}(t.displayName,t.parentComponentId):a,p=t.displayName;p===void 0&&function(f){return oo(f)?"styled.".concat(f):"Styled(".concat(rg(f),")")}(e);var m=t.displayName&&t.componentId?"".concat(Au(t.displayName),"-").concat(t.componentId):t.componentId||u,h=r&&l.attrs?l.attrs.concat(s).filter(Boolean):s,g=t.shouldForwardProp;if(r&&l.shouldForwardProp){var S=l.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;g=function(f,w){return S(f,w)&&y(f,w)}}else g=S}var P=new Dg(n,m,r?l.componentStyle:void 0);function d(f,w){return function(k,x,E){var T=k.attrs,F=k.componentStyle,I=k.defaultProps,le=k.foldedComponentIds,it=k.styledComponentId,qe=k.target,dn=en.useContext(Qf),Zn=Yu(),ot=k.shouldForwardProp||Zn.shouldForwardProp,ke=function(ie,Re,yt){for(var je,$e=Ce(Ce({},Re),{className:void 0,theme:yt}),Ti=0;Tiv.jsx(v.Fragment,{children:v.jsxs(zg,{children:[v.jsx($g,{children:"The Gamblers Inc."}),v.jsxs(Og,{children:[v.jsx(or,{to:Ef,children:"Home"}),v.jsx(or,{to:fa,children:"Play the Game"}),v.jsx(or,{to:Cf,children:"About Us"}),v.jsx(or,{to:Nf,children:"Charts"}),v.jsx(or,{to:_f,children:"Terms"})]})]})}),Ug="/blackjack_probability/assets/Wireframe-a972ebe5.svg",Mg="/blackjack_probability/assets/CardFan2-7ec4e5d9.svg";const Bg=()=>v.jsx("div",{className:"container",children:v.jsxs("div",{className:"column",children:[v.jsxs("div",{className:"about-row",children:[v.jsx("div",{className:"column",children:v.jsxs("div",{className:"text-holder",children:[v.jsx("h1",{className:"about-header",children:"Who are we?"}),v.jsx("p",{className:"about-p",children:"We are a group of college students currently completing a course called Interface Design. We are a small group of four hoping to create an easy to use application for those wanting to delve deeper into the game of Blackjack."})]})}),v.jsx("img",{src:Ug})]}),v.jsxs("div",{className:"about-row",children:[v.jsx("img",{src:Mg}),v.jsx("div",{className:"column",children:v.jsxs("div",{className:"text-holder",children:[v.jsx("h1",{className:"about-header",children:"What is the purpose of this website?"}),v.jsx("p",{className:"about-p",children:"We believe there aren't many applications on the web suited for learning how to count cards easily. Most of the methods used today are charts that you must memorize for different true counts. We want to create a user-friendly website that allows people to learn these deviations without memorizing a set of tables."})]})})]})]})});const Fg="/blackjack_probability/assets/404Error-40e8e704.svg",Hg=()=>v.jsx("div",{className:"errorContainer",children:v.jsx("img",{src:Fg,className:"error-img"})});const Wg={data:[{label:"8",value:["H","H","H","H","H","H","H","H","H","H"]},{label:"9",value:["H","D","D","D","D","H","H","H","H","H"]},{label:"10",value:["D","D","D","D","D","D","D","D","H","H"]},{label:"11",value:["D","D","D","D","D","D","D","D","D","D"]},{label:"12",value:["H","H","S","S","S","H","H","H","H","H"]},{label:"13",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"14",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"15",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"16",value:["S","S","S","S","S","H","H","H","H","H"]},{label:"17",value:["S","S","S","S","S","S","S","S","S","S"]}],data2:[{label:"A/2",value:["H","H","H","D","D","H","H","H","H","H"]},{label:"A/3",value:["H","H","H","D","D","H","H","H","H","H"]},{label:"A/4",value:["H","H","D","D","D","H","H","H","H","H"]},{label:"A/5",value:["H","H","D","D","D","H","H","H","H","H"]},{label:"A/6",value:["H","D","D","D","D","H","H","H","H","H"]},{label:"A/7",value:["Ds","Ds","Ds","Ds","Ds","S","S","H","H","H"]},{label:"A/8",value:["S","S","S","S","Ds","S","S","S","S","S"]},{label:"A/9",value:["S","S","S","S","S","S","S","S","S","S"]}],data3:[{label:"A/A",value:["Y","Y","Y","Y","Y","Y","Y","Y","Y","Y"]},{label:"T/T",value:["N","N","N","N","N","N","N","N","N","N"]},{label:"9/9",value:["Y","Y","Y","Y","Y","N","Y","Y","N","N"]},{label:"8/8",value:["Y","Y","Y","Y","Y","Y","Y","Y","Y","Y"]},{label:"7/7",value:["Y","Y","Y","Y","Y","Y","N","N","N","N"]},{label:"6/6",value:["Y","Y","Y","Y","Y","N","N","N","N","N"]},{label:"5/5",value:["N","N","N","N","N","N","N","N","N","N"]},{label:"4/4",value:["N","N","N","Y","Y","N","N","N","N","N"]},{label:"3/3",value:["Y","Y","Y","Y","Y","Y","N","N","N","N"]},{label:"2/2",value:["Y","Y","Y","Y","Y","Y","N","N","N","N"]}]},Yg=["2","3","4","5","6","7","8","9","10","A"],Ku={chart1:Wg,dealerRow:Yg},Vg=()=>{const e=JSON.parse(JSON.stringify(Ku.chart1)),t=JSON.parse(JSON.stringify(Ku.dealerRow)),n=r=>{switch(r){case"H":return"green";case"S":return"red"}};return v.jsxs("div",{className:"table-container",children:[v.jsxs("table",{className:"chart-table",children:[v.jsxs("tr",{children:[v.jsx("th",{children:`Dealer's Card +Your Hand`}),t.map((r,l)=>v.jsx("th",{children:r},l))]}),e.data.map((r,l)=>v.jsxs("tr",{children:[v.jsx("th",{children:r.label}),r.value.map(i=>v.jsx("td",{style:{backgroundColor:n(i)},children:i}))]},l))]}),v.jsxs("table",{className:"chart-table",children:[v.jsxs("tr",{children:[v.jsx("th",{children:"Your Hand\\Dealer's Card"}),t.map((r,l)=>v.jsx("th",{children:r},l))]}),e.data2.map((r,l)=>v.jsxs("tr",{children:[v.jsx("th",{children:r.label}),r.value.map(i=>v.jsx("td",{style:{backgroundColor:n(i)},children:i}))]},l))]})]})};const Qg=()=>{const e=[{term:"Anchorman",definition:"When seated at the blackjack table, the last player to act before the dealer is called the Anchorman."},{term:"Bankroll",definition:"The money you have available to gamble with is called your bankroll. It would help if you did not confuse this with your total available cash - only count the portion you are willing to risk in a casino."},{term:"Blackjack",definition:"Blackjack is the name of the game, but also the perfect hand to receive - one ace and one ten or a picture card, making 21."},{term:"Burn Card",definition:"Before the dealer commences dealing, he places the first card to one side, face down. This is the burn card, designed to make it impossible for the first player to know what the first card is going to be (which would affect how he bets)."},{term:"Bust",definition:"Bust is a word you never wish to be applied to you. Bust means you have run out of money (it is not the end of the world if you lose your bankroll, so long as you did separate it from your day-to-day living funds)."},{term:"Cold Deck",definition:"If the shoe, the name applied to the box holding the cards, is spewing out awful cards and causing the players to lose too much, it is known as a cold deck, as opposed to the players running hot."},{term:"Color Up",definition:"If a player has lots of low denomination chips, he might ask the dealer to color up some of them, changing many small-value chips for higher-value ones."},{term:"Cut Card",definition:"When a new shoe, complete with shuffled cards, is introduced, the dealer asks one player to cut the deck with a cut card. The cut card then signals when action with that shoe finishes, and a new one is required."},{term:"Discards",definition:"All cards that have already been dealt are discards, which then sit idly to one side until a new shoe is needed, and they get reshuffled and re-used."},{term:"Double Down",definition:"If luck is on your side, you have a promising starting hand, and the dealer looks weak—time to double down and double your initial wager. If your hand holds up, you win twice as much as you would have done. However, if it loses… well, let’s not go there."},{term:"House Edge",definition:"The house edge is the expected advantage the house or casino has in a particular game. In blackjack, against players with a basic knowledge of blackjack strategy, the house edge is little over 1%. This means that on average, for every $100 you gamble, you’ll lose $1."},{term:"Flat Betting",definition:"When a player bets the same amount consistently, hand after hand, he is considered to be flat betting. It’s perfectly okay to flat bet, but just not very adventurous."},{term:"Hit",definition:"When you wish the dealer to give you another card, you hit."},{term:"Surrender/Late Surrender",definition:"In some variations of blackjack, you can surrender your hand without making any further decisions. You will receive only half of your stake back, but if your hand looks a dud, you potentially save some money."},{term:"Multi Deck",definition:"Most blackjack games in a casino have multi decks, rather than using one deck of cards. Many games will use six to eight decks at a time."},{term:"Pit",definition:"The table area you sit at for your blackjack game is called the pit, overseen by an often stern-looking casino employee called a pit boss."},{term:"Split",definition:"If you receive two cards of the same value, you have the option to split, matching your initial wager. Now you play two separate hands."},{term:"Stand",definition:"If you like your first two cards or have hit and taken another, you can choose to stand at any time, meaning you won’t take another."},{term:"Toke",definition:"Toke is a casino term for a tip. In bricks and mortar casino games, you don’t have to tip the staff, but they don’t get paid massive amounts, and it’s nice to show your appreciation once in a while."},{term:"Up Card",definition:"You only get to see one face-up card for the dealer while you are playing your hands. This is the up card, while his other card remains face down."}];return v.jsx("div",{className:"term-container",children:e.map((t,n)=>v.jsxs("div",{className:"term-row",children:[v.jsxs("h1",{className:"term-text",children:[t.term,":"]}),v.jsx("p",{className:"term-text",children:t.definition})]},n))})},Gg="_statusContainer_1dlho_1",Kg="_status_1dlho_1",Xg="_balance_1dlho_37",Jg="_value_1dlho_65",uo={statusContainer:Gg,status:Kg,balance:Xg,value:Jg},Zg="_controlsContainer_1wb3m_1",qg="_button_1wb3m_13",bg="_betContainer_1wb3m_73",hn={controlsContainer:Zg,button:qg,betContainer:bg},ey=({gameState:e,buttonState:t,playEvent:n,hitEvent:r,standEvent:l,resetEvent:i})=>{const o=()=>{n()},s=()=>e===0?v.jsx("div",{className:hn.controlsContainer,children:v.jsx("button",{onClick:()=>o(),className:hn.button,children:"Play"})}):v.jsxs("div",{className:hn.controlsContainer,children:[v.jsx("button",{onClick:()=>r(),disabled:t.hitDisabled,className:hn.button,children:"Hit"}),v.jsx("button",{onClick:()=>l(),disabled:t.standDisabled,className:hn.button,children:"Stand"}),v.jsx("button",{onClick:()=>i(),disabled:t.resetDisabled,className:hn.button,children:"Reset"})]});return v.jsx(v.Fragment,{children:s()})},ty=({message:e,gameState:t,buttonState:n,playGame:r,hit:l,stand:i,resetGame:o})=>v.jsx("div",{className:uo.statusContainer,children:v.jsxs("div",{className:uo.status,children:[v.jsx("h1",{className:uo.value,children:e}),v.jsx(ey,{gameState:t,buttonState:n,playEvent:r,hitEvent:l,standEvent:i,resetEvent:o})]})}),ny="_handContainer_1k3ef_1",ry="_cardContainer_1k3ef_19",ly="_title_1k3ef_39",co={handContainer:ny,cardContainer:ry,title:ly},iy="_card_1x2tl_1",oy="_baseStyleRed_1x2tl_25",sy="_baseStyleBlue_1x2tl_69",ay="_baseStyleGreen_1x2tl_113",uy="_baseStyleUnique_1x2tl_157",cy="_baseStyleUniqueAnimation_1x2tl_1",dy="_gradientStyleRed_1x2tl_225",fy="_gradientStyleBlue_1x2tl_251",py="_gradientStyleGreen_1x2tl_277",hy="_gradientStyleUnique_1x2tl_303",my="_gradientStyleUniqueAnimation_1x2tl_1",vy="_black_1x2tl_393",gy="_red_1x2tl_401",yy="_value_1x2tl_409",Sy="_suit_1x2tl_419",wy="_hiddenCard_1x2tl_443",he={card:iy,baseStyleRed:oy,baseStyleBlue:sy,baseStyleGreen:ay,baseStyleUnique:uy,baseStyleUniqueAnimation:cy,gradientStyleRed:dy,gradientStyleBlue:fy,gradientStyleGreen:py,gradientStyleUnique:hy,gradientStyleUniqueAnimation:my,black:vy,red:gy,value:yy,suit:Sy,hiddenCard:wy};var M=(e=>(e[e.RED=0]="RED",e[e.BLUE=1]="BLUE",e[e.GREEN=2]="GREEN",e[e.UNIQUE=3]="UNIQUE",e))(M||{}),q=(e=>(e[e.BASE=0]="BASE",e[e.GRADIENT=1]="GRADIENT",e))(q||{});const Kf=N.createContext({cardColor:0,setCardColor:()=>{},cardStyle:0,setCardStyle:()=>{}}),Xf=()=>N.useContext(Kf),Jf=({value:e,suit:t,hidden:n})=>{const{cardColor:r,cardStyle:l}=Xf(),i=()=>t==="♠"||t==="♣"?he.black:he.red,o=()=>{switch(l){case q.BASE:switch(r){case M.RED:return he.baseStyleRed;case M.BLUE:return he.baseStyleBlue;case M.GREEN:return he.baseStyleGreen;case M.UNIQUE:return he.baseStyleUnique;default:return he.baseStyleRed}case q.GRADIENT:switch(r){case M.RED:return he.gradientStyleRed;case M.BLUE:return he.gradientStyleBlue;case M.GREEN:return he.gradientStyleGreen;case M.UNIQUE:return he.gradientStyleUnique;default:return he.gradientStyleRed}default:return he.baseStyleRed}},s=()=>n?v.jsx("div",{className:o()}):v.jsx("div",{className:he.card,children:v.jsxs("div",{className:i(),children:[v.jsx("h1",{className:he.value,children:e}),v.jsx("h1",{className:he.suit,children:t})]})});return v.jsx(v.Fragment,{children:s()})},Xu=({title:e,cards:t})=>{const n=()=>{if(t.length>0)return v.jsx("h1",{className:co.title,children:e})};return v.jsxs("div",{className:co.handContainer,children:[n(),v.jsx("div",{className:t.length>0?co.cardContainer:"",children:t.map((r,l)=>v.jsx(Jf,{value:r.value,suit:r.suit,hidden:r.hidden},l))})]})},ky=[{value:"A",suit:"spades"},{value:"A",suit:"diamonds"},{value:"A",suit:"clubs"},{value:"A",suit:"hearts"},{value:"2",suit:"spades"},{value:"2",suit:"diamonds"},{value:"2",suit:"clubs"},{value:"2",suit:"hearts"},{value:"3",suit:"spades"},{value:"3",suit:"diamonds"},{value:"3",suit:"clubs"},{value:"3",suit:"hearts"},{value:"4",suit:"spades"},{value:"4",suit:"diamonds"},{value:"4",suit:"clubs"},{value:"4",suit:"hearts"},{value:"5",suit:"spades"},{value:"5",suit:"diamonds"},{value:"5",suit:"clubs"},{value:"5",suit:"hearts"},{value:"6",suit:"spades"},{value:"6",suit:"diamonds"},{value:"6",suit:"clubs"},{value:"6",suit:"hearts"},{value:"7",suit:"spades"},{value:"7",suit:"diamonds"},{value:"7",suit:"clubs"},{value:"7",suit:"hearts"},{value:"8",suit:"spades"},{value:"8",suit:"diamonds"},{value:"8",suit:"clubs"},{value:"8",suit:"hearts"},{value:"9",suit:"spades"},{value:"9",suit:"diamonds"},{value:"9",suit:"clubs"},{value:"9",suit:"hearts"},{value:"10",suit:"spades"},{value:"10",suit:"diamonds"},{value:"10",suit:"clubs"},{value:"10",suit:"hearts"},{value:"J",suit:"spades"},{value:"J",suit:"diamonds"},{value:"J",suit:"clubs"},{value:"J",suit:"hearts"},{value:"Q",suit:"spades"},{value:"Q",suit:"diamonds"},{value:"Q",suit:"clubs"},{value:"Q",suit:"hearts"},{value:"K",suit:"spades"},{value:"K",suit:"diamonds"},{value:"K",suit:"clubs"},{value:"K",suit:"hearts"}],xy={cards:ky},Ey="_gameBackground_1mo3b_1",Cy="_handSection_1mo3b_23",Ju={gameBackground:Ey,handSection:Cy},Ny=()=>{let e;(_=>{_[_.bet=0]="bet",_[_.init=1]="init",_[_.userTurn=2]="userTurn",_[_.dealerTurn=3]="dealerTurn"})(e||(e={}));let t;(_=>{_[_.user=0]="user",_[_.dealer=1]="dealer",_[_.hidden=2]="hidden"})(t||(t={}));let n;(_=>{_.bet="Press Play to Start!",_.hitStand="Hit or Stand?",_.bust="Bust!",_.blackjack="Blackjack!",_.userWin="You Win!",_.dealerWin="Dealer Wins!",_.tie="Tie!"})(n||(n={}));const r=JSON.parse(JSON.stringify(xy.cards)),[l,i]=N.useState(r),[o,s]=N.useState([]),[a,u]=N.useState(0),[p,m]=N.useState(0),[h,g]=N.useState([]),[S,y]=N.useState(0),[P,d]=N.useState(0),[c,f]=N.useState(0),[w,k]=N.useState("Press Play to Start!"),[x,E]=N.useState({hitDisabled:!1,standDisabled:!1,resetDisabled:!0});N.useEffect(()=>{c===1&&(I(0),I(2),I(0),I(1),f(2),k("Hit or Stand?"))},[c]),N.useEffect(()=>{qe(o,u),m(p+1)},[o]),N.useEffect(()=>{qe(h,y),d(P+1)},[h]),N.useEffect(()=>{c===2&&(a===21?o.length===2?ke():(x.hitDisabled=!0,E({...x})):a>21&&ot())},[p]),N.useEffect(()=>{c===3&&(S>=17?R():I(1))},[P]);const T=()=>{f(1)},F=()=>{console.clear(),i(r),s([]),u(0),m(0),g([]),y(0),d(0),f(0),k("Press Play to Start!"),E({hitDisabled:!1,standDisabled:!1,resetDisabled:!0})},I=_=>{if(l.length>0){const D=Math.floor(Math.random()*l.length),L=l[D];switch(l.splice(D,1),i([...l]),console.log("Remaining Cards:",l.length),L.suit){case"spades":le(_,L.value,"♠");break;case"diamonds":le(_,L.value,"♦");break;case"clubs":le(_,L.value,"♣");break;case"hearts":le(_,L.value,"♥");break}}else alert("All cards have been drawn")},le=(_,D,L)=>{switch(_){case 0:o.push({value:D,suit:L,hidden:!1}),s([...o]);break;case 1:h.push({value:D,suit:L,hidden:!1}),g([...h]);break;case 2:h.push({value:D,suit:L,hidden:!0}),g([...h]);break}},it=()=>{h.filter(_=>(_.hidden===!0&&(_.hidden=!1),_)),g([...h])},qe=(_,D)=>{let L=0;_.forEach(ie=>{if(ie.hidden===!1&&ie.value!=="A")switch(ie.value){case"K":L+=10;break;case"Q":L+=10;break;case"J":L+=10;break;default:L+=Number(ie.value);break}});const H=_.filter(ie=>ie.value==="A");H.forEach(ie=>{ie.hidden===!1&&(L+11>21||L+11===21&&H.length>1?L+=1:L+=11)}),D(L)},dn=()=>{I(0)},Zn=()=>{x.hitDisabled=!0,x.standDisabled=!0,x.resetDisabled=!1,E({...x}),f(3),it()},ot=()=>{x.hitDisabled=!0,x.standDisabled=!0,x.resetDisabled=!1,E({...x}),k("Bust!")},ke=()=>{x.hitDisabled=!0,x.standDisabled=!0,x.resetDisabled=!1,E({...x}),k("Blackjack!")},R=()=>{a>S||S>21?k("You Win!"):S>a?k("Dealer Wins!"):k("Tie!")};return v.jsxs("div",{className:Ju.gameBackground,children:[v.jsx(ty,{message:w,gameState:c,buttonState:x,playGame:T,hit:dn,stand:Zn,resetGame:F}),v.jsxs("div",{className:Ju.handSection,children:[v.jsx(Xu,{title:`Dealer's Hand (${S})`,cards:h}),v.jsx(Xu,{title:`Your Hand (${a})`,cards:o})]})]})};const _y=()=>{const{cardColor:e,setCardColor:t,cardStyle:n,setCardStyle:r}=Xf(),l=(o,s)=>e.valueOf()===o.valueOf()&&n.valueOf()===s.valueOf()?"buttonSelected":"button",i=(o,s)=>{t(o),r(s)};return v.jsxs("div",{className:"pageContainer",children:[v.jsx(Jf,{value:"A",suit:"spade",hidden:!0}),v.jsxs("div",{className:"buttonsContainer",children:[v.jsxs("div",{className:"buttonGroup",children:[v.jsx("h1",{children:"Base"}),v.jsx("button",{className:l(M.RED,q.BASE),onClick:()=>i(M.RED,q.BASE),children:"Red"}),v.jsx("button",{className:l(M.BLUE,q.BASE),onClick:()=>i(M.BLUE,q.BASE),children:"Blue"}),v.jsx("button",{className:l(M.GREEN,q.BASE),onClick:()=>i(M.GREEN,q.BASE),children:"Green"}),v.jsx("button",{className:l(M.UNIQUE,q.BASE),onClick:()=>i(M.UNIQUE,q.BASE),children:"Unique"})]}),v.jsxs("div",{className:"buttonGroup",children:[v.jsx("h1",{children:"Gradient"}),v.jsx("button",{className:l(M.RED,q.GRADIENT),onClick:()=>i(M.RED,q.GRADIENT),children:"Red"}),v.jsx("button",{className:l(M.BLUE,q.GRADIENT),onClick:()=>i(M.BLUE,q.GRADIENT),children:"Blue"}),v.jsx("button",{className:l(M.GREEN,q.GRADIENT),onClick:()=>i(M.GREEN,q.GRADIENT),children:"Green"}),v.jsx("button",{className:l(M.UNIQUE,q.GRADIENT),onClick:()=>i(M.UNIQUE,q.GRADIENT),children:"Unique"})]})]})]})},Py=()=>{const[e,t]=N.useState(M.RED),[n,r]=N.useState(q.BASE);return v.jsx("div",{className:"background-color",children:v.jsxs(Kf.Provider,{value:{cardColor:e,setCardColor:t,cardStyle:n,setCardStyle:r},children:[v.jsx(Ag,{}),v.jsxs(dv,{children:[v.jsx(kt,{path:Ef,element:v.jsx(Tv,{})}),v.jsx(kt,{path:Cf,element:v.jsx(Bg,{})}),v.jsx(kt,{path:Nf,element:v.jsx(Vg,{})}),v.jsx(kt,{path:_f,element:v.jsx(Qg,{})}),v.jsx(kt,{path:fa,element:v.jsx(Ny,{})}),v.jsx(kt,{path:Pf,element:v.jsx(_y,{})}),v.jsx(kt,{path:Ev,element:v.jsx(Hg,{})})]})]})})};fo.createRoot(document.getElementById("root")).render(v.jsx(en.StrictMode,{children:v.jsx(gv,{children:v.jsx(Py,{})})})); diff --git a/assets/index-fa33197f.css b/assets/index-b426cbf6.css similarity index 87% rename from assets/index-fa33197f.css rename to assets/index-b426cbf6.css index 9fdf8ed..ff6dca6 100644 --- a/assets/index-fa33197f.css +++ b/assets/index-b426cbf6.css @@ -1,4 +1,4 @@ -@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Lobster+Two:ital,wght@1,700&family=Source+Sans+3:wght@300&display=swap";.backgroundImageHolder{background-image:url(../assets/image/poker-cards.png);background-repeat:no-repeat;background-position:center}.background{background-image:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),url(/blackjack_probability/assets/blackjack-table-718e5917.jpg);background-position:center;background-repeat:no-repeat;background-color:#006400;background-size:contain;height:100vh;padding:15px}.row{display:flex;flex-direction:row;align-items:center}.pokerChipIcon{padding:15px;color:red}.pokerChipCurrency{font-size:30px;color:#fff}.info{font-size:30px;text-wrap:wrap;width:550px;padding:20px;color:#fff;text-align:center}.btn-hover{width:200px;font-size:16px;font-weight:600;color:#fff;cursor:pointer;margin:20px;height:55px;text-align:center;border:none;background-size:300% 100%;border-radius:50px;moz-transition:all .4s ease-in-out;-o-transition:all .4s ease-in-out;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out;background-image:linear-gradient(to right,#29323c,#485563,#2b5876,#4e4376);box-shadow:0 4px 15px #2d3641bf}.btn-hover:hover{background-position:100% 0;moz-transition:all .4s ease-in-out;-o-transition:all .4s ease-in-out;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out}.btn-hover:focus{outline:none}.titleHolder{flex-direction:column;display:flex;justify-content:center;align-items:center;height:90vh}.title{font-size:100px!important;margin:0;font-family:Lobster Two,cursive,"Sans Serif",sans-serif;background:linear-gradient(to right,hsl(57,92%,50%,.714) 0,hsl(0,0%,100%) 10%,hsla(57,92%,50%,.714) 20%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:shine 3s infinite linear}@keyframes shine{0%{background-position:-100px}60%{background-position:400px}60%{background-position:500px}to{background-position:750px}}.container{display:flex;flex-direction:column}.subContainer{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;padding:50px}.image{height:300px}.titleText{font-size:40px}img{height:350px;width:350px}.about-row{display:flex;flex-direction:row;width:100vw;justify-content:space-evenly;align-items:center;margin-bottom:10px}.column{display:flex;flex-direction:column}.about-header{font-size:36px}.about-p{font-size:20px}.text-holder{width:400px;text-align:center}.errorContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:50px}.error-img{height:500px;width:500px}.table-container{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;padding:50px}.chart-table{height:600px;width:500px;border:2px solid black;margin:20px;background-color:#000}.key-table{height:200px;width:300px;border:2px solid black}th,td{align-items:center;height:50px;width:50px;text-align:center;background-color:#fff}.floating-key{top:25vh;left:5vw;background-color:#000;position:fixed}.term-text{font-size:20px;width:800px}.term-row{display:flex;flex-direction:column;align-items:center;padding-top:25px;padding-bottom:25px}.term-container{display:flex;flex-direction:column;justify-content:center;align-items:center}._status_1dlho_1{height:80vh;width:20vw;display:flex;flex-direction:column;justify-content:space-between;margin:.5em .5em .5em 100px;padding:1em;background:black;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._balance_1dlho_37{display:flex;align-items:center;justify-content:center;margin:.5em 1em .5em .5em;padding:1em;width:20%;height:50px;background:black;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._value_1dlho_65{color:#fff;text-align:center}@media screen and (max-width: 992px){._value_1dlho_65{font-size:150%}}@media screen and (max-width: 600px){._value_1dlho_65{font-size:115%}}._controlsContainer_1wb3m_1{display:flex;justify-content:center;margin:.5em 1em 1em}._button_1wb3m_13{color:#fff;font-weight:700;margin:0 .5em;padding:1em;width:30%;background:black;outline:none;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;text-align:center;cursor:pointer}@media (hover: hover){._button_1wb3m_13:hover{color:#000;background:white;border:5px solid black}}._button_1wb3m_13:disabled{color:gray;background:rgb(60,60,60);border:5px solid gray}@media screen and (max-width: 992px){._betContainer_1wb3m_73{width:50%}}@media screen and (max-width: 600px){._betContainer_1wb3m_73{width:70%}._betContainer_1wb3m_73 h4{font-size:75%}._betContainer_1wb3m_73 input{font-size:125%}}._handContainer_1k3ef_1{color:#000;display:flex;align-items:center;flex-direction:column;margin:.5em;min-height:0}._cardContainer_1k3ef_19{display:flex;justify-content:center;flex-wrap:wrap;background-color:#000;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._title_1k3ef_39{text-align:center;margin-bottom:5px;margin-top:5px}@media screen and (max-width: 600px){._title_1k3ef_39{font-size:150%}}._card_1x2tl_1{width:130px;height:250px;margin:20px;padding:.5em 1.5em;background:rgb(230,230,230);border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleRed_1x2tl_25{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(176deg,#ffffff 8.33%,#ff0000 8.33%,#ff0000 50%,#ffffff 50%,#ffffff 58.33%,#ff0000 58.33%,#ff0000 100%);background-size:60px 4.2px;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleBlue_1x2tl_69{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(176deg,#ffffff 8.33%,#002aff 8.33%,#002aff 50%,#ffffff 50%,#ffffff 58.33%,#002aff 58.33%,#002aff 100%);background-size:60px 4.2px;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleGreen_1x2tl_113{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(176deg,#ffffff 8.33%,#06fb06 8.33%,#06fb06 50%,#ffffff 50%,#ffffff 58.33%,#06fb06 58.33%,#06fb06 100%);background-size:60px 4.2px;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleUnique_1x2tl_157{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-color:#3cc;animation:_baseStyleUniqueAnimation_1x2tl_1 9s infinite;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}@keyframes _baseStyleUniqueAnimation_1x2tl_1{0%{background:#33cccc}20%{background:#33cc36}40%{background:#b8cc33}60%{background:#fcca00}80%{background:#33cc36}to{background:#33cccc}}._gradientStyleRed_1x2tl_225{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-color:#fc8e8e;background-image:linear-gradient(62deg,#fc8e8e 0%,#fcc3c3 100%);border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._gradientStyleBlue_1x2tl_251{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-color:#8ec5fc;background-image:linear-gradient(62deg,#8ec5fc 0%,#e0c3fc 100%);border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._gradientStyleGreen_1x2tl_277{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-color:#8efc99;background-image:linear-gradient(62deg,#8efc99 0%,#c3fcda 100%);border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._gradientStyleUnique_1x2tl_303{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(to left,rgb(255,196,0),#ff357f 25%,#ff357f 75%,rgb(255,196,0) 100%);background-size:300% 300%;-webkit-animation:_gradientStyleUniqueAnimation_1x2tl_1 5s ease infinite;animation:_gradientStyleUniqueAnimation_1x2tl_1 5s ease infinite;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}@-webkit-keyframes _gradientStyleUniqueAnimation_1x2tl_1{0%{background-position:0% 50%}40%{background-position:100% 50%}60%{background-position:150% 100%}to{background-position:150% 150%}}@keyframes _gradientStyleUniqueAnimation_1x2tl_1{0%{background-position:0% 50%}25%{background-position:100% 50%}75%{background-position:150% 100%}to{background-position:150% 150%}}._black_1x2tl_393{color:#000}._red_1x2tl_401{color:red}._value_1x2tl_409{font-size:300%;margin-top:2px}._suit_1x2tl_419{font-size:450%;margin:0;text-align:center}@media screen and (max-width: 992px){._card_1x2tl_1{width:70px;height:180px}._hiddenCard_1x2tl_443{width:60px;height:170px}._value_1x2tl_409{font-size:300%}._suit_1x2tl_419{font-size:500%}}@media screen and (max-width: 600px){._card_1x2tl_1{width:45px;height:100px;padding:5px 10px}._hiddenCard_1x2tl_443{width:41px;height:96px;padding:5px 10px;border:2px solid white}._value_1x2tl_409{font-size:150%}._suit_1x2tl_419{font-size:250%}}._gameBackground_1mo3b_1{background-image:url(/blackjack_probability/assets/GF-ea58e0cd.jpg);background-size:cover;background-repeat:no-repeat;background-color:green;display:flex;flex-direction:row;justify-content:space-between;align-items:center}._handSection_1mo3b_23{display:flex;flex-direction:column;justify-content:center;align-items:center;width:80vw;min-height:100vh}.pageContainer{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;min-height:80vh;min-width:100vw}.buttonsContainer{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;min-width:80vw}.buttonGroup{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center}.button{transition-duration:.4s;width:150px;height:50px;background-color:#fff;color:#000;margin:10px}.button:hover{background-color:#000;color:#fff}.buttonSelected{transition-duration:.4s;width:150px;height:50px;background-color:#000;color:#fff;margin:10px}html,body{padding:0;margin:0}/*! +@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Lobster+Two:ital,wght@1,700&family=Source+Sans+3:wght@300&display=swap";.background-color{background:radial-gradient(rgb(51,48,48),#000000)}.backgroundImageHolder{background-image:url(../assets/image/poker-cards.png);background-repeat:no-repeat;background-position:center}.background{background-image:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),url(/blackjack_probability/assets/blackjack-table-718e5917.jpg);background-position:center;background-repeat:no-repeat;background-color:#fff;background-size:cover}.row{display:flex;flex-direction:row;align-items:center}.info{font-size:30px;text-wrap:wrap;width:550px;padding:20px;color:#fff;text-align:center}.btn-hover{width:200px;font-size:16px;font-weight:600;color:#fff;cursor:pointer;margin:20px;height:55px;text-align:center;border:none;background-size:300% 100%;border-radius:50px;moz-transition:all .4s ease-in-out;-o-transition:all .4s ease-in-out;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out;background-image:linear-gradient(to right,#29323c,#485563,#2b5876,#4e4376);box-shadow:0 4px 15px #2d3641bf}.btn-hover:hover{background-position:100% 0;moz-transition:all .4s ease-in-out;-o-transition:all .4s ease-in-out;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out}.btn-hover:focus{outline:none}.titleHolder{flex-direction:column;display:flex;justify-content:center;align-items:center;height:83vh}.title{font-size:100px!important;margin:0;font-family:Lobster Two,cursive,"Sans Serif",sans-serif;background:linear-gradient(to right,hsl(57,92%,50%,.714) 0,hsl(0,0%,100%) 10%,hsla(57,92%,50%,.714) 20%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:shine 3s infinite linear;text-wrap:wrap}@keyframes shine{0%{background-position:-100px}60%{background-position:400px}60%{background-position:500px}to{background-position:750px}}.container{display:flex;flex-direction:column;background:radial-gradient(rgb(51,48,48),#000000)}.subContainer{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;padding:50px}.image{height:300px}.titleText{font-size:40px;color:#fff}.container{background:radial-gradient(rgb(51,48,48),#000000)}img{height:350px;width:350px}.about-row{display:flex;flex-direction:row;width:100vw;justify-content:space-evenly;align-items:center;margin-bottom:10px}.column{display:flex;flex-direction:column}.about-header{font-size:36px}.about-p{font-size:20px}.text-holder{width:400px;text-align:center;color:#fff}.errorContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:50px}.error-img{height:500px;width:500px}.table-container{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;padding:50px;background:radial-gradient(rgb(51,48,48),#000000)}.chart-table{height:600px;width:500px;border:2px solid white;margin:20px;background-color:#fff}th,td{align-items:center;height:50px;width:50px;text-align:center;background-color:#000;color:#fff}.floating-key{top:25vh;left:5vw;background-color:#fff;position:fixed}.term-text{font-size:20px;width:800px;color:#fff}.term-row{display:flex;flex-direction:column;align-items:center;padding-top:25px;padding-bottom:25px}.term-container{display:flex;flex-direction:column;justify-content:center;align-items:center;background:radial-gradient(rgb(51,48,48),#000000)}._status_1dlho_1{height:80vh;width:20vw;display:flex;flex-direction:column;justify-content:space-between;margin:.5em .5em .5em 100px;padding:1em;background:black;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._balance_1dlho_37{display:flex;align-items:center;justify-content:center;margin:.5em 1em .5em .5em;padding:1em;width:20%;height:50px;background:black;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._value_1dlho_65{color:#fff;text-align:center}@media screen and (max-width: 992px){._value_1dlho_65{font-size:150%}}@media screen and (max-width: 600px){._value_1dlho_65{font-size:115%}}._controlsContainer_1wb3m_1{display:flex;justify-content:center;margin:.5em 1em 1em}._button_1wb3m_13{color:#fff;font-weight:700;margin:0 .5em;padding:1em;width:30%;background:black;outline:none;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;text-align:center;cursor:pointer}@media (hover: hover){._button_1wb3m_13:hover{color:#000;background:white;border:5px solid black}}._button_1wb3m_13:disabled{color:gray;background:rgb(60,60,60);border:5px solid gray}@media screen and (max-width: 992px){._betContainer_1wb3m_73{width:50%}}@media screen and (max-width: 600px){._betContainer_1wb3m_73{width:70%}._betContainer_1wb3m_73 h4{font-size:75%}._betContainer_1wb3m_73 input{font-size:125%}}._handContainer_1k3ef_1{color:#000;display:flex;align-items:center;flex-direction:column;margin:.5em;min-height:0}._cardContainer_1k3ef_19{display:flex;justify-content:center;flex-wrap:wrap;background-color:#000;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000}._title_1k3ef_39{text-align:center;margin-bottom:5px;margin-top:5px}@media screen and (max-width: 600px){._title_1k3ef_39{font-size:150%}}._card_1x2tl_1{width:130px;height:250px;margin:20px;padding:.5em 1.5em;background:rgb(230,230,230);border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleRed_1x2tl_25{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(176deg,#ffffff 8.33%,#ff0000 8.33%,#ff0000 50%,#ffffff 50%,#ffffff 58.33%,#ff0000 58.33%,#ff0000 100%);background-size:60px 4.2px;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleBlue_1x2tl_69{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(176deg,#ffffff 8.33%,#002aff 8.33%,#002aff 50%,#ffffff 50%,#ffffff 58.33%,#002aff 58.33%,#002aff 100%);background-size:60px 4.2px;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleGreen_1x2tl_113{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(176deg,#ffffff 8.33%,#06fb06 8.33%,#06fb06 50%,#ffffff 50%,#ffffff 58.33%,#06fb06 58.33%,#06fb06 100%);background-size:60px 4.2px;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._baseStyleUnique_1x2tl_157{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-color:#3cc;animation:_baseStyleUniqueAnimation_1x2tl_1 9s infinite;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}@keyframes _baseStyleUniqueAnimation_1x2tl_1{0%{background:#33cccc}20%{background:#33cc36}40%{background:#b8cc33}60%{background:#fcca00}80%{background:#33cc36}to{background:#33cccc}}._gradientStyleRed_1x2tl_225{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-color:#fc8e8e;background-image:linear-gradient(62deg,#fc8e8e 0%,#fcc3c3 100%);border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._gradientStyleBlue_1x2tl_251{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-color:#8ec5fc;background-image:linear-gradient(62deg,#8ec5fc 0%,#e0c3fc 100%);border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._gradientStyleGreen_1x2tl_277{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-color:#8efc99;background-image:linear-gradient(62deg,#8efc99 0%,#c3fcda 100%);border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}._gradientStyleUnique_1x2tl_303{width:125px;height:240px;margin:20px;padding:.5em 1.5em;background-image:linear-gradient(to left,rgb(255,196,0),#ff357f 25%,#ff357f 75%,rgb(255,196,0) 100%);background-size:300% 300%;-webkit-animation:_gradientStyleUniqueAnimation_1x2tl_1 5s ease infinite;animation:_gradientStyleUniqueAnimation_1x2tl_1 5s ease infinite;border:5px solid white;border-radius:15px;box-shadow:0 1px 10px #000;cursor:default}@-webkit-keyframes _gradientStyleUniqueAnimation_1x2tl_1{0%{background-position:0% 50%}40%{background-position:100% 50%}60%{background-position:150% 100%}to{background-position:150% 150%}}@keyframes _gradientStyleUniqueAnimation_1x2tl_1{0%{background-position:0% 50%}25%{background-position:100% 50%}75%{background-position:150% 100%}to{background-position:150% 150%}}._black_1x2tl_393{color:#000}._red_1x2tl_401{color:red}._value_1x2tl_409{font-size:300%;margin-top:2px}._suit_1x2tl_419{font-size:450%;margin:0;text-align:center}@media screen and (max-width: 992px){._card_1x2tl_1{width:70px;height:180px}._hiddenCard_1x2tl_443{width:60px;height:170px}._value_1x2tl_409{font-size:300%}._suit_1x2tl_419{font-size:500%}}@media screen and (max-width: 600px){._card_1x2tl_1{width:45px;height:100px;padding:5px 10px}._hiddenCard_1x2tl_443{width:41px;height:96px;padding:5px 10px;border:2px solid white}._value_1x2tl_409{font-size:150%}._suit_1x2tl_419{font-size:250%}}._gameBackground_1mo3b_1{background-image:url(/blackjack_probability/assets/GF-ea58e0cd.jpg);background-size:cover;background-repeat:no-repeat;background-color:green;display:flex;flex-direction:row;justify-content:space-between;align-items:center}._handSection_1mo3b_23{display:flex;flex-direction:column;justify-content:center;align-items:center;width:80vw;min-height:100vh}.pageContainer{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;min-height:80vh;min-width:100vw}.buttonsContainer{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;min-width:80vw}.buttonGroup{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center}.button{transition-duration:.4s;width:150px;height:50px;background-color:#fff;color:#000;margin:10px}.button:hover{background-color:#000;color:#fff}.buttonSelected{transition-duration:.4s;width:150px;height:50px;background-color:#000;color:#fff;margin:10px}html,body{padding:0;margin:0;background-color:#000}/*! * animate.css - https://animate.style/ * Version - 4.1.1 * Licensed under the MIT license - http://opensource.org/licenses/MIT diff --git a/index.html b/index.html index 18e15af..774ffaa 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Blackjack Probability - - + +