diff --git a/assets/index-Cdh3jGEq.js b/assets/index-cJFnZwkP.js similarity index 92% rename from assets/index-Cdh3jGEq.js rename to assets/index-cJFnZwkP.js index d091aa4..3433a53 100644 --- a/assets/index-Cdh3jGEq.js +++ b/assets/index-cJFnZwkP.js @@ -6,7 +6,7 @@ var Ja=e=>{throw TypeError(e)};var Ys=(e,t,n)=>t.has(e)||Ja("Cannot "+n);var y=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Yi=Symbol.for("react.element"),lm=Symbol.for("react.portal"),um=Symbol.for("react.fragment"),am=Symbol.for("react.strict_mode"),cm=Symbol.for("react.profiler"),fm=Symbol.for("react.provider"),dm=Symbol.for("react.context"),pm=Symbol.for("react.forward_ref"),hm=Symbol.for("react.suspense"),mm=Symbol.for("react.memo"),gm=Symbol.for("react.lazy"),Za=Symbol.iterator;function ym(e){return e===null||typeof e!="object"?null:(e=Za&&e[Za]||e["@@iterator"],typeof e=="function"?e:null)}var ed={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},td=Object.assign,nd={};function Vr(e,t,n){this.props=e,this.context=t,this.refs=nd,this.updater=n||ed}Vr.prototype.isReactComponent={};Vr.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")};Vr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rd(){}rd.prototype=Vr.prototype;function Hu(e,t,n){this.props=e,this.context=t,this.refs=nd,this.updater=n||ed}var Vu=Hu.prototype=new rd;Vu.constructor=Hu;td(Vu,Vr.prototype);Vu.isPureReactComponent=!0;var ec=Array.isArray,id=Object.prototype.hasOwnProperty,Ku={current:null},od={key:!0,ref:!0,__self:!0,__source:!0};function sd(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)id.call(t,r)&&!od.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1{throw TypeError(e)};var Ys=(e,t,n)=>t.has(e)||Ja("Cannot "+n);var y=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Om=_,Qe=Nm;function j(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"),_l=Object.prototype.hasOwnProperty,Im=/^[: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]*$/,nc={},rc={};function Tm(e){return _l.call(rc,e)?!0:_l.call(nc,e)?!1:Im.test(e)?rc[e]=!0:(nc[e]=!0,!1)}function Lm(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 $m(e,t,n,r){if(t===null||typeof t>"u"||Lm(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 Re(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new Re(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new Re(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new Re(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new Re(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){ye[e]=new Re(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new Re(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new Re(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new Re(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new Re(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yu=/[\-:]([a-z])/g;function bu(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(Yu,bu);ye[t]=new Re(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(Yu,bu);ye[t]=new Re(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(Yu,bu);ye[t]=new Re(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ye[e]=new Re(e,1,!1,e.toLowerCase(),null,!1,!1)});ye.xlinkHref=new Re("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ye[e]=new Re(e,1,!1,e.toLowerCase(),null,!0,!0)});function qu(e,t,n,r){var i=ye.hasOwnProperty(t)?ye[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_l=Object.prototype.hasOwnProperty,Im=/^[: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]*$/,nc={},rc={};function Tm(e){return _l.call(rc,e)?!0:_l.call(nc,e)?!1:Im.test(e)?rc[e]=!0:(nc[e]=!0,!1)}function Lm(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 $m(e,t,n,r){if(t===null||typeof t>"u"||Lm(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 Re(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new Re(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new Re(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new Re(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new Re(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){ye[e]=new Re(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new Re(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new Re(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new Re(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new Re(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yu=/[\-:]([a-z])/g;function bu(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(Yu,bu);ye[t]=new Re(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(Yu,bu);ye[t]=new Re(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(Yu,bu);ye[t]=new Re(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ye[e]=new Re(e,1,!1,e.toLowerCase(),null,!1,!1)});ye.xlinkHref=new Re("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ye[e]=new Re(e,1,!1,e.toLowerCase(),null,!0,!0)});function qu(e,t,n,r){var i=ye.hasOwnProperty(t)?ye[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var u=` -`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Xs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?si(e):""}function zm(e){switch(e.tag){case 5:return si(e.type);case 16:return si("Lazy");case 13:return si("Suspense");case 19:return si("SuspenseList");case 0:case 2:case 15:return e=Js(e.type,!1),e;case 11:return e=Js(e.type.render,!1),e;case 1:return e=Js(e.type,!0),e;default:return""}}function Il(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 tr:return"Fragment";case er:return"Portal";case Rl:return"Profiler";case Xu:return"StrictMode";case Nl:return"Suspense";case Ol:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hd:return(e.displayName||"Context")+".Consumer";case pd:return(e._context.displayName||"Context")+".Provider";case Ju:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zu:return t=e.displayName||null,t!==null?t:Il(e.type)||"Memo";case Ut:t=e._payload,e=e._init;try{return Il(e(t))}catch{}}return null}function Fm(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 Il(t);case 8:return t===Xu?"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 fn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mm(e){var t=gd(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lo(e){e._valueTracker||(e._valueTracker=Mm(e))}function yd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ho(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 Tl(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function oc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=fn(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 vd(e,t){t=t.checked,t!=null&&qu(e,"checked",t,!1)}function Ll(e,t){vd(e,t);var n=fn(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")?$l(e,t.type,n):t.hasOwnProperty("defaultValue")&&$l(e,t.type,fn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sc(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 $l(e,t,n){(t!=="number"||Ho(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var li=Array.isArray;function pr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=uo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ci(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var di={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},Dm=["Webkit","ms","Moz","O"];Object.keys(di).forEach(function(e){Dm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),di[t]=di[e]})});function kd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||di.hasOwnProperty(e)&&di[e]?(""+t).trim():t+"px"}function Cd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=kd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Am=te({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 Ml(e,t){if(t){if(Am[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Dl(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 Al=null;function ea(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ul=null,hr=null,mr=null;function ac(e){if(e=Xi(e)){if(typeof Ul!="function")throw Error(j(280));var t=e.stateNode;t&&(t=_s(t),Ul(e.stateNode,e.type,t))}}function Ed(e){hr?mr?mr.push(e):mr=[e]:hr=e}function Pd(){if(hr){var e=hr,t=mr;if(mr=hr=null,ac(e),t)for(e=0;e>>=0,e===0?32:31-(qm(e)/Xm|0)|0}var ao=64,co=4194304;function ui(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 Yo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=ui(l):(o&=s,o!==0&&(r=ui(o)))}else s=n&~i,s!==0?r=ui(s):o!==0&&(r=ui(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===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 bi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ut(t),e[t]=n}function tg(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=hi),vc=" ",wc=!1;function Vd(e,t){switch(e){case"keyup":return Ng.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nr=!1;function Ig(e,t){switch(e){case"compositionend":return Kd(t);case"keypress":return t.which!==32?null:(wc=!0,vc);case"textInput":return e=t.data,e===vc&&wc?null:e;default:return null}}function Tg(e,t){if(nr)return e==="compositionend"||!ua&&Vd(e,t)?(e=Wd(),Oo=oa=Xt=null,nr=!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=Cc(n)}}function qd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xd(){for(var e=window,t=Ho();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ho(e.document)}return t}function aa(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 Bg(e){var t=Xd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qd(n.ownerDocument.documentElement,n)){if(r!==null&&aa(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Ec(n,o);var s=Ec(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,rr=null,Kl=null,gi=null,Gl=!1;function Pc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gl||rr==null||rr!==Ho(r)||(r=rr,"selectionStart"in r&&aa(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}),gi&&Ni(gi,r)||(gi=r,r=Xo(Kl,"onSelect"),0sr||(e.current=Zl[sr],Zl[sr]=null,sr--)}function Y(e,t){sr++,Zl[sr]=e.current,e.current=t}var dn={},ke=hn(dn),Le=hn(!1),An=dn;function $r(e,t){var n=e.type.contextTypes;if(!n)return dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function $e(e){return e=e.childContextTypes,e!=null}function Zo(){X(Le),X(ke)}function Tc(e,t,n){if(ke.current!==dn)throw Error(j(168));Y(ke,t),Y(Le,n)}function sp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(j(108,Fm(e)||"Unknown",i));return te({},n,r)}function es(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dn,An=ke.current,Y(ke,e),Y(Le,Le.current),!0}function Lc(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=sp(e,t,An),r.__reactInternalMemoizedMergedChildContext=e,X(Le),X(ke),Y(ke,e)):X(Le),Y(Le,n)}var jt=null,Rs=!1,dl=!1;function lp(e){jt===null?jt=[e]:jt.push(e)}function Zg(e){Rs=!0,lp(e)}function mn(){if(!dl&&jt!==null){dl=!0;var e=0,t=V;try{var n=jt;for(V=1;e>=s,i-=s,_t=1<<32-ut(t)+i|n<R?($=C,C=null):$=C.sibling;var F=m(h,C,p[R],S);if(F===null){C===null&&(C=$);break}e&&C&&F.alternate===null&&t(h,C),f=o(F,f,R),P===null?E=F:P.sibling=F,P=F,C=$}if(R===p.length)return n(h,C),J&&Sn(h,R),E;if(C===null){for(;RR?($=C,C=null):$=C.sibling;var oe=m(h,C,F.value,S);if(oe===null){C===null&&(C=$);break}e&&C&&oe.alternate===null&&t(h,C),f=o(oe,f,R),P===null?E=oe:P.sibling=oe,P=oe,C=$}if(F.done)return n(h,C),J&&Sn(h,R),E;if(C===null){for(;!F.done;R++,F=p.next())F=c(h,F.value,S),F!==null&&(f=o(F,f,R),P===null?E=F:P.sibling=F,P=F);return J&&Sn(h,R),E}for(C=r(h,C);!F.done;R++,F=p.next())F=w(C,h,R,F.value,S),F!==null&&(e&&F.alternate!==null&&C.delete(F.key===null?R:F.key),f=o(F,f,R),P===null?E=F:P.sibling=F,P=F);return e&&C.forEach(function(Ve){return t(h,Ve)}),J&&Sn(h,R),E}function k(h,f,p,S){if(typeof p=="object"&&p!==null&&p.type===tr&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case so:e:{for(var E=p.key,P=f;P!==null;){if(P.key===E){if(E=p.type,E===tr){if(P.tag===7){n(h,P.sibling),f=i(P,p.props.children),f.return=h,h=f;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ut&&Fc(E)===P.type){n(h,P.sibling),f=i(P,p.props),f.ref=ri(h,P,p),f.return=h,h=f;break e}n(h,P);break}else t(h,P);P=P.sibling}p.type===tr?(f=Fn(p.props.children,h.mode,S,p.key),f.return=h,h=f):(S=Do(p.type,p.key,p.props,null,h.mode,S),S.ref=ri(h,f,p),S.return=h,h=S)}return s(h);case er:e:{for(P=p.key;f!==null;){if(f.key===P)if(f.tag===4&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){n(h,f.sibling),f=i(f,p.children||[]),f.return=h,h=f;break e}else{n(h,f);break}else t(h,f);f=f.sibling}f=xl(p,h.mode,S),f.return=h,h=f}return s(h);case Ut:return P=p._init,k(h,f,P(p._payload),S)}if(li(p))return x(h,f,p,S);if(Jr(p))return v(h,f,p,S);vo(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,f!==null&&f.tag===6?(n(h,f.sibling),f=i(f,p),f.return=h,h=f):(n(h,f),f=wl(p,h.mode,S),f.return=h,h=f),s(h)):n(h,f)}return k}var Fr=fp(!0),dp=fp(!1),rs=hn(null),is=null,ar=null,pa=null;function ha(){pa=ar=is=null}function ma(e){var t=rs.current;X(rs),e._currentValue=t}function nu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yr(e,t){is=e,pa=ar=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ie=!0),e.firstContext=null)}function Je(e){var t=e._currentValue;if(pa!==e)if(e={context:e,memoizedValue:t,next:null},ar===null){if(is===null)throw Error(j(308));ar=e,is.dependencies={lanes:0,firstContext:e}}else ar=ar.next=e;return t}var Pn=null;function ga(e){Pn===null?Pn=[e]:Pn.push(e)}function pp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ga(t)):(n.next=i.next,i.next=n),t.interleaved=n,Tt(e,r)}function Tt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Bt=!1;function ya(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function on(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Tt(e,n)}return i=r.interleaved,i===null?(t.next=t,ga(r)):(t.next=i.next,i.next=t),r.interleaved=t,Tt(e,n)}function To(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,na(e,n)}}function Mc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function os(e,t,n,r){var i=e.updateQueue;Bt=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,a=u.next;u.next=null,s===null?o=a:s.next=a,s=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=a:l.next=a,d.lastBaseUpdate=u))}if(o!==null){var c=i.baseState;s=0,d=a=u=null,l=o;do{var m=l.lane,w=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,v=l;switch(m=t,w=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){c=x.call(w,c,m);break e}c=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,m=typeof x=="function"?x.call(w,c,m):x,m==null)break e;c=te({},c,m);break e;case 2:Bt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else w={eventTime:w,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(a=d=w,u=c):d=d.next=w,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(d===null&&(u=c),i.baseState=u,i.firstBaseUpdate=a,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Qn|=s,e.lanes=s,e.memoizedState=c}}function Dc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=hl.transition;hl.transition={};try{e(!1),t()}finally{V=n,hl.transition=r}}function Ip(){return Ze().memoizedState}function r0(e,t,n){var r=ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Tp(e))Lp(t,n);else if(n=pp(e,t,n,r),n!==null){var i=je();at(n,e,r,i),$p(n,t,r)}}function i0(e,t,n){var r=ln(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tp(e))Lp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,ft(l,s)){var u=t.interleaved;u===null?(i.next=i,ga(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=pp(e,t,i,r),n!==null&&(i=je(),at(n,e,r,i),$p(n,t,r))}}function Tp(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function Lp(e,t){yi=ls=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $p(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,na(e,n)}}var us={readContext:Je,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},o0={readContext:Je,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:Uc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$o(4194308,4,jp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $o(4194308,4,e,t)},useInsertionEffect:function(e,t){return $o(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();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=r0.bind(null,ee,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:Ac,useDebugValue:Pa,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=Ac(!1),t=e[0];return e=n0.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ee,i=pt();if(J){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),pe===null)throw Error(j(349));Bn&30||vp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Uc(xp.bind(null,r,o,e),[e]),r.flags|=2048,Mi(9,wp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=pt(),t=pe.identifierPrefix;if(J){var n=Rt,r=_t;n=(r&~(1<<32-ut(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=zi++,0")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Xs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?si(e):""}function zm(e){switch(e.tag){case 5:return si(e.type);case 16:return si("Lazy");case 13:return si("Suspense");case 19:return si("SuspenseList");case 0:case 2:case 15:return e=Js(e.type,!1),e;case 11:return e=Js(e.type.render,!1),e;case 1:return e=Js(e.type,!0),e;default:return""}}function Il(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 nr:return"Fragment";case tr:return"Portal";case Rl:return"Profiler";case Xu:return"StrictMode";case Nl:return"Suspense";case Ol:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hd:return(e.displayName||"Context")+".Consumer";case pd:return(e._context.displayName||"Context")+".Provider";case Ju:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zu:return t=e.displayName||null,t!==null?t:Il(e.type)||"Memo";case Ut:t=e._payload,e=e._init;try{return Il(e(t))}catch{}}return null}function Fm(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 Il(t);case 8:return t===Xu?"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 fn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mm(e){var t=gd(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lo(e){e._valueTracker||(e._valueTracker=Mm(e))}function yd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ho(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 Tl(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function oc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=fn(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 vd(e,t){t=t.checked,t!=null&&qu(e,"checked",t,!1)}function Ll(e,t){vd(e,t);var n=fn(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")?$l(e,t.type,n):t.hasOwnProperty("defaultValue")&&$l(e,t.type,fn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sc(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 $l(e,t,n){(t!=="number"||Ho(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var li=Array.isArray;function hr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=uo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ci(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var di={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},Dm=["Webkit","ms","Moz","O"];Object.keys(di).forEach(function(e){Dm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),di[t]=di[e]})});function kd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||di.hasOwnProperty(e)&&di[e]?(""+t).trim():t+"px"}function Cd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=kd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Am=te({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 Ml(e,t){if(t){if(Am[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Dl(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 Al=null;function ea(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ul=null,mr=null,gr=null;function ac(e){if(e=Xi(e)){if(typeof Ul!="function")throw Error(j(280));var t=e.stateNode;t&&(t=_s(t),Ul(e.stateNode,e.type,t))}}function Ed(e){mr?gr?gr.push(e):gr=[e]:mr=e}function Pd(){if(mr){var e=mr,t=gr;if(gr=mr=null,ac(e),t)for(e=0;e>>=0,e===0?32:31-(qm(e)/Xm|0)|0}var ao=64,co=4194304;function ui(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 Yo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=ui(l):(o&=s,o!==0&&(r=ui(o)))}else s=n&~i,s!==0?r=ui(s):o!==0&&(r=ui(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===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 bi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ut(t),e[t]=n}function tg(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=hi),vc=" ",wc=!1;function Vd(e,t){switch(e){case"keyup":return Ng.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rr=!1;function Ig(e,t){switch(e){case"compositionend":return Kd(t);case"keypress":return t.which!==32?null:(wc=!0,vc);case"textInput":return e=t.data,e===vc&&wc?null:e;default:return null}}function Tg(e,t){if(rr)return e==="compositionend"||!ua&&Vd(e,t)?(e=Wd(),Oo=oa=Xt=null,rr=!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=Cc(n)}}function qd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xd(){for(var e=window,t=Ho();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ho(e.document)}return t}function aa(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 Bg(e){var t=Xd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qd(n.ownerDocument.documentElement,n)){if(r!==null&&aa(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Ec(n,o);var s=Ec(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,ir=null,Kl=null,gi=null,Gl=!1;function Pc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gl||ir==null||ir!==Ho(r)||(r=ir,"selectionStart"in r&&aa(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}),gi&&Ni(gi,r)||(gi=r,r=Xo(Kl,"onSelect"),0lr||(e.current=Zl[lr],Zl[lr]=null,lr--)}function Y(e,t){lr++,Zl[lr]=e.current,e.current=t}var dn={},ke=hn(dn),Le=hn(!1),An=dn;function zr(e,t){var n=e.type.contextTypes;if(!n)return dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function $e(e){return e=e.childContextTypes,e!=null}function Zo(){X(Le),X(ke)}function Tc(e,t,n){if(ke.current!==dn)throw Error(j(168));Y(ke,t),Y(Le,n)}function sp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(j(108,Fm(e)||"Unknown",i));return te({},n,r)}function es(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dn,An=ke.current,Y(ke,e),Y(Le,Le.current),!0}function Lc(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=sp(e,t,An),r.__reactInternalMemoizedMergedChildContext=e,X(Le),X(ke),Y(ke,e)):X(Le),Y(Le,n)}var jt=null,Rs=!1,dl=!1;function lp(e){jt===null?jt=[e]:jt.push(e)}function Zg(e){Rs=!0,lp(e)}function mn(){if(!dl&&jt!==null){dl=!0;var e=0,t=V;try{var n=jt;for(V=1;e>=s,i-=s,_t=1<<32-ut(t)+i|n<R?($=C,C=null):$=C.sibling;var F=m(h,C,p[R],S);if(F===null){C===null&&(C=$);break}e&&C&&F.alternate===null&&t(h,C),f=o(F,f,R),P===null?E=F:P.sibling=F,P=F,C=$}if(R===p.length)return n(h,C),J&&Sn(h,R),E;if(C===null){for(;RR?($=C,C=null):$=C.sibling;var oe=m(h,C,F.value,S);if(oe===null){C===null&&(C=$);break}e&&C&&oe.alternate===null&&t(h,C),f=o(oe,f,R),P===null?E=oe:P.sibling=oe,P=oe,C=$}if(F.done)return n(h,C),J&&Sn(h,R),E;if(C===null){for(;!F.done;R++,F=p.next())F=c(h,F.value,S),F!==null&&(f=o(F,f,R),P===null?E=F:P.sibling=F,P=F);return J&&Sn(h,R),E}for(C=r(h,C);!F.done;R++,F=p.next())F=w(C,h,R,F.value,S),F!==null&&(e&&F.alternate!==null&&C.delete(F.key===null?R:F.key),f=o(F,f,R),P===null?E=F:P.sibling=F,P=F);return e&&C.forEach(function(Ve){return t(h,Ve)}),J&&Sn(h,R),E}function k(h,f,p,S){if(typeof p=="object"&&p!==null&&p.type===nr&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case so:e:{for(var E=p.key,P=f;P!==null;){if(P.key===E){if(E=p.type,E===nr){if(P.tag===7){n(h,P.sibling),f=i(P,p.props.children),f.return=h,h=f;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ut&&Fc(E)===P.type){n(h,P.sibling),f=i(P,p.props),f.ref=ri(h,P,p),f.return=h,h=f;break e}n(h,P);break}else t(h,P);P=P.sibling}p.type===nr?(f=Fn(p.props.children,h.mode,S,p.key),f.return=h,h=f):(S=Do(p.type,p.key,p.props,null,h.mode,S),S.ref=ri(h,f,p),S.return=h,h=S)}return s(h);case tr:e:{for(P=p.key;f!==null;){if(f.key===P)if(f.tag===4&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){n(h,f.sibling),f=i(f,p.children||[]),f.return=h,h=f;break e}else{n(h,f);break}else t(h,f);f=f.sibling}f=xl(p,h.mode,S),f.return=h,h=f}return s(h);case Ut:return P=p._init,k(h,f,P(p._payload),S)}if(li(p))return x(h,f,p,S);if(Jr(p))return v(h,f,p,S);vo(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,f!==null&&f.tag===6?(n(h,f.sibling),f=i(f,p),f.return=h,h=f):(n(h,f),f=wl(p,h.mode,S),f.return=h,h=f),s(h)):n(h,f)}return k}var Mr=fp(!0),dp=fp(!1),rs=hn(null),is=null,cr=null,pa=null;function ha(){pa=cr=is=null}function ma(e){var t=rs.current;X(rs),e._currentValue=t}function nu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function vr(e,t){is=e,pa=cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ie=!0),e.firstContext=null)}function Je(e){var t=e._currentValue;if(pa!==e)if(e={context:e,memoizedValue:t,next:null},cr===null){if(is===null)throw Error(j(308));cr=e,is.dependencies={lanes:0,firstContext:e}}else cr=cr.next=e;return t}var Pn=null;function ga(e){Pn===null?Pn=[e]:Pn.push(e)}function pp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ga(t)):(n.next=i.next,i.next=n),t.interleaved=n,Tt(e,r)}function Tt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Bt=!1;function ya(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function on(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Tt(e,n)}return i=r.interleaved,i===null?(t.next=t,ga(r)):(t.next=i.next,i.next=t),r.interleaved=t,Tt(e,n)}function To(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,na(e,n)}}function Mc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function os(e,t,n,r){var i=e.updateQueue;Bt=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,a=u.next;u.next=null,s===null?o=a:s.next=a,s=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=a:l.next=a,d.lastBaseUpdate=u))}if(o!==null){var c=i.baseState;s=0,d=a=u=null,l=o;do{var m=l.lane,w=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,v=l;switch(m=t,w=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){c=x.call(w,c,m);break e}c=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,m=typeof x=="function"?x.call(w,c,m):x,m==null)break e;c=te({},c,m);break e;case 2:Bt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else w={eventTime:w,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(a=d=w,u=c):d=d.next=w,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(d===null&&(u=c),i.baseState=u,i.firstBaseUpdate=a,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Qn|=s,e.lanes=s,e.memoizedState=c}}function Dc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=hl.transition;hl.transition={};try{e(!1),t()}finally{V=n,hl.transition=r}}function Ip(){return Ze().memoizedState}function r0(e,t,n){var r=ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Tp(e))Lp(t,n);else if(n=pp(e,t,n,r),n!==null){var i=je();at(n,e,r,i),$p(n,t,r)}}function i0(e,t,n){var r=ln(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tp(e))Lp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,ft(l,s)){var u=t.interleaved;u===null?(i.next=i,ga(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=pp(e,t,i,r),n!==null&&(i=je(),at(n,e,r,i),$p(n,t,r))}}function Tp(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function Lp(e,t){yi=ls=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $p(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,na(e,n)}}var us={readContext:Je,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},o0={readContext:Je,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:Uc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$o(4194308,4,jp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $o(4194308,4,e,t)},useInsertionEffect:function(e,t){return $o(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();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=r0.bind(null,ee,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:Ac,useDebugValue:Pa,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=Ac(!1),t=e[0];return e=n0.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ee,i=pt();if(J){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),pe===null)throw Error(j(349));Bn&30||vp(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Uc(xp.bind(null,r,o,e),[e]),r.flags|=2048,Mi(9,wp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=pt(),t=pe.identifierPrefix;if(J){var n=Rt,r=_t;n=(r&~(1<<32-ut(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=zi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[wt]=t,e[Ti]=r,Hp(e,t,!1,!1),t.stateNode=e;e:{switch(s=Dl(n,r),n){case"dialog":b("cancel",e),b("close",e),i=r;break;case"iframe":case"object":case"embed":b("load",e),i=r;break;case"video":case"audio":for(i=0;iAr&&(t.flags|=128,r=!0,ii(o,!1),t.lanes=4194304)}else{if(!r)if(e=ss(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ii(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!J)return we(t),null}else 2*ie()-o.renderingStartTime>Ar&&n!==1073741824&&(t.flags|=128,r=!0,ii(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ie(),t.sibling=null,n=Z.current,Y(Z,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return Ia(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ae&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function p0(e,t){switch(fa(t),t.tag){case 1:return $e(t.type)&&Zo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mr(),X(Le),X(ke),xa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wa(t),null;case 13:if(X(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Z),null;case 4:return Mr(),null;case 10:return ma(t.type._context),null;case 22:case 23:return Ia(),null;case 24:return null;default:return null}}var xo=!1,Se=!1,h0=typeof WeakSet=="function"?WeakSet:Set,O=null;function cr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function fu(e,t,n){try{n()}catch(r){re(e,t,r)}}var Xc=!1;function m0(e,t){if(Yl=bo,e=Xd(),aa(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,a=0,d=0,c=e,m=null;t:for(;;){for(var w;c!==n||i!==0&&c.nodeType!==3||(l=s+i),c!==o||r!==0&&c.nodeType!==3||(u=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(w=c.firstChild)!==null;)m=c,c=w;for(;;){if(c===e)break t;if(m===n&&++a===i&&(l=s),m===o&&++d===r&&(u=s),(w=c.nextSibling)!==null)break;c=m,m=c.parentNode}c=w}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(bl={focusedElem:e,selectionRange:n},bo=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,k=x.memoizedState,h=t.stateNode,f=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:rt(t.type,v),k);h.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(S){re(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return x=Xc,Xc=!1,x}function vi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&fu(t,n,o)}i=i.next}while(i!==r)}}function Is(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 du(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 Gp(e){var t=e.alternate;t!==null&&(e.alternate=null,Gp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wt],delete t[Ti],delete t[Jl],delete t[Xg],delete t[Jg])),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 Yp(e){return e.tag===5||e.tag===3||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yp(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 pu(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=Jo));else if(r!==4&&(e=e.child,e!==null))for(pu(e,t,n),e=e.sibling;e!==null;)pu(e,t,n),e=e.sibling}function hu(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(hu(e,t,n),e=e.sibling;e!==null;)hu(e,t,n),e=e.sibling}var he=null,ot=!1;function Mt(e,t,n){for(n=n.child;n!==null;)bp(e,t,n),n=n.sibling}function bp(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Cs,n)}catch{}switch(n.tag){case 5:Se||cr(n,t);case 6:var r=he,i=ot;he=null,Mt(e,t,n),he=r,ot=i,he!==null&&(ot?(e=he,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):he.removeChild(n.stateNode));break;case 18:he!==null&&(ot?(e=he,n=n.stateNode,e.nodeType===8?fl(e.parentNode,n):e.nodeType===1&&fl(e,n),_i(e)):fl(he,n.stateNode));break;case 4:r=he,i=ot,he=n.stateNode.containerInfo,ot=!0,Mt(e,t,n),he=r,ot=i;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&fu(n,t,s),i=i.next}while(i!==r)}Mt(e,t,n);break;case 1:if(!Se&&(cr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){re(n,t,l)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Mt(e,t,n),Se=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function Zc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new h0),t.forEach(function(r){var i=E0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*y0(r/1960))-r,10e?16:e,Jt===null)var r=!1;else{if(e=Jt,Jt=null,fs=0,Q&6)throw Error(j(331));var i=Q;for(Q|=4,O=e.current;O!==null;){var o=O,s=o.child;if(O.flags&16){var l=o.deletions;if(l!==null){for(var u=0;uie()-Na?zn(e,0):Ra|=n),ze(e,t)}function rh(e,t){t===0&&(e.mode&1?(t=co,co<<=1,!(co&130023424)&&(co=4194304)):t=1);var n=je();e=Tt(e,t),e!==null&&(bi(e,t,n),ze(e,n))}function C0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rh(e,n)}function E0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),rh(e,n)}var ih;ih=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)Ie=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ie=!1,f0(e,t,n);Ie=!!(e.flags&131072)}else Ie=!1,J&&t.flags&1048576&&up(t,ns,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zo(e,t),e=t.pendingProps;var i=$r(t,ke.current);yr(t,n),i=ka(null,t,r,e,i,n);var o=Ca();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$e(r)?(o=!0,es(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ya(t),i.updater=Os,t.stateNode=i,i._reactInternals=t,iu(t,r,e,n),t=lu(null,t,r,!0,o,n)):(t.tag=0,J&&o&&ca(t),Pe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=j0(r),e=rt(r,e),i){case 0:t=su(null,t,r,e,n);break e;case 1:t=Yc(null,t,r,e,n);break e;case 11:t=Kc(null,t,r,e,n);break e;case 14:t=Gc(null,t,r,rt(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),su(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Yc(e,t,r,i,n);case 3:e:{if(Bp(t),e===null)throw Error(j(387));r=t.pendingProps,o=t.memoizedState,i=o.element,hp(e,t),os(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Dr(Error(j(423)),t),t=bc(e,t,r,n,i);break e}else if(r!==i){i=Dr(Error(j(424)),t),t=bc(e,t,r,n,i);break e}else for(Ue=rn(t.stateNode.containerInfo.firstChild),Be=t,J=!0,st=null,n=dp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zr(),r===i){t=Lt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return mp(t),e===null&&tu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,ql(r,i)?s=null:o!==null&&ql(r,o)&&(t.flags|=32),Up(e,t),Pe(e,t,s,n),t.child;case 6:return e===null&&tu(t),null;case 13:return Qp(e,t,n);case 4:return va(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fr(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Kc(e,t,r,i,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Y(rs,r._currentValue),r._currentValue=s,o!==null)if(ft(o.value,s)){if(o.children===i.children&&!Le.current){t=Lt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Nt(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?u.next=u:(u.next=d.next,d.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),nu(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(j(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),nu(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Pe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,yr(t,n),i=Je(i),r=r(i),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,i=rt(r,t.pendingProps),i=rt(r.type,i),Gc(e,t,r,i,n);case 15:return Dp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),zo(e,t),t.tag=1,$e(r)?(e=!0,es(t)):e=!1,yr(t,n),zp(t,r,i),iu(t,r,i,n),lu(null,t,r,!0,e,n);case 19:return Wp(e,t,n);case 22:return Ap(e,t,n)}throw Error(j(156,t.tag))};function oh(e,t){return Td(e,t)}function P0(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 qe(e,t,n,r){return new P0(e,t,n,r)}function La(e){return e=e.prototype,!(!e||!e.isReactComponent)}function j0(e){if(typeof e=="function")return La(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ju)return 11;if(e===Zu)return 14}return 2}function un(e,t){var n=e.alternate;return n===null?(n=qe(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 Do(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")La(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case tr:return Fn(n.children,i,o,t);case Xu:s=8,i|=8;break;case Rl:return e=qe(12,n,t,i|2),e.elementType=Rl,e.lanes=o,e;case Nl:return e=qe(13,n,t,i),e.elementType=Nl,e.lanes=o,e;case Ol:return e=qe(19,n,t,i),e.elementType=Ol,e.lanes=o,e;case md:return Ls(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pd:s=10;break e;case hd:s=9;break e;case Ju:s=11;break e;case Zu:s=14;break e;case Ut:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=qe(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Fn(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function Ls(e,t,n,r){return e=qe(22,e,r,t),e.elementType=md,e.lanes=n,e.stateNode={isHidden:!1},e}function wl(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function xl(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _0(e,t,n,r,i){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=el(0),this.expirationTimes=el(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=el(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $a(e,t,n,r,i,o,s,l,u){return e=new _0(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=qe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ya(o),e}function R0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ah)}catch(e){console.error(e)}}ah(),ad.exports=We;var L0=ad.exports,ch,uf=L0;ch=uf.createRoot,uf.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function yl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ou(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var u0=typeof WeakMap=="function"?WeakMap:Map;function Fp(e,t,n){n=Nt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cs||(cs=!0,mu=r),ou(e,t)},n}function Mp(e,t,n){n=Nt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ou(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ou(e,t),typeof r!="function"&&(sn===null?sn=new Set([this]):sn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Wc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new u0;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=k0.bind(null,e,t,n),t.then(e,e))}function Hc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vc(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Nt(-1,1),t.tag=2,on(n,t,1))),n.lanes|=1),e)}var a0=$t.ReactCurrentOwner,Ie=!1;function Pe(e,t,n,r){t.child=e===null?dp(t,null,n,r):Mr(t,e.child,n,r)}function Kc(e,t,n,r,i){n=n.render;var o=t.ref;return vr(t,i),r=ka(e,t,n,r,o,i),n=Ca(),e!==null&&!Ie?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Lt(e,t,i)):(J&&n&&ca(t),t.flags|=1,Pe(e,t,r,i),t.child)}function Gc(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!La(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Dp(e,t,o,r,i)):(e=Do(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ni,n(s,r)&&e.ref===t.ref)return Lt(e,t,i)}return t.flags|=1,e=un(o,r),e.ref=t.ref,e.return=t,t.child=e}function Dp(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ni(o,r)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ie=!0);else return t.lanes=e.lanes,Lt(e,t,i)}return su(e,t,n,r,i)}function Ap(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(dr,Ae),Ae|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(dr,Ae),Ae|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Y(dr,Ae),Ae|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Y(dr,Ae),Ae|=r;return Pe(e,t,i,n),t.child}function Up(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function su(e,t,n,r,i){var o=$e(n)?An:ke.current;return o=zr(t,o),vr(t,i),n=ka(e,t,n,r,o,i),r=Ca(),e!==null&&!Ie?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Lt(e,t,i)):(J&&r&&ca(t),t.flags|=1,Pe(e,t,n,i),t.child)}function Yc(e,t,n,r,i){if($e(n)){var o=!0;es(t)}else o=!1;if(vr(t,i),t.stateNode===null)zo(e,t),zp(t,n,r),iu(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,a=n.contextType;typeof a=="object"&&a!==null?a=Je(a):(a=$e(n)?An:ke.current,a=zr(t,a));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==a)&&Qc(t,s,r,a),Bt=!1;var m=t.memoizedState;s.state=m,os(t,r,s,i),u=t.memoizedState,l!==r||m!==u||Le.current||Bt?(typeof d=="function"&&(ru(t,n,d,r),u=t.memoizedState),(l=Bt||Bc(t,n,l,r,m,u,a))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=a,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,hp(e,t),l=t.memoizedProps,a=t.type===t.elementType?l:rt(t.type,l),s.props=a,c=t.pendingProps,m=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=Je(u):(u=$e(n)?An:ke.current,u=zr(t,u));var w=n.getDerivedStateFromProps;(d=typeof w=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==c||m!==u)&&Qc(t,s,r,u),Bt=!1,m=t.memoizedState,s.state=m,os(t,r,s,i);var x=t.memoizedState;l!==c||m!==x||Le.current||Bt?(typeof w=="function"&&(ru(t,n,w,r),x=t.memoizedState),(a=Bt||Bc(t,n,a,r,m,x,u)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=u,r=a):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return lu(e,t,n,r,o,i)}function lu(e,t,n,r,i,o){Up(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Lc(t,n,!1),Lt(e,t,o);r=t.stateNode,a0.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Mr(t,e.child,null,o),t.child=Mr(t,null,l,o)):Pe(e,t,l,o),t.memoizedState=r.state,i&&Lc(t,n,!0),t.child}function Bp(e){var t=e.stateNode;t.pendingContext?Tc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Tc(e,t.context,!1),va(e,t.containerInfo)}function bc(e,t,n,r,i){return Fr(),da(i),t.flags|=256,Pe(e,t,n,r),t.child}var uu={dehydrated:null,treeContext:null,retryLane:0};function au(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qp(e,t,n){var r=t.pendingProps,i=Z.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Y(Z,i&1),e===null)return tu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Ls(s,r,0,null),e=Fn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=au(n),t.memoizedState=uu,e):ja(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return c0(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=un(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=un(l,o):(o=Fn(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?au(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=uu,r}return o=e.child,e=o.sibling,r=un(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ja(e,t){return t=Ls({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wo(e,t,n,r){return r!==null&&da(r),Mr(t,e.child,null,n),e=ja(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function c0(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=yl(Error(j(422))),wo(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ls({mode:"visible",children:r.children},i,0,null),o=Fn(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Mr(t,e.child,null,s),t.child.memoizedState=au(s),t.memoizedState=uu,o);if(!(t.mode&1))return wo(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(j(419)),r=yl(o,r,void 0),wo(e,t,s,r)}if(l=(s&e.childLanes)!==0,Ie||l){if(r=pe,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Tt(e,i),at(r,e,i,-1))}return Ta(),r=yl(Error(j(421))),wo(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=C0.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ue=rn(i.nextSibling),Be=t,J=!0,st=null,e!==null&&(Ye[be++]=_t,Ye[be++]=Rt,Ye[be++]=Un,_t=e.id,Rt=e.overflow,Un=t),t=ja(t,r.children),t.flags|=4096,t)}function qc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),nu(e.return,t,n)}function vl(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Wp(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Pe(e,t,r.children,n),r=Z.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qc(e,n,t);else if(e.tag===19)qc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Y(Z,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ss(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),vl(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ss(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}vl(t,!0,n,null,o);break;case"together":vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function f0(e,t,n){switch(t.tag){case 3:Bp(t),Fr();break;case 5:mp(t);break;case 1:$e(t.type)&&es(t);break;case 4:va(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Y(rs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Y(Z,Z.current&1),t.flags|=128,null):n&t.child.childLanes?Qp(e,t,n):(Y(Z,Z.current&1),e=Lt(e,t,n),e!==null?e.sibling:null);Y(Z,Z.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Wp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(Z,Z.current),r)break;return null;case 22:case 23:return t.lanes=0,Ap(e,t,n)}return Lt(e,t,n)}var Hp,cu,Vp,Kp;Hp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};cu=function(){};Vp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,jn(St.current);var o=null;switch(n){case"input":i=Tl(e,i),r=Tl(e,r),o=[];break;case"select":i=te({},i,{value:void 0}),r=te({},r,{value:void 0}),o=[];break;case"textarea":i=zl(e,i),r=zl(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Jo)}Ml(n,r);var s;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var l=i[a];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(ki.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var u=r[a];if(l=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&u!==l&&(u!=null||l!=null))if(a==="style")if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(ki.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&b("scroll",e),o||l===u||(o=[])):(o=o||[]).push(a,u))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};Kp=function(e,t,n,r){n!==r&&(t.flags|=4)};function ii(e,t){if(!J)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function we(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function d0(e,t,n){var r=t.pendingProps;switch(fa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return we(t),null;case 1:return $e(t.type)&&Zo(),we(t),null;case 3:return r=t.stateNode,Dr(),X(Le),X(ke),xa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,st!==null&&(vu(st),st=null))),cu(e,t),we(t),null;case 5:wa(t);var i=jn($i.current);if(n=t.type,e!==null&&t.stateNode!=null)Vp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return we(t),null}if(e=jn(St.current),yo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[wt]=t,r[Ti]=o,e=(t.mode&1)!==0,n){case"dialog":b("cancel",r),b("close",r);break;case"iframe":case"object":case"embed":b("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[wt]=t,e[Ti]=r,Hp(e,t,!1,!1),t.stateNode=e;e:{switch(s=Dl(n,r),n){case"dialog":b("cancel",e),b("close",e),i=r;break;case"iframe":case"object":case"embed":b("load",e),i=r;break;case"video":case"audio":for(i=0;iUr&&(t.flags|=128,r=!0,ii(o,!1),t.lanes=4194304)}else{if(!r)if(e=ss(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ii(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!J)return we(t),null}else 2*ie()-o.renderingStartTime>Ur&&n!==1073741824&&(t.flags|=128,r=!0,ii(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ie(),t.sibling=null,n=Z.current,Y(Z,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return Ia(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ae&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function p0(e,t){switch(fa(t),t.tag){case 1:return $e(t.type)&&Zo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dr(),X(Le),X(ke),xa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wa(t),null;case 13:if(X(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Z),null;case 4:return Dr(),null;case 10:return ma(t.type._context),null;case 22:case 23:return Ia(),null;case 24:return null;default:return null}}var xo=!1,Se=!1,h0=typeof WeakSet=="function"?WeakSet:Set,O=null;function fr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function fu(e,t,n){try{n()}catch(r){re(e,t,r)}}var Xc=!1;function m0(e,t){if(Yl=bo,e=Xd(),aa(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,a=0,d=0,c=e,m=null;t:for(;;){for(var w;c!==n||i!==0&&c.nodeType!==3||(l=s+i),c!==o||r!==0&&c.nodeType!==3||(u=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(w=c.firstChild)!==null;)m=c,c=w;for(;;){if(c===e)break t;if(m===n&&++a===i&&(l=s),m===o&&++d===r&&(u=s),(w=c.nextSibling)!==null)break;c=m,m=c.parentNode}c=w}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(bl={focusedElem:e,selectionRange:n},bo=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,k=x.memoizedState,h=t.stateNode,f=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:rt(t.type,v),k);h.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(S){re(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return x=Xc,Xc=!1,x}function vi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&fu(t,n,o)}i=i.next}while(i!==r)}}function Is(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 du(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 Gp(e){var t=e.alternate;t!==null&&(e.alternate=null,Gp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wt],delete t[Ti],delete t[Jl],delete t[Xg],delete t[Jg])),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 Yp(e){return e.tag===5||e.tag===3||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yp(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 pu(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=Jo));else if(r!==4&&(e=e.child,e!==null))for(pu(e,t,n),e=e.sibling;e!==null;)pu(e,t,n),e=e.sibling}function hu(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(hu(e,t,n),e=e.sibling;e!==null;)hu(e,t,n),e=e.sibling}var he=null,ot=!1;function Mt(e,t,n){for(n=n.child;n!==null;)bp(e,t,n),n=n.sibling}function bp(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Cs,n)}catch{}switch(n.tag){case 5:Se||fr(n,t);case 6:var r=he,i=ot;he=null,Mt(e,t,n),he=r,ot=i,he!==null&&(ot?(e=he,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):he.removeChild(n.stateNode));break;case 18:he!==null&&(ot?(e=he,n=n.stateNode,e.nodeType===8?fl(e.parentNode,n):e.nodeType===1&&fl(e,n),_i(e)):fl(he,n.stateNode));break;case 4:r=he,i=ot,he=n.stateNode.containerInfo,ot=!0,Mt(e,t,n),he=r,ot=i;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&fu(n,t,s),i=i.next}while(i!==r)}Mt(e,t,n);break;case 1:if(!Se&&(fr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){re(n,t,l)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Mt(e,t,n),Se=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function Zc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new h0),t.forEach(function(r){var i=E0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*y0(r/1960))-r,10e?16:e,Jt===null)var r=!1;else{if(e=Jt,Jt=null,fs=0,Q&6)throw Error(j(331));var i=Q;for(Q|=4,O=e.current;O!==null;){var o=O,s=o.child;if(O.flags&16){var l=o.deletions;if(l!==null){for(var u=0;uie()-Na?zn(e,0):Ra|=n),ze(e,t)}function rh(e,t){t===0&&(e.mode&1?(t=co,co<<=1,!(co&130023424)&&(co=4194304)):t=1);var n=je();e=Tt(e,t),e!==null&&(bi(e,t,n),ze(e,n))}function C0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rh(e,n)}function E0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),rh(e,n)}var ih;ih=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)Ie=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ie=!1,f0(e,t,n);Ie=!!(e.flags&131072)}else Ie=!1,J&&t.flags&1048576&&up(t,ns,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zo(e,t),e=t.pendingProps;var i=zr(t,ke.current);vr(t,n),i=ka(null,t,r,e,i,n);var o=Ca();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$e(r)?(o=!0,es(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ya(t),i.updater=Os,t.stateNode=i,i._reactInternals=t,iu(t,r,e,n),t=lu(null,t,r,!0,o,n)):(t.tag=0,J&&o&&ca(t),Pe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=j0(r),e=rt(r,e),i){case 0:t=su(null,t,r,e,n);break e;case 1:t=Yc(null,t,r,e,n);break e;case 11:t=Kc(null,t,r,e,n);break e;case 14:t=Gc(null,t,r,rt(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),su(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Yc(e,t,r,i,n);case 3:e:{if(Bp(t),e===null)throw Error(j(387));r=t.pendingProps,o=t.memoizedState,i=o.element,hp(e,t),os(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ar(Error(j(423)),t),t=bc(e,t,r,n,i);break e}else if(r!==i){i=Ar(Error(j(424)),t),t=bc(e,t,r,n,i);break e}else for(Ue=rn(t.stateNode.containerInfo.firstChild),Be=t,J=!0,st=null,n=dp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fr(),r===i){t=Lt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return mp(t),e===null&&tu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,ql(r,i)?s=null:o!==null&&ql(r,o)&&(t.flags|=32),Up(e,t),Pe(e,t,s,n),t.child;case 6:return e===null&&tu(t),null;case 13:return Qp(e,t,n);case 4:return va(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mr(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Kc(e,t,r,i,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Y(rs,r._currentValue),r._currentValue=s,o!==null)if(ft(o.value,s)){if(o.children===i.children&&!Le.current){t=Lt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Nt(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?u.next=u:(u.next=d.next,d.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),nu(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(j(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),nu(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Pe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,vr(t,n),i=Je(i),r=r(i),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,i=rt(r,t.pendingProps),i=rt(r.type,i),Gc(e,t,r,i,n);case 15:return Dp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),zo(e,t),t.tag=1,$e(r)?(e=!0,es(t)):e=!1,vr(t,n),zp(t,r,i),iu(t,r,i,n),lu(null,t,r,!0,e,n);case 19:return Wp(e,t,n);case 22:return Ap(e,t,n)}throw Error(j(156,t.tag))};function oh(e,t){return Td(e,t)}function P0(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 qe(e,t,n,r){return new P0(e,t,n,r)}function La(e){return e=e.prototype,!(!e||!e.isReactComponent)}function j0(e){if(typeof e=="function")return La(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ju)return 11;if(e===Zu)return 14}return 2}function un(e,t){var n=e.alternate;return n===null?(n=qe(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 Do(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")La(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case nr:return Fn(n.children,i,o,t);case Xu:s=8,i|=8;break;case Rl:return e=qe(12,n,t,i|2),e.elementType=Rl,e.lanes=o,e;case Nl:return e=qe(13,n,t,i),e.elementType=Nl,e.lanes=o,e;case Ol:return e=qe(19,n,t,i),e.elementType=Ol,e.lanes=o,e;case md:return Ls(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pd:s=10;break e;case hd:s=9;break e;case Ju:s=11;break e;case Zu:s=14;break e;case Ut:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=qe(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Fn(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function Ls(e,t,n,r){return e=qe(22,e,r,t),e.elementType=md,e.lanes=n,e.stateNode={isHidden:!1},e}function wl(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function xl(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _0(e,t,n,r,i){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=el(0),this.expirationTimes=el(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=el(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $a(e,t,n,r,i,o,s,l,u){return e=new _0(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=qe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ya(o),e}function R0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ah)}catch(e){console.error(e)}}ah(),ad.exports=We;var L0=ad.exports,ch,uf=L0;ch=uf.createRoot,uf.hydrateRoot;/** * @remix-run/router v1.20.0 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),_.useCallback(function(a,d){if(d===void 0&&(d={}),!l.current)return;if(typeof a=="number"){r.go(a);return}let c=hh(a,JSON.parse(s),o,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:an([t,c.pathname])),(d.replace?r.replace:r.push)(c,d.state,d)},[t,r,s,o,e])}function vh(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=_.useContext(Yn),{matches:i}=_.useContext(bn),{pathname:o}=Yr(),s=JSON.stringify(ph(i,r.v7_relativeSplatPath));return _.useMemo(()=>hh(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function uy(e,t){return ay(e,t)}function ay(e,t,n,r){Zi()||ue(!1);let{navigator:i}=_.useContext(Yn),{matches:o}=_.useContext(bn),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let a=Yr(),d;if(t){var c;let k=typeof t=="string"?Gn(t):t;u==="/"||(c=k.pathname)!=null&&c.startsWith(u)||ue(!1),d=k}else d=a;let m=d.pathname||"/",w=m;if(u!=="/"){let k=u.replace(/^\//,"").split("/");w="/"+m.replace(/^\//,"").split("/").slice(k.length).join("/")}let x=M0(e,{pathname:w}),v=hy(x&&x.map(k=>Object.assign({},k,{params:Object.assign({},l,k.params),pathname:an([u,i.encodeLocation?i.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?u:an([u,i.encodeLocation?i.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),o,n,r);return t&&v?_.createElement(Ds.Provider,{value:{location:Ui({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Zt.Pop}},v):v}function cy(){let e=vy(),t=ry(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:i},n):null,null)}const fy=_.createElement(cy,null);class dy extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?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!==void 0?_.createElement(bn.Provider,{value:this.props.routeContext},_.createElement(gh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function py(e){let{routeContext:t,match:n,children:r}=e,i=_.useContext(Ua);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(bn.Provider,{value:t},r)}function hy(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=s.findIndex(c=>c.route.id&&(l==null?void 0:l[c.route.id])!==void 0);d>=0||ue(!1),s=s.slice(0,Math.min(s.length,d+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,a+1):s=[s[0]];break}}}return s.reduceRight((d,c,m)=>{let w,x=!1,v=null,k=null;n&&(w=l&&c.route.id?l[c.route.id]:void 0,v=c.route.errorElement||fy,u&&(a<0&&m===0?(x=!0,k=null):a===m&&(x=!0,k=c.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,m+1)),f=()=>{let p;return w?p=v:x?p=k:c.route.Component?p=_.createElement(c.route.Component,null):c.route.element?p=c.route.element:p=d,_.createElement(py,{match:c,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:p})};return n&&(c.route.ErrorBoundary||c.route.errorElement||m===0)?_.createElement(dy,{location:n.location,revalidation:n.revalidation,component:v,error:w,children:f(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):f()},null)}var wh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(wh||{}),ms=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}(ms||{});function my(e){let t=_.useContext(Ua);return t||ue(!1),t}function gy(e){let t=_.useContext(oy);return t||ue(!1),t}function yy(e){let t=_.useContext(bn);return t||ue(!1),t}function xh(e){let t=yy(),n=t.matches[t.matches.length-1];return n.route.id||ue(!1),n.route.id}function vy(){var e;let t=_.useContext(gh),n=gy(ms.UseRouteError),r=xh(ms.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function wy(){let{router:e}=my(wh.UseNavigateStable),t=xh(ms.UseNavigateStable),n=_.useRef(!1);return yh(()=>{n.current=!0}),_.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ui({fromRouteId:t},o)))},[e,t])}function Cn(e){ue(!1)}function xy(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Zt.Pop,navigator:o,static:s=!1,future:l}=e;Zi()&&ue(!1);let u=t.replace(/^\/*/,"/"),a=_.useMemo(()=>({basename:u,navigator:o,static:s,future:Ui({v7_relativeSplatPath:!1},l)}),[u,l,o,s]);typeof r=="string"&&(r=Gn(r));let{pathname:d="/",search:c="",hash:m="",state:w=null,key:x="default"}=r,v=_.useMemo(()=>{let k=Aa(d,u);return k==null?null:{location:{pathname:k,search:c,hash:m,state:w,key:x},navigationType:i}},[u,d,c,m,w,x,i]);return v==null?null:_.createElement(Yn.Provider,{value:a},_.createElement(Ds.Provider,{children:n,value:v}))}function Sy(e){let{children:t,location:n}=e;return uy(xu(t),n)}new Promise(()=>{});function xu(e,t){t===void 0&&(t=[]);let n=[];return _.Children.forEach(e,(r,i)=>{if(!_.isValidElement(r))return;let o=[...t,i];if(r.type===_.Fragment){n.push.apply(n,xu(r.props.children,o));return}r.type!==Cn&&ue(!1),!r.props.index||!r.props.children||ue(!1);let s={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&&(s.children=xu(r.props.children,o)),n.push(s)}),n}/** + */function Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),_.useCallback(function(a,d){if(d===void 0&&(d={}),!l.current)return;if(typeof a=="number"){r.go(a);return}let c=hh(a,JSON.parse(s),o,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:an([t,c.pathname])),(d.replace?r.replace:r.push)(c,d.state,d)},[t,r,s,o,e])}function vh(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=_.useContext(Yn),{matches:i}=_.useContext(bn),{pathname:o}=qn(),s=JSON.stringify(ph(i,r.v7_relativeSplatPath));return _.useMemo(()=>hh(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function uy(e,t){return ay(e,t)}function ay(e,t,n,r){Zi()||ue(!1);let{navigator:i}=_.useContext(Yn),{matches:o}=_.useContext(bn),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let a=qn(),d;if(t){var c;let k=typeof t=="string"?Gn(t):t;u==="/"||(c=k.pathname)!=null&&c.startsWith(u)||ue(!1),d=k}else d=a;let m=d.pathname||"/",w=m;if(u!=="/"){let k=u.replace(/^\//,"").split("/");w="/"+m.replace(/^\//,"").split("/").slice(k.length).join("/")}let x=M0(e,{pathname:w}),v=hy(x&&x.map(k=>Object.assign({},k,{params:Object.assign({},l,k.params),pathname:an([u,i.encodeLocation?i.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?u:an([u,i.encodeLocation?i.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),o,n,r);return t&&v?_.createElement(Ds.Provider,{value:{location:Ui({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Zt.Pop}},v):v}function cy(){let e=vy(),t=ry(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:i},n):null,null)}const fy=_.createElement(cy,null);class dy extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?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!==void 0?_.createElement(bn.Provider,{value:this.props.routeContext},_.createElement(gh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function py(e){let{routeContext:t,match:n,children:r}=e,i=_.useContext(Ua);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(bn.Provider,{value:t},r)}function hy(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=s.findIndex(c=>c.route.id&&(l==null?void 0:l[c.route.id])!==void 0);d>=0||ue(!1),s=s.slice(0,Math.min(s.length,d+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,a+1):s=[s[0]];break}}}return s.reduceRight((d,c,m)=>{let w,x=!1,v=null,k=null;n&&(w=l&&c.route.id?l[c.route.id]:void 0,v=c.route.errorElement||fy,u&&(a<0&&m===0?(x=!0,k=null):a===m&&(x=!0,k=c.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,m+1)),f=()=>{let p;return w?p=v:x?p=k:c.route.Component?p=_.createElement(c.route.Component,null):c.route.element?p=c.route.element:p=d,_.createElement(py,{match:c,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:p})};return n&&(c.route.ErrorBoundary||c.route.errorElement||m===0)?_.createElement(dy,{location:n.location,revalidation:n.revalidation,component:v,error:w,children:f(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):f()},null)}var wh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(wh||{}),ms=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}(ms||{});function my(e){let t=_.useContext(Ua);return t||ue(!1),t}function gy(e){let t=_.useContext(oy);return t||ue(!1),t}function yy(e){let t=_.useContext(bn);return t||ue(!1),t}function xh(e){let t=yy(),n=t.matches[t.matches.length-1];return n.route.id||ue(!1),n.route.id}function vy(){var e;let t=_.useContext(gh),n=gy(ms.UseRouteError),r=xh(ms.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function wy(){let{router:e}=my(wh.UseNavigateStable),t=xh(ms.UseNavigateStable),n=_.useRef(!1);return yh(()=>{n.current=!0}),_.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ui({fromRouteId:t},o)))},[e,t])}function Cn(e){ue(!1)}function xy(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Zt.Pop,navigator:o,static:s=!1,future:l}=e;Zi()&&ue(!1);let u=t.replace(/^\/*/,"/"),a=_.useMemo(()=>({basename:u,navigator:o,static:s,future:Ui({v7_relativeSplatPath:!1},l)}),[u,l,o,s]);typeof r=="string"&&(r=Gn(r));let{pathname:d="/",search:c="",hash:m="",state:w=null,key:x="default"}=r,v=_.useMemo(()=>{let k=Aa(d,u);return k==null?null:{location:{pathname:k,search:c,hash:m,state:w,key:x},navigationType:i}},[u,d,c,m,w,x,i]);return v==null?null:_.createElement(Yn.Provider,{value:a},_.createElement(Ds.Provider,{children:n,value:v}))}function Sy(e){let{children:t,location:n}=e;return uy(xu(t),n)}new Promise(()=>{});function xu(e,t){t===void 0&&(t=[]);let n=[];return _.Children.forEach(e,(r,i)=>{if(!_.isValidElement(r))return;let o=[...t,i];if(r.type===_.Fragment){n.push.apply(n,xu(r.props.children,o));return}r.type!==Cn&&ue(!1),!r.props.index||!r.props.children||ue(!1);let s={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&&(s.children=xu(r.props.children,o)),n.push(s)}),n}/** * React Router DOM v6.27.0 * * Copyright (c) Remix Software Inc. @@ -64,8 +64,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Su(){return Su=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Cy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ey(e,t){return e.button===0&&(!t||t==="_self")&&!Cy(e)}const Py=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],jy="6";try{window.__reactRouterVersion=jy}catch{}const _y="startTransition",hf=km[_y];function Ry(e){let{basename:t,children:n,future:r,window:i}=e,o=_.useRef();o.current==null&&(o.current=$0({window:i,v5Compat:!0}));let s=o.current,[l,u]=_.useState({action:s.action,location:s.location}),{v7_startTransition:a}=r||{},d=_.useCallback(c=>{a&&hf?hf(()=>u(c)):u(c)},[u,a]);return _.useLayoutEffect(()=>s.listen(d),[s,d]),_.createElement(xy,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const Ny=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Oy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zn=_.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:u,to:a,preventScrollReset:d,viewTransition:c}=t,m=ky(t,Py),{basename:w}=_.useContext(Yn),x,v=!1;if(typeof a=="string"&&Oy.test(a)&&(x=a,Ny))try{let p=new URL(window.location.href),S=a.startsWith("//")?new URL(p.protocol+a):new URL(a),E=Aa(S.pathname,w);S.origin===p.origin&&E!=null?a=E+S.search+S.hash:v=!0}catch{}let k=sy(a,{relative:i}),h=Iy(a,{replace:s,state:l,target:u,preventScrollReset:d,relative:i,viewTransition:c});function f(p){r&&r(p),p.defaultPrevented||h(p)}return _.createElement("a",Su({},m,{href:x||k,onClick:v||o?r:f,ref:n,target:u}))});var mf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(mf||(mf={}));var gf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gf||(gf={}));function Iy(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:l}=t===void 0?{}:t,u=qn(),a=Yr(),d=vh(e,{relative:s});return _.useCallback(c=>{if(Ey(c,n)){c.preventDefault();let m=r!==void 0?r:hs(a)===hs(d);u(e,{replace:m,state:i,preventScrollReset:o,relative:s,viewTransition:l})}},[a,u,d,r,i,n,e,o,s,l])}var eo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Hn=typeof window>"u"||"Deno"in globalThis;function Ge(){}function Ty(e,t){return typeof e=="function"?e(t):e}function ku(e){return typeof e=="number"&&e>=0&&e!==1/0}function Sh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wr(e,t){return typeof e=="function"?e(t):e}function lt(e,t){return typeof e=="function"?e(t):e}function yf(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==Ba(s,t.options))return!1}else if(!Qi(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||o&&!o(t))}function vf(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Bi(t.options.mutationKey)!==Bi(o))return!1}else if(!Qi(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ba(e,t){return((t==null?void 0:t.queryKeyHashFn)||Bi)(e)}function Bi(e){return JSON.stringify(e,(t,n)=>Eu(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Qi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qi(e[n],t[n])):!1}function kh(e,t){if(e===t)return e;const n=wf(e)&&wf(t);if(n||Eu(e)&&Eu(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,l=n?[]:{};let u=0;for(let a=0;a{setTimeout(t,e)})}function Pu(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?kh(e,t):t}function $y(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function zy(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qa=Symbol();function Ch(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Qa?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Rn,Ht,xr,Wf,Fy=(Wf=class extends eo{constructor(){super();z(this,Rn);z(this,Ht);z(this,xr);I(this,xr,t=>{if(!Hn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,Ht)||this.setEventListener(y(this,xr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Ht))==null||t.call(this),I(this,Ht,void 0))}setEventListener(t){var n;I(this,xr,t),(n=y(this,Ht))==null||n.call(this),I(this,Ht,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,Rn)!==t&&(I(this,Rn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,Rn)=="boolean"?y(this,Rn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Rn=new WeakMap,Ht=new WeakMap,xr=new WeakMap,Wf),Wa=new Fy,Sr,Vt,kr,Hf,My=(Hf=class extends eo{constructor(){super();z(this,Sr,!0);z(this,Vt);z(this,kr);I(this,kr,t=>{if(!Hn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,Vt)||this.setEventListener(y(this,kr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Vt))==null||t.call(this),I(this,Vt,void 0))}setEventListener(t){var n;I(this,kr,t),(n=y(this,Vt))==null||n.call(this),I(this,Vt,t(this.setOnline.bind(this)))}setOnline(t){y(this,Sr)!==t&&(I(this,Sr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,Sr)}},Sr=new WeakMap,Vt=new WeakMap,kr=new WeakMap,Hf),gs=new My;function ju(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Dy(e){return Math.min(1e3*2**e,3e4)}function Eh(e){return(e??"online")==="online"?gs.isOnline():!0}var Ph=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function kl(e){return e instanceof Ph}function jh(e){let t=!1,n=0,r=!1,i;const o=ju(),s=v=>{var k;r||(m(new Ph(v)),(k=e.abort)==null||k.call(e))},l=()=>{t=!0},u=()=>{t=!1},a=()=>Wa.isFocused()&&(e.networkMode==="always"||gs.isOnline())&&e.canRun(),d=()=>Eh(e.networkMode)&&e.canRun(),c=v=>{var k;r||(r=!0,(k=e.onSuccess)==null||k.call(e,v),i==null||i(),o.resolve(v))},m=v=>{var k;r||(r=!0,(k=e.onError)==null||k.call(e,v),i==null||i(),o.reject(v))},w=()=>new Promise(v=>{var k;i=h=>{(r||a())&&v(h)},(k=e.onPause)==null||k.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),x=()=>{if(r)return;let v;const k=n===0?e.initialPromise:void 0;try{v=k??e.fn()}catch(h){v=Promise.reject(h)}Promise.resolve(v).then(c).catch(h=>{var P;if(r)return;const f=e.retry??(Hn?0:3),p=e.retryDelay??Dy,S=typeof p=="function"?p(n,h):p,E=f===!0||typeof f=="number"&&na()?void 0:w()).then(()=>{t?m(h):x()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:l,continueRetry:u,canStart:d,start:()=>(d()?x():w().then(x),o)}}function Ay(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=l=>setTimeout(l,0);const o=l=>{t?e.push(l):i(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(u=>{n(u)})})})};return{batch:l=>{let u;t++;try{u=l()}finally{t--,t||s()}return u},batchCalls:l=>(...u)=>{o(()=>{l(...u)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var me=Ay(),Nn,Vf,_h=(Vf=class{constructor(){z(this,Nn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ku(this.gcTime)&&I(this,Nn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hn?1/0:5*60*1e3))}clearGcTimeout(){y(this,Nn)&&(clearTimeout(y(this,Nn)),I(this,Nn,void 0))}},Nn=new WeakMap,Vf),Cr,Er,Ke,xe,Hi,On,it,Ct,Kf,Uy=(Kf=class extends _h{constructor(t){super();z(this,it);z(this,Cr);z(this,Er);z(this,Ke);z(this,xe);z(this,Hi);z(this,On);I(this,On,!1),I(this,Hi,t.defaultOptions),this.setOptions(t.options),this.observers=[],I(this,Ke,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,I(this,Cr,By(this.options)),this.state=t.state??y(this,Cr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,xe))==null?void 0:t.promise}setOptions(t){this.options={...y(this,Hi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Ke).remove(this)}setData(t,n){const r=Pu(this.state.data,t,this.options);return U(this,it,Ct).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){U(this,it,Ct).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,xe))==null?void 0:r.promise;return(i=y(this,xe))==null||i.cancel(t),n?n.then(Ge).catch(Ge):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,Cr))}isActive(){return this.observers.some(t=>lt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Sh(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,Ke).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,xe)&&(y(this,On)?y(this,xe).cancel({revert:!0}):y(this,xe).cancelRetry()),this.scheduleGc()),y(this,Ke).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||U(this,it,Ct).call(this,{type:"invalidate"})}fetch(t,n){var u,a,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,xe))return y(this,xe).continueRetry(),y(this,xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(m=>m.options.queryFn);c&&this.setOptions(c.options)}const r=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(I(this,On,!0),r.signal)})},o=()=>{const c=Ch(this.options,n),m={queryKey:this.queryKey,meta:this.meta};return i(m),I(this,On,!1),this.options.persister?this.options.persister(c,m,this):c(m)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(u=this.options.behavior)==null||u.onFetch(s,this),I(this,Er,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=s.fetchOptions)==null?void 0:a.meta))&&U(this,it,Ct).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const l=c=>{var m,w,x,v;kl(c)&&c.silent||U(this,it,Ct).call(this,{type:"error",error:c}),kl(c)||((w=(m=y(this,Ke).config).onError)==null||w.call(m,c,this),(v=(x=y(this,Ke).config).onSettled)==null||v.call(x,this.state.data,c,this)),this.scheduleGc()};return I(this,xe,jh({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{var m,w,x,v;if(c===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(k){l(k);return}(w=(m=y(this,Ke).config).onSuccess)==null||w.call(m,c,this),(v=(x=y(this,Ke).config).onSettled)==null||v.call(x,c,this.state.error,this),this.scheduleGc()},onError:l,onFail:(c,m)=>{U(this,it,Ct).call(this,{type:"failed",failureCount:c,error:m})},onPause:()=>{U(this,it,Ct).call(this,{type:"pause"})},onContinue:()=>{U(this,it,Ct).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),y(this,xe).start()}},Cr=new WeakMap,Er=new WeakMap,Ke=new WeakMap,xe=new WeakMap,Hi=new WeakMap,On=new WeakMap,it=new WeakSet,Ct=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Rh(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return kl(i)&&i.revert&&y(this,Er)?{...y(this,Er),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),me.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,Ke).notify({query:this,type:"updated",action:t})})},Kf);function Rh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Eh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function By(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ht,Gf,Qy=(Gf=class extends eo{constructor(t={}){super();z(this,ht);this.config=t,I(this,ht,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Ba(i,n);let s=this.get(o);return s||(s=new Uy({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){y(this,ht).has(t.queryHash)||(y(this,ht).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,ht).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,ht).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,ht).get(t)}getAll(){return[...y(this,ht).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>yf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>yf(t,r)):n}notify(t){me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){me.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){me.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ht=new WeakMap,Gf),mt,Ce,In,gt,Dt,Yf,Wy=(Yf=class extends _h{constructor(t){super();z(this,gt);z(this,mt);z(this,Ce);z(this,In);this.mutationId=t.mutationId,I(this,Ce,t.mutationCache),I(this,mt,[]),this.state=t.state||Hy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,mt).includes(t)||(y(this,mt).push(t),this.clearGcTimeout(),y(this,Ce).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){I(this,mt,y(this,mt).filter(n=>n!==t)),this.scheduleGc(),y(this,Ce).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,mt).length||(this.state.status==="pending"?this.scheduleGc():y(this,Ce).remove(this))}continue(){var t;return((t=y(this,In))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,l,u,a,d,c,m,w,x,v,k,h,f,p,S,E,P,C;I(this,In,jh({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,$)=>{U(this,gt,Dt).call(this,{type:"failed",failureCount:R,error:$})},onPause:()=>{U(this,gt,Dt).call(this,{type:"pause"})},onContinue:()=>{U(this,gt,Dt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,Ce).canRun(this)}));const n=this.state.status==="pending",r=!y(this,In).canStart();try{if(!n){U(this,gt,Dt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=y(this,Ce).config).onMutate)==null?void 0:o.call(i,t,this));const $=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t));$!==this.state.context&&U(this,gt,Dt).call(this,{type:"pending",context:$,variables:t,isPaused:r})}const R=await y(this,In).start();return await((a=(u=y(this,Ce).config).onSuccess)==null?void 0:a.call(u,R,t,this.state.context,this)),await((c=(d=this.options).onSuccess)==null?void 0:c.call(d,R,t,this.state.context)),await((w=(m=y(this,Ce).config).onSettled)==null?void 0:w.call(m,R,null,this.state.variables,this.state.context,this)),await((v=(x=this.options).onSettled)==null?void 0:v.call(x,R,null,t,this.state.context)),U(this,gt,Dt).call(this,{type:"success",data:R}),R}catch(R){try{throw await((h=(k=y(this,Ce).config).onError)==null?void 0:h.call(k,R,t,this.state.context,this)),await((p=(f=this.options).onError)==null?void 0:p.call(f,R,t,this.state.context)),await((E=(S=y(this,Ce).config).onSettled)==null?void 0:E.call(S,void 0,R,this.state.variables,this.state.context,this)),await((C=(P=this.options).onSettled)==null?void 0:C.call(P,void 0,R,t,this.state.context)),R}finally{U(this,gt,Dt).call(this,{type:"error",error:R})}}finally{y(this,Ce).runNext(this)}}},mt=new WeakMap,Ce=new WeakMap,In=new WeakMap,gt=new WeakSet,Dt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),me.batch(()=>{y(this,mt).forEach(r=>{r.onMutationUpdate(t)}),y(this,Ce).notify({mutation:this,type:"updated",action:t})})},Yf);function Hy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var De,Vi,bf,Vy=(bf=class extends eo{constructor(t={}){super();z(this,De);z(this,Vi);this.config=t,I(this,De,new Map),I(this,Vi,Date.now())}build(t,n,r){const i=new Wy({mutationCache:this,mutationId:++io(this,Vi)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Co(t),r=y(this,De).get(n)??[];r.push(t),y(this,De).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Co(t);if(y(this,De).has(n)){const i=(r=y(this,De).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?y(this,De).delete(n):y(this,De).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=y(this,De).get(Co(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=y(this,De).get(Co(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...y(this,De).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vf(n,r))}findAll(t={}){return this.getAll().filter(n=>vf(t,n))}notify(t){me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return me.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ge))))}},De=new WeakMap,Vi=new WeakMap,bf);function Co(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function ys(e){return{onFetch:(t,n)=>{var d,c,m,w,x;const r=t.options,i=(m=(c=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:c.fetchMore)==null?void 0:m.direction,o=((w=t.state.data)==null?void 0:w.pages)||[],s=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},u=0;const a=async()=>{let v=!1;const k=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},h=Ch(t.options,t.fetchOptions),f=async(p,S,E)=>{if(v)return Promise.reject();if(S==null&&p.pages.length)return Promise.resolve(p);const P={queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};k(P);const C=await h(P),{maxPages:R}=t.options,$=E?zy:$y;return{pages:$(p.pages,C,R),pageParams:$(p.pageParams,S,R)}};if(i&&o.length){const p=i==="backward",S=p?Nh:_u,E={pages:o,pageParams:s},P=S(r,E);l=await f(E,P,p)}else{const p=e??o.length;do{const S=u===0?s[0]??r.initialPageParam:_u(r,l);if(u>0&&S==null)break;l=await f(l,S),u++}while(u{var v,k;return(k=(v=t.options).persister)==null?void 0:k.call(v,a,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=a}}}function _u(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Nh(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function Ky(e,t){return t?_u(e,t)!=null:!1}function Gy(e,t){return!t||!e.getPreviousPageParam?!1:Nh(e,t)!=null}var ne,Kt,Gt,Pr,jr,Yt,_r,Rr,qf,Yy=(qf=class{constructor(e={}){z(this,ne);z(this,Kt);z(this,Gt);z(this,Pr);z(this,jr);z(this,Yt);z(this,_r);z(this,Rr);I(this,ne,e.queryCache||new Qy),I(this,Kt,e.mutationCache||new Vy),I(this,Gt,e.defaultOptions||{}),I(this,Pr,new Map),I(this,jr,new Map),I(this,Yt,0)}mount(){io(this,Yt)._++,y(this,Yt)===1&&(I(this,_r,Wa.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ne).onFocus())})),I(this,Rr,gs.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ne).onOnline())})))}unmount(){var e,t;io(this,Yt)._--,y(this,Yt)===0&&((e=y(this,_r))==null||e.call(this),I(this,_r,void 0),(t=y(this,Rr))==null||t.call(this),I(this,Rr,void 0))}isFetching(e){return y(this,ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,Kt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=y(this,ne).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(wr(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return y(this,ne).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=y(this,ne).get(r.queryHash),o=i==null?void 0:i.state.data,s=Ty(t,o);if(s!==void 0)return y(this,ne).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return me.batch(()=>y(this,ne).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ne);me.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ne),r={type:"active",...e};return me.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=me.batch(()=>y(this,ne).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ge).catch(Ge)}invalidateQueries(e={},t={}){return me.batch(()=>{if(y(this,ne).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=me.batch(()=>y(this,ne).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ge)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ge)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ne).build(this,t);return n.isStaleByTime(wr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ge).catch(Ge)}fetchInfiniteQuery(e){return e.behavior=ys(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ge).catch(Ge)}ensureInfiniteQueryData(e){return e.behavior=ys(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gs.isOnline()?y(this,Kt).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ne)}getMutationCache(){return y(this,Kt)}getDefaultOptions(){return y(this,Gt)}setDefaultOptions(e){I(this,Gt,e)}setQueryDefaults(e,t){y(this,Pr).set(Bi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,Pr).values()];let n={};return t.forEach(r=>{Qi(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){y(this,jr).set(Bi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,jr).values()];let n={};return t.forEach(r=>{Qi(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Gt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ba(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Qa&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Gt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ne).clear(),y(this,Kt).clear()}},ne=new WeakMap,Kt=new WeakMap,Gt=new WeakMap,Pr=new WeakMap,jr=new WeakMap,Yt=new WeakMap,_r=new WeakMap,Rr=new WeakMap,qf),Ne,B,Ki,Ee,Tn,Nr,bt,yt,Gi,Or,Ir,Ln,$n,qt,Tr,H,ci,Ru,Nu,Ou,Iu,Tu,Lu,$u,Ih,Xf,Oh=(Xf=class extends eo{constructor(t,n){super();z(this,H);z(this,Ne);z(this,B);z(this,Ki);z(this,Ee);z(this,Tn);z(this,Nr);z(this,bt);z(this,yt);z(this,Gi);z(this,Or);z(this,Ir);z(this,Ln);z(this,$n);z(this,qt);z(this,Tr,new Set);this.options=n,I(this,Ne,t),I(this,yt,null),I(this,bt,ju()),this.options.experimental_prefetchInRender||y(this,bt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,B).addObserver(this),Sf(y(this,B),this.options)?U(this,H,ci).call(this):this.updateResult(),U(this,H,Iu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zu(y(this,B),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zu(y(this,B),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,U(this,H,Tu).call(this),U(this,H,Lu).call(this),y(this,B).removeObserver(this)}setOptions(t,n){const r=this.options,i=y(this,B);if(this.options=y(this,Ne).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof lt(this.options.enabled,y(this,B))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");U(this,H,$u).call(this),y(this,B).setOptions(this.options),r._defaulted&&!Cu(this.options,r)&&y(this,Ne).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,B),observer:this});const o=this.hasListeners();o&&kf(y(this,B),i,this.options,r)&&U(this,H,ci).call(this),this.updateResult(n),o&&(y(this,B)!==i||lt(this.options.enabled,y(this,B))!==lt(r.enabled,y(this,B))||wr(this.options.staleTime,y(this,B))!==wr(r.staleTime,y(this,B)))&&U(this,H,Ru).call(this);const s=U(this,H,Nu).call(this);o&&(y(this,B)!==i||lt(this.options.enabled,y(this,B))!==lt(r.enabled,y(this,B))||s!==y(this,qt))&&U(this,H,Ou).call(this,s)}getOptimisticResult(t){const n=y(this,Ne).getQueryCache().build(y(this,Ne),t),r=this.createResult(n,t);return qy(this,r)&&(I(this,Ee,r),I(this,Nr,this.options),I(this,Tn,y(this,B).state)),r}getCurrentResult(){return y(this,Ee)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){y(this,Tr).add(t)}getCurrentQuery(){return y(this,B)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Ne).defaultQueryOptions(t),r=y(this,Ne).getQueryCache().build(y(this,Ne),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return U(this,H,ci).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,Ee)))}createResult(t,n){var R;const r=y(this,B),i=this.options,o=y(this,Ee),s=y(this,Tn),l=y(this,Nr),a=t!==r?t.state:y(this,Ki),{state:d}=t;let c={...d},m=!1,w;if(n._optimisticResults){const $=this.hasListeners(),F=!$&&Sf(t,n),oe=$&&kf(t,r,n,i);(F||oe)&&(c={...c,...Rh(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:x,errorUpdatedAt:v,status:k}=c;if(n.select&&c.data!==void 0)if(o&&c.data===(s==null?void 0:s.data)&&n.select===y(this,Gi))w=y(this,Or);else try{I(this,Gi,n.select),w=n.select(c.data),w=Pu(o==null?void 0:o.data,w,n),I(this,Or,w),I(this,yt,null)}catch($){I(this,yt,$)}else w=c.data;if(n.placeholderData!==void 0&&w===void 0&&k==="pending"){let $;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))$=o.data;else if($=typeof n.placeholderData=="function"?n.placeholderData((R=y(this,Ir))==null?void 0:R.state.data,y(this,Ir)):n.placeholderData,n.select&&$!==void 0)try{$=n.select($),I(this,yt,null)}catch(F){I(this,yt,F)}$!==void 0&&(k="success",w=Pu(o==null?void 0:o.data,$,n),m=!0)}y(this,yt)&&(x=y(this,yt),w=y(this,Or),v=Date.now(),k="error");const h=c.fetchStatus==="fetching",f=k==="pending",p=k==="error",S=f&&h,E=w!==void 0,C={status:k,fetchStatus:c.fetchStatus,isPending:f,isSuccess:k==="success",isError:p,isInitialLoading:S,isLoading:S,data:w,dataUpdatedAt:c.dataUpdatedAt,error:x,errorUpdatedAt:v,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>a.dataUpdateCount||c.errorUpdateCount>a.errorUpdateCount,isFetching:h,isRefetching:h&&!f,isLoadingError:p&&!E,isPaused:c.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:p&&E,isStale:Ha(t,n),refetch:this.refetch,promise:y(this,bt)};if(this.options.experimental_prefetchInRender){const $=Ve=>{C.status==="error"?Ve.reject(C.error):C.data!==void 0&&Ve.resolve(C.data)},F=()=>{const Ve=I(this,bt,C.promise=ju());$(Ve)},oe=y(this,bt);switch(oe.status){case"pending":t.queryHash===r.queryHash&&$(oe);break;case"fulfilled":(C.status==="error"||C.data!==oe.value)&&F();break;case"rejected":(C.status!=="error"||C.error!==oe.reason)&&F();break}}return C}updateResult(t){const n=y(this,Ee),r=this.createResult(y(this,B),this.options);if(I(this,Tn,y(this,B).state),I(this,Nr,this.options),y(this,Tn).data!==void 0&&I(this,Ir,y(this,B)),Cu(r,n))return;I(this,Ee,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!y(this,Tr).size)return!0;const u=new Set(l??y(this,Tr));return this.options.throwOnError&&u.add("error"),Object.keys(y(this,Ee)).some(a=>{const d=a;return y(this,Ee)[d]!==n[d]&&u.has(d)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),U(this,H,Ih).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&U(this,H,Iu).call(this)}},Ne=new WeakMap,B=new WeakMap,Ki=new WeakMap,Ee=new WeakMap,Tn=new WeakMap,Nr=new WeakMap,bt=new WeakMap,yt=new WeakMap,Gi=new WeakMap,Or=new WeakMap,Ir=new WeakMap,Ln=new WeakMap,$n=new WeakMap,qt=new WeakMap,Tr=new WeakMap,H=new WeakSet,ci=function(t){U(this,H,$u).call(this);let n=y(this,B).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ge)),n},Ru=function(){U(this,H,Tu).call(this);const t=wr(this.options.staleTime,y(this,B));if(Hn||y(this,Ee).isStale||!ku(t))return;const r=Sh(y(this,Ee).dataUpdatedAt,t)+1;I(this,Ln,setTimeout(()=>{y(this,Ee).isStale||this.updateResult()},r))},Nu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,B)):this.options.refetchInterval)??!1},Ou=function(t){U(this,H,Lu).call(this),I(this,qt,t),!(Hn||lt(this.options.enabled,y(this,B))===!1||!ku(y(this,qt))||y(this,qt)===0)&&I(this,$n,setInterval(()=>{(this.options.refetchIntervalInBackground||Wa.isFocused())&&U(this,H,ci).call(this)},y(this,qt)))},Iu=function(){U(this,H,Ru).call(this),U(this,H,Ou).call(this,U(this,H,Nu).call(this))},Tu=function(){y(this,Ln)&&(clearTimeout(y(this,Ln)),I(this,Ln,void 0))},Lu=function(){y(this,$n)&&(clearInterval(y(this,$n)),I(this,$n,void 0))},$u=function(){const t=y(this,Ne).getQueryCache().build(y(this,Ne),this.options);if(t===y(this,B))return;const n=y(this,B);I(this,B,t),I(this,Ki,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Ih=function(t){me.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,Ee))}),y(this,Ne).getQueryCache().notify({query:y(this,B),type:"observerResultsUpdated"})})},Xf);function by(e,t){return lt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Sf(e,t){return by(e,t)||e.state.data!==void 0&&zu(e,t,t.refetchOnMount)}function zu(e,t,n){if(lt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ha(e,t)}return!1}function kf(e,t,n,r){return(e!==t||lt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ha(e,n)}function Ha(e,t){return lt(t.enabled,e)!==!1&&e.isStaleByTime(wr(t.staleTime,e))}function qy(e,t){return!Cu(e.getCurrentResult(),t)}var Xy=class extends Oh{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:ys()},t)}getOptimisticResult(e){return e.behavior=ys(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var x,v;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:s,isRefetchError:l}=r,u=(v=(x=n.fetchMeta)==null?void 0:x.fetchMore)==null?void 0:v.direction,a=s&&u==="forward",d=i&&u==="forward",c=s&&u==="backward",m=i&&u==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Ky(t,n.data),hasPreviousPage:Gy(t,n.data),isFetchNextPageError:a,isFetchingNextPage:d,isFetchPreviousPageError:c,isFetchingPreviousPage:m,isRefetchError:l&&!a&&!c,isRefetching:o&&!d&&!m}}},Th=_.createContext(void 0),Jy=e=>{const t=_.useContext(Th);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Zy=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(Th.Provider,{value:e,children:t})),Lh=_.createContext(!1),ev=()=>_.useContext(Lh);Lh.Provider;function tv(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var nv=_.createContext(tv()),rv=()=>_.useContext(nv);function iv(e,t){return typeof e=="function"?e(...t):!!e}function ov(){}var sv=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},lv=e=>{_.useEffect(()=>{e.clearReset()},[e])},uv=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&iv(n,[e.error,r]),av=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},cv=(e,t)=>e.isLoading&&e.isFetching&&!t,fv=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Cf=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function $h(e,t,n){var d,c,m,w,x;const r=Jy(),i=ev(),o=rv(),s=r.defaultQueryOptions(e);(c=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||c.call(d,s),s._optimisticResults=i?"isRestoring":"optimistic",av(s),sv(s,o),lv(o);const l=!r.getQueryCache().get(s.queryHash),[u]=_.useState(()=>new t(r,s)),a=u.getOptimisticResult(s);if(_.useSyncExternalStore(_.useCallback(v=>{const k=i?()=>{}:u.subscribe(me.batchCalls(v));return u.updateResult(),k},[u,i]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),_.useEffect(()=>{u.setOptions(s,{listeners:!1})},[s,u]),fv(s,a))throw Cf(s,u,o);if(uv({result:a,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw a.error;if((w=(m=r.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||w.call(m,s,a),s.experimental_prefetchInRender&&!Hn&&cv(a,i)){const v=l?Cf(s,u,o):(x=r.getQueryCache().get(s.queryHash))==null?void 0:x.promise;v==null||v.catch(ov).finally(()=>{u.hasListeners()||u.updateResult()})}return s.notifyOnChangeProps?a:u.trackResult(a)}function Ef(e,t){return $h(e,Oh)}function dv(e,t){return $h(e,Xy)}var Te=function(){return Te=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?de(br,--et):0,Br--,se===10&&(Br=1,Us--),se}function ct(){return se=et2||Mu(se)>3?"":" "}function kv(e,t){for(;--t&&ct()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return Qs(e,Uo()+(t<6&&Mn()==32&&ct()==32))}function Du(e){for(;ct();)switch(se){case e:return et;case 34:case 39:e!==34&&e!==39&&Du(se);break;case 40:e===41&&Du(e);break;case 92:ct();break}return et}function Cv(e,t){for(;ct()&&e+se!==57;)if(e+se===84&&Mn()===47)break;return"/*"+Qs(t,et-1)+"*"+Ka(e===47?e:ct())}function Ev(e){for(;!Mu(Mn());)ct();return Qs(e,et)}function Pv(e){return xv(Bo("",null,null,null,[""],e=wv(e),0,[0],e))}function Bo(e,t,n,r,i,o,s,l,u){for(var a=0,d=0,c=s,m=0,w=0,x=0,v=1,k=1,h=1,f=0,p="",S=i,E=o,P=r,C=p;k;)switch(x=f,f=ct()){case 40:if(x!=108&&de(C,c-1)==58){Ao(C+=D(Cl(f),"&","&\f"),"&\f",Mh(a?l[a-1]:0))!=-1&&(h=-1);break}case 34:case 39:case 91:C+=Cl(f);break;case 9:case 10:case 13:case 32:C+=Sv(x);break;case 92:C+=kv(Uo()-1,7);continue;case 47:switch(Mn()){case 42:case 47:fi(jv(Cv(ct(),Uo()),t,n,u),u);break;default:C+="/"}break;case 123*v:l[a++]=vt(C)*h;case 125*v:case 59:case 0:switch(f){case 0:case 125:k=0;case 59+d:h==-1&&(C=D(C,/\f/g,"")),w>0&&vt(C)-c&&fi(w>32?_f(C+";",r,n,c-1,u):_f(D(C," ","")+";",r,n,c-2,u),u);break;case 59:C+=";";default:if(fi(P=jf(C,t,n,a,d,i,l,p,S=[],E=[],c,o),o),f===123)if(d===0)Bo(C,t,P,P,S,o,c,l,E);else switch(m===99&&de(C,3)===110?100:m){case 100:case 108:case 109:case 115:Bo(e,P,P,r&&fi(jf(e,P,P,0,0,i,l,p,i,S=[],c,E),E),i,E,c,l,r?S:E);break;default:Bo(C,P,P,P,[""],E,0,l,E)}}a=d=w=0,v=h=1,p=C="",c=s;break;case 58:c=1+vt(C),w=x;default:if(v<1){if(f==123)--v;else if(f==125&&v++==0&&vv()==125)continue}switch(C+=Ka(f),f*v){case 38:h=d>0?1:(C+="\f",-1);break;case 44:l[a++]=(vt(C)-1)*h,h=1;break;case 64:Mn()===45&&(C+=Cl(ct())),m=Mn(),d=c=vt(p=C+=Ev(Uo())),f++;break;case 45:x===45&&vt(C)==2&&(v=0)}}return o}function jf(e,t,n,r,i,o,s,l,u,a,d,c){for(var m=i-1,w=i===0?o:[""],x=Ah(w),v=0,k=0,h=0;v0?w[f]+" "+p:D(p,/&\f/g,w[f])))&&(u[h++]=S);return Bs(e,t,n,i===0?As:l,u,a,d,c)}function jv(e,t,n,r){return Bs(e,t,n,zh,Ka(yv()),Ur(e,2,-2),0,r)}function _f(e,t,n,r,i){return Bs(e,t,n,Va,Ur(e,0,r),Ur(e,r+1,-1),r,i)}function Bh(e,t,n){switch(mv(e,t)){case 5103:return W+"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 W+e+e;case 4789:return Si+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+Si+e+q+e+e;case 5936:switch(de(e,t+11)){case 114:return W+e+q+D(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+q+D(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+q+D(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return W+e+q+e+e;case 6165:return W+e+q+"flex-"+e+e;case 5187:return W+e+D(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return W+e+q+"flex-item-"+D(e,/flex-|-self/g,"")+(Pt(e,/flex-|baseline/)?"":q+"grid-row-"+D(e,/flex-|-self/g,""))+e;case 4675:return W+e+q+"flex-line-pack"+D(e,/align-content|flex-|-self/g,"")+e;case 5548:return W+e+q+D(e,"shrink","negative")+e;case 5292:return W+e+q+D(e,"basis","preferred-size")+e;case 6060:return W+"box-"+D(e,"-grow","")+W+e+q+D(e,"grow","positive")+e;case 4554:return W+D(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return D(D(D(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return D(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return D(D(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4200:if(!Pt(e,/flex-|baseline/))return q+"grid-column-align"+Ur(e,t)+e;break;case 2592:case 3360:return q+D(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Pt(r.props,/grid-\w+-end/)})?~Ao(e+(n=n[t].value),"span",0)?e:q+D(e,"-start","")+e+q+"grid-row-span:"+(~Ao(n,"span",0)?Pt(n,/\d+/):+Pt(n,/\d+/)-+Pt(e,/\d+/))+";":q+D(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Pt(r.props,/grid-\w+-start/)})?e:q+D(D(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return D(e,/(.+)-inline(.+)/,W+"$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(vt(e)-1-t>6)switch(de(e,t+1)){case 109:if(de(e,t+4)!==45)break;case 102:return D(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+Si+(de(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ao(e,"stretch",0)?Bh(D(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return D(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,l,u,a){return q+i+":"+o+a+(s?q+i+"-span:"+(l?u:+u-+o)+a:"")+e});case 4949:if(de(e,t+6)===121)return D(e,":",":"+W)+e;break;case 6444:switch(de(e,de(e,14)===45?18:11)){case 120:return D(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+W+(de(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+q+"$2box$3")+e;case 100:return D(e,":",":"+q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return D(e,"scroll-","scroll-snap-")+e}return e}function ws(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Va:e.return=Bh(e.value,e.length,n);return;case Fh:return ws([At(e,{value:D(e.value,"@","@"+W)})],r);case As:if(e.length)return gv(n=e.props,function(i){switch(Pt(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Jn(At(e,{props:[D(i,/:(read-\w+)/,":"+Si+"$1")]})),Jn(At(e,{props:[i]})),Fu(e,{props:Pf(n,r)});break;case"::placeholder":Jn(At(e,{props:[D(i,/:(plac\w+)/,":"+W+"input-$1")]})),Jn(At(e,{props:[D(i,/:(plac\w+)/,":"+Si+"$1")]})),Jn(At(e,{props:[D(i,/:(plac\w+)/,q+"input-$1")]})),Jn(At(e,{props:[i]})),Fu(e,{props:Pf(n,r)});break}return""})}}var Iv={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},Me={},Qr=typeof process<"u"&&Me!==void 0&&(Me.REACT_APP_SC_ATTR||Me.SC_ATTR)||"data-styled",Qh="active",Wh="data-styled-version",Ws="6.1.13",Ga=`/*!sc*/ -`,xs=typeof window<"u"&&"HTMLElement"in window,Tv=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Me!==void 0&&Me.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Me.REACT_APP_SC_DISABLE_SPEEDY!==""?Me.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Me.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Me!==void 0&&Me.SC_DISABLE_SPEEDY!==void 0&&Me.SC_DISABLE_SPEEDY!==""&&Me.SC_DISABLE_SPEEDY!=="false"&&Me.SC_DISABLE_SPEEDY),Hs=Object.freeze([]),Wr=Object.freeze({});function Lv(e,t,n){return n===void 0&&(n=Wr),e.theme!==n.theme&&e.theme||t||n.theme}var Hh=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"]),$v=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,zv=/(^-|-$)/g;function Rf(e){return e.replace($v,"-").replace(zv,"")}var Fv=/(a)(d)/gi,Eo=52,Nf=function(e){return String.fromCharCode(e+(e>25?39:97))};function Au(e){var t,n="";for(t=Math.abs(e);t>Eo;t=t/Eo|0)n=Nf(t%Eo)+n;return(Nf(t%Eo)+n).replace(Fv,"$1-$2")}var El,Vh=5381,dr=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Kh=function(e){return dr(Vh,e)};function Mv(e){return Au(Kh(e)>>>0)}function Dv(e){return e.displayName||e.name||"Component"}function Pl(e){return typeof e=="string"&&!0}var Gh=typeof Symbol=="function"&&Symbol.for,Yh=Gh?Symbol.for("react.memo"):60115,Av=Gh?Symbol.for("react.forward_ref"):60112,Uv={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bv={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},bh={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qv=((El={})[Av]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},El[Yh]=bh,El);function Of(e){return("type"in(t=e)&&t.type.$$typeof)===Yh?bh:"$$typeof"in e?Qv[e.$$typeof]:Uv;var t}var Wv=Object.defineProperty,Hv=Object.getOwnPropertyNames,If=Object.getOwnPropertySymbols,Vv=Object.getOwnPropertyDescriptor,Kv=Object.getPrototypeOf,Tf=Object.prototype;function qh(e,t,n){if(typeof t!="string"){if(Tf){var r=Kv(t);r&&r!==Tf&&qh(e,r,n)}var i=Hv(t);If&&(i=i.concat(If(t)));for(var o=Of(e),s=Of(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var Gv=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,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw to(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,s=i;s=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&&(k+="".concat(h,","))}),u+="".concat(x).concat(v,'{content:"').concat(k,'"}').concat(Ga)},d=0;d0?".".concat(t):m},d=u.slice();d.push(function(m){m.type===As&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(i1,n).replace(r,a))}),s.prefix&&d.push(Ov),d.push(_v);var c=function(m,w,x,v){w===void 0&&(w=""),x===void 0&&(x=""),v===void 0&&(v="&"),t=v,n=w,r=new RegExp("\\".concat(n,"\\b"),"g");var k=m.replace(o1,""),h=Pv(x||w?"".concat(x," ").concat(w," { ").concat(k," }"):k);s.namespace&&(h=Zh(h,s.namespace));var f=[];return ws(h,Rv(d.concat(Nv(function(p){return f.push(p)})))),f};return c.hash=u.length?u.reduce(function(m,w){return w.name||to(15),dr(m,w.name)},Vh).toString():"",c}var l1=new Jh,Bu=s1(),em=cn.createContext({shouldForwardProp:void 0,styleSheet:l1,stylis:Bu});em.Consumer;cn.createContext(void 0);function Ff(){return _.useContext(em)}var u1=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=Bu);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ba(this,function(){throw to(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Bu),this.name+t.hash},e}(),a1=function(e){return e>="A"&&e<="Z"};function Mf(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,s)){var l=r(o,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}i=_n(i,s),this.staticRulesId=s}else{for(var u=dr(this.baseHash,r.hash),a="",d=0;d>>0);n.hasNameForId(this.componentId,w)||n.insertRules(this.componentId,w,r(a,".".concat(w),void 0,this.componentId)),i=_n(i,w)}}return i},e}(),rm=cn.createContext(void 0);rm.Consumer;var jl={};function p1(e,t,n){var r=Ya(e),i=e,o=!Pl(e),s=t.attrs,l=s===void 0?Hs:s,u=t.componentId,a=u===void 0?function(S,E){var P=typeof S!="string"?"sc":Rf(S);jl[P]=(jl[P]||0)+1;var C="".concat(P,"-").concat(Mv(Ws+P+jl[P]));return E?"".concat(E,"-").concat(C):C}(t.displayName,t.parentComponentId):u,d=t.displayName,c=d===void 0?function(S){return Pl(S)?"styled.".concat(S):"Styled(".concat(Dv(S),")")}(e):d,m=t.displayName&&t.componentId?"".concat(Rf(t.displayName),"-").concat(t.componentId):t.componentId||a,w=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var v=i.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;x=function(S,E){return v(S,E)&&k(S,E)}}else x=v}var h=new d1(n,m,r?i.componentStyle:void 0);function f(S,E){return function(P,C,R){var $=P.attrs,F=P.componentStyle,oe=P.defaultProps,Ve=P.foldedComponentIds,yn=P.styledComponentId,no=P.target,Ks=cn.useContext(rm),qr=Ff(),vn=P.shouldForwardProp||qr.shouldForwardProp,N=Lv(C,Ks,oe)||Wr,L=function(zt,Fe,kt){for(var Xr,xn=Te(Te({},Fe),{className:void 0,theme:kt}),Gs=0;Gs=0)&&(n[i]=e[i]);return n}function Cy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ey(e,t){return e.button===0&&(!t||t==="_self")&&!Cy(e)}const Py=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],jy="6";try{window.__reactRouterVersion=jy}catch{}const _y="startTransition",hf=km[_y];function Ry(e){let{basename:t,children:n,future:r,window:i}=e,o=_.useRef();o.current==null&&(o.current=$0({window:i,v5Compat:!0}));let s=o.current,[l,u]=_.useState({action:s.action,location:s.location}),{v7_startTransition:a}=r||{},d=_.useCallback(c=>{a&&hf?hf(()=>u(c)):u(c)},[u,a]);return _.useLayoutEffect(()=>s.listen(d),[s,d]),_.createElement(xy,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const Ny=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Oy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,er=_.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:u,to:a,preventScrollReset:d,viewTransition:c}=t,m=ky(t,Py),{basename:w}=_.useContext(Yn),x,v=!1;if(typeof a=="string"&&Oy.test(a)&&(x=a,Ny))try{let p=new URL(window.location.href),S=a.startsWith("//")?new URL(p.protocol+a):new URL(a),E=Aa(S.pathname,w);S.origin===p.origin&&E!=null?a=E+S.search+S.hash:v=!0}catch{}let k=sy(a,{relative:i}),h=Iy(a,{replace:s,state:l,target:u,preventScrollReset:d,relative:i,viewTransition:c});function f(p){r&&r(p),p.defaultPrevented||h(p)}return _.createElement("a",Su({},m,{href:x||k,onClick:v||o?r:f,ref:n,target:u}))});var mf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(mf||(mf={}));var gf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gf||(gf={}));function Iy(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:l}=t===void 0?{}:t,u=Xn(),a=qn(),d=vh(e,{relative:s});return _.useCallback(c=>{if(Ey(c,n)){c.preventDefault();let m=r!==void 0?r:hs(a)===hs(d);u(e,{replace:m,state:i,preventScrollReset:o,relative:s,viewTransition:l})}},[a,u,d,r,i,n,e,o,s,l])}var eo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Hn=typeof window>"u"||"Deno"in globalThis;function Ge(){}function Ty(e,t){return typeof e=="function"?e(t):e}function ku(e){return typeof e=="number"&&e>=0&&e!==1/0}function Sh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xr(e,t){return typeof e=="function"?e(t):e}function lt(e,t){return typeof e=="function"?e(t):e}function yf(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==Ba(s,t.options))return!1}else if(!Qi(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||o&&!o(t))}function vf(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Bi(t.options.mutationKey)!==Bi(o))return!1}else if(!Qi(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ba(e,t){return((t==null?void 0:t.queryKeyHashFn)||Bi)(e)}function Bi(e){return JSON.stringify(e,(t,n)=>Eu(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Qi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qi(e[n],t[n])):!1}function kh(e,t){if(e===t)return e;const n=wf(e)&&wf(t);if(n||Eu(e)&&Eu(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,l=n?[]:{};let u=0;for(let a=0;a{setTimeout(t,e)})}function Pu(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?kh(e,t):t}function $y(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function zy(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qa=Symbol();function Ch(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Qa?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Rn,Ht,Sr,Wf,Fy=(Wf=class extends eo{constructor(){super();z(this,Rn);z(this,Ht);z(this,Sr);I(this,Sr,t=>{if(!Hn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,Ht)||this.setEventListener(y(this,Sr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Ht))==null||t.call(this),I(this,Ht,void 0))}setEventListener(t){var n;I(this,Sr,t),(n=y(this,Ht))==null||n.call(this),I(this,Ht,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,Rn)!==t&&(I(this,Rn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,Rn)=="boolean"?y(this,Rn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Rn=new WeakMap,Ht=new WeakMap,Sr=new WeakMap,Wf),Wa=new Fy,kr,Vt,Cr,Hf,My=(Hf=class extends eo{constructor(){super();z(this,kr,!0);z(this,Vt);z(this,Cr);I(this,Cr,t=>{if(!Hn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,Vt)||this.setEventListener(y(this,Cr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Vt))==null||t.call(this),I(this,Vt,void 0))}setEventListener(t){var n;I(this,Cr,t),(n=y(this,Vt))==null||n.call(this),I(this,Vt,t(this.setOnline.bind(this)))}setOnline(t){y(this,kr)!==t&&(I(this,kr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,kr)}},kr=new WeakMap,Vt=new WeakMap,Cr=new WeakMap,Hf),gs=new My;function ju(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Dy(e){return Math.min(1e3*2**e,3e4)}function Eh(e){return(e??"online")==="online"?gs.isOnline():!0}var Ph=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function kl(e){return e instanceof Ph}function jh(e){let t=!1,n=0,r=!1,i;const o=ju(),s=v=>{var k;r||(m(new Ph(v)),(k=e.abort)==null||k.call(e))},l=()=>{t=!0},u=()=>{t=!1},a=()=>Wa.isFocused()&&(e.networkMode==="always"||gs.isOnline())&&e.canRun(),d=()=>Eh(e.networkMode)&&e.canRun(),c=v=>{var k;r||(r=!0,(k=e.onSuccess)==null||k.call(e,v),i==null||i(),o.resolve(v))},m=v=>{var k;r||(r=!0,(k=e.onError)==null||k.call(e,v),i==null||i(),o.reject(v))},w=()=>new Promise(v=>{var k;i=h=>{(r||a())&&v(h)},(k=e.onPause)==null||k.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),x=()=>{if(r)return;let v;const k=n===0?e.initialPromise:void 0;try{v=k??e.fn()}catch(h){v=Promise.reject(h)}Promise.resolve(v).then(c).catch(h=>{var P;if(r)return;const f=e.retry??(Hn?0:3),p=e.retryDelay??Dy,S=typeof p=="function"?p(n,h):p,E=f===!0||typeof f=="number"&&na()?void 0:w()).then(()=>{t?m(h):x()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:l,continueRetry:u,canStart:d,start:()=>(d()?x():w().then(x),o)}}function Ay(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=l=>setTimeout(l,0);const o=l=>{t?e.push(l):i(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(u=>{n(u)})})})};return{batch:l=>{let u;t++;try{u=l()}finally{t--,t||s()}return u},batchCalls:l=>(...u)=>{o(()=>{l(...u)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var me=Ay(),Nn,Vf,_h=(Vf=class{constructor(){z(this,Nn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ku(this.gcTime)&&I(this,Nn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hn?1/0:5*60*1e3))}clearGcTimeout(){y(this,Nn)&&(clearTimeout(y(this,Nn)),I(this,Nn,void 0))}},Nn=new WeakMap,Vf),Er,Pr,Ke,xe,Hi,On,it,Ct,Kf,Uy=(Kf=class extends _h{constructor(t){super();z(this,it);z(this,Er);z(this,Pr);z(this,Ke);z(this,xe);z(this,Hi);z(this,On);I(this,On,!1),I(this,Hi,t.defaultOptions),this.setOptions(t.options),this.observers=[],I(this,Ke,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,I(this,Er,By(this.options)),this.state=t.state??y(this,Er),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,xe))==null?void 0:t.promise}setOptions(t){this.options={...y(this,Hi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Ke).remove(this)}setData(t,n){const r=Pu(this.state.data,t,this.options);return U(this,it,Ct).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){U(this,it,Ct).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,xe))==null?void 0:r.promise;return(i=y(this,xe))==null||i.cancel(t),n?n.then(Ge).catch(Ge):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,Er))}isActive(){return this.observers.some(t=>lt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Sh(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,Ke).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,xe)&&(y(this,On)?y(this,xe).cancel({revert:!0}):y(this,xe).cancelRetry()),this.scheduleGc()),y(this,Ke).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||U(this,it,Ct).call(this,{type:"invalidate"})}fetch(t,n){var u,a,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,xe))return y(this,xe).continueRetry(),y(this,xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(m=>m.options.queryFn);c&&this.setOptions(c.options)}const r=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(I(this,On,!0),r.signal)})},o=()=>{const c=Ch(this.options,n),m={queryKey:this.queryKey,meta:this.meta};return i(m),I(this,On,!1),this.options.persister?this.options.persister(c,m,this):c(m)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(u=this.options.behavior)==null||u.onFetch(s,this),I(this,Pr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=s.fetchOptions)==null?void 0:a.meta))&&U(this,it,Ct).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const l=c=>{var m,w,x,v;kl(c)&&c.silent||U(this,it,Ct).call(this,{type:"error",error:c}),kl(c)||((w=(m=y(this,Ke).config).onError)==null||w.call(m,c,this),(v=(x=y(this,Ke).config).onSettled)==null||v.call(x,this.state.data,c,this)),this.scheduleGc()};return I(this,xe,jh({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{var m,w,x,v;if(c===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(k){l(k);return}(w=(m=y(this,Ke).config).onSuccess)==null||w.call(m,c,this),(v=(x=y(this,Ke).config).onSettled)==null||v.call(x,c,this.state.error,this),this.scheduleGc()},onError:l,onFail:(c,m)=>{U(this,it,Ct).call(this,{type:"failed",failureCount:c,error:m})},onPause:()=>{U(this,it,Ct).call(this,{type:"pause"})},onContinue:()=>{U(this,it,Ct).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),y(this,xe).start()}},Er=new WeakMap,Pr=new WeakMap,Ke=new WeakMap,xe=new WeakMap,Hi=new WeakMap,On=new WeakMap,it=new WeakSet,Ct=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Rh(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return kl(i)&&i.revert&&y(this,Pr)?{...y(this,Pr),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),me.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,Ke).notify({query:this,type:"updated",action:t})})},Kf);function Rh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Eh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function By(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ht,Gf,Qy=(Gf=class extends eo{constructor(t={}){super();z(this,ht);this.config=t,I(this,ht,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Ba(i,n);let s=this.get(o);return s||(s=new Uy({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){y(this,ht).has(t.queryHash)||(y(this,ht).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,ht).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,ht).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,ht).get(t)}getAll(){return[...y(this,ht).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>yf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>yf(t,r)):n}notify(t){me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){me.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){me.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ht=new WeakMap,Gf),mt,Ce,In,gt,Dt,Yf,Wy=(Yf=class extends _h{constructor(t){super();z(this,gt);z(this,mt);z(this,Ce);z(this,In);this.mutationId=t.mutationId,I(this,Ce,t.mutationCache),I(this,mt,[]),this.state=t.state||Hy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,mt).includes(t)||(y(this,mt).push(t),this.clearGcTimeout(),y(this,Ce).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){I(this,mt,y(this,mt).filter(n=>n!==t)),this.scheduleGc(),y(this,Ce).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,mt).length||(this.state.status==="pending"?this.scheduleGc():y(this,Ce).remove(this))}continue(){var t;return((t=y(this,In))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,l,u,a,d,c,m,w,x,v,k,h,f,p,S,E,P,C;I(this,In,jh({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,$)=>{U(this,gt,Dt).call(this,{type:"failed",failureCount:R,error:$})},onPause:()=>{U(this,gt,Dt).call(this,{type:"pause"})},onContinue:()=>{U(this,gt,Dt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,Ce).canRun(this)}));const n=this.state.status==="pending",r=!y(this,In).canStart();try{if(!n){U(this,gt,Dt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=y(this,Ce).config).onMutate)==null?void 0:o.call(i,t,this));const $=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t));$!==this.state.context&&U(this,gt,Dt).call(this,{type:"pending",context:$,variables:t,isPaused:r})}const R=await y(this,In).start();return await((a=(u=y(this,Ce).config).onSuccess)==null?void 0:a.call(u,R,t,this.state.context,this)),await((c=(d=this.options).onSuccess)==null?void 0:c.call(d,R,t,this.state.context)),await((w=(m=y(this,Ce).config).onSettled)==null?void 0:w.call(m,R,null,this.state.variables,this.state.context,this)),await((v=(x=this.options).onSettled)==null?void 0:v.call(x,R,null,t,this.state.context)),U(this,gt,Dt).call(this,{type:"success",data:R}),R}catch(R){try{throw await((h=(k=y(this,Ce).config).onError)==null?void 0:h.call(k,R,t,this.state.context,this)),await((p=(f=this.options).onError)==null?void 0:p.call(f,R,t,this.state.context)),await((E=(S=y(this,Ce).config).onSettled)==null?void 0:E.call(S,void 0,R,this.state.variables,this.state.context,this)),await((C=(P=this.options).onSettled)==null?void 0:C.call(P,void 0,R,t,this.state.context)),R}finally{U(this,gt,Dt).call(this,{type:"error",error:R})}}finally{y(this,Ce).runNext(this)}}},mt=new WeakMap,Ce=new WeakMap,In=new WeakMap,gt=new WeakSet,Dt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),me.batch(()=>{y(this,mt).forEach(r=>{r.onMutationUpdate(t)}),y(this,Ce).notify({mutation:this,type:"updated",action:t})})},Yf);function Hy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var De,Vi,bf,Vy=(bf=class extends eo{constructor(t={}){super();z(this,De);z(this,Vi);this.config=t,I(this,De,new Map),I(this,Vi,Date.now())}build(t,n,r){const i=new Wy({mutationCache:this,mutationId:++io(this,Vi)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Co(t),r=y(this,De).get(n)??[];r.push(t),y(this,De).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Co(t);if(y(this,De).has(n)){const i=(r=y(this,De).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?y(this,De).delete(n):y(this,De).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=y(this,De).get(Co(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=y(this,De).get(Co(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...y(this,De).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vf(n,r))}findAll(t={}){return this.getAll().filter(n=>vf(t,n))}notify(t){me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return me.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ge))))}},De=new WeakMap,Vi=new WeakMap,bf);function Co(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function ys(e){return{onFetch:(t,n)=>{var d,c,m,w,x;const r=t.options,i=(m=(c=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:c.fetchMore)==null?void 0:m.direction,o=((w=t.state.data)==null?void 0:w.pages)||[],s=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},u=0;const a=async()=>{let v=!1;const k=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},h=Ch(t.options,t.fetchOptions),f=async(p,S,E)=>{if(v)return Promise.reject();if(S==null&&p.pages.length)return Promise.resolve(p);const P={queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};k(P);const C=await h(P),{maxPages:R}=t.options,$=E?zy:$y;return{pages:$(p.pages,C,R),pageParams:$(p.pageParams,S,R)}};if(i&&o.length){const p=i==="backward",S=p?Nh:_u,E={pages:o,pageParams:s},P=S(r,E);l=await f(E,P,p)}else{const p=e??o.length;do{const S=u===0?s[0]??r.initialPageParam:_u(r,l);if(u>0&&S==null)break;l=await f(l,S),u++}while(u{var v,k;return(k=(v=t.options).persister)==null?void 0:k.call(v,a,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=a}}}function _u(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Nh(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function Ky(e,t){return t?_u(e,t)!=null:!1}function Gy(e,t){return!t||!e.getPreviousPageParam?!1:Nh(e,t)!=null}var ne,Kt,Gt,jr,_r,Yt,Rr,Nr,qf,Yy=(qf=class{constructor(e={}){z(this,ne);z(this,Kt);z(this,Gt);z(this,jr);z(this,_r);z(this,Yt);z(this,Rr);z(this,Nr);I(this,ne,e.queryCache||new Qy),I(this,Kt,e.mutationCache||new Vy),I(this,Gt,e.defaultOptions||{}),I(this,jr,new Map),I(this,_r,new Map),I(this,Yt,0)}mount(){io(this,Yt)._++,y(this,Yt)===1&&(I(this,Rr,Wa.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ne).onFocus())})),I(this,Nr,gs.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ne).onOnline())})))}unmount(){var e,t;io(this,Yt)._--,y(this,Yt)===0&&((e=y(this,Rr))==null||e.call(this),I(this,Rr,void 0),(t=y(this,Nr))==null||t.call(this),I(this,Nr,void 0))}isFetching(e){return y(this,ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,Kt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=y(this,ne).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(xr(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return y(this,ne).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=y(this,ne).get(r.queryHash),o=i==null?void 0:i.state.data,s=Ty(t,o);if(s!==void 0)return y(this,ne).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return me.batch(()=>y(this,ne).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ne);me.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ne),r={type:"active",...e};return me.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=me.batch(()=>y(this,ne).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ge).catch(Ge)}invalidateQueries(e={},t={}){return me.batch(()=>{if(y(this,ne).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=me.batch(()=>y(this,ne).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ge)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ge)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ne).build(this,t);return n.isStaleByTime(xr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ge).catch(Ge)}fetchInfiniteQuery(e){return e.behavior=ys(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ge).catch(Ge)}ensureInfiniteQueryData(e){return e.behavior=ys(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gs.isOnline()?y(this,Kt).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ne)}getMutationCache(){return y(this,Kt)}getDefaultOptions(){return y(this,Gt)}setDefaultOptions(e){I(this,Gt,e)}setQueryDefaults(e,t){y(this,jr).set(Bi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,jr).values()];let n={};return t.forEach(r=>{Qi(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){y(this,_r).set(Bi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,_r).values()];let n={};return t.forEach(r=>{Qi(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Gt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ba(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Qa&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Gt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ne).clear(),y(this,Kt).clear()}},ne=new WeakMap,Kt=new WeakMap,Gt=new WeakMap,jr=new WeakMap,_r=new WeakMap,Yt=new WeakMap,Rr=new WeakMap,Nr=new WeakMap,qf),Ne,B,Ki,Ee,Tn,Or,bt,yt,Gi,Ir,Tr,Ln,$n,qt,Lr,H,ci,Ru,Nu,Ou,Iu,Tu,Lu,$u,Ih,Xf,Oh=(Xf=class extends eo{constructor(t,n){super();z(this,H);z(this,Ne);z(this,B);z(this,Ki);z(this,Ee);z(this,Tn);z(this,Or);z(this,bt);z(this,yt);z(this,Gi);z(this,Ir);z(this,Tr);z(this,Ln);z(this,$n);z(this,qt);z(this,Lr,new Set);this.options=n,I(this,Ne,t),I(this,yt,null),I(this,bt,ju()),this.options.experimental_prefetchInRender||y(this,bt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,B).addObserver(this),Sf(y(this,B),this.options)?U(this,H,ci).call(this):this.updateResult(),U(this,H,Iu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zu(y(this,B),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zu(y(this,B),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,U(this,H,Tu).call(this),U(this,H,Lu).call(this),y(this,B).removeObserver(this)}setOptions(t,n){const r=this.options,i=y(this,B);if(this.options=y(this,Ne).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof lt(this.options.enabled,y(this,B))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");U(this,H,$u).call(this),y(this,B).setOptions(this.options),r._defaulted&&!Cu(this.options,r)&&y(this,Ne).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,B),observer:this});const o=this.hasListeners();o&&kf(y(this,B),i,this.options,r)&&U(this,H,ci).call(this),this.updateResult(n),o&&(y(this,B)!==i||lt(this.options.enabled,y(this,B))!==lt(r.enabled,y(this,B))||xr(this.options.staleTime,y(this,B))!==xr(r.staleTime,y(this,B)))&&U(this,H,Ru).call(this);const s=U(this,H,Nu).call(this);o&&(y(this,B)!==i||lt(this.options.enabled,y(this,B))!==lt(r.enabled,y(this,B))||s!==y(this,qt))&&U(this,H,Ou).call(this,s)}getOptimisticResult(t){const n=y(this,Ne).getQueryCache().build(y(this,Ne),t),r=this.createResult(n,t);return qy(this,r)&&(I(this,Ee,r),I(this,Or,this.options),I(this,Tn,y(this,B).state)),r}getCurrentResult(){return y(this,Ee)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){y(this,Lr).add(t)}getCurrentQuery(){return y(this,B)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Ne).defaultQueryOptions(t),r=y(this,Ne).getQueryCache().build(y(this,Ne),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return U(this,H,ci).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,Ee)))}createResult(t,n){var R;const r=y(this,B),i=this.options,o=y(this,Ee),s=y(this,Tn),l=y(this,Or),a=t!==r?t.state:y(this,Ki),{state:d}=t;let c={...d},m=!1,w;if(n._optimisticResults){const $=this.hasListeners(),F=!$&&Sf(t,n),oe=$&&kf(t,r,n,i);(F||oe)&&(c={...c,...Rh(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:x,errorUpdatedAt:v,status:k}=c;if(n.select&&c.data!==void 0)if(o&&c.data===(s==null?void 0:s.data)&&n.select===y(this,Gi))w=y(this,Ir);else try{I(this,Gi,n.select),w=n.select(c.data),w=Pu(o==null?void 0:o.data,w,n),I(this,Ir,w),I(this,yt,null)}catch($){I(this,yt,$)}else w=c.data;if(n.placeholderData!==void 0&&w===void 0&&k==="pending"){let $;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))$=o.data;else if($=typeof n.placeholderData=="function"?n.placeholderData((R=y(this,Tr))==null?void 0:R.state.data,y(this,Tr)):n.placeholderData,n.select&&$!==void 0)try{$=n.select($),I(this,yt,null)}catch(F){I(this,yt,F)}$!==void 0&&(k="success",w=Pu(o==null?void 0:o.data,$,n),m=!0)}y(this,yt)&&(x=y(this,yt),w=y(this,Ir),v=Date.now(),k="error");const h=c.fetchStatus==="fetching",f=k==="pending",p=k==="error",S=f&&h,E=w!==void 0,C={status:k,fetchStatus:c.fetchStatus,isPending:f,isSuccess:k==="success",isError:p,isInitialLoading:S,isLoading:S,data:w,dataUpdatedAt:c.dataUpdatedAt,error:x,errorUpdatedAt:v,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>a.dataUpdateCount||c.errorUpdateCount>a.errorUpdateCount,isFetching:h,isRefetching:h&&!f,isLoadingError:p&&!E,isPaused:c.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:p&&E,isStale:Ha(t,n),refetch:this.refetch,promise:y(this,bt)};if(this.options.experimental_prefetchInRender){const $=Ve=>{C.status==="error"?Ve.reject(C.error):C.data!==void 0&&Ve.resolve(C.data)},F=()=>{const Ve=I(this,bt,C.promise=ju());$(Ve)},oe=y(this,bt);switch(oe.status){case"pending":t.queryHash===r.queryHash&&$(oe);break;case"fulfilled":(C.status==="error"||C.data!==oe.value)&&F();break;case"rejected":(C.status!=="error"||C.error!==oe.reason)&&F();break}}return C}updateResult(t){const n=y(this,Ee),r=this.createResult(y(this,B),this.options);if(I(this,Tn,y(this,B).state),I(this,Or,this.options),y(this,Tn).data!==void 0&&I(this,Tr,y(this,B)),Cu(r,n))return;I(this,Ee,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!y(this,Lr).size)return!0;const u=new Set(l??y(this,Lr));return this.options.throwOnError&&u.add("error"),Object.keys(y(this,Ee)).some(a=>{const d=a;return y(this,Ee)[d]!==n[d]&&u.has(d)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),U(this,H,Ih).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&U(this,H,Iu).call(this)}},Ne=new WeakMap,B=new WeakMap,Ki=new WeakMap,Ee=new WeakMap,Tn=new WeakMap,Or=new WeakMap,bt=new WeakMap,yt=new WeakMap,Gi=new WeakMap,Ir=new WeakMap,Tr=new WeakMap,Ln=new WeakMap,$n=new WeakMap,qt=new WeakMap,Lr=new WeakMap,H=new WeakSet,ci=function(t){U(this,H,$u).call(this);let n=y(this,B).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ge)),n},Ru=function(){U(this,H,Tu).call(this);const t=xr(this.options.staleTime,y(this,B));if(Hn||y(this,Ee).isStale||!ku(t))return;const r=Sh(y(this,Ee).dataUpdatedAt,t)+1;I(this,Ln,setTimeout(()=>{y(this,Ee).isStale||this.updateResult()},r))},Nu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,B)):this.options.refetchInterval)??!1},Ou=function(t){U(this,H,Lu).call(this),I(this,qt,t),!(Hn||lt(this.options.enabled,y(this,B))===!1||!ku(y(this,qt))||y(this,qt)===0)&&I(this,$n,setInterval(()=>{(this.options.refetchIntervalInBackground||Wa.isFocused())&&U(this,H,ci).call(this)},y(this,qt)))},Iu=function(){U(this,H,Ru).call(this),U(this,H,Ou).call(this,U(this,H,Nu).call(this))},Tu=function(){y(this,Ln)&&(clearTimeout(y(this,Ln)),I(this,Ln,void 0))},Lu=function(){y(this,$n)&&(clearInterval(y(this,$n)),I(this,$n,void 0))},$u=function(){const t=y(this,Ne).getQueryCache().build(y(this,Ne),this.options);if(t===y(this,B))return;const n=y(this,B);I(this,B,t),I(this,Ki,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Ih=function(t){me.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,Ee))}),y(this,Ne).getQueryCache().notify({query:y(this,B),type:"observerResultsUpdated"})})},Xf);function by(e,t){return lt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Sf(e,t){return by(e,t)||e.state.data!==void 0&&zu(e,t,t.refetchOnMount)}function zu(e,t,n){if(lt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ha(e,t)}return!1}function kf(e,t,n,r){return(e!==t||lt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ha(e,n)}function Ha(e,t){return lt(t.enabled,e)!==!1&&e.isStaleByTime(xr(t.staleTime,e))}function qy(e,t){return!Cu(e.getCurrentResult(),t)}var Xy=class extends Oh{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:ys()},t)}getOptimisticResult(e){return e.behavior=ys(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var x,v;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:s,isRefetchError:l}=r,u=(v=(x=n.fetchMeta)==null?void 0:x.fetchMore)==null?void 0:v.direction,a=s&&u==="forward",d=i&&u==="forward",c=s&&u==="backward",m=i&&u==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Ky(t,n.data),hasPreviousPage:Gy(t,n.data),isFetchNextPageError:a,isFetchingNextPage:d,isFetchPreviousPageError:c,isFetchingPreviousPage:m,isRefetchError:l&&!a&&!c,isRefetching:o&&!d&&!m}}},Th=_.createContext(void 0),Jy=e=>{const t=_.useContext(Th);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Zy=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(Th.Provider,{value:e,children:t})),Lh=_.createContext(!1),ev=()=>_.useContext(Lh);Lh.Provider;function tv(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var nv=_.createContext(tv()),rv=()=>_.useContext(nv);function iv(e,t){return typeof e=="function"?e(...t):!!e}function ov(){}var sv=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},lv=e=>{_.useEffect(()=>{e.clearReset()},[e])},uv=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&iv(n,[e.error,r]),av=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},cv=(e,t)=>e.isLoading&&e.isFetching&&!t,fv=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Cf=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function $h(e,t,n){var d,c,m,w,x;const r=Jy(),i=ev(),o=rv(),s=r.defaultQueryOptions(e);(c=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||c.call(d,s),s._optimisticResults=i?"isRestoring":"optimistic",av(s),sv(s,o),lv(o);const l=!r.getQueryCache().get(s.queryHash),[u]=_.useState(()=>new t(r,s)),a=u.getOptimisticResult(s);if(_.useSyncExternalStore(_.useCallback(v=>{const k=i?()=>{}:u.subscribe(me.batchCalls(v));return u.updateResult(),k},[u,i]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),_.useEffect(()=>{u.setOptions(s,{listeners:!1})},[s,u]),fv(s,a))throw Cf(s,u,o);if(uv({result:a,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw a.error;if((w=(m=r.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||w.call(m,s,a),s.experimental_prefetchInRender&&!Hn&&cv(a,i)){const v=l?Cf(s,u,o):(x=r.getQueryCache().get(s.queryHash))==null?void 0:x.promise;v==null||v.catch(ov).finally(()=>{u.hasListeners()||u.updateResult()})}return s.notifyOnChangeProps?a:u.trackResult(a)}function Ef(e,t){return $h(e,Oh)}function dv(e,t){return $h(e,Xy)}var Te=function(){return Te=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?de(br,--et):0,Qr--,se===10&&(Qr=1,Us--),se}function ct(){return se=et2||Mu(se)>3?"":" "}function kv(e,t){for(;--t&&ct()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return Qs(e,Uo()+(t<6&&Mn()==32&&ct()==32))}function Du(e){for(;ct();)switch(se){case e:return et;case 34:case 39:e!==34&&e!==39&&Du(se);break;case 40:e===41&&Du(e);break;case 92:ct();break}return et}function Cv(e,t){for(;ct()&&e+se!==57;)if(e+se===84&&Mn()===47)break;return"/*"+Qs(t,et-1)+"*"+Ka(e===47?e:ct())}function Ev(e){for(;!Mu(Mn());)ct();return Qs(e,et)}function Pv(e){return xv(Bo("",null,null,null,[""],e=wv(e),0,[0],e))}function Bo(e,t,n,r,i,o,s,l,u){for(var a=0,d=0,c=s,m=0,w=0,x=0,v=1,k=1,h=1,f=0,p="",S=i,E=o,P=r,C=p;k;)switch(x=f,f=ct()){case 40:if(x!=108&&de(C,c-1)==58){Ao(C+=D(Cl(f),"&","&\f"),"&\f",Mh(a?l[a-1]:0))!=-1&&(h=-1);break}case 34:case 39:case 91:C+=Cl(f);break;case 9:case 10:case 13:case 32:C+=Sv(x);break;case 92:C+=kv(Uo()-1,7);continue;case 47:switch(Mn()){case 42:case 47:fi(jv(Cv(ct(),Uo()),t,n,u),u);break;default:C+="/"}break;case 123*v:l[a++]=vt(C)*h;case 125*v:case 59:case 0:switch(f){case 0:case 125:k=0;case 59+d:h==-1&&(C=D(C,/\f/g,"")),w>0&&vt(C)-c&&fi(w>32?_f(C+";",r,n,c-1,u):_f(D(C," ","")+";",r,n,c-2,u),u);break;case 59:C+=";";default:if(fi(P=jf(C,t,n,a,d,i,l,p,S=[],E=[],c,o),o),f===123)if(d===0)Bo(C,t,P,P,S,o,c,l,E);else switch(m===99&&de(C,3)===110?100:m){case 100:case 108:case 109:case 115:Bo(e,P,P,r&&fi(jf(e,P,P,0,0,i,l,p,i,S=[],c,E),E),i,E,c,l,r?S:E);break;default:Bo(C,P,P,P,[""],E,0,l,E)}}a=d=w=0,v=h=1,p=C="",c=s;break;case 58:c=1+vt(C),w=x;default:if(v<1){if(f==123)--v;else if(f==125&&v++==0&&vv()==125)continue}switch(C+=Ka(f),f*v){case 38:h=d>0?1:(C+="\f",-1);break;case 44:l[a++]=(vt(C)-1)*h,h=1;break;case 64:Mn()===45&&(C+=Cl(ct())),m=Mn(),d=c=vt(p=C+=Ev(Uo())),f++;break;case 45:x===45&&vt(C)==2&&(v=0)}}return o}function jf(e,t,n,r,i,o,s,l,u,a,d,c){for(var m=i-1,w=i===0?o:[""],x=Ah(w),v=0,k=0,h=0;v0?w[f]+" "+p:D(p,/&\f/g,w[f])))&&(u[h++]=S);return Bs(e,t,n,i===0?As:l,u,a,d,c)}function jv(e,t,n,r){return Bs(e,t,n,zh,Ka(yv()),Br(e,2,-2),0,r)}function _f(e,t,n,r,i){return Bs(e,t,n,Va,Br(e,0,r),Br(e,r+1,-1),r,i)}function Bh(e,t,n){switch(mv(e,t)){case 5103:return W+"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 W+e+e;case 4789:return Si+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+Si+e+q+e+e;case 5936:switch(de(e,t+11)){case 114:return W+e+q+D(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+q+D(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+q+D(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return W+e+q+e+e;case 6165:return W+e+q+"flex-"+e+e;case 5187:return W+e+D(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return W+e+q+"flex-item-"+D(e,/flex-|-self/g,"")+(Pt(e,/flex-|baseline/)?"":q+"grid-row-"+D(e,/flex-|-self/g,""))+e;case 4675:return W+e+q+"flex-line-pack"+D(e,/align-content|flex-|-self/g,"")+e;case 5548:return W+e+q+D(e,"shrink","negative")+e;case 5292:return W+e+q+D(e,"basis","preferred-size")+e;case 6060:return W+"box-"+D(e,"-grow","")+W+e+q+D(e,"grow","positive")+e;case 4554:return W+D(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return D(D(D(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return D(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return D(D(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4200:if(!Pt(e,/flex-|baseline/))return q+"grid-column-align"+Br(e,t)+e;break;case 2592:case 3360:return q+D(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Pt(r.props,/grid-\w+-end/)})?~Ao(e+(n=n[t].value),"span",0)?e:q+D(e,"-start","")+e+q+"grid-row-span:"+(~Ao(n,"span",0)?Pt(n,/\d+/):+Pt(n,/\d+/)-+Pt(e,/\d+/))+";":q+D(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Pt(r.props,/grid-\w+-start/)})?e:q+D(D(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return D(e,/(.+)-inline(.+)/,W+"$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(vt(e)-1-t>6)switch(de(e,t+1)){case 109:if(de(e,t+4)!==45)break;case 102:return D(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+Si+(de(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ao(e,"stretch",0)?Bh(D(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return D(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,l,u,a){return q+i+":"+o+a+(s?q+i+"-span:"+(l?u:+u-+o)+a:"")+e});case 4949:if(de(e,t+6)===121)return D(e,":",":"+W)+e;break;case 6444:switch(de(e,de(e,14)===45?18:11)){case 120:return D(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+W+(de(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+q+"$2box$3")+e;case 100:return D(e,":",":"+q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return D(e,"scroll-","scroll-snap-")+e}return e}function ws(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Va:e.return=Bh(e.value,e.length,n);return;case Fh:return ws([At(e,{value:D(e.value,"@","@"+W)})],r);case As:if(e.length)return gv(n=e.props,function(i){switch(Pt(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Zn(At(e,{props:[D(i,/:(read-\w+)/,":"+Si+"$1")]})),Zn(At(e,{props:[i]})),Fu(e,{props:Pf(n,r)});break;case"::placeholder":Zn(At(e,{props:[D(i,/:(plac\w+)/,":"+W+"input-$1")]})),Zn(At(e,{props:[D(i,/:(plac\w+)/,":"+Si+"$1")]})),Zn(At(e,{props:[D(i,/:(plac\w+)/,q+"input-$1")]})),Zn(At(e,{props:[i]})),Fu(e,{props:Pf(n,r)});break}return""})}}var Iv={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},Me={},Wr=typeof process<"u"&&Me!==void 0&&(Me.REACT_APP_SC_ATTR||Me.SC_ATTR)||"data-styled",Qh="active",Wh="data-styled-version",Ws="6.1.13",Ga=`/*!sc*/ +`,xs=typeof window<"u"&&"HTMLElement"in window,Tv=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Me!==void 0&&Me.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Me.REACT_APP_SC_DISABLE_SPEEDY!==""?Me.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Me.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Me!==void 0&&Me.SC_DISABLE_SPEEDY!==void 0&&Me.SC_DISABLE_SPEEDY!==""&&Me.SC_DISABLE_SPEEDY!=="false"&&Me.SC_DISABLE_SPEEDY),Hs=Object.freeze([]),Hr=Object.freeze({});function Lv(e,t,n){return n===void 0&&(n=Hr),e.theme!==n.theme&&e.theme||t||n.theme}var Hh=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"]),$v=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,zv=/(^-|-$)/g;function Rf(e){return e.replace($v,"-").replace(zv,"")}var Fv=/(a)(d)/gi,Eo=52,Nf=function(e){return String.fromCharCode(e+(e>25?39:97))};function Au(e){var t,n="";for(t=Math.abs(e);t>Eo;t=t/Eo|0)n=Nf(t%Eo)+n;return(Nf(t%Eo)+n).replace(Fv,"$1-$2")}var El,Vh=5381,pr=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Kh=function(e){return pr(Vh,e)};function Mv(e){return Au(Kh(e)>>>0)}function Dv(e){return e.displayName||e.name||"Component"}function Pl(e){return typeof e=="string"&&!0}var Gh=typeof Symbol=="function"&&Symbol.for,Yh=Gh?Symbol.for("react.memo"):60115,Av=Gh?Symbol.for("react.forward_ref"):60112,Uv={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bv={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},bh={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qv=((El={})[Av]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},El[Yh]=bh,El);function Of(e){return("type"in(t=e)&&t.type.$$typeof)===Yh?bh:"$$typeof"in e?Qv[e.$$typeof]:Uv;var t}var Wv=Object.defineProperty,Hv=Object.getOwnPropertyNames,If=Object.getOwnPropertySymbols,Vv=Object.getOwnPropertyDescriptor,Kv=Object.getPrototypeOf,Tf=Object.prototype;function qh(e,t,n){if(typeof t!="string"){if(Tf){var r=Kv(t);r&&r!==Tf&&qh(e,r,n)}var i=Hv(t);If&&(i=i.concat(If(t)));for(var o=Of(e),s=Of(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var Gv=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,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw to(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,s=i;s=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&&(k+="".concat(h,","))}),u+="".concat(x).concat(v,'{content:"').concat(k,'"}').concat(Ga)},d=0;d0?".".concat(t):m},d=u.slice();d.push(function(m){m.type===As&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(i1,n).replace(r,a))}),s.prefix&&d.push(Ov),d.push(_v);var c=function(m,w,x,v){w===void 0&&(w=""),x===void 0&&(x=""),v===void 0&&(v="&"),t=v,n=w,r=new RegExp("\\".concat(n,"\\b"),"g");var k=m.replace(o1,""),h=Pv(x||w?"".concat(x," ").concat(w," { ").concat(k," }"):k);s.namespace&&(h=Zh(h,s.namespace));var f=[];return ws(h,Rv(d.concat(Nv(function(p){return f.push(p)})))),f};return c.hash=u.length?u.reduce(function(m,w){return w.name||to(15),pr(m,w.name)},Vh).toString():"",c}var l1=new Jh,Bu=s1(),em=cn.createContext({shouldForwardProp:void 0,styleSheet:l1,stylis:Bu});em.Consumer;cn.createContext(void 0);function Ff(){return _.useContext(em)}var u1=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=Bu);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ba(this,function(){throw to(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Bu),this.name+t.hash},e}(),a1=function(e){return e>="A"&&e<="Z"};function Mf(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,s)){var l=r(o,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}i=_n(i,s),this.staticRulesId=s}else{for(var u=pr(this.baseHash,r.hash),a="",d=0;d>>0);n.hasNameForId(this.componentId,w)||n.insertRules(this.componentId,w,r(a,".".concat(w),void 0,this.componentId)),i=_n(i,w)}}return i},e}(),rm=cn.createContext(void 0);rm.Consumer;var jl={};function p1(e,t,n){var r=Ya(e),i=e,o=!Pl(e),s=t.attrs,l=s===void 0?Hs:s,u=t.componentId,a=u===void 0?function(S,E){var P=typeof S!="string"?"sc":Rf(S);jl[P]=(jl[P]||0)+1;var C="".concat(P,"-").concat(Mv(Ws+P+jl[P]));return E?"".concat(E,"-").concat(C):C}(t.displayName,t.parentComponentId):u,d=t.displayName,c=d===void 0?function(S){return Pl(S)?"styled.".concat(S):"Styled(".concat(Dv(S),")")}(e):d,m=t.displayName&&t.componentId?"".concat(Rf(t.displayName),"-").concat(t.componentId):t.componentId||a,w=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var v=i.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;x=function(S,E){return v(S,E)&&k(S,E)}}else x=v}var h=new d1(n,m,r?i.componentStyle:void 0);function f(S,E){return function(P,C,R){var $=P.attrs,F=P.componentStyle,oe=P.defaultProps,Ve=P.foldedComponentIds,yn=P.styledComponentId,no=P.target,Ks=cn.useContext(rm),qr=Ff(),vn=P.shouldForwardProp||qr.shouldForwardProp,N=Lv(C,Ks,oe)||Hr,L=function(zt,Fe,kt){for(var Xr,xn=Te(Te({},Fe),{className:void 0,theme:kt}),Gs=0;Gs{let t;const n=new Set,r=(a,d)=>{const c=typeof a=="function"?a(t):a;if(!Object.is(c,t)){const m=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(w=>w(t,m))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>u,subscribe:a=>(n.add(a),()=>n.delete(a))},u=t=e(r,i,l);return l},w1=e=>e?Uf(e):Uf,x1=e=>e;function S1(e,t=x1){const n=cn.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return cn.useDebugValue(n),n}const Bf=e=>{const t=w1(e),n=r=>S1(t,r);return Object.assign(n,t),n},k1=e=>e?Bf(e):Bf,gn=k1(e=>({contTypeState:15,areaState:0,keywordState:"",page:1,areaCode:{전체:0,서울특별시:1,인천광역시:2,대전광역시:3,대구광역시:4,광주광역시:5,부산광역시:6,울산광역시:7,세종특별시:8,경기도:31,강원도:32,충청북도:33,충청남도:34,경상북도:35,경상남도:46,전라북도:37,전라남도:38,제주도:39},setContTypeState:t=>e(()=>({contTypeState:t})),setAreaState:t=>e(()=>({areaState:t})),setKeywordState:t=>e(()=>({keywordState:t}))})),C1=()=>{const e=gn(),t=Yr();return g.jsxs(g1,{path:t.pathname,children:[g.jsx(Zn,{to:"/",children:g.jsx(y1,{path:t.pathname})}),g.jsxs(v1,{path:t.pathname,children:[g.jsx(Zn,{to:"/festival",children:g.jsx("li",{onClick:()=>{e.setContTypeState(15),e.setAreaState(0),e.setKeywordState("")},children:"행사"})}),g.jsx(Zn,{to:"/lodgment",children:g.jsx("li",{onClick:()=>{e.setContTypeState(32),e.setAreaState(0),e.setKeywordState("")},children:"숙소"})}),g.jsx(Zn,{to:"/tour",children:g.jsx("li",{onClick:()=>{e.setContTypeState(12),e.setAreaState(0),e.setKeywordState("")},children:"관광지"})}),g.jsx(Zn,{to:"/mypage",children:g.jsx("li",{children:"마이페이지"})})]})]})},E1=T.div` +`,Uf=e=>{let t;const n=new Set,r=(a,d)=>{const c=typeof a=="function"?a(t):a;if(!Object.is(c,t)){const m=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(w=>w(t,m))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>u,subscribe:a=>(n.add(a),()=>n.delete(a))},u=t=e(r,i,l);return l},w1=e=>e?Uf(e):Uf,x1=e=>e;function S1(e,t=x1){const n=cn.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return cn.useDebugValue(n),n}const Bf=e=>{const t=w1(e),n=r=>S1(t,r);return Object.assign(n,t),n},k1=e=>e?Bf(e):Bf,gn=k1(e=>({contTypeState:15,areaState:0,keywordState:"",page:1,areaCode:{전체:0,서울특별시:1,인천광역시:2,대전광역시:3,대구광역시:4,광주광역시:5,부산광역시:6,울산광역시:7,세종특별시:8,경기도:31,강원도:32,충청북도:33,충청남도:34,경상북도:35,경상남도:46,전라북도:37,전라남도:38,제주도:39},setContTypeState:t=>e(()=>({contTypeState:t})),setAreaState:t=>e(()=>({areaState:t})),setKeywordState:t=>e(()=>({keywordState:t}))})),C1=()=>{const e=gn(),t=qn();return g.jsxs(g1,{path:t.pathname,children:[g.jsx(er,{to:"/",children:g.jsx(y1,{path:t.pathname})}),g.jsxs(v1,{path:t.pathname,children:[g.jsx(er,{to:"/festival",children:g.jsx("li",{onClick:()=>{e.setContTypeState(15),e.setAreaState(0),e.setKeywordState("")},children:"행사"})}),g.jsx(er,{to:"/lodgment",children:g.jsx("li",{onClick:()=>{e.setContTypeState(32),e.setAreaState(0),e.setKeywordState("")},children:"숙소"})}),g.jsx(er,{to:"/tour",children:g.jsx("li",{onClick:()=>{e.setContTypeState(12),e.setAreaState(0),e.setKeywordState("")},children:"관광지"})}),g.jsx(er,{to:"/mypage",children:g.jsx("li",{children:"마이페이지"})})]})]})},E1=T.div` height: 50px; background-color: #eeeeee; display: flex; @@ -187,7 +187,7 @@ Error generating stack: `+o.message+` cursor: pointer; background-color: ${e=>e.path==="/"?"#EEEEEE":"#E9E9E9"}; } -`,Vs=()=>{const e=gn(),t=qn(),[n,r]=_.useState(""),[i,o]=_.useState(0);return g.jsxs(R1,{children:[g.jsx(N1,{path:location.pathname,onChange:s=>{o(Number(s.target.value))},children:Object.entries(e.areaCode).map(([s,l],u)=>g.jsx("option",{value:l,children:s},u))}),g.jsx(O1,{path:location.pathname,type:"text",onChange:s=>{r(s.target.value),location.pathname==="/"&&e.setKeywordState(s.target.value)},placeholder:"검색어를 입력해주세요."}),g.jsx(I1,{path:location.pathname,onClick:()=>{e.setAreaState(i),e.setKeywordState(n),e.contTypeState===15?t("/festival"):e.contTypeState===32?t("/lodgment"):e.contTypeState===12&&t("/tour")},children:"검색"})]})},T1=T.ul` +`,Vs=()=>{const e=gn(),t=Xn(),[n,r]=_.useState(""),[i,o]=_.useState(0),s=qn();return g.jsxs(R1,{children:[g.jsx(N1,{path:s.pathname,onChange:l=>{o(Number(l.target.value))},children:Object.entries(e.areaCode).map(([l,u],a)=>g.jsx("option",{value:u,children:l},a))}),g.jsx(O1,{path:s.pathname,type:"text",onChange:l=>{r(l.target.value),s.pathname==="/"&&e.setKeywordState(l.target.value)},placeholder:"검색어를 입력해주세요."}),g.jsx(I1,{path:s.pathname,onClick:()=>{e.setAreaState(i),e.setKeywordState(n),e.contTypeState===15?t("/festival"):e.contTypeState===32?t("/lodgment"):e.contTypeState===12&&t("/tour")},children:"검색"})]})},T1=T.ul` padding: 1rem; display: flex; gap: 1rem; @@ -270,7 +270,7 @@ Error generating stack: `+o.message+` margin-bottom: 42px; background-size: cover; background-image: url(${e=>e.url}); -`,M1=({item:e})=>{const t=gn();return g.jsx(Zn,{to:"/festival",children:g.jsxs(z1,{onClick:()=>{t.setContTypeState(15),t.setAreaState(Number(e[1])),t.setKeywordState("")},children:[g.jsx(F1,{url:e[2]}),g.jsx("p",{children:e[0]})]})})},D1=()=>{const e=[["서울","1","main_seoul.png"],["인천","2","main_incheon.png"],["대전","3","main_daejeon.png"],["대구","4","main_daegu.png"],["부산","6","main_busan.png"],["제주","39","main_jeju.png"]];return g.jsxs($1,{children:[g.jsx("h2",{children:"인기있는 지역의 행사를 확인해보세요!"}),g.jsx("ul",{className:"popularSiteCont",children:e.map((t,n)=>g.jsx(M1,{item:t},n))})]})},A1=()=>g.jsxs(g.Fragment,{children:[g.jsx(j1,{children:g.jsxs(_1,{children:[g.jsxs("p",{className:"title",children:["찾고싶은 행사, 숙소, 관광지를",g.jsx("br",{}),"검색해보세요."]}),g.jsx(L1,{}),g.jsx(Vs,{})]})}),g.jsx(D1,{})]}),U1=T.div` +`,M1=({item:e})=>{const t=gn();return g.jsx(er,{to:"/festival",children:g.jsxs(z1,{onClick:()=>{t.setContTypeState(15),t.setAreaState(Number(e[1])),t.setKeywordState("")},children:[g.jsx(F1,{url:e[2]}),g.jsx("p",{children:e[0]})]})})},D1=()=>{const e=[["서울","1","main_seoul.png"],["인천","2","main_incheon.png"],["대전","3","main_daejeon.png"],["대구","4","main_daegu.png"],["부산","6","main_busan.png"],["제주","39","main_jeju.png"]];return g.jsxs($1,{children:[g.jsx("h2",{children:"인기있는 지역의 행사를 확인해보세요!"}),g.jsx("ul",{className:"popularSiteCont",children:e.map((t,n)=>g.jsx(M1,{item:t},n))})]})},A1=()=>g.jsxs(g.Fragment,{children:[g.jsx(j1,{children:g.jsxs(_1,{children:[g.jsxs("p",{className:"title",children:["찾고싶은 행사, 숙소, 관광지를",g.jsx("br",{}),"검색해보세요."]}),g.jsx(L1,{}),g.jsx(Vs,{})]})}),g.jsx(D1,{})]}),U1=T.div` height: 300px; display: flex; justify-content: center; @@ -388,7 +388,7 @@ Error generating stack: `+o.message+` cursor: pointer; background-color: #1f138a; } -`,Z1=({item:e})=>{const t=qn(),[n,r]=_.useState(!1);return _.useEffect(()=>{const i=localStorage.getItem("wholeLikeList");(i?JSON.parse(i):[]).includes(e.contentid)&&r(!0)},[]),g.jsxs(K1,{children:[g.jsxs(G1,{children:[g.jsx(Y1,{url:e.firstimage||"defaultImage.png"}),g.jsxs(b1,{children:[g.jsx("p",{children:e.title}),g.jsx("p",{children:e.addr1})]})]}),g.jsxs(q1,{children:[g.jsx(X1,{onClick:()=>{const i=e.contenttypeid==="15"?"festivalLike":e.contenttypeid==="32"?"lodgmentLike":e.contenttypeid==="12"?"attractionLike":"";if(i){const o=localStorage.getItem(i),s=o?JSON.parse(o):[],l=s.some(d=>d.contentid===e.contentid),u=localStorage.getItem("wholeLikeList"),a=u?JSON.parse(u):[];if(l){const d=s.filter(m=>m.contentid!==e.contentid);localStorage.setItem(i,JSON.stringify(d));const c=a.filter(m=>m!==e.contentid);localStorage.setItem("wholeLikeList",JSON.stringify(c)),r(!1)}else s.push(e),localStorage.setItem(i,JSON.stringify(s)),a.push(e.contentid),localStorage.setItem("wholeLikeList",JSON.stringify(a)),r(!0)}},children:n?g.jsx("img",{src:"heart_on.png"}):g.jsx("img",{src:"heart.png"})}),g.jsx(J1,{onClick:()=>{t("/detail",{state:e})},children:"상세보기"})]})]})},ew=async(e,t,n,r)=>{const i=t===0?"":t.toString(),o=await fetch(r===""?`https://apis.data.go.kr/B551011/KorService1/areaBasedList1?serviceKey=tDjrxG4F1mYPESGwLpGLwG%2BN0xalGoPCacXxUYL2ff%2BmrnaZXK7rDC4RaRwTNfa%2BvIAmyky%2FyAfa%2Bcqm%2B8Qyxw%3D%3D&numOfRows=4&pageNo=${e}&MobileOS=ETC&MobileApp=AppTest&_type=json&listYN=Y&arrange=A&contentTypeId=${n}&areaCode=${i}`:`https://apis.data.go.kr/B551011/KorService1/searchKeyword1?serviceKey=tDjrxG4F1mYPESGwLpGLwG%2BN0xalGoPCacXxUYL2ff%2BmrnaZXK7rDC4RaRwTNfa%2BvIAmyky%2FyAfa%2Bcqm%2B8Qyxw%3D%3D&numOfRows=4&pageNo=${e}&MobileOS=ETC&MobileApp=AppTest&_type=json&listYN=Y&arrange=A&keyword=${r}&contentTypeId=${n}&areaCode=${i}`);if(!o.ok)throw new Error("Network response was not ok");return(await o.json()).response.body},tw=()=>{const{areaState:e,contTypeState:t,keywordState:n}=gn();return dv({queryKey:["keyword",e,t,n],queryFn:({pageParam:r=1})=>ew(Number(r),e,t,n),getNextPageParam:r=>{const i=Math.ceil(r.totalCount/4);if(r.pageNoe[t]!==void 0).map(t=>`${t}_${t==="root"?rw(e.root):e[t]}`).toString()}function ow(e){const t=iw(e);let n=Wu.get(t);if(!n){const r=new Map;let i;const o=new IntersectionObserver(s=>{s.forEach(l=>{var u;const a=l.isIntersecting&&i.some(d=>l.intersectionRatio>=d);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=a),(u=r.get(l.target))==null||u.forEach(d=>{d(a,l)})})},e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:r},Wu.set(t,n)}return n}function sw(e,t,n={},r=nw){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const u=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:u,intersectionRect:u,rootBounds:u}),()=>{}}const{id:i,observer:o,elements:s}=ow(n),l=s.get(e)||[];return s.has(e)||s.set(e,l),l.push(t),o.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(s.delete(e),o.unobserve(e)),s.size===0&&(o.disconnect(),Wu.delete(i))}}function lw({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:i,triggerOnce:o,skip:s,initialInView:l,fallbackInView:u,onChange:a}={}){var d;const[c,m]=_.useState(null),w=_.useRef(),[x,v]=_.useState({inView:!!l,entry:void 0});w.current=a,_.useEffect(()=>{if(s||!c)return;let p;return p=sw(c,(S,E)=>{v({inView:S,entry:E}),w.current&&w.current(S,E),E.isIntersecting&&o&&p&&(p(),p=void 0)},{root:i,rootMargin:r,threshold:e,trackVisibility:n,delay:t},u),()=>{p&&p()}},[Array.isArray(e)?e.toString():e,c,i,r,o,s,n,u,t]);const k=(d=x.entry)==null?void 0:d.target,h=_.useRef();!c&&k&&!o&&!s&&h.current!==k&&(h.current=k,v({inView:!!l,entry:void 0}));const f=[m,x.inView,x.entry];return f.ref=f[0],f.inView=f[1],f.entry=f[2],f}const Xa=()=>{const{data:e,error:t,fetchNextPage:n,hasNextPage:r,isFetchingNextPage:i}=tw(),{ref:o,inView:s}=lw();if(_.useEffect(()=>{s&&r&&(console.log("Fetching next page"),n())},[s,r,n]),t)return g.jsxs("p",{children:["Error: ",t.message]});const l=(e==null?void 0:e.pages[0].totalCount)!==0?(e==null?void 0:e.pages.flatMap(u=>u.items.item))||[]:[];return g.jsx(W1,{children:g.jsxs("ul",{children:[l.length>0?l.map((u,a)=>g.jsx(Z1,{item:u},a)):g.jsx("p",{children:"자료가 없습니다."}),g.jsx(H1,{ref:o,children:i&&g.jsx(V1,{children:"..."})})]})})},uw=()=>g.jsxs("div",{children:[g.jsx(U1,{children:g.jsxs("p",{children:[g.jsx("span",{children:"행사"}),g.jsx("br",{}),"Festival"]})}),g.jsx(qa,{}),g.jsx(B1,{children:g.jsx(Vs,{})}),g.jsx(Xa,{})]}),aw=T.div` +`,Z1=({item:e})=>{const t=Xn(),[n,r]=_.useState(!1);return _.useEffect(()=>{const i=localStorage.getItem("wholeLikeList");(i?JSON.parse(i):[]).includes(e.contentid)&&r(!0)},[]),g.jsxs(K1,{children:[g.jsxs(G1,{children:[g.jsx(Y1,{url:e.firstimage||"defaultImage.png"}),g.jsxs(b1,{children:[g.jsx("p",{children:e.title}),g.jsx("p",{children:e.addr1})]})]}),g.jsxs(q1,{children:[g.jsx(X1,{onClick:()=>{const i=e.contenttypeid==="15"?"festivalLike":e.contenttypeid==="32"?"lodgmentLike":e.contenttypeid==="12"?"attractionLike":"";if(i){const o=localStorage.getItem(i),s=o?JSON.parse(o):[],l=s.some(d=>d.contentid===e.contentid),u=localStorage.getItem("wholeLikeList"),a=u?JSON.parse(u):[];if(l){const d=s.filter(m=>m.contentid!==e.contentid);localStorage.setItem(i,JSON.stringify(d));const c=a.filter(m=>m!==e.contentid);localStorage.setItem("wholeLikeList",JSON.stringify(c)),r(!1)}else s.push(e),localStorage.setItem(i,JSON.stringify(s)),a.push(e.contentid),localStorage.setItem("wholeLikeList",JSON.stringify(a)),r(!0)}},children:n?g.jsx("img",{src:"heart_on.png"}):g.jsx("img",{src:"heart.png"})}),g.jsx(J1,{onClick:()=>{t("/detail",{state:e})},children:"상세보기"})]})]})},ew=async(e,t,n,r)=>{const i=t===0?"":t.toString(),o=await fetch(r===""?`https://apis.data.go.kr/B551011/KorService1/areaBasedList1?serviceKey=tDjrxG4F1mYPESGwLpGLwG%2BN0xalGoPCacXxUYL2ff%2BmrnaZXK7rDC4RaRwTNfa%2BvIAmyky%2FyAfa%2Bcqm%2B8Qyxw%3D%3D&numOfRows=4&pageNo=${e}&MobileOS=ETC&MobileApp=AppTest&_type=json&listYN=Y&arrange=A&contentTypeId=${n}&areaCode=${i}`:`https://apis.data.go.kr/B551011/KorService1/searchKeyword1?serviceKey=tDjrxG4F1mYPESGwLpGLwG%2BN0xalGoPCacXxUYL2ff%2BmrnaZXK7rDC4RaRwTNfa%2BvIAmyky%2FyAfa%2Bcqm%2B8Qyxw%3D%3D&numOfRows=4&pageNo=${e}&MobileOS=ETC&MobileApp=AppTest&_type=json&listYN=Y&arrange=A&keyword=${r}&contentTypeId=${n}&areaCode=${i}`);if(!o.ok)throw new Error("Network response was not ok");return(await o.json()).response.body},tw=()=>{const{areaState:e,contTypeState:t,keywordState:n}=gn();return dv({queryKey:["keyword",e,t,n],queryFn:({pageParam:r=1})=>ew(Number(r),e,t,n),getNextPageParam:r=>{const i=Math.ceil(r.totalCount/4);if(r.pageNoe[t]!==void 0).map(t=>`${t}_${t==="root"?rw(e.root):e[t]}`).toString()}function ow(e){const t=iw(e);let n=Wu.get(t);if(!n){const r=new Map;let i;const o=new IntersectionObserver(s=>{s.forEach(l=>{var u;const a=l.isIntersecting&&i.some(d=>l.intersectionRatio>=d);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=a),(u=r.get(l.target))==null||u.forEach(d=>{d(a,l)})})},e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:r},Wu.set(t,n)}return n}function sw(e,t,n={},r=nw){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const u=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:u,intersectionRect:u,rootBounds:u}),()=>{}}const{id:i,observer:o,elements:s}=ow(n),l=s.get(e)||[];return s.has(e)||s.set(e,l),l.push(t),o.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(s.delete(e),o.unobserve(e)),s.size===0&&(o.disconnect(),Wu.delete(i))}}function lw({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:i,triggerOnce:o,skip:s,initialInView:l,fallbackInView:u,onChange:a}={}){var d;const[c,m]=_.useState(null),w=_.useRef(),[x,v]=_.useState({inView:!!l,entry:void 0});w.current=a,_.useEffect(()=>{if(s||!c)return;let p;return p=sw(c,(S,E)=>{v({inView:S,entry:E}),w.current&&w.current(S,E),E.isIntersecting&&o&&p&&(p(),p=void 0)},{root:i,rootMargin:r,threshold:e,trackVisibility:n,delay:t},u),()=>{p&&p()}},[Array.isArray(e)?e.toString():e,c,i,r,o,s,n,u,t]);const k=(d=x.entry)==null?void 0:d.target,h=_.useRef();!c&&k&&!o&&!s&&h.current!==k&&(h.current=k,v({inView:!!l,entry:void 0}));const f=[m,x.inView,x.entry];return f.ref=f[0],f.inView=f[1],f.entry=f[2],f}const Xa=()=>{const{data:e,error:t,fetchNextPage:n,hasNextPage:r,isFetchingNextPage:i}=tw(),{ref:o,inView:s}=lw();if(_.useEffect(()=>{s&&r&&(console.log("Fetching next page"),n())},[s,r,n]),t)return g.jsxs("p",{children:["Error: ",t.message]});const l=(e==null?void 0:e.pages[0].totalCount)!==0?(e==null?void 0:e.pages.flatMap(u=>u.items.item))||[]:[];return g.jsx(W1,{children:g.jsxs("ul",{children:[l.length>0?l.map((u,a)=>g.jsx(Z1,{item:u},a)):g.jsx("p",{children:"자료가 없습니다."}),g.jsx(H1,{ref:o,children:i&&g.jsx(V1,{children:"..."})})]})})},uw=()=>g.jsxs("div",{children:[g.jsx(U1,{children:g.jsxs("p",{children:[g.jsx("span",{children:"행사"}),g.jsx("br",{}),"Festival"]})}),g.jsx(qa,{}),g.jsx(B1,{children:g.jsx(Vs,{})}),g.jsx(Xa,{})]}),aw=T.div` height: 300px; display: flex; justify-content: center; @@ -481,7 +481,7 @@ Error generating stack: `+o.message+` padding-top: 100px; padding-bottom: 200px; `,vw=T.div` - margin-bottom: 50px; + margin-bottom: 80px; `,ww=T.h2` font-size: 1.4rem; font-weight: 600; @@ -527,8 +527,8 @@ Error generating stack: `+o.message+` opacity: 0.7; } } -`,kw=()=>{const e=qn(),t=localStorage.getItem("festivalLike"),n=t?JSON.parse(t):[];return g.jsxs(vw,{children:[g.jsx(ww,{children:"찜한 행사 목록"}),g.jsx(xw,{children:n.map((r,i)=>g.jsxs(Sw,{onClick:()=>{e("/detail",{state:r})},url:r.firstimage||"defaultImage.png",children:[g.jsx("div",{}),g.jsxs("div",{children:[g.jsx("span",{children:r.title}),g.jsx("p",{children:r.addr1})]})]},i))})]})},Cw=T.div` - margin-bottom: 50px; +`,kw=()=>{const e=Xn(),t=localStorage.getItem("festivalLike"),n=t?JSON.parse(t):[];return g.jsxs(vw,{children:[g.jsx(ww,{children:"찜한 행사 목록"}),g.jsx(xw,{children:n.map((r,i)=>g.jsxs(Sw,{onClick:()=>{e("/detail",{state:r})},url:r.firstimage||"defaultImage.png",children:[g.jsx("div",{}),g.jsxs("div",{children:[g.jsx("span",{children:r.title}),g.jsx("p",{children:r.addr1})]})]},i))})]})},Cw=T.div` + margin-bottom: 80px; `,Ew=T.h2` font-size: 1.4rem; font-weight: 600; @@ -574,8 +574,8 @@ Error generating stack: `+o.message+` opacity: 0.7; } } -`,_w=()=>{const e=qn(),t=localStorage.getItem("lodgmentLike"),n=t?JSON.parse(t):[];return g.jsxs(Cw,{children:[g.jsx(Ew,{children:"찜한 숙소 목록"}),g.jsx(Pw,{children:n.map((r,i)=>g.jsxs(jw,{onClick:()=>{e("/detail",{state:r})},url:r.firstimage||"defaultImage.png",children:[g.jsx("div",{}),g.jsxs("div",{children:[g.jsx("span",{children:r.title}),g.jsx("p",{children:r.addr1})]})]},i))})]})},Rw=T.div` - margin-bottom: 50px; +`,_w=()=>{const e=Xn(),t=localStorage.getItem("lodgmentLike"),n=t?JSON.parse(t):[];return g.jsxs(Cw,{children:[g.jsx(Ew,{children:"찜한 숙소 목록"}),g.jsx(Pw,{children:n.map((r,i)=>g.jsxs(jw,{onClick:()=>{e("/detail",{state:r})},url:r.firstimage||"defaultImage.png",children:[g.jsx("div",{}),g.jsxs("div",{children:[g.jsx("span",{children:r.title}),g.jsx("p",{children:r.addr1})]})]},i))})]})},Rw=T.div` + margin-bottom: 80px; `,Nw=T.h2` font-size: 1.4rem; font-weight: 600; @@ -621,7 +621,7 @@ Error generating stack: `+o.message+` opacity: 0.7; } } -`,Tw=()=>{const e=qn(),t=localStorage.getItem("attractionLike"),n=t?JSON.parse(t):[];return g.jsxs(Rw,{children:[g.jsx(Nw,{children:"찜한 관광지 목록"}),g.jsx(Ow,{children:n.map((r,i)=>g.jsxs(Iw,{onClick:()=>{e("/detail",{state:r})},url:r.firstimage||"defaultImage.png",children:[g.jsx("div",{}),g.jsxs("div",{children:[g.jsx("span",{children:r.title}),g.jsx("p",{children:r.addr1})]})]},i))})]})},Lw=()=>g.jsxs(mw,{children:[g.jsx(gw,{children:g.jsxs("p",{children:[g.jsx("span",{children:"홍길동"}),"님, 안녕하세요!"]})}),g.jsxs(yw,{children:[g.jsx(kw,{}),g.jsx(_w,{}),g.jsx(Tw,{})]})]}),$w=T.div` +`,Tw=()=>{const e=Xn(),t=localStorage.getItem("attractionLike"),n=t?JSON.parse(t):[];return g.jsxs(Rw,{children:[g.jsx(Nw,{children:"찜한 관광지 목록"}),g.jsx(Ow,{children:n.map((r,i)=>g.jsxs(Iw,{onClick:()=>{e("/detail",{state:r})},url:r.firstimage||"defaultImage.png",children:[g.jsx("div",{}),g.jsxs("div",{children:[g.jsx("span",{children:r.title}),g.jsx("p",{children:r.addr1})]})]},i))})]})},Lw=()=>g.jsxs(mw,{children:[g.jsx(gw,{children:g.jsxs("p",{children:[g.jsx("span",{children:"홍길동"}),"님, 안녕하세요!"]})}),g.jsxs(yw,{children:[g.jsx(kw,{}),g.jsx(_w,{}),g.jsx(Tw,{})]})]}),$w=T.div` padding-top: 160px; padding-bottom: 160px; width: 90%; @@ -706,4 +706,4 @@ Error generating stack: `+o.message+` text-decoration: underline; color: inherit; } -`,Bw=({commonData:e,introData:t})=>{const n=e[0].contenttypeid==="15",r=e[0].contenttypeid==="32",i=e[0].contenttypeid==="12";let o,s;return e[0].homepage.includes("<")?(o=e[0].homepage.split(">")[1].split("<")[0],s=e[0].homepage.split('"')[1]):(o=e[0].homepage,s=e[0].homepage),g.jsxs(g.Fragment,{children:[g.jsxs(Mw,{children:[e[0].contenttypeid==="15"?g.jsx("span",{children:"행사/축제"}):e[0].contenttypeid==="32"?g.jsx("span",{children:"숙박시설"}):g.jsx("span",{children:"관광지"}),g.jsx("h2",{children:e[0].title}),g.jsx("p",{children:e[0].addr1})]}),g.jsxs(Dw,{children:[g.jsx(Aw,{children:g.jsx("img",{src:e[0].firstimage||"defaultImage.png"})}),g.jsxs(Uw,{children:[n&&"eventplace"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"이벤트 장소"}),g.jsx("br",{}),t[0].eventplace]}),n&&"eventstartdate"in t[0]&&"eventenddate"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"운영 기간"}),g.jsx("br",{}),t[0].eventstartdate+" - "+t[0].eventenddate]}),n&&"playtime"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"운영 시간"}),g.jsx("br",{}),t[0].playtime]}),r&&"roomcount"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"방 개수"}),g.jsx("br",{}),t[0].roomcount]}),r&&"roomtype"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"방 타입"}),g.jsx("br",{}),t[0].roomtype]}),r&&"checkintime"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"체크인 시간"}),g.jsx("br",{}),t[0].checkintime]}),r&&"checkouttime"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"체크아웃 시간"}),g.jsx("br",{}),t[0].checkouttime]}),r&&"parkinglodging"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"주차 가능 여부"}),g.jsx("br",{}),t[0].parkinglodging]}),i&&"infocenter"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"전화번호"}),g.jsx("br",{}),t[0].infocenter]}),i&&"restdate"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"휴무일"}),g.jsx("br",{}),t[0].restdate]}),i&&"parking"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"주차"}),g.jsx("br",{}),t[0].parking]}),g.jsxs("p",{children:[g.jsx("span",{children:"홈페이지"}),g.jsx("br",{}),g.jsx("a",{href:s,target:"blank",rel:"noopener noreferrer",children:o})]}),g.jsxs("p",{children:[g.jsx("span",{children:"상세정보"}),g.jsx("br",{}),e[0].overview]})]})]})]})},Qw=async(e,t)=>{const n=await fetch(`https://apis.data.go.kr/B551011/KorService1/detailCommon1?serviceKey=tDjrxG4F1mYPESGwLpGLwG%2BN0xalGoPCacXxUYL2ff%2BmrnaZXK7rDC4RaRwTNfa%2BvIAmyky%2FyAfa%2Bcqm%2B8Qyxw%3D%3D&MobileOS=ETC&MobileApp=AppTest&_type=json&contentId=${e}&contentTypeId=${t}&defaultYN=Y&firstImageYN=Y&areacodeYN=Y&catcodeYN=Y&addrinfoYN=Y&mapinfoYN=Y&overviewYN=Y&numOfRows=1&pageNo=1`);if(!n.ok)throw new Error("Network response was not ok");return(await n.json()).response.body.items.item},Ww=async(e,t)=>{const n=await fetch(`https://apis.data.go.kr/B551011/KorService1/detailIntro1?serviceKey=tDjrxG4F1mYPESGwLpGLwG%2BN0xalGoPCacXxUYL2ff%2BmrnaZXK7rDC4RaRwTNfa%2BvIAmyky%2FyAfa%2Bcqm%2B8Qyxw%3D%3D&MobileOS=ETC&MobileApp=AppTest&_type=json&contentId=${e}&contentTypeId=${t}&numOfRows=1&pageNo=1`);if(!n.ok)throw new Error("Network response was not ok");return(await n.json()).response.body.items.item},Hw=()=>{const e=Yr(),t=qn(),n=e.state.contentid,r=e.state.contenttypeid,[i,o]=_.useState(!1);_.useEffect(()=>{const d=localStorage.getItem("wholeLikeList");(d?JSON.parse(d):[]).includes(e.state.contentid)&&o(!0)},[]);const{data:s,error:l}=Ef({queryKey:["common",n],queryFn:()=>Qw(n,r)}),{data:u,error:a}=Ef({queryKey:["intro",n],queryFn:()=>Ww(n,r)});if(l)return g.jsxs("p",{children:["Error: ",l.message]});if(a)return g.jsxs("p",{children:["Error: ",a.message]});if(s&&u)return g.jsxs($w,{children:[g.jsx(zw,{onClick:()=>{t(-1)},children:"돌아가기"}),g.jsx(Fw,{onClick:()=>{const d=e.state.contenttypeid==="15"?"festivalLike":e.state.contenttypeid==="32"?"lodgmentLike":e.state.contenttypeid==="12"?"attractionLike":"";if(d){const c=localStorage.getItem(d),m=c?JSON.parse(c):[],w=m.some(k=>k.contentid===e.state.contentid),x=localStorage.getItem("wholeLikeList"),v=x?JSON.parse(x):[];if(w){const k=m.filter(f=>f.contentid!==e.state.contentid);localStorage.setItem(d,JSON.stringify(k));const h=v.filter(f=>f!==e.state.contentid);localStorage.setItem("wholeLikeList",JSON.stringify(h)),o(!1)}else m.push(e.state),localStorage.setItem(d,JSON.stringify(m)),v.push(e.state.contentid),localStorage.setItem("wholeLikeList",JSON.stringify(v)),o(!0)}},children:i?g.jsx("img",{src:"heart_on.png"}):g.jsx("img",{src:"heart.png"})}),g.jsx(Bw,{commonData:s,introData:u})]})},Vw=()=>g.jsxs(Sy,{children:[g.jsx(Cn,{path:"/",element:g.jsx(A1,{})}),g.jsx(Cn,{path:"/festival",element:g.jsx(uw,{})}),g.jsx(Cn,{path:"/lodgment",element:g.jsx(fw,{})}),g.jsx(Cn,{path:"/tour",element:g.jsx(hw,{})}),g.jsx(Cn,{path:"/mypage",element:g.jsx(Lw,{})}),g.jsx(Cn,{path:"/detail",element:g.jsx(Hw,{})})]});function Kw(){return g.jsxs(m1,{children:[g.jsx(C1,{}),g.jsx(Vw,{}),g.jsx(P1,{})]})}const Gw=new Yy;ch(document.getElementById("root")).render(g.jsx(Zy,{client:Gw,children:g.jsx(_.StrictMode,{children:g.jsx(Ry,{children:g.jsx(Kw,{})})})})); +`,Bw=({commonData:e,introData:t})=>{const n=e[0].contenttypeid==="15",r=e[0].contenttypeid==="32",i=e[0].contenttypeid==="12";let o,s;return e[0].homepage.includes("<")?(o=e[0].homepage.split(">")[1].split("<")[0],s=e[0].homepage.split('"')[1]):(o=e[0].homepage,s=e[0].homepage),g.jsxs(g.Fragment,{children:[g.jsxs(Mw,{children:[e[0].contenttypeid==="15"?g.jsx("span",{children:"행사/축제"}):e[0].contenttypeid==="32"?g.jsx("span",{children:"숙박시설"}):g.jsx("span",{children:"관광지"}),g.jsx("h2",{children:e[0].title}),g.jsx("p",{children:e[0].addr1})]}),g.jsxs(Dw,{children:[g.jsx(Aw,{children:g.jsx("img",{src:e[0].firstimage||"defaultImage.png"})}),g.jsxs(Uw,{children:[n&&"eventplace"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"이벤트 장소"}),g.jsx("br",{}),t[0].eventplace]}),n&&"eventstartdate"in t[0]&&"eventenddate"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"운영 기간"}),g.jsx("br",{}),t[0].eventstartdate+" - "+t[0].eventenddate]}),n&&"playtime"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"운영 시간"}),g.jsx("br",{}),t[0].playtime]}),r&&"roomcount"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"방 개수"}),g.jsx("br",{}),t[0].roomcount]}),r&&"roomtype"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"방 타입"}),g.jsx("br",{}),t[0].roomtype]}),r&&"checkintime"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"체크인 시간"}),g.jsx("br",{}),t[0].checkintime]}),r&&"checkouttime"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"체크아웃 시간"}),g.jsx("br",{}),t[0].checkouttime]}),r&&"parkinglodging"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"주차 가능 여부"}),g.jsx("br",{}),t[0].parkinglodging]}),i&&"infocenter"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"전화번호"}),g.jsx("br",{}),t[0].infocenter]}),i&&"restdate"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"휴무일"}),g.jsx("br",{}),t[0].restdate]}),i&&"parking"in t[0]&&g.jsxs("p",{children:[g.jsx("span",{children:"주차"}),g.jsx("br",{}),t[0].parking]}),g.jsxs("p",{children:[g.jsx("span",{children:"홈페이지"}),g.jsx("br",{}),g.jsx("a",{href:s,target:"blank",rel:"noopener noreferrer",children:o})]}),g.jsxs("p",{children:[g.jsx("span",{children:"상세정보"}),g.jsx("br",{}),e[0].overview]})]})]})]})},Qw=async(e,t)=>{const n=await fetch(`https://apis.data.go.kr/B551011/KorService1/detailCommon1?serviceKey=tDjrxG4F1mYPESGwLpGLwG%2BN0xalGoPCacXxUYL2ff%2BmrnaZXK7rDC4RaRwTNfa%2BvIAmyky%2FyAfa%2Bcqm%2B8Qyxw%3D%3D&MobileOS=ETC&MobileApp=AppTest&_type=json&contentId=${e}&contentTypeId=${t}&defaultYN=Y&firstImageYN=Y&areacodeYN=Y&catcodeYN=Y&addrinfoYN=Y&mapinfoYN=Y&overviewYN=Y&numOfRows=1&pageNo=1`);if(!n.ok)throw new Error("Network response was not ok");return(await n.json()).response.body.items.item},Ww=async(e,t)=>{const n=await fetch(`https://apis.data.go.kr/B551011/KorService1/detailIntro1?serviceKey=tDjrxG4F1mYPESGwLpGLwG%2BN0xalGoPCacXxUYL2ff%2BmrnaZXK7rDC4RaRwTNfa%2BvIAmyky%2FyAfa%2Bcqm%2B8Qyxw%3D%3D&MobileOS=ETC&MobileApp=AppTest&_type=json&contentId=${e}&contentTypeId=${t}&numOfRows=1&pageNo=1`);if(!n.ok)throw new Error("Network response was not ok");return(await n.json()).response.body.items.item},Hw=()=>{const e=qn(),t=Xn(),n=e.state.contentid,r=e.state.contenttypeid,[i,o]=_.useState(!1);_.useEffect(()=>{const d=localStorage.getItem("wholeLikeList");(d?JSON.parse(d):[]).includes(e.state.contentid)&&o(!0)},[]);const{data:s,error:l}=Ef({queryKey:["common",n],queryFn:()=>Qw(n,r)}),{data:u,error:a}=Ef({queryKey:["intro",n],queryFn:()=>Ww(n,r)});if(l)return g.jsxs("p",{children:["Error: ",l.message]});if(a)return g.jsxs("p",{children:["Error: ",a.message]});if(s&&u)return g.jsxs($w,{children:[g.jsx(zw,{onClick:()=>{t(-1)},children:"돌아가기"}),g.jsx(Fw,{onClick:()=>{const d=e.state.contenttypeid==="15"?"festivalLike":e.state.contenttypeid==="32"?"lodgmentLike":e.state.contenttypeid==="12"?"attractionLike":"";if(d){const c=localStorage.getItem(d),m=c?JSON.parse(c):[],w=m.some(k=>k.contentid===e.state.contentid),x=localStorage.getItem("wholeLikeList"),v=x?JSON.parse(x):[];if(w){const k=m.filter(f=>f.contentid!==e.state.contentid);localStorage.setItem(d,JSON.stringify(k));const h=v.filter(f=>f!==e.state.contentid);localStorage.setItem("wholeLikeList",JSON.stringify(h)),o(!1)}else m.push(e.state),localStorage.setItem(d,JSON.stringify(m)),v.push(e.state.contentid),localStorage.setItem("wholeLikeList",JSON.stringify(v)),o(!0)}},children:i?g.jsx("img",{src:"heart_on.png"}):g.jsx("img",{src:"heart.png"})}),g.jsx(Bw,{commonData:s,introData:u})]})},Vw=()=>g.jsxs(Sy,{children:[g.jsx(Cn,{path:"/",element:g.jsx(A1,{})}),g.jsx(Cn,{path:"/festival",element:g.jsx(uw,{})}),g.jsx(Cn,{path:"/lodgment",element:g.jsx(fw,{})}),g.jsx(Cn,{path:"/tour",element:g.jsx(hw,{})}),g.jsx(Cn,{path:"/mypage",element:g.jsx(Lw,{})}),g.jsx(Cn,{path:"/detail",element:g.jsx(Hw,{})})]});function Kw(){return g.jsxs(m1,{children:[g.jsx(C1,{}),g.jsx(Vw,{}),g.jsx(P1,{})]})}const Gw=new Yy;ch(document.getElementById("root")).render(g.jsx(Zy,{client:Gw,children:g.jsx(_.StrictMode,{children:g.jsx(Ry,{children:g.jsx(Kw,{})})})})); diff --git a/index.html b/index.html index f2c3c37..38a78fa 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ /> yasoa - +