index-0d8158eb.js 403 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. function V0(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var c2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(t,i);return new s}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Vu={},ui={},X0={get exports(){return ui},set exports(e){ui=e}},ft={},g={},Y0={get exports(){return g},set exports(e){g=e}},Y={};/**
  2. * @license React
  3. * react.production.min.js
  4. *
  5. * Copyright (c) Facebook, Inc. and its affiliates.
  6. *
  7. * This source code is licensed under the MIT license found in the
  8. * LICENSE file in the root directory of this source tree.
  9. */var Hs=Symbol.for("react.element"),J0=Symbol.for("react.portal"),Z0=Symbol.for("react.fragment"),e1=Symbol.for("react.strict_mode"),t1=Symbol.for("react.profiler"),r1=Symbol.for("react.provider"),n1=Symbol.for("react.context"),i1=Symbol.for("react.forward_ref"),s1=Symbol.for("react.suspense"),a1=Symbol.for("react.memo"),o1=Symbol.for("react.lazy"),rh=Symbol.iterator;function l1(e){return e===null||typeof e!="object"?null:(e=rh&&e[rh]||e["@@iterator"],typeof e=="function"?e:null)}var Bm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hm=Object.assign,Wm={};function bi(e,t,r){this.props=e,this.context=t,this.refs=Wm,this.updater=r||Bm}bi.prototype.isReactComponent={};bi.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")};bi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gm(){}Gm.prototype=bi.prototype;function gd(e,t,r){this.props=e,this.context=t,this.refs=Wm,this.updater=r||Bm}var Sd=gd.prototype=new Gm;Sd.constructor=gd;Hm(Sd,bi.prototype);Sd.isPureReactComponent=!0;var nh=Array.isArray,Km=Object.prototype.hasOwnProperty,Ed={current:null},Vm={key:!0,ref:!0,__self:!0,__source:!0};function Xm(e,t,r){var n,i={},s=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)Km.call(t,n)&&!Vm.hasOwnProperty(n)&&(i[n]=t[n]);var o=arguments.length-2;if(o===1)i.children=r;else if(1<o){for(var l=Array(o),u=0;u<o;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in o=e.defaultProps,o)i[n]===void 0&&(i[n]=o[n]);return{$$typeof:Hs,type:e,key:s,ref:a,props:i,_owner:Ed.current}}function u1(e,t){return{$$typeof:Hs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function wd(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hs}function c1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var ih=/\/+/g;function Ml(e,t){return typeof e=="object"&&e!==null&&e.key!=null?c1(""+e.key):t.toString(36)}function Qa(e,t,r,n,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Hs:case J0:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+Ml(a,0):n,nh(i)?(r="",e!=null&&(r=e.replace(ih,"$&/")+"/"),Qa(i,t,r,"",function(u){return u})):i!=null&&(wd(i)&&(i=u1(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(ih,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",nh(e))for(var o=0;o<e.length;o++){s=e[o];var l=n+Ml(s,o);a+=Qa(s,t,r,l,i)}else if(l=l1(e),typeof l=="function")for(e=l.call(e),o=0;!(s=e.next()).done;)s=s.value,l=n+Ml(s,o++),a+=Qa(s,t,r,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function ua(e,t,r){if(e==null)return e;var n=[],i=0;return Qa(e,n,"","",function(s){return t.call(r,s,i++)}),n}function d1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Xe={current:null},Ua={transition:null},f1={ReactCurrentDispatcher:Xe,ReactCurrentBatchConfig:Ua,ReactCurrentOwner:Ed};Y.Children={map:ua,forEach:function(e,t,r){ua(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ua(e,function(){t++}),t},toArray:function(e){return ua(e,function(t){return t})||[]},only:function(e){if(!wd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=bi;Y.Fragment=Z0;Y.Profiler=t1;Y.PureComponent=gd;Y.StrictMode=e1;Y.Suspense=s1;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f1;Y.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Hm({},e.props),i=e.key,s=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,a=Ed.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(l in t)Km.call(t,l)&&!Vm.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&o!==void 0?o[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){o=Array(l);for(var u=0;u<l;u++)o[u]=arguments[u+2];n.children=o}return{$$typeof:Hs,type:e.type,key:i,ref:s,props:n,_owner:a}};Y.createContext=function(e){return e={$$typeof:n1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:r1,_context:e},e.Consumer=e};Y.createElement=Xm;Y.createFactory=function(e){var t=Xm.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:i1,render:e}};Y.isValidElement=wd;Y.lazy=function(e){return{$$typeof:o1,_payload:{_status:-1,_result:e},_init:d1}};Y.memo=function(e,t){return{$$typeof:a1,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=Ua.transition;Ua.transition={};try{e()}finally{Ua.transition=t}};Y.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Y.useCallback=function(e,t){return Xe.current.useCallback(e,t)};Y.useContext=function(e){return Xe.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return Xe.current.useDeferredValue(e)};Y.useEffect=function(e,t){return Xe.current.useEffect(e,t)};Y.useId=function(){return Xe.current.useId()};Y.useImperativeHandle=function(e,t,r){return Xe.current.useImperativeHandle(e,t,r)};Y.useInsertionEffect=function(e,t){return Xe.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return Xe.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return Xe.current.useMemo(e,t)};Y.useReducer=function(e,t,r){return Xe.current.useReducer(e,t,r)};Y.useRef=function(e){return Xe.current.useRef(e)};Y.useState=function(e){return Xe.current.useState(e)};Y.useSyncExternalStore=function(e,t,r){return Xe.current.useSyncExternalStore(e,t,r)};Y.useTransition=function(){return Xe.current.useTransition()};Y.version="18.2.0";(function(e){e.exports=Y})(Y0);const Te=vd(g),ro=V0({__proto__:null,default:Te},[g]);var Xu={},h1={get exports(){return Xu},set exports(e){Xu=e}},Ym={};/**
  10. * @license React
  11. * scheduler.production.min.js
  12. *
  13. * Copyright (c) Facebook, Inc. and its affiliates.
  14. *
  15. * This source code is licensed under the MIT license found in the
  16. * LICENSE file in the root directory of this source tree.
  17. */(function(e){function t(L,q){var W=L.length;L.push(q);e:for(;0<W;){var he=W-1>>>1,$e=L[he];if(0<i($e,q))L[he]=q,L[W]=$e,W=he;else break e}}function r(L){return L.length===0?null:L[0]}function n(L){if(L.length===0)return null;var q=L[0],W=L.pop();if(W!==q){L[0]=W;e:for(var he=0,$e=L.length,it=$e>>>1;he<it;){var Yt=2*(he+1)-1,Qi=L[Yt],Nt=Yt+1,bn=L[Nt];if(0>i(Qi,W))Nt<$e&&0>i(bn,Qi)?(L[he]=bn,L[Nt]=W,he=Nt):(L[he]=Qi,L[Yt]=W,he=Yt);else if(Nt<$e&&0>i(bn,W))L[he]=bn,L[Nt]=W,he=Nt;else break e}}return q}function i(L,q){var W=L.sortIndex-q.sortIndex;return W!==0?W:L.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();e.unstable_now=function(){return a.now()-o}}var l=[],u=[],d=1,c=null,h=3,S=!1,E=!1,f=!1,P=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(L){for(var q=r(u);q!==null;){if(q.callback===null)n(u);else if(q.startTime<=L)n(u),q.sortIndex=q.expirationTime,t(l,q);else break;q=r(u)}}function w(L){if(f=!1,y(L),!E)if(r(l)!==null)E=!0,Ot($);else{var q=r(u);q!==null&&Wr(w,q.startTime-L)}}function $(L,q){E=!1,f&&(f=!1,m(b),b=-1),S=!0;var W=h;try{for(y(q),c=r(l);c!==null&&(!(c.expirationTime>q)||L&&!X());){var he=c.callback;if(typeof he=="function"){c.callback=null,h=c.priorityLevel;var $e=he(c.expirationTime<=q);q=e.unstable_now(),typeof $e=="function"?c.callback=$e:c===r(l)&&n(l),y(q)}else n(l);c=r(l)}if(c!==null)var it=!0;else{var Yt=r(u);Yt!==null&&Wr(w,Yt.startTime-q),it=!1}return it}finally{c=null,h=W,S=!1}}var R=!1,x=null,b=-1,I=5,A=-1;function X(){return!(e.unstable_now()-A<I)}function ae(){if(x!==null){var L=e.unstable_now();A=L;var q=!0;try{q=x(!0,L)}finally{q?oe():(R=!1,x=null)}}else R=!1}var oe;if(typeof v=="function")oe=function(){v(ae)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,We=fe.port2;fe.port1.onmessage=ae,oe=function(){We.postMessage(null)}}else oe=function(){P(ae,0)};function Ot(L){x=L,R||(R=!0,oe())}function Wr(L,q){b=P(function(){L(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){E||S||(E=!0,Ot($))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(L){switch(h){case 1:case 2:case 3:var q=3;break;default:q=h}var W=h;h=q;try{return L()}finally{h=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,q){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var W=h;h=L;try{return q()}finally{h=W}},e.unstable_scheduleCallback=function(L,q,W){var he=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?he+W:he):W=he,L){case 1:var $e=-1;break;case 2:$e=250;break;case 5:$e=1073741823;break;case 4:$e=1e4;break;default:$e=5e3}return $e=W+$e,L={id:d++,callback:q,priorityLevel:L,startTime:W,expirationTime:$e,sortIndex:-1},W>he?(L.sortIndex=W,t(u,L),r(l)===null&&L===r(u)&&(f?(m(b),b=-1):f=!0,Wr(w,W-he))):(L.sortIndex=$e,t(l,L),E||S||(E=!0,Ot($))),L},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(L){var q=h;return function(){var W=h;h=q;try{return L.apply(this,arguments)}finally{h=W}}}})(Ym);(function(e){e.exports=Ym})(h1);/**
  18. * @license React
  19. * react-dom.production.min.js
  20. *
  21. * Copyright (c) Facebook, Inc. and its affiliates.
  22. *
  23. * This source code is licensed under the MIT license found in the
  24. * LICENSE file in the root directory of this source tree.
  25. */var Jm=g,dt=Xu;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Zm=new Set,Ps={};function Sn(e,t){ci(e,t),ci(e+"Capture",t)}function ci(e,t){for(Ps[e]=t,e=0;e<t.length;e++)Zm.add(t[e])}var or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yu=Object.prototype.hasOwnProperty,p1=/^[: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]*$/,sh={},ah={};function m1(e){return Yu.call(ah,e)?!0:Yu.call(sh,e)?!1:p1.test(e)?ah[e]=!0:(sh[e]=!0,!1)}function v1(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function y1(e,t,r,n){if(t===null||typeof t>"u"||v1(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ye(e,t,r,n,i,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fe[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fe[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fe[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fe[e]=new Ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Fe[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fe[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fe[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fe[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fe[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cd=/[\-:]([a-z])/g;function Pd(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(Cd,Pd);Fe[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cd,Pd);Fe[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cd,Pd);Fe[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fe[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fe[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function $d(e,t,r,n){var i=Fe.hasOwnProperty(t)?Fe[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(y1(t,r,i,n)&&(r=null),n||i===null?m1(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var fr=Jm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ca=Symbol.for("react.element"),In=Symbol.for("react.portal"),Qn=Symbol.for("react.fragment"),Od=Symbol.for("react.strict_mode"),Ju=Symbol.for("react.profiler"),ev=Symbol.for("react.provider"),tv=Symbol.for("react.context"),bd=Symbol.for("react.forward_ref"),Zu=Symbol.for("react.suspense"),ec=Symbol.for("react.suspense_list"),xd=Symbol.for("react.memo"),gr=Symbol.for("react.lazy"),rv=Symbol.for("react.offscreen"),oh=Symbol.iterator;function Bi(e){return e===null||typeof e!="object"?null:(e=oh&&e[oh]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Object.assign,_l;function ss(e){if(_l===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);_l=t&&t[1]||""}return`
  26. `+_l+e}var kl=!1;function Dl(e,t){if(!e||kl)return"";kl=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
  27. `),s=n.stack.split(`
  28. `),a=i.length-1,o=s.length-1;1<=a&&0<=o&&i[a]!==s[o];)o--;for(;1<=a&&0<=o;a--,o--)if(i[a]!==s[o]){if(a!==1||o!==1)do if(a--,o--,0>o||i[a]!==s[o]){var l=`
  29. `+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=o);break}}}finally{kl=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ss(e):""}function g1(e){switch(e.tag){case 5:return ss(e.type);case 16:return ss("Lazy");case 13:return ss("Suspense");case 19:return ss("SuspenseList");case 0:case 2:case 15:return e=Dl(e.type,!1),e;case 11:return e=Dl(e.type.render,!1),e;case 1:return e=Dl(e.type,!0),e;default:return""}}function tc(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 Qn:return"Fragment";case In:return"Portal";case Ju:return"Profiler";case Od:return"StrictMode";case Zu:return"Suspense";case ec:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tv:return(e.displayName||"Context")+".Consumer";case ev:return(e._context.displayName||"Context")+".Provider";case bd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xd:return t=e.displayName||null,t!==null?t:tc(e.type)||"Memo";case gr:t=e._payload,e=e._init;try{return tc(e(t))}catch{}}return null}function S1(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 tc(t);case 8:return t===Od?"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 Lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function E1(e){var t=nv(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function da(e){e._valueTracker||(e._valueTracker=E1(e))}function iv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=nv(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function no(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 rc(e,t){var r=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function lh(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Lr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sv(e,t){t=t.checked,t!=null&&$d(e,"checked",t,!1)}function nc(e,t){sv(e,t);var r=Lr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ic(e,t.type,r):t.hasOwnProperty("defaultValue")&&ic(e,t.type,Lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uh(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function ic(e,t,r){(t!=="number"||no(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var as=Array.isArray;function Zn(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Lr(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function sc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ch(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(k(92));if(as(r)){if(1<r.length)throw Error(k(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Lr(r)}}function av(e,t){var r=Lr(t.value),n=Lr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function dh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ov(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ac(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ov(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fa,lv=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fa=fa||document.createElement("div"),fa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $s(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var cs={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},w1=["Webkit","ms","Moz","O"];Object.keys(cs).forEach(function(e){w1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cs[t]=cs[e]})});function uv(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||cs.hasOwnProperty(e)&&cs[e]?(""+t).trim():t+"px"}function cv(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=uv(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var C1=ye({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 oc(e,t){if(t){if(C1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function lc(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 uc=null;function Rd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cc=null,ei=null,ti=null;function fh(e){if(e=Ks(e)){if(typeof cc!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Go(t),cc(e.stateNode,e.type,t))}}function dv(e){ei?ti?ti.push(e):ti=[e]:ei=e}function fv(){if(ei){var e=ei,t=ti;if(ti=ei=null,fh(e),t)for(e=0;e<t.length;e++)fh(t[e])}}function hv(e,t){return e(t)}function pv(){}var Al=!1;function mv(e,t,r){if(Al)return e(t,r);Al=!0;try{return hv(e,t,r)}finally{Al=!1,(ei!==null||ti!==null)&&(pv(),fv())}}function Os(e,t){var r=e.stateNode;if(r===null)return null;var n=Go(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(k(231,t,typeof r));return r}var dc=!1;if(or)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){dc=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{dc=!1}function P1(e,t,r,n,i,s,a,o,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(d){this.onError(d)}}var ds=!1,io=null,so=!1,fc=null,$1={onError:function(e){ds=!0,io=e}};function O1(e,t,r,n,i,s,a,o,l){ds=!1,io=null,P1.apply($1,arguments)}function b1(e,t,r,n,i,s,a,o,l){if(O1.apply(this,arguments),ds){if(ds){var u=io;ds=!1,io=null}else throw Error(k(198));so||(so=!0,fc=u)}}function En(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function vv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function hh(e){if(En(e)!==e)throw Error(k(188))}function x1(e){var t=e.alternate;if(!t){if(t=En(e),t===null)throw Error(k(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return hh(i),e;if(s===n)return hh(i),t;s=s.sibling}throw Error(k(188))}if(r.return!==n.return)r=i,n=s;else{for(var a=!1,o=i.child;o;){if(o===r){a=!0,r=i,n=s;break}if(o===n){a=!0,n=i,r=s;break}o=o.sibling}if(!a){for(o=s.child;o;){if(o===r){a=!0,r=s,n=i;break}if(o===n){a=!0,n=s,r=i;break}o=o.sibling}if(!a)throw Error(k(189))}}if(r.alternate!==n)throw Error(k(190))}if(r.tag!==3)throw Error(k(188));return r.stateNode.current===r?e:t}function yv(e){return e=x1(e),e!==null?gv(e):null}function gv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gv(e);if(t!==null)return t;e=e.sibling}return null}var Sv=dt.unstable_scheduleCallback,ph=dt.unstable_cancelCallback,R1=dt.unstable_shouldYield,T1=dt.unstable_requestPaint,we=dt.unstable_now,M1=dt.unstable_getCurrentPriorityLevel,Td=dt.unstable_ImmediatePriority,Ev=dt.unstable_UserBlockingPriority,ao=dt.unstable_NormalPriority,_1=dt.unstable_LowPriority,wv=dt.unstable_IdlePriority,zo=null,Gt=null;function k1(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(zo,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:L1,D1=Math.log,A1=Math.LN2;function L1(e){return e>>>=0,e===0?32:31-(D1(e)/A1|0)|0}var ha=64,pa=4194304;function os(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 oo(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,a=r&268435455;if(a!==0){var o=a&~i;o!==0?n=os(o):(s&=a,s!==0&&(n=os(s)))}else a=r&~i,a!==0?n=os(a):s!==0&&(n=os(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-_t(t),i=1<<r,n|=e[r],t&=~i;return n}function N1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function F1(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var a=31-_t(s),o=1<<a,l=i[a];l===-1?(!(o&r)||o&n)&&(i[a]=N1(o,t)):l<=t&&(e.expiredLanes|=o),s&=~o}}function hc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Cv(){var e=ha;return ha<<=1,!(ha&4194240)&&(ha=64),e}function Ll(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ws(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=r}function q1(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-_t(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function Md(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-_t(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var se=0;function Pv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var $v,_d,Ov,bv,xv,pc=!1,ma=[],xr=null,Rr=null,Tr=null,bs=new Map,xs=new Map,Cr=[],I1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mh(e,t){switch(e){case"focusin":case"focusout":xr=null;break;case"dragenter":case"dragleave":Rr=null;break;case"mouseover":case"mouseout":Tr=null;break;case"pointerover":case"pointerout":bs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xs.delete(t.pointerId)}}function Wi(e,t,r,n,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Ks(t),t!==null&&_d(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Q1(e,t,r,n,i){switch(t){case"focusin":return xr=Wi(xr,e,t,r,n,i),!0;case"dragenter":return Rr=Wi(Rr,e,t,r,n,i),!0;case"mouseover":return Tr=Wi(Tr,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return bs.set(s,Wi(bs.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,xs.set(s,Wi(xs.get(s)||null,e,t,r,n,i)),!0}return!1}function Rv(e){var t=Zr(e.target);if(t!==null){var r=En(t);if(r!==null){if(t=r.tag,t===13){if(t=vv(r),t!==null){e.blockedOn=t,xv(e.priority,function(){Ov(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ja(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=mc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);uc=n,r.target.dispatchEvent(n),uc=null}else return t=Ks(r),t!==null&&_d(t),e.blockedOn=r,!1;t.shift()}return!0}function vh(e,t,r){ja(e)&&r.delete(t)}function U1(){pc=!1,xr!==null&&ja(xr)&&(xr=null),Rr!==null&&ja(Rr)&&(Rr=null),Tr!==null&&ja(Tr)&&(Tr=null),bs.forEach(vh),xs.forEach(vh)}function Gi(e,t){e.blockedOn===t&&(e.blockedOn=null,pc||(pc=!0,dt.unstable_scheduleCallback(dt.unstable_NormalPriority,U1)))}function Rs(e){function t(i){return Gi(i,e)}if(0<ma.length){Gi(ma[0],e);for(var r=1;r<ma.length;r++){var n=ma[r];n.blockedOn===e&&(n.blockedOn=null)}}for(xr!==null&&Gi(xr,e),Rr!==null&&Gi(Rr,e),Tr!==null&&Gi(Tr,e),bs.forEach(t),xs.forEach(t),r=0;r<Cr.length;r++)n=Cr[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Cr.length&&(r=Cr[0],r.blockedOn===null);)Rv(r),r.blockedOn===null&&Cr.shift()}var ri=fr.ReactCurrentBatchConfig,lo=!0;function j1(e,t,r,n){var i=se,s=ri.transition;ri.transition=null;try{se=1,kd(e,t,r,n)}finally{se=i,ri.transition=s}}function z1(e,t,r,n){var i=se,s=ri.transition;ri.transition=null;try{se=4,kd(e,t,r,n)}finally{se=i,ri.transition=s}}function kd(e,t,r,n){if(lo){var i=mc(e,t,r,n);if(i===null)Hl(e,t,n,uo,r),mh(e,n);else if(Q1(i,e,t,r,n))n.stopPropagation();else if(mh(e,n),t&4&&-1<I1.indexOf(e)){for(;i!==null;){var s=Ks(i);if(s!==null&&$v(s),s=mc(e,t,r,n),s===null&&Hl(e,t,n,uo,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else Hl(e,t,n,null,r)}}var uo=null;function mc(e,t,r,n){if(uo=null,e=Rd(n),e=Zr(e),e!==null)if(t=En(e),t===null)e=null;else if(r=t.tag,r===13){if(e=vv(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return uo=e,null}function Tv(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(M1()){case Td:return 1;case Ev:return 4;case ao:case _1:return 16;case wv:return 536870912;default:return 16}default:return 16}}var $r=null,Dd=null,za=null;function Mv(){if(za)return za;var e,t=Dd,r=t.length,n,i="value"in $r?$r.value:$r.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[s-n];n++);return za=i.slice(e,1<n?1-n:void 0)}function Ba(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function va(){return!0}function yh(){return!1}function ht(e){function t(r,n,i,s,a){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=a,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(r=e[o],this[o]=r?r(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?va:yh,this.isPropagationStopped=yh,this}return ye(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=va)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=va)},persist:function(){},isPersistent:va}),t}var xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ad=ht(xi),Gs=ye({},xi,{view:0,detail:0}),B1=ht(Gs),Nl,Fl,Ki,Bo=ye({},Gs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ld,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ki&&(Ki&&e.type==="mousemove"?(Nl=e.screenX-Ki.screenX,Fl=e.screenY-Ki.screenY):Fl=Nl=0,Ki=e),Nl)},movementY:function(e){return"movementY"in e?e.movementY:Fl}}),gh=ht(Bo),H1=ye({},Bo,{dataTransfer:0}),W1=ht(H1),G1=ye({},Gs,{relatedTarget:0}),ql=ht(G1),K1=ye({},xi,{animationName:0,elapsedTime:0,pseudoElement:0}),V1=ht(K1),X1=ye({},xi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Y1=ht(X1),J1=ye({},xi,{data:0}),Sh=ht(J1),Z1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tS[e])?!!t[e]:!1}function Ld(){return rS}var nS=ye({},Gs,{key:function(e){if(e.key){var t=Z1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ba(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?eS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ld,charCode:function(e){return e.type==="keypress"?Ba(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ba(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iS=ht(nS),sS=ye({},Bo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eh=ht(sS),aS=ye({},Gs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ld}),oS=ht(aS),lS=ye({},xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),uS=ht(lS),cS=ye({},Bo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),dS=ht(cS),fS=[9,13,27,32],Nd=or&&"CompositionEvent"in window,fs=null;or&&"documentMode"in document&&(fs=document.documentMode);var hS=or&&"TextEvent"in window&&!fs,_v=or&&(!Nd||fs&&8<fs&&11>=fs),wh=String.fromCharCode(32),Ch=!1;function kv(e,t){switch(e){case"keyup":return fS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function pS(e,t){switch(e){case"compositionend":return Dv(t);case"keypress":return t.which!==32?null:(Ch=!0,wh);case"textInput":return e=t.data,e===wh&&Ch?null:e;default:return null}}function mS(e,t){if(Un)return e==="compositionend"||!Nd&&kv(e,t)?(e=Mv(),za=Dd=$r=null,Un=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _v&&t.locale!=="ko"?null:t.data;default:return null}}var vS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ph(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vS[e.type]:t==="textarea"}function Av(e,t,r,n){dv(n),t=co(t,"onChange"),0<t.length&&(r=new Ad("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var hs=null,Ts=null;function yS(e){Hv(e,0)}function Ho(e){var t=Bn(e);if(iv(t))return e}function gS(e,t){if(e==="change")return t}var Lv=!1;if(or){var Il;if(or){var Ql="oninput"in document;if(!Ql){var $h=document.createElement("div");$h.setAttribute("oninput","return;"),Ql=typeof $h.oninput=="function"}Il=Ql}else Il=!1;Lv=Il&&(!document.documentMode||9<document.documentMode)}function Oh(){hs&&(hs.detachEvent("onpropertychange",Nv),Ts=hs=null)}function Nv(e){if(e.propertyName==="value"&&Ho(Ts)){var t=[];Av(t,Ts,e,Rd(e)),mv(yS,t)}}function SS(e,t,r){e==="focusin"?(Oh(),hs=t,Ts=r,hs.attachEvent("onpropertychange",Nv)):e==="focusout"&&Oh()}function ES(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ho(Ts)}function wS(e,t){if(e==="click")return Ho(t)}function CS(e,t){if(e==="input"||e==="change")return Ho(t)}function PS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:PS;function Ms(e,t){if(At(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Yu.call(t,i)||!At(e[i],t[i]))return!1}return!0}function bh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xh(e,t){var r=bh(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=bh(r)}}function Fv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qv(){for(var e=window,t=no();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=no(e.document)}return t}function Fd(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 $S(e){var t=qv(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Fv(r.ownerDocument.documentElement,r)){if(n!==null&&Fd(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=xh(r,s);var a=xh(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var OS=or&&"documentMode"in document&&11>=document.documentMode,jn=null,vc=null,ps=null,yc=!1;function Rh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;yc||jn==null||jn!==no(n)||(n=jn,"selectionStart"in n&&Fd(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ps&&Ms(ps,n)||(ps=n,n=co(vc,"onSelect"),0<n.length&&(t=new Ad("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=jn)))}function ya(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var zn={animationend:ya("Animation","AnimationEnd"),animationiteration:ya("Animation","AnimationIteration"),animationstart:ya("Animation","AnimationStart"),transitionend:ya("Transition","TransitionEnd")},Ul={},Iv={};or&&(Iv=document.createElement("div").style,"AnimationEvent"in window||(delete zn.animationend.animation,delete zn.animationiteration.animation,delete zn.animationstart.animation),"TransitionEvent"in window||delete zn.transitionend.transition);function Wo(e){if(Ul[e])return Ul[e];if(!zn[e])return e;var t=zn[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Iv)return Ul[e]=t[r];return e}var Qv=Wo("animationend"),Uv=Wo("animationiteration"),jv=Wo("animationstart"),zv=Wo("transitionend"),Bv=new Map,Th="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Qr(e,t){Bv.set(e,t),Sn(t,[e])}for(var jl=0;jl<Th.length;jl++){var zl=Th[jl],bS=zl.toLowerCase(),xS=zl[0].toUpperCase()+zl.slice(1);Qr(bS,"on"+xS)}Qr(Qv,"onAnimationEnd");Qr(Uv,"onAnimationIteration");Qr(jv,"onAnimationStart");Qr("dblclick","onDoubleClick");Qr("focusin","onFocus");Qr("focusout","onBlur");Qr(zv,"onTransitionEnd");ci("onMouseEnter",["mouseout","mouseover"]);ci("onMouseLeave",["mouseout","mouseover"]);ci("onPointerEnter",["pointerout","pointerover"]);ci("onPointerLeave",["pointerout","pointerover"]);Sn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Sn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Sn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Sn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Sn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Sn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ls="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),RS=new Set("cancel close invalid load scroll toggle".split(" ").concat(ls));function Mh(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,b1(n,t,void 0,e),e.currentTarget=null}function Hv(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var a=n.length-1;0<=a;a--){var o=n[a],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==s&&i.isPropagationStopped())break e;Mh(i,o,u),s=l}else for(a=0;a<n.length;a++){if(o=n[a],l=o.instance,u=o.currentTarget,o=o.listener,l!==s&&i.isPropagationStopped())break e;Mh(i,o,u),s=l}}}if(so)throw e=fc,so=!1,fc=null,e}function ce(e,t){var r=t[Cc];r===void 0&&(r=t[Cc]=new Set);var n=e+"__bubble";r.has(n)||(Wv(t,e,2,!1),r.add(n))}function Bl(e,t,r){var n=0;t&&(n|=4),Wv(r,e,n,t)}var ga="_reactListening"+Math.random().toString(36).slice(2);function _s(e){if(!e[ga]){e[ga]=!0,Zm.forEach(function(r){r!=="selectionchange"&&(RS.has(r)||Bl(r,!1,e),Bl(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ga]||(t[ga]=!0,Bl("selectionchange",!1,t))}}function Wv(e,t,r,n){switch(Tv(t)){case 1:var i=j1;break;case 4:i=z1;break;default:i=kd}r=i.bind(null,t,r,e),i=void 0,!dc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Hl(e,t,r,n,i){var s=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var o=n.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;o!==null;){if(a=Zr(o),a===null)return;if(l=a.tag,l===5||l===6){n=s=a;continue e}o=o.parentNode}}n=n.return}mv(function(){var u=s,d=Rd(r),c=[];e:{var h=Bv.get(e);if(h!==void 0){var S=Ad,E=e;switch(e){case"keypress":if(Ba(r)===0)break e;case"keydown":case"keyup":S=iS;break;case"focusin":E="focus",S=ql;break;case"focusout":E="blur",S=ql;break;case"beforeblur":case"afterblur":S=ql;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":S=gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=W1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=oS;break;case Qv:case Uv:case jv:S=V1;break;case zv:S=uS;break;case"scroll":S=B1;break;case"wheel":S=dS;break;case"copy":case"cut":case"paste":S=Y1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=Eh}var f=(t&4)!==0,P=!f&&e==="scroll",m=f?h!==null?h+"Capture":null:h;f=[];for(var v=u,y;v!==null;){y=v;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,m!==null&&(w=Os(v,m),w!=null&&f.push(ks(v,w,y)))),P)break;v=v.return}0<f.length&&(h=new S(h,E,null,r,d),c.push({event:h,listeners:f}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",S=e==="mouseout"||e==="pointerout",h&&r!==uc&&(E=r.relatedTarget||r.fromElement)&&(Zr(E)||E[lr]))break e;if((S||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,S?(E=r.relatedTarget||r.toElement,S=u,E=E?Zr(E):null,E!==null&&(P=En(E),E!==P||E.tag!==5&&E.tag!==6)&&(E=null)):(S=null,E=u),S!==E)){if(f=gh,w="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(f=Eh,w="onPointerLeave",m="onPointerEnter",v="pointer"),P=S==null?h:Bn(S),y=E==null?h:Bn(E),h=new f(w,v+"leave",S,r,d),h.target=P,h.relatedTarget=y,w=null,Zr(d)===u&&(f=new f(m,v+"enter",E,r,d),f.target=y,f.relatedTarget=P,w=f),P=w,S&&E)t:{for(f=S,m=E,v=0,y=f;y;y=Rn(y))v++;for(y=0,w=m;w;w=Rn(w))y++;for(;0<v-y;)f=Rn(f),v--;for(;0<y-v;)m=Rn(m),y--;for(;v--;){if(f===m||m!==null&&f===m.alternate)break t;f=Rn(f),m=Rn(m)}f=null}else f=null;S!==null&&_h(c,h,S,f,!1),E!==null&&P!==null&&_h(c,P,E,f,!0)}}e:{if(h=u?Bn(u):window,S=h.nodeName&&h.nodeName.toLowerCase(),S==="select"||S==="input"&&h.type==="file")var $=gS;else if(Ph(h))if(Lv)$=CS;else{$=ES;var R=SS}else(S=h.nodeName)&&S.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&($=wS);if($&&($=$(e,u))){Av(c,$,r,d);break e}R&&R(e,h,u),e==="focusout"&&(R=h._wrapperState)&&R.controlled&&h.type==="number"&&ic(h,"number",h.value)}switch(R=u?Bn(u):window,e){case"focusin":(Ph(R)||R.contentEditable==="true")&&(jn=R,vc=u,ps=null);break;case"focusout":ps=vc=jn=null;break;case"mousedown":yc=!0;break;case"contextmenu":case"mouseup":case"dragend":yc=!1,Rh(c,r,d);break;case"selectionchange":if(OS)break;case"keydown":case"keyup":Rh(c,r,d)}var x;if(Nd)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?kv(e,r)&&(b="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(b="onCompositionStart");b&&(_v&&r.locale!=="ko"&&(Un||b!=="onCompositionStart"?b==="onCompositionEnd"&&Un&&(x=Mv()):($r=d,Dd="value"in $r?$r.value:$r.textContent,Un=!0)),R=co(u,b),0<R.length&&(b=new Sh(b,e,null,r,d),c.push({event:b,listeners:R}),x?b.data=x:(x=Dv(r),x!==null&&(b.data=x)))),(x=hS?pS(e,r):mS(e,r))&&(u=co(u,"onBeforeInput"),0<u.length&&(d=new Sh("onBeforeInput","beforeinput",null,r,d),c.push({event:d,listeners:u}),d.data=x))}Hv(c,t)})}function ks(e,t,r){return{instance:e,listener:t,currentTarget:r}}function co(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Os(e,r),s!=null&&n.unshift(ks(e,s,i)),s=Os(e,t),s!=null&&n.push(ks(e,s,i))),e=e.return}return n}function Rn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _h(e,t,r,n,i){for(var s=t._reactName,a=[];r!==null&&r!==n;){var o=r,l=o.alternate,u=o.stateNode;if(l!==null&&l===n)break;o.tag===5&&u!==null&&(o=u,i?(l=Os(r,s),l!=null&&a.unshift(ks(r,l,o))):i||(l=Os(r,s),l!=null&&a.push(ks(r,l,o)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var TS=/\r\n?/g,MS=/\u0000|\uFFFD/g;function kh(e){return(typeof e=="string"?e:""+e).replace(TS,`
  30. `).replace(MS,"")}function Sa(e,t,r){if(t=kh(t),kh(e)!==t&&r)throw Error(k(425))}function fo(){}var gc=null,Sc=null;function Ec(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wc=typeof setTimeout=="function"?setTimeout:void 0,_S=typeof clearTimeout=="function"?clearTimeout:void 0,Dh=typeof Promise=="function"?Promise:void 0,kS=typeof queueMicrotask=="function"?queueMicrotask:typeof Dh<"u"?function(e){return Dh.resolve(null).then(e).catch(DS)}:wc;function DS(e){setTimeout(function(){throw e})}function Wl(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Rs(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Rs(t)}function Mr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ah(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ri=Math.random().toString(36).slice(2),Ht="__reactFiber$"+Ri,Ds="__reactProps$"+Ri,lr="__reactContainer$"+Ri,Cc="__reactEvents$"+Ri,AS="__reactListeners$"+Ri,LS="__reactHandles$"+Ri;function Zr(e){var t=e[Ht];if(t)return t;for(var r=e.parentNode;r;){if(t=r[lr]||r[Ht]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Ah(e);e!==null;){if(r=e[Ht])return r;e=Ah(e)}return t}e=r,r=e.parentNode}return null}function Ks(e){return e=e[Ht]||e[lr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function Go(e){return e[Ds]||null}var Pc=[],Hn=-1;function Ur(e){return{current:e}}function de(e){0>Hn||(e.current=Pc[Hn],Pc[Hn]=null,Hn--)}function ue(e,t){Hn++,Pc[Hn]=e.current,e.current=t}var Nr={},Be=Ur(Nr),et=Ur(!1),ln=Nr;function di(e,t){var r=e.type.contextTypes;if(!r)return Nr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function tt(e){return e=e.childContextTypes,e!=null}function ho(){de(et),de(Be)}function Lh(e,t,r){if(Be.current!==Nr)throw Error(k(168));ue(Be,t),ue(et,r)}function Gv(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(k(108,S1(e)||"Unknown",i));return ye({},r,n)}function po(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nr,ln=Be.current,ue(Be,e),ue(et,et.current),!0}function Nh(e,t,r){var n=e.stateNode;if(!n)throw Error(k(169));r?(e=Gv(e,t,ln),n.__reactInternalMemoizedMergedChildContext=e,de(et),de(Be),ue(Be,e)):de(et),ue(et,r)}var tr=null,Ko=!1,Gl=!1;function Kv(e){tr===null?tr=[e]:tr.push(e)}function NS(e){Ko=!0,Kv(e)}function jr(){if(!Gl&&tr!==null){Gl=!0;var e=0,t=se;try{var r=tr;for(se=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}tr=null,Ko=!1}catch(i){throw tr!==null&&(tr=tr.slice(e+1)),Sv(Td,jr),i}finally{se=t,Gl=!1}}return null}var Wn=[],Gn=0,mo=null,vo=0,mt=[],vt=0,un=null,nr=1,ir="";function Kr(e,t){Wn[Gn++]=vo,Wn[Gn++]=mo,mo=e,vo=t}function Vv(e,t,r){mt[vt++]=nr,mt[vt++]=ir,mt[vt++]=un,un=e;var n=nr;e=ir;var i=32-_t(n)-1;n&=~(1<<i),r+=1;var s=32-_t(t)+i;if(30<s){var a=i-i%5;s=(n&(1<<a)-1).toString(32),n>>=a,i-=a,nr=1<<32-_t(t)+i|r<<i|n,ir=s+e}else nr=1<<s|r<<i|n,ir=e}function qd(e){e.return!==null&&(Kr(e,1),Vv(e,1,0))}function Id(e){for(;e===mo;)mo=Wn[--Gn],Wn[Gn]=null,vo=Wn[--Gn],Wn[Gn]=null;for(;e===un;)un=mt[--vt],mt[vt]=null,ir=mt[--vt],mt[vt]=null,nr=mt[--vt],mt[vt]=null}var ut=null,lt=null,pe=!1,Mt=null;function Xv(e,t){var r=yt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Fh(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ut=e,lt=Mr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ut=e,lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=un!==null?{id:nr,overflow:ir}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=yt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,ut=e,lt=null,!0):!1;default:return!1}}function $c(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Oc(e){if(pe){var t=lt;if(t){var r=t;if(!Fh(e,t)){if($c(e))throw Error(k(418));t=Mr(r.nextSibling);var n=ut;t&&Fh(e,t)?Xv(n,r):(e.flags=e.flags&-4097|2,pe=!1,ut=e)}}else{if($c(e))throw Error(k(418));e.flags=e.flags&-4097|2,pe=!1,ut=e}}}function qh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ut=e}function Ea(e){if(e!==ut)return!1;if(!pe)return qh(e),pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ec(e.type,e.memoizedProps)),t&&(t=lt)){if($c(e))throw Yv(),Error(k(418));for(;t;)Xv(e,t),t=Mr(t.nextSibling)}if(qh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){lt=Mr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}lt=null}}else lt=ut?Mr(e.stateNode.nextSibling):null;return!0}function Yv(){for(var e=lt;e;)e=Mr(e.nextSibling)}function fi(){lt=ut=null,pe=!1}function Qd(e){Mt===null?Mt=[e]:Mt.push(e)}var FS=fr.ReactCurrentBatchConfig;function Rt(e,t){if(e&&e.defaultProps){t=ye({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var yo=Ur(null),go=null,Kn=null,Ud=null;function jd(){Ud=Kn=go=null}function zd(e){var t=yo.current;de(yo),e._currentValue=t}function bc(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ni(e,t){go=e,Ud=Kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ze=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(Ud!==e)if(e={context:e,memoizedValue:t,next:null},Kn===null){if(go===null)throw Error(k(308));Kn=e,go.dependencies={lanes:0,firstContext:e}}else Kn=Kn.next=e;return t}var en=null;function Bd(e){en===null?en=[e]:en.push(e)}function Jv(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Bd(t)):(r.next=i.next,i.next=r),t.interleaved=r,ur(e,n)}function ur(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Sr=!1;function Hd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zv(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 sr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _r(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,re&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,ur(e,r)}return i=n.interleaved,i===null?(t.next=t,Bd(n)):(t.next=i.next,i.next=t),n.interleaved=t,ur(e,r)}function Ha(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Md(e,r)}}function Ih(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=a:s=s.next=a,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function So(e,t,r,n){var i=e.updateQueue;Sr=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,a===null?s=u:a.next=u,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==a&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=l))}if(s!==null){var c=i.baseState;a=0,d=u=l=null,o=s;do{var h=o.lane,S=o.eventTime;if((n&h)===h){d!==null&&(d=d.next={eventTime:S,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var E=e,f=o;switch(h=t,S=r,f.tag){case 1:if(E=f.payload,typeof E=="function"){c=E.call(S,c,h);break e}c=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=f.payload,h=typeof E=="function"?E.call(S,c,h):E,h==null)break e;c=ye({},c,h);break e;case 2:Sr=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[o]:h.push(o))}else S={eventTime:S,lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=S,l=c):d=d.next=S,a|=h;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;h=o,o=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(d===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);dn|=a,e.lanes=a,e.memoizedState=c}}function Qh(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(k(191,i));i.call(n)}}}var ey=new Jm.Component().refs;function xc(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:ye({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Vo={isMounted:function(e){return(e=e._reactInternals)?En(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ve(),i=Dr(e),s=sr(n,i);s.payload=t,r!=null&&(s.callback=r),t=_r(e,s,i),t!==null&&(kt(t,e,i,n),Ha(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ve(),i=Dr(e),s=sr(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=_r(e,s,i),t!==null&&(kt(t,e,i,n),Ha(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ve(),n=Dr(e),i=sr(r,n);i.tag=2,t!=null&&(i.callback=t),t=_r(e,i,n),t!==null&&(kt(t,e,n,r),Ha(t,e,n))}};function Uh(e,t,r,n,i,s,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,a):t.prototype&&t.prototype.isPureReactComponent?!Ms(r,n)||!Ms(i,s):!0}function ty(e,t,r){var n=!1,i=Nr,s=t.contextType;return typeof s=="object"&&s!==null?s=wt(s):(i=tt(t)?ln:Be.current,n=t.contextTypes,s=(n=n!=null)?di(e,i):Nr),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Vo,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function jh(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Vo.enqueueReplaceState(t,t.state,null)}function Rc(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=ey,Hd(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=wt(s):(s=tt(t)?ln:Be.current,i.context=di(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(xc(e,t,s,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Vo.enqueueReplaceState(i,i.state,null),So(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Vi(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(k(309));var n=r.stateNode}if(!n)throw Error(k(147,e));var i=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(a){var o=i.refs;o===ey&&(o=i.refs={}),a===null?delete o[s]:o[s]=a},t._stringRef=s,t)}if(typeof e!="string")throw Error(k(284));if(!r._owner)throw Error(k(290,e))}return e}function wa(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zh(e){var t=e._init;return t(e._payload)}function ry(e){function t(m,v){if(e){var y=m.deletions;y===null?(m.deletions=[v],m.flags|=16):y.push(v)}}function r(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function n(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function i(m,v){return m=Ar(m,v),m.index=0,m.sibling=null,m}function s(m,v,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<v?(m.flags|=2,v):y):(m.flags|=2,v)):(m.flags|=1048576,v)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function o(m,v,y,w){return v===null||v.tag!==6?(v=eu(y,m.mode,w),v.return=m,v):(v=i(v,y),v.return=m,v)}function l(m,v,y,w){var $=y.type;return $===Qn?d(m,v,y.props.children,w,y.key):v!==null&&(v.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===gr&&zh($)===v.type)?(w=i(v,y.props),w.ref=Vi(m,v,y),w.return=m,w):(w=Ya(y.type,y.key,y.props,null,m.mode,w),w.ref=Vi(m,v,y),w.return=m,w)}function u(m,v,y,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==y.containerInfo||v.stateNode.implementation!==y.implementation?(v=tu(y,m.mode,w),v.return=m,v):(v=i(v,y.children||[]),v.return=m,v)}function d(m,v,y,w,$){return v===null||v.tag!==7?(v=sn(y,m.mode,w,$),v.return=m,v):(v=i(v,y),v.return=m,v)}function c(m,v,y){if(typeof v=="string"&&v!==""||typeof v=="number")return v=eu(""+v,m.mode,y),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ca:return y=Ya(v.type,v.key,v.props,null,m.mode,y),y.ref=Vi(m,null,v),y.return=m,y;case In:return v=tu(v,m.mode,y),v.return=m,v;case gr:var w=v._init;return c(m,w(v._payload),y)}if(as(v)||Bi(v))return v=sn(v,m.mode,y,null),v.return=m,v;wa(m,v)}return null}function h(m,v,y,w){var $=v!==null?v.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return $!==null?null:o(m,v,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ca:return y.key===$?l(m,v,y,w):null;case In:return y.key===$?u(m,v,y,w):null;case gr:return $=y._init,h(m,v,$(y._payload),w)}if(as(y)||Bi(y))return $!==null?null:d(m,v,y,w,null);wa(m,y)}return null}function S(m,v,y,w,$){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(y)||null,o(v,m,""+w,$);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ca:return m=m.get(w.key===null?y:w.key)||null,l(v,m,w,$);case In:return m=m.get(w.key===null?y:w.key)||null,u(v,m,w,$);case gr:var R=w._init;return S(m,v,y,R(w._payload),$)}if(as(w)||Bi(w))return m=m.get(y)||null,d(v,m,w,$,null);wa(v,w)}return null}function E(m,v,y,w){for(var $=null,R=null,x=v,b=v=0,I=null;x!==null&&b<y.length;b++){x.index>b?(I=x,x=null):I=x.sibling;var A=h(m,x,y[b],w);if(A===null){x===null&&(x=I);break}e&&x&&A.alternate===null&&t(m,x),v=s(A,v,b),R===null?$=A:R.sibling=A,R=A,x=I}if(b===y.length)return r(m,x),pe&&Kr(m,b),$;if(x===null){for(;b<y.length;b++)x=c(m,y[b],w),x!==null&&(v=s(x,v,b),R===null?$=x:R.sibling=x,R=x);return pe&&Kr(m,b),$}for(x=n(m,x);b<y.length;b++)I=S(x,m,b,y[b],w),I!==null&&(e&&I.alternate!==null&&x.delete(I.key===null?b:I.key),v=s(I,v,b),R===null?$=I:R.sibling=I,R=I);return e&&x.forEach(function(X){return t(m,X)}),pe&&Kr(m,b),$}function f(m,v,y,w){var $=Bi(y);if(typeof $!="function")throw Error(k(150));if(y=$.call(y),y==null)throw Error(k(151));for(var R=$=null,x=v,b=v=0,I=null,A=y.next();x!==null&&!A.done;b++,A=y.next()){x.index>b?(I=x,x=null):I=x.sibling;var X=h(m,x,A.value,w);if(X===null){x===null&&(x=I);break}e&&x&&X.alternate===null&&t(m,x),v=s(X,v,b),R===null?$=X:R.sibling=X,R=X,x=I}if(A.done)return r(m,x),pe&&Kr(m,b),$;if(x===null){for(;!A.done;b++,A=y.next())A=c(m,A.value,w),A!==null&&(v=s(A,v,b),R===null?$=A:R.sibling=A,R=A);return pe&&Kr(m,b),$}for(x=n(m,x);!A.done;b++,A=y.next())A=S(x,m,b,A.value,w),A!==null&&(e&&A.alternate!==null&&x.delete(A.key===null?b:A.key),v=s(A,v,b),R===null?$=A:R.sibling=A,R=A);return e&&x.forEach(function(ae){return t(m,ae)}),pe&&Kr(m,b),$}function P(m,v,y,w){if(typeof y=="object"&&y!==null&&y.type===Qn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ca:e:{for(var $=y.key,R=v;R!==null;){if(R.key===$){if($=y.type,$===Qn){if(R.tag===7){r(m,R.sibling),v=i(R,y.props.children),v.return=m,m=v;break e}}else if(R.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===gr&&zh($)===R.type){r(m,R.sibling),v=i(R,y.props),v.ref=Vi(m,R,y),v.return=m,m=v;break e}r(m,R);break}else t(m,R);R=R.sibling}y.type===Qn?(v=sn(y.props.children,m.mode,w,y.key),v.return=m,m=v):(w=Ya(y.type,y.key,y.props,null,m.mode,w),w.ref=Vi(m,v,y),w.return=m,m=w)}return a(m);case In:e:{for(R=y.key;v!==null;){if(v.key===R)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){r(m,v.sibling),v=i(v,y.children||[]),v.return=m,m=v;break e}else{r(m,v);break}else t(m,v);v=v.sibling}v=tu(y,m.mode,w),v.return=m,m=v}return a(m);case gr:return R=y._init,P(m,v,R(y._payload),w)}if(as(y))return E(m,v,y,w);if(Bi(y))return f(m,v,y,w);wa(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(r(m,v.sibling),v=i(v,y),v.return=m,m=v):(r(m,v),v=eu(y,m.mode,w),v.return=m,m=v),a(m)):r(m,v)}return P}var hi=ry(!0),ny=ry(!1),Vs={},Kt=Ur(Vs),As=Ur(Vs),Ls=Ur(Vs);function tn(e){if(e===Vs)throw Error(k(174));return e}function Wd(e,t){switch(ue(Ls,t),ue(As,e),ue(Kt,Vs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ac(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ac(t,e)}de(Kt),ue(Kt,t)}function pi(){de(Kt),de(As),de(Ls)}function iy(e){tn(Ls.current);var t=tn(Kt.current),r=ac(t,e.type);t!==r&&(ue(As,e),ue(Kt,r))}function Gd(e){As.current===e&&(de(Kt),de(As))}var me=Ur(0);function Eo(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kl=[];function Kd(){for(var e=0;e<Kl.length;e++)Kl[e]._workInProgressVersionPrimary=null;Kl.length=0}var Wa=fr.ReactCurrentDispatcher,Vl=fr.ReactCurrentBatchConfig,cn=0,ve=null,xe=null,_e=null,wo=!1,ms=!1,Ns=0,qS=0;function Ue(){throw Error(k(321))}function Vd(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!At(e[r],t[r]))return!1;return!0}function Xd(e,t,r,n,i,s){if(cn=s,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wa.current=e===null||e.memoizedState===null?jS:zS,e=r(n,i),ms){s=0;do{if(ms=!1,Ns=0,25<=s)throw Error(k(301));s+=1,_e=xe=null,t.updateQueue=null,Wa.current=BS,e=r(n,i)}while(ms)}if(Wa.current=Co,t=xe!==null&&xe.next!==null,cn=0,_e=xe=ve=null,wo=!1,t)throw Error(k(300));return e}function Yd(){var e=Ns!==0;return Ns=0,e}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _e===null?ve.memoizedState=_e=e:_e=_e.next=e,_e}function Ct(){if(xe===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=_e===null?ve.memoizedState:_e.next;if(t!==null)_e=t,xe=e;else{if(e===null)throw Error(k(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},_e===null?ve.memoizedState=_e=e:_e=_e.next=e}return _e}function Fs(e,t){return typeof t=="function"?t(e):t}function Xl(e){var t=Ct(),r=t.queue;if(r===null)throw Error(k(311));r.lastRenderedReducer=e;var n=xe,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var a=i.next;i.next=s.next,s.next=a}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var o=a=null,l=null,u=s;do{var d=u.lane;if((cn&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(o=l=c,a=n):l=l.next=c,ve.lanes|=d,dn|=d}u=u.next}while(u!==null&&u!==s);l===null?a=n:l.next=o,At(n,t.memoizedState)||(Ze=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,ve.lanes|=s,dn|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Yl(e){var t=Ct(),r=t.queue;if(r===null)throw Error(k(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do s=e(s,a.action),a=a.next;while(a!==i);At(s,t.memoizedState)||(Ze=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function sy(){}function ay(e,t){var r=ve,n=Ct(),i=t(),s=!At(n.memoizedState,i);if(s&&(n.memoizedState=i,Ze=!0),n=n.queue,Jd(uy.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||_e!==null&&_e.memoizedState.tag&1){if(r.flags|=2048,qs(9,ly.bind(null,r,n,i,t),void 0,null),ke===null)throw Error(k(349));cn&30||oy(r,t,i)}return i}function oy(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function ly(e,t,r,n){t.value=r,t.getSnapshot=n,cy(t)&&dy(e)}function uy(e,t,r){return r(function(){cy(t)&&dy(e)})}function cy(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!At(e,r)}catch{return!0}}function dy(e){var t=ur(e,1);t!==null&&kt(t,e,1,-1)}function Bh(e){var t=jt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fs,lastRenderedState:e},t.queue=e,e=e.dispatch=US.bind(null,ve,e),[t.memoizedState,e]}function qs(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function fy(){return Ct().memoizedState}function Ga(e,t,r,n){var i=jt();ve.flags|=e,i.memoizedState=qs(1|t,r,void 0,n===void 0?null:n)}function Xo(e,t,r,n){var i=Ct();n=n===void 0?null:n;var s=void 0;if(xe!==null){var a=xe.memoizedState;if(s=a.destroy,n!==null&&Vd(n,a.deps)){i.memoizedState=qs(t,r,s,n);return}}ve.flags|=e,i.memoizedState=qs(1|t,r,s,n)}function Hh(e,t){return Ga(8390656,8,e,t)}function Jd(e,t){return Xo(2048,8,e,t)}function hy(e,t){return Xo(4,2,e,t)}function py(e,t){return Xo(4,4,e,t)}function my(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vy(e,t,r){return r=r!=null?r.concat([e]):null,Xo(4,4,my.bind(null,t,e),r)}function Zd(){}function yy(e,t){var r=Ct();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Vd(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function gy(e,t){var r=Ct();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Vd(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Sy(e,t,r){return cn&21?(At(r,t)||(r=Cv(),ve.lanes|=r,dn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ze=!0),e.memoizedState=r)}function IS(e,t){var r=se;se=r!==0&&4>r?r:4,e(!0);var n=Vl.transition;Vl.transition={};try{e(!1),t()}finally{se=r,Vl.transition=n}}function Ey(){return Ct().memoizedState}function QS(e,t,r){var n=Dr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},wy(e))Cy(t,r);else if(r=Jv(e,t,r,n),r!==null){var i=Ve();kt(r,e,n,i),Py(r,t,n)}}function US(e,t,r){var n=Dr(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(wy(e))Cy(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,o=s(a,r);if(i.hasEagerState=!0,i.eagerState=o,At(o,a)){var l=t.interleaved;l===null?(i.next=i,Bd(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=Jv(e,t,i,n),r!==null&&(i=Ve(),kt(r,e,n,i),Py(r,t,n))}}function wy(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Cy(e,t){ms=wo=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Py(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Md(e,r)}}var Co={readContext:wt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},jS={readContext:wt,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Hh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ga(4194308,4,my.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ga(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ga(4,2,e,t)},useMemo:function(e,t){var r=jt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=jt();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=QS.bind(null,ve,e),[n.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:Bh,useDebugValue:Zd,useDeferredValue:function(e){return jt().memoizedState=e},useTransition:function(){var e=Bh(!1),t=e[0];return e=IS.bind(null,e[1]),jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ve,i=jt();if(pe){if(r===void 0)throw Error(k(407));r=r()}else{if(r=t(),ke===null)throw Error(k(349));cn&30||oy(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,Hh(uy.bind(null,n,s,e),[e]),n.flags|=2048,qs(9,ly.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=jt(),t=ke.identifierPrefix;if(pe){var r=ir,n=nr;r=(n&~(1<<32-_t(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ns++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=qS++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zS={readContext:wt,useCallback:yy,useContext:wt,useEffect:Jd,useImperativeHandle:vy,useInsertionEffect:hy,useLayoutEffect:py,useMemo:gy,useReducer:Xl,useRef:fy,useState:function(){return Xl(Fs)},useDebugValue:Zd,useDeferredValue:function(e){var t=Ct();return Sy(t,xe.memoizedState,e)},useTransition:function(){var e=Xl(Fs)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:sy,useSyncExternalStore:ay,useId:Ey,unstable_isNewReconciler:!1},BS={readContext:wt,useCallback:yy,useContext:wt,useEffect:Jd,useImperativeHandle:vy,useInsertionEffect:hy,useLayoutEffect:py,useMemo:gy,useReducer:Yl,useRef:fy,useState:function(){return Yl(Fs)},useDebugValue:Zd,useDeferredValue:function(e){var t=Ct();return xe===null?t.memoizedState=e:Sy(t,xe.memoizedState,e)},useTransition:function(){var e=Yl(Fs)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:sy,useSyncExternalStore:ay,useId:Ey,unstable_isNewReconciler:!1};function mi(e,t){try{var r="",n=t;do r+=g1(n),n=n.return;while(n);var i=r}catch(s){i=`
  31. Error generating stack: `+s.message+`
  32. `+s.stack}return{value:e,source:t,stack:i,digest:null}}function Jl(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Tc(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var HS=typeof WeakMap=="function"?WeakMap:Map;function $y(e,t,r){r=sr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){$o||($o=!0,Ic=n),Tc(e,t)},r}function Oy(e,t,r){r=sr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){Tc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){Tc(e,t),typeof n!="function"&&(kr===null?kr=new Set([this]):kr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function Wh(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new HS;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=sE.bind(null,e,t,r),t.then(e,e))}function Gh(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 Kh(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=sr(-1,1),t.tag=2,_r(r,t,1))),r.lanes|=1),e)}var WS=fr.ReactCurrentOwner,Ze=!1;function Ke(e,t,r,n){t.child=e===null?ny(t,null,r,n):hi(t,e.child,r,n)}function Vh(e,t,r,n,i){r=r.render;var s=t.ref;return ni(t,i),n=Xd(e,t,r,n,s,i),r=Yd(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,cr(e,t,i)):(pe&&r&&qd(t),t.flags|=1,Ke(e,t,n,i),t.child)}function Xh(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!lf(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,by(e,t,s,n,i)):(e=Ya(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var a=s.memoizedProps;if(r=r.compare,r=r!==null?r:Ms,r(a,n)&&e.ref===t.ref)return cr(e,t,i)}return t.flags|=1,e=Ar(s,n),e.ref=t.ref,e.return=t,t.child=e}function by(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Ms(s,n)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(Ze=!0);else return t.lanes=e.lanes,cr(e,t,i)}return Mc(e,t,r,n,i)}function xy(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Xn,at),at|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(Xn,at),at|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ue(Xn,at),at|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ue(Xn,at),at|=n;return Ke(e,t,i,r),t.child}function Ry(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Mc(e,t,r,n,i){var s=tt(r)?ln:Be.current;return s=di(t,s),ni(t,i),r=Xd(e,t,r,n,s,i),n=Yd(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,cr(e,t,i)):(pe&&n&&qd(t),t.flags|=1,Ke(e,t,r,i),t.child)}function Yh(e,t,r,n,i){if(tt(r)){var s=!0;po(t)}else s=!1;if(ni(t,i),t.stateNode===null)Ka(e,t),ty(t,r,n),Rc(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,o=t.memoizedProps;a.props=o;var l=a.context,u=r.contextType;typeof u=="object"&&u!==null?u=wt(u):(u=tt(r)?ln:Be.current,u=di(t,u));var d=r.getDerivedStateFromProps,c=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==n||l!==u)&&jh(t,a,n,u),Sr=!1;var h=t.memoizedState;a.state=h,So(t,n,a,i),l=t.memoizedState,o!==n||h!==l||et.current||Sr?(typeof d=="function"&&(xc(t,r,d,n),l=t.memoizedState),(o=Sr||Uh(t,r,o,n,h,l,u))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=u,n=o):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Zv(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:Rt(t.type,o),a.props=u,c=t.pendingProps,h=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=wt(l):(l=tt(r)?ln:Be.current,l=di(t,l));var S=r.getDerivedStateFromProps;(d=typeof S=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==c||h!==l)&&jh(t,a,n,l),Sr=!1,h=t.memoizedState,a.state=h,So(t,n,a,i);var E=t.memoizedState;o!==c||h!==E||et.current||Sr?(typeof S=="function"&&(xc(t,r,S,n),E=t.memoizedState),(u=Sr||Uh(t,r,u,n,h,E,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,E,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,E,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=E),a.props=n,a.state=E,a.context=l,n=u):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return _c(e,t,r,n,s,i)}function _c(e,t,r,n,i,s){Ry(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return i&&Nh(t,r,!1),cr(e,t,s);n=t.stateNode,WS.current=t;var o=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=hi(t,e.child,null,s),t.child=hi(t,null,o,s)):Ke(e,t,o,s),t.memoizedState=n.state,i&&Nh(t,r,!0),t.child}function Ty(e){var t=e.stateNode;t.pendingContext?Lh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Lh(e,t.context,!1),Wd(e,t.containerInfo)}function Jh(e,t,r,n,i){return fi(),Qd(i),t.flags|=256,Ke(e,t,r,n),t.child}var kc={dehydrated:null,treeContext:null,retryLane:0};function Dc(e){return{baseLanes:e,cachePool:null,transitions:null}}function My(e,t,r){var n=t.pendingProps,i=me.current,s=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ue(me,i&1),e===null)return Oc(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):(a=n.children,e=n.fallback,s?(n=t.mode,s=t.child,a={mode:"hidden",children:a},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=a):s=Zo(a,n,0,null),e=sn(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Dc(r),t.memoizedState=kc,e):ef(t,a));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return GS(e,t,a,n,o,i,r);if(s){s=n.fallback,a=t.mode,i=e.child,o=i.sibling;var l={mode:"hidden",children:n.children};return!(a&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Ar(i,l),n.subtreeFlags=i.subtreeFlags&14680064),o!==null?s=Ar(o,s):(s=sn(s,a,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,a=e.child.memoizedState,a=a===null?Dc(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=e.childLanes&~r,t.memoizedState=kc,n}return s=e.child,e=s.sibling,n=Ar(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function ef(e,t){return t=Zo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ca(e,t,r,n){return n!==null&&Qd(n),hi(t,e.child,null,r),e=ef(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function GS(e,t,r,n,i,s,a){if(r)return t.flags&256?(t.flags&=-257,n=Jl(Error(k(422))),Ca(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=Zo({mode:"visible",children:n.children},i,0,null),s=sn(s,i,a,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&hi(t,e.child,null,a),t.child.memoizedState=Dc(a),t.memoizedState=kc,s);if(!(t.mode&1))return Ca(e,t,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var o=n.dgst;return n=o,s=Error(k(419)),n=Jl(s,n,void 0),Ca(e,t,a,n)}if(o=(a&e.childLanes)!==0,Ze||o){if(n=ke,n!==null){switch(a&-a){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&(n.suspendedLanes|a)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,ur(e,i),kt(n,e,i,-1))}return of(),n=Jl(Error(k(421))),Ca(e,t,a,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=aE.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,lt=Mr(i.nextSibling),ut=t,pe=!0,Mt=null,e!==null&&(mt[vt++]=nr,mt[vt++]=ir,mt[vt++]=un,nr=e.id,ir=e.overflow,un=t),t=ef(t,n.children),t.flags|=4096,t)}function Zh(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),bc(e.return,t,r)}function Zl(e,t,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function _y(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(Ke(e,t,n.children,r),n=me.current,n&2)n=n&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&&Zh(e,r,t);else if(e.tag===19)Zh(e,r,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}n&=1}if(ue(me,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Eo(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Zl(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Eo(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Zl(t,!0,r,null,s);break;case"together":Zl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ka(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),dn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,r=Ar(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ar(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function KS(e,t,r){switch(t.tag){case 3:Ty(t),fi();break;case 5:iy(t);break;case 1:tt(t.type)&&po(t);break;case 4:Wd(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ue(yo,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ue(me,me.current&1),t.flags|=128,null):r&t.child.childLanes?My(e,t,r):(ue(me,me.current&1),e=cr(e,t,r),e!==null?e.sibling:null);ue(me,me.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return _y(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ue(me,me.current),n)break;return null;case 22:case 23:return t.lanes=0,xy(e,t,r)}return cr(e,t,r)}var ky,Ac,Dy,Ay;ky=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Ac=function(){};Dy=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,tn(Kt.current);var s=null;switch(r){case"input":i=rc(e,i),n=rc(e,n),s=[];break;case"select":i=ye({},i,{value:void 0}),n=ye({},n,{value:void 0}),s=[];break;case"textarea":i=sc(e,i),n=sc(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=fo)}oc(r,n);var a;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var o=i[u];for(a in o)o.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ps.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in n){var l=n[u];if(o=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==o&&(l!=null||o!=null))if(u==="style")if(o){for(a in o)!o.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&o[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(s||(s=[]),s.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ps.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ce("scroll",e),s||o===l||(s=[])):(s=s||[]).push(u,l))}r&&(s=s||[]).push("style",r);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Ay=function(e,t,r,n){r!==n&&(t.flags|=4)};function Xi(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function je(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function VS(e,t,r){var n=t.pendingProps;switch(Id(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return tt(t.type)&&ho(),je(t),null;case 3:return n=t.stateNode,pi(),de(et),de(Be),Kd(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ea(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mt!==null&&(jc(Mt),Mt=null))),Ac(e,t),je(t),null;case 5:Gd(t);var i=tn(Ls.current);if(r=t.type,e!==null&&t.stateNode!=null)Dy(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(k(166));return je(t),null}if(e=tn(Kt.current),Ea(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[Ht]=t,n[Ds]=s,e=(t.mode&1)!==0,r){case"dialog":ce("cancel",n),ce("close",n);break;case"iframe":case"object":case"embed":ce("load",n);break;case"video":case"audio":for(i=0;i<ls.length;i++)ce(ls[i],n);break;case"source":ce("error",n);break;case"img":case"image":case"link":ce("error",n),ce("load",n);break;case"details":ce("toggle",n);break;case"input":lh(n,s),ce("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},ce("invalid",n);break;case"textarea":ch(n,s),ce("invalid",n)}oc(r,s),i=null;for(var a in s)if(s.hasOwnProperty(a)){var o=s[a];a==="children"?typeof o=="string"?n.textContent!==o&&(s.suppressHydrationWarning!==!0&&Sa(n.textContent,o,e),i=["children",o]):typeof o=="number"&&n.textContent!==""+o&&(s.suppressHydrationWarning!==!0&&Sa(n.textContent,o,e),i=["children",""+o]):Ps.hasOwnProperty(a)&&o!=null&&a==="onScroll"&&ce("scroll",n)}switch(r){case"input":da(n),uh(n,s,!0);break;case"textarea":da(n),dh(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=fo)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ov(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Ht]=t,e[Ds]=n,ky(e,t,!1,!1),t.stateNode=e;e:{switch(a=lc(r,n),r){case"dialog":ce("cancel",e),ce("close",e),i=n;break;case"iframe":case"object":case"embed":ce("load",e),i=n;break;case"video":case"audio":for(i=0;i<ls.length;i++)ce(ls[i],e);i=n;break;case"source":ce("error",e),i=n;break;case"img":case"image":case"link":ce("error",e),ce("load",e),i=n;break;case"details":ce("toggle",e),i=n;break;case"input":lh(e,n),i=rc(e,n),ce("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=ye({},n,{value:void 0}),ce("invalid",e);break;case"textarea":ch(e,n),i=sc(e,n),ce("invalid",e);break;default:i=n}oc(r,i),o=i;for(s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="style"?cv(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&lv(e,l)):s==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&$s(e,l):typeof l=="number"&&$s(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ps.hasOwnProperty(s)?l!=null&&s==="onScroll"&&ce("scroll",e):l!=null&&$d(e,s,l,a))}switch(r){case"input":da(e),uh(e,n,!1);break;case"textarea":da(e),dh(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Lr(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?Zn(e,!!n.multiple,s,!1):n.defaultValue!=null&&Zn(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=fo)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return je(t),null;case 6:if(e&&t.stateNode!=null)Ay(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(k(166));if(r=tn(Ls.current),tn(Kt.current),Ea(t)){if(n=t.stateNode,r=t.memoizedProps,n[Ht]=t,(s=n.nodeValue!==r)&&(e=ut,e!==null))switch(e.tag){case 3:Sa(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Sa(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ht]=t,t.stateNode=n}return je(t),null;case 13:if(de(me),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pe&&lt!==null&&t.mode&1&&!(t.flags&128))Yv(),fi(),t.flags|=98560,s=!1;else if(s=Ea(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(k(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(k(317));s[Ht]=t}else fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;je(t),s=!1}else Mt!==null&&(jc(Mt),Mt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||me.current&1?Re===0&&(Re=3):of())),t.updateQueue!==null&&(t.flags|=4),je(t),null);case 4:return pi(),Ac(e,t),e===null&&_s(t.stateNode.containerInfo),je(t),null;case 10:return zd(t.type._context),je(t),null;case 17:return tt(t.type)&&ho(),je(t),null;case 19:if(de(me),s=t.memoizedState,s===null)return je(t),null;if(n=(t.flags&128)!==0,a=s.rendering,a===null)if(n)Xi(s,!1);else{if(Re!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Eo(e),a!==null){for(t.flags|=128,Xi(s,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,a=s.alternate,a===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=a.childLanes,s.lanes=a.lanes,s.child=a.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=a.memoizedProps,s.memoizedState=a.memoizedState,s.updateQueue=a.updateQueue,s.type=a.type,e=a.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ue(me,me.current&1|2),t.child}e=e.sibling}s.tail!==null&&we()>vi&&(t.flags|=128,n=!0,Xi(s,!1),t.lanes=4194304)}else{if(!n)if(e=Eo(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Xi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!pe)return je(t),null}else 2*we()-s.renderingStartTime>vi&&r!==1073741824&&(t.flags|=128,n=!0,Xi(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(r=s.last,r!==null?r.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=we(),t.sibling=null,r=me.current,ue(me,n?r&1|2:r&1),t):(je(t),null);case 22:case 23:return af(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?at&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function XS(e,t){switch(Id(t),t.tag){case 1:return tt(t.type)&&ho(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pi(),de(et),de(Be),Kd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gd(t),null;case 13:if(de(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(me),null;case 4:return pi(),null;case 10:return zd(t.type._context),null;case 22:case 23:return af(),null;case 24:return null;default:return null}}var Pa=!1,ze=!1,YS=typeof WeakSet=="function"?WeakSet:Set,F=null;function Vn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ge(e,t,n)}else r.current=null}function Lc(e,t,r){try{r()}catch(n){ge(e,t,n)}}var ep=!1;function JS(e,t){if(gc=lo,e=qv(),Fd(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var a=0,o=-1,l=-1,u=0,d=0,c=e,h=null;t:for(;;){for(var S;c!==r||i!==0&&c.nodeType!==3||(o=a+i),c!==s||n!==0&&c.nodeType!==3||(l=a+n),c.nodeType===3&&(a+=c.nodeValue.length),(S=c.firstChild)!==null;)h=c,c=S;for(;;){if(c===e)break t;if(h===r&&++u===i&&(o=a),h===s&&++d===n&&(l=a),(S=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=S}r=o===-1||l===-1?null:{start:o,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Sc={focusedElem:e,selectionRange:r},lo=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var f=E.memoizedProps,P=E.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?f:Rt(t.type,f),P);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){ge(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return E=ep,ep=!1,E}function vs(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Lc(t,r,s)}i=i.next}while(i!==n)}}function Yo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Nc(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Ly(e){var t=e.alternate;t!==null&&(e.alternate=null,Ly(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[Ds],delete t[Cc],delete t[AS],delete t[LS])),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 Ny(e){return e.tag===5||e.tag===3||e.tag===4}function tp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ny(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 Fc(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=fo));else if(n!==4&&(e=e.child,e!==null))for(Fc(e,t,r),e=e.sibling;e!==null;)Fc(e,t,r),e=e.sibling}function qc(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(qc(e,t,r),e=e.sibling;e!==null;)qc(e,t,r),e=e.sibling}var Le=null,Tt=!1;function yr(e,t,r){for(r=r.child;r!==null;)Fy(e,t,r),r=r.sibling}function Fy(e,t,r){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(zo,r)}catch{}switch(r.tag){case 5:ze||Vn(r,t);case 6:var n=Le,i=Tt;Le=null,yr(e,t,r),Le=n,Tt=i,Le!==null&&(Tt?(e=Le,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Le.removeChild(r.stateNode));break;case 18:Le!==null&&(Tt?(e=Le,r=r.stateNode,e.nodeType===8?Wl(e.parentNode,r):e.nodeType===1&&Wl(e,r),Rs(e)):Wl(Le,r.stateNode));break;case 4:n=Le,i=Tt,Le=r.stateNode.containerInfo,Tt=!0,yr(e,t,r),Le=n,Tt=i;break;case 0:case 11:case 14:case 15:if(!ze&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&Lc(r,t,a),i=i.next}while(i!==n)}yr(e,t,r);break;case 1:if(!ze&&(Vn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){ge(r,t,o)}yr(e,t,r);break;case 21:yr(e,t,r);break;case 22:r.mode&1?(ze=(n=ze)||r.memoizedState!==null,yr(e,t,r),ze=n):yr(e,t,r);break;default:yr(e,t,r)}}function rp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new YS),t.forEach(function(n){var i=oE.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function xt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=e,a=t,o=a;e:for(;o!==null;){switch(o.tag){case 5:Le=o.stateNode,Tt=!1;break e;case 3:Le=o.stateNode.containerInfo,Tt=!0;break e;case 4:Le=o.stateNode.containerInfo,Tt=!0;break e}o=o.return}if(Le===null)throw Error(k(160));Fy(s,a,i),Le=null,Tt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ge(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qy(t,e),t=t.sibling}function qy(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),It(e),n&4){try{vs(3,e,e.return),Yo(3,e)}catch(f){ge(e,e.return,f)}try{vs(5,e,e.return)}catch(f){ge(e,e.return,f)}}break;case 1:xt(t,e),It(e),n&512&&r!==null&&Vn(r,r.return);break;case 5:if(xt(t,e),It(e),n&512&&r!==null&&Vn(r,r.return),e.flags&32){var i=e.stateNode;try{$s(i,"")}catch(f){ge(e,e.return,f)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,a=r!==null?r.memoizedProps:s,o=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{o==="input"&&s.type==="radio"&&s.name!=null&&sv(i,s),lc(o,a);var u=lc(o,s);for(a=0;a<l.length;a+=2){var d=l[a],c=l[a+1];d==="style"?cv(i,c):d==="dangerouslySetInnerHTML"?lv(i,c):d==="children"?$s(i,c):$d(i,d,c,u)}switch(o){case"input":nc(i,s);break;case"textarea":av(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var S=s.value;S!=null?Zn(i,!!s.multiple,S,!1):h!==!!s.multiple&&(s.defaultValue!=null?Zn(i,!!s.multiple,s.defaultValue,!0):Zn(i,!!s.multiple,s.multiple?[]:"",!1))}i[Ds]=s}catch(f){ge(e,e.return,f)}}break;case 6:if(xt(t,e),It(e),n&4){if(e.stateNode===null)throw Error(k(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(f){ge(e,e.return,f)}}break;case 3:if(xt(t,e),It(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Rs(t.containerInfo)}catch(f){ge(e,e.return,f)}break;case 4:xt(t,e),It(e);break;case 13:xt(t,e),It(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(nf=we())),n&4&&rp(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(ze=(u=ze)||d,xt(t,e),ze=u):xt(t,e),It(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(F=e,d=e.child;d!==null;){for(c=F=d;F!==null;){switch(h=F,S=h.child,h.tag){case 0:case 11:case 14:case 15:vs(4,h,h.return);break;case 1:Vn(h,h.return);var E=h.stateNode;if(typeof E.componentWillUnmount=="function"){n=h,r=h.return;try{t=n,E.props=t.memoizedProps,E.state=t.memoizedState,E.componentWillUnmount()}catch(f){ge(n,r,f)}}break;case 5:Vn(h,h.return);break;case 22:if(h.memoizedState!==null){ip(c);continue}}S!==null?(S.return=h,F=S):ip(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{i=c.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(o=c.stateNode,l=c.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=uv("display",a))}catch(f){ge(e,e.return,f)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(f){ge(e,e.return,f)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:xt(t,e),It(e),n&4&&rp(e);break;case 21:break;default:xt(t,e),It(e)}}function It(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Ny(r)){var n=r;break e}r=r.return}throw Error(k(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&($s(i,""),n.flags&=-33);var s=tp(e);qc(e,s,i);break;case 3:case 4:var a=n.stateNode.containerInfo,o=tp(e);Fc(e,o,a);break;default:throw Error(k(161))}}catch(l){ge(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ZS(e,t,r){F=e,Iy(e)}function Iy(e,t,r){for(var n=(e.mode&1)!==0;F!==null;){var i=F,s=i.child;if(i.tag===22&&n){var a=i.memoizedState!==null||Pa;if(!a){var o=i.alternate,l=o!==null&&o.memoizedState!==null||ze;o=Pa;var u=ze;if(Pa=a,(ze=l)&&!u)for(F=i;F!==null;)a=F,l=a.child,a.tag===22&&a.memoizedState!==null?sp(i):l!==null?(l.return=a,F=l):sp(i);for(;s!==null;)F=s,Iy(s),s=s.sibling;F=i,Pa=o,ze=u}np(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,F=s):np(e)}}function np(e){for(;F!==null;){var t=F;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ze||Yo(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!ze)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Rt(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Qh(t,s,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Qh(t,a,r)}break;case 5:var o=t.stateNode;if(r===null&&t.flags&4){r=o;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&Rs(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}ze||t.flags&512&&Nc(t)}catch(h){ge(t,t.return,h)}}if(t===e){F=null;break}if(r=t.sibling,r!==null){r.return=t.return,F=r;break}F=t.return}}function ip(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var r=t.sibling;if(r!==null){r.return=t.return,F=r;break}F=t.return}}function sp(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Yo(4,t)}catch(l){ge(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){ge(t,i,l)}}var s=t.return;try{Nc(t)}catch(l){ge(t,s,l)}break;case 5:var a=t.return;try{Nc(t)}catch(l){ge(t,a,l)}}}catch(l){ge(t,t.return,l)}if(t===e){F=null;break}var o=t.sibling;if(o!==null){o.return=t.return,F=o;break}F=t.return}}var eE=Math.ceil,Po=fr.ReactCurrentDispatcher,tf=fr.ReactCurrentOwner,St=fr.ReactCurrentBatchConfig,re=0,ke=null,Oe=null,Ne=0,at=0,Xn=Ur(0),Re=0,Is=null,dn=0,Jo=0,rf=0,ys=null,Je=null,nf=0,vi=1/0,Zt=null,$o=!1,Ic=null,kr=null,$a=!1,Or=null,Oo=0,gs=0,Qc=null,Va=-1,Xa=0;function Ve(){return re&6?we():Va!==-1?Va:Va=we()}function Dr(e){return e.mode&1?re&2&&Ne!==0?Ne&-Ne:FS.transition!==null?(Xa===0&&(Xa=Cv()),Xa):(e=se,e!==0||(e=window.event,e=e===void 0?16:Tv(e.type)),e):1}function kt(e,t,r,n){if(50<gs)throw gs=0,Qc=null,Error(k(185));Ws(e,r,n),(!(re&2)||e!==ke)&&(e===ke&&(!(re&2)&&(Jo|=r),Re===4&&Pr(e,Ne)),rt(e,n),r===1&&re===0&&!(t.mode&1)&&(vi=we()+500,Ko&&jr()))}function rt(e,t){var r=e.callbackNode;F1(e,t);var n=oo(e,e===ke?Ne:0);if(n===0)r!==null&&ph(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&ph(r),t===1)e.tag===0?NS(ap.bind(null,e)):Kv(ap.bind(null,e)),kS(function(){!(re&6)&&jr()}),r=null;else{switch(Pv(n)){case 1:r=Td;break;case 4:r=Ev;break;case 16:r=ao;break;case 536870912:r=wv;break;default:r=ao}r=Gy(r,Qy.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Qy(e,t){if(Va=-1,Xa=0,re&6)throw Error(k(327));var r=e.callbackNode;if(ii()&&e.callbackNode!==r)return null;var n=oo(e,e===ke?Ne:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=bo(e,n);else{t=n;var i=re;re|=2;var s=jy();(ke!==e||Ne!==t)&&(Zt=null,vi=we()+500,nn(e,t));do try{nE();break}catch(o){Uy(e,o)}while(1);jd(),Po.current=s,re=i,Oe!==null?t=0:(ke=null,Ne=0,t=Re)}if(t!==0){if(t===2&&(i=hc(e),i!==0&&(n=i,t=Uc(e,i))),t===1)throw r=Is,nn(e,0),Pr(e,n),rt(e,we()),r;if(t===6)Pr(e,n);else{if(i=e.current.alternate,!(n&30)&&!tE(i)&&(t=bo(e,n),t===2&&(s=hc(e),s!==0&&(n=s,t=Uc(e,s))),t===1))throw r=Is,nn(e,0),Pr(e,n),rt(e,we()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(k(345));case 2:Vr(e,Je,Zt);break;case 3:if(Pr(e,n),(n&130023424)===n&&(t=nf+500-we(),10<t)){if(oo(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Ve(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=wc(Vr.bind(null,e,Je,Zt),t);break}Vr(e,Je,Zt);break;case 4:if(Pr(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var a=31-_t(n);s=1<<a,a=t[a],a>i&&(i=a),n&=~s}if(n=i,n=we()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*eE(n/1960))-n,10<n){e.timeoutHandle=wc(Vr.bind(null,e,Je,Zt),n);break}Vr(e,Je,Zt);break;case 5:Vr(e,Je,Zt);break;default:throw Error(k(329))}}}return rt(e,we()),e.callbackNode===r?Qy.bind(null,e):null}function Uc(e,t){var r=ys;return e.current.memoizedState.isDehydrated&&(nn(e,t).flags|=256),e=bo(e,t),e!==2&&(t=Je,Je=r,t!==null&&jc(t)),e}function jc(e){Je===null?Je=e:Je.push.apply(Je,e)}function tE(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!At(s(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pr(e,t){for(t&=~rf,t&=~Jo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-_t(t),n=1<<r;e[r]=-1,t&=~n}}function ap(e){if(re&6)throw Error(k(327));ii();var t=oo(e,0);if(!(t&1))return rt(e,we()),null;var r=bo(e,t);if(e.tag!==0&&r===2){var n=hc(e);n!==0&&(t=n,r=Uc(e,n))}if(r===1)throw r=Is,nn(e,0),Pr(e,t),rt(e,we()),r;if(r===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vr(e,Je,Zt),rt(e,we()),null}function sf(e,t){var r=re;re|=1;try{return e(t)}finally{re=r,re===0&&(vi=we()+500,Ko&&jr())}}function fn(e){Or!==null&&Or.tag===0&&!(re&6)&&ii();var t=re;re|=1;var r=St.transition,n=se;try{if(St.transition=null,se=1,e)return e()}finally{se=n,St.transition=r,re=t,!(re&6)&&jr()}}function af(){at=Xn.current,de(Xn)}function nn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,_S(r)),Oe!==null)for(r=Oe.return;r!==null;){var n=r;switch(Id(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&ho();break;case 3:pi(),de(et),de(Be),Kd();break;case 5:Gd(n);break;case 4:pi();break;case 13:de(me);break;case 19:de(me);break;case 10:zd(n.type._context);break;case 22:case 23:af()}r=r.return}if(ke=e,Oe=e=Ar(e.current,null),Ne=at=t,Re=0,Is=null,rf=Jo=dn=0,Je=ys=null,en!==null){for(t=0;t<en.length;t++)if(r=en[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var a=s.next;s.next=i,n.next=a}r.pending=n}en=null}return e}function Uy(e,t){do{var r=Oe;try{if(jd(),Wa.current=Co,wo){for(var n=ve.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}wo=!1}if(cn=0,_e=xe=ve=null,ms=!1,Ns=0,tf.current=null,r===null||r.return===null){Re=1,Is=t,Oe=null;break}e:{var s=e,a=r.return,o=r,l=t;if(t=Ne,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=o,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var S=Gh(a);if(S!==null){S.flags&=-257,Kh(S,a,o,s,t),S.mode&1&&Wh(s,u,t),t=S,l=u;var E=t.updateQueue;if(E===null){var f=new Set;f.add(l),t.updateQueue=f}else E.add(l);break e}else{if(!(t&1)){Wh(s,u,t),of();break e}l=Error(k(426))}}else if(pe&&o.mode&1){var P=Gh(a);if(P!==null){!(P.flags&65536)&&(P.flags|=256),Kh(P,a,o,s,t),Qd(mi(l,o));break e}}s=l=mi(l,o),Re!==4&&(Re=2),ys===null?ys=[s]:ys.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=$y(s,l,t);Ih(s,m);break e;case 1:o=l;var v=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(kr===null||!kr.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=Oy(s,o,t);Ih(s,w);break e}}s=s.return}while(s!==null)}By(r)}catch($){t=$,Oe===r&&r!==null&&(Oe=r=r.return);continue}break}while(1)}function jy(){var e=Po.current;return Po.current=Co,e===null?Co:e}function of(){(Re===0||Re===3||Re===2)&&(Re=4),ke===null||!(dn&268435455)&&!(Jo&268435455)||Pr(ke,Ne)}function bo(e,t){var r=re;re|=2;var n=jy();(ke!==e||Ne!==t)&&(Zt=null,nn(e,t));do try{rE();break}catch(i){Uy(e,i)}while(1);if(jd(),re=r,Po.current=n,Oe!==null)throw Error(k(261));return ke=null,Ne=0,Re}function rE(){for(;Oe!==null;)zy(Oe)}function nE(){for(;Oe!==null&&!R1();)zy(Oe)}function zy(e){var t=Wy(e.alternate,e,at);e.memoizedProps=e.pendingProps,t===null?By(e):Oe=t,tf.current=null}function By(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=XS(r,t),r!==null){r.flags&=32767,Oe=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Re=6,Oe=null;return}}else if(r=VS(r,t,at),r!==null){Oe=r;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);Re===0&&(Re=5)}function Vr(e,t,r){var n=se,i=St.transition;try{St.transition=null,se=1,iE(e,t,r,n)}finally{St.transition=i,se=n}return null}function iE(e,t,r,n){do ii();while(Or!==null);if(re&6)throw Error(k(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(k(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(q1(e,s),e===ke&&(Oe=ke=null,Ne=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||$a||($a=!0,Gy(ao,function(){return ii(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=St.transition,St.transition=null;var a=se;se=1;var o=re;re|=4,tf.current=null,JS(e,r),qy(r,e),$S(Sc),lo=!!gc,Sc=gc=null,e.current=r,ZS(r),T1(),re=o,se=a,St.transition=s}else e.current=r;if($a&&($a=!1,Or=e,Oo=i),s=e.pendingLanes,s===0&&(kr=null),k1(r.stateNode),rt(e,we()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if($o)throw $o=!1,e=Ic,Ic=null,e;return Oo&1&&e.tag!==0&&ii(),s=e.pendingLanes,s&1?e===Qc?gs++:(gs=0,Qc=e):gs=0,jr(),null}function ii(){if(Or!==null){var e=Pv(Oo),t=St.transition,r=se;try{if(St.transition=null,se=16>e?16:e,Or===null)var n=!1;else{if(e=Or,Or=null,Oo=0,re&6)throw Error(k(331));var i=re;for(re|=4,F=e.current;F!==null;){var s=F,a=s.child;if(F.flags&16){var o=s.deletions;if(o!==null){for(var l=0;l<o.length;l++){var u=o[l];for(F=u;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:vs(8,d,s)}var c=d.child;if(c!==null)c.return=d,F=c;else for(;F!==null;){d=F;var h=d.sibling,S=d.return;if(Ly(d),d===u){F=null;break}if(h!==null){h.return=S,F=h;break}F=S}}}var E=s.alternate;if(E!==null){var f=E.child;if(f!==null){E.child=null;do{var P=f.sibling;f.sibling=null,f=P}while(f!==null)}}F=s}}if(s.subtreeFlags&2064&&a!==null)a.return=s,F=a;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:vs(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,F=m;break e}F=s.return}}var v=e.current;for(F=v;F!==null;){a=F;var y=a.child;if(a.subtreeFlags&2064&&y!==null)y.return=a,F=y;else e:for(a=v;F!==null;){if(o=F,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Yo(9,o)}}catch($){ge(o,o.return,$)}if(o===a){F=null;break e}var w=o.sibling;if(w!==null){w.return=o.return,F=w;break e}F=o.return}}if(re=i,jr(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(zo,e)}catch{}n=!0}return n}finally{se=r,St.transition=t}}return!1}function op(e,t,r){t=mi(r,t),t=$y(e,t,1),e=_r(e,t,1),t=Ve(),e!==null&&(Ws(e,1,t),rt(e,t))}function ge(e,t,r){if(e.tag===3)op(e,e,r);else for(;t!==null;){if(t.tag===3){op(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(kr===null||!kr.has(n))){e=mi(r,e),e=Oy(t,e,1),t=_r(t,e,1),e=Ve(),t!==null&&(Ws(t,1,e),rt(t,e));break}}t=t.return}}function sE(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ve(),e.pingedLanes|=e.suspendedLanes&r,ke===e&&(Ne&r)===r&&(Re===4||Re===3&&(Ne&130023424)===Ne&&500>we()-nf?nn(e,0):rf|=r),rt(e,t)}function Hy(e,t){t===0&&(e.mode&1?(t=pa,pa<<=1,!(pa&130023424)&&(pa=4194304)):t=1);var r=Ve();e=ur(e,t),e!==null&&(Ws(e,t,r),rt(e,r))}function aE(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Hy(e,r)}function oE(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(k(314))}n!==null&&n.delete(t),Hy(e,r)}var Wy;Wy=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)Ze=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ze=!1,KS(e,t,r);Ze=!!(e.flags&131072)}else Ze=!1,pe&&t.flags&1048576&&Vv(t,vo,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ka(e,t),e=t.pendingProps;var i=di(t,Be.current);ni(t,r),i=Xd(null,t,n,e,i,r);var s=Yd();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,tt(n)?(s=!0,po(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Hd(t),i.updater=Vo,t.stateNode=i,i._reactInternals=t,Rc(t,n,e,r),t=_c(null,t,n,!0,s,r)):(t.tag=0,pe&&s&&qd(t),Ke(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ka(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=uE(n),e=Rt(n,e),i){case 0:t=Mc(null,t,n,e,r);break e;case 1:t=Yh(null,t,n,e,r);break e;case 11:t=Vh(null,t,n,e,r);break e;case 14:t=Xh(null,t,n,Rt(n.type,e),r);break e}throw Error(k(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rt(n,i),Mc(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rt(n,i),Yh(e,t,n,i,r);case 3:e:{if(Ty(t),e===null)throw Error(k(387));n=t.pendingProps,s=t.memoizedState,i=s.element,Zv(e,t),So(t,n,null,r);var a=t.memoizedState;if(n=a.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=mi(Error(k(423)),t),t=Jh(e,t,n,r,i);break e}else if(n!==i){i=mi(Error(k(424)),t),t=Jh(e,t,n,r,i);break e}else for(lt=Mr(t.stateNode.containerInfo.firstChild),ut=t,pe=!0,Mt=null,r=ny(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(fi(),n===i){t=cr(e,t,r);break e}Ke(e,t,n,r)}t=t.child}return t;case 5:return iy(t),e===null&&Oc(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,a=i.children,Ec(n,i)?a=null:s!==null&&Ec(n,s)&&(t.flags|=32),Ry(e,t),Ke(e,t,a,r),t.child;case 6:return e===null&&Oc(t),null;case 13:return My(e,t,r);case 4:return Wd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=hi(t,null,n,r):Ke(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rt(n,i),Vh(e,t,n,i,r);case 7:return Ke(e,t,t.pendingProps,r),t.child;case 8:return Ke(e,t,t.pendingProps.children,r),t.child;case 12:return Ke(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,ue(yo,n._currentValue),n._currentValue=a,s!==null)if(At(s.value,a)){if(s.children===i.children&&!et.current){t=cr(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){a=s.child;for(var l=o.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=sr(-1,r&-r),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),bc(s.return,r,t),o.lanes|=r;break}l=l.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(k(341));a.lanes|=r,o=a.alternate,o!==null&&(o.lanes|=r),bc(a,r,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Ke(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ni(t,r),i=wt(i),n=n(i),t.flags|=1,Ke(e,t,n,r),t.child;case 14:return n=t.type,i=Rt(n,t.pendingProps),i=Rt(n.type,i),Xh(e,t,n,i,r);case 15:return by(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rt(n,i),Ka(e,t),t.tag=1,tt(n)?(e=!0,po(t)):e=!1,ni(t,r),ty(t,n,i),Rc(t,n,i,r),_c(null,t,n,!0,e,r);case 19:return _y(e,t,r);case 22:return xy(e,t,r)}throw Error(k(156,t.tag))};function Gy(e,t){return Sv(e,t)}function lE(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,r,n){return new lE(e,t,r,n)}function lf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uE(e){if(typeof e=="function")return lf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bd)return 11;if(e===xd)return 14}return 2}function Ar(e,t){var r=e.alternate;return r===null?(r=yt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ya(e,t,r,n,i,s){var a=2;if(n=e,typeof e=="function")lf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Qn:return sn(r.children,i,s,t);case Od:a=8,i|=8;break;case Ju:return e=yt(12,r,t,i|2),e.elementType=Ju,e.lanes=s,e;case Zu:return e=yt(13,r,t,i),e.elementType=Zu,e.lanes=s,e;case ec:return e=yt(19,r,t,i),e.elementType=ec,e.lanes=s,e;case rv:return Zo(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ev:a=10;break e;case tv:a=9;break e;case bd:a=11;break e;case xd:a=14;break e;case gr:a=16,n=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=yt(a,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function sn(e,t,r,n){return e=yt(7,e,n,t),e.lanes=r,e}function Zo(e,t,r,n){return e=yt(22,e,n,t),e.elementType=rv,e.lanes=r,e.stateNode={isHidden:!1},e}function eu(e,t,r){return e=yt(6,e,null,t),e.lanes=r,e}function tu(e,t,r){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cE(e,t,r,n,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=Ll(0),this.expirationTimes=Ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ll(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uf(e,t,r,n,i,s,a,o,l){return e=new cE(e,t,r,o,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=yt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hd(s),e}function dE(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:In,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Ky(e){if(!e)return Nr;e=e._reactInternals;e:{if(En(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var r=e.type;if(tt(r))return Gv(e,r,t)}return t}function Vy(e,t,r,n,i,s,a,o,l){return e=uf(r,n,!0,e,i,s,a,o,l),e.context=Ky(null),r=e.current,n=Ve(),i=Dr(r),s=sr(n,i),s.callback=t??null,_r(r,s,i),e.current.lanes=i,Ws(e,i,n),rt(e,n),e}function el(e,t,r,n){var i=t.current,s=Ve(),a=Dr(i);return r=Ky(r),t.context===null?t.context=r:t.pendingContext=r,t=sr(s,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=_r(i,t,a),e!==null&&(kt(e,i,a,s),Ha(e,i,a)),a}function xo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function lp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function cf(e,t){lp(e,t),(e=e.alternate)&&lp(e,t)}function fE(){return null}var Xy=typeof reportError=="function"?reportError:function(e){console.error(e)};function df(e){this._internalRoot=e}tl.prototype.render=df.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));el(e,t,null,null)};tl.prototype.unmount=df.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fn(function(){el(null,e,null,null)}),t[lr]=null}};function tl(e){this._internalRoot=e}tl.prototype.unstable_scheduleHydration=function(e){if(e){var t=bv();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Cr.length&&t!==0&&t<Cr[r].priority;r++);Cr.splice(r,0,e),r===0&&Rv(e)}};function ff(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function rl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function up(){}function hE(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var u=xo(a);s.call(u)}}var a=Vy(t,n,e,0,null,!1,!1,"",up);return e._reactRootContainer=a,e[lr]=a.current,_s(e.nodeType===8?e.parentNode:e),fn(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var o=n;n=function(){var u=xo(l);o.call(u)}}var l=uf(e,0,!1,null,null,!1,!1,"",up);return e._reactRootContainer=l,e[lr]=l.current,_s(e.nodeType===8?e.parentNode:e),fn(function(){el(t,l,r,n)}),l}function nl(e,t,r,n,i){var s=r._reactRootContainer;if(s){var a=s;if(typeof i=="function"){var o=i;i=function(){var l=xo(a);o.call(l)}}el(t,a,e,i)}else a=hE(r,t,e,i,n);return xo(a)}$v=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=os(t.pendingLanes);r!==0&&(Md(t,r|1),rt(t,we()),!(re&6)&&(vi=we()+500,jr()))}break;case 13:fn(function(){var n=ur(e,1);if(n!==null){var i=Ve();kt(n,e,1,i)}}),cf(e,1)}};_d=function(e){if(e.tag===13){var t=ur(e,134217728);if(t!==null){var r=Ve();kt(t,e,134217728,r)}cf(e,134217728)}};Ov=function(e){if(e.tag===13){var t=Dr(e),r=ur(e,t);if(r!==null){var n=Ve();kt(r,e,t,n)}cf(e,t)}};bv=function(){return se};xv=function(e,t){var r=se;try{return se=e,t()}finally{se=r}};cc=function(e,t,r){switch(t){case"input":if(nc(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Go(n);if(!i)throw Error(k(90));iv(n),nc(n,i)}}}break;case"textarea":av(e,r);break;case"select":t=r.value,t!=null&&Zn(e,!!r.multiple,t,!1)}};hv=sf;pv=fn;var pE={usingClientEntryPoint:!1,Events:[Ks,Bn,Go,dv,fv,sf]},Yi={findFiberByHostInstance:Zr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},mE={bundleType:Yi.bundleType,version:Yi.version,rendererPackageName:Yi.rendererPackageName,rendererConfig:Yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yv(e),e===null?null:e.stateNode},findFiberByHostInstance:Yi.findFiberByHostInstance||fE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oa.isDisabled&&Oa.supportsFiber)try{zo=Oa.inject(mE),Gt=Oa}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pE;ft.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ff(t))throw Error(k(200));return dE(e,t,null,r)};ft.createRoot=function(e,t){if(!ff(e))throw Error(k(299));var r=!1,n="",i=Xy;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=uf(e,1,!1,null,null,r,!1,n,i),e[lr]=t.current,_s(e.nodeType===8?e.parentNode:e),new df(t)};ft.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=yv(t),e=e===null?null:e.stateNode,e};ft.flushSync=function(e){return fn(e)};ft.hydrate=function(e,t,r){if(!rl(t))throw Error(k(200));return nl(null,e,t,!0,r)};ft.hydrateRoot=function(e,t,r){if(!ff(e))throw Error(k(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",a=Xy;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=Vy(t,null,e,1,r??null,i,!1,s,a),e[lr]=t.current,_s(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new tl(t)};ft.render=function(e,t,r){if(!rl(t))throw Error(k(200));return nl(null,e,t,!1,r)};ft.unmountComponentAtNode=function(e){if(!rl(e))throw Error(k(40));return e._reactRootContainer?(fn(function(){nl(null,null,e,!1,function(){e._reactRootContainer=null,e[lr]=null})}),!0):!1};ft.unstable_batchedUpdates=sf;ft.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!rl(r))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return nl(e,t,r,!1,n)};ft.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}t(),e.exports=ft})(X0);const vE=vd(ui);var yE,cp=ui;yE=Vu.createRoot=cp.createRoot,Vu.hydrateRoot=cp.hydrateRoot;var Qs={},gE={get exports(){return Qs},set exports(e){Qs=e}},il={};/**
  33. * @license React
  34. * react-jsx-runtime.production.min.js
  35. *
  36. * Copyright (c) Facebook, Inc. and its affiliates.
  37. *
  38. * This source code is licensed under the MIT license found in the
  39. * LICENSE file in the root directory of this source tree.
  40. */var SE=g,EE=Symbol.for("react.element"),wE=Symbol.for("react.fragment"),CE=Object.prototype.hasOwnProperty,PE=SE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$E={key:!0,ref:!0,__self:!0,__source:!0};function Yy(e,t,r){var n,i={},s=null,a=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)CE.call(t,n)&&!$E.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:EE,type:e,key:s,ref:a,props:i,_owner:PE.current}}il.Fragment=wE;il.jsx=Yy;il.jsxs=Yy;(function(e){e.exports=il})(gE);const zc=Qs.Fragment,D=Qs.jsx,ot=Qs.jsxs,OE="modulepreload",bE=function(e){return"/app/"+e},dp={},Ti=function(t,r,n){if(!r||r.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(r.map(s=>{if(s=bE(s),s in dp)return;dp[s]=!0;const a=s.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let d=i.length-1;d>=0;d--){const c=i[d];if(c.href===s&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${o}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":OE,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((d,c)=>{u.addEventListener("load",d),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};/**
  41. * @remix-run/router v1.4.0
  42. *
  43. * Copyright (c) Remix Software Inc.
  44. *
  45. * This source code is licensed under the MIT license found in the
  46. * LICENSE.md file in the root directory of this source tree.
  47. *
  48. * @license MIT
  49. */function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},te.apply(this,arguments)}var Ee;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ee||(Ee={}));const fp="popstate";function xE(e){e===void 0&&(e={});function t(n,i){let{pathname:s,search:a,hash:o}=n.location;return Us("",{pathname:s,search:a,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:dr(i)}return TE(t,r,null,e)}function G(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function yi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function RE(){return Math.random().toString(36).substr(2,8)}function hp(e,t){return{usr:e.state,key:e.key,idx:t}}function Us(e,t,r,n){return r===void 0&&(r=null),te({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hr(t):t,{state:r,key:t&&t.key||n||RE()})}function dr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function hr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function TE(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,a=i.history,o=Ee.Pop,l=null,u=d();u==null&&(u=0,a.replaceState(te({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function c(){o=Ee.Pop;let P=d(),m=P==null?null:P-u;u=P,l&&l({action:o,location:f.location,delta:m})}function h(P,m){o=Ee.Push;let v=Us(f.location,P,m);r&&r(v,P),u=d()+1;let y=hp(v,u),w=f.createHref(v);try{a.pushState(y,"",w)}catch{i.location.assign(w)}s&&l&&l({action:o,location:f.location,delta:1})}function S(P,m){o=Ee.Replace;let v=Us(f.location,P,m);r&&r(v,P),u=d();let y=hp(v,u),w=f.createHref(v);a.replaceState(y,"",w),s&&l&&l({action:o,location:f.location,delta:0})}function E(P){let m=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof P=="string"?P:dr(P);return G(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let f={get action(){return o},get location(){return e(i,a)},listen(P){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(fp,c),l=P,()=>{i.removeEventListener(fp,c),l=null}},createHref(P){return t(i,P)},createURL:E,encodeLocation(P){let m=E(P);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:S,go(P){return a.go(P)}};return f}var be;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(be||(be={}));const ME=new Set(["lazy","caseSensitive","path","id","index","children"]);function _E(e){return e.index===!0}function Jy(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((i,s)=>{let a=[...r,s],o=typeof i.id=="string"?i.id:a.join("-");if(G(i.index!==!0||!i.children,"Cannot specify children on an index route"),G(!n[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),_E(i)){let l=te({},i,{hasErrorBoundary:t(i),id:o});return n[o]=l,l}else{let l=te({},i,{id:o,hasErrorBoundary:t(i),children:void 0});return n[o]=l,i.children&&(l.children=Jy(i.children,t,a,n)),l}})}function Yn(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?hr(t):t,i=Xs(n.pathname||"/",r);if(i==null)return null;let s=Zy(e);kE(s);let a=null;for(let o=0;a==null&&o<s.length;++o)a=UE(s[o],BE(i));return a}function Zy(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(s,a,o)=>{let l={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};l.relativePath.startsWith("/")&&(G(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ar([n,l.relativePath]),d=r.concat(l);s.children&&s.children.length>0&&(G(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Zy(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:IE(u,s.index),routesMeta:d})};return e.forEach((s,a)=>{var o;if(s.path===""||!((o=s.path)!=null&&o.includes("?")))i(s,a);else for(let l of eg(s.path))i(s,a,l)}),t}function eg(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let a=eg(n.join("/")),o=[];return o.push(...a.map(l=>l===""?s:[s,l].join("/"))),i&&o.push(...a),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function kE(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:QE(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const DE=/^:\w+$/,AE=3,LE=2,NE=1,FE=10,qE=-2,pp=e=>e==="*";function IE(e,t){let r=e.split("/"),n=r.length;return r.some(pp)&&(n+=qE),t&&(n+=LE),r.filter(i=>!pp(i)).reduce((i,s)=>i+(DE.test(s)?AE:s===""?NE:FE),n)}function QE(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function UE(e,t){let{routesMeta:r}=e,n={},i="/",s=[];for(let a=0;a<r.length;++a){let o=r[a],l=a===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",d=jE({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},u);if(!d)return null;Object.assign(n,d.params);let c=o.route;s.push({params:n,pathname:ar([i,d.pathname]),pathnameBase:KE(ar([i,d.pathnameBase])),route:c}),d.pathnameBase!=="/"&&(i=ar([i,d.pathnameBase]))}return s}function jE(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=zE(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:n.reduce((u,d,c)=>{if(d==="*"){let h=o[c]||"";a=s.slice(0,s.length-h.length).replace(/(.)\/+$/,"$1")}return u[d]=HE(o[c]||"",d),u},{}),pathname:s,pathnameBase:a,pattern:e}}function zE(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),yi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,o)=>(n.push(o),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function BE(e){try{return decodeURI(e)}catch(t){return yi(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function HE(e,t){try{return decodeURIComponent(e)}catch(r){return yi(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Xs(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function WE(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?hr(e):e;return{pathname:r?r.startsWith("/")?r:GE(r,t):t,search:VE(n),hash:XE(i)}}function GE(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function ru(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function sl(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function hf(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=hr(e):(i=te({},e),G(!i.pathname||!i.pathname.includes("?"),ru("?","pathname","search",i)),G(!i.pathname||!i.pathname.includes("#"),ru("#","pathname","hash",i)),G(!i.search||!i.search.includes("#"),ru("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,o;if(n||a==null)o=r;else{let c=t.length-1;if(a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),c-=1;i.pathname=h.join("/")}o=c>=0?t[c]:"/"}let l=WE(i,o),u=a&&a!=="/"&&a.endsWith("/"),d=(s||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const ar=e=>e.join("/").replace(/\/\/+/g,"/"),KE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),VE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,XE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class mp extends Error{}class YE{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],G(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((s,a)=>n=a),this.controller=new AbortController;let i=()=>n(new mp("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",i),this.controller.signal.addEventListener("abort",i),this.data=Object.entries(t).reduce((s,a)=>{let[o,l]=a;return Object.assign(s,{[o]:this.trackPromise(o,l)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(i=>this.onSettle(n,t,null,i),i=>this.onSettle(n,t,i));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,i){return this.controller.signal.aborted&&n instanceof mp?(this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n)):(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>i}),this.emit(!1,r),i))}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(i=>{this.subscribe(s=>{t.removeEventListener("abort",n),(s||this.done)&&i(s)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return G(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,i]=r;return Object.assign(t,{[n]:ZE(i)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function JE(e){return e instanceof Promise&&e._tracked===!0}function ZE(e){if(!JE(e))return e;if(e._error)throw e._error;return e._data}class pf{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function tg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rg=["post","put","patch","delete"],ew=new Set(rg),tw=["get",...rg],rw=new Set(tw),nw=new Set([301,302,303,307,308]),iw=new Set([307,308]),nu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},sw={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},vp={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ng=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ig=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aw=!ig,ow=e=>Boolean(e.hasErrorBoundary);function lw(e){G(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=e.detectErrorBoundary||ow,r={},n=Jy(e.routes,t,void 0,r),i,s=null,a=new Set,o=null,l=null,u=null,d=e.hydrationData!=null,c=Yn(n,e.history.location,e.basename),h=null;if(c==null){let O=zt(404,{pathname:e.history.location.pathname}),{matches:M,route:_}=Cp(n);c=M,h={[_.id]:O}}let S=!c.some(O=>O.route.lazy)&&(!c.some(O=>O.route.loader)||e.hydrationData!=null),E,f={historyAction:e.history.action,location:e.history.location,matches:c,initialized:S,navigation:nu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||h,fetchers:new Map,blockers:new Map},P=Ee.Pop,m=!1,v,y=!1,w=!1,$=[],R=[],x=new Map,b=0,I=-1,A=new Map,X=new Set,ae=new Map,oe=new Map,fe=new Map,We=!1;function Ot(){if(s=e.history.listen(_=>{let{action:Q,location:j,delta:H}=_;if(We){We=!1;return}yi(fe.size===0||H!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let B=Zf({currentLocation:f.location,nextLocation:j,historyAction:Q});if(B&&H!=null){We=!0,e.history.go(H*-1),sa(B,{state:"blocked",location:j,proceed(){sa(B,{state:"proceeding",proceed:void 0,reset:void 0,location:j}),e.history.go(H)},reset(){ji(B),q({blockers:new Map(E.state.blockers)})}});return}return it(Q,j)}),f.initialized)return E;let O=f.matches.filter(_=>_.route.lazy);if(O.length===0)return it(Ee.Pop,f.location),E;let M=O.map(_=>Bc(_.route,t,r));return Promise.all(M).then(()=>{!f.matches.some(Q=>Q.route.loader)||e.hydrationData!=null?q({initialized:!0}):it(Ee.Pop,f.location)}),E}function Wr(){s&&s(),a.clear(),v&&v.abort(),f.fetchers.forEach((O,M)=>Ol(M)),f.blockers.forEach((O,M)=>ji(M))}function L(O){return a.add(O),()=>a.delete(O)}function q(O){f=te({},f,O),a.forEach(M=>M(f))}function W(O,M){var _,Q;let j=f.actionData!=null&&f.navigation.formMethod!=null&&er(f.navigation.formMethod)&&f.navigation.state==="loading"&&((_=O.state)==null?void 0:_._isRedirect)!==!0,H;M.actionData?Object.keys(M.actionData).length>0?H=M.actionData:H=null:j?H=f.actionData:H=null;let B=M.loaderData?wp(f.loaderData,M.loaderData,M.matches||[],M.errors):f.loaderData;for(let[z]of fe)ji(z);let V=m===!0||f.navigation.formMethod!=null&&er(f.navigation.formMethod)&&((Q=O.state)==null?void 0:Q._isRedirect)!==!0;i&&(n=i,i=void 0),q(te({},M,{actionData:H,loaderData:B,historyAction:P,location:O,initialized:!0,navigation:nu,revalidation:"idle",restoreScrollPosition:eh(O,M.matches||f.matches),preventScrollReset:V,blockers:new Map(f.blockers)})),y||P===Ee.Pop||(P===Ee.Push?e.history.push(O,O.state):P===Ee.Replace&&e.history.replace(O,O.state)),P=Ee.Pop,m=!1,y=!1,w=!1,$=[],R=[]}async function he(O,M){if(typeof O=="number"){e.history.go(O);return}let{path:_,submission:Q,error:j}=yp(O,M),H=f.location,B=Us(f.location,_,M&&M.state);B=te({},B,e.history.encodeLocation(B));let V=M&&M.replace!=null?M.replace:void 0,z=Ee.Push;V===!0?z=Ee.Replace:V===!1||Q!=null&&er(Q.formMethod)&&Q.formAction===f.location.pathname+f.location.search&&(z=Ee.Replace);let Ie=M&&"preventScrollReset"in M?M.preventScrollReset===!0:void 0,ie=Zf({currentLocation:H,nextLocation:B,historyAction:z});if(ie){sa(ie,{state:"blocked",location:B,proceed(){sa(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:B}),he(O,M)},reset(){ji(ie),q({blockers:new Map(f.blockers)})}});return}return await it(z,B,{submission:Q,pendingError:j,preventScrollReset:Ie,replace:M&&M.replace})}function $e(){if(Pl(),q({revalidation:"loading"}),f.navigation.state!=="submitting"){if(f.navigation.state==="idle"){it(f.historyAction,f.location,{startUninterruptedRevalidation:!0});return}it(P||f.historyAction,f.navigation.location,{overrideNavigation:f.navigation})}}async function it(O,M,_){v&&v.abort(),v=null,P=O,y=(_&&_.startUninterruptedRevalidation)===!0,B0(f.location,f.matches),m=(_&&_.preventScrollReset)===!0;let Q=i||n,j=_&&_.overrideNavigation,H=Yn(Q,M,e.basename);if(!H){let Se=zt(404,{pathname:M.pathname}),{matches:Ft,route:bt}=Cp(Q);bl(),W(M,{matches:Ft,loaderData:{},errors:{[bt.id]:Se}});return}if(hw(f.location,M)&&!(_&&_.submission&&er(_.submission.formMethod))){W(M,{matches:H});return}v=new AbortController;let B=Zi(e.history,M,v.signal,_&&_.submission),V,z;if(_&&_.pendingError)z={[Jn(H).route.id]:_.pendingError};else if(_&&_.submission&&er(_.submission.formMethod)){let Se=await Yt(B,M,_.submission,H,{replace:_.replace});if(Se.shortCircuited)return;V=Se.pendingActionData,z=Se.pendingActionError,j=te({state:"loading",location:M},_.submission),B=new Request(B.url,{signal:B.signal})}let{shortCircuited:Ie,loaderData:ie,errors:Ge}=await Qi(B,M,H,j,_&&_.submission,_&&_.replace,V,z);Ie||(v=null,W(M,te({matches:H},V?{actionData:V}:{},{loaderData:ie,errors:Ge})))}async function Yt(O,M,_,Q,j){Pl();let H=te({state:"submitting",location:M},_);q({navigation:H});let B,V=Hc(Q,M);if(!V.route.action&&!V.route.lazy)B={type:be.error,error:zt(405,{method:O.method,pathname:M.pathname,routeId:V.route.id})};else if(B=await Ji("action",O,V,Q,r,t,E.basename),O.signal.aborted)return{shortCircuited:!0};if(si(B)){let z;return j&&j.replace!=null?z=j.replace:z=B.location===f.location.pathname+f.location.search,await Ui(f,B,{submission:_,replace:z}),{shortCircuited:!0}}if(Ss(B)){let z=Jn(Q,V.route.id);return(j&&j.replace)!==!0&&(P=Ee.Push),{pendingActionData:{},pendingActionError:{[z.route.id]:B.error}}}if(rn(B))throw zt(400,{type:"defer-action"});return{pendingActionData:{[V.route.id]:B.data}}}async function Qi(O,M,_,Q,j,H,B,V){let z=Q;z||(z=te({state:"loading",location:M,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},j));let Ie=j||(z.formMethod&&z.formAction&&z.formData&&z.formEncType?{formMethod:z.formMethod,formAction:z.formAction,formData:z.formData,formEncType:z.formEncType}:void 0),ie=i||n,[Ge,Se]=gp(e.history,f,_,Ie,M,w,$,R,ae,ie,e.basename,B,V);if(bl(Qe=>!(_&&_.some(qt=>qt.route.id===Qe))||Ge&&Ge.some(qt=>qt.route.id===Qe)),Ge.length===0&&Se.length===0)return W(M,te({matches:_,loaderData:{},errors:V||null},B?{actionData:B}:{})),{shortCircuited:!0};if(!y){Se.forEach(qt=>{let Gr=f.fetchers.get(qt.key),la={state:"loading",data:Gr&&Gr.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(qt.key,la)});let Qe=B||f.actionData;q(te({navigation:z},Qe?Object.keys(Qe).length===0?{actionData:null}:{actionData:Qe}:{},Se.length>0?{fetchers:new Map(f.fetchers)}:{}))}I=++b,Se.forEach(Qe=>x.set(Qe.key,v));let{results:Ft,loaderResults:bt,fetcherResults:zi}=await Xf(f.matches,_,Ge,Se,O);if(O.signal.aborted)return{shortCircuited:!0};Se.forEach(Qe=>x.delete(Qe.key));let aa=Pp(Ft);if(aa)return await Ui(f,aa,{replace:H}),{shortCircuited:!0};let{loaderData:oa,errors:xn}=Ep(f,_,Ge,bt,V,Se,zi,oe);oe.forEach((Qe,qt)=>{Qe.subscribe(Gr=>{(Gr||Qe.done)&&oe.delete(qt)})}),U0();let xl=Jf(I);return te({loaderData:oa,errors:xn},xl||Se.length>0?{fetchers:new Map(f.fetchers)}:{})}function Nt(O){return f.fetchers.get(O)||sw}function bn(O,M,_,Q){if(aw)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");x.has(O)&&ia(O);let H=Yn(i||n,_,e.basename);if(!H){$l(O,M,zt(404,{pathname:_}));return}let{path:B,submission:V}=yp(_,Q,!0),z=Hc(H,B);if(m=(Q&&Q.preventScrollReset)===!0,V&&er(V.formMethod)){I0(O,M,B,z,H,V);return}ae.set(O,{routeId:M,path:B}),Q0(O,M,B,z,H,V)}async function I0(O,M,_,Q,j,H){if(Pl(),ae.delete(O),!Q.route.action&&!Q.route.lazy){let Jt=zt(405,{method:H.formMethod,pathname:_,routeId:M});$l(O,M,Jt);return}let B=f.fetchers.get(O),V=te({state:"submitting"},H,{data:B&&B.data," _hasFetcherDoneAnything ":!0});f.fetchers.set(O,V),q({fetchers:new Map(f.fetchers)});let z=new AbortController,Ie=Zi(e.history,_,z.signal,H);x.set(O,z);let ie=await Ji("action",Ie,Q,j,r,t,E.basename);if(Ie.signal.aborted){x.get(O)===z&&x.delete(O);return}if(si(ie)){x.delete(O),X.add(O);let Jt=te({state:"loading"},H,{data:void 0," _hasFetcherDoneAnything ":!0});return f.fetchers.set(O,Jt),q({fetchers:new Map(f.fetchers)}),Ui(f,ie,{isFetchActionRedirect:!0})}if(Ss(ie)){$l(O,M,ie.error);return}if(rn(ie))throw zt(400,{type:"defer-action"});let Ge=f.navigation.location||f.location,Se=Zi(e.history,Ge,z.signal),Ft=i||n,bt=f.navigation.state!=="idle"?Yn(Ft,f.navigation.location,e.basename):f.matches;G(bt,"Didn't find any matches after fetcher action");let zi=++b;A.set(O,zi);let aa=te({state:"loading",data:ie.data},H,{" _hasFetcherDoneAnything ":!0});f.fetchers.set(O,aa);let[oa,xn]=gp(e.history,f,bt,H,Ge,w,$,R,ae,Ft,e.basename,{[Q.route.id]:ie.data},void 0);xn.filter(Jt=>Jt.key!==O).forEach(Jt=>{let Tl=Jt.key,th=f.fetchers.get(Tl),K0={state:"loading",data:th&&th.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(Tl,K0),x.set(Tl,z)}),q({fetchers:new Map(f.fetchers)});let{results:xl,loaderResults:Qe,fetcherResults:qt}=await Xf(f.matches,bt,oa,xn,Se);if(z.signal.aborted)return;A.delete(O),x.delete(O),xn.forEach(Jt=>x.delete(Jt.key));let Gr=Pp(xl);if(Gr)return Ui(f,Gr);let{loaderData:la,errors:Rl}=Ep(f,f.matches,oa,Qe,void 0,xn,qt,oe),W0={state:"idle",data:ie.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(O,W0);let G0=Jf(zi);f.navigation.state==="loading"&&zi>I?(G(P,"Expected pending action"),v&&v.abort(),W(f.navigation.location,{matches:bt,loaderData:la,errors:Rl,fetchers:new Map(f.fetchers)})):(q(te({errors:Rl,loaderData:wp(f.loaderData,la,bt,Rl)},G0?{fetchers:new Map(f.fetchers)}:{})),w=!1)}async function Q0(O,M,_,Q,j,H){let B=f.fetchers.get(O),V=te({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},H,{data:B&&B.data," _hasFetcherDoneAnything ":!0});f.fetchers.set(O,V),q({fetchers:new Map(f.fetchers)});let z=new AbortController,Ie=Zi(e.history,_,z.signal);x.set(O,z);let ie=await Ji("loader",Ie,Q,j,r,t,E.basename);if(rn(ie)&&(ie=await lg(ie,Ie.signal,!0)||ie),x.get(O)===z&&x.delete(O),Ie.signal.aborted)return;if(si(ie)){await Ui(f,ie);return}if(Ss(ie)){let Se=Jn(f.matches,M);f.fetchers.delete(O),q({fetchers:new Map(f.fetchers),errors:{[Se.route.id]:ie.error}});return}G(!rn(ie),"Unhandled fetcher deferred data");let Ge={state:"idle",data:ie.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(O,Ge),q({fetchers:new Map(f.fetchers)})}async function Ui(O,M,_){var Q;let{submission:j,replace:H,isFetchActionRedirect:B}=_===void 0?{}:_;M.revalidate&&(w=!0);let V=Us(O.location,M.location,te({_isRedirect:!0},B?{_isFetchActionRedirect:!0}:{}));if(G(V,"Expected a location on the redirect navigation"),ng.test(M.location)&&ig&&typeof((Q=window)==null?void 0:Q.location)<"u"){let Ft=e.history.createURL(M.location),bt=Xs(Ft.pathname,e.basename||"/")==null;if(window.location.origin!==Ft.origin||bt){H?window.location.replace(M.location):window.location.assign(M.location);return}}v=null;let z=H===!0?Ee.Replace:Ee.Push,{formMethod:Ie,formAction:ie,formEncType:Ge,formData:Se}=O.navigation;!j&&Ie&&ie&&Se&&Ge&&(j={formMethod:Ie,formAction:ie,formEncType:Ge,formData:Se}),iw.has(M.status)&&j&&er(j.formMethod)?await it(z,V,{submission:te({},j,{formAction:M.location}),preventScrollReset:m}):await it(z,V,{overrideNavigation:{state:"loading",location:V,formMethod:j?j.formMethod:void 0,formAction:j?j.formAction:void 0,formEncType:j?j.formEncType:void 0,formData:j?j.formData:void 0},preventScrollReset:m})}async function Xf(O,M,_,Q,j){let H=await Promise.all([..._.map(z=>Ji("loader",j,z,M,r,t,E.basename)),...Q.map(z=>z.matches&&z.match?Ji("loader",Zi(e.history,z.path,j.signal),z.match,z.matches,r,t,E.basename):{type:be.error,error:zt(404,{pathname:z.path})})]),B=H.slice(0,_.length),V=H.slice(_.length);return await Promise.all([$p(O,_,B,j.signal,!1,f.loaderData),$p(O,Q.map(z=>z.match),V,j.signal,!0)]),{results:H,loaderResults:B,fetcherResults:V}}function Pl(){w=!0,$.push(...bl()),ae.forEach((O,M)=>{x.has(M)&&(R.push(M),ia(M))})}function $l(O,M,_){let Q=Jn(f.matches,M);Ol(O),q({errors:{[Q.route.id]:_},fetchers:new Map(f.fetchers)})}function Ol(O){x.has(O)&&ia(O),ae.delete(O),A.delete(O),X.delete(O),f.fetchers.delete(O)}function ia(O){let M=x.get(O);G(M,"Expected fetch controller: "+O),M.abort(),x.delete(O)}function Yf(O){for(let M of O){let Q={state:"idle",data:Nt(M).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(M,Q)}}function U0(){let O=[];for(let M of X){let _=f.fetchers.get(M);G(_,"Expected fetcher: "+M),_.state==="loading"&&(X.delete(M),O.push(M))}Yf(O)}function Jf(O){let M=[];for(let[_,Q]of A)if(Q<O){let j=f.fetchers.get(_);G(j,"Expected fetcher: "+_),j.state==="loading"&&(ia(_),A.delete(_),M.push(_))}return Yf(M),M.length>0}function j0(O,M){let _=f.blockers.get(O)||vp;return fe.get(O)!==M&&fe.set(O,M),_}function ji(O){f.blockers.delete(O),fe.delete(O)}function sa(O,M){let _=f.blockers.get(O)||vp;G(_.state==="unblocked"&&M.state==="blocked"||_.state==="blocked"&&M.state==="blocked"||_.state==="blocked"&&M.state==="proceeding"||_.state==="blocked"&&M.state==="unblocked"||_.state==="proceeding"&&M.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+M.state),f.blockers.set(O,M),q({blockers:new Map(f.blockers)})}function Zf(O){let{currentLocation:M,nextLocation:_,historyAction:Q}=O;if(fe.size===0)return;fe.size>1&&yi(!1,"A router only supports one blocker at a time");let j=Array.from(fe.entries()),[H,B]=j[j.length-1],V=f.blockers.get(H);if(!(V&&V.state==="proceeding")&&B({currentLocation:M,nextLocation:_,historyAction:Q}))return H}function bl(O){let M=[];return oe.forEach((_,Q)=>{(!O||O(Q))&&(_.cancel(),M.push(Q),oe.delete(Q))}),M}function z0(O,M,_){if(o=O,u=M,l=_||(Q=>Q.key),!d&&f.navigation===nu){d=!0;let Q=eh(f.location,f.matches);Q!=null&&q({restoreScrollPosition:Q})}return()=>{o=null,u=null,l=null}}function B0(O,M){if(o&&l&&u){let _=M.map(j=>Op(j,f.loaderData)),Q=l(O,_)||O.key;o[Q]=u()}}function eh(O,M){if(o&&l&&u){let _=M.map(H=>Op(H,f.loaderData)),Q=l(O,_)||O.key,j=o[Q];if(typeof j=="number")return j}return null}function H0(O){i=O}return E={get basename(){return e.basename},get state(){return f},get routes(){return n},initialize:Ot,subscribe:L,enableScrollRestoration:z0,navigate:he,fetch:bn,revalidate:$e,createHref:O=>e.history.createHref(O),encodeLocation:O=>e.history.encodeLocation(O),getFetcher:Nt,deleteFetcher:Ol,dispose:Wr,getBlocker:j0,deleteBlocker:ji,_internalFetchControllers:x,_internalActiveDeferreds:oe,_internalSetRoutes:H0},E}function uw(e){return e!=null&&"formData"in e}function yp(e,t,r){r===void 0&&(r=!1);let n=typeof e=="string"?e:dr(e);if(!t||!uw(t))return{path:n};if(t.formMethod&&!mw(t.formMethod))return{path:n,error:zt(405,{method:t.formMethod})};let i;if(t.formData&&(i={formMethod:t.formMethod||"get",formAction:og(n),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData},er(i.formMethod)))return{path:n,submission:i};let s=hr(n),a=ag(t.formData);return r&&s.search&&ug(s.search)&&a.append("index",""),s.search="?"+a,{path:dr(s),submission:i}}function cw(e,t){let r=e;if(t){let n=e.findIndex(i=>i.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function gp(e,t,r,n,i,s,a,o,l,u,d,c,h){let S=h?Object.values(h)[0]:c?Object.values(c)[0]:void 0,E=e.createURL(t.location),f=e.createURL(i),P=s||E.toString()===f.toString()||E.search!==f.search,m=h?Object.keys(h)[0]:void 0,y=cw(r,m).filter(($,R)=>{if($.route.lazy)return!0;if($.route.loader==null)return!1;if(dw(t.loaderData,t.matches[R],$)||a.some(I=>I===$.route.id))return!0;let x=t.matches[R],b=$;return Sp($,te({currentUrl:E,currentParams:x.params,nextUrl:f,nextParams:b.params},n,{actionResult:S,defaultShouldRevalidate:P||sg(x,b)}))}),w=[];return l.forEach(($,R)=>{if(!r.some(A=>A.route.id===$.routeId))return;let x=Yn(u,$.path,d);if(!x){w.push(te({key:R},$,{matches:null,match:null}));return}let b=Hc(x,$.path);if(o.includes(R)){w.push(te({key:R,matches:x,match:b},$));return}Sp(b,te({currentUrl:E,currentParams:t.matches[t.matches.length-1].params,nextUrl:f,nextParams:r[r.length-1].params},n,{actionResult:S,defaultShouldRevalidate:P}))&&w.push(te({key:R,matches:x,match:b},$))}),[y,w]}function dw(e,t,r){let n=!t||r.route.id!==t.route.id,i=e[r.route.id]===void 0;return n||i}function sg(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Sp(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function Bc(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];G(i,"No route found in manifest");let s={};for(let a in n){let l=i[a]!==void 0&&a!=="hasErrorBoundary";yi(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!ME.has(a)&&(s[a]=n[a])}Object.assign(i,s),Object.assign(i,{hasErrorBoundary:t(te({},i)),lazy:void 0})}async function Ji(e,t,r,n,i,s,a,o,l,u){a===void 0&&(a="/"),o===void 0&&(o=!1),l===void 0&&(l=!1);let d,c,h,S=P=>{let m,v=new Promise((y,w)=>m=w);return h=()=>m(),t.signal.addEventListener("abort",h),Promise.race([P({request:t,params:r.params,context:u}),v])};try{let P=r.route[e];if(r.route.lazy)if(P)c=(await Promise.all([S(P),Bc(r.route,s,i)]))[0];else if(await Bc(r.route,s,i),P=r.route[e],P)c=await S(P);else{if(e==="action")throw zt(405,{method:t.method,pathname:new URL(t.url).pathname,routeId:r.route.id});return{type:be.data,data:void 0}}else G(P,"Could not find the "+e+' to run on the "'+r.route.id+'" route'),c=await S(P);G(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(P){d=be.error,c=P}finally{h&&t.signal.removeEventListener("abort",h)}if(pw(c)){let P=c.status;if(nw.has(P)){let y=c.headers.get("Location");if(G(y,"Redirects returned/thrown from loaders/actions must have a Location header"),ng.test(y)){if(!o){let w=new URL(t.url),$=y.startsWith("//")?new URL(w.protocol+y):new URL(y),R=Xs($.pathname,a)!=null;$.origin===w.origin&&R&&(y=$.pathname+$.search+$.hash)}}else{let w=n.slice(0,n.indexOf(r)+1),$=sl(w).map(x=>x.pathnameBase),R=hf(y,$,new URL(t.url).pathname);if(G(dr(R),"Unable to resolve redirect location: "+y),a){let x=R.pathname;R.pathname=x==="/"?a:ar([a,x])}y=dr(R)}if(o)throw c.headers.set("Location",y),c;return{type:be.redirect,status:P,location:y,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(l)throw{type:d||be.data,response:c};let m,v=c.headers.get("Content-Type");return v&&/\bapplication\/json\b/.test(v)?m=await c.json():m=await c.text(),d===be.error?{type:d,error:new pf(P,c.statusText,m),headers:c.headers}:{type:be.data,data:m,statusCode:c.status,headers:c.headers}}if(d===be.error)return{type:d,error:c};if(c instanceof YE){var E,f;return{type:be.deferred,deferredData:c,statusCode:(E=c.init)==null?void 0:E.status,headers:((f=c.init)==null?void 0:f.headers)&&new Headers(c.init.headers)}}return{type:be.data,data:c}}function Zi(e,t,r,n){let i=e.createURL(og(t)).toString(),s={signal:r};if(n&&er(n.formMethod)){let{formMethod:a,formEncType:o,formData:l}=n;s.method=a.toUpperCase(),s.body=o==="application/x-www-form-urlencoded"?ag(l):l}return new Request(i,s)}function ag(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,n instanceof File?n.name:n);return t}function fw(e,t,r,n,i){let s={},a=null,o,l=!1,u={};return r.forEach((d,c)=>{let h=t[c].route.id;if(G(!si(d),"Cannot handle redirect results in processLoaderData"),Ss(d)){let S=Jn(e,h),E=d.error;n&&(E=Object.values(n)[0],n=void 0),a=a||{},a[S.route.id]==null&&(a[S.route.id]=E),s[h]=void 0,l||(l=!0,o=tg(d.error)?d.error.status:500),d.headers&&(u[h]=d.headers)}else rn(d)?(i.set(h,d.deferredData),s[h]=d.deferredData.data):s[h]=d.data,d.statusCode!=null&&d.statusCode!==200&&!l&&(o=d.statusCode),d.headers&&(u[h]=d.headers)}),n&&(a=n,s[Object.keys(n)[0]]=void 0),{loaderData:s,errors:a,statusCode:o||200,loaderHeaders:u}}function Ep(e,t,r,n,i,s,a,o){let{loaderData:l,errors:u}=fw(t,r,n,i,o);for(let d=0;d<s.length;d++){let{key:c,match:h}=s[d];G(a!==void 0&&a[d]!==void 0,"Did not find corresponding fetcher result");let S=a[d];if(Ss(S)){let E=Jn(e.matches,h==null?void 0:h.route.id);u&&u[E.route.id]||(u=te({},u,{[E.route.id]:S.error})),e.fetchers.delete(c)}else if(si(S))G(!1,"Unhandled fetcher revalidation redirect");else if(rn(S))G(!1,"Unhandled fetcher deferred data");else{let E={state:"idle",data:S.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};e.fetchers.set(c,E)}}return{loaderData:l,errors:u}}function wp(e,t,r,n){let i=te({},t);for(let s of r){let a=s.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(i[a]=t[a]):e[a]!==void 0&&s.route.loader&&(i[a]=e[a]),n&&n.hasOwnProperty(a))break}return i}function Jn(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Cp(e){let t=e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function zt(e,t){let{pathname:r,routeId:n,method:i,type:s}=t===void 0?{}:t,a="Unknown Server Error",o="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&r&&n?o="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":s==="defer-action"&&(o="defer() is not supported in actions")):e===403?(a="Forbidden",o='Route "'+n+'" does not match URL "'+r+'"'):e===404?(a="Not Found",o='No route matches URL "'+r+'"'):e===405&&(a="Method Not Allowed",i&&r&&n?o="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(o='Invalid request method "'+i.toUpperCase()+'"')),new pf(e||500,a,new Error(o),!0)}function Pp(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(si(r))return r}}function og(e){let t=typeof e=="string"?hr(e):e;return dr(te({},t,{hash:""}))}function hw(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function rn(e){return e.type===be.deferred}function Ss(e){return e.type===be.error}function si(e){return(e&&e.type)===be.redirect}function pw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function mw(e){return rw.has(e)}function er(e){return ew.has(e)}async function $p(e,t,r,n,i,s){for(let a=0;a<r.length;a++){let o=r[a],l=t[a];if(!l)continue;let u=e.find(c=>c.route.id===l.route.id),d=u!=null&&!sg(u,l)&&(s&&s[l.route.id])!==void 0;rn(o)&&(i||d)&&await lg(o,n,i).then(c=>{c&&(r[a]=c||r[a])})}}async function lg(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:be.data,data:e.deferredData.unwrappedData}}catch(i){return{type:be.error,error:i}}return{type:be.data,data:e.deferredData.data}}}function ug(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Op(e,t){let{route:r,pathname:n,params:i}=e;return{id:r.id,pathname:n,params:i,data:t[r.id],handle:r.handle}}function Hc(e,t){let r=typeof t=="string"?hr(t).search:t.search;if(e[e.length-1].route.index&&ug(r||""))return e[e.length-1];let n=sl(e);return n[n.length-1]}/**
  50. * React Router v6.9.0
  51. *
  52. * Copyright (c) Remix Software Inc.
  53. *
  54. * This source code is licensed under the MIT license found in the
  55. * LICENSE.md file in the root directory of this source tree.
  56. *
  57. * @license MIT
  58. */function vw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const yw=typeof Object.is=="function"?Object.is:vw,{useState:gw,useEffect:Sw,useLayoutEffect:Ew,useDebugValue:ww}=ro;function Cw(e,t,r){const n=t(),[{inst:i},s]=gw({inst:{value:n,getSnapshot:t}});return Ew(()=>{i.value=n,i.getSnapshot=t,iu(i)&&s({inst:i})},[e,n,t]),Sw(()=>(iu(i)&&s({inst:i}),e(()=>{iu(i)&&s({inst:i})})),[e]),ww(n),n}function iu(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!yw(r,n)}catch{return!0}}function Pw(e,t,r){return t()}const $w=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ow=!$w,bw=Ow?Pw:Cw,xw="useSyncExternalStore"in ro?(e=>e.useSyncExternalStore)(ro):bw,mf=g.createContext(null),al=g.createContext(null),Mi=g.createContext(null),ol=g.createContext(null),wn=g.createContext({outlet:null,matches:[]}),cg=g.createContext(null);function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wc.apply(this,arguments)}function Rw(e,t){let{relative:r}=t===void 0?{}:t;Ys()||G(!1);let{basename:n,navigator:i}=g.useContext(Mi),{hash:s,pathname:a,search:o}=vf(e,{relative:r}),l=a;return n!=="/"&&(l=a==="/"?n:ar([n,a])),i.createHref({pathname:l,search:o,hash:s})}function Ys(){return g.useContext(ol)!=null}function _i(){return Ys()||G(!1),g.useContext(ol).location}function dg(){Ys()||G(!1);let{basename:e,navigator:t}=g.useContext(Mi),{matches:r}=g.useContext(wn),{pathname:n}=_i(),i=JSON.stringify(sl(r).map(o=>o.pathnameBase)),s=g.useRef(!1);return g.useEffect(()=>{s.current=!0}),g.useCallback(function(o,l){if(l===void 0&&(l={}),!s.current)return;if(typeof o=="number"){t.go(o);return}let u=hf(o,JSON.parse(i),n,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:ar([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,n])}function d2(){let{matches:e}=g.useContext(wn),t=e[e.length-1];return t?t.params:{}}function vf(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=g.useContext(wn),{pathname:i}=_i(),s=JSON.stringify(sl(n).map(a=>a.pathnameBase));return g.useMemo(()=>hf(e,JSON.parse(s),i,r==="path"),[e,s,i,r])}function Tw(e,t){Ys()||G(!1);let{navigator:r}=g.useContext(Mi),n=g.useContext(al),{matches:i}=g.useContext(wn),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let o=s?s.pathnameBase:"/";s&&s.route;let l=_i(),u;if(t){var d;let f=typeof t=="string"?hr(t):t;o==="/"||(d=f.pathname)!=null&&d.startsWith(o)||G(!1),u=f}else u=l;let c=u.pathname||"/",h=o==="/"?c:c.slice(o.length)||"/",S=Yn(e,{pathname:h}),E=Dw(S&&S.map(f=>Object.assign({},f,{params:Object.assign({},a,f.params),pathname:ar([o,r.encodeLocation?r.encodeLocation(f.pathname).pathname:f.pathname]),pathnameBase:f.pathnameBase==="/"?o:ar([o,r.encodeLocation?r.encodeLocation(f.pathnameBase).pathname:f.pathnameBase])})),i,n||void 0);return t&&E?g.createElement(ol.Provider,{value:{location:Wc({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ee.Pop}},E):E}function Mw(){let e=Fw(),t=tg(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),r?g.createElement("pre",{style:i},r):null,s)}class _w extends g.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:t.error,location:t.location}:{error:t.error||r.error,location:r.location}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?g.createElement(wn.Provider,{value:this.props.routeContext},g.createElement(cg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kw(e){let{routeContext:t,match:r,children:n}=e,i=g.useContext(mf);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(wn.Provider,{value:t},n)}function Dw(e,t,r){if(t===void 0&&(t=[]),e==null)if(r!=null&&r.errors)e=r.matches;else return null;let n=e,i=r==null?void 0:r.errors;if(i!=null){let s=n.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));s>=0||G(!1),n=n.slice(0,Math.min(n.length,s+1))}return n.reduceRight((s,a,o)=>{let l=a.route.id?i==null?void 0:i[a.route.id]:null,u=null;r&&(a.route.ErrorBoundary?u=g.createElement(a.route.ErrorBoundary,null):a.route.errorElement?u=a.route.errorElement:u=g.createElement(Mw,null));let d=t.concat(n.slice(0,o+1)),c=()=>{let h=s;return l?h=u:a.route.Component?h=g.createElement(a.route.Component,null):a.route.element&&(h=a.route.element),g.createElement(kw,{match:a,routeContext:{outlet:s,matches:d},children:h})};return r&&(a.route.ErrorBoundary||a.route.errorElement||o===0)?g.createElement(_w,{location:r.location,component:u,error:l,children:c(),routeContext:{outlet:null,matches:d}}):c()},null)}var bp;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(bp||(bp={}));var Ro;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Ro||(Ro={}));function Aw(e){let t=g.useContext(al);return t||G(!1),t}function Lw(e){let t=g.useContext(wn);return t||G(!1),t}function Nw(e){let t=Lw(),r=t.matches[t.matches.length-1];return r.route.id||G(!1),r.route.id}function Fw(){var e;let t=g.useContext(cg),r=Aw(Ro.UseRouteError),n=Nw(Ro.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function qw(e){let{fallbackElement:t,router:r}=e,n=g.useCallback(()=>r.state,[r]),i=xw(r.subscribe,n,n),s=g.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:l=>r.navigate(l),push:(l,u,d)=>r.navigate(l,{state:u,preventScrollReset:d==null?void 0:d.preventScrollReset}),replace:(l,u,d)=>r.navigate(l,{replace:!0,state:u,preventScrollReset:d==null?void 0:d.preventScrollReset})}),[r]),a=r.basename||"/",o=g.useMemo(()=>({router:r,navigator:s,static:!1,basename:a}),[r,s,a]);return g.createElement(g.Fragment,null,g.createElement(mf.Provider,{value:o},g.createElement(al.Provider,{value:i},g.createElement(Iw,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:s},r.state.initialized?g.createElement(Qw,null):t))),null)}function Xr(e){G(!1)}function Iw(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Ee.Pop,navigator:s,static:a=!1}=e;Ys()&&G(!1);let o=t.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:o,navigator:s,static:a}),[o,s,a]);typeof n=="string"&&(n=hr(n));let{pathname:u="/",search:d="",hash:c="",state:h=null,key:S="default"}=n,E=g.useMemo(()=>{let f=Xs(u,o);return f==null?null:{location:{pathname:f,search:d,hash:c,state:h,key:S},navigationType:i}},[o,u,d,c,h,S,i]);return E==null?null:g.createElement(Mi.Provider,{value:l},g.createElement(ol.Provider,{children:r,value:E}))}function Qw(e){let{children:t,location:r}=e,n=g.useContext(mf),i=n&&!t?n.router.routes:To(t);return Tw(i,r)}var xp;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(xp||(xp={}));new Promise(()=>{});function To(e,t){t===void 0&&(t=[]);let r=[];return g.Children.forEach(e,(n,i)=>{if(!g.isValidElement(n))return;if(n.type===g.Fragment){r.push.apply(r,To(n.props.children,t));return}n.type!==Xr&&G(!1),!n.props.index||!n.props.children||G(!1);let s=[...t,i],a={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=To(n.props.children,s)),r.push(a)}),r}function Uw(e){return Boolean(e.ErrorBoundary)||Boolean(e.errorElement)}/**
  59. * React Router DOM v6.9.0
  60. *
  61. * Copyright (c) Remix Software Inc.
  62. *
  63. * This source code is licensed under the MIT license found in the
  64. * LICENSE.md file in the root directory of this source tree.
  65. *
  66. * @license MIT
  67. */function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},js.apply(this,arguments)}function fg(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function jw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zw(e,t){return e.button===0&&(!t||t==="_self")&&!jw(e)}function Gc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(i=>[r,i]):[[r,n]])},[]))}function Bw(e,t){let r=Gc(e);if(t)for(let n of t.keys())r.has(n)||t.getAll(n).forEach(i=>{r.append(n,i)});return r}const Hw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Ww=["aria-current","caseSensitive","className","end","style","to","children"];function Gw(e,t){return lw({basename:t==null?void 0:t.basename,history:xE({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Kw(),routes:e,detectErrorBoundary:Uw}).initialize()}function Kw(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=js({},t,{errors:Vw(t.errors)})),t}function Vw(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,i]of t)if(i&&i.__type==="RouteErrorResponse")r[n]=new pf(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){let s=new Error(i.message);s.stack="",r[n]=s}else r[n]=i;return r}const Xw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Yw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jw=g.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:s,replace:a,state:o,target:l,to:u,preventScrollReset:d}=t,c=fg(t,Hw),{basename:h}=g.useContext(Mi),S,E=!1;if(typeof u=="string"&&Yw.test(u)&&(S=u,Xw)){let v=new URL(window.location.href),y=u.startsWith("//")?new URL(v.protocol+u):new URL(u),w=Xs(y.pathname,h);y.origin===v.origin&&w!=null?u=w+y.search+y.hash:E=!0}let f=Rw(u,{relative:i}),P=Zw(u,{replace:a,state:o,target:l,preventScrollReset:d,relative:i});function m(v){n&&n(v),v.defaultPrevented||P(v)}return g.createElement("a",js({},c,{href:S||f,onClick:E||s?n:m,ref:r,target:l}))}),f2=g.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:i=!1,className:s="",end:a=!1,style:o,to:l,children:u}=t,d=fg(t,Ww),c=vf(l,{relative:d.relative}),h=_i(),S=g.useContext(al),{navigator:E}=g.useContext(Mi),f=E.encodeLocation?E.encodeLocation(c).pathname:c.pathname,P=h.pathname,m=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(P=P.toLowerCase(),m=m?m.toLowerCase():null,f=f.toLowerCase());let v=P===f||!a&&P.startsWith(f)&&P.charAt(f.length)==="/",y=m!=null&&(m===f||!a&&m.startsWith(f)&&m.charAt(f.length)==="/"),w=v?n:void 0,$;typeof s=="function"?$=s({isActive:v,isPending:y}):$=[s,v?"active":null,y?"pending":null].filter(Boolean).join(" ");let R=typeof o=="function"?o({isActive:v,isPending:y}):o;return g.createElement(Jw,js({},d,{"aria-current":w,className:$,ref:r,style:R,to:l}),typeof u=="function"?u({isActive:v,isPending:y}):u)});var Rp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Rp||(Rp={}));var Tp;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Tp||(Tp={}));function Zw(e,t){let{target:r,replace:n,state:i,preventScrollReset:s,relative:a}=t===void 0?{}:t,o=dg(),l=_i(),u=vf(e,{relative:a});return g.useCallback(d=>{if(zw(d,r)){d.preventDefault();let c=n!==void 0?n:dr(l)===dr(u);o(e,{replace:c,state:i,preventScrollReset:s,relative:a})}},[l,o,u,n,i,r,e,s,a])}function h2(e){let t=g.useRef(Gc(e)),r=g.useRef(!1),n=_i(),i=g.useMemo(()=>Bw(n.search,r.current?null:t.current),[n.search]),s=dg(),a=g.useCallback((o,l)=>{const u=Gc(typeof o=="function"?o(i):o);r.current=!0,s("?"+u,l)},[s,i]);return[i,a]}function hg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=hg(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function ct(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=hg(e))&&(n&&(n+=" "),n+=t);return n}const pg=({size:e="large",variant:t="primary"})=>D("div",{className:ct("flex items-center justify-center",{"h-[24px] w-[24px]":e==="large"},{"h-[20px] w-[20px]":e==="medium"},{"h-[16px] w-[16px]":e==="small"}),children:D("div",{className:"relative flex h-full w-full items-center justify-center",children:D("div",{className:ct("animate-ring rounded-circle h-4/5 w-4/5 border-2 border-transparent",{"border-t-grey-0":t==="primary"},{"border-t-violet-60":t==="secondary"})})})}),eC=g.lazy(()=>Ti(()=>import("./404-c566c6bb.js"),["assets/404-c566c6bb.js","assets/index-845e4de2.js","assets/layout-9e52ad07.js","assets/use-notification-56391e62.js","assets/index-aba65090.js","assets/error-messages-d2d0bb30.js","assets/index.esm-07f1e6d3.js"])),tC=g.lazy(()=>Ti(()=>import("./a-14d94dc6.js").then(e=>e.s),["assets/a-14d94dc6.js","assets/layout-9e52ad07.js","assets/use-notification-56391e62.js","assets/index-aba65090.js","assets/error-messages-d2d0bb30.js","assets/index.esm-07f1e6d3.js","assets/index-845e4de2.js","assets/index-c0b93546.js","assets/index-9af9f9f3.js","assets/a-d8ab0fea.css"])),rC=g.lazy(()=>Ti(()=>import("./index-ab427eee.js"),["assets/index-ab427eee.js","assets/index-845e4de2.js"])),nC=g.lazy(()=>Ti(()=>import("./invite-0748e99e.js"),["assets/invite-0748e99e.js","assets/index-c0b93546.js","assets/index.esm-07f1e6d3.js","assets/index.modern-c903a5d6.js","assets/login-layout-d129ef85.js","assets/index-9af9f9f3.js","assets/index-845e4de2.js","assets/use-notification-56391e62.js","assets/index-aba65090.js","assets/error-messages-d2d0bb30.js"])),iC=g.lazy(()=>Ti(()=>import("./login-5ae15a5e.js"),["assets/login-5ae15a5e.js","assets/index.esm-07f1e6d3.js","assets/login-layout-d129ef85.js","assets/index-9af9f9f3.js","assets/index-aba65090.js","assets/index-845e4de2.js"])),sC=g.lazy(()=>Ti(()=>import("./reset-password-95003483.js"),["assets/reset-password-95003483.js","assets/index-c0b93546.js","assets/index.esm-07f1e6d3.js","assets/index.modern-c903a5d6.js","assets/login-layout-d129ef85.js","assets/index-9af9f9f3.js","assets/index-845e4de2.js","assets/error-messages-d2d0bb30.js"])),aC=Gw(To(ot(zc,{children:[D(Xr,{path:"/",element:D(rC,{})}),D(Xr,{path:"a/*",element:D(tC,{})}),D(Xr,{path:"invite",element:D(nC,{})}),D(Xr,{path:"login",element:D(iC,{})}),D(Xr,{path:"reset-password",element:D(sC,{})}),D(Xr,{path:"*",element:D(eC,{})})]})),{basename:"/app"}),oC=()=>D("div",{className:"bg-grey-5 text-grey-90 flex h-screen w-full items-center justify-center",children:D(pg,{variant:"secondary"})}),lC=()=>D(g.Suspense,{fallback:D(oC,{}),children:D(qw,{router:aC})}),Mo=Te.forwardRef(({variant:e="primary",size:t="large",loading:r=!1,children:n,...i},s)=>{const a=u=>{!r&&i.onClick&&i.onClick(u)},o=ct({["btn-primary"]:e==="primary",["btn-secondary"]:e==="secondary",["btn-ghost"]:e==="ghost",["btn-danger"]:e==="danger",["btn-nuclear"]:e==="nuclear"}),l=ct({["btn-large"]:t==="large",["btn-medium"]:t==="medium",["btn-small"]:t==="small"});return D("button",{...i,className:ct("btn",o,l,i.className),disabled:i.disabled||r,ref:s,onClick:a,children:r?D(pg,{size:t,variant:"secondary"}):g.Children.map(n,(u,d)=>D("span",{className:"mr-xsmall last:mr-0",children:u},d))})}),uC=({size:e="20px",color:t="currentColor",...r})=>D("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:D("path",{d:"M7.66703 12.3321L3.00098 7.66605M3.00098 7.66605L7.66703 3M3.00098 7.66605H12.3331C13.5706 7.66605 14.7574 8.15765 15.6325 9.03271C16.5075 9.90776 16.9991 11.0946 16.9991 12.3321C16.9991 13.5696 16.5075 14.7564 15.6325 15.6315C14.7574 16.5066 13.5706 16.9982 12.3331 16.9982H10.0001",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qe.apply(this,arguments)}function ai(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function cC(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function mg(...e){return t=>e.forEach(r=>cC(r,t))}function Js(...e){return g.useCallback(mg(...e),e)}function dC(e,t=[]){let r=[];function n(s,a){const o=g.createContext(a),l=r.length;r=[...r,a];function u(c){const{scope:h,children:S,...E}=c,f=(h==null?void 0:h[e][l])||o,P=g.useMemo(()=>E,Object.values(E));return g.createElement(f.Provider,{value:P},S)}function d(c,h){const S=(h==null?void 0:h[e][l])||o,E=g.useContext(S);if(E)return E;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,d]}const i=()=>{const s=r.map(a=>g.createContext(a));return function(o){const l=(o==null?void 0:o[e])||s;return g.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return i.scopeName=e,[n,fC(i,...t)]}function fC(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const a=n.reduce((o,{useScope:l,scopeName:u})=>{const c=l(s)[`__scope${u}`];return{...o,...c}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}const Kc=Boolean(globalThis==null?void 0:globalThis.document)?g.useLayoutEffect:()=>{},hC=ro["useId".toString()]||(()=>{});let pC=0;function su(e){const[t,r]=g.useState(hC());return Kc(()=>{e||r(n=>n??String(pC++))},[e]),e||(t?`radix-${t}`:"")}function hn(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function mC({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,i]=vC({defaultProp:t,onChange:r}),s=e!==void 0,a=s?e:n,o=hn(r),l=g.useCallback(u=>{if(s){const c=typeof u=="function"?u(e):u;c!==e&&o(c)}else i(u)},[s,e,i,o]);return[a,l]}function vC({defaultProp:e,onChange:t}){const r=g.useState(e),[n]=r,i=g.useRef(n),s=hn(t);return g.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}const yf=g.forwardRef((e,t)=>{const{children:r,...n}=e,i=g.Children.toArray(r),s=i.find(gC);if(s){const a=s.props.children,o=i.map(l=>l===s?g.Children.count(a)>1?g.Children.only(null):g.isValidElement(a)?a.props.children:null:l);return g.createElement(Vc,qe({},n,{ref:t}),g.isValidElement(a)?g.cloneElement(a,void 0,o):null)}return g.createElement(Vc,qe({},n,{ref:t}),r)});yf.displayName="Slot";const Vc=g.forwardRef((e,t)=>{const{children:r,...n}=e;return g.isValidElement(r)?g.cloneElement(r,{...SC(n,r.props),ref:mg(t,r.ref)}):g.Children.count(r)>1?g.Children.only(null):null});Vc.displayName="SlotClone";const yC=({children:e})=>g.createElement(g.Fragment,null,e);function gC(e){return g.isValidElement(e)&&e.type===yC}function SC(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...o)=>{s(...o),i(...o)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}const EC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ki=EC.reduce((e,t)=>{const r=g.forwardRef((n,i)=>{const{asChild:s,...a}=n,o=s?yf:t;return g.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),g.createElement(o,qe({},a,{ref:i}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function wC(e,t){e&&ui.flushSync(()=>e.dispatchEvent(t))}function CC(e,t=globalThis==null?void 0:globalThis.document){const r=hn(e);g.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Xc="dismissableLayer.update",PC="dismissableLayer.pointerDownOutside",$C="dismissableLayer.focusOutside";let Mp;const OC=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bC=g.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:o,onDismiss:l,...u}=e,d=g.useContext(OC),[c,h]=g.useState(null),S=(r=c==null?void 0:c.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,E]=g.useState({}),f=Js(t,b=>h(b)),P=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=P.indexOf(m),y=c?P.indexOf(c):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,$=y>=v,R=xC(b=>{const I=b.target,A=[...d.branches].some(X=>X.contains(I));!$||A||(s==null||s(b),o==null||o(b),b.defaultPrevented||l==null||l())},S),x=RC(b=>{const I=b.target;[...d.branches].some(X=>X.contains(I))||(a==null||a(b),o==null||o(b),b.defaultPrevented||l==null||l())},S);return CC(b=>{y===d.layers.size-1&&(i==null||i(b),!b.defaultPrevented&&l&&(b.preventDefault(),l()))},S),g.useEffect(()=>{if(c)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Mp=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(c)),d.layers.add(c),_p(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Mp)}},[c,S,n,d]),g.useEffect(()=>()=>{c&&(d.layers.delete(c),d.layersWithOutsidePointerEventsDisabled.delete(c),_p())},[c,d]),g.useEffect(()=>{const b=()=>E({});return document.addEventListener(Xc,b),()=>document.removeEventListener(Xc,b)},[]),g.createElement(ki.div,qe({},u,{ref:f,style:{pointerEvents:w?$?"auto":"none":void 0,...e.style},onFocusCapture:ai(e.onFocusCapture,x.onFocusCapture),onBlurCapture:ai(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:ai(e.onPointerDownCapture,R.onPointerDownCapture)}))});function xC(e,t=globalThis==null?void 0:globalThis.document){const r=hn(e),n=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{const s=o=>{if(o.target&&!n.current){let u=function(){vg(PC,r,l,{discrete:!0})};const l={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function RC(e,t=globalThis==null?void 0:globalThis.document){const r=hn(e),n=g.useRef(!1);return g.useEffect(()=>{const i=s=>{s.target&&!n.current&&vg($C,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function _p(){const e=new CustomEvent(Xc);document.dispatchEvent(e)}function vg(e,t,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?wC(i,s):i.dispatchEvent(s)}const au="focusScope.autoFocusOnMount",ou="focusScope.autoFocusOnUnmount",kp={bubbles:!1,cancelable:!0},TC=g.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=e,[o,l]=g.useState(null),u=hn(i),d=hn(s),c=g.useRef(null),h=Js(t,f=>l(f)),S=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let f=function(m){if(S.paused||!o)return;const v=m.target;o.contains(v)?c.current=v:Yr(c.current,{select:!0})},P=function(m){S.paused||!o||o.contains(m.relatedTarget)||Yr(c.current,{select:!0})};return document.addEventListener("focusin",f),document.addEventListener("focusout",P),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",P)}}},[n,o,S.paused]),g.useEffect(()=>{if(o){Ap.add(S);const f=document.activeElement;if(!o.contains(f)){const m=new CustomEvent(au,kp);o.addEventListener(au,u),o.dispatchEvent(m),m.defaultPrevented||(MC(LC(yg(o)),{select:!0}),document.activeElement===f&&Yr(o))}return()=>{o.removeEventListener(au,u),setTimeout(()=>{const m=new CustomEvent(ou,kp);o.addEventListener(ou,d),o.dispatchEvent(m),m.defaultPrevented||Yr(f??document.body,{select:!0}),o.removeEventListener(ou,d),Ap.remove(S)},0)}}},[o,u,d,S]);const E=g.useCallback(f=>{if(!r&&!n||S.paused)return;const P=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,m=document.activeElement;if(P&&m){const v=f.currentTarget,[y,w]=_C(v);y&&w?!f.shiftKey&&m===w?(f.preventDefault(),r&&Yr(y,{select:!0})):f.shiftKey&&m===y&&(f.preventDefault(),r&&Yr(w,{select:!0})):m===v&&f.preventDefault()}},[r,n,S.paused]);return g.createElement(ki.div,qe({tabIndex:-1},a,{ref:h,onKeyDown:E}))});function MC(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Yr(n,{select:t}),document.activeElement!==r)return}function _C(e){const t=yg(e),r=Dp(t,e),n=Dp(t.reverse(),e);return[r,n]}function yg(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Dp(e,t){for(const r of e)if(!kC(r,{upTo:t}))return r}function kC(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function DC(e){return e instanceof HTMLInputElement&&"select"in e}function Yr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&DC(e)&&t&&e.select()}}const Ap=AC();function AC(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Lp(e,t),e.unshift(t)},remove(t){var r;e=Lp(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function Lp(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function LC(e){return e.filter(t=>t.tagName!=="A")}const gg=g.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...i}=e;return n?vE.createPortal(g.createElement(ki.div,qe({},i,{ref:t})),n):null});function NC(e,t){return g.useReducer((r,n)=>{const i=t[r][n];return i??r},e)}const ll=e=>{const{present:t,children:r}=e,n=FC(t),i=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),s=Js(n.ref,i.ref);return typeof r=="function"||n.isPresent?g.cloneElement(i,{ref:s}):null};ll.displayName="Presence";function FC(e){const[t,r]=g.useState(),n=g.useRef({}),i=g.useRef(e),s=g.useRef("none"),a=e?"mounted":"unmounted",[o,l]=NC(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=ba(n.current);s.current=o==="mounted"?u:"none"},[o]),Kc(()=>{const u=n.current,d=i.current;if(d!==e){const h=s.current,S=ba(u);e?l("MOUNT"):S==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==S?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Kc(()=>{if(t){const u=c=>{const S=ba(n.current).includes(c.animationName);c.target===t&&S&&ui.flushSync(()=>l("ANIMATION_END"))},d=c=>{c.target===t&&(s.current=ba(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:g.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function ba(e){return(e==null?void 0:e.animationName)||"none"}let lu=0;function qC(){g.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Np()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Np()),lu++,()=>{lu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),lu--}},[])}function Np(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Wt=function(){return Wt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Wt.apply(this,arguments)};function Sg(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function IC(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var Ja="right-scroll-bar-position",Za="width-before-scroll-bar",QC="with-scroll-bars-hidden",UC="--removed-body-scroll-bar-size";function jC(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zC(e,t){var r=g.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}function BC(e,t){return zC(t||null,function(r){return e.forEach(function(n){return jC(n,r)})})}function HC(e){return e}function WC(e,t){t===void 0&&(t=HC);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var a=t(s,n);return r.push(a),function(){r=r.filter(function(o){return o!==a})}},assignSyncMedium:function(s){for(n=!0;r.length;){var a=r;r=[],a.forEach(s)}r={push:function(o){return s(o)},filter:function(){return r}}},assignMedium:function(s){n=!0;var a=[];if(r.length){var o=r;r=[],o.forEach(s),a=r}var l=function(){var d=a;a=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),r}}}};return i}function GC(e){e===void 0&&(e={});var t=WC(null);return t.options=Wt({async:!0,ssr:!1},e),t}var Eg=function(e){var t=e.sideCar,r=Sg(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return g.createElement(n,Wt({},r))};Eg.isSideCarExport=!0;function KC(e,t){return e.useMedium(t),Eg}var wg=GC(),uu=function(){},ul=g.forwardRef(function(e,t){var r=g.useRef(null),n=g.useState({onScrollCapture:uu,onWheelCapture:uu,onTouchMoveCapture:uu}),i=n[0],s=n[1],a=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,h=e.sideCar,S=e.noIsolation,E=e.inert,f=e.allowPinchZoom,P=e.as,m=P===void 0?"div":P,v=Sg(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=h,w=BC([r,t]),$=Wt(Wt({},v),i);return g.createElement(g.Fragment,null,d&&g.createElement(y,{sideCar:wg,removeScrollBar:u,shards:c,noIsolation:S,inert:E,setCallbacks:s,allowPinchZoom:!!f,lockRef:r}),a?g.cloneElement(g.Children.only(o),Wt(Wt({},$),{ref:w})):g.createElement(m,Wt({},$,{className:l,ref:w}),o))});ul.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ul.classNames={fullWidth:Za,zeroRight:Ja};var Fp,VC=function(){if(Fp)return Fp;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function XC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=VC();return t&&e.setAttribute("nonce",t),e}function YC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function JC(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ZC=function(){var e=0,t=null;return{add:function(r){e==0&&(t=XC())&&(YC(t,r),JC(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eP=function(){var e=ZC();return function(t,r){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Cg=function(){var e=eP(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},tP={left:0,top:0,right:0,gap:0},cu=function(e){return parseInt(e||"",10)||0},rP=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[cu(r),cu(n),cu(i)]},nP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tP;var t=rP(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},iP=Cg(),sP=function(e,t,r,n){var i=e.left,s=e.top,a=e.right,o=e.gap;return r===void 0&&(r="margin"),`
  68. .`.concat(QC,` {
  69. overflow: hidden `).concat(n,`;
  70. padding-right: `).concat(o,"px ").concat(n,`;
  71. }
  72. body {
  73. overflow: hidden `).concat(n,`;
  74. overscroll-behavior: contain;
  75. `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
  76. padding-left: `.concat(i,`px;
  77. padding-top: `).concat(s,`px;
  78. padding-right: `).concat(a,`px;
  79. margin-left:0;
  80. margin-top:0;
  81. margin-right: `).concat(o,"px ").concat(n,`;
  82. `),r==="padding"&&"padding-right: ".concat(o,"px ").concat(n,";")].filter(Boolean).join(""),`
  83. }
  84. .`).concat(Ja,` {
  85. right: `).concat(o,"px ").concat(n,`;
  86. }
  87. .`).concat(Za,` {
  88. margin-right: `).concat(o,"px ").concat(n,`;
  89. }
  90. .`).concat(Ja," .").concat(Ja,` {
  91. right: 0 `).concat(n,`;
  92. }
  93. .`).concat(Za," .").concat(Za,` {
  94. margin-right: 0 `).concat(n,`;
  95. }
  96. body {
  97. `).concat(UC,": ").concat(o,`px;
  98. }
  99. `)},aP=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n,s=g.useMemo(function(){return nP(i)},[i]);return g.createElement(iP,{styles:sP(s,!t,i,r?"":"!important")})},Yc=!1;if(typeof window<"u")try{var xa=Object.defineProperty({},"passive",{get:function(){return Yc=!0,!0}});window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{Yc=!1}var Tn=Yc?{passive:!1}:!1,oP=function(e){return e.tagName==="TEXTAREA"},Pg=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!oP(e)&&r[t]==="visible")},lP=function(e){return Pg(e,"overflowY")},uP=function(e){return Pg(e,"overflowX")},qp=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=$g(e,r);if(n){var i=Og(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},cP=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},dP=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},$g=function(e,t){return e==="v"?lP(t):uP(t)},Og=function(e,t){return e==="v"?cP(t):dP(t)},fP=function(e,t){return e==="h"&&t==="rtl"?-1:1},hP=function(e,t,r,n,i){var s=fP(e,window.getComputedStyle(t).direction),a=s*n,o=r.target,l=t.contains(o),u=!1,d=a>0,c=0,h=0;do{var S=Og(e,o),E=S[0],f=S[1],P=S[2],m=f-P-s*E;(E||m)&&$g(e,o)&&(c+=m,h+=E),o=o.parentNode}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(d&&(i&&c===0||!i&&a>c)||!d&&(i&&h===0||!i&&-a>h))&&(u=!0),u},Ra=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ip=function(e){return[e.deltaX,e.deltaY]},Qp=function(e){return e&&"current"in e?e.current:e},pP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mP=function(e){return`
  100. .block-interactivity-`.concat(e,` {pointer-events: none;}
  101. .allow-interactivity-`).concat(e,` {pointer-events: all;}
  102. `)},vP=0,Mn=[];function yP(e){var t=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),i=g.useState(vP++)[0],s=g.useState(function(){return Cg()})[0],a=g.useRef(e);g.useEffect(function(){a.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var f=IC([e.lockRef.current],(e.shards||[]).map(Qp),!0).filter(Boolean);return f.forEach(function(P){return P.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),f.forEach(function(P){return P.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=g.useCallback(function(f,P){if("touches"in f&&f.touches.length===2)return!a.current.allowPinchZoom;var m=Ra(f),v=r.current,y="deltaX"in f?f.deltaX:v[0]-m[0],w="deltaY"in f?f.deltaY:v[1]-m[1],$,R=f.target,x=Math.abs(y)>Math.abs(w)?"h":"v";if("touches"in f&&x==="h"&&R.type==="range")return!1;var b=qp(x,R);if(!b)return!0;if(b?$=x:($=x==="v"?"h":"v",b=qp(x,R)),!b)return!1;if(!n.current&&"changedTouches"in f&&(y||w)&&(n.current=$),!$)return!0;var I=n.current||$;return hP(I,P,f,I==="h"?y:w,!0)},[]),l=g.useCallback(function(f){var P=f;if(!(!Mn.length||Mn[Mn.length-1]!==s)){var m="deltaY"in P?Ip(P):Ra(P),v=t.current.filter(function($){return $.name===P.type&&$.target===P.target&&pP($.delta,m)})[0];if(v&&v.should){P.cancelable&&P.preventDefault();return}if(!v){var y=(a.current.shards||[]).map(Qp).filter(Boolean).filter(function($){return $.contains(P.target)}),w=y.length>0?o(P,y[0]):!a.current.noIsolation;w&&P.cancelable&&P.preventDefault()}}},[]),u=g.useCallback(function(f,P,m,v){var y={name:f,delta:P,target:m,should:v};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(w){return w!==y})},1)},[]),d=g.useCallback(function(f){r.current=Ra(f),n.current=void 0},[]),c=g.useCallback(function(f){u(f.type,Ip(f),f.target,o(f,e.lockRef.current))},[]),h=g.useCallback(function(f){u(f.type,Ra(f),f.target,o(f,e.lockRef.current))},[]);g.useEffect(function(){return Mn.push(s),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Tn),document.addEventListener("touchmove",l,Tn),document.addEventListener("touchstart",d,Tn),function(){Mn=Mn.filter(function(f){return f!==s}),document.removeEventListener("wheel",l,Tn),document.removeEventListener("touchmove",l,Tn),document.removeEventListener("touchstart",d,Tn)}},[]);var S=e.removeScrollBar,E=e.inert;return g.createElement(g.Fragment,null,E?g.createElement(s,{styles:mP(i)}):null,S?g.createElement(aP,{gapMode:"margin"}):null)}const gP=KC(wg,yP);var bg=g.forwardRef(function(e,t){return g.createElement(ul,Wt({},e,{ref:t,sideCar:gP}))});bg.classNames=ul.classNames;const SP=bg;var EP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_n=new WeakMap,Ta=new WeakMap,Ma={},du=0,xg=function(e){return e&&(e.host||xg(e.parentNode))},wP=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=xg(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return Boolean(r)})},CP=function(e,t,r,n){var i=wP(t,Array.isArray(e)?e:[e]);Ma[r]||(Ma[r]=new WeakMap);var s=Ma[r],a=[],o=new Set,l=new Set(i),u=function(c){!c||o.has(c)||(o.add(c),u(c.parentNode))};i.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(o.has(h))d(h);else{var S=h.getAttribute(n),E=S!==null&&S!=="false",f=(_n.get(h)||0)+1,P=(s.get(h)||0)+1;_n.set(h,f),s.set(h,P),a.push(h),f===1&&E&&Ta.set(h,!0),P===1&&h.setAttribute(r,"true"),E||h.setAttribute(n,"true")}})};return d(t),o.clear(),du++,function(){a.forEach(function(c){var h=_n.get(c)-1,S=s.get(c)-1;_n.set(c,h),s.set(c,S),h||(Ta.has(c)||c.removeAttribute(n),Ta.delete(c)),S||c.removeAttribute(r)}),du--,du||(_n=new WeakMap,_n=new WeakMap,Ta=new WeakMap,Ma={})}},PP=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||EP(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),CP(n,i,r,"aria-hidden")):function(){return null}};const Rg="Dialog",[Tg,p2]=dC(Rg),[$P,pr]=Tg(Rg),OP=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,o=g.useRef(null),l=g.useRef(null),[u=!1,d]=mC({prop:n,defaultProp:i,onChange:s});return g.createElement($P,{scope:t,triggerRef:o,contentRef:l,contentId:su(),titleId:su(),descriptionId:su(),open:u,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(c=>!c),[d]),modal:a},r)},Mg="DialogPortal",[bP,_g]=Tg(Mg,{forceMount:void 0}),xP=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,s=pr(Mg,t);return g.createElement(bP,{scope:t,forceMount:r},g.Children.map(n,a=>g.createElement(ll,{present:r||s.open},g.createElement(gg,{asChild:!0,container:i},a))))},Jc="DialogOverlay",RP=g.forwardRef((e,t)=>{const r=_g(Jc,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=pr(Jc,e.__scopeDialog);return s.modal?g.createElement(ll,{present:n||s.open},g.createElement(TP,qe({},i,{ref:t}))):null}),TP=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=pr(Jc,r);return g.createElement(SP,{as:yf,allowPinchZoom:!0,shards:[i.contentRef]},g.createElement(ki.div,qe({"data-state":Dg(i.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),zs="DialogContent",MP=g.forwardRef((e,t)=>{const r=_g(zs,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=pr(zs,e.__scopeDialog);return g.createElement(ll,{present:n||s.open},s.modal?g.createElement(_P,qe({},i,{ref:t})):g.createElement(kP,qe({},i,{ref:t})))}),_P=g.forwardRef((e,t)=>{const r=pr(zs,e.__scopeDialog),n=g.useRef(null),i=Js(t,r.contentRef,n);return g.useEffect(()=>{const s=n.current;if(s)return PP(s)},[]),g.createElement(kg,qe({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ai(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=r.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:ai(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,o=a.button===0&&a.ctrlKey===!0;(a.button===2||o)&&s.preventDefault()}),onFocusOutside:ai(e.onFocusOutside,s=>s.preventDefault())}))}),kP=g.forwardRef((e,t)=>{const r=pr(zs,e.__scopeDialog),n=g.useRef(!1);return g.createElement(kg,qe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,i),!i.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),i.preventDefault()}n.current=!1},onInteractOutside:i=>{var s,a;(s=e.onInteractOutside)===null||s===void 0||s.call(e,i),i.defaultPrevented||(n.current=!0);const o=i.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(o))&&i.preventDefault()}}))}),kg=g.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=e,o=pr(zs,r),l=g.useRef(null),u=Js(t,l);return qC(),g.createElement(g.Fragment,null,g.createElement(TC,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},g.createElement(bC,qe({role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":Dg(o.open)},a,{ref:u,onDismiss:()=>o.onOpenChange(!1)}))),!1)}),DP="DialogTitle",AP=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=pr(DP,r);return g.createElement(ki.h2,qe({id:i.titleId},n,{ref:t}))}),LP="DialogDescription",NP=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=pr(LP,r);return g.createElement(ki.p,qe({id:i.descriptionId},n,{ref:t}))});function Dg(e){return e?"open":"closed"}const FP=OP,m2=xP,qP=RP,IP=MP,v2=AP,y2=NP,Ag=()=>{const[e,t]=g.useState({height:window.innerHeight,width:window.innerWidth});return g.useEffect(()=>{const r=()=>{t({height:window.innerHeight,width:window.innerWidth})};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]),e},QP=({size:e="20",color:t="currentColor",...r})=>ot("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[D("path",{d:"M15 5L5 15",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),D("path",{d:"M5 5L15 15",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),cl=Te.createContext({portalRef:void 0,isLargeModal:!0}),UP=({children:e})=>D(qP,{className:"bg-grey-90/40 fixed top-0 bottom-0 left-0 right-0 z-50 grid place-items-center overflow-y-auto",children:e}),jP=({children:e})=>{const{height:t}=Ag(),r={maxHeight:t-64};return D(IP,{style:r,className:"min-w-modal rounded-rounded bg-grey-0 overflow-x-hidden",children:e})},gt=({open:e=!0,handleClose:t,isLargeModal:r=!0,children:n})=>{const i=Te.useRef(null);return D(FP,{open:e,onOpenChange:t,children:D(gg,{ref:i,children:D(cl.Provider,{value:{portalRef:i,isLargeModal:r},children:D(UP,{children:D(jP,{children:n})})})})})};gt.Body=({children:e,className:t,style:r})=>(Te.useContext(cl),D("div",{style:r,className:ct("inter-base-regular h-full",t),onClick:n=>n.stopPropagation(),children:e}));gt.Content=({children:e,className:t})=>{const{isLargeModal:r}=Te.useContext(cl),{height:n}=Ag(),i={maxHeight:n-90-141};return D("div",{style:i,className:ct("overflow-y-auto px-8 pt-6",{["w-largeModal pb-7"]:r,["pb-5"]:!r},t),children:e})};gt.Header=({handleClose:e=void 0,children:t})=>ot("div",{className:"flex w-full items-center border-b px-8 py-6",onClick:r=>r.stopPropagation(),children:[D("div",{className:"flex flex-grow",children:t}),D("div",{className:"self-end",children:e&&D(Mo,{variant:"ghost",size:"small",onClick:e,className:"text-grey-50 cursor-pointer border p-1.5",children:D(QP,{size:20})})})]});gt.Footer=({children:e,className:t})=>{const{isLargeModal:r}=Te.useContext(cl);return D("div",{onClick:n=>n.stopPropagation(),className:ct("bottom-0 flex w-full px-7 pb-5",{"border-grey-20 border-t pt-4":r},t),children:e})};const Lg={screens:[],push:e=>{},pop:()=>{},reset:()=>{}},Ng=Te.createContext(Lg),zP=(e,t)=>{switch(t.type){case 0:return{...e,screens:[...e.screens,t.payload]};case 1:return{...e,screens:e.screens.slice(0,-1)};case 2:return{...e,screens:[]}}},BP=({children:e})=>{const[t,r]=g.useReducer(zP,Lg);return D(Ng.Provider,{value:{...t,push:n=>{r({type:0,payload:n})},pop:()=>{r({type:1})},reset:()=>{r({type:2})}},children:e})},HP=({context:e,children:t,handleClose:r,open:n,isLargeModal:i=!0})=>{const s=()=>{e.reset(),r()},a=e.screens[e.screens.length-1];return ot(gt,{open:n,isLargeModal:i,handleClose:s,children:[D(gt.Body,{className:ct("flex flex-col justify-between transition-transform duration-200",{"translate-x-0":typeof a<"u","translate-x-full":typeof a>"u"}),children:a?ot(zc,{children:[D(gt.Header,{handleClose:s,children:ot("div",{className:"flex items-center",children:[D(Mo,{variant:"ghost",size:"small",className:"text-grey-50 h-8 w-8 border",onClick:a.onBack,children:D(uC,{size:20})}),ot("div",{className:"gap-x-2xsmall flex items-center",children:[D("h2",{className:"inter-xlarge-semibold ml-4",children:a.title}),a.subtitle&&ot("span",{className:"inter-xlarge-regular text-grey-50",children:["(",a.subtitle,")"]})]})]})}),a.view]}):D(zc,{})}),D("div",{className:ct("transition-transform duration-200",{"-translate-x-full":typeof a<"u"}),children:D("div",{className:ct("transition-display",{"hidden opacity-0 delay-500":typeof a<"u"}),children:t})})]})},g2=()=>{const e=g.useContext(Ng);if(e===null)throw new Error("useLayeredModal must be used within a LayeredModalProvider");return e},Fg={currentStep:0,nextStepEnabled:!0,enableNextPage:()=>{},disableNextPage:()=>{},goToNextPage:()=>{},goToPreviousPage:()=>{},submit:()=>{},reset:()=>{},setPage:e=>{}},WP=Te.createContext(Fg),GP=(e,t)=>{switch(t.type){case 0:return{...e,nextStepEnabled:!0};case 1:return{...e,nextStepEnabled:!1};case 2:return{...e,currentStep:e.currentStep+1};case 3:return{...e,currentStep:Math.max(0,e.currentStep-1)};case 4:return{...e,currentStep:t.payload>0?t.payload:e.currentStep};case 5:return{...e};case 6:return{...e,currentStep:0,nextStepEnabled:!0}}},KP=({children:e})=>{const[t,r]=g.useReducer(GP,Fg);return D(WP.Provider,{value:{...t,enableNextPage:()=>{r({type:0})},disableNextPage:()=>{r({type:1})},goToNextPage:()=>{r({type:2})},goToPreviousPage:()=>{r({type:3})},submit:()=>{r({type:5})},setPage:n=>{r({type:4,payload:n})},reset:()=>{r({type:6})}},children:e})},S2=({context:e,steps:t,layeredContext:r,title:n,onSubmit:i,lastScreenIsSummary:s=!1,handleClose:a,isLargeModal:o=!0})=>{const l=()=>{e.reset(),a()},u=()=>{i()};return ot(VP,{layeredContext:r,isLargeModal:o,handleClose:l,children:[ot(gt.Body,{className:ct("flex max-h-full flex-col justify-between transition-transform duration-100"),children:[D(gt.Header,{handleClose:l,children:ot("div",{className:"flex flex-col",children:[D("h2",{className:"inter-xlarge-semibold",children:n}),!s||s&&e.currentStep!==t.length-1&&ot("div",{className:"flex items-center",children:[D("span",{className:"text-grey-50 inter-small-regular mr-4 w-[70px]",children:`Step ${e.currentStep+1} of ${t.length}`}),t.map((d,c)=>D("span",{className:ct("mr-3 h-2 w-2 rounded-full",{"bg-grey-20":c>e.currentStep,"bg-violet-60":e.currentStep>=c},{"outline-violet-20 outline outline-4":e.currentStep===c})},c))]})]})}),D(gt.Content,{children:t[e.currentStep]})]}),D(gt.Footer,{children:ot("div",{className:"gap-x-xsmall flex w-full justify-end",children:[D(Mo,{variant:"ghost",size:"small",disabled:e.currentStep===0,onClick:()=>e.goToPreviousPage(),className:"w-[112px]",children:"Back"}),D(Mo,{variant:"primary",size:"small",disabled:!e.nextStepEnabled,onClick:()=>e.currentStep===t.length-1?u():e.goToNextPage(),className:"w-[112px]",children:e.currentStep===t.length-1?"Submit":"Next"})]})})]})},VP=({layeredContext:e,handleClose:t,isLargeModal:r=!0,children:n})=>e?D(HP,{context:e,handleClose:t,isLargeModal:r,children:n}):D(gt,{handleClose:t,isLargeModal:r,children:n});var Zc={},XP={get exports(){return Zc},set exports(e){Zc=e}},_o={},YP={get exports(){return _o},set exports(e){_o=e}},qg=function(t,r){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return t.apply(r,i)}},JP=qg,Cn=Object.prototype.toString;function gf(e){return Cn.call(e)==="[object Array]"}function ed(e){return typeof e>"u"}function ZP(e){return e!==null&&!ed(e)&&e.constructor!==null&&!ed(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function e$(e){return Cn.call(e)==="[object ArrayBuffer]"}function t$(e){return typeof FormData<"u"&&e instanceof FormData}function r$(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function n$(e){return typeof e=="string"}function i$(e){return typeof e=="number"}function Ig(e){return e!==null&&typeof e=="object"}function eo(e){if(Cn.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function s$(e){return Cn.call(e)==="[object Date]"}function a$(e){return Cn.call(e)==="[object File]"}function o$(e){return Cn.call(e)==="[object Blob]"}function Qg(e){return Cn.call(e)==="[object Function]"}function l$(e){return Ig(e)&&Qg(e.pipe)}function u$(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function c$(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d$(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Sf(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),gf(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function td(){var e={};function t(i,s){eo(e[s])&&eo(i)?e[s]=td(e[s],i):eo(i)?e[s]=td({},i):gf(i)?e[s]=i.slice():e[s]=i}for(var r=0,n=arguments.length;r<n;r++)Sf(arguments[r],t);return e}function f$(e,t,r){return Sf(t,function(i,s){r&&typeof i=="function"?e[s]=JP(i,r):e[s]=i}),e}function h$(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var pt={isArray:gf,isArrayBuffer:e$,isBuffer:ZP,isFormData:t$,isArrayBufferView:r$,isString:n$,isNumber:i$,isObject:Ig,isPlainObject:eo,isUndefined:ed,isDate:s$,isFile:a$,isBlob:o$,isFunction:Qg,isStream:l$,isURLSearchParams:u$,isStandardBrowserEnv:d$,forEach:Sf,merge:td,extend:f$,trim:c$,stripBOM:h$},kn=pt;function Up(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Ug=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(kn.isURLSearchParams(r))i=r.toString();else{var s=[];kn.forEach(r,function(l,u){l===null||typeof l>"u"||(kn.isArray(l)?u=u+"[]":l=[l],kn.forEach(l,function(c){kn.isDate(c)?c=c.toISOString():kn.isObject(c)&&(c=JSON.stringify(c)),s.push(Up(u)+"="+Up(c))}))}),i=s.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},p$=pt;function dl(){this.handlers=[]}dl.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};dl.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};dl.prototype.forEach=function(t){p$.forEach(this.handlers,function(n){n!==null&&t(n)})};var m$=dl,v$=pt,y$=function(t,r){v$.forEach(t,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[s])})},jg=function(t,r,n,i,s){return t.config=r,n&&(t.code=n),t.request=i,t.response=s,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},fu,jp;function zg(){if(jp)return fu;jp=1;var e=jg;return fu=function(r,n,i,s,a){var o=new Error(r);return e(o,n,i,s,a)},fu}var hu,zp;function g$(){if(zp)return hu;zp=1;var e=zg();return hu=function(r,n,i){var s=i.config.validateStatus;!i.status||!s||s(i.status)?r(i):n(e("Request failed with status code "+i.status,i.config,null,i.request,i))},hu}var pu,Bp;function S$(){if(Bp)return pu;Bp=1;var e=pt;return pu=e.isStandardBrowserEnv()?function(){return{write:function(n,i,s,a,o,l){var u=[];u.push(n+"="+encodeURIComponent(i)),e.isNumber(s)&&u.push("expires="+new Date(s).toGMTString()),e.isString(a)&&u.push("path="+a),e.isString(o)&&u.push("domain="+o),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),pu}var mu,Hp;function E$(){return Hp||(Hp=1,mu=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),mu}var vu,Wp;function w$(){return Wp||(Wp=1,vu=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),vu}var yu,Gp;function C$(){if(Gp)return yu;Gp=1;var e=E$(),t=w$();return yu=function(n,i){return n&&!e(i)?t(n,i):i},yu}var gu,Kp;function P$(){if(Kp)return gu;Kp=1;var e=pt,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return gu=function(n){var i={},s,a,o;return n&&e.forEach(n.split(`
  103. `),function(u){if(o=u.indexOf(":"),s=e.trim(u.substr(0,o)).toLowerCase(),a=e.trim(u.substr(o+1)),s){if(i[s]&&t.indexOf(s)>=0)return;s==="set-cookie"?i[s]=(i[s]?i[s]:[]).concat([a]):i[s]=i[s]?i[s]+", "+a:a}}),i},gu}var Su,Vp;function $$(){if(Vp)return Su;Vp=1;var e=pt;return Su=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function s(a){var o=a;return r&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=s(window.location.href),function(o){var l=e.isString(o)?s(o):o;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}(),Su}var Eu,Xp;function fl(){if(Xp)return Eu;Xp=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Eu=e,Eu}var wu,Yp;function Jp(){if(Yp)return wu;Yp=1;var e=pt,t=g$(),r=S$(),n=Ug,i=C$(),s=P$(),a=$$(),o=zg(),l=hl(),u=fl();return wu=function(c){return new Promise(function(S,E){var f=c.data,P=c.headers,m=c.responseType,v;function y(){c.cancelToken&&c.cancelToken.unsubscribe(v),c.signal&&c.signal.removeEventListener("abort",v)}e.isFormData(f)&&delete P["Content-Type"];var w=new XMLHttpRequest;if(c.auth){var $=c.auth.username||"",R=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";P.Authorization="Basic "+btoa($+":"+R)}var x=i(c.baseURL,c.url);w.open(c.method.toUpperCase(),n(x,c.params,c.paramsSerializer),!0),w.timeout=c.timeout;function b(){if(w){var A="getAllResponseHeaders"in w?s(w.getAllResponseHeaders()):null,X=!m||m==="text"||m==="json"?w.responseText:w.response,ae={data:X,status:w.status,statusText:w.statusText,headers:A,config:c,request:w};t(function(fe){S(fe),y()},function(fe){E(fe),y()},ae),w=null}}if("onloadend"in w?w.onloadend=b:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(b)},w.onabort=function(){w&&(E(o("Request aborted",c,"ECONNABORTED",w)),w=null)},w.onerror=function(){E(o("Network Error",c,null,w)),w=null},w.ontimeout=function(){var X=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",ae=c.transitional||l.transitional;c.timeoutErrorMessage&&(X=c.timeoutErrorMessage),E(o(X,c,ae.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",w)),w=null},e.isStandardBrowserEnv()){var I=(c.withCredentials||a(x))&&c.xsrfCookieName?r.read(c.xsrfCookieName):void 0;I&&(P[c.xsrfHeaderName]=I)}"setRequestHeader"in w&&e.forEach(P,function(X,ae){typeof f>"u"&&ae.toLowerCase()==="content-type"?delete P[ae]:w.setRequestHeader(ae,X)}),e.isUndefined(c.withCredentials)||(w.withCredentials=!!c.withCredentials),m&&m!=="json"&&(w.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&w.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(v=function(A){w&&(E(!A||A&&A.type?new u("canceled"):A),w.abort(),w=null)},c.cancelToken&&c.cancelToken.subscribe(v),c.signal&&(c.signal.aborted?v():c.signal.addEventListener("abort",v))),f||(f=null),w.send(f)})},wu}var Cu,Zp;function hl(){if(Zp)return Cu;Zp=1;var e=pt,t=y$,r=jg,n={"Content-Type":"application/x-www-form-urlencoded"};function i(l,u){!e.isUndefined(l)&&e.isUndefined(l["Content-Type"])&&(l["Content-Type"]=u)}function s(){var l;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(l=Jp()),l}function a(l,u,d){if(e.isString(l))try{return(u||JSON.parse)(l),e.trim(l)}catch(c){if(c.name!=="SyntaxError")throw c}return(d||JSON.stringify)(l)}var o={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:s(),transformRequest:[function(u,d){return t(d,"Accept"),t(d,"Content-Type"),e.isFormData(u)||e.isArrayBuffer(u)||e.isBuffer(u)||e.isStream(u)||e.isFile(u)||e.isBlob(u)?u:e.isArrayBufferView(u)?u.buffer:e.isURLSearchParams(u)?(i(d,"application/x-www-form-urlencoded;charset=utf-8"),u.toString()):e.isObject(u)||d&&d["Content-Type"]==="application/json"?(i(d,"application/json"),a(u)):u}],transformResponse:[function(u){var d=this.transitional||o.transitional,c=d&&d.silentJSONParsing,h=d&&d.forcedJSONParsing,S=!c&&this.responseType==="json";if(S||h&&e.isString(u)&&u.length)try{return JSON.parse(u)}catch(E){if(S)throw E.name==="SyntaxError"?r(E,this,"E_JSON_PARSE"):E}return u}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(u){return u>=200&&u<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(u){o.headers[u]={}}),e.forEach(["post","put","patch"],function(u){o.headers[u]=e.merge(n)}),Cu=o,Cu}var O$=pt,b$=hl(),x$=function(t,r,n){var i=this||b$;return O$.forEach(n,function(a){t=a.call(i,t,r)}),t},Pu,em;function Bg(){return em||(em=1,Pu=function(t){return!!(t&&t.__CANCEL__)}),Pu}var tm=pt,$u=x$,R$=Bg(),T$=hl(),M$=fl();function Ou(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new M$("canceled")}var _$=function(t){Ou(t),t.headers=t.headers||{},t.data=$u.call(t,t.data,t.headers,t.transformRequest),t.headers=tm.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),tm.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||T$.adapter;return r(t).then(function(i){return Ou(t),i.data=$u.call(t,i.data,i.headers,t.transformResponse),i},function(i){return R$(i)||(Ou(t),i&&i.response&&(i.response.data=$u.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},st=pt,Hg=function(t,r){r=r||{};var n={};function i(d,c){return st.isPlainObject(d)&&st.isPlainObject(c)?st.merge(d,c):st.isPlainObject(c)?st.merge({},c):st.isArray(c)?c.slice():c}function s(d){if(st.isUndefined(r[d])){if(!st.isUndefined(t[d]))return i(void 0,t[d])}else return i(t[d],r[d])}function a(d){if(!st.isUndefined(r[d]))return i(void 0,r[d])}function o(d){if(st.isUndefined(r[d])){if(!st.isUndefined(t[d]))return i(void 0,t[d])}else return i(void 0,r[d])}function l(d){if(d in r)return i(t[d],r[d]);if(d in t)return i(void 0,t[d])}var u={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l};return st.forEach(Object.keys(t).concat(Object.keys(r)),function(c){var h=u[c]||s,S=h(c);st.isUndefined(S)&&h!==l||(n[c]=S)}),n},bu,rm;function Wg(){return rm||(rm=1,bu={version:"0.24.0"}),bu}var k$=Wg().version,Ef={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Ef[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var nm={};Ef.transitional=function(t,r,n){function i(s,a){return"[Axios v"+k$+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return function(s,a,o){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!nm[a]&&(nm[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,a,o):!0}};function D$(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var s=n[i],a=t[s];if(a){var o=e[s],l=o===void 0||a(o,s,e);if(l!==!0)throw new TypeError("option "+s+" must be "+l);continue}if(r!==!0)throw Error("Unknown option "+s)}}var A$={assertOptions:D$,validators:Ef},Gg=pt,L$=Ug,im=m$,sm=_$,pl=Hg,Kg=A$,Dn=Kg.validators;function Zs(e){this.defaults=e,this.interceptors={request:new im,response:new im}}Zs.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=pl(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&Kg.assertOptions(r,{silentJSONParsing:Dn.transitional(Dn.boolean),forcedJSONParsing:Dn.transitional(Dn.boolean),clarifyTimeoutError:Dn.transitional(Dn.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(i=i&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var s=[];this.interceptors.response.forEach(function(h){s.push(h.fulfilled,h.rejected)});var a;if(!i){var o=[sm,void 0];for(Array.prototype.unshift.apply(o,n),o=o.concat(s),a=Promise.resolve(t);o.length;)a=a.then(o.shift(),o.shift());return a}for(var l=t;n.length;){var u=n.shift(),d=n.shift();try{l=u(l)}catch(c){d(c);break}}try{a=sm(l)}catch(c){return Promise.reject(c)}for(;s.length;)a=a.then(s.shift(),s.shift());return a};Zs.prototype.getUri=function(t){return t=pl(this.defaults,t),L$(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Gg.forEach(["delete","get","head","options"],function(t){Zs.prototype[t]=function(r,n){return this.request(pl(n||{},{method:t,url:r,data:(n||{}).data}))}});Gg.forEach(["post","put","patch"],function(t){Zs.prototype[t]=function(r,n,i){return this.request(pl(i||{},{method:t,url:r,data:n}))}});var N$=Zs,xu,am;function F$(){if(am)return xu;am=1;var e=fl();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;this.promise.then(function(s){if(i._listeners){var a,o=i._listeners.length;for(a=0;a<o;a++)i._listeners[a](s);i._listeners=null}}),this.promise.then=function(s){var a,o=new Promise(function(l){i.subscribe(l),a=l}).then(s);return o.cancel=function(){i.unsubscribe(a)},o},r(function(a){i.reason||(i.reason=new e(a),n(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},t.prototype.unsubscribe=function(n){if(this._listeners){var i=this._listeners.indexOf(n);i!==-1&&this._listeners.splice(i,1)}},t.source=function(){var n,i=new t(function(a){n=a});return{token:i,cancel:n}},xu=t,xu}var Ru,om;function q$(){return om||(om=1,Ru=function(t){return function(n){return t.apply(null,n)}}),Ru}var Tu,lm;function I$(){return lm||(lm=1,Tu=function(t){return typeof t=="object"&&t.isAxiosError===!0}),Tu}var um=pt,Q$=qg,to=N$,U$=Hg,j$=hl();function Vg(e){var t=new to(e),r=Q$(to.prototype.request,t);return um.extend(r,to.prototype,t),um.extend(r,t),r.create=function(i){return Vg(U$(e,i))},r}var Vt=Vg(j$);Vt.Axios=to;Vt.Cancel=fl();Vt.CancelToken=F$();Vt.isCancel=Bg();Vt.VERSION=Wg().version;Vt.all=function(t){return Promise.all(t)};Vt.spread=q$();Vt.isAxiosError=I$();YP.exports=Vt;_o.default=Vt;(function(e){e.exports=_o})(XP);const ko=vd(Zc);function z$(e){return(e=e||ko).interceptors.response.use(B$,H$)}function B$(e){return e}function cm(e){var t=[];if(e)return Array.isArray(e)?e:(typeof e=="object"&&Object.keys(e).forEach(function(r){typeof r=="number"&&(t[r]=e[r])}),t)}function H$(e){if(ko.isCancel(e))return Promise.reject(e);var t=Xg(e)||{};if(t.currentRetryAttempt=t.currentRetryAttempt||0,t.retry=typeof t.retry=="number"?t.retry:3,t.retryDelay=typeof t.retryDelay=="number"?t.retryDelay:100,t.instance=t.instance||ko,t.backoffType=t.backoffType||"exponential",t.httpMethodsToRetry=cm(t.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],t.noResponseRetries=typeof t.noResponseRetries=="number"?t.noResponseRetries:2,t.checkRetryAfter=typeof t.checkRetryAfter!="boolean"||t.checkRetryAfter,t.maxRetryAfter=typeof t.maxRetryAfter=="number"?t.maxRetryAfter:3e5,t.statusCodesToRetry=cm(t.statusCodesToRetry)||[[100,199],[429,429],[500,599]],e.config=e.config||{},e.config.raxConfig=Object.assign({},t),!(t.shouldRetry||W$)(e))return Promise.reject(e);var r=new Promise(function(i,s){var a=0;if(t.checkRetryAfter&&e.response&&e.response.headers["retry-after"]){var o=function(u){var d=Number(u);if(!Number.isNaN(d))return 1e3*d;var c=Date.parse(u);return Number.isNaN(c)?void 0:c-Date.now()}(e.response.headers["retry-after"]);if(!(o&&o>0&&o<=t.maxRetryAfter))return s(e);a=o}e.config.raxConfig.currentRetryAttempt+=1;var l=e.config.raxConfig.currentRetryAttempt;a===0&&(a=t.backoffType==="linear"?1e3*l:t.backoffType==="static"?t.retryDelay:(Math.pow(2,l)-1)/2*1e3,typeof t.maxRetryDelay=="number"&&(a=Math.min(a,t.maxRetryDelay))),setTimeout(i,a)}),n=t.onRetryAttempt?Promise.resolve(t.onRetryAttempt(e)):Promise.resolve();return Promise.resolve().then(function(){return r}).then(function(){return n}).then(function(){return t.instance.request(e.config)})}function W$(e){var t=e.config.raxConfig;if(!t||t.retry===0||!e.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries||!e.config.method||t.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0)return!1;if(e.response&&e.response.status){for(var r=!1,n=0,i=t.statusCodesToRetry;n<i.length;n+=1){var s=i[n],a=e.response.status;if(a>=s[0]&&a<=s[1]){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function Xg(e){if(e&&e.config)return e.config.raxConfig}let _a;const G$=new Uint8Array(16);function K$(){if(!_a&&(_a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _a(G$)}const De=[];for(let e=0;e<256;++e)De.push((e+256).toString(16).slice(1));function V$(e,t=0){return(De[e[t+0]]+De[e[t+1]]+De[e[t+2]]+De[e[t+3]]+"-"+De[e[t+4]]+De[e[t+5]]+"-"+De[e[t+6]]+De[e[t+7]]+"-"+De[e[t+8]]+De[e[t+9]]+"-"+De[e[t+10]]+De[e[t+11]]+De[e[t+12]]+De[e[t+13]]+De[e[t+14]]+De[e[t+15]]).toLowerCase()}const X$=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),dm={randomUUID:X$};function Y$(e,t,r){if(dm.randomUUID&&!t&&!e)return dm.randomUUID();e=e||{};const n=e.random||(e.rng||K$)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return V$(n)}var J$=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0},fm=typeof Symbol<"u"&&Symbol,Z$=J$,eO=function(){return typeof fm!="function"||typeof Symbol!="function"||typeof fm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Z$()},tO="Function.prototype.bind called on incompatible ",Mu=Array.prototype.slice,rO=Object.prototype.toString,nO="[object Function]",iO=function(t){var r=this;if(typeof r!="function"||rO.call(r)!==nO)throw new TypeError(tO+r);for(var n=Mu.call(arguments,1),i,s=function(){if(this instanceof i){var d=r.apply(this,n.concat(Mu.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(Mu.call(arguments)))},a=Math.max(0,r.length-n.length),o=[],l=0;l<a;l++)o.push("$"+l);if(i=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i},sO=iO,wf=Function.prototype.bind||sO,aO=wf,oO=aO.call(Function.call,Object.prototype.hasOwnProperty),J,gi=SyntaxError,Yg=Function,oi=TypeError,_u=function(e){try{return Yg('"use strict"; return ('+e+").constructor;")()}catch{}},an=Object.getOwnPropertyDescriptor;if(an)try{an({},"")}catch{an=null}var ku=function(){throw new oi},lO=an?function(){try{return arguments.callee,ku}catch{try{return an(arguments,"callee").get}catch{return ku}}}():ku,An=eO(),Er=Object.getPrototypeOf||function(e){return e.__proto__},Fn={},uO=typeof Uint8Array>"u"?J:Er(Uint8Array),li={"%AggregateError%":typeof AggregateError>"u"?J:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?J:ArrayBuffer,"%ArrayIteratorPrototype%":An?Er([][Symbol.iterator]()):J,"%AsyncFromSyncIteratorPrototype%":J,"%AsyncFunction%":Fn,"%AsyncGenerator%":Fn,"%AsyncGeneratorFunction%":Fn,"%AsyncIteratorPrototype%":Fn,"%Atomics%":typeof Atomics>"u"?J:Atomics,"%BigInt%":typeof BigInt>"u"?J:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?J:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?J:Float32Array,"%Float64Array%":typeof Float64Array>"u"?J:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?J:FinalizationRegistry,"%Function%":Yg,"%GeneratorFunction%":Fn,"%Int8Array%":typeof Int8Array>"u"?J:Int8Array,"%Int16Array%":typeof Int16Array>"u"?J:Int16Array,"%Int32Array%":typeof Int32Array>"u"?J:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":An?Er(Er([][Symbol.iterator]())):J,"%JSON%":typeof JSON=="object"?JSON:J,"%Map%":typeof Map>"u"?J:Map,"%MapIteratorPrototype%":typeof Map>"u"||!An?J:Er(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?J:Promise,"%Proxy%":typeof Proxy>"u"?J:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?J:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?J:Set,"%SetIteratorPrototype%":typeof Set>"u"||!An?J:Er(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?J:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":An?Er(""[Symbol.iterator]()):J,"%Symbol%":An?Symbol:J,"%SyntaxError%":gi,"%ThrowTypeError%":lO,"%TypedArray%":uO,"%TypeError%":oi,"%Uint8Array%":typeof Uint8Array>"u"?J:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?J:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?J:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?J:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?J:WeakMap,"%WeakRef%":typeof WeakRef>"u"?J:WeakRef,"%WeakSet%":typeof WeakSet>"u"?J:WeakSet},cO=function e(t){var r;if(t==="%AsyncFunction%")r=_u("async function () {}");else if(t==="%GeneratorFunction%")r=_u("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=_u("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=Er(i.prototype))}return li[t]=r,r},hm={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ea=wf,Do=oO,dO=ea.call(Function.call,Array.prototype.concat),fO=ea.call(Function.apply,Array.prototype.splice),pm=ea.call(Function.call,String.prototype.replace),Ao=ea.call(Function.call,String.prototype.slice),hO=ea.call(Function.call,RegExp.prototype.exec),pO=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mO=/\\(\\)?/g,vO=function(t){var r=Ao(t,0,1),n=Ao(t,-1);if(r==="%"&&n!=="%")throw new gi("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new gi("invalid intrinsic syntax, expected opening `%`");var i=[];return pm(t,pO,function(s,a,o,l){i[i.length]=o?pm(l,mO,"$1"):a||s}),i},yO=function(t,r){var n=t,i;if(Do(hm,n)&&(i=hm[n],n="%"+i[0]+"%"),Do(li,n)){var s=li[n];if(s===Fn&&(s=cO(n)),typeof s>"u"&&!r)throw new oi("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new gi("intrinsic "+t+" does not exist!")},Cf=function(t,r){if(typeof t!="string"||t.length===0)throw new oi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new oi('"allowMissing" argument must be a boolean');if(hO(/^%?[^%]*%?$/g,t)===null)throw new gi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=vO(t),i=n.length>0?n[0]:"",s=yO("%"+i+"%",r),a=s.name,o=s.value,l=!1,u=s.alias;u&&(i=u[0],fO(n,dO([0,1],u)));for(var d=1,c=!0;d<n.length;d+=1){var h=n[d],S=Ao(h,0,1),E=Ao(h,-1);if((S==='"'||S==="'"||S==="`"||E==='"'||E==="'"||E==="`")&&S!==E)throw new gi("property names with quotes must have matching quotes");if((h==="constructor"||!c)&&(l=!0),i+="."+h,a="%"+i+"%",Do(li,a))o=li[a];else if(o!=null){if(!(h in o)){if(!r)throw new oi("base intrinsic for "+t+" exists, but the property is not available.");return}if(an&&d+1>=n.length){var f=an(o,h);c=!!f,c&&"get"in f&&!("originalValue"in f.get)?o=f.get:o=o[h]}else c=Do(o,h),o=o[h];c&&!l&&(li[a]=o)}}return o},rd={},gO={get exports(){return rd},set exports(e){rd=e}};(function(e){var t=wf,r=Cf,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,n),a=r("%Object.getOwnPropertyDescriptor%",!0),o=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(o)try{o({},"a",{value:1})}catch{o=null}e.exports=function(c){var h=s(t,i,arguments);if(a&&o){var S=a(h,"length");S.configurable&&o(h,"length",{value:1+l(0,c.length-(arguments.length-1))})}return h};var u=function(){return s(t,n,arguments)};o?o(e.exports,"apply",{value:u}):e.exports.apply=u})(gO);var Jg=Cf,Zg=rd,SO=Zg(Jg("String.prototype.indexOf")),EO=function(t,r){var n=Jg(t,!!r);return typeof n=="function"&&SO(t,".prototype.")>-1?Zg(n):n};const wO={},CO=Object.freeze(Object.defineProperty({__proto__:null,default:wO},Symbol.toStringTag,{value:"Module"})),PO=yd(CO);var Pf=typeof Map=="function"&&Map.prototype,Du=Object.getOwnPropertyDescriptor&&Pf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Lo=Pf&&Du&&typeof Du.get=="function"?Du.get:null,$O=Pf&&Map.prototype.forEach,$f=typeof Set=="function"&&Set.prototype,Au=Object.getOwnPropertyDescriptor&&$f?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,No=$f&&Au&&typeof Au.get=="function"?Au.get:null,OO=$f&&Set.prototype.forEach,bO=typeof WeakMap=="function"&&WeakMap.prototype,Es=bO?WeakMap.prototype.has:null,xO=typeof WeakSet=="function"&&WeakSet.prototype,ws=xO?WeakSet.prototype.has:null,RO=typeof WeakRef=="function"&&WeakRef.prototype,mm=RO?WeakRef.prototype.deref:null,TO=Boolean.prototype.valueOf,MO=Object.prototype.toString,_O=Function.prototype.toString,kO=String.prototype.match,Of=String.prototype.slice,br=String.prototype.replace,DO=String.prototype.toUpperCase,vm=String.prototype.toLowerCase,e0=RegExp.prototype.test,ym=Array.prototype.concat,Bt=Array.prototype.join,AO=Array.prototype.slice,gm=Math.floor,nd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Lu=Object.getOwnPropertySymbols,id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Si=typeof Symbol=="function"&&typeof Symbol.iterator=="object",He=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Si||"symbol")?Symbol.toStringTag:null,t0=Object.prototype.propertyIsEnumerable,Sm=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Em(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||e0.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-gm(-e):gm(e);if(n!==e){var i=String(n),s=Of.call(t,i.length+1);return br.call(i,r,"$&_")+"."+br.call(br.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return br.call(t,r,"$&_")}var sd=PO,wm=sd.custom,Cm=n0(wm)?wm:null,LO=function e(t,r,n,i){var s=r||{};if(wr(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(wr(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=wr(s,"customInspect")?s.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(wr(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(wr(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=s.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return s0(t,s);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return o?Em(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return o?Em(t,u):u}var d=typeof s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return ad(t)?"[Array]":"[Object]";var c=ZO(s,n);if(typeof i>"u")i=[];else if(i0(i,t)>=0)return"[Circular]";function h(oe,fe,We){if(fe&&(i=AO.call(i),i.push(fe)),We){var Ot={depth:s.depth};return wr(s,"quoteStyle")&&(Ot.quoteStyle=s.quoteStyle),e(oe,Ot,n+1,i)}return e(oe,s,n+1,i)}if(typeof t=="function"&&!Pm(t)){var S=BO(t),E=ka(t,h);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(E.length>0?" { "+Bt.call(E,", ")+" }":"")}if(n0(t)){var f=Si?br.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):id.call(t);return typeof t=="object"&&!Si?es(f):f}if(XO(t)){for(var P="<"+vm.call(String(t.nodeName)),m=t.attributes||[],v=0;v<m.length;v++)P+=" "+m[v].name+"="+r0(NO(m[v].value),"double",s);return P+=">",t.childNodes&&t.childNodes.length&&(P+="..."),P+="</"+vm.call(String(t.nodeName))+">",P}if(ad(t)){if(t.length===0)return"[]";var y=ka(t,h);return c&&!JO(y)?"["+od(y,c)+"]":"[ "+Bt.call(y,", ")+" ]"}if(qO(t)){var w=ka(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!t0.call(t,"cause")?"{ ["+String(t)+"] "+Bt.call(ym.call("[cause]: "+h(t.cause),w),", ")+" }":w.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Bt.call(w,", ")+" }"}if(typeof t=="object"&&a){if(Cm&&typeof t[Cm]=="function"&&sd)return sd(t,{depth:d-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(HO(t)){var $=[];return $O.call(t,function(oe,fe){$.push(h(fe,t,!0)+" => "+h(oe,t))}),$m("Map",Lo.call(t),$,c)}if(KO(t)){var R=[];return OO.call(t,function(oe){R.push(h(oe,t))}),$m("Set",No.call(t),R,c)}if(WO(t))return Nu("WeakMap");if(VO(t))return Nu("WeakSet");if(GO(t))return Nu("WeakRef");if(QO(t))return es(h(Number(t)));if(jO(t))return es(h(nd.call(t)));if(UO(t))return es(TO.call(t));if(IO(t))return es(h(String(t)));if(!FO(t)&&!Pm(t)){var x=ka(t,h),b=Sm?Sm(t)===Object.prototype:t instanceof Object||t.constructor===Object,I=t instanceof Object?"":"null prototype",A=!b&&He&&Object(t)===t&&He in t?Of.call(zr(t),8,-1):I?"Object":"",X=b||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",ae=X+(A||I?"["+Bt.call(ym.call([],A||[],I||[]),": ")+"] ":"");return x.length===0?ae+"{}":c?ae+"{"+od(x,c)+"}":ae+"{ "+Bt.call(x,", ")+" }"}return String(t)};function r0(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function NO(e){return br.call(String(e),/"/g,"&quot;")}function ad(e){return zr(e)==="[object Array]"&&(!He||!(typeof e=="object"&&He in e))}function FO(e){return zr(e)==="[object Date]"&&(!He||!(typeof e=="object"&&He in e))}function Pm(e){return zr(e)==="[object RegExp]"&&(!He||!(typeof e=="object"&&He in e))}function qO(e){return zr(e)==="[object Error]"&&(!He||!(typeof e=="object"&&He in e))}function IO(e){return zr(e)==="[object String]"&&(!He||!(typeof e=="object"&&He in e))}function QO(e){return zr(e)==="[object Number]"&&(!He||!(typeof e=="object"&&He in e))}function UO(e){return zr(e)==="[object Boolean]"&&(!He||!(typeof e=="object"&&He in e))}function n0(e){if(Si)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!id)return!1;try{return id.call(e),!0}catch{}return!1}function jO(e){if(!e||typeof e!="object"||!nd)return!1;try{return nd.call(e),!0}catch{}return!1}var zO=Object.prototype.hasOwnProperty||function(e){return e in this};function wr(e,t){return zO.call(e,t)}function zr(e){return MO.call(e)}function BO(e){if(e.name)return e.name;var t=kO.call(_O.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function i0(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function HO(e){if(!Lo||!e||typeof e!="object")return!1;try{Lo.call(e);try{No.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function WO(e){if(!Es||!e||typeof e!="object")return!1;try{Es.call(e,Es);try{ws.call(e,ws)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function GO(e){if(!mm||!e||typeof e!="object")return!1;try{return mm.call(e),!0}catch{}return!1}function KO(e){if(!No||!e||typeof e!="object")return!1;try{No.call(e);try{Lo.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function VO(e){if(!ws||!e||typeof e!="object")return!1;try{ws.call(e,ws);try{Es.call(e,Es)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function XO(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function s0(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return s0(Of.call(e,0,t.maxStringLength),t)+n}var i=br.call(br.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,YO);return r0(i,"single",t)}function YO(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+DO.call(t.toString(16))}function es(e){return"Object("+e+")"}function Nu(e){return e+" { ? }"}function $m(e,t,r,n){var i=n?od(r,n):Bt.call(r,", ");return e+" ("+t+") {"+i+"}"}function JO(e){for(var t=0;t<e.length;t++)if(i0(e[t],`
  104. `)>=0)return!1;return!0}function ZO(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Bt.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Bt.call(Array(t+1),r)}}function od(e,t){if(e.length===0)return"";var r=`
  105. `+t.prev+t.base;return r+Bt.call(e,","+r)+`
  106. `+t.prev}function ka(e,t){var r=ad(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=wr(e,i)?t(e[i],e):""}var s=typeof Lu=="function"?Lu(e):[],a;if(Si){a={};for(var o=0;o<s.length;o++)a["$"+s[o]]=s[o]}for(var l in e)wr(e,l)&&(r&&String(Number(l))===l&&l<e.length||Si&&a["$"+l]instanceof Symbol||(e0.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Lu=="function")for(var u=0;u<s.length;u++)t0.call(e,s[u])&&n.push("["+t(s[u])+"]: "+t(e[s[u]],e));return n}var bf=Cf,Di=EO,eb=LO,tb=bf("%TypeError%"),Da=bf("%WeakMap%",!0),Aa=bf("%Map%",!0),rb=Di("WeakMap.prototype.get",!0),nb=Di("WeakMap.prototype.set",!0),ib=Di("WeakMap.prototype.has",!0),sb=Di("Map.prototype.get",!0),ab=Di("Map.prototype.set",!0),ob=Di("Map.prototype.has",!0),xf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},lb=function(e,t){var r=xf(e,t);return r&&r.value},ub=function(e,t,r){var n=xf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},cb=function(e,t){return!!xf(e,t)},db=function(){var t,r,n,i={assert:function(s){if(!i.has(s))throw new tb("Side channel does not contain "+eb(s))},get:function(s){if(Da&&s&&(typeof s=="object"||typeof s=="function")){if(t)return rb(t,s)}else if(Aa){if(r)return sb(r,s)}else if(n)return lb(n,s)},has:function(s){if(Da&&s&&(typeof s=="object"||typeof s=="function")){if(t)return ib(t,s)}else if(Aa){if(r)return ob(r,s)}else if(n)return cb(n,s);return!1},set:function(s,a){Da&&s&&(typeof s=="object"||typeof s=="function")?(t||(t=new Da),nb(t,s,a)):Aa?(r||(r=new Aa),ab(r,s,a)):(n||(n={key:{},next:null}),ub(n,s,a))}};return i},fb=String.prototype.replace,hb=/%20/g,Fu={RFC1738:"RFC1738",RFC3986:"RFC3986"},Rf={default:Fu.RFC3986,formatters:{RFC1738:function(e){return fb.call(e,hb,"+")},RFC3986:function(e){return String(e)}},RFC1738:Fu.RFC1738,RFC3986:Fu.RFC3986},pb=Rf,qu=Object.prototype.hasOwnProperty,Jr=Array.isArray,Qt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),mb=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Jr(n)){for(var i=[],s=0;s<n.length;++s)typeof n[s]<"u"&&i.push(n[s]);r.obj[r.prop]=i}}},a0=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},vb=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Jr(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!qu.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return Jr(t)&&!Jr(r)&&(i=a0(t,n)),Jr(t)&&Jr(r)?(r.forEach(function(s,a){if(qu.call(t,a)){var o=t[a];o&&typeof o=="object"&&s&&typeof s=="object"?t[a]=e(o,s,n):t.push(s)}else t[a]=s}),t):Object.keys(r).reduce(function(s,a){var o=r[a];return qu.call(s,a)?s[a]=e(s[a],o,n):s[a]=o,s},i)},yb=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},gb=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Sb=function(t,r,n,i,s){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var o="",l=0;l<a.length;++l){var u=a.charCodeAt(l);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||s===pb.RFC1738&&(u===40||u===41)){o+=a.charAt(l);continue}if(u<128){o=o+Qt[u];continue}if(u<2048){o=o+(Qt[192|u>>6]+Qt[128|u&63]);continue}if(u<55296||u>=57344){o=o+(Qt[224|u>>12]+Qt[128|u>>6&63]+Qt[128|u&63]);continue}l+=1,u=65536+((u&1023)<<10|a.charCodeAt(l)&1023),o+=Qt[240|u>>18]+Qt[128|u>>12&63]+Qt[128|u>>6&63]+Qt[128|u&63]}return o},Eb=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var s=r[i],a=s.obj[s.prop],o=Object.keys(a),l=0;l<o.length;++l){var u=o[l],d=a[u];typeof d=="object"&&d!==null&&n.indexOf(d)===-1&&(r.push({obj:a,prop:u}),n.push(d))}return mb(r),t},wb=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Cb=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Pb=function(t,r){return[].concat(t,r)},$b=function(t,r){if(Jr(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},o0={arrayToObject:a0,assign:yb,combine:Pb,compact:Eb,decode:gb,encode:Sb,isBuffer:Cb,isRegExp:wb,maybeMap:$b,merge:vb},l0=db,ld=o0,Cs=Rf,Ob=Object.prototype.hasOwnProperty,Om={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},rr=Array.isArray,bb=String.prototype.split,xb=Array.prototype.push,u0=function(e,t){xb.apply(e,rr(t)?t:[t])},Rb=Date.prototype.toISOString,bm=Cs.default,Ae={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:ld.encode,encodeValuesOnly:!1,format:bm,formatter:Cs.formatters[bm],indices:!1,serializeDate:function(t){return Rb.call(t)},skipNulls:!1,strictNullHandling:!1},Tb=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Iu={},Mb=function e(t,r,n,i,s,a,o,l,u,d,c,h,S,E,f,P){for(var m=t,v=P,y=0,w=!1;(v=v.get(Iu))!==void 0&&!w;){var $=v.get(t);if(y+=1,typeof $<"u"){if($===y)throw new RangeError("Cyclic object value");w=!0}typeof v.get(Iu)>"u"&&(y=0)}if(typeof l=="function"?m=l(r,m):m instanceof Date?m=c(m):n==="comma"&&rr(m)&&(m=ld.maybeMap(m,function(q){return q instanceof Date?c(q):q})),m===null){if(s)return o&&!E?o(r,Ae.encoder,f,"key",h):r;m=""}if(Tb(m)||ld.isBuffer(m)){if(o){var R=E?r:o(r,Ae.encoder,f,"key",h);if(n==="comma"&&E){for(var x=bb.call(String(m),","),b="",I=0;I<x.length;++I)b+=(I===0?"":",")+S(o(x[I],Ae.encoder,f,"value",h));return[S(R)+(i&&rr(m)&&x.length===1?"[]":"")+"="+b]}return[S(R)+"="+S(o(m,Ae.encoder,f,"value",h))]}return[S(r)+"="+S(String(m))]}var A=[];if(typeof m>"u")return A;var X;if(n==="comma"&&rr(m))X=[{value:m.length>0?m.join(",")||null:void 0}];else if(rr(l))X=l;else{var ae=Object.keys(m);X=u?ae.sort(u):ae}for(var oe=i&&rr(m)&&m.length===1?r+"[]":r,fe=0;fe<X.length;++fe){var We=X[fe],Ot=typeof We=="object"&&typeof We.value<"u"?We.value:m[We];if(!(a&&Ot===null)){var Wr=rr(m)?typeof n=="function"?n(oe,We):oe:oe+(d?"."+We:"["+We+"]");P.set(t,y);var L=l0();L.set(Iu,P),u0(A,e(Ot,Wr,n,i,s,a,o,l,u,d,c,h,S,E,f,L))}}return A},_b=function(t){if(!t)return Ae;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Ae.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Cs.default;if(typeof t.format<"u"){if(!Ob.call(Cs.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=Cs.formatters[n],s=Ae.filter;return(typeof t.filter=="function"||rr(t.filter))&&(s=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Ae.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Ae.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ae.charsetSentinel,delimiter:typeof t.delimiter>"u"?Ae.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ae.encode,encoder:typeof t.encoder=="function"?t.encoder:Ae.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ae.encodeValuesOnly,filter:s,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ae.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ae.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ae.strictNullHandling}},kb=function(e,t){var r=e,n=_b(t),i,s;typeof n.filter=="function"?(s=n.filter,r=s("",r)):rr(n.filter)&&(s=n.filter,i=s);var a=[];if(typeof r!="object"||r===null)return"";var o;t&&t.arrayFormat in Om?o=t.arrayFormat:t&&"indices"in t?o=t.indices?"indices":"repeat":o="indices";var l=Om[o];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var d=l0(),c=0;c<i.length;++c){var h=i[c];n.skipNulls&&r[h]===null||u0(a,Mb(r[h],h,l,u,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,d))}var S=a.join(n.delimiter),E=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),S.length>0?E+S:""},Ei=o0,ud=Object.prototype.hasOwnProperty,Db=Array.isArray,Me={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ei.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Ab=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},c0=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Lb="utf8=%26%2310003%3B",Nb="utf8=%E2%9C%93",Fb=function(t,r){var n={},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,s=r.parameterLimit===1/0?void 0:r.parameterLimit,a=i.split(r.delimiter,s),o=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===Nb?u="utf-8":a[l]===Lb&&(u="iso-8859-1"),o=l,l=a.length);for(l=0;l<a.length;++l)if(l!==o){var d=a[l],c=d.indexOf("]="),h=c===-1?d.indexOf("="):c+1,S,E;h===-1?(S=r.decoder(d,Me.decoder,u,"key"),E=r.strictNullHandling?null:""):(S=r.decoder(d.slice(0,h),Me.decoder,u,"key"),E=Ei.maybeMap(c0(d.slice(h+1),r),function(f){return r.decoder(f,Me.decoder,u,"value")})),E&&r.interpretNumericEntities&&u==="iso-8859-1"&&(E=Ab(E)),d.indexOf("[]=")>-1&&(E=Db(E)?[E]:E),ud.call(n,S)?n[S]=Ei.combine(n[S],E):n[S]=E}return n},qb=function(e,t,r,n){for(var i=n?t:c0(t,r),s=e.length-1;s>=0;--s){var a,o=e[s];if(o==="[]"&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var l=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,u=parseInt(l,10);!r.parseArrays&&l===""?a={0:i}:!isNaN(u)&&o!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(a=[],a[u]=i):l!=="__proto__"&&(a[l]=i)}i=a}return i},Ib=function(t,r,n,i){if(t){var s=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(s),u=l?s.slice(0,l.index):s,d=[];if(u){if(!n.plainObjects&&ud.call(Object.prototype,u)&&!n.allowPrototypes)return;d.push(u)}for(var c=0;n.depth>0&&(l=o.exec(s))!==null&&c<n.depth;){if(c+=1,!n.plainObjects&&ud.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(l[1])}return l&&d.push("["+s.slice(l.index)+"]"),qb(d,r,n,i)}},Qb=function(t){if(!t)return Me;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?Me.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Me.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Me.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Me.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Me.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Me.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Me.comma,decoder:typeof t.decoder=="function"?t.decoder:Me.decoder,delimiter:typeof t.delimiter=="string"||Ei.isRegExp(t.delimiter)?t.delimiter:Me.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Me.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Me.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Me.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Me.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Me.strictNullHandling}},Ub=function(e,t){var r=Qb(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?Fb(e,r):e,i=r.plainObjects?Object.create(null):{},s=Object.keys(n),a=0;a<s.length;++a){var o=s[a],l=Ib(o,n[o],r,typeof e=="string");i=Ei.merge(i,l,r)}return r.allowSparse===!0?i:Ei.compact(i)},jb=kb,zb=Ub,Bb=Rf,N={formats:Bb,parse:zb,stringify:jb},Ai=class extends Error{constructor(){super()}static factory(t){switch(t){case qn.INVALID_REQUEST:return new Hb;case qn.AUTHENTICATION:return new Gb;case qn.API:return new Wb;case qn.PERMISSION:return new Kb;case qn.CONNECTION:return new Vb}}},qn=(e=>(e[e.INVALID_REQUEST=0]="INVALID_REQUEST",e[e.API=1]="API",e[e.AUTHENTICATION=2]="AUTHENTICATION",e[e.PERMISSION=3]="PERMISSION",e[e.CONNECTION=4]="CONNECTION",e))(qn||{}),Hb=class extends Ai{},Wb=class extends Ai{},Gb=class extends Ai{},Kb=class extends Ai{},Vb=class extends Ai{},Xb=class{constructor(){this.publishableApiKey=null}registerPublishableApiKey(t){this.publishableApiKey=t}getPublishableApiKey(){return this.publishableApiKey}},d0=new Xb,Yb={"/admin/auth":"POST","/admin/users/password-token":"POST","/admin/users/reset-password":"POST","/admin/invites/accept":"POST"},xm={maxRetries:0,baseUrl:"http://localhost:9000"},Jb=class{constructor(e){this.axiosClient=this.createClient({...xm,...e}),this.config={...xm,...e}}shouldRetryCondition(e,t,r){return t>=r?!1:!e.response||e.response.status===409||e.response.status>500&&e.response.status<=599}normalizeHeaders(e){return e&&typeof e=="object"?Object.keys(e).reduce((t,r)=>(t[this.normalizeHeader(r)]=e[r],t),{}):e}normalizeHeader(e){return e.split("-").map(t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()).join("-")}requiresAuthentication(e,t){return e.startsWith("/admin")&&Yb[e]!==t}setHeaders(e,t,r,n={}){let i={Accept:"application/json","Content-Type":"application/json"};this.config.apiKey&&this.requiresAuthentication(r,t)&&(i={...i,Authorization:`Bearer ${this.config.apiKey}`});let s=this.config.publishableApiKey||d0.getPublishableApiKey();return s&&(i["x-publishable-api-key"]=s),this.config.maxRetries>0&&t==="POST"&&(i["Idempotency-Key"]=Y$()),Object.assign({},i,this.normalizeHeaders(e),n)}createClient(e){let t=ko.create({baseURL:e.baseUrl});return z$(t),t.defaults.raxConfig={instance:t,retry:e.maxRetries,backoffType:"exponential",shouldRetry:r=>{let n=Xg(r);return n?this.shouldRetryCondition(r,n.currentRetryAttempt??1,n.retry??3):!1}},t}async request(e,t,r={},n={},i={}){let s={method:e,withCredentials:!0,url:t,json:!0,headers:this.setHeaders(n,e,t,i)};["POST","DELETE"].includes(e)&&(s.data=r);let{data:a,...o}=await this.axiosClient(s);return{...a,response:o}}},Zb=Jb,U=class{constructor(t){this.client=t}},ex=class extends U{addAddress(e,t={}){let r="/store/customers/me/addresses";return this.client.request("POST",r,e,{},t)}deleteAddress(e,t={}){let r=`/store/customers/me/addresses/${e}`;return this.client.request("DELETE",r,void 0,{},t)}updateAddress(e,t,r={}){let n=`/store/customers/me/addresses/${e}`;return this.client.request("POST",n,t,{},r)}},tx=ex,rx=class extends U{authenticate(e,t={}){let r="/store/auth";return this.client.request("POST",r,e,{},t)}deleteSession(e={}){let t="/store/auth";return this.client.request("DELETE",t,{},{},e)}getSession(e={}){let t="/store/auth";return this.client.request("GET",t,void 0,{},e)}exists(e,t={}){let r=`/store/auth/${e}`;return this.client.request("GET",r,void 0,{},t)}},nx=rx,ix=class extends U{create(e,t,r={}){let n=`/store/carts/${e}/line-items`;return this.client.request("POST",n,t,{},r)}update(e,t,r,n={}){let i=`/store/carts/${e}/line-items/${t}`;return this.client.request("POST",i,r,{},n)}delete(e,t,r={}){let n=`/store/carts/${e}/line-items/${t}`;return this.client.request("DELETE",n,void 0,{},r)}},sx=ix,ax=class extends U{constructor(){super(...arguments),this.lineItems=new sx(this.client)}addShippingMethod(e,t,r={}){let n=`/store/carts/${e}/shipping-methods`;return this.client.request("POST",n,t,{},r)}complete(e,t={}){let r=`/store/carts/${e}/complete`;return this.client.request("POST",r,void 0,{},t)}create(e,t={}){let r="/store/carts";return this.client.request("POST",r,e,{},t)}createPaymentSessions(e,t={}){let r=`/store/carts/${e}/payment-sessions`;return this.client.request("POST",r,void 0,{},t)}deleteDiscount(e,t,r={}){let n=`/store/carts/${e}/discounts/${t}`;return this.client.request("DELETE",n,void 0,{},r)}deletePaymentSession(e,t,r={}){let n=`/store/carts/${e}/payment-sessions/${t}`;return this.client.request("DELETE",n,void 0,{},r)}refreshPaymentSession(e,t,r={}){let n=`/store/carts/${e}/payment-sessions/${t}/refresh`;return this.client.request("POST",n,void 0,{},r)}retrieve(e,t={}){let r=`/store/carts/${e}`;return this.client.request("GET",r,void 0,{},t)}setPaymentSession(e,t,r={}){let n=`/store/carts/${e}/payment-session`;return this.client.request("POST",n,t,{},r)}update(e,t,r={}){let n=`/store/carts/${e}`;return this.client.request("POST",n,t,{},r)}updatePaymentSession(e,t,r,n={}){let i=`/store/carts/${e}/payment-sessions/${t}`;return this.client.request("POST",i,r,{},n)}},ox=ax,lx=class extends U{retrieve(e,t={}){let r=`/store/collections/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/store/collections";return e&&(r=`/store/collections?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},ux=lx,cx=class extends U{list(t={}){let r="/store/customers/me/payment-methods";return this.client.request("GET",r,void 0,{},t)}},f0=cx,dx=class extends U{constructor(){super(...arguments),this.paymentMethods=new f0(this.client),this.addresses=new tx(this.client)}create(t,r={}){let n="/store/customers";return this.client.request("POST",n,t,{},r)}retrieve(t={}){let r="/store/customers/me";return this.client.request("GET",r,void 0,{},t)}update(t,r={}){let n="/store/customers/me";return this.client.request("POST",n,t,{},r)}listOrders(t,r={}){let n="/store/customers/me/orders";if(t){let i=N.stringify(t);i&&(n+=`?${i}`)}return this.client.request("GET",n,void 0,{},r)}resetPassword(t,r={}){let n="/store/customers/password-reset";return this.client.request("POST",n,t,{},r)}generatePasswordToken(t,r={}){let n="/store/customers/password-token";return this.client.request("POST",n,t,{},r)}},fx=dx,hx=class extends U{retrieve(t,r={}){let n=`/store/gift-cards/${t}`;return this.client.request("GET",n,void 0,{},r)}},px=hx,mx=class extends U{retrieve(t,r={}){let n=`/store/order-edits/${t}`;return this.client.request("GET",n,void 0,{},r)}decline(t,r,n={}){let i=`/store/order-edits/${t}/decline`;return this.client.request("POST",i,r,{},n)}complete(t,r={}){let n=`/store/order-edits/${t}/complete`;return this.client.request("POST",n,void 0,{},r)}},vx=mx,yx=class extends U{retrieve(e,t={}){let r=`/store/orders/${e}`;return this.client.request("GET",r,void 0,{},t)}retrieveByCartId(e,t={}){let r=`/store/orders/cart/${e}`;return this.client.request("GET",r,void 0,{},t)}lookupOrder(e,t={}){let r="/store/orders?";return r=`/store/orders?${N.stringify(e)}`,this.client.request("GET",r,e,{},t)}requestCustomerOrders(e,t={}){let r="/store/orders/batch/customer/token";return this.client.request("POST",r,e,{},t)}confirmRequest(e,t={}){let r="/store/orders/customer/confirm";return this.client.request("POST",r,e,{},t)}},gx=yx,Sx=class extends U{retrieve(t,r,n={}){let i=`/store/payment-collections/${t}`;if(r){let s=N.stringify(r);i+=`?${s}`}return this.client.request("GET",i,void 0,{},n)}authorizePaymentSession(t,r,n={}){let i=`/store/payment-collections/${t}/sessions/${r}/authorize`;return this.client.request("POST",i,void 0,{},n)}authorizePaymentSessionsBatch(t,r,n={}){let i=`/store/payment-collections/${t}/sessions/batch/authorize`;return this.client.request("POST",i,r,{},n)}managePaymentSessionsBatch(t,r,n={}){let i=`/store/payment-collections/${t}/sessions/batch`;return this.client.request("POST",i,r,{},n)}managePaymentSession(t,r,n={}){let i=`/store/payment-collections/${t}/sessions`;return this.client.request("POST",i,r,{},n)}refreshPaymentSession(t,r,n={}){let i=`/store/payment-collections/${t}/sessions/${r}`;return this.client.request("POST",i,void 0,{},n)}},Ex=Sx,wx=class extends U{retrieve(t,r,n={}){let i=`/store/product-categories/${t}`;if(r){let s=N.stringify(r);i=`${i}?${s}`}return this.client.request("GET",i,void 0,{},n)}list(t,r={}){let n="/store/product-categories";if(t){let i=N.stringify(t);n=`${n}?${i}`}return this.client.request("GET",n,void 0,{},r)}},Cx=wx,Px=class extends U{list(e,t={}){let r="/store/product-tags";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}},$x=Px,Ox=class extends U{list(e,t={}){let r="/store/product-types";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}},bx=Ox,xx=class extends U{retrieve(e,t={}){let r=`/store/variants/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/store/variants";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}},Rx=xx,Tx=class extends U{constructor(){super(...arguments),this.variants=new Rx(this.client)}retrieve(e,t={}){let r=`/store/products/${e}`;return this.client.request("GET",r,void 0,{},t)}search(e,t={}){let r="/store/products/search";return this.client.request("POST",r,e,{},t)}list(e,t={}){let r="/store/products";return e&&(r=`/store/products?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},Mx=Tx,_x=class extends U{list(e={}){let t="/store/regions";return this.client.request("GET",t,void 0,{},e)}retrieve(e,t={}){let r=`/store/regions/${e}`;return this.client.request("GET",r,void 0,{},t)}},kx=_x,Dx=class extends U{retrieve(t,r={}){let n=`/store/return-reasons/${t}`;return this.client.request("GET",n,void 0,{},r)}list(t={}){let r="/store/return-reasons";return this.client.request("GET",r,void 0,{},t)}},Ax=Dx,Lx=class extends U{create(e,t={}){let r="/store/returns";return this.client.request("POST",r,e,{},t)}},Nx=Lx,Fx=class extends U{listCartOptions(e,t={}){let r=`/store/shipping-options/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/store/shipping-options";return e&&(r=`/store/shipping-options?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},qx=Fx,Ix=class extends U{create(e,t={}){let r="/store/swaps";return this.client.request("POST",r,e,{},t)}retrieveByCartId(e,t={}){let r=`/store/swaps/${e}`;return this.client.request("GET",r,void 0,{},t)}},Qx=Ix,Ux=class extends U{getSession(e={}){let t="/admin/auth";return this.client.request("GET",t,void 0,{},e)}deleteSession(e={}){let t="/admin/auth";return this.client.request("DELETE",t,void 0,{},e)}createSession(e,t={}){let r="/admin/auth";return this.client.request("POST",r,e,{},t)}},jx=Ux;function zx(e){let t=r=>{let n={};return Object.keys(r).reduce((i,s)=>(r[s]===null?i[s]="null":typeof r[s]=="object"?i[s]=t(r[s]):i[s]=r[s],i),n),n};return t(e)}var Bx=class extends U{create(t,r={}){let n="/admin/batch-jobs";return this.client.request("POST",n,t,{},r)}list(t,r={}){let n="/admin/batch-jobs";return t&&(n=`/admin/batch-jobs?${N.stringify(zx(t))}`),this.client.request("GET",n,void 0,{},r)}cancel(t,r={}){let n=`/admin/batch-jobs/${t}/cancel`;return this.client.request("POST",n,void 0,{},r)}confirm(t,r={}){let n=`/admin/batch-jobs/${t}/confirm`;return this.client.request("POST",n,void 0,{},r)}retrieve(t,r={}){let n=`/admin/batch-jobs/${t}`;return this.client.request("GET",n,void 0,{},r)}},Hx=Bx,Wx=class extends U{create(e,t={}){let r="/admin/collections";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/collections/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/collections/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/collections/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/collections";return e&&(r=`/admin/collections?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}addProducts(e,t,r={}){let n=`/admin/collections/${e}/products/batch`;return this.client.request("POST",n,t,{},r)}removeProducts(e,t,r={}){let n=`/admin/collections/${e}/products/batch`;return this.client.request("DELETE",n,t,{},r)}},Gx=Wx,Kx=class extends U{list(e,t={}){let r="/admin/currencies";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}update(e,t,r={}){let n=`/admin/currencies/${e}`;return this.client.request("POST",n,t,{},r)}},Vx=Kx,Xx=class extends U{create(e,t={}){let r="/admin/customer-groups";return this.client.request("POST",r,e,{},t)}retrieve(e,t,r={}){let n=`/admin/customer-groups/${e}`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}update(e,t,r={}){let n=`/admin/customer-groups/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/customer-groups/${e}`;return this.client.request("DELETE",r,void 0,{},t)}list(e,t={}){let r="/admin/customer-groups";return e&&(r=`/admin/customer-groups?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}addCustomers(e,t,r={}){let n=`/admin/customer-groups/${e}/customers/batch`;return this.client.request("POST",n,t,{},r)}removeCustomers(e,t,r={}){let n=`/admin/customer-groups/${e}/customers/batch`;return this.client.request("DELETE",n,t,{},r)}listCustomers(e,t,r={}){let n=`/admin/customer-groups/${e}/customers`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}},Yx=Xx,Jx=class extends U{create(e,t={}){let r="/admin/customers";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/customers/${e}`;return this.client.request("POST",n,t,{},r)}retrieve(e,t={}){let r=`/admin/customers/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/customers";return e&&(r=`/admin/customers?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},Zx=Jx,eR=class extends U{addRegion(e,t,r={}){let n=`/admin/discounts/${e}/regions/${t}`;return this.client.request("POST",n,void 0,{},r)}create(e,t={}){let r="/admin/discounts";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/discounts/${e}`;return this.client.request("POST",n,t,{},r)}createDynamicCode(e,t,r={}){let n=`/admin/discounts/${e}/dynamic-codes`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/discounts/${e}`;return this.client.request("DELETE",r,void 0,{},t)}deleteDynamicCode(e,t,r={}){let n=`/admin/discounts/${e}/dynamic-codes/${t}`;return this.client.request("DELETE",n,void 0,{},r)}retrieve(e,t={}){let r=`/admin/discounts/${e}`;return this.client.request("GET",r,void 0,{},t)}retrieveByCode(e,t={}){let r=`/admin/discounts/code/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/discounts";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}removeRegion(e,t,r={}){let n=`/admin/discounts/${e}/regions/${t}`;return this.client.request("DELETE",n,void 0,{},r)}createCondition(e,t,r={},n={}){let i=`/admin/discounts/${e}/conditions`;if(r){let s=N.stringify(r);i+=`?${s}`}return this.client.request("POST",i,t,{},n)}updateCondition(e,t,r,n={},i={}){let s=`/admin/discounts/${e}/conditions/${t}`;if(n){let a=N.stringify(n);s+=`?${a}`}return this.client.request("POST",s,r,{},i)}deleteCondition(e,t,r={}){let n=`/admin/discounts/${e}/conditions/${t}`;return this.client.request("DELETE",n,void 0,{},r)}getCondition(e,t,r,n={}){let i=`/admin/discounts/${e}/conditions/${t}`;if(r){let s=N.stringify(r);i+=`?${s}`}return this.client.request("GET",i,void 0,{},n)}addConditionResourceBatch(e,t,r,n,i={}){let s=`/admin/discounts/${e}/conditions/${t}/batch`;if(n){let a=N.stringify(n);s+=`?${a}`}return this.client.request("POST",s,r,{},i)}deleteConditionResourceBatch(e,t,r,n={}){let i=`/admin/discounts/${e}/conditions/${t}/batch`;return this.client.request("DELETE",i,r,{},n)}},tR=eR,rR=class extends U{create(e,t={}){let r="/admin/draft-orders";return this.client.request("POST",r,e,{},t)}addLineItem(e,t,r={}){let n=`/admin/draft-orders/${e}/line-items`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/draft-orders/${e}`;return this.client.request("DELETE",r,void 0,{},t)}removeLineItem(e,t,r={}){let n=`/admin/draft-orders/${e}/line-items/${t}`;return this.client.request("DELETE",n,void 0,{},r)}retrieve(e,t={}){let r=`/admin/draft-orders/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/draft-orders";return e&&(r=`/admin/draft-orders?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}markPaid(e,t={}){let r=`/admin/draft-orders/${e}/pay`;return this.client.request("POST",r,{},t)}update(e,t,r={}){let n=`/admin/draft-orders/${e}`;return this.client.request("POST",n,t,{},r)}updateLineItem(e,t,r,n={}){let i=`/admin/draft-orders/${e}/line-items/${t}`;return this.client.request("POST",i,r,{},n)}},nR=rR,iR=class extends U{create(e,t={}){let r="/admin/gift-cards";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/gift-cards/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/gift-cards/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/gift-cards/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/gift-cards/";return e&&(r=`/admin/gift-cards?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},sR=iR,aR=class extends U{retrieve(e,t,r={}){let n=`/admin/inventory-items/${e}`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}update(e,t,r,n={}){let i=`/admin/inventory-items/${e}`;if(r){let s=N.stringify(r);i+=`?${s}`}return this.client.request("POST",i,t,{},n)}delete(e,t={}){let r=`/admin/inventory-items/${e}`;return this.client.request("DELETE",r,void 0,{},t)}list(e,t={}){let r="/admin/inventory-items";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}updateLocationLevel(e,t,r,n,i={}){let s=`/admin/inventory-items/${e}/location-levels/${t}`;if(n){let a=N.stringify(n);s+=`?${a}`}return this.client.request("POST",s,r,{},i)}createLocationLevel(e,t,r,n={}){let i=`/admin/inventory-items/${e}/location-levels`;if(r){let s=N.stringify(r);i+=`?${s}`}return this.client.request("POST",i,t,{},n)}deleteLocationLevel(e,t,r,n={}){let i=`/admin/inventory-items/${e}/location-levels/${t}`;if(r){let s=N.stringify(r);i+=`?${s}`}return this.client.request("DELETE",i,void 0,{},n)}listLocationLevels(e,t,r={}){let n=`/admin/inventory-items/${e}`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}},oR=aR,lR=class extends U{accept(e,t={}){let r="/admin/invites/accept";return this.client.request("POST",r,e,{},t)}create(e,t={}){let r="/admin/invites";return this.client.request("POST",r,e,{},t)}delete(e,t={}){let r=`/admin/invites/${e}`;return this.client.request("DELETE",r,void 0,{},t)}list(e={}){let t="/admin/invites";return this.client.request("GET",t,void 0,{},e)}resend(e,t={}){let r=`/admin/invites/${e}`;return this.client.request("POST",r,void 0,{},t)}},uR=lR,cR=class extends U{create(e,t={}){let r="/admin/notes";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/notes/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/notes/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/notes/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/notes/";return e&&(r=`/admin/notes?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},dR=cR,fR=class extends U{list(e,t={}){let r="/admin/notifications";return e&&(r=`/admin/notifications?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}resend(e,t,r={}){let n=`/admin/notifications/${e}/resend`;return this.client.request("POST",n,t,{},r)}},hR=fR,pR=class extends U{retrieve(e,t,r={}){let n=`/admin/order-edits/${e}`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}list(e,t={}){let r="/admin/order-edits";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}create(e,t={}){let r="/admin/order-edits";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/order-edits/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/order-edits/${e}`;return this.client.request("DELETE",r,void 0,{},t)}addLineItem(e,t,r={}){let n=`/admin/order-edits/${e}/items`;return this.client.request("POST",n,t,{},r)}deleteItemChange(e,t,r={}){let n=`/admin/order-edits/${e}/changes/${t}`;return this.client.request("DELETE",n,void 0,{},r)}requestConfirmation(e,t={}){let r=`/admin/order-edits/${e}/request`;return this.client.request("POST",r,void 0,{},t)}cancel(e,t={}){let r=`/admin/order-edits/${e}/cancel`;return this.client.request("POST",r,void 0,{},t)}confirm(e,t={}){let r=`/admin/order-edits/${e}/confirm`;return this.client.request("POST",r,void 0,{},t)}updateLineItem(e,t,r,n={}){let i=`/admin/order-edits/${e}/items/${t}`;return this.client.request("POST",i,r,{},n)}removeLineItem(e,t,r={}){let n=`/admin/order-edits/${e}/items/${t}`;return this.client.request("DELETE",n,void 0,{},r)}},mR=pR,vR=class extends U{update(e,t,r={}){let n=`/admin/orders/${e}`;return this.client.request("POST",n,t,{},r)}retrieve(e,t,r={}){let n=`/admin/orders/${e}`;if(t){let i=N.stringify(t);n=`/admin/orders/${e}?${i}`}return this.client.request("GET",n,void 0,{},r)}list(e,t={}){let r="/admin/orders";return e&&(r=`/admin/orders?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}complete(e,t={}){let r=`/admin/orders/${e}/complete`;return this.client.request("POST",r,void 0,{},t)}capturePayment(e,t={}){let r=`/admin/orders/${e}/capture`;return this.client.request("POST",r,void 0,{},t)}refundPayment(e,t,r={}){let n=`/admin/orders/${e}/refund`;return this.client.request("POST",n,t,{},r)}createFulfillment(e,t,r={}){let n=`/admin/orders/${e}/fulfillment`;return this.client.request("POST",n,t,{},r)}cancelFulfillment(e,t,r={}){let n=`/admin/orders/${e}/fulfillments/${t}/cancel`;return this.client.request("POST",n,void 0,{},r)}cancelSwapFulfillment(e,t,r,n={}){let i=`/admin/orders/${e}/swaps/${t}/fulfillments/${r}/cancel`;return this.client.request("POST",i,void 0,{},n)}cancelClaimFulfillment(e,t,r,n={}){let i=`/admin/orders/${e}/claims/${t}/fulfillments/${r}/cancel`;return this.client.request("POST",i,void 0,{},n)}createShipment(e,t,r={}){let n=`/admin/orders/${e}/shipment`;return this.client.request("POST",n,t,{},r)}requestReturn(e,t,r={}){let n=`/admin/orders/${e}/return`;return this.client.request("POST",n,t,{},r)}cancel(e,t={}){let r=`/admin/orders/${e}/cancel`;return this.client.request("POST",r,void 0,{},t)}addShippingMethod(e,t,r={}){let n=`/admin/orders/${e}/shipping-methods`;return this.client.request("POST",n,t,{},r)}archive(e,t={}){let r=`/admin/orders/${e}/archive`;return this.client.request("POST",r,void 0,{},t)}createSwap(e,t,r={}){let n=`/admin/orders/${e}/swaps`;return this.client.request("POST",n,t,{},r)}cancelSwap(e,t,r={}){let n=`/admin/orders/${e}/swaps/${t}/cancel`;return this.client.request("POST",n,void 0,{},r)}fulfillSwap(e,t,r,n={}){let i=`/admin/orders/${e}/swaps/${t}/fulfillments`;return this.client.request("POST",i,r,{},n)}createSwapShipment(e,t,r,n={}){let i=`/admin/orders/${e}/swaps/${t}/shipments`;return this.client.request("POST",i,r,{},n)}processSwapPayment(e,t,r={}){let n=`/admin/orders/${e}/swaps/${t}/process-payment`;return this.client.request("POST",n,void 0,{},r)}createClaim(e,t,r={}){let n=`/admin/orders/${e}/claims`;return this.client.request("POST",n,t,{},r)}cancelClaim(e,t,r={}){let n=`/admin/orders/${e}/claims/${t}/cancel`;return this.client.request("POST",n,void 0,{},r)}updateClaim(e,t,r,n={}){let i=`/admin/orders/${e}/claims/${t}`;return this.client.request("POST",i,r,{},n)}fulfillClaim(e,t,r,n={}){let i=`/admin/orders/${e}/claims/${t}/fulfillments`;return this.client.request("POST",i,r,{},n)}createClaimShipment(e,t,r,n={}){let i=`/admin/orders/${e}/claims/${t}/shipments`;return this.client.request("POST",i,r,{},n)}},yR=vR,gR=class extends U{retrieve(e,t,r={}){let n=`/admin/payment-collections/${e}`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}update(e,t,r={}){let n=`/admin/payment-collections/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/payment-collections/${e}`;return this.client.request("DELETE",r,void 0,{},t)}markAsAuthorized(e,t={}){let r=`/admin/payment-collections/${e}/authorize`;return this.client.request("POST",r,void 0,{},t)}},SR=gR,ER=class extends U{retrieve(e,t,r={}){let n=`/admin/payments/${e}`;if(t){let i=N.stringify(t);n=`/admin/payments/${e}?${i}`}return this.client.request("GET",n,void 0,{},r)}capturePayment(e,t={}){let r=`/admin/payments/${e}/capture`;return this.client.request("POST",r,void 0,{},t)}refundPayment(e,t,r={}){let n=`/admin/payments/${e}/refund`;return this.client.request("POST",n,t,{},r)}},wR=ER,CR=class extends U{create(e,t={}){let r="/admin/price-lists";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/price-lists/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/price-lists/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/price-lists/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/price-lists/";return e&&(r=`/admin/price-lists?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}listProducts(e,t,r={}){let n=`/admin/price-lists/${e}/products`;if(t){let i=N.stringify(t);n=`/admin/price-lists/${e}/products?${i}`}return this.client.request("GET",n,void 0,{},r)}addPrices(e,t,r={}){let n=`/admin/price-lists/${e}/prices/batch`;return this.client.request("POST",n,t,{},r)}deletePrices(e,t,r={}){let n=`/admin/price-lists/${e}/prices/batch`;return this.client.request("DELETE",n,t,{},r)}deleteProductPrices(e,t,r={}){let n=`/admin/price-lists/${e}/products/${t}/prices`;return this.client.request("DELETE",n,void 0,{},r)}deleteVariantPrices(e,t,r={}){let n=`/admin/price-lists/${e}/variants/${t}/prices`;return this.client.request("DELETE",n,void 0,{},r)}},PR=CR,$R=class extends U{retrieve(e,t,r={}){let n=`/admin/product-categories/${e}`;if(t){let i=N.stringify(t);n=`${n}?${i}`}return this.client.request("GET",n,void 0,{},r)}create(e,t={}){let r="/admin/product-categories";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/product-categories/${e}`;return this.client.request("POST",n,t,{},r)}list(e,t={}){let r="/admin/product-categories";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}delete(e,t={}){let r=`/admin/product-categories/${e}`;return this.client.request("DELETE",r,void 0,{},t)}removeProducts(e,t,r={}){let n=`/admin/product-categories/${e}/products/batch`;return this.client.request("DELETE",n,t,{},r)}addProducts(e,t,r={}){let n=`/admin/product-categories/${e}/products/batch`;return this.client.request("POST",n,t,{},r)}},OR=$R,bR=class extends U{list(t){let r="/admin/product-tags";return t&&(r=`/admin/product-tags?${N.stringify(t)}`),this.client.request("GET",r)}},xR=bR,RR=class extends U{list(t,r={}){let n="/admin/product-types";if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}},TR=RR,MR=class extends U{create(e,t={}){let r="/admin/products/";return this.client.request("POST",r,e,{},t)}retrieve(e,t={}){let r=`/admin/products/${e}`;return this.client.request("GET",r,void 0,{},t)}update(e,t,r={}){let n=`/admin/products/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/products/${e}`;return this.client.request("DELETE",r,void 0,{},t)}list(e,t={}){let r="/admin/products";return e&&(r=`/admin/products?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}listTypes(e={}){let t="/admin/products/types";return this.client.request("GET",t,void 0,{},e)}listTags(e={}){let t="/admin/products/tag-usage";return this.client.request("GET",t,void 0,{},e)}setMetadata(e,t,r={}){let n=`/admin/products/${e}/metadata`;return this.client.request("POST",n,t,{},r)}createVariant(e,t,r={}){let n=`/admin/products/${e}/variants`;return this.client.request("POST",n,t,{},r)}updateVariant(e,t,r,n={}){let i=`/admin/products/${e}/variants/${t}`;return this.client.request("POST",i,r,{},n)}deleteVariant(e,t,r={}){let n=`/admin/products/${e}/variants/${t}`;return this.client.request("DELETE",n,void 0,{},r)}addOption(e,t,r={}){let n=`/admin/products/${e}/options`;return this.client.request("POST",n,t,{},r)}updateOption(e,t,r,n={}){let i=`/admin/products/${e}/options/${t}`;return this.client.request("POST",i,r,{},n)}deleteOption(e,t,r={}){let n=`/admin/products/${e}/options/${t}`;return this.client.request("DELETE",n,void 0,{},r)}},_R=MR,kR=class extends U{retrieve(e,t,r={}){let n=`/admin/publishable-api-keys/${e}`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}list(e,t={}){let r="/admin/publishable-api-keys";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}create(e,t={}){let r="/admin/publishable-api-keys";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/publishable-api-keys/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/publishable-api-keys/${e}`;return this.client.request("DELETE",r,void 0,{},t)}revoke(e,t={}){let r=`/admin/publishable-api-keys/${e}/revoke`;return this.client.request("POST",r,{},{},t)}addSalesChannelsBatch(e,t,r={}){let n=`/admin/publishable-api-keys/${e}/sales-channels/batch`;return this.client.request("POST",n,t,{},r)}deleteSalesChannelsBatch(e,t,r={}){let n=`/admin/publishable-api-keys/${e}/sales-channels/batch`;return this.client.request("DELETE",n,t,{},r)}listSalesChannels(e,t,r={}){let n=`/admin/publishable-api-keys/${e}/sales-channels`;if(t){let i=N.stringify(t);n+=`?${i}`}return this.client.request("GET",n,void 0,{},r)}},DR=kR,AR=class extends U{create(e,t={}){let r="/admin/regions";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/regions/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/regions/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/regions/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/regions";return e&&(r=`/admin/regions?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}addCountry(e,t,r={}){let n=`/admin/regions/${e}/countries`;return this.client.request("POST",n,t,{},r)}deleteCountry(e,t,r={}){let n=`/admin/regions/${e}/countries/${t}`;return this.client.request("DELETE",n,void 0,{},r)}addFulfillmentProvider(e,t,r={}){let n=`/admin/regions/${e}/fulfillment-providers`;return this.client.request("POST",n,t,{},r)}deleteFulfillmentProvider(e,t,r={}){let n=`/admin/regions/${e}/fulfillment-providers/${t}`;return this.client.request("DELETE",n,void 0,{},r)}retrieveFulfillmentOptions(e,t={}){let r=`/admin/regions/${e}/fulfillment-options`;return this.client.request("GET",r,void 0,{},t)}addPaymentProvider(e,t,r={}){let n=`/admin/regions/${e}/payment-providers`;return this.client.request("POST",n,t,{},r)}deletePaymentProvider(e,t,r={}){let n=`/admin/regions/${e}/payment-providers/${t}`;return this.client.request("DELETE",n,void 0,{},r)}},LR=AR,NR=class extends U{retrieve(e,t={}){let r=`/admin/reservations/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/reservations";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}create(e,t={}){let r="/admin/reservations";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/reservations/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/reservations/${e}`;return this.client.request("DELETE",r,void 0,{},t)}},FR=NR,qR=class extends U{create(e,t={}){let r="/admin/return-reasons";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/return-reasons/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/return-reasons/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/return-reasons/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e={}){let t="/admin/return-reasons";return this.client.request("GET",t,void 0,{},e)}},IR=qR,QR=class extends U{cancel(e,t={}){let r=`/admin/returns/${e}/cancel`;return this.client.request("POST",r,void 0,{},t)}receive(e,t,r={}){let n=`/admin/returns/${e}/receive`;return this.client.request("POST",n,t,{},r)}list(e,t={}){let r="/admin/returns/";return e&&(r=`/admin/returns?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},UR=QR,jR=class extends U{retrieve(e,t={}){let r=`/admin/sales-channels/${e}`;return this.client.request("GET",r,void 0,{},t)}create(e,t={}){let r="/admin/sales-channels";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/sales-channels/${e}`;return this.client.request("POST",n,t,{},r)}list(e,t={}){let r="/admin/sales-channels";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}delete(e,t={}){let r=`/admin/sales-channels/${e}`;return this.client.request("DELETE",r,void 0,{},t)}removeProducts(e,t,r={}){let n=`/admin/sales-channels/${e}/products/batch`;return this.client.request("DELETE",n,t,{},r)}addProducts(e,t,r={}){let n=`/admin/sales-channels/${e}/products/batch`;return this.client.request("POST",n,t,{},r)}addLocation(e,t,r={}){let n=`/admin/sales-channels/${e}/stock-locations`;return this.client.request("POST",n,t,{},r)}removeLocation(e,t,r={}){let n=`/admin/sales-channels/${e}/stock-locations`;return this.client.request("DELETE",n,t,{},r)}},zR=jR,BR=class extends U{create(e,t={}){let r="/admin/shipping-options";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/shipping-options/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/shipping-options/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e,t={}){let r=`/admin/shipping-options/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/shipping-options";return e&&(r=`/admin/shipping-options?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},HR=BR,WR=class extends U{create(t,r={}){let n="/admin/shipping-profiles/";return this.client.request("POST",n,t,{},r)}update(t,r,n={}){let i=`/admin/shipping-profiles/${t}`;return this.client.request("POST",i,r,{},n)}delete(t,r={}){let n=`/admin/shipping-profiles/${t}`;return this.client.request("DELETE",n,void 0,{},r)}retrieve(t,r={}){let n=`/admin/shipping-profiles/${t}`;return this.client.request("GET",n,void 0,{},r)}list(t={}){let r="/admin/shipping-profiles/";return this.client.request("GET",r,void 0,{},t)}},GR=WR,KR=class extends U{create(e,t={}){let r="/admin/stock-locations";return this.client.request("POST",r,e,{},t)}retrieve(e,t={}){let r=`/admin/stock-locations/${e}`;return this.client.request("GET",r,void 0,{},t)}update(e,t,r={}){let n=`/admin/stock-locations/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/stock-locations/${e}`;return this.client.request("DELETE",r,void 0,{},t)}list(e,t={}){let r="/admin/stock-locations";if(e){let n=N.stringify(e);r+=`?${n}`}return this.client.request("GET",r,void 0,{},t)}},VR=KR,XR=class extends U{update(e,t={}){let r="/admin/store/";return this.client.request("POST",r,e,{},t)}addCurrency(e,t={}){let r=`/admin/store/${e}`;return this.client.request("POST",r,void 0,{},t)}deleteCurrency(e,t={}){let r=`/admin/store/currencies/${e}`;return this.client.request("DELETE",r,void 0,{},t)}retrieve(e={}){let t="/admin/store/";return this.client.request("GET",t,void 0,{},e)}listPaymentProviders(e={}){let t="/admin/store/payment-providers";return this.client.request("GET",t,void 0,{},e)}listTaxProviders(e={}){let t="/admin/store/tax-providers";return this.client.request("GET",t,void 0,{},e)}},YR=XR,JR=class extends U{retrieve(e,t={}){let r=`/admin/swaps/${e}`;return this.client.request("GET",r,void 0,{},t)}list(e,t={}){let r="/admin/swaps/";return e&&(r=`/admin/swaps?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}},ZR=JR,eT=class extends U{retrieve(e,t,r={}){let n=`/admin/tax-rates/${e}`;if(t){let i=N.stringify(t);n=`/admin/tax-rates/${e}?${i}`}return this.client.request("GET",n,void 0,{},r)}list(e,t={}){let r="/admin/tax-rates";return e&&(r=`/admin/tax-rates?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}create(e,t,r={}){let n="/admin/tax-rates";return t&&(n=`/admin/tax-rates?${N.stringify(t)}`),this.client.request("POST",n,e,{},r)}update(e,t,r,n={}){let i=`/admin/tax-rates/${e}`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}?${s}`}return this.client.request("POST",i,t,{},n)}addProducts(e,t,r,n={}){let i=`/admin/tax-rates/${e}/products/batch`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}/products/batch?${s}`}return this.client.request("POST",i,t,{},n)}addProductTypes(e,t,r,n={}){let i=`/admin/tax-rates/${e}/product-types/batch`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}/product-types/batch?${s}`}return this.client.request("POST",i,t,{},n)}addShippingOptions(e,t,r,n={}){let i=`/admin/tax-rates/${e}/shipping-options/batch`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}/shipping-options/batch?${s}`}return this.client.request("POST",i,t,{},n)}removeProducts(e,t,r,n={}){let i=`/admin/tax-rates/${e}/products/batch`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}/products/batch?${s}`}return this.client.request("DELETE",i,t,{},n)}removeProductTypes(e,t,r,n={}){let i=`/admin/tax-rates/${e}/product-types/batch`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}/product-types/batch?${s}`}return this.client.request("DELETE",i,t,{},n)}removeShippingOptions(e,t,r,n={}){let i=`/admin/tax-rates/${e}/shipping-options/batch`;if(r){let s=N.stringify(r);i=`/admin/tax-rates/${e}/shipping-options/batch?${s}`}return this.client.request("DELETE",i,t,{},n)}delete(e,t={}){let r=`/admin/tax-rates/${e}`;return this.client.request("DELETE",r,void 0,{},t)}},tT=eT,rT=class extends U{constructor(){super(...arguments),this.headers={"Content-Type":"multipart/form-data"}}create(t){let r="/admin/uploads",n=this._createPayload(t);return this.client.request("POST",r,n,{},this.headers)}createProtected(t){let r="/admin/uploads/protected",n=this._createPayload(t);return this.client.request("POST",r,n,{},this.headers)}delete(t,r={}){let n="/admin/uploads";return this.client.request("DELETE",n,t,{},r)}getPresignedDownloadUrl(t,r={}){let n="/admin/uploads/download-url";return this.client.request("POST",n,t,{},r)}_createPayload(t){let r=new FormData;return Array.isArray(t)?t.forEach(n=>r.append("files",n)):r.append("files",t),r}},nT=rT,iT=class extends U{sendResetPasswordToken(e,t={}){let r="/admin/users/password-token";return this.client.request("POST",r,e,{},t)}resetPassword(e,t={}){let r="admin/users/reset-password";return this.client.request("POST",r,e,{},t)}retrieve(e,t={}){let r=`/admin/users/${e}`;return this.client.request("GET",r,void 0,{},t)}create(e,t={}){let r="/admin/users";return this.client.request("POST",r,e,{},t)}update(e,t,r={}){let n=`/admin/users/${e}`;return this.client.request("POST",n,t,{},r)}delete(e,t={}){let r=`/admin/users/${e}`;return this.client.request("DELETE",r,void 0,{},t)}list(e={}){let t="/admin/users";return this.client.request("GET",t,void 0,{},e)}},sT=iT,aT=class extends U{list(e,t={}){let r="/admin/variants";return e&&(r=`/admin/variants?${N.stringify(e)}`),this.client.request("GET",r,void 0,{},t)}retrieve(e,t,r={}){let n=`/admin/variants/${e}`;return t&&(n=`/admin/variants?${N.stringify(t)}`),this.client.request("GET",n,void 0,{},r)}getInventory(e,t={}){let r=`/admin/variants/${e}/inventory`;return this.client.request("GET",r,void 0,{},t)}},oT=aT,lT=class extends U{constructor(){super(...arguments),this.auth=new jx(this.client),this.batchJobs=new Hx(this.client),this.customers=new Zx(this.client),this.customerGroups=new Yx(this.client),this.discounts=new tR(this.client),this.currencies=new Vx(this.client),this.collections=new Gx(this.client),this.draftOrders=new nR(this.client),this.giftCards=new sR(this.client),this.invites=new uR(this.client),this.inventoryItems=new oR(this.client),this.notes=new dR(this.client),this.priceLists=new PR(this.client),this.products=new _R(this.client),this.productTags=new xR(this.client),this.productTypes=new TR(this.client),this.users=new sT(this.client),this.returns=new UR(this.client),this.orders=new yR(this.client),this.orderEdits=new mR(this.client),this.publishableApiKeys=new DR(this.client),this.returnReasons=new IR(this.client),this.variants=new oT(this.client),this.salesChannels=new zR(this.client),this.swaps=new ZR(this.client),this.shippingProfiles=new GR(this.client),this.stockLocations=new VR(this.client),this.store=new YR(this.client),this.shippingOptions=new HR(this.client),this.regions=new LR(this.client),this.reservations=new FR(this.client),this.notifications=new hR(this.client),this.taxRates=new tT(this.client),this.uploads=new nT(this.client),this.paymentCollections=new SR(this.client),this.payments=new wR(this.client),this.productCategories=new OR(this.client)}},uT=class{constructor(e){this.client=new Zb(e),this.admin=new lT(this.client),this.auth=new nx(this.client),this.carts=new ox(this.client),this.customers=new fx(this.client),this.errors=new Ai,this.orders=new gx(this.client),this.orderEdits=new vx(this.client),this.products=new Mx(this.client),this.productTypes=new bx(this.client),this.regions=new kx(this.client),this.returnReasons=new Ax(this.client),this.returns=new Nx(this.client),this.shippingOptions=new qx(this.client),this.swaps=new Qx(this.client),this.collections=new ux(this.client),this.giftCards=new px(this.client),this.paymentMethods=new f0(this.client),this.paymentCollections=new Ex(this.client),this.productTags=new $x(this.client),this.productCategories=new Cx(this.client)}setPublishableKey(e){d0.registerPublishableApiKey(e)}},cT=uT,p={},Z={},mr={},Pn={},vr={};Object.defineProperty(vr,"__esModule",{value:!0});class dT{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(r=>r!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}vr.Subscribable=dT;var K={};Object.defineProperty(K,"__esModule",{value:!0});const fT=typeof window>"u"||"Deno"in window;function hT(){}function pT(e,t){return typeof e=="function"?e(t):e}function mT(e){return typeof e=="number"&&e>=0&&e!==1/0}function vT(e,t){return e.filter(r=>t.indexOf(r)===-1)}function yT(e,t,r){const n=e.slice(0);return n[t]=r,n}function gT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ST(e,t,r){return $n(e)?typeof t=="function"?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function ET(e,t,r){return $n(e)?typeof t=="function"?{...r,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function wT(e,t,r){return $n(e)?[{...t,queryKey:e},r]:[e||{},t]}function CT(e,t,r){return $n(e)?[{...t,mutationKey:e},r]:[e||{},t]}function PT(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:s,queryKey:a,stale:o}=e;if($n(a)){if(n){if(t.queryHash!==h0(a,t.options))return!1}else if(!Tf(t.queryKey,a))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||typeof i<"u"&&i!==t.state.fetchStatus||s&&!s(t))}function $T(e,t){const{exact:r,fetching:n,predicate:i,mutationKey:s}=e;if($n(s)){if(!t.options.mutationKey)return!1;if(r){if(Fo(t.options.mutationKey)!==Fo(s))return!1}else if(!Tf(t.options.mutationKey,s))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||i&&!i(t))}function h0(e,t){return((t==null?void 0:t.queryKeyHashFn)||Fo)(e)}function Fo(e){return JSON.stringify(e,(t,r)=>qo(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Tf(e,t){return Mf(e,t)}function Mf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Mf(e[r],t[r])):!1}function _f(e,t){if(e===t)return e;const r=cd(e)&&cd(t);if(r||qo(e)&&qo(t)){const n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),s=i.length,a=r?[]:{};let o=0;for(let l=0;l<s;l++){const u=r?l:i[l];a[u]=_f(e[u],t[u]),a[u]===e[u]&&o++}return n===s&&o===n?e:a}return t}function OT(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function cd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function qo(e){if(!Rm(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!Rm(r)||!r.hasOwnProperty("isPrototypeOf"))}function Rm(e){return Object.prototype.toString.call(e)==="[object Object]"}function $n(e){return Array.isArray(e)}function bT(e){return e instanceof Error}function p0(e){return new Promise(t=>{setTimeout(t,e)})}function xT(e){p0(0).then(e)}function RT(){if(typeof AbortController=="function")return new AbortController}function TT(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?_f(e,t):t}K.difference=vT;K.functionalUpdate=pT;K.getAbortController=RT;K.hashQueryKey=Fo;K.hashQueryKeyByOptions=h0;K.isError=bT;K.isPlainArray=cd;K.isPlainObject=qo;K.isQueryKey=$n;K.isServer=fT;K.isValidTimeout=mT;K.matchMutation=$T;K.matchQuery=PT;K.noop=hT;K.parseFilterArgs=wT;K.parseMutationArgs=ET;K.parseMutationFilterArgs=CT;K.parseQueryArgs=ST;K.partialDeepEqual=Mf;K.partialMatchKey=Tf;K.replaceAt=yT;K.replaceData=TT;K.replaceEqualDeep=_f;K.scheduleMicrotask=xT;K.shallowEqualObjects=OT;K.sleep=p0;K.timeUntilStale=gT;Object.defineProperty(Pn,"__esModule",{value:!0});var MT=vr,_T=K;class m0 extends MT.Subscribable{constructor(){super(),this.setup=t=>{if(!_T.isServer&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const kT=new m0;Pn.FocusManager=m0;Pn.focusManager=kT;var Li={};Object.defineProperty(Li,"__esModule",{value:!0});var DT=vr,AT=K;class v0 extends DT.Subscribable{constructor(){super(),this.setup=t=>{if(!AT.isServer&&window.addEventListener){const r=()=>t();return window.addEventListener("online",r,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const LT=new v0;Li.OnlineManager=v0;Li.onlineManager=LT;Object.defineProperty(mr,"__esModule",{value:!0});var NT=Pn,y0=Li,FT=K;function qT(e){return Math.min(1e3*2**e,3e4)}function g0(e){return(e??"online")==="online"?y0.onlineManager.isOnline():!0}class kf{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function IT(e){return e instanceof kf}function QT(e){let t=!1,r=0,n=!1,i,s,a;const o=new Promise((P,m)=>{s=P,a=m}),l=P=>{n||(S(new kf(P)),e.abort==null||e.abort())},u=()=>{t=!0},d=()=>{t=!1},c=()=>!NT.focusManager.isFocused()||e.networkMode!=="always"&&!y0.onlineManager.isOnline(),h=P=>{n||(n=!0,e.onSuccess==null||e.onSuccess(P),i==null||i(),s(P))},S=P=>{n||(n=!0,e.onError==null||e.onError(P),i==null||i(),a(P))},E=()=>new Promise(P=>{i=m=>{if(n||!c())return P(m)},e.onPause==null||e.onPause()}).then(()=>{i=void 0,n||e.onContinue==null||e.onContinue()}),f=()=>{if(n)return;let P;try{P=e.fn()}catch(m){P=Promise.reject(m)}Promise.resolve(P).then(h).catch(m=>{var v,y;if(n)return;const w=(v=e.retry)!=null?v:3,$=(y=e.retryDelay)!=null?y:qT,R=typeof $=="function"?$(r,m):$,x=w===!0||typeof w=="number"&&r<w||typeof w=="function"&&w(r,m);if(t||!x){S(m);return}r++,e.onFail==null||e.onFail(r,m),FT.sleep(R).then(()=>{if(c())return E()}).then(()=>{t?S(m):f()})})};return g0(e.networkMode)?f():E().then(f),{promise:o,cancel:l,continue:()=>{i==null||i()},cancelRetry:u,continueRetry:d}}mr.CancelledError=kf;mr.canFetch=g0;mr.createRetryer=QT;mr.isCancelledError=IT;var ml={},Df={};const UT=console,jT=Object.freeze(Object.defineProperty({__proto__:null,defaultLogger:UT},Symbol.toStringTag,{value:"Module"})),Af=yd(jT);var $t={};Object.defineProperty($t,"__esModule",{value:!0});var Tm=K;function S0(){let e=[],t=0,r=d=>{d()},n=d=>{d()};const i=d=>{let c;t++;try{c=d()}finally{t--,t||o()}return c},s=d=>{t?e.push(d):Tm.scheduleMicrotask(()=>{r(d)})},a=d=>(...c)=>{s(()=>{d(...c)})},o=()=>{const d=e;e=[],d.length&&Tm.scheduleMicrotask(()=>{n(()=>{d.forEach(c=>{r(c)})})})};return{batch:i,batchCalls:a,schedule:s,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{n=d}}}const zT=S0();$t.createNotifyManager=S0;$t.notifyManager=zT;var vl={};Object.defineProperty(vl,"__esModule",{value:!0});var Mm=K;class BT{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mm.isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Mm.isServer?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}vl.Removable=BT;Object.defineProperty(Df,"__esModule",{value:!0});var ts=K,HT=Af,WT=$t,rs=mr,GT=vl;class KT extends GT.Removable{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||HT.defaultLogger,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||VT(this.options),this.state=this.initialState}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=ts.replaceData(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(ts.noop).catch(ts.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!ts.timeUntilStale(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var s;return(s=this.retryer)==null||s.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(E=>E.options.queryFn);S&&this.setOptions(S.options)}Array.isArray(this.options.queryKey);const a=ts.getAbortController(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(o);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn"),d={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(d),(n=this.options.behavior)==null||n.onFetch(d),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=d.fetchOptions)==null?void 0:i.meta)){var c;this.dispatch({type:"fetch",meta:(c=d.fetchOptions)==null?void 0:c.meta})}const h=S=>{if(rs.isCancelledError(S)&&S.silent||this.dispatch({type:"error",error:S}),!rs.isCancelledError(S)){var E,f;(E=(f=this.cache.config).onError)==null||E.call(f,S,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=rs.createRetryer({fn:d.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:S=>{var E,f;if(typeof S>"u"){h(new Error("undefined"));return}this.setData(S),(E=(f=this.cache.config).onSuccess)==null||E.call(f,S,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(S,E)=>{this.dispatch({type:"failed",failureCount:S,error:E})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var i,s;switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:rs.canFetch(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(s=t.dataUpdatedAt)!=null?s:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return rs.isCancelledError(a)&&a.revert&&this.revertState?{...this.revertState}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),WT.notifyManager.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function VT(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}Df.Query=KT;Object.defineProperty(ml,"__esModule",{value:!0});var ns=K,XT=Df,La=$t,YT=vr;class JT extends YT.Subscribable{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var i;const s=r.queryKey,a=(i=r.queryHash)!=null?i:ns.hashQueryKeyByOptions(s,r);let o=this.get(a);return o||(o=new XT.Query({cache:this,logger:t.getLogger(),queryKey:s,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){La.notifyManager.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=ns.parseFilterArgs(t,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(i=>ns.matchQuery(n,i))}findAll(t,r){const[n]=ns.parseFilterArgs(t,r);return Object.keys(n).length>0?this.queries.filter(i=>ns.matchQuery(n,i)):this.queries}notify(t){La.notifyManager.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){La.notifyManager.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){La.notifyManager.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}ml.QueryCache=JT;var Lf={},yl={},ta={};Object.defineProperty(ta,"__esModule",{value:!0});var ZT=Af,eM=$t,tM=vl,_m=mr;class rM extends tM.Removable{constructor(t){super(),this.options={...t.defaultOptions,...t.options},this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||ZT.defaultLogger,this.observers=[],this.state=t.state||E0(),this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){const t=()=>{var y;return this.retryer=_m.createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(w,$)=>{this.dispatch({type:"failed",failureCount:w,error:$})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(y=this.options.retry)!=null?y:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,i,s,a,o,l;if(!r){var u,d,c,h;this.dispatch({type:"loading",variables:this.options.variables}),await((u=(d=this.mutationCache.config).onMutate)==null?void 0:u.call(d,this.state.variables,this));const w=await((c=(h=this.options).onMutate)==null?void 0:c.call(h,this.state.variables));w!==this.state.context&&this.dispatch({type:"loading",context:w,variables:this.state.variables})}const y=await t();return await((n=(i=this.mutationCache.config).onSuccess)==null?void 0:n.call(i,y,this.state.variables,this.state.context,this)),await((s=(a=this.options).onSuccess)==null?void 0:s.call(a,y,this.state.variables,this.state.context)),await((o=(l=this.options).onSettled)==null?void 0:o.call(l,y,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:y}),y}catch(y){try{var S,E,f,P,m,v;throw await((S=(E=this.mutationCache.config).onError)==null?void 0:S.call(E,y,this.state.variables,this.state.context,this)),await((f=(P=this.options).onError)==null?void 0:f.call(P,y,this.state.variables,this.state.context)),await((m=(v=this.options).onSettled)==null?void 0:m.call(v,void 0,y,this.state.variables,this.state.context)),y}finally{this.dispatch({type:"error",error:y})}}}dispatch(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!_m.canFetch(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...n,...t.state}}};this.state=r(this.state),eM.notifyManager.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function E0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}ta.Mutation=rM;ta.getDefaultState=E0;Object.defineProperty(yl,"__esModule",{value:!0});var Qu=$t,nM=ta,Uu=K,iM=vr;class sM extends iM.Subscribable{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const i=new nM.Mutation({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){Qu.notifyManager.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(r=>Uu.matchMutation(t,r))}findAll(t){return this.mutations.filter(r=>Uu.matchMutation(t,r))}notify(t){Qu.notifyManager.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.mutations.filter(r=>r.state.isPaused);return Qu.notifyManager.batch(()=>t.reduce((r,n)=>r.then(()=>n.continue().catch(Uu.noop)),Promise.resolve()))}}yl.MutationCache=sM;var Br={};Object.defineProperty(Br,"__esModule",{value:!0});function aM(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,s,a;const o=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,l=(n=e.fetchOptions)==null||(i=n.meta)==null?void 0:i.fetchMore,u=l==null?void 0:l.pageParam,d=(l==null?void 0:l.direction)==="forward",c=(l==null?void 0:l.direction)==="backward",h=((s=e.state.data)==null?void 0:s.pages)||[],S=((a=e.state.data)==null?void 0:a.pageParams)||[];let E=S,f=!1;const P=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var x;if((x=e.signal)!=null&&x.aborted)f=!0;else{var b;(b=e.signal)==null||b.addEventListener("abort",()=>{f=!0})}return e.signal}})},m=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),v=(R,x,b,I)=>(E=I?[x,...E]:[...E,x],I?[b,...R]:[...R,b]),y=(R,x,b,I)=>{if(f)return Promise.reject("Cancelled");if(typeof b>"u"&&!x&&R.length)return Promise.resolve(R);const A={queryKey:e.queryKey,pageParam:b,meta:e.options.meta};P(A);const X=m(A);return Promise.resolve(X).then(oe=>v(R,b,oe,I))};let w;if(!h.length)w=y([]);else if(d){const R=typeof u<"u",x=R?u:Io(e.options,h);w=y(h,R,x)}else if(c){const R=typeof u<"u",x=R?u:Nf(e.options,h);w=y(h,R,x,!0)}else{E=[];const R=typeof e.options.getNextPageParam>"u";w=(o&&h[0]?o(h[0],0,h):!0)?y([],R,S[0]):Promise.resolve(v([],S[0],h[0]));for(let b=1;b<h.length;b++)w=w.then(I=>{if(o&&h[b]?o(h[b],b,h):!0){const X=R?S[b]:Io(e.options,I);return y(I,R,X)}return Promise.resolve(v(I,S[b],h[b]))})}return w.then(R=>({pages:R,pageParams:E}))}}}}function Io(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Nf(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function oM(e,t){if(e.getNextPageParam&&Array.isArray(t)){const r=Io(e,t);return typeof r<"u"&&r!==null&&r!==!1}}function lM(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const r=Nf(e,t);return typeof r<"u"&&r!==null&&r!==!1}}Br.getNextPageParam=Io;Br.getPreviousPageParam=Nf;Br.hasNextPage=oM;Br.hasPreviousPage=lM;Br.infiniteQueryBehavior=aM;Object.defineProperty(Lf,"__esModule",{value:!0});var le=K,uM=ml,cM=yl,km=Pn,Dm=Li,Ln=$t,dM=Br,fM=Af;class hM{constructor(t={}){this.queryCache=t.queryCache||new uM.QueryCache,this.mutationCache=t.mutationCache||new cM.MutationCache,this.logger=t.logger||fM.defaultLogger,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=km.focusManager.subscribe(()=>{km.focusManager.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Dm.onlineManager.subscribe(()=>{Dm.onlineManager.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=le.parseFilterArgs(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const i=le.parseQueryArgs(t,r,n),s=this.getQueryData(i.queryKey);return s?Promise.resolve(s):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const i=n.data;return[r,i]})}setQueryData(t,r,n){const i=this.queryCache.find(t),s=i==null?void 0:i.state.data,a=le.functionalUpdate(r,s);if(typeof a>"u")return;const o=le.parseQueryArgs(t),l=this.defaultQueryOptions(o);return this.queryCache.build(this,l).setData(a,{...n,manual:!0})}setQueriesData(t,r,n){return Ln.notifyManager.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=le.parseFilterArgs(t,r),i=this.queryCache;Ln.notifyManager.batch(()=>{i.findAll(n).forEach(s=>{i.remove(s)})})}resetQueries(t,r,n){const[i,s]=le.parseFilterArgs(t,r,n),a=this.queryCache,o={type:"active",...i};return Ln.notifyManager.batch(()=>(a.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(o,s)))}cancelQueries(t,r,n){const[i,s={}]=le.parseFilterArgs(t,r,n);typeof s.revert>"u"&&(s.revert=!0);const a=Ln.notifyManager.batch(()=>this.queryCache.findAll(i).map(o=>o.cancel(s)));return Promise.all(a).then(le.noop).catch(le.noop)}invalidateQueries(t,r,n){const[i,s]=le.parseFilterArgs(t,r,n);return Ln.notifyManager.batch(()=>{var a,o;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(a=(o=i.refetchType)!=null?o:i.type)!=null?a:"active"};return this.refetchQueries(l,s)})}refetchQueries(t,r,n){const[i,s]=le.parseFilterArgs(t,r,n),a=Ln.notifyManager.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...s,cancelRefetch:(u=s==null?void 0:s.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let o=Promise.all(a).then(le.noop);return s!=null&&s.throwOnError||(o=o.catch(le.noop)),o}fetchQuery(t,r,n){const i=le.parseQueryArgs(t,r,n),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);const a=this.queryCache.build(this,s);return a.isStaleByTime(s.staleTime)?a.fetch(s):Promise.resolve(a.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(le.noop).catch(le.noop)}fetchInfiniteQuery(t,r,n){const i=le.parseQueryArgs(t,r,n);return i.behavior=dM.infiniteQueryBehavior(),this.fetchQuery(i)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(le.noop).catch(le.noop)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(i=>le.hashQueryKey(t)===le.hashQueryKey(i.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>le.partialMatchKey(t,n.queryKey));return r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(i=>le.hashQueryKey(t)===le.hashQueryKey(i.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>le.partialMatchKey(t,n.mutationKey));return r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!r.queryHash&&r.queryKey&&(r.queryHash=le.hashQueryKeyByOptions(r.queryKey,r)),typeof r.refetchOnReconnect>"u"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary>"u"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}Lf.QueryClient=hM;var ra={};Object.defineProperty(ra,"__esModule",{value:!0});var Ut=K,pM=$t,mM=Pn,vM=vr,Am=mr;class yM extends vM.Subscribable{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.length===1&&(this.currentQuery.addObserver(this),Lm(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return dd(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dd(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Ut.shallowEqualObjects(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const s=this.hasListeners();s&&Nm(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(r),s&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();s&&(this.currentQuery!==i||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t);return this.createResult(r,t)}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...r}={}){return this.fetch({...r,meta:{refetchPage:t}})}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch({...t,cancelRefetch:(r=t.cancelRefetch)!=null?r:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Ut.noop)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Ut.isServer||this.currentResult.isStale||!Ut.isValidTimeout(this.options.staleTime))return;const r=Ut.timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Ut.isServer||this.options.enabled===!1||!Ut.isValidTimeout(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||mM.focusManager.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,i=this.options,s=this.currentResult,a=this.currentResultState,o=this.currentResultOptions,l=t!==n,u=l?t.state:this.currentQueryInitialState,d=l?this.currentResult:this.previousQueryResult,{state:c}=t;let{dataUpdatedAt:h,error:S,errorUpdatedAt:E,fetchStatus:f,status:P}=c,m=!1,v=!1,y;if(r._optimisticResults){const b=this.hasListeners(),I=!b&&Lm(t,r),A=b&&Nm(t,n,r,i);(I||A)&&(f=Am.canFetch(t.options.networkMode)?"fetching":"paused",h||(P="loading")),r._optimisticResults==="isRestoring"&&(f="idle")}if(r.keepPreviousData&&!c.dataUpdatedAt&&d!=null&&d.isSuccess&&P!=="error")y=d.data,h=d.dataUpdatedAt,P=d.status,m=!0;else if(r.select&&typeof c.data<"u")if(s&&c.data===(a==null?void 0:a.data)&&r.select===this.selectFn)y=this.selectResult;else try{this.selectFn=r.select,y=r.select(c.data),y=Ut.replaceData(s==null?void 0:s.data,y,r),this.selectResult=y,this.selectError=null}catch(b){this.selectError=b}else y=c.data;if(typeof r.placeholderData<"u"&&typeof y>"u"&&P==="loading"){let b;if(s!=null&&s.isPlaceholderData&&r.placeholderData===(o==null?void 0:o.placeholderData))b=s.data;else if(b=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof b<"u")try{b=r.select(b),this.selectError=null}catch(I){this.selectError=I}typeof b<"u"&&(P="success",y=Ut.replaceData(s==null?void 0:s.data,b,r),v=!0)}this.selectError&&(S=this.selectError,y=this.selectResult,E=Date.now(),P="error");const w=f==="fetching",$=P==="loading",R=P==="error";return{status:P,fetchStatus:f,isLoading:$,isSuccess:P==="success",isError:R,isInitialLoading:$&&w,data:y,dataUpdatedAt:h,error:S,errorUpdatedAt:E,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!$,isLoadingError:R&&c.dataUpdatedAt===0,isPaused:f==="paused",isPlaceholderData:v,isPreviousData:m,isRefetchError:R&&c.dataUpdatedAt!==0,isStale:Ff(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Ut.shallowEqualObjects(n,r))return;this.currentResult=n;const i={cache:!0},s=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options;if(a==="all"||!a&&!this.trackedProps.size)return!0;const o=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==r[u]&&o.has(u)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!Am.isCancelledError(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){pM.notifyManager.batch(()=>{if(t.onSuccess){var r,n,i,s;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(i=(s=this.options).onSettled)==null||i.call(s,this.currentResult.data,null)}else if(t.onError){var a,o,l,u;(a=(o=this.options).onError)==null||a.call(o,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(d=>{d(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function gM(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Lm(e,t){return gM(e,t)||e.state.dataUpdatedAt>0&&dd(e,t,t.refetchOnMount)}function dd(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Ff(e,t)}return!1}function Nm(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Ff(e,r)}function Ff(e,t){return e.isStaleByTime(t.staleTime)}ra.QueryObserver=yM;var qf={};Object.defineProperty(qf,"__esModule",{value:!0});var ju=K,Fm=$t,SM=ra,EM=vr;class wM extends EM.Subscribable{constructor(t,r){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},r&&this.setQueries(r)}onSubscribe(){this.listeners.length===1&&this.observers.forEach(t=>{t.subscribe(r=>{this.onUpdate(t,r)})})}onUnsubscribe(){this.listeners.length||this.destroy()}destroy(){this.listeners=[],this.observers.forEach(t=>{t.destroy()})}setQueries(t,r){this.queries=t,Fm.notifyManager.batch(()=>{const n=this.observers,i=this.findMatchingObservers(this.queries);i.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions,r));const s=i.map(u=>u.observer),a=Object.fromEntries(s.map(u=>[u.options.queryHash,u])),o=s.map(u=>u.getCurrentResult()),l=s.some((u,d)=>u!==n[d]);n.length===s.length&&!l||(this.observers=s,this.observersMap=a,this.result=o,this.hasListeners()&&(ju.difference(n,s).forEach(u=>{u.destroy()}),ju.difference(s,n).forEach(u=>{u.subscribe(d=>{this.onUpdate(u,d)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(r=>r.observer.getOptimisticResult(r.defaultedQueryOptions))}findMatchingObservers(t){const r=this.observers,n=t.map(c=>this.client.defaultQueryOptions(c)),i=n.flatMap(c=>{const h=r.find(S=>S.options.queryHash===c.queryHash);return h!=null?[{defaultedQueryOptions:c,observer:h}]:[]}),s=i.map(c=>c.defaultedQueryOptions.queryHash),a=n.filter(c=>!s.includes(c.queryHash)),o=r.filter(c=>!i.some(h=>h.observer===c)),l=c=>{const h=this.client.defaultQueryOptions(c),S=this.observersMap[h.queryHash];return S??new SM.QueryObserver(this.client,h)},u=a.map((c,h)=>{if(c.keepPreviousData){const S=o[h];if(S!==void 0)return{defaultedQueryOptions:c,observer:S}}return{defaultedQueryOptions:c,observer:l(c)}}),d=(c,h)=>n.indexOf(c.defaultedQueryOptions)-n.indexOf(h.defaultedQueryOptions);return i.concat(u).sort(d)}onUpdate(t,r){const n=this.observers.indexOf(t);n!==-1&&(this.result=ju.replaceAt(this.result,n,r),this.notify())}notify(){Fm.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(this.result)})})}}qf.QueriesObserver=wM;var If={};Object.defineProperty(If,"__esModule",{value:!0});var CM=ra,Na=Br;class PM extends CM.QueryObserver{constructor(t,r){super(t,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,r){super.setOptions({...t,behavior:Na.infiniteQueryBehavior()},r)}getOptimisticResult(t){return t.behavior=Na.infiniteQueryBehavior(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,r){var n,i,s,a,o,l;const{state:u}=t,d=super.createResult(t,r),{isFetching:c,isRefetching:h}=d,S=c&&((n=u.fetchMeta)==null||(i=n.fetchMore)==null?void 0:i.direction)==="forward",E=c&&((s=u.fetchMeta)==null||(a=s.fetchMore)==null?void 0:a.direction)==="backward";return{...d,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Na.hasNextPage(r,(o=u.data)==null?void 0:o.pages),hasPreviousPage:Na.hasPreviousPage(r,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:S,isFetchingPreviousPage:E,isRefetching:h&&!S&&!E}}}If.InfiniteQueryObserver=PM;var Qf={};Object.defineProperty(Qf,"__esModule",{value:!0});var $M=ta,OM=$t,bM=vr,xM=K;let RM=class extends bM.Subscribable{constructor(t,r){super(),this.client=t,this.setOptions(r),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.client.defaultMutationOptions(t),xM.shallowEqualObjects(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this})}onUnsubscribe(){if(!this.listeners.length){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const r={listeners:!0};t.type==="success"?r.onSuccess=!0:t.type==="error"&&(r.onError=!0),this.notify(r)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,r){return this.mutateOptions=r,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:$M.getDefaultState(),r={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=r}notify(t){OM.notifyManager.batch(()=>{if(this.mutateOptions){if(t.onSuccess){var r,n,i,s;(r=(n=this.mutateOptions).onSuccess)==null||r.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(s=this.mutateOptions).onSettled)==null||i.call(s,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var a,o,l,u;(a=(o=this.mutateOptions).onError)==null||a.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(u=this.mutateOptions).onSettled)==null||l.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(d=>{d(this.currentResult)})})}};Qf.MutationObserver=RM;var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});function TM(e){return{mutationKey:e.options.mutationKey,state:e.state}}function MM(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}function w0(e){return e.state.isPaused}function C0(e){return e.state.status==="success"}function _M(e,t={}){const r=[],n=[];if(t.dehydrateMutations!==!1){const i=t.shouldDehydrateMutation||w0;e.getMutationCache().getAll().forEach(s=>{i(s)&&r.push(TM(s))})}if(t.dehydrateQueries!==!1){const i=t.shouldDehydrateQuery||C0;e.getQueryCache().getAll().forEach(s=>{i(s)&&n.push(MM(s))})}return{mutations:r,queries:n}}function kM(e,t,r){if(typeof t!="object"||t===null)return;const n=e.getMutationCache(),i=e.getQueryCache(),s=t.mutations||[],a=t.queries||[];s.forEach(o=>{var l;n.build(e,{...r==null||(l=r.defaultOptions)==null?void 0:l.mutations,mutationKey:o.mutationKey},o.state)}),a.forEach(o=>{var l;const u=i.get(o.queryHash);if(u){u.state.dataUpdatedAt<o.state.dataUpdatedAt&&u.setState(o.state);return}i.build(e,{...r==null||(l=r.defaultOptions)==null?void 0:l.queries,queryKey:o.queryKey,queryHash:o.queryHash},o.state)})}Ni.defaultShouldDehydrateMutation=w0;Ni.defaultShouldDehydrateQuery=C0;Ni.dehydrate=_M;Ni.hydrate=kM;Object.defineProperty(Z,"__esModule",{value:!0});var P0=mr,DM=ml,AM=Lf,LM=ra,NM=qf,FM=If,qM=yl,IM=Qf,QM=$t,UM=Pn,jM=Li,Hr=K,gl=Ni;Z.CancelledError=P0.CancelledError;Z.isCancelledError=P0.isCancelledError;Z.QueryCache=DM.QueryCache;Z.QueryClient=AM.QueryClient;Z.QueryObserver=LM.QueryObserver;Z.QueriesObserver=NM.QueriesObserver;Z.InfiniteQueryObserver=FM.InfiniteQueryObserver;Z.MutationCache=qM.MutationCache;Z.MutationObserver=IM.MutationObserver;Z.notifyManager=QM.notifyManager;Z.focusManager=UM.focusManager;Z.onlineManager=jM.onlineManager;Z.hashQueryKey=Hr.hashQueryKey;Z.isError=Hr.isError;Z.isServer=Hr.isServer;Z.parseFilterArgs=Hr.parseFilterArgs;Z.parseMutationArgs=Hr.parseMutationArgs;Z.parseMutationFilterArgs=Hr.parseMutationFilterArgs;Z.parseQueryArgs=Hr.parseQueryArgs;Z.replaceEqualDeep=Hr.replaceEqualDeep;Z.defaultShouldDehydrateMutation=gl.defaultShouldDehydrateMutation;Z.defaultShouldDehydrateQuery=gl.defaultShouldDehydrateQuery;Z.dehydrate=gl.dehydrate;Z.hydrate=gl.hydrate;var Uf={},fd={},zM={get exports(){return fd},set exports(e){fd=e}},$0={};/**
  107. * @license React
  108. * use-sync-external-store-shim.production.min.js
  109. *
  110. * Copyright (c) Facebook, Inc. and its affiliates.
  111. *
  112. * This source code is licensed under the MIT license found in the
  113. * LICENSE file in the root directory of this source tree.
  114. */var wi=g;function BM(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var HM=typeof Object.is=="function"?Object.is:BM,WM=wi.useState,GM=wi.useEffect,KM=wi.useLayoutEffect,VM=wi.useDebugValue;function XM(e,t){var r=t(),n=WM({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return KM(function(){i.value=r,i.getSnapshot=t,zu(i)&&s({inst:i})},[e,r,t]),GM(function(){return zu(i)&&s({inst:i}),e(function(){zu(i)&&s({inst:i})})},[e]),VM(r),r}function zu(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!HM(e,r)}catch{return!0}}function YM(e,t){return t()}var JM=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?YM:XM;$0.useSyncExternalStore=wi.useSyncExternalStore!==void 0?wi.useSyncExternalStore:JM;(function(e){e.exports=$0})(zM);const ZM=fd.useSyncExternalStore,e_=Object.freeze(Object.defineProperty({__proto__:null,useSyncExternalStore:ZM},Symbol.toStringTag,{value:"Module"})),na=yd(e_);var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});var t_=g;function r_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var on=r_(t_);const hd=on.createContext(void 0),O0=on.createContext(!1);function b0(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=hd),window.ReactQueryClientContext):hd)}const n_=({context:e}={})=>{const t=on.useContext(b0(e,on.useContext(O0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},i_=({client:e,children:t,context:r,contextSharing:n=!1})=>{on.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=b0(r,n);return on.createElement(O0.Provider,{value:!r&&n},on.createElement(i.Provider,{value:e},t))};Lt.QueryClientProvider=i_;Lt.defaultContext=hd;Lt.useQueryClient=n_;var Fi={};Object.defineProperty(Fi,"__esModule",{value:!0});var s_=g;function a_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var x0=a_(s_);const R0=x0.createContext(!1),o_=()=>x0.useContext(R0),l_=R0.Provider;Fi.IsRestoringProvider=l_;Fi.useIsRestoring=o_;var qi={};Object.defineProperty(qi,"__esModule",{value:!0});var u_=g;function c_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Qo=c_(u_);function T0(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const M0=Qo.createContext(T0()),d_=()=>Qo.useContext(M0),f_=({children:e})=>{const[t]=Qo.useState(()=>T0());return Qo.createElement(M0.Provider,{value:t},typeof e=="function"?e(t):e)};qi.QueryErrorResetBoundary=f_;qi.useQueryErrorResetBoundary=d_;var Ii={},Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});function h_(e,t){return typeof e=="function"?e(...t):!!e}Sl.shouldThrowError=h_;Object.defineProperty(Ii,"__esModule",{value:!0});var p_=g,m_=Sl;function v_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var y_=v_(p_);const g_=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},S_=e=>{y_.useEffect(()=>{e.clearReset()},[e])},E_=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&m_.shouldThrowError(r,[e.error,n]);Ii.ensurePreventErrorBoundaryRetry=g_;Ii.getHasError=E_;Ii.useClearResetErrorBoundary=S_;var On={};Object.defineProperty(On,"__esModule",{value:!0});const w_=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},_0=(e,t)=>e.isLoading&&e.isFetching&&!t,C_=(e,t,r)=>(e==null?void 0:e.suspense)&&_0(t,r),P_=(e,t,r)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{r.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});On.ensureStaleTime=w_;On.fetchOptimistic=P_;On.shouldSuspend=C_;On.willFetch=_0;Object.defineProperty(Uf,"__esModule",{value:!0});var $_=g,O_=na,qm=Z,b_=Lt,x_=Fi,R_=qi,Bu=Ii,Nn=On;function T_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Fa=T_($_);function M_({queries:e,context:t}){const r=b_.useQueryClient({context:t}),n=x_.useIsRestoring(),i=Fa.useMemo(()=>e.map(c=>{const h=r.defaultQueryOptions(c);return h._optimisticResults=n?"isRestoring":"optimistic",h}),[e,r,n]),[s]=Fa.useState(()=>new qm.QueriesObserver(r,i)),a=s.getOptimisticResult(i);O_.useSyncExternalStore(Fa.useCallback(c=>n?()=>{}:s.subscribe(qm.notifyManager.batchCalls(c)),[s,n]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),Fa.useEffect(()=>{s.setQueries(i,{listeners:!1})},[i,s]);const o=R_.useQueryErrorResetBoundary();i.forEach(c=>{Bu.ensurePreventErrorBoundaryRetry(c,o),Nn.ensureStaleTime(c)}),Bu.useClearResetErrorBoundary(o);const u=a.some((c,h)=>Nn.shouldSuspend(i[h],c,n))?a.flatMap((c,h)=>{const S=i[h],E=s.getObservers()[h];if(S&&E){if(Nn.shouldSuspend(S,c,n))return Nn.fetchOptimistic(S,E,o);Nn.willFetch(c,n)&&Nn.fetchOptimistic(S,E,o)}return[]}):[];if(u.length>0)throw Promise.all(u);const d=a.find((c,h)=>{var S,E;return Bu.getHasError({result:c,errorResetBoundary:o,useErrorBoundary:(S=(E=i[h])==null?void 0:E.useErrorBoundary)!=null?S:!1,query:s.getQueries()[h]})});if(d!=null&&d.error)throw d.error;return a}Uf.useQueries=M_;var jf={},El={};Object.defineProperty(El,"__esModule",{value:!0});var __=g,k_=na,qa=Z,D_=qi,A_=Lt,L_=Fi,Hu=Ii,Wu=On;function N_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Gu=N_(__);function F_(e,t){const r=A_.useQueryClient({context:e.context}),n=L_.useIsRestoring(),i=D_.useQueryErrorResetBoundary(),s=r.defaultQueryOptions(e);s._optimisticResults=n?"isRestoring":"optimistic",s.onError&&(s.onError=qa.notifyManager.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=qa.notifyManager.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=qa.notifyManager.batchCalls(s.onSettled)),Wu.ensureStaleTime(s),Hu.ensurePreventErrorBoundaryRetry(s,i),Hu.useClearResetErrorBoundary(i);const[a]=Gu.useState(()=>new t(r,s)),o=a.getOptimisticResult(s);if(k_.useSyncExternalStore(Gu.useCallback(l=>n?()=>{}:a.subscribe(qa.notifyManager.batchCalls(l)),[a,n]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),Gu.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),Wu.shouldSuspend(s,o,n))throw Wu.fetchOptimistic(s,a,i);if(Hu.getHasError({result:o,errorResetBoundary:i,useErrorBoundary:s.useErrorBoundary,query:a.getCurrentQuery()}))throw o.error;return s.notifyOnChangeProps?o:a.trackResult(o)}El.useBaseQuery=F_;Object.defineProperty(jf,"__esModule",{value:!0});var Im=Z,q_=El;function I_(e,t,r){const n=Im.parseQueryArgs(e,t,r);return q_.useBaseQuery(n,Im.QueryObserver)}jf.useQuery=I_;var wl={};Object.defineProperty(wl,"__esModule",{value:!0});var Q_=g,U_=Z,j_=Lt;function z_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Qm=z_(Q_);function k0(e,t={}){const r=j_.useQueryClient({context:t.context}),n=Qm.useRef(t);n.current=t,Qm.useMemo(()=>{e&&U_.hydrate(r,e,n.current)},[r,e])}const B_=({children:e,options:t,state:r})=>(k0(r,t),e);wl.Hydrate=B_;wl.useHydrate=k0;var zf={};Object.defineProperty(zf,"__esModule",{value:!0});var H_=g,Um=Z,W_=na,G_=Lt;function K_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var V_=K_(H_);function X_(e,t,r){const[n,i={}]=Um.parseFilterArgs(e,t,r),s=G_.useQueryClient({context:i.context}),a=s.getQueryCache();return W_.useSyncExternalStore(V_.useCallback(o=>a.subscribe(Um.notifyManager.batchCalls(o)),[a]),()=>s.isFetching(n),()=>s.isFetching(n))}zf.useIsFetching=X_;var Bf={};Object.defineProperty(Bf,"__esModule",{value:!0});var Y_=g,J_=na,jm=Z,Z_=Lt;function ek(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var tk=ek(Y_);function rk(e,t,r){const[n,i={}]=jm.parseMutationFilterArgs(e,t,r),s=Z_.useQueryClient({context:i.context}),a=s.getMutationCache();return J_.useSyncExternalStore(tk.useCallback(o=>a.subscribe(jm.notifyManager.batchCalls(o)),[a]),()=>s.isMutating(n),()=>s.isMutating(n))}Bf.useIsMutating=rk;var Hf={};Object.defineProperty(Hf,"__esModule",{value:!0});var nk=g,ik=na,Ku=Z,sk=Lt,ak=Sl;function ok(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Ia=ok(nk);function lk(e,t,r){const n=Ku.parseMutationArgs(e,t,r),i=sk.useQueryClient({context:n.context}),[s]=Ia.useState(()=>new Ku.MutationObserver(i,n));Ia.useEffect(()=>{s.setOptions(n)},[s,n]);const a=ik.useSyncExternalStore(Ia.useCallback(l=>s.subscribe(Ku.notifyManager.batchCalls(l)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),o=Ia.useCallback((l,u)=>{s.mutate(l,u).catch(uk)},[s]);if(a.error&&ak.shouldThrowError(s.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}function uk(){}Hf.useMutation=lk;var Wf={};Object.defineProperty(Wf,"__esModule",{value:!0});var zm=Z,ck=El;function dk(e,t,r){const n=zm.parseQueryArgs(e,t,r);return ck.useBaseQuery(n,zm.InfiniteQueryObserver)}Wf.useInfiniteQuery=dk;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Z,r=Uf,n=jf,i=Lt,s=wl,a=qi,o=zf,l=Bf,u=Hf,d=Wf,c=Fi;e.useQueries=r.useQueries,e.useQuery=n.useQuery,e.QueryClientProvider=i.QueryClientProvider,e.defaultContext=i.defaultContext,e.useQueryClient=i.useQueryClient,e.Hydrate=s.Hydrate,e.useHydrate=s.useHydrate,e.QueryErrorResetBoundary=a.QueryErrorResetBoundary,e.useQueryErrorResetBoundary=a.useQueryErrorResetBoundary,e.useIsFetching=o.useIsFetching,e.useIsMutating=l.useIsMutating,e.useMutation=u.useMutation,e.useInfiniteQuery=d.useInfiniteQuery,e.IsRestoringProvider=c.IsRestoringProvider,e.useIsRestoring=c.useIsRestoring,Object.keys(t).forEach(function(h){h!=="default"&&!e.hasOwnProperty(h)&&Object.defineProperty(e,h,{enumerable:!0,get:function(){return t[h]}})})})(p);var D0=Te.createContext(null),C=()=>{let e=Te.useContext(D0);if(!e)throw new Error("useMedusa must be used within a MedusaProvider");return e},fk=({queryClientProviderProps:e,baseUrl:t,apiKey:r,publishableApiKey:n,children:i})=>{let s=new cT({baseUrl:t,maxRetries:0,apiKey:r,publishableApiKey:n});return Te.createElement(p.QueryClientProvider,{...e},Te.createElement(D0.Provider,{value:{client:s}},i))},ee=e=>{let t={all:[e],lists:()=>[...t.all,"list"],list:r=>[...t.lists(),{query:r}],details:()=>[...t.all,"detail"],detail:r=>[...t.details(),r]};return t};Te.createContext(null);var T=(e,t,r)=>({...r,onSuccess:(...n)=>{if(r!=null&&r.onSuccess)return r.onSuccess(...n);t!==void 0&&t.forEach(i=>{e.invalidateQueries({queryKey:i})})}});Te.createContext(null);var hk="admin_auth",Gf=ee(hk),pk=e=>{let{client:t}=C(),{data:r,...n}=p.useQuery(Gf.details(),()=>t.admin.auth.getSession(),e);return{...r,...n}},U2=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.auth.createSession(n),T(r,Gf.details(),e))},j2=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(()=>t.admin.auth.deleteSession(),T(r,Gf.details(),e))},mk="admin_batches",pn=ee(mk),vk=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(pn.list(e),()=>r.admin.batchJobs.list(e),t);return{...n,...i}},z2=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(pn.detail(e),()=>r.admin.batchJobs.retrieve(e),t);return{...n,...i}},B2=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.batchJobs.create(n),T(r,pn.lists(),e))},H2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.batchJobs.cancel(e),T(n,[pn.lists(),pn.detail(e)],t))},W2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.batchJobs.confirm(e),T(n,[pn.lists(),pn.detail(e)],t))},yk="admin_orders",ne={...ee(yk),detailOrder(e,t){return[...this.detail(e),{...t||{}}]}},G2=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(ne.list(e),()=>r.admin.orders.list(e),t);return{...n,...i}},K2=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(ne.detailOrder(e,t),()=>n.admin.orders.retrieve(e,t),r);return{...i,...s}},V2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.createClaim(e,i),T(n,ne.detail(e),t))},X2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.cancelClaim(e,i),T(n,ne.detail(e),t))},Y2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({claim_id:i,...s})=>r.admin.orders.fulfillClaim(e,i,s),T(n,ne.detail(e),t))},J2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({claim_id:i,fulfillment_id:s})=>r.admin.orders.cancelClaimFulfillment(e,i,s),T(n,ne.detail(e),t))},Z2=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({claim_id:i,...s})=>r.admin.orders.createClaimShipment(e,i,s),T(n,ne.detail(e),t))},gk="admin_collections",mn=ee(gk),eD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(mn.list(e),()=>r.admin.collections.list(e),t);return{...n,...i}},tD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(mn.detail(e),()=>r.admin.collections.retrieve(e),t);return{...n,...i}},rD=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.collections.create(n),T(r,mn.lists(),e))},nD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.collections.update(e,i),T(n,[mn.lists(),mn.detail(e)],t))},iD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.collections.delete(e),T(n,[mn.lists(),mn.detail(e)],t))},Sk="admin_currencies",pd=ee(Sk),sD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(pd.list(e),()=>r.admin.currencies.list(e),t);return{...n,...i}},aD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.currencies.update(e,i),T(n,[pd.lists(),pd.detail(e)],t))},Ek="admin_customer_groups",Pt={...ee(Ek),detailCustomer(e,t){return[...this.detail(e),"customers",{...t||{}}]}},oD=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Pt.detail(e),()=>n.admin.customerGroups.retrieve(e,t),r);return{...i,...s}},lD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Pt.list(e),()=>r.admin.customerGroups.list(e),t);return{...n,...i}},uD=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Pt.detailCustomer(e,t),()=>n.admin.customerGroups.listCustomers(e,t),r);return{...i,...s}},cD=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.customerGroups.create(n),T(r,Pt.lists(),e))},dD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.customerGroups.update(e,i),T(n,[Pt.lists(),Pt.detail(e)],t))},fD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.customerGroups.delete(e),T(n,[Pt.lists(),Pt.detail(e)],t))},hD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.customerGroups.addCustomers(e,i),T(n,[Pt.lists(),Pt.detailCustomer(e)],t))},pD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.customerGroups.removeCustomers(e,i),T(n,[Pt.lists(),Pt.detailCustomer(e)],t))},wk="admin_customers",Ci=ee(wk),mD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Ci.list(e),()=>r.admin.customers.list(e),t);return{...n,...i}},vD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Ci.detail(e),()=>r.admin.customers.retrieve(e),t);return{...n,...i}},yD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.customers.update(e,i),T(n,[Ci.lists(),Ci.detail(e)],t))},Ck="admin_discounts",Xt={...ee(Ck),detailCondition(e,t){return[...this.detail(e),"condition",{...t||{}}]}},gD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Xt.list(e),()=>r.admin.discounts.list(e),t);return{...n,...i}},SD=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Xt.detail(e),()=>n.admin.discounts.retrieve(e,t),r);return{...i,...s}},ED=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Xt.detail(e),()=>r.admin.discounts.retrieveByCode(e),t);return{...n,...i}},wD=(e,t,r,n)=>{let{client:i}=C(),{data:s,...a}=p.useQuery(Xt.detailCondition(t),()=>i.admin.discounts.getCondition(e,t,r),n);return{...s,...a}},CD=(e,t,r,n)=>{let{client:i}=C(),s=p.useQueryClient();return p.useMutation(a=>i.admin.discounts.addConditionResourceBatch(e,t,a,r),T(s,Xt.detail(e),n))},PD=(e,t,r)=>{let{client:n}=C(),i=p.useQueryClient();return p.useMutation(s=>n.admin.discounts.deleteConditionResourceBatch(e,t,s),T(i,[Xt.detail(e)],r))},$D=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.discounts.create(n),T(r,Xt.lists(),e))},OD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.discounts.update(e,i),T(n,Xt.detail(e),t))},bD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.discounts.delete(e),T(n,Xt.lists(),t))},xD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.discounts.deleteCondition(e,i),T(n,Xt.detail(e),t))},Pk="admin_draft_orders",Fr=ee(Pk),RD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Fr.list(e),()=>r.admin.draftOrders.list(e),t);return{...n,...i}},TD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Fr.detail(e),()=>r.admin.draftOrders.retrieve(e),t);return{...n,...i}},MD=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.draftOrders.create(n),T(r,Fr.lists(),e))},_D=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.draftOrders.update(e,i),T(n,[Fr.detail(e),Fr.lists()],t))},kD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.draftOrders.delete(e),T(n,[Fr.detail(e),Fr.lists()],t))},DD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.draftOrders.markPaid(e),T(n,Fr.detail(e),t))},$k="admin_gift_cards",Bs=ee($k),AD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Bs.list(e),()=>r.admin.giftCards.list(e),t);return{...n,...i}},LD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Bs.detail(e),()=>r.admin.giftCards.retrieve(e),t);return{...n,...i}},ND=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.giftCards.create(n),T(r,Bs.lists(),e))},FD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.giftCards.update(e,i),T(n,[Bs.lists(),Bs.detail(e)],t))},Ok="admin_inventory_items",vn=ee(Ok),qD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(vn.list(e),()=>r.admin.inventoryItems.list(e),{...t});return{...n,...i}},ID=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.inventoryItems.updateLocationLevel(e,i.stockLocationId,{incoming_quantity:i.incoming_quantity,stocked_quantity:i.stocked_quantity}),T(n,[vn.detail(e),vn.lists()],t))},QD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.inventoryItems.deleteLocationLevel(e,i),T(n,[vn.detail(e),vn.lists()],t))},UD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.inventoryItems.createLocationLevel(e,i),T(n,[vn.detail(e),vn.lists()],t))},bk="admin_invites",A0=ee(bk),jD=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.invites.accept(n),T(r,A0.lists(),e))},zD=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.invites.create(n),T(r,A0.lists(),e))},xk="admin_notes",Uo=ee(xk),BD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Uo.list(e),()=>r.admin.notes.list(e),t);return{...n,...i}},HD=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.notes.create(n),T(r,Uo.lists(),e))},WD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.notes.delete(e),T(n,[Uo.detail(e),Uo.lists()],t))},Rk="admin_notifications",md=ee(Rk),GD=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(md.list(e),()=>r.admin.notifications.list(e),t);return{...n,...i}},KD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.notifications.resend(e,i),T(n,[md.lists(),md.detail(e)],t))},VD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.update(e,i),T(n,[ne.lists(),ne.detail(e)],t))},XD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.orders.cancel(e),T(n,[ne.lists(),ne.detail(e)],t))},YD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.orders.capturePayment(e),T(n,[ne.lists(),ne.detail(e)],t))},JD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.refundPayment(e,i),T(n,[ne.lists(),ne.detail(e)],t))},ZD=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.createFulfillment(e,i),T(n,[ne.lists(),ne.detail(e)],t))},eA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.cancelFulfillment(e,i),T(n,[ne.lists(),ne.detail(e)],t))},tA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.createShipment(e,i),T(n,ne.detail(e),t))},rA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.requestReturn(e,i),T(n,ne.detail(e),t))},Tk="admin_order_edits",Ce=ee(Tk),nA=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Ce.detail(e),()=>n.admin.orderEdits.retrieve(e,t),r);return{...i,...s}},iA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Ce.list(e),()=>r.admin.orderEdits.list(e),t);return{...n,...i}},sA=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.orderEdits.create(n),T(r,[Ce.lists(),ne.details()],e))},aA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.orderEdits.delete(e),T(n,[Ce.detail(e),Ce.lists(),ne.details()],t))},oA=(e,t,r)=>{let{client:n}=C(),i=p.useQueryClient();return p.useMutation(()=>n.admin.orderEdits.deleteItemChange(e,t),T(i,[Ce.detail(e),Ce.lists()],r))},lA=(e,t,r)=>{let{client:n}=C(),i=p.useQueryClient();return p.useMutation(s=>n.admin.orderEdits.updateLineItem(e,t,s),T(i,[Ce.detail(e),Ce.lists()],r))},uA=(e,t,r)=>{let{client:n}=C(),i=p.useQueryClient();return p.useMutation(()=>n.admin.orderEdits.removeLineItem(e,t),T(i,[Ce.detail(e),Ce.lists()],r))},cA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orderEdits.update(e,i),T(n,[Ce.lists(),Ce.detail(e),ne.details()],t))},dA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orderEdits.addLineItem(e,i),T(n,[Ce.lists(),Ce.detail(e)],t))},fA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.orderEdits.requestConfirmation(e),T(n,[Ce.lists(),Ce.detail(e),ne.details()],t))},hA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.orderEdits.cancel(e),T(n,[Ce.lists(),Ce.detail(e),ne.details()],t))},pA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.orderEdits.confirm(e),T(n,[Ce.lists(),Ce.detail(e),ne.details()],t))},Mk="admin_price_lists",Dt={...ee(Mk),detailProducts(e,t){return[...this.detail(e),"products",{...t||{}}]}},mA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Dt.list(e),()=>r.admin.priceLists.list(e),t);return{...n,...i}},vA=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Dt.detailProducts(e,t),()=>n.admin.priceLists.listProducts(e,t),r);return{...i,...s}},yA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Dt.detail(e),()=>r.admin.priceLists.retrieve(e),t);return{...n,...i}},_k="admin_products",Pe=ee(_k),gA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Pe.list(e),()=>r.admin.products.list(e),t);return{...n,...i}},SA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Pe.detail(e),()=>r.admin.products.retrieve(e),t);return{...n,...i}},EA=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.products.create(n),T(r,Pe.lists(),e))},wA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.products.update(e,i),T(n,[Pe.lists(),Pe.detail(e)],t))},CA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.products.delete(e),T(n,[Pe.lists(),Pe.detail(e)],t))},PA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.products.createVariant(e,i),T(n,[Pe.lists(),Pe.detail(e)],t))},$A=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({variant_id:i,...s})=>r.admin.products.updateVariant(e,i,s),T(n,[Pe.lists(),Pe.detail(e)],t))},OA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.products.deleteVariant(e,i),T(n,[Pe.lists(),Pe.detail(e)],t))},bA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.products.addOption(e,i),T(n,Pe.detail(e),t))},xA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({option_id:i,...s})=>r.admin.products.updateOption(e,i,s),T(n,Pe.detail(e),t))},RA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.products.deleteOption(e,i),T(n,Pe.detail(e),t))},kk="admin_variants",Kf=ee(kk),TA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Kf.list(e),()=>r.admin.variants.list(e),t);return{...n,...i}},MA=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Kf.detail(e),()=>n.admin.variants.retrieve(e,t),r);return{...i,...s}},_A=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Kf.detail(e),()=>r.admin.variants.getInventory(e),t);return{...n,...i}},kA=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.priceLists.create(n),T(r,Dt.lists(),e))},DA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.priceLists.update(e,i),T(n,[Dt.detail(e),Dt.lists(),Dt.detailProducts(e)],t))},AA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.priceLists.delete(e),T(n,[Dt.detail(e),Dt.lists()],t))},LA=(e,t,r)=>{let{client:n}=C(),i=p.useQueryClient();return p.useMutation(()=>n.admin.priceLists.deleteProductPrices(e,t),T(i,[Dt.detail(e),Dt.lists(),Pe.detail(t)],r))},Dk="admin_product_tags",Ak=ee(Dk),NA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Ak.list(e),()=>r.admin.productTags.list(e),t);return{...n,...i}},Lk="admin_product_types",Nk=ee(Lk),FA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Nk.list(e),()=>r.admin.productTypes.list(e),t);return{...n,...i}},Fk="product_categories",Pi=ee(Fk),qA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Pi.list(e),()=>r.admin.productCategories.list(e),t);return{...n,...i}},IA=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.productCategories.create(n),T(r,[Pi.list(),Pe.details()],e))},QA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.productCategories.update(e,i),T(n,[Pi.lists(),Pi.detail(e),Pe.details()],t))},UA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.productCategories.delete(e),T(n,[Pi.lists(),Pi.detail(e)],t))},qk="admin_publishable_api_keys",Et={...ee(qk),detailSalesChannels(e,t){return[...this.detail(e),"sales_channels",{...t||{}}]}},jA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Et.list(e),()=>r.admin.publishableApiKeys.list(e),t);return{...n,...i}},zA=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(Et.detailSalesChannels(e,t),()=>n.admin.publishableApiKeys.listSalesChannels(e,t),r);return{...i,...s}},BA=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.publishableApiKeys.create(n),T(r,[Et.lists()],e))},HA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.publishableApiKeys.update(e,i),T(n,[Et.lists(),Et.detail(e),Et.details()],t))},WA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.publishableApiKeys.delete(e),T(n,[Et.detail(e),Et.lists()],t))},GA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.publishableApiKeys.revoke(e),T(n,[Et.lists(),Et.detail(e)],t))},KA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.publishableApiKeys.addSalesChannelsBatch(e,i),T(n,[Et.detailSalesChannels(e)],t))},VA=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.publishableApiKeys.deleteSalesChannelsBatch(e,i),T(n,[Et.detailSalesChannels(e)],t))},Ik="admin_regions",qr=ee(Ik),XA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(qr.list(e),()=>r.admin.regions.list(e),t);return{...n,...i}},YA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(qr.detail(e),()=>r.admin.regions.retrieve(e),t);return{...n,...i}},JA=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(qr.detail(`${e}_fullfillment-options`),()=>r.admin.regions.retrieveFulfillmentOptions(e),t);return{...n,...i}},ZA=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.regions.create(n),T(r,qr.lists(),e))},eL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.regions.update(e,i),T(n,[qr.lists(),qr.detail(e)],t))},tL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.regions.delete(e),T(n,[qr.lists(),qr.detail(e)],t))},Qk="admin_return_reasons",$i=ee(Qk),rL=e=>{let{client:t}=C(),{data:r,...n}=p.useQuery($i.lists(),()=>t.admin.returnReasons.list(),e);return{...r,...n}},nL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.returnReasons.create(n),T(r,$i.lists(),e))},iL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.returnReasons.update(e,i),T(n,[$i.detail(e),$i.lists()],t))},sL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.returnReasons.delete(e),T(n,[$i.detail(e),$i.lists()],t))},Uk="admin_returns",jo=ee(Uk),aL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.returns.receive(e,i),T(n,[jo.detail(e),jo.list()],t))},oL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.returns.cancel(e),T(n,[jo.detail(e),jo.list()],t))},jk="admin_stock_locations",Oi=ee(jk),lL=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Oi.list(e),()=>r.admin.reservations.list(e),{...t});return{...n,...i}},uL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.reservations.create(n),T(r,[Oi.lists()],e))},cL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.reservations.update(e,i),T(n,[Oi.lists(),Oi.detail(e)],t))},dL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.reservations.delete(e),T(n,[Oi.lists(),Oi.detail(e)],t))},zk="admin_sales_channels",nt=ee(zk),fL=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(nt.list(e),()=>r.admin.salesChannels.list(e),t);return{...n,...i}},Bk="admin_stock_locations",Ir=ee(Bk),hL=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(Ir.list(e),()=>r.admin.stockLocations.list(e),t);return{...n,...i}},pL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.stockLocations.create(n),T(r,[Ir.lists()],e))},mL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.stockLocations.update(e,i),T(n,[Ir.lists(),Ir.detail(e)],t))},vL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.stockLocations.delete(e),T(n,[Ir.lists(),Ir.detail(e)],t))},yL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.salesChannels.create(n),T(r,[nt.list()],e))},gL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.salesChannels.update(e,i),T(n,[nt.lists(),nt.detail(e)],t))},SL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.salesChannels.delete(e),T(n,[nt.lists(),nt.detail(e)],t))},EL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.salesChannels.removeProducts(e,i),T(n,[nt.lists(),nt.detail(e),Pe.list({sales_channel_id:[e]})],t))},wL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.salesChannels.addProducts(e,i),T(n,[nt.lists(),nt.detail(e),Pe.list({sales_channel_id:[e]})],t))},CL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(({sales_channel_id:n,location_id:i})=>t.admin.salesChannels.addLocation(n,{location_id:i}),T(r,[nt.lists(),nt.details(),Ir.all],e))},PL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(({sales_channel_id:n,location_id:i})=>t.admin.salesChannels.removeLocation(n,{location_id:i}),T(r,[nt.lists(),nt.details(),Ir.all],e))},Hk="admin_shipping_options",yn=ee(Hk),$L=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(yn.list(e),()=>r.admin.shippingOptions.list(e),t);return{...n,...i}},OL=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(yn.detail(e),()=>r.admin.shippingOptions.retrieve(e),t);return{...n,...i}},bL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.shippingOptions.create(n),T(r,yn.lists(),e))},xL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.shippingOptions.update(e,i),T(n,[yn.lists(),yn.detail(e)],t))},RL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.shippingOptions.delete(e),T(n,[yn.lists(),yn.detail(e)],t))},Wk="admin_shippingProfiles",Gk=ee(Wk),TL=e=>{let{client:t}=C(),{data:r,...n}=p.useQuery(Gk.lists(),()=>t.admin.shippingProfiles.list(),e);return{...r,...n}},Kk="admin_store",Vf=ee(Kk),ML=e=>{let{client:t}=C(),{data:r,...n}=p.useQuery(Vf.detail("tax_providers"),()=>t.admin.store.listTaxProviders(),e);return{...r,...n}},Vk=e=>{let{client:t}=C(),{data:r,...n}=p.useQuery(Vf.details(),()=>t.admin.store.retrieve(),e);return{...r,...n}},_L=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.store.update(n),T(r,Vf.details(),e))},Xk="admin_swaps",Cl=ee(Xk),kL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.createSwap(e,i),T(n,[ne.detail(e),Cl.lists()],t))},DL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.orders.cancelSwap(e,i),T(n,[ne.detail(e),Cl.lists()],t))},AL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({swap_id:i,...s})=>r.admin.orders.fulfillSwap(e,i,s),T(n,[ne.detail(e),Cl.lists()],t))},LL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({swap_id:i,...s})=>r.admin.orders.createSwapShipment(e,i,s),T(n,ne.detail(e),t))},NL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(({swap_id:i,fulfillment_id:s})=>r.admin.orders.cancelSwapFulfillment(e,i,s),T(n,[ne.detail(e),Cl.lists()],t))},Yk="admin_tax_rates",gn=ee(Yk),FL=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(gn.list(e),()=>r.admin.taxRates.list(e),t);return{...n,...i}},qL=(e,t,r)=>{let{client:n}=C(),{data:i,...s}=p.useQuery(gn.detail(e),()=>n.admin.taxRates.retrieve(e,t),r);return{...i,...s}},IL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.taxRates.create(n),T(r,gn.lists(),e))},QL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.taxRates.update(e,i),T(n,[gn.lists(),gn.detail(e)],t))},UL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(()=>r.admin.taxRates.delete(e),T(n,[gn.lists(),gn.detail(e)],t))},jL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.uploads.create(n),T(r,void 0,e))},zL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.uploads.createProtected(n),T(r,void 0,e))},BL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.uploads.getPresignedDownloadUrl(n),T(r,void 0,e))},HL=e=>{let{client:t}=C(),r=p.useQueryClient();return p.useMutation(n=>t.admin.uploads.delete(n),T(r,void 0,e))},Jk="admin_users",L0=ee(Jk),WL=e=>{let{client:t}=C(),{data:r,...n}=p.useQuery(L0.lists(),()=>t.admin.users.list(),e);return{...r,...n}},GL=(e,t)=>{let{client:r}=C(),{data:n,...i}=p.useQuery(L0.detail(e),()=>r.admin.users.retrieve(e),t);return{...n,...i}},KL=(e,t)=>{let{client:r}=C(),n=p.useQueryClient();return p.useMutation(i=>r.admin.users.update(e,i),T(n,[Ci.lists(),Ci.detail(e)],t))},VL=e=>{let{client:t}=C();return p.useMutation(r=>t.admin.users.resetPassword(r),e)},XL=e=>{let{client:t}=C();return p.useMutation(r=>t.admin.users.sendResetPasswordToken(r),e)},Zk=(e=>(e.PRODUCT_CATEGORIES="product_categories",e))(Zk||{});const e2={featureToggleList:{},isFeatureEnabled:function(e){return!!this.featureToggleList[e]}},N0=Te.createContext(e2),t2=({children:e})=>{const{user:t,isLoading:r}=pk(),[n,i]=g.useState([]),{store:s,isFetching:a}=Vk();g.useEffect(()=>{var u;a||!s||!t&&!r||!((u=s.feature_flags)!=null&&u.length)||i([...s.feature_flags,...s.modules.map(d=>({key:d.module,value:!0}))])},[a,s,t,r]);const o=n.reduce((u,d)=>({...u,[d.key]:d.value}),{}),l=u=>!!o[u];return D(N0.Provider,{value:{isFeatureEnabled:l,featureToggleList:o},children:e})},YL=()=>{const e=g.useContext(N0);if(!e)throw new Error("useFeatureFlag must be used within a FeatureFlagProvider");return e},r2="/",n2=new p.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:9e4,retry:1}}}),i2=({children:e})=>D(fk,{queryClientProviderProps:{client:n2},baseUrl:r2,children:e}),F0=Te.createContext(null),q0=new Date(new Date().setMonth(new Date().getMonth()-1));q0.setHours(0,0,0,0);const us=[2,5,10,15,30,60],s2=e=>{let t=Date.now();return{current:e,register(){t=Date.now();const r=us.findIndex(n=>n===this.current);this.current=us[Math.min(us.length-1,r+1)]},isEnabled(){return Date.now()>=t},reset(){t=Date.now(),this.current=us[0]}}},is=s2(us[0]),a2=({children:e})=>{const{batch_jobs:t,isError:r,refetch:n}=vk({created_at:{gte:q0},failed_at:null},{refetchOnWindowFocus:!0,refetchInterval:is.current*1e3,enabled:is.isEnabled(),onSettled:is.register.bind(is)}),i=g.useCallback(async()=>{is.reset(),await n()},[n]),s=g.useMemo(()=>({batchJobs:t,hasPollingError:r,resetInterval:i,refetch:n}),[n,t,r,i]);return D(F0.Provider,{value:s,children:e})},JL=()=>{const e=Te.useContext(F0);if(!e)throw new Error("usePolling must be used within a PollingProvider");return e},o2=({children:e})=>D(i2,{children:D(t2,{children:D(a2,{children:D(KP,{children:D(BP,{children:e})})})})});class l2{render(){return D(Te.StrictMode,{children:D(o2,{children:D(lC,{})})})}}async function u2(){const e=new l2;Vu.createRoot(document.getElementById("root")).render(e.render())}u2();export{dC as $,uD as A,Mo as B,hD as C,tD as D,J2 as E,zc as F,fD as G,Ti as H,YL as I,p as J,QP as K,Jw as L,gt as M,nD as N,Js as O,mC as P,gA as Q,Te as R,pg as S,pk as T,pD as U,ki as V,rD as W,ai as X,iD as Y,_i as Z,qe as _,D as a,sA as a$,WL as a0,Vk as a1,su as a2,ll as a3,PP as a4,SP as a5,yf as a6,qC as a7,TC as a8,bC as a9,AD as aA,ND as aB,EA as aC,qD as aD,MA as aE,ID as aF,hL as aG,fL as aH,pL as aI,CL as aJ,mL as aK,PL as aL,vL as aM,iA as aN,_A as aO,ZD as aP,AL as aQ,Y2 as aR,JD as aS,tA as aT,LL as aU,Z2 as aV,dA as aW,uA as aX,lA as aY,oA as aZ,TA as a_,Ag as aa,vE as ab,hn as ac,Kc as ad,$D as ae,OD as af,bD as ag,gD as ah,Ng as ai,eD as aj,NA as ak,FA as al,HP as am,CD as an,PD as ao,SD as ap,wD as aq,xD as ar,XA as as,LD as at,FD as au,wA as av,PA as aw,OA as ax,$A as ay,CA as az,c2 as b,RA as b$,fA as b0,cA as b1,aA as b2,uL as b3,C as b4,cL as b5,dL as b6,lL as b7,g2 as b8,rL as b9,ED as bA,MD as bB,S2 as bC,TD as bD,DD as bE,kD as bF,_D as bG,kA as bH,DA as bI,vA as bJ,AA as bK,HL as bL,jL as bM,H2 as bN,W2 as bO,z2 as bP,LA as bQ,yA as bR,mA as bS,SA as bT,qA as bU,uC as bV,Zk as bW,QD as bX,UD as bY,xA as bZ,bA as b_,YA as ba,$L as bb,V2 as bc,rA as bd,K2 as be,kL as bf,BD as bg,GD as bh,aL as bi,oL as bj,X2 as bk,DL as bl,GL as bm,WD as bn,KD as bo,nA as bp,hA as bq,pA as br,HD as bs,YD as bt,XD as bu,JL as bv,B2 as bw,RD as bx,OL as by,WP as bz,ct as c,zL as c0,jA as c1,GA as c2,WA as c3,HA as c4,KA as c5,zA as c6,VA as c7,BA as c8,gL as c9,h2 as cA,zD as cB,IA as cC,Pi as cD,UA as cE,QA as cF,f2 as cG,wC as cH,mg as cI,j2 as cJ,yC as cK,FP as cL,m2 as cM,qP as cN,IP as cO,BL as cP,v2 as cQ,y2 as cR,jD as cS,U2 as cT,XL as cU,VL as cV,db as cW,yd as cX,yL as ca,EL as cb,wL as cc,SL as cd,aD as ce,Vf as cf,_L as cg,sD as ch,KL as ci,eL as cj,tL as ck,TL as cl,JA as cm,xL as cn,RL as co,bL as cp,ZA as cq,nL as cr,sL as cs,iL as ct,QL as cu,qL as cv,IL as cw,ML as cx,UL as cy,FL as cz,r2 as d,d2 as e,Qw as f,vd as g,Xr as h,yE as i,ot as j,eA as k,ro as l,ui as m,cl as n,VD as o,vD as p,G2 as q,g as r,NL as s,lD as t,dg as u,mD as v,yD as w,cD as x,dD as y,oD as z};