@simpoobusiness/sdk 2.0.18 → 2.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */function j(){if(S)return y;S=1;var e=w(),t=f(),n=N();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function a(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function i(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function s(e){if(a(e)!==e)throw Error(r(188))}function l(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=l(e)))return t;e=e.sibling}return null}var u=Object.assign,c=Symbol.for("react.element"),d=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),b=Symbol.for("react.consumer"),x=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var T=Symbol.for("react.client.reference");function D(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===T?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case g:return"Profiler";case m:return"StrictMode";case k:return"Suspense";case _:return"SuspenseList";case j:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case p:return"Portal";case x:return(e.displayName||"Context")+".Provider";case b:return(e._context.displayName||"Context")+".Consumer";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:D(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return D(e(t))}catch(e){}}return null}var A=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},z=[],$=-1;function H(e){return{current:e}}function V(e){0>$||(e.current=z[$],z[$]=null,$--)}function B(e,t){$++,z[$]=e.current,e.current=t}var U=H(null),W=H(null),Y=H(null),q=H(null);function G(e,t){switch(B(Y,t),B(W,e),B(U,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=sd(t=id(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(U),B(U,e)}function K(){V(U),V(W),V(Y)}function Q(e){null!==e.memoizedState&&B(q,e);var t=U.current,n=sd(t,e.type);t!==n&&(B(W,e),B(U,n))}function Z(e){W.current===e&&(V(U),V(W)),q.current===e&&(V(q),Qd._currentValue=I)}var X=Object.prototype.hasOwnProperty,J=e.unstable_scheduleCallback,ee=e.unstable_cancelCallback,te=e.unstable_shouldYield,ne=e.unstable_requestPaint,re=e.unstable_now,oe=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,ie=e.unstable_UserBlockingPriority,se=e.unstable_NormalPriority,le=e.unstable_LowPriority,ue=e.unstable_IdlePriority,ce=e.log,de=e.unstable_setDisableYieldValue,fe=null,pe=null;function he(e){if("function"==typeof ce&&de(e),pe&&"function"==typeof pe.setStrictMode)try{pe.setStrictMode(fe,e)}catch(e){}}var me=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ge(e)/ye|0)|0},ge=Math.log,ye=Math.LN2;var ve=256,be=4194304;function we(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 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 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function xe(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,a=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~a)?o=we(r):0!==(i&=s)?o=we(i):n||0!==(n=s&~e)&&(o=we(n)):0!==(s=r&~a)?o=we(s):0!==i?o=we(i):n||0!==(n=r&~e)&&(o=we(n)),0===o?0:0!==t&&t!==o&&0===(t&a)&&((a=o&-o)>=(n=t&-t)||32===a&&4194048&n)?t:o}function Ce(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Se(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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;default:return-1}}function ke(){var e=ve;return!(4194048&(ve<<=1))&&(ve=256),e}function _e(){var e=be;return!(62914560&(be<<=1))&&(be=4194304),e}function Ee(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Re(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ne(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-me(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function je(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-me(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Pe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Oe(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Me(){var e=L.p;return 0!==e?e:void 0===(e=window.event)?32:ff(e.type)}var Te=Math.random().toString(36).slice(2),De="__reactFiber$"+Te,Ae="__reactProps$"+Te,Fe="__reactContainer$"+Te,Le="__reactEvents$"+Te,Ie="__reactListeners$"+Te,ze="__reactHandles$"+Te,$e="__reactResources$"+Te,He="__reactMarker$"+Te;function Ve(e){delete e[De],delete e[Ae],delete e[Le],delete e[Ie],delete e[ze]}function Be(e){var t=e[De];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Fe]||n[De]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=xd(e);null!==e;){if(n=e[De])return n;e=xd(e)}return t}n=(e=n).parentNode}return null}function Ue(e){if(e=e[De]||e[Fe]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function We(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function Ye(e){var t=e[$e];return t||(t=e[$e]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qe(e){e[He]=!0}var Ge=new Set,Ke={};function Qe(e,t){Ze(e,t),Ze(e+"Capture",t)}function Ze(e,t){for(Ke[e]=t,e=0;e<t.length;e++)Ge.add(t[e])}var Xe,Je,et=RegExp("^[: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]*$"),tt={},nt={};function rt(e,t,n){if(o=t,X.call(nt,o)||!X.call(tt,o)&&(et.test(o)?nt[o]=!0:(tt[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function ot(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function at(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function it(e){if(void 0===Xe)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Xe=t&&t[1]||"",Je=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Xe+e+Je}var st=!1;function lt(e,t){if(!e||st)return"";st=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=r.DetermineComponentFrameRoot(),i=a[0],s=a[1];if(i&&s){var l=i.split("\n"),u=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===u.length)for(r=l.length-1,o=u.length-1;1<=r&&0<=o&&l[r]!==u[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==u[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==u[o]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{st=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?it(n):""}function ut(e){switch(e.tag){case 26:case 27:case 5:return it(e.type);case 16:return it("Lazy");case 13:return it("Suspense");case 19:return it("SuspenseList");case 0:case 15:return lt(e.type,!1);case 11:return lt(e.type.render,!1);case 1:return lt(e.type,!0);case 31:return it("Activity");default:return""}}function ct(e){try{var t="";do{t+=ut(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){e._valueTracker||(e._valueTracker=function(e){var t=ft(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function mt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function yt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vt(e,t,n,r,o,a,i,s){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?wt(e,i,dt(t)):null!=n?wt(e,i,dt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=a&&(e.defaultChecked=!!a),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+dt(s):e.removeAttribute("name")}function bt(e,t,n,r,o,a,i,s){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(("submit"===a||"reset"===a)&&null==t)return;n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.name=i)}function wt(e,t,n){"number"===t&&mt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function xt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Ct(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function St(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(A(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o)}function kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var _t=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Et(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||_t.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Rt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var a in t)o=t[a],t.hasOwnProperty(a)&&n[a]!==o&&Et(e,a,o)}else for(var i in t)t.hasOwnProperty(i)&&Et(e,i,t[i])}function Nt(e){if(-1===e.indexOf("-"))return!1;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 jt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Pt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ot(e){return Pt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Mt=null;function Tt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Dt=null,At=null;function Ft(e){var t=Ue(e);if(t&&(e=t.stateNode)){var n=e[Ae]||null;e:switch(e=t.stateNode,t.type){case"input":if(vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var a=o[Ae]||null;if(!a)throw Error(r(90));vt(o,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&ht(o)}break e;case"textarea":Ct(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&xt(e,!!n.multiple,t,!1)}}}var Lt=!1;function It(e,t,n){if(Lt)return e(t,n);Lt=!0;try{return e(t)}finally{if(Lt=!1,(null!==Dt||null!==At)&&(Bu(),Dt&&(t=Dt,e=At,At=Dt=null,Ft(t),e)))for(t=0;t<e.length;t++)Ft(e[t])}}function zt(e,t){var n=e.stateNode;if(null===n)return null;var o=n[Ae]||null;if(null===o)return null;n=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var $t=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ht=!1;if($t)try{var Vt={};Object.defineProperty(Vt,"passive",{get:function(){Ht=!0}}),window.addEventListener("test",Vt,Vt),window.removeEventListener("test",Vt,Vt)}catch(e){Ht=!1}var Bt=null,Ut=null,Wt=null;function Yt(){if(Wt)return Wt;var e,t,n=Ut,r=n.length,o="value"in Bt?Bt.value:Bt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Wt=o.slice(e,1<t?1-t:void 0)}function qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Gt(){return!0}function Kt(){return!1}function Qt(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Gt:Kt,this.isPropagationStopped=Kt,this}return u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Gt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Gt)},persist:function(){},isPersistent:Gt}),t}var Zt,Xt,Jt,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Qt(en),nn=u({},en,{view:0,detail:0}),rn=Qt(nn),on=u({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jt&&(Jt&&"mousemove"===e.type?(Zt=e.screenX-Jt.screenX,Xt=e.screenY-Jt.screenY):Xt=Zt=0,Jt=e),Zt)},movementY:function(e){return"movementY"in e?e.movementY:Xt}}),an=Qt(on),sn=Qt(u({},on,{dataTransfer:0})),ln=Qt(u({},nn,{relatedTarget:0})),un=Qt(u({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),cn=Qt(u({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),dn=Qt(u({},en,{data:0})),fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={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"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function gn(){return mn}var yn=Qt(u({},nn,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),vn=Qt(u({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),bn=Qt(u({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),wn=Qt(u({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),xn=Qt(u({},on,{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})),Cn=Qt(u({},en,{newState:0,oldState:0})),Sn=[9,13,27,32],kn=$t&&"CompositionEvent"in window,_n=null;$t&&"documentMode"in document&&(_n=document.documentMode);var En=$t&&"TextEvent"in window&&!_n,Rn=$t&&(!kn||_n&&8<_n&&11>=_n),Nn=String.fromCharCode(32),jn=!1;function Pn(e,t){switch(e){case"keyup":return-1!==Sn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function On(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Mn=!1;var Tn={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 Dn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Tn[e.type]:"textarea"===t}function An(e,t,n,r){Dt?At?At.push(r):At=[r]:Dt=r,0<(t=Yc(t,"onChange")).length&&(n=new tn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fn=null,Ln=null;function In(e){Ic(e,0)}function zn(e){if(ht(We(e)))return e}function $n(e,t){if("change"===e)return t}var Hn=!1;if($t){var Vn;if($t){var Bn="oninput"in document;if(!Bn){var Un=document.createElement("div");Un.setAttribute("oninput","return;"),Bn="function"==typeof Un.oninput}Vn=Bn}else Vn=!1;Hn=Vn&&(!document.documentMode||9<document.documentMode)}function Wn(){Fn&&(Fn.detachEvent("onpropertychange",Yn),Ln=Fn=null)}function Yn(e){if("value"===e.propertyName&&zn(Ln)){var t=[];An(t,Ln,e,Tt(e)),It(In,t)}}function qn(e,t,n){"focusin"===e?(Wn(),Ln=n,(Fn=t).attachEvent("onpropertychange",Yn)):"focusout"===e&&Wn()}function Gn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zn(Ln)}function Kn(e,t){if("click"===e)return zn(t)}function Qn(e,t){if("input"===e||"change"===e)return zn(t)}var Zn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Xn(e,t){if(Zn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!X.call(t,o)||!Zn(e[o],t[o]))return!1}return!0}function Jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function er(e,t){var n,r=Jn(e);for(e=0;r;){if(3===r.nodeType){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=Jn(r)}}function tr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var or=$t&&"documentMode"in document&&11>=document.documentMode,ar=null,ir=null,sr=null,lr=!1;function ur(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;lr||null==ar||ar!==mt(r)||("selectionStart"in(r=ar)&&rr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sr&&Xn(sr,r)||(sr=r,0<(r=Yc(ir,"onSelect")).length&&(t=new tn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ar)))}function cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:cr("Animation","AnimationEnd"),animationiteration:cr("Animation","AnimationIteration"),animationstart:cr("Animation","AnimationStart"),transitionrun:cr("Transition","TransitionRun"),transitionstart:cr("Transition","TransitionStart"),transitioncancel:cr("Transition","TransitionCancel"),transitionend:cr("Transition","TransitionEnd")},fr={},pr={};function hr(e){if(fr[e])return fr[e];if(!dr[e])return e;var t,n=dr[e];for(t in n)if(n.hasOwnProperty(t)&&t in pr)return fr[e]=n[t];return e}$t&&(pr=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);var mr=hr("animationend"),gr=hr("animationiteration"),yr=hr("animationstart"),vr=hr("transitionrun"),br=hr("transitionstart"),wr=hr("transitioncancel"),xr=hr("transitionend"),Cr=new Map,Sr="abort auxClick beforeToggle 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 kr(e,t){Cr.set(e,t),Qe(t,[e])}Sr.push("scrollEnd");var _r=new WeakMap;function Er(e,t){if("object"==typeof e&&null!==e){var n=_r.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ct(t)},_r.set(e,t),t)}return{value:e,source:t,stack:ct(t)}}var Rr=[],Nr=0,jr=0;function Pr(){for(var e=Nr,t=jr=Nr=0;t<e;){var n=Rr[t];Rr[t++]=null;var r=Rr[t];Rr[t++]=null;var o=Rr[t];Rr[t++]=null;var a=Rr[t];if(Rr[t++]=null,null!==r&&null!==o){var i=r.pending;null===i?o.next=o:(o.next=i.next,i.next=o),r.pending=o}0!==a&&Dr(n,o,a)}}function Or(e,t,n,r){Rr[Nr++]=e,Rr[Nr++]=t,Rr[Nr++]=n,Rr[Nr++]=r,jr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Mr(e,t,n,r){return Or(e,t,n,r),Ar(e)}function Tr(e,t){return Or(e,null,null,t),Ar(e)}function Dr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,a=e.return;null!==a;)a.childLanes|=n,null!==(r=a.alternate)&&(r.childLanes|=n),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(o=!0)),e=a,a=a.return;return 3===e.tag?(a=e.stateNode,o&&null!==t&&(o=31-me(n),null===(r=(e=a.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),a):null}function Ar(e){if(50<Du)throw Du=0,Au=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Fr={};function Lr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ir(e,t,n,r){return new Lr(e,t,n,r)}function zr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $r(e,t){var n=e.alternate;return null===n?((n=Ir(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Hr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Vr(e,t,n,o,a,i){var s=0;if(o=e,"function"==typeof e)zr(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,U.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case j:return(e=Ir(31,n,t,a)).elementType=j,e.lanes=i,e;case h:return Br(n.children,a,i,t);case m:s=8,a|=24;break;case g:return(e=Ir(12,n,t,2|a)).elementType=g,e.lanes=i,e;case k:return(e=Ir(13,n,t,a)).elementType=k,e.lanes=i,e;case _:return(e=Ir(19,n,t,a)).elementType=_,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case v:case x:s=10;break e;case b:s=9;break e;case C:s=11;break e;case E:s=14;break e;case R:s=16,o=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=Ir(s,n,t,a)).elementType=e,t.type=o,t.lanes=i,t}function Br(e,t,n,r){return(e=Ir(7,e,r,t)).lanes=n,e}function Ur(e,t,n){return(e=Ir(6,e,null,t)).lanes=n,e}function Wr(e,t,n){return(t=Ir(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yr=[],qr=0,Gr=null,Kr=0,Qr=[],Zr=0,Xr=null,Jr=1,eo="";function to(e,t){Yr[qr++]=Kr,Yr[qr++]=Gr,Gr=e,Kr=t}function no(e,t,n){Qr[Zr++]=Jr,Qr[Zr++]=eo,Qr[Zr++]=Xr,Xr=e;var r=Jr;e=eo;var o=32-me(r)-1;r&=~(1<<o),n+=1;var a=32-me(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Jr=1<<32-me(t)+o|n<<o|r,eo=a+e}else Jr=1<<a|n<<o|r,eo=e}function ro(e){null!==e.return&&(to(e,1),no(e,1,0))}function oo(e){for(;e===Gr;)Gr=Yr[--qr],Yr[qr]=null,Kr=Yr[--qr],Yr[qr]=null;for(;e===Xr;)Xr=Qr[--Zr],Qr[Zr]=null,eo=Qr[--Zr],Qr[Zr]=null,Jr=Qr[--Zr],Qr[Zr]=null}var ao=null,io=null,so=!1,lo=null,uo=!1,co=Error(r(519));function fo(e){throw vo(Er(Error(r(418,"")),e)),co}function po(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[De]=e,t[Ae]=r,n){case"dialog":zc("cancel",t),zc("close",t);break;case"iframe":case"object":case"embed":zc("load",t);break;case"video":case"audio":for(n=0;n<Fc.length;n++)zc(Fc[n],t);break;case"source":zc("error",t);break;case"img":case"image":case"link":zc("error",t),zc("load",t);break;case"details":zc("toggle",t);break;case"input":zc("invalid",t),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),pt(t);break;case"select":zc("invalid",t);break;case"textarea":zc("invalid",t),St(t,r.value,r.defaultValue,r.children),pt(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Xc(t.textContent,n)?(null!=r.popover&&(zc("beforetoggle",t),zc("toggle",t)),null!=r.onScroll&&zc("scroll",t),null!=r.onScrollEnd&&zc("scrollend",t),null!=r.onClick&&(t.onclick=Jc),t=!0):t=!1,t||fo(e)}function ho(e){for(ao=e.return;ao;)switch(ao.tag){case 5:case 13:return void(uo=!1);case 27:case 3:return void(uo=!0);default:ao=ao.return}}function mo(e){if(e!==ao)return!1;if(!so)return ho(e),so=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||ld(e.type,e.memoizedProps)),t=!t),t&&io&&fo(e),ho(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){io=bd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}io=null}}else 27===n?(n=io,md(e.type)?(e=wd,wd=null,io=e):io=n):io=ao?bd(e.stateNode.nextSibling):null;return!0}function go(){io=ao=null,so=!1}function yo(){var e=lo;return null!==e&&(null===xu?xu=e:xu.push.apply(xu,e),lo=null),e}function vo(e){null===lo?lo=[e]:lo.push(e)}var bo=H(null),wo=null,xo=null;function Co(e,t,n){B(bo,t._currentValue),t._currentValue=n}function So(e){e._currentValue=bo.current,V(bo)}function ko(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _o(e,t,n,o){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var i=a.dependencies;if(null!==i){var s=a.child;i=i.firstContext;e:for(;null!==i;){var l=i;i=a;for(var u=0;u<t.length;u++)if(l.context===t[u]){i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),ko(i.return,n,e),o||(s=null);break e}i=l.next}}else if(18===a.tag){if(null===(s=a.return))throw Error(r(341));s.lanes|=n,null!==(i=s.alternate)&&(i.lanes|=n),ko(s,n,e),s=null}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===e){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}}function Eo(e,t,n,o){e=null;for(var a=t,i=!1;null!==a;){if(!i)if(524288&a.flags)i=!0;else if(262144&a.flags)break;if(10===a.tag){var s=a.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=a.type;Zn(a.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(a===q.current){if(null===(s=a.alternate))throw Error(r(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(Qd):e=[Qd])}a=a.return}null!==e&&_o(t,e,n,o),t.flags|=262144}function Ro(e){for(e=e.firstContext;null!==e;){if(!Zn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function No(e){wo=e,xo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function jo(e){return Oo(wo,e)}function Po(e,t){return null===wo&&No(e),Oo(e,t)}function Oo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===xo){if(null===e)throw Error(r(308));xo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xo=xo.next=t;return n}var Mo="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},To=e.unstable_scheduleCallback,Do=e.unstable_NormalPriority,Ao={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fo(){return{controller:new Mo,data:new Map,refCount:0}}function Lo(e){e.refCount--,0===e.refCount&&To(Do,function(){e.controller.abort()})}var Io=null,zo=0,$o=0,Ho=null;function Vo(){if(0===--zo&&null!==Io){null!==Ho&&(Ho.status="fulfilled");var e=Io;Io=null,$o=0,Ho=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Bo=F.S;F.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Io){var n=Io=[];zo=0,$o=Oc(),Ho={status:"pending",value:void 0,then:function(e){n.push(e)}}}zo++,t.then(Vo,Vo)}(0,t),null!==Bo&&Bo(e,t)};var Uo=H(null);function Wo(){var e=Uo.current;return null!==e?e:au.pooledCache}function Yo(e,t){B(Uo,null===t?Uo.current:t.pool)}function qo(){var e=Wo();return null===e?null:{parent:Ao._currentValue,pool:e}}var Go=Error(r(460)),Ko=Error(r(474)),Qo=Error(r(542)),Zo={then:function(){}};function Xo(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Jo(){}function ea(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Jo,Jo),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ra(e=t.reason),e;default:if("string"==typeof t.status)t.then(Jo,Jo);else{if(null!==(e=au)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ra(e=t.reason),e}throw ta=t,Go}}var ta=null;function na(){if(null===ta)throw Error(r(459));var e=ta;return ta=null,e}function ra(e){if(e===Go||e===Qo)throw Error(r(483))}var oa=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function sa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function la(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ou){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Ar(e),Dr(e,null,n),t}return Or(e,r,t,n),Ar(e)}function ua(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,je(e,n)}}function ca(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var da=!1;function fa(){if(da){if(null!==Ho)throw Ho}}function pa(e,t,n,r){da=!1;var o=e.updateQueue;oa=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var d=e.alternate;null!==d&&((s=(d=d.updateQueue).lastBaseUpdate)!==i&&(null===s?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(null!==a){var f=o.baseState;for(i=0,d=c=l=null,s=a;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(su&p)===p:(r&p)===p){0!==p&&p===$o&&(da=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;p=t;var y=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){f=m.call(y,f,p);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(y,f,p):m))break e;f=u({},f,p);break e;case 2:oa=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(c=d=h,l=f):d=d.next=h,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===d&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,null===a&&(o.shared.lanes=0),mu|=i,e.lanes=i,e.memoizedState=f}}function ha(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function ma(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)ha(n[e],t)}var ga=H(null),ya=H(0);function va(e,t){B(ya,e=pu),B(ga,t),pu=e|t.baseLanes}function ba(){B(ya,pu),B(ga,ga.current)}function wa(){pu=ya.current,V(ga),V(ya)}var xa=0,Ca=null,Sa=null,ka=null,_a=!1,Ea=!1,Ra=!1,Na=0,ja=0,Pa=null,Oa=0;function Ma(){throw Error(r(321))}function Ta(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zn(e[n],t[n]))return!1;return!0}function Da(e,t,n,r,o,a){return xa=a,Ca=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=null===e||null===e.memoizedState?Gi:Ki,Ra=!1,a=n(r,o),Ra=!1,Ea&&(a=Fa(t,n,r,o)),Aa(e),a}function Aa(e){F.H=qi;var t=null!==Sa&&null!==Sa.next;if(xa=0,ka=Sa=Ca=null,_a=!1,ja=0,Pa=null,t)throw Error(r(300));null===e||js||null!==(e=e.dependencies)&&Ro(e)&&(js=!0)}function Fa(e,t,n,o){Ca=e;var a=0;do{if(Ea&&(Pa=null),ja=0,Ea=!1,25<=a)throw Error(r(301));if(a+=1,ka=Sa=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}F.H=Qi,i=t(n,o)}while(Ea);return i}function La(){var e=F.H,t=e.useState()[0];return t="function"==typeof t.then?Ba(t):t,e=e.useState()[0],(null!==Sa?Sa.memoizedState:null)!==e&&(Ca.flags|=1024),t}function Ia(){var e=0!==Na;return Na=0,e}function za(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function $a(e){if(_a){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}_a=!1}xa=0,ka=Sa=Ca=null,Ea=!1,ja=Na=0,Pa=null}function Ha(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ka?Ca.memoizedState=ka=e:ka=ka.next=e,ka}function Va(){if(null===Sa){var e=Ca.alternate;e=null!==e?e.memoizedState:null}else e=Sa.next;var t=null===ka?Ca.memoizedState:ka.next;if(null!==t)ka=t,Sa=e;else{if(null===e){if(null===Ca.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Sa=e).memoizedState,baseState:Sa.baseState,baseQueue:Sa.baseQueue,queue:Sa.queue,next:null},null===ka?Ca.memoizedState=ka=e:ka=ka.next=e}return ka}function Ba(e){var t=ja;return ja+=1,null===Pa&&(Pa=[]),e=ea(Pa,e,t),t=Ca,null===(null===ka?t.memoizedState:ka.next)&&(t=t.alternate,F.H=null===t||null===t.memoizedState?Gi:Ki),e}function Ua(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Ba(e);if(e.$$typeof===x)return jo(e)}throw Error(r(438,String(e)))}function Wa(e){var t=null,n=Ca.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Ca.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Ca.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=P;return t.index++,n}function Ya(e,t){return"function"==typeof t?t(e):t}function qa(e){return Ga(Va(),Sa,e)}function Ga(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var a=e.baseQueue,i=o.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}t.baseQueue=a=i,o.pending=null}if(i=e.baseState,null===a)e.memoizedState=i;else{var l=s=null,u=null,c=t=a.next,d=!1;do{var f=-536870913&c.lane;if(f!==c.lane?(su&f)===f:(xa&f)===f){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===$o&&(d=!0);else{if((xa&p)===p){c=c.next,p===$o&&(d=!0);continue}f={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,s=i):u=u.next=f,Ca.lanes|=p,mu|=p}f=c.action,Ra&&n(i,f),i=c.hasEagerState?c.eagerState:n(i,f)}else p={lane:f,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,s=i):u=u.next=p,Ca.lanes|=f,mu|=f;c=c.next}while(null!==c&&c!==t);if(null===u?s=i:u.next=l,!Zn(i,e.memoizedState)&&(js=!0,d&&null!==(n=Ho)))throw n;e.memoizedState=i,e.baseState=s,e.baseQueue=u,o.lastRenderedState=i}return null===a&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Ka(e){var t=Va(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);Zn(i,t.memoizedState)||(js=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function Qa(e,t,n){var o=Ca,a=Va(),i=so;if(i){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!Zn((Sa||a).memoizedState,n);if(s&&(a.memoizedState=n,js=!0),a=a.queue,bi(2048,8,Ja.bind(null,o,a,e),[e]),a.getSnapshot!==t||s||null!==ka&&1&ka.memoizedState.tag){if(o.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Xa.bind(null,o,a,n,t),null),null===au)throw Error(r(349));i||124&xa||Za(o,t,n)}return n}function Za(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Ca.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Ca.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Xa(e,t,n,r){t.value=n,t.getSnapshot=r,ei(t)&&ti(e)}function Ja(e,t,n){return n(function(){ei(t)&&ti(e)})}function ei(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zn(e,n)}catch(e){return!0}}function ti(e){var t=Tr(e,2);null!==t&&Iu(t,e,2)}function ni(e){var t=Ha();if("function"==typeof e){var n=e;if(e=n(),Ra){he(!0);try{n()}finally{he(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:e},t}function ri(e,t,n,r){return e.baseState=n,Ga(e,Sa,"function"==typeof r?r:Ya)}function oi(e,t,n,o,a){if(Ui(e))throw Error(r(485));if(null!==(e=t.action)){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==F.T?n(!0):i.isTransition=!1,o(i),null===(n=t.pending)?(i.next=t.pending=i,ai(t,i)):(i.next=n.next,t.pending=n.next=i)}}function ai(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var a=F.T,i={};F.T=i;try{var s=n(o,r),l=F.S;null!==l&&l(i,s),ii(e,t,s)}catch(n){li(e,t,n)}finally{F.T=a}}else try{ii(e,t,a=n(o,r))}catch(n){li(e,t,n)}}function ii(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){si(e,t,n)},function(n){return li(e,t,n)}):si(e,t,n)}function si(e,t,n){t.status="fulfilled",t.value=n,ui(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,ai(e,n)))}function li(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,ui(t),t=t.next}while(t!==r)}e.action=null}function ui(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ci(e,t){return t}function di(e,t){if(so){var n=au.formState;if(null!==n){e:{var r=Ca;if(so){if(io){t:{for(var o=io,a=uo;8!==o.nodeType;){if(!a){o=null;break t}if(null===(o=bd(o.nextSibling))){o=null;break t}}o="F!"===(a=o.data)||"F"===a?o:null}if(o){io=bd(o.nextSibling),r="F!"===o.data;break e}}fo(r)}r=!1}r&&(t=n[0])}}return(n=Ha()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:t},n.queue=r,n=Hi.bind(null,Ca,r),r.dispatch=n,r=ni(!1),a=Bi.bind(null,Ca,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=Ha()).queue=o,n=oi.bind(null,Ca,o,a,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function fi(e){return pi(Va(),Sa,e)}function pi(e,t,n){if(t=Ga(e,t,ci)[0],e=qa(Ya)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Ba(t)}catch(e){if(e===Go)throw Qo;throw e}else r=t;var o=(t=Va()).queue,a=o.dispatch;return n!==t.memoizedState&&(Ca.flags|=2048,gi(9,{destroy:void 0,resource:void 0},hi.bind(null,o,n),null)),[r,a,e]}function hi(e,t){e.action=t}function mi(e){var t=Va(),n=Sa;if(null!==n)return pi(t,n,e);Va(),t=t.memoizedState;var r=(n=Va()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function gi(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Ca.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Ca.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function yi(){return Va().memoizedState}function vi(e,t,n,r){var o=Ha();r=void 0===r?null:r,Ca.flags|=e,o.memoizedState=gi(1|t,{destroy:void 0,resource:void 0},n,r)}function bi(e,t,n,r){var o=Va();r=void 0===r?null:r;var a=o.memoizedState.inst;null!==Sa&&null!==r&&Ta(r,Sa.memoizedState.deps)?o.memoizedState=gi(t,a,n,r):(Ca.flags|=e,o.memoizedState=gi(1|t,a,n,r))}function wi(e,t){vi(8390656,8,e,t)}function xi(e,t){bi(2048,8,e,t)}function Ci(e,t){return bi(4,2,e,t)}function Si(e,t){return bi(4,4,e,t)}function ki(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function _i(e,t,n){n=null!=n?n.concat([e]):null,bi(4,4,ki.bind(null,t,e),n)}function Ei(){}function Ri(e,t){var n=Va();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Ta(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ni(e,t){var n=Va();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Ta(t,r[1]))return r[0];if(r=e(),Ra){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r}function ji(e,t,n){return void 0===n||1073741824&xa?e.memoizedState=t:(e.memoizedState=n,e=Lu(),Ca.lanes|=e,mu|=e,n)}function Pi(e,t,n,r){return Zn(n,t)?n:null!==ga.current?(e=ji(e,n,r),Zn(e,t)||(js=!0),e):42&xa?(e=Lu(),Ca.lanes|=e,mu|=e,t):(js=!0,e.memoizedState=n)}function Oi(e,t,n,r,o){var a=L.p;L.p=0!==a&&8>a?a:8;var i,s,l,u=F.T,c={};F.T=c,Bi(e,!1,t,n);try{var d=o(),f=F.S;if(null!==f&&f(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then){var p=(i=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=i;for(var e=0;e<s.length;e++)(0,s[e])(i)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l);Vi(e,t,p,Fu())}else Vi(e,t,r,Fu())}catch(n){Vi(e,t,{then:function(){},status:"rejected",reason:n},Fu())}finally{L.p=a,F.T=u}}function Mi(){}function Ti(e,t,n,o){if(5!==e.tag)throw Error(r(476));var a=Di(e).queue;Oi(e,a,t,I,null===n?Mi:function(){return Ai(e),n(o)})}function Di(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:I},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Ai(e){Vi(e,Di(e).next.queue,{},Fu())}function Fi(){return jo(Qd)}function Li(){return Va().memoizedState}function Ii(){return Va().memoizedState}function zi(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Fu(),r=la(t,e=sa(n),n);return null!==r&&(Iu(r,t,n),ua(r,t,n)),t={cache:Fo()},void(e.payload=t)}t=t.return}}function $i(e,t,n){var r=Fu();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ui(e)?Wi(t,n):null!==(n=Mr(e,t,n,r))&&(Iu(n,e,r),Yi(n,t,r))}function Hi(e,t,n){Vi(e,t,n,Fu())}function Vi(e,t,n,r){var o={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ui(e))Wi(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,Zn(s,i))return Or(e,t,o,0),null===au&&Pr(),!1}catch(e){}if(null!==(n=Mr(e,t,o,r)))return Iu(n,e,r),Yi(n,t,r),!0}return!1}function Bi(e,t,n,o){if(o={lane:2,revertLane:Oc(),action:o,hasEagerState:!1,eagerState:null,next:null},Ui(e)){if(t)throw Error(r(479))}else null!==(t=Mr(e,n,o,2))&&Iu(t,e,2)}function Ui(e){var t=e.alternate;return e===Ca||null!==t&&t===Ca}function Wi(e,t){Ea=_a=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yi(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,je(e,n)}}var qi={readContext:jo,use:Ua,useCallback:Ma,useContext:Ma,useEffect:Ma,useImperativeHandle:Ma,useLayoutEffect:Ma,useInsertionEffect:Ma,useMemo:Ma,useReducer:Ma,useRef:Ma,useState:Ma,useDebugValue:Ma,useDeferredValue:Ma,useTransition:Ma,useSyncExternalStore:Ma,useId:Ma,useHostTransitionStatus:Ma,useFormState:Ma,useActionState:Ma,useOptimistic:Ma,useMemoCache:Ma,useCacheRefresh:Ma},Gi={readContext:jo,use:Ua,useCallback:function(e,t){return Ha().memoizedState=[e,void 0===t?null:t],e},useContext:jo,useEffect:wi,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,vi(4194308,4,ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vi(4194308,4,e,t)},useInsertionEffect:function(e,t){vi(4,2,e,t)},useMemo:function(e,t){var n=Ha();t=void 0===t?null:t;var r=e();if(Ra){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Ha();if(void 0!==n){var o=n(t);if(Ra){he(!0);try{n(t)}finally{he(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=$i.bind(null,Ca,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ha().memoizedState=e},useState:function(e){var t=(e=ni(e)).queue,n=Hi.bind(null,Ca,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ei,useDeferredValue:function(e,t){return ji(Ha(),e,t)},useTransition:function(){var e=ni(!1);return e=Oi.bind(null,Ca,e.queue,!0,!1),Ha().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=Ca,a=Ha();if(so){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===au)throw Error(r(349));124&su||Za(o,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,wi(Ja.bind(null,o,i,e),[e]),o.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Xa.bind(null,o,i,n,t),null),n},useId:function(){var e=Ha(),t=au.identifierPrefix;if(so){var n=eo;t="«"+t+"R"+(n=(Jr&~(1<<32-me(Jr)-1)).toString(32)+n),0<(n=Na++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Oa++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Fi,useFormState:di,useActionState:di,useOptimistic:function(e){var t=Ha();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Bi.bind(null,Ca,!0,n),n.dispatch=t,[e,t]},useMemoCache:Wa,useCacheRefresh:function(){return Ha().memoizedState=zi.bind(null,Ca)}},Ki={readContext:jo,use:Ua,useCallback:Ri,useContext:jo,useEffect:xi,useImperativeHandle:_i,useInsertionEffect:Ci,useLayoutEffect:Si,useMemo:Ni,useReducer:qa,useRef:yi,useState:function(){return qa(Ya)},useDebugValue:Ei,useDeferredValue:function(e,t){return Pi(Va(),Sa.memoizedState,e,t)},useTransition:function(){var e=qa(Ya)[0],t=Va().memoizedState;return["boolean"==typeof e?e:Ba(e),t]},useSyncExternalStore:Qa,useId:Li,useHostTransitionStatus:Fi,useFormState:fi,useActionState:fi,useOptimistic:function(e,t){return ri(Va(),0,e,t)},useMemoCache:Wa,useCacheRefresh:Ii},Qi={readContext:jo,use:Ua,useCallback:Ri,useContext:jo,useEffect:xi,useImperativeHandle:_i,useInsertionEffect:Ci,useLayoutEffect:Si,useMemo:Ni,useReducer:Ka,useRef:yi,useState:function(){return Ka(Ya)},useDebugValue:Ei,useDeferredValue:function(e,t){var n=Va();return null===Sa?ji(n,e,t):Pi(n,Sa.memoizedState,e,t)},useTransition:function(){var e=Ka(Ya)[0],t=Va().memoizedState;return["boolean"==typeof e?e:Ba(e),t]},useSyncExternalStore:Qa,useId:Li,useHostTransitionStatus:Fi,useFormState:mi,useActionState:mi,useOptimistic:function(e,t){var n=Va();return null!==Sa?ri(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Wa,useCacheRefresh:Ii},Zi=null,Xi=0;function Ji(e){var t=Xi;return Xi+=1,null===Zi&&(Zi=[]),ea(Zi,e,t)}function es(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ts(e,t){if(t.$$typeof===c)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ns(e){return(0,e._init)(e._payload)}function rs(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=$r(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ur(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===h?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===R&&ns(o)===t.type)?(es(t=a(t,n.props),n),t.return=e,t):(es(t=Vr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wr(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Br(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function m(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Ur(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case d:return es(n=Vr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case p:return(t=Wr(t,e.mode,n)).return=e,t;case R:return m(e,t=(0,t._init)(t._payload),n)}if(A(t)||M(t))return(t=Br(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return m(e,Ji(t),n);if(t.$$typeof===x)return m(e,Po(e,t),n);ts(e,t)}return null}function g(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case d:return n.key===o?u(e,t,n,r):null;case p:return n.key===o?c(e,t,n,r):null;case R:return g(e,t,n=(o=n._init)(n._payload),r)}if(A(n)||M(n))return null!==o?null:f(e,t,n,r,null);if("function"==typeof n.then)return g(e,t,Ji(n),r);if(n.$$typeof===x)return g(e,t,Po(e,n),r);ts(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case d:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case p:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return y(e,t,n,r=(0,r._init)(r._payload),o)}if(A(r)||M(r))return f(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,Ji(r),o);if(r.$$typeof===x)return y(e,t,n,Po(t,r),o);ts(t,r)}return null}function v(l,u,c,f){if("object"==typeof c&&null!==c&&c.type===h&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case d:e:{for(var b=c.key;null!==u;){if(u.key===b){if((b=c.type)===h){if(7===u.tag){n(l,u.sibling),(f=a(u,c.props.children)).return=l,l=f;break e}}else if(u.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===R&&ns(b)===u.type){n(l,u.sibling),es(f=a(u,c.props),c),f.return=l,l=f;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===h?((f=Br(c.props.children,l.mode,f,c.key)).return=l,l=f):(es(f=Vr(c.type,c.key,c.props,null,l.mode,f),c),f.return=l,l=f)}return s(l);case p:e:{for(b=c.key;null!==u;){if(u.key===b){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(f=a(u,c.children||[])).return=l,l=f;break e}n(l,u);break}t(l,u),u=u.sibling}(f=Wr(c,l.mode,f)).return=l,l=f}return s(l);case R:return v(l,u,c=(b=c._init)(c._payload),f)}if(A(c))return function(r,a,s,l){for(var u=null,c=null,d=a,f=a=0,p=null;null!==d&&f<s.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var h=g(r,d,s[f],l);if(null===h){null===d&&(d=p);break}e&&d&&null===h.alternate&&t(r,d),a=i(h,a,f),null===c?u=h:c.sibling=h,c=h,d=p}if(f===s.length)return n(r,d),so&&to(r,f),u;if(null===d){for(;f<s.length;f++)null!==(d=m(r,s[f],l))&&(a=i(d,a,f),null===c?u=d:c.sibling=d,c=d);return so&&to(r,f),u}for(d=o(d);f<s.length;f++)null!==(p=y(d,r,f,s[f],l))&&(e&&null!==p.alternate&&d.delete(null===p.key?f:p.key),a=i(p,a,f),null===c?u=p:c.sibling=p,c=p);return e&&d.forEach(function(e){return t(r,e)}),so&&to(r,f),u}(l,u,c,f);if(M(c)){if("function"!=typeof(b=M(c)))throw Error(r(150));return function(a,s,l,u){if(null==l)throw Error(r(151));for(var c=null,d=null,f=s,p=s=0,h=null,v=l.next();null!==f&&!v.done;p++,v=l.next()){f.index>p?(h=f,f=null):h=f.sibling;var b=g(a,f,v.value,u);if(null===b){null===f&&(f=h);break}e&&f&&null===b.alternate&&t(a,f),s=i(b,s,p),null===d?c=b:d.sibling=b,d=b,f=h}if(v.done)return n(a,f),so&&to(a,p),c;if(null===f){for(;!v.done;p++,v=l.next())null!==(v=m(a,v.value,u))&&(s=i(v,s,p),null===d?c=v:d.sibling=v,d=v);return so&&to(a,p),c}for(f=o(f);!v.done;p++,v=l.next())null!==(v=y(f,a,p,v.value,u))&&(e&&null!==v.alternate&&f.delete(null===v.key?p:v.key),s=i(v,s,p),null===d?c=v:d.sibling=v,d=v);return e&&f.forEach(function(e){return t(a,e)}),so&&to(a,p),c}(l,u,c=b.call(c),f)}if("function"==typeof c.then)return v(l,u,Ji(c),f);if(c.$$typeof===x)return v(l,u,Po(l,c),f);ts(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(f=a(u,c)).return=l,l=f):(n(l,u),(f=Ur(c,l.mode,f)).return=l,l=f),s(l)):n(l,u)}return function(e,t,n,r){try{Xi=0;var o=v(e,t,n,r);return Zi=null,o}catch(t){if(t===Go||t===Qo)throw t;var a=Ir(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var os=rs(!0),as=rs(!1),is=H(null),ss=null;function ls(e){var t=e.alternate;B(fs,1&fs.current),B(is,e),null===ss&&(null===t||null!==ga.current||null!==t.memoizedState)&&(ss=e)}function us(e){if(22===e.tag){if(B(fs,fs.current),B(is,e),null===ss){var t=e.alternate;null!==t&&null!==t.memoizedState&&(ss=e)}}else cs()}function cs(){B(fs,fs.current),B(is,is.current)}function ds(e){V(is),ss===e&&(ss=null),V(fs)}var fs=H(0);function ps(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||vd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function hs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ms={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fu(),o=sa(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=la(e,o,r))&&(Iu(t,e,r),ua(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fu(),o=sa(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=la(e,o,r))&&(Iu(t,e,r),ua(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fu(),r=sa(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=la(e,r,n))&&(Iu(t,e,n),ua(t,e,n))}};function gs(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Xn(n,r)||!Xn(o,a))}function ys(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ms.enqueueReplaceState(t,t.state,null)}function vs(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=u({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}var bs="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function ws(e){bs(e)}function xs(e){console.error(e)}function Cs(e){bs(e)}function Ss(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ks(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function _s(e,t,n){return(n=sa(n)).tag=3,n.payload={element:null},n.callback=function(){Ss(e,t)},n}function Es(e){return(e=sa(e)).tag=3,e}function Rs(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var a=r.value;e.payload=function(){return o(a)},e.callback=function(){ks(t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){ks(t,n,r),"function"!=typeof o&&(null===Eu?Eu=new Set([this]):Eu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ns=Error(r(461)),js=!1;function Ps(e,t,n,r){t.child=null===e?as(t,null,n,r):os(t,e.child,n,r)}function Os(e,t,n,r,o){n=n.render;var a=t.ref;if("ref"in r){var i={};for(var s in r)"ref"!==s&&(i[s]=r[s])}else i=r;return No(t),r=Da(e,t,n,i,a,o),s=Ia(),null===e||js?(so&&s&&ro(t),t.flags|=1,Ps(e,t,r,o),t.child):(za(e,t,o),Zs(e,t,o))}function Ms(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||zr(a)||void 0!==a.defaultProps||null!==n.compare?((e=Vr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ts(e,t,a,r,o))}if(a=e.child,!Xs(e,o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:Xn)(i,r)&&e.ref===t.ref)return Zs(e,t,o)}return t.flags|=1,(e=$r(a,r)).ref=t.ref,e.return=t,t.child=e}function Ts(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(Xn(a,r)&&e.ref===t.ref){if(js=!1,t.pendingProps=r=a,!Xs(e,o))return t.lanes=e.lanes,Zs(e,t,o);131072&e.flags&&(js=!0)}}return Ls(e,t,n,r,o)}function Ds(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==a?a.baseLanes|n:n,null!==e){for(o=t.child=e.child,a=0;null!==o;)a=a|o.lanes|o.childLanes,o=o.sibling;t.childLanes=a&~r}else t.childLanes=0,t.child=null;return As(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,As(e,t,null!==a?a.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Yo(0,null!==a?a.cachePool:null),null!==a?va(t,a):ba(),us(t)}else null!==a?(Yo(0,a.cachePool),va(t,a),cs(),t.memoizedState=null):(null!==e&&Yo(0,null),ba(),cs());return Ps(e,t,o,n),t.child}function As(e,t,n,r){var o=Wo();return o=null===o?null:{parent:Ao._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Yo(0,null),ba(),us(t),null!==e&&Eo(e,t,r,!0),null}function Fs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ls(e,t,n,r,o){return No(t),n=Da(e,t,n,r,void 0,o),r=Ia(),null===e||js?(so&&r&&ro(t),t.flags|=1,Ps(e,t,n,o),t.child):(za(e,t,o),Zs(e,t,o))}function Is(e,t,n,r,o,a){return No(t),t.updateQueue=null,n=Fa(t,r,n,o),Aa(e),r=Ia(),null===e||js?(so&&r&&ro(t),t.flags|=1,Ps(e,t,n,a),t.child):(za(e,t,a),Zs(e,t,a))}function zs(e,t,n,r,o){if(No(t),null===t.stateNode){var a=Fr,i=n.contextType;"object"==typeof i&&null!==i&&(a=jo(i)),a=new n(r,a),t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=ms,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=r,a.state=t.memoizedState,a.refs={},aa(t),i=n.contextType,a.context="object"==typeof i&&null!==i?jo(i):Fr,a.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(hs(t,n,i,r),a.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(i=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),i!==a.state&&ms.enqueueReplaceState(a,a.state,null),pa(t,r,a,o),fa(),a.state=t.memoizedState),"function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){a=t.stateNode;var s=t.memoizedProps,l=vs(n,s);a.props=l;var u=a.context,c=n.contextType;i=Fr,"object"==typeof c&&null!==c&&(i=jo(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s||u!==i)&&ys(t,a,r,i),oa=!1;var f=t.memoizedState;a.state=f,pa(t,r,a,o),fa(),u=t.memoizedState,s||f!==u||oa?("function"==typeof d&&(hs(t,n,d,r),u=t.memoizedState),(l=oa||gs(t,n,l,r,f,u,i))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=i,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ia(e,t),c=vs(n,i=t.memoizedProps),a.props=c,d=t.pendingProps,f=a.context,u=n.contextType,l=Fr,"object"==typeof u&&null!==u&&(l=jo(u)),(u="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(i!==d||f!==l)&&ys(t,a,r,l),oa=!1,f=t.memoizedState,a.state=f,pa(t,r,a,o),fa();var p=t.memoizedState;i!==d||f!==p||oa||null!==e&&null!==e.dependencies&&Ro(e.dependencies)?("function"==typeof s&&(hs(t,n,s,r),p=t.memoizedState),(c=oa||gs(t,n,c,r,f,p,l)||null!==e&&null!==e.dependencies&&Ro(e.dependencies))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Fs(e,t),r=!!(128&t.flags),a||r?(a=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:a.render(),t.flags|=1,null!==e&&r?(t.child=os(t,e.child,null,o),t.child=os(t,null,n,o)):Ps(e,t,n,o),t.memoizedState=a.state,e=t.child):e=Zs(e,t,o),e}function $s(e,t,n,r){return go(),t.flags|=256,Ps(e,t,n,r),t.child}var Hs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vs(e){return{baseLanes:e,cachePool:qo()}}function Bs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=vu),e}function Us(e,t,n){var o,a=t.pendingProps,i=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&fs.current)),o&&(i=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(so){if(i?ls(t):cs(),so){var l,u=io;if(l=u){e:{for(l=u,u=uo;8!==l.nodeType;){if(!u){u=null;break e}if(null===(l=bd(l.nextSibling))){u=null;break e}}u=l}null!==u?(t.memoizedState={dehydrated:u,treeContext:null!==Xr?{id:Jr,overflow:eo}:null,retryLane:536870912,hydrationErrors:null},(l=Ir(18,null,null,0)).stateNode=u,l.return=t,t.child=l,ao=t,io=null,l=!0):l=!1}l||fo(t)}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return vd(u)?t.lanes=32:t.lanes=536870912,null;ds(t)}return u=a.children,a=a.fallback,i?(cs(),u=Ys({mode:"hidden",children:u},i=t.mode),a=Br(a,i,n,null),u.return=t,a.return=t,u.sibling=a,t.child=u,(i=t.child).memoizedState=Vs(n),i.childLanes=Bs(e,o,n),t.memoizedState=Hs,a):(ls(t),Ws(t,u))}if(null!==(l=e.memoizedState)&&null!==(u=l.dehydrated)){if(s)256&t.flags?(ls(t),t.flags&=-257,t=qs(e,t,n)):null!==t.memoizedState?(cs(),t.child=e.child,t.flags|=128,t=null):(cs(),i=a.fallback,u=t.mode,a=Ys({mode:"visible",children:a.children},u),(i=Br(i,u,n,null)).flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,os(t,e.child,null,n),(a=t.child).memoizedState=Vs(n),a.childLanes=Bs(e,o,n),t.memoizedState=Hs,t=i);else if(ls(t),vd(u)){if(o=u.nextSibling&&u.nextSibling.dataset)var c=o.dgst;o=c,(a=Error(r(419))).stack="",a.digest=o,vo({value:a,source:null,stack:null}),t=qs(e,t,n)}else if(js||Eo(e,t,n,!1),o=0!==(n&e.childLanes),js||o){if(null!==(o=au)&&(0!==(a=0!==((a=42&(a=n&-n)?1:Pe(a))&(o.suspendedLanes|n))?0:a)&&a!==l.retryLane))throw l.retryLane=a,Tr(e,a),Iu(o,e,a),Ns;"$?"===u.data||Ku(),t=qs(e,t,n)}else"$?"===u.data?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,io=bd(u.nextSibling),ao=t,so=!0,lo=null,uo=!1,null!==e&&(Qr[Zr++]=Jr,Qr[Zr++]=eo,Qr[Zr++]=Xr,Jr=e.id,eo=e.overflow,Xr=t),(t=Ws(t,a.children)).flags|=4096);return t}return i?(cs(),i=a.fallback,u=t.mode,c=(l=e.child).sibling,(a=$r(l,{mode:"hidden",children:a.children})).subtreeFlags=65011712&l.subtreeFlags,null!==c?i=$r(c,i):(i=Br(i,u,n,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,null===(u=e.child.memoizedState)?u=Vs(n):(null!==(l=u.cachePool)?(c=Ao._currentValue,l=l.parent!==c?{parent:c,pool:c}:l):l=qo(),u={baseLanes:u.baseLanes|n,cachePool:l}),i.memoizedState=u,i.childLanes=Bs(e,o,n),t.memoizedState=Hs,a):(ls(t),e=(n=e.child).sibling,(n=$r(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Ws(e,t){return(t=Ys({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Ys(e,t){return(e=Ir(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function qs(e,t,n){return os(t,e.child,null,n),(e=Ws(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Gs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ko(e.return,t,n)}function Ks(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Qs(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Ps(e,t,r.children,n),2&(r=fs.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Gs(e,n,t);else if(19===e.tag)Gs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(B(fs,r),o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ps(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ks(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ps(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ks(t,!0,n,null,a);break;case"together":Ks(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),mu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Eo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=$r(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$r(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Xs(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ro(e))}function Js(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)js=!0;else{if(!(Xs(e,n)||128&t.flags))return js=!1,function(e,t,n){switch(t.tag){case 3:G(t,t.stateNode.containerInfo),Co(0,Ao,e.memoizedState.cache),go();break;case 27:case 5:Q(t);break;case 4:G(t,t.stateNode.containerInfo);break;case 10:Co(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(ls(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Us(e,t,n):(ls(t),null!==(e=Zs(e,t,n))?e.sibling:null);ls(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Eo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return Qs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(fs,fs.current),r)break;return null;case 22:case 23:return t.lanes=0,Ds(e,t,n);case 24:Co(0,Ao,e.memoizedState.cache)}return Zs(e,t,n)}(e,t,n);js=!!(131072&e.flags)}else js=!1,so&&1048576&t.flags&&no(t,Kr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,a=o._init;if(o=a(o._payload),t.type=o,"function"!=typeof o){if(null!=o){if((a=o.$$typeof)===C){t.tag=11,t=Os(null,t,o,e,n);break e}if(a===E){t.tag=14,t=Ms(null,t,o,e,n);break e}}throw t=D(o)||o,Error(r(306,t,""))}zr(o)?(e=vs(o,e),t.tag=1,t=zs(null,t,o,e,n)):(t.tag=0,t=Ls(null,t,o,e,n))}return t;case 0:return Ls(e,t,t.type,t.pendingProps,n);case 1:return zs(e,t,o=t.type,a=vs(o,t.pendingProps),n);case 3:e:{if(G(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var i=t.memoizedState;a=i.element,ia(e,t),pa(t,o,null,n);var s=t.memoizedState;if(o=s.cache,Co(0,Ao,o),o!==i.cache&&_o(t,[Ao],n,!0),fa(),o=s.element,i.isDehydrated){if(i={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=$s(e,t,o,n);break e}if(o!==a){vo(a=Er(Error(r(424)),t)),t=$s(e,t,o,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(io=bd(e.firstChild),ao=t,so=!0,lo=null,uo=!0,n=as(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(go(),o===a){t=Zs(e,t,n);break e}Ps(e,t,o,n)}t=t.child}return t;case 26:return Fs(e,t),null===e?(n=Pd(t.type,null,t.pendingProps,null))?t.memoizedState=n:so||(n=t.type,e=t.pendingProps,(o=ad(Y.current).createElement(n))[De]=t,o[Ae]=e,nd(o,n,e),qe(o),t.stateNode=o):t.memoizedState=Pd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Q(t),null===e&&so&&(o=t.stateNode=Cd(t.type,t.pendingProps,Y.current),ao=t,uo=!0,a=io,md(t.type)?(wd=a,io=bd(o.firstChild)):io=a),Ps(e,t,t.pendingProps.children,n),Fs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&so&&((a=o=io)&&(null!==(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[He])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(a=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(a!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((a=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var a=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===a)return e}if(null===(e=bd(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,uo))?(t.stateNode=o,ao=t,io=bd(o.firstChild),uo=!1,a=!0):a=!1),a||fo(t)),Q(t),a=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,o=i.children,ld(a,i)?o=null:null!==s&&ld(a,s)&&(t.flags|=32),null!==t.memoizedState&&(a=Da(e,t,La,null,null,n),Qd._currentValue=a),Fs(e,t),Ps(e,t,o,n),t.child;case 6:return null===e&&so&&((e=n=io)&&(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=bd(e.nextSibling)))return null}return e}(n,t.pendingProps,uo),null!==n?(t.stateNode=n,ao=t,io=null,e=!0):e=!1),e||fo(t)),null;case 13:return Us(e,t,n);case 4:return G(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=os(t,null,o,n):Ps(e,t,o,n),t.child;case 11:return Os(e,t,t.type,t.pendingProps,n);case 7:return Ps(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ps(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Co(0,t.type,o.value),Ps(e,t,o.children,n),t.child;case 9:return a=t.type._context,o=t.pendingProps.children,No(t),o=o(a=jo(a)),t.flags|=1,Ps(e,t,o,n),t.child;case 14:return Ms(e,t,t.type,t.pendingProps,n);case 15:return Ts(e,t,t.type,t.pendingProps,n);case 19:return Qs(e,t,n);case 31:return o=t.pendingProps,n=t.mode,o={mode:o.mode,children:o.children},null===e?((n=Ys(o,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=$r(e.child,o)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Ds(e,t,n);case 24:return No(t),o=jo(Ao),null===e?(null===(a=Wo())&&(a=au,i=Fo(),a.pooledCache=i,i.refCount++,null!==i&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:o,cache:a},aa(t),Co(0,Ao,a)):(0!==(e.lanes&n)&&(ia(e,t),pa(t,null,null,n),fa()),a=e.memoizedState,i=t.memoizedState,a.parent!==o?(a={parent:o,cache:o},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),Co(0,Ao,o)):(o=i.cache,Co(0,Ao,o),o!==a.cache&&_o(t,[Ao],n,!0))),Ps(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function el(e){e.flags|=4}function tl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Bd(t)){if(null!==(t=is.current)&&((4194048&su)===su?null!==ss:(62914560&su)!==su&&!(536870912&su)||t!==ss))throw ta=Zo,Ko;e.flags|=8192}}function nl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?_e():536870912,e.lanes|=t,bu|=t)}function rl(e,t){if(!so)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ol(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function al(e,t,n){var o=t.pendingProps;switch(oo(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return ol(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),So(Ao),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(mo(t)?el(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,yo())),ol(t),null;case 26:return n=t.memoizedState,null===e?(el(t),null!==n?(ol(t),tl(t,n)):(ol(t),t.flags&=-16777217)):n?n!==e.memoizedState?(el(t),ol(t),tl(t,n)):(ol(t),t.flags&=-16777217):(e.memoizedProps!==o&&el(t),ol(t),t.flags&=-16777217),null;case 27:Z(t),n=Y.current;var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==o&&el(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return ol(t),null}e=U.current,mo(t)?po(t):(e=Cd(a,o,n),t.stateNode=e,el(t))}return ol(t),null;case 5:if(Z(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&el(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return ol(t),null}if(e=U.current,mo(t))po(t);else{switch(a=ad(Y.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof o.is?a.createElement("select",{is:o.is}):a.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e="string"==typeof o.is?a.createElement(n,{is:o.is}):a.createElement(n)}}e[De]=t,e[Ae]=o;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(nd(e,n,o),n){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&el(t)}}return ol(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&el(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=Y.current,mo(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(a=ao))switch(a.tag){case 27:case 5:o=a.memoizedProps}e[De]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||Xc(e.nodeValue,n)))||fo(t)}else(e=ad(e).createTextNode(o))[De]=t,t.stateNode=e}return ol(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=mo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!a)throw Error(r(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(r(317));a[De]=t}else go(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ol(t),a=!1}else a=yo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(ds(t),t):(ds(t),null)}if(ds(t),128&t.flags)return t.lanes=n,t;if(n=null!==o,e=null!==e&&null!==e.memoizedState,n){a=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(a=o.alternate.memoizedState.cachePool.pool);var i=null;null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(i=o.memoizedState.cachePool.pool),i!==a&&(o.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),nl(t,t.updateQueue),ol(t),null;case 4:return K(),null===e&&Vc(t.stateNode.containerInfo),ol(t),null;case 10:return So(t.type),ol(t),null;case 19:if(V(fs),null===(a=t.memoizedState))return ol(t),null;if(o=!!(128&t.flags),null===(i=a.rendering))if(o)rl(a,!1);else{if(0!==hu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=ps(e))){for(t.flags|=128,rl(a,!1),e=i.updateQueue,t.updateQueue=e,nl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Hr(n,e),n=n.sibling;return B(fs,1&fs.current|2),t.child}e=e.sibling}null!==a.tail&&re()>ku&&(t.flags|=128,o=!0,rl(a,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=ps(i))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,nl(t,e),rl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!so)return ol(t),null}else 2*re()-a.renderingStartTime>ku&&536870912!==n&&(t.flags|=128,o=!0,rl(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=a.last)?e.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=re(),t.sibling=null,e=fs.current,B(fs,o?1&e|2:1&e),t):(ol(t),null);case 22:case 23:return ds(t),wa(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(ol(t),6&t.subtreeFlags&&(t.flags|=8192)):ol(t),null!==(n=t.updateQueue)&&nl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&V(Uo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),So(Ao),ol(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function il(e,t){switch(oo(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return So(Ao),K(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Z(t),null;case 13:if(ds(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));go()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return V(fs),null;case 4:return K(),null;case 10:return So(t.type),null;case 22:case 23:return ds(t),wa(),null!==e&&V(Uo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return So(Ao),null;default:return null}}function sl(e,t){switch(oo(t),t.tag){case 3:So(Ao),K();break;case 26:case 27:case 5:Z(t);break;case 4:K();break;case 13:ds(t);break;case 19:V(fs);break;case 10:So(t.type);break;case 22:case 23:ds(t),wa(),null!==e&&V(Uo);break;case 24:So(Ao)}}function ll(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var a=n.create,i=n.inst;r=a(),i.destroy=r}n=n.next}while(n!==o)}}catch(e){fc(t,t.return,e)}}function ul(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var a=o.next;r=a;do{if((r.tag&e)===e){var i=r.inst,s=i.destroy;if(void 0!==s){i.destroy=void 0,o=t;var l=n,u=s;try{u()}catch(e){fc(o,l,e)}}}r=r.next}while(r!==a)}}catch(e){fc(t,t.return,e)}}function cl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{ma(t,n)}catch(t){fc(e,e.return,t)}}}function dl(e,t,n){n.props=vs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){fc(e,t,n)}}function fl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){fc(e,t,n)}}function pl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){fc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){fc(e,t,n)}else n.current=null}function hl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){fc(e,e.return,t)}}function ml(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,s=null,l=null,u=null,c=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":u=f;default:o.hasOwnProperty(h)||ed(e,t,h,null,o,f)}}for(var p in o){var h=o[p];if(f=n[p],o.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":i=h;break;case"name":a=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&ed(e,t,p,h,o,f)}}return void vt(e,s,l,u,c,d,i,a);case"select":for(i in h=s=l=p=null,n)if(u=n[i],n.hasOwnProperty(i)&&null!=u)switch(i){case"value":break;case"multiple":h=u;default:o.hasOwnProperty(i)||ed(e,t,i,null,o,u)}for(a in o)if(i=o[a],u=n[a],o.hasOwnProperty(a)&&(null!=i||null!=u))switch(a){case"value":p=i;break;case"defaultValue":l=i;break;case"multiple":s=i;default:i!==u&&ed(e,t,a,i,o,u)}return t=l,n=s,o=h,void(null!=p?xt(e,!!n,p,!1):!!o!=!!n&&(null!=t?xt(e,!!n,t,!0):xt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(a=n[l],n.hasOwnProperty(l)&&null!=a&&!o.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ed(e,t,l,null,o,a)}for(s in o)if(a=o[s],i=n[s],o.hasOwnProperty(s)&&(null!=a||null!=i))switch(s){case"value":p=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(r(91));break;default:a!==i&&ed(e,t,s,a,o,i)}return void Ct(e,p,h);case"option":for(var m in n)if(p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m))if("selected"===m)e.selected=!1;else ed(e,t,m,null,o,p);for(u in o)if(p=o[u],h=n[u],o.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))if("selected"===u)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else ed(e,t,u,p,o,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!o.hasOwnProperty(g)&&ed(e,t,g,null,o,p);for(c in o)if(p=o[c],h=n[c],o.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:ed(e,t,c,p,o,h)}return;default:if(Nt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&td(e,t,y,void 0,o,p);for(d in o)p=o[d],h=n[d],!o.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||td(e,t,d,p,o,h);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!o.hasOwnProperty(v)&&ed(e,t,v,null,o,p);for(f in o)p=o[f],h=n[f],!o.hasOwnProperty(f)||p===h||null==p&&null==h||ed(e,t,f,p,o,h)}(o,e.type,n,t),o[Ae]=t}catch(t){fc(e,e.return,t)}}function gl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&md(e.type)||4===e.tag}function yl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||gl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&md(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function vl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jc));else if(4!==r&&(27===r&&md(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(vl(e,t,n),e=e.sibling;null!==e;)vl(e,t,n),e=e.sibling}function bl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&md(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(bl(e,t,n),e=e.sibling;null!==e;)bl(e,t,n),e=e.sibling}function wl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);nd(t,r,n),t[De]=e,t[Ae]=n}catch(t){fc(e,e.return,t)}}var xl=!1,Cl=!1,Sl=!1,kl="function"==typeof WeakSet?WeakSet:Set,_l=null;function El(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:zl(e,n),4&r&&ll(5,n);break;case 1:if(zl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){fc(n,n.return,e)}else{var o=vs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){fc(n,n.return,e)}}64&r&&cl(n),512&r&&fl(n,n.return);break;case 3:if(zl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{ma(e,t)}catch(e){fc(n,n.return,e)}}break;case 27:null===t&&4&r&&wl(n);case 26:case 5:zl(e,n),null===t&&4&r&&hl(n),512&r&&fl(n,n.return);break;case 12:zl(e,n);break;case 13:zl(e,n),4&r&&Ml(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=gc.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||xl)){t=null!==t&&null!==t.memoizedState||Cl,o=xl;var a=Cl;xl=r,(Cl=t)&&!a?Hl(e,n,!!(8772&n.subtreeFlags)):zl(e,n),xl=o,Cl=a}break;case 30:break;default:zl(e,n)}}function Rl(e){var t=e.alternate;null!==t&&(e.alternate=null,Rl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ve(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Nl=null,jl=!1;function Pl(e,t,n){for(n=n.child;null!==n;)Ol(e,t,n),n=n.sibling}function Ol(e,t,n){if(pe&&"function"==typeof pe.onCommitFiberUnmount)try{pe.onCommitFiberUnmount(fe,n)}catch(e){}switch(n.tag){case 26:Cl||pl(n,t),Pl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Cl||pl(n,t);var r=Nl,o=jl;md(n.type)&&(Nl=n.stateNode,jl=!1),Pl(e,t,n),Sd(n.stateNode),Nl=r,jl=o;break;case 5:Cl||pl(n,t);case 6:if(r=Nl,o=jl,Nl=null,Pl(e,t,n),jl=o,null!==(Nl=r))if(jl)try{(9===Nl.nodeType?Nl.body:"HTML"===Nl.nodeName?Nl.ownerDocument.body:Nl).removeChild(n.stateNode)}catch(e){fc(n,t,e)}else try{Nl.removeChild(n.stateNode)}catch(e){fc(n,t,e)}break;case 18:null!==Nl&&(jl?(gd(9===(e=Nl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Pf(e)):gd(Nl,n.stateNode));break;case 4:r=Nl,o=jl,Nl=n.stateNode.containerInfo,jl=!0,Pl(e,t,n),Nl=r,jl=o;break;case 0:case 11:case 14:case 15:Cl||ul(2,n,t),Cl||ul(4,n,t),Pl(e,t,n);break;case 1:Cl||(pl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&dl(n,t,r)),Pl(e,t,n);break;case 21:Pl(e,t,n);break;case 22:Cl=(r=Cl)||null!==n.memoizedState,Pl(e,t,n),Cl=r;break;default:Pl(e,t,n)}}function Ml(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Pf(e)}catch(e){fc(t,t.return,e)}}function Tl(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new kl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new kl),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){var r=yc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function Dl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var a=n[o],i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(md(l.type)){Nl=l.stateNode,jl=!1;break e}break;case 5:Nl=l.stateNode,jl=!1;break e;case 3:case 4:Nl=l.stateNode.containerInfo,jl=!0;break e}l=l.return}if(null===Nl)throw Error(r(160));Ol(i,s,a),Nl=null,jl=!1,null!==(i=a.alternate)&&(i.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Fl(t,e),t=t.sibling}var Al=null;function Fl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dl(t,e),Ll(e),4&o&&(ul(3,e,e.return),ll(3,e),ul(5,e,e.return));break;case 1:Dl(t,e),Ll(e),512&o&&(Cl||null===n||pl(n,n.return)),64&o&&xl&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var a=Al;if(Dl(t,e),Ll(e),512&o&&(Cl||null===n||pl(n,n.return)),4&o){var i=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(o){case"title":(!(i=a.getElementsByTagName("title")[0])||i[He]||i[De]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=a.createElement(o),a.head.insertBefore(i,a.querySelector("head > title"))),nd(i,o,n),i[De]=e,qe(i),o=i;break e;case"link":var s=Hd("link","href",a).get(o+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((i=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}nd(i=a.createElement(o),o,n),a.head.appendChild(i);break;case"meta":if(s=Hd("meta","content",a).get(o+(n.content||"")))for(l=0;l<s.length;l++)if((i=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}nd(i=a.createElement(o),o,n),a.head.appendChild(i);break;default:throw Error(r(468,o))}i[De]=e,qe(i),o=i}e.stateNode=o}else Vd(a,e.type,e.stateNode);else e.stateNode=Fd(a,o,e.memoizedProps);else i!==o?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===o?Vd(a,e.type,e.stateNode):Fd(a,o,e.memoizedProps)):null===o&&null!==e.stateNode&&ml(e,e.memoizedProps,n.memoizedProps)}break;case 27:Dl(t,e),Ll(e),512&o&&(Cl||null===n||pl(n,n.return)),null!==n&&4&o&&ml(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Dl(t,e),Ll(e),512&o&&(Cl||null===n||pl(n,n.return)),32&e.flags){a=e.stateNode;try{kt(a,"")}catch(t){fc(e,e.return,t)}}4&o&&null!=e.stateNode&&ml(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&o&&(Sl=!0);break;case 6:if(Dl(t,e),Ll(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(t){fc(e,e.return,t)}}break;case 3:if($d=null,a=Al,Al=Ed(t.containerInfo),Dl(t,e),Al=a,Ll(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Pf(t.containerInfo)}catch(t){fc(e,e.return,t)}Sl&&(Sl=!1,Il(e));break;case 4:o=Al,Al=Ed(e.stateNode.containerInfo),Dl(t,e),Ll(e),Al=o;break;case 12:default:Dl(t,e),Ll(e);break;case 13:Dl(t,e),Ll(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Su=re()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,Tl(e,o)));break;case 22:a=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=xl,d=Cl;if(xl=c||a,Cl=d||u,Dl(t,e),Cl=d,xl=c,Ll(e),8192&o)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||u||xl||Cl||$l(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(i=u.stateNode,a)"function"==typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=u.stateNode;var f=u.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){fc(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=a?"":u.memoizedProps}catch(e){fc(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,Tl(e,n))));break;case 19:Dl(t,e),Ll(e),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,Tl(e,o)));case 30:case 21:}}function Ll(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(gl(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var a=n.stateNode;bl(e,yl(e),a);break;case 5:var i=n.stateNode;32&n.flags&&(kt(i,""),n.flags&=-33),bl(e,yl(e),i);break;case 3:case 4:var s=n.stateNode.containerInfo;vl(e,yl(e),s);break;default:throw Error(r(161))}}catch(t){fc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Il(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Il(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function zl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)El(e,t.alternate,t),t=t.sibling}function $l(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ul(4,t,t.return),$l(t);break;case 1:pl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&dl(t,t.return,n),$l(t);break;case 27:Sd(t.stateNode);case 26:case 5:pl(t,t.return),$l(t);break;case 22:null===t.memoizedState&&$l(t);break;default:$l(t)}e=e.sibling}}function Hl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,a=t,i=a.flags;switch(a.tag){case 0:case 11:case 15:Hl(o,a,n),ll(4,a);break;case 1:if(Hl(o,a,n),"function"==typeof(o=(r=a).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){fc(r,r.return,e)}if(null!==(o=(r=a).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)ha(l[o],s)}catch(e){fc(r,r.return,e)}}n&&64&i&&cl(a),fl(a,a.return);break;case 27:wl(a);case 26:case 5:Hl(o,a,n),n&&null===r&&4&i&&hl(a),fl(a,a.return);break;case 12:Hl(o,a,n);break;case 13:Hl(o,a,n),n&&4&i&&Ml(o,a);break;case 22:null===a.memoizedState&&Hl(o,a,n),fl(a,a.return);break;case 30:break;default:Hl(o,a,n)}t=t.sibling}}function Vl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Lo(n))}function Bl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Lo(e))}function Ul(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Wl(e,t,n,r),t=t.sibling}function Wl(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ul(e,t,n,r),2048&o&&ll(9,t);break;case 1:case 13:default:Ul(e,t,n,r);break;case 3:Ul(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Lo(e)));break;case 12:if(2048&o){Ul(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,i=a.id,s=a.onPostCommit;"function"==typeof s&&s(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){fc(t,t.return,e)}}else Ul(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,i=t.alternate,null!==t.memoizedState?2&a._visibility?Ul(e,t,n,r):ql(e,t):2&a._visibility?Ul(e,t,n,r):(a._visibility|=2,Yl(e,t,n,r,!!(10256&t.subtreeFlags))),2048&o&&Vl(i,t);break;case 24:Ul(e,t,n,r),2048&o&&Bl(t.alternate,t)}}function Yl(e,t,n,r,o){for(o=o&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var a=e,i=t,s=n,l=r,u=i.flags;switch(i.tag){case 0:case 11:case 15:Yl(a,i,s,l,o),ll(8,i);break;case 23:break;case 22:var c=i.stateNode;null!==i.memoizedState?2&c._visibility?Yl(a,i,s,l,o):ql(a,i):(c._visibility|=2,Yl(a,i,s,l,o)),o&&2048&u&&Vl(i.alternate,i);break;case 24:Yl(a,i,s,l,o),o&&2048&u&&Bl(i.alternate,i);break;default:Yl(a,i,s,l,o)}t=t.sibling}}function ql(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:ql(n,r),2048&o&&Vl(r.alternate,r);break;case 24:ql(n,r),2048&o&&Bl(r.alternate,r);break;default:ql(n,r)}t=t.sibling}}var Gl=8192;function Kl(e){if(e.subtreeFlags&Gl)for(e=e.child;null!==e;)Ql(e),e=e.sibling}function Ql(e){switch(e.tag){case 26:Kl(e),e.flags&Gl&&null!==e.memoizedState&&function(e,t,n){if(null===Ud)throw Error(r(475));var o=Ud;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var a=Od(n.href),i=e.querySelector(Md(a));if(i)return null!==(e=i._p)&&"object"==typeof e&&"function"==typeof e.then&&(o.count++,o=Yd.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=i,void qe(i);i=e.ownerDocument||e,n=Td(n),(a=kd.get(a))&&Id(n,a),qe(i=i.createElement("link"));var s=i;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),nd(i,"link",n),t.instance=i}null===o.stylesheets&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(o.count++,t=Yd.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}(Al,e.memoizedState,e.memoizedProps);break;case 5:default:Kl(e);break;case 3:case 4:var t=Al;Al=Ed(e.stateNode.containerInfo),Kl(e),Al=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Gl,Gl=16777216,Kl(e),Gl=t):Kl(e))}}function Zl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Xl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];_l=r,tu(r,e)}Zl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Jl(e),e=e.sibling}function Jl(e){switch(e.tag){case 0:case 11:case 15:Xl(e),2048&e.flags&&ul(9,e,e.return);break;case 3:case 12:default:Xl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,eu(e)):Xl(e)}}function eu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];_l=r,tu(r,e)}Zl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:ul(8,t,t.return),eu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,eu(t));break;default:eu(t)}e=e.sibling}}function tu(e,t){for(;null!==_l;){var n=_l;switch(n.tag){case 0:case 11:case 15:ul(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Lo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,_l=r;else e:for(n=e;null!==_l;){var o=(r=_l).sibling,a=r.return;if(Rl(r),r===n){_l=null;break e}if(null!==o){o.return=a,_l=o;break e}_l=a}}}var nu={getCacheForType:function(e){var t=jo(Ao),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},ru="function"==typeof WeakMap?WeakMap:Map,ou=0,au=null,iu=null,su=0,lu=0,uu=null,cu=!1,du=!1,fu=!1,pu=0,hu=0,mu=0,gu=0,yu=0,vu=0,bu=0,wu=null,xu=null,Cu=!1,Su=0,ku=1/0,_u=null,Eu=null,Ru=0,Nu=null,ju=null,Pu=0,Ou=0,Mu=null,Tu=null,Du=0,Au=null;function Fu(){if(2&ou&&0!==su)return su&-su;if(null!==F.T){return 0!==$o?$o:Oc()}return Me()}function Lu(){0===vu&&(vu=536870912&su&&!so?536870912:ke());var e=is.current;return null!==e&&(e.flags|=32),vu}function Iu(e,t,n){(e!==au||2!==lu&&9!==lu)&&null===e.cancelPendingCommit||(Wu(e,0),Vu(e,su,vu,!1)),Re(e,n),2&ou&&e===au||(e===au&&(!(2&ou)&&(gu|=n),4===hu&&Vu(e,su,vu,!1)),kc(e))}function zu(e,t,n){if(6&ou)throw Error(r(327));for(var o=!n&&!(124&t)&&0===(t&e.expiredLanes)||Ce(e,t),a=o?function(e,t){var n=ou;ou|=2;var o=qu(),a=Gu();au!==e||su!==t?(_u=null,ku=re()+500,Wu(e,t)):du=Ce(e,t);e:for(;;)try{if(0!==lu&&null!==iu){t=iu;var i=uu;t:switch(lu){case 1:lu=0,uu=null,tc(e,t,i,1);break;case 2:case 9:if(Xo(i)){lu=0,uu=null,ec(t);break}t=function(){2!==lu&&9!==lu||au!==e||(lu=7),kc(e)},i.then(t,t);break e;case 3:lu=7;break e;case 4:lu=5;break e;case 7:Xo(i)?(lu=0,uu=null,ec(t)):(lu=0,uu=null,tc(e,t,i,7));break;case 5:var s=null;switch(iu.tag){case 26:s=iu.memoizedState;case 5:case 27:var l=iu;if(!s||Bd(s)){lu=0,uu=null;var u=l.sibling;if(null!==u)iu=u;else{var c=l.return;null!==c?(iu=c,nc(c)):iu=null}break t}}lu=0,uu=null,tc(e,t,i,5);break;case 6:lu=0,uu=null,tc(e,t,i,6);break;case 8:Uu(),hu=6;break e;default:throw Error(r(462))}}Xu();break}catch(t){Yu(e,t)}return xo=wo=null,F.H=o,F.A=a,ou=n,null!==iu?0:(au=null,su=0,Pr(),hu)}(e,t):Qu(e,t,!0),i=o;;){if(0===a){du&&!o&&Vu(e,t,0,!1);break}if(n=e.current.alternate,!i||Hu(n)){if(2===a){if(i=t,e.errorRecoveryDisabledLanes&i)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;a=wu;var u=l.current.memoizedState.isDehydrated;if(u&&(Wu(l,s).flags|=256),2!==(s=Qu(l,s,!1))){if(fu&&!u){l.errorRecoveryDisabledLanes|=i,gu|=i,a=4;break e}i=xu,xu=a,null!==i&&(null===xu?xu=i:xu.push.apply(xu,i))}a=s}if(i=!1,2!==a)continue}}if(1===a){Wu(e,0),Vu(e,t,0,!0);break}e:{switch(o=e,i=a){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:Vu(o,t,vu,!cu);break e;case 2:xu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(a=Su+300-re())){if(Vu(o,t,vu,!cu),0!==xe(o,0,!0))break e;o.timeoutHandle=cd($u.bind(null,o,n,xu,_u,Cu,t,vu,gu,bu,cu,i,2,-0,0),a)}else $u(o,n,xu,_u,Cu,t,vu,gu,bu,cu,i,0,-0,0)}break}a=Qu(e,t,!1),i=!1}kc(e)}function $u(e,t,n,o,a,i,s,l,u,c,d,f,p,h){if(e.timeoutHandle=-1,(8192&(f=t.subtreeFlags)||!(16785408&~f))&&(Ud={stylesheets:null,count:0,unsuspend:Wd},Ql(t),null!==(f=function(){if(null===Ud)throw Error(r(475));var e=Ud;return e.stylesheets&&0===e.count&&Gd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Gd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=f(oc.bind(null,e,t,i,n,o,a,s,l,u,d,1,p,h)),void Vu(e,i,s,!c);oc(e,t,i,n,o,a,s,l,u)}function Hu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!Zn(a(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vu(e,t,n,r){t&=~yu,t&=~gu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var a=31-me(o),i=1<<a;r[a]=-1,o&=~i}0!==n&&Ne(e,n,t)}function Bu(){return!!(6&ou)||(_c(0),!1)}function Uu(){if(null!==iu){if(0===lu)var e=iu.return;else xo=wo=null,$a(e=iu),Zi=null,Xi=0,e=iu;for(;null!==e;)sl(e.alternate,e),e=e.return;iu=null}}function Wu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,dd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Uu(),au=e,iu=n=$r(e.current,null),su=t,lu=0,uu=null,cu=!1,du=Ce(e,t),fu=!1,bu=vu=yu=gu=mu=hu=0,xu=wu=null,Cu=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-me(r),a=1<<o;t|=e[o],r&=~a}return pu=t,Pr(),n}function Yu(e,t){Ca=null,F.H=qi,t===Go||t===Qo?(t=na(),lu=3):t===Ko?(t=na(),lu=4):lu=t===Ns?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,uu=t,null===iu&&(hu=1,Ss(e,Er(t,e.current)))}function qu(){var e=F.H;return F.H=qi,null===e?qi:e}function Gu(){var e=F.A;return F.A=nu,e}function Ku(){hu=4,cu||(4194048&su)!==su&&null!==is.current||(du=!0),!(134217727&mu)&&!(134217727&gu)||null===au||Vu(au,su,vu,!1)}function Qu(e,t,n){var r=ou;ou|=2;var o=qu(),a=Gu();au===e&&su===t||(_u=null,Wu(e,t)),t=!1;var i=hu;e:for(;;)try{if(0!==lu&&null!==iu){var s=iu,l=uu;switch(lu){case 8:Uu(),i=6;break e;case 3:case 2:case 9:case 6:null===is.current&&(t=!0);var u=lu;if(lu=0,uu=null,tc(e,s,l,u),n&&du){i=0;break e}break;default:u=lu,lu=0,uu=null,tc(e,s,l,u)}}Zu(),i=hu;break}catch(t){Yu(e,t)}return t&&e.shellSuspendCounter++,xo=wo=null,ou=r,F.H=o,F.A=a,null===iu&&(au=null,su=0,Pr()),i}function Zu(){for(;null!==iu;)Ju(iu)}function Xu(){for(;null!==iu&&!te();)Ju(iu)}function Ju(e){var t=Js(e.alternate,e,pu);e.memoizedProps=e.pendingProps,null===t?nc(e):iu=t}function ec(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Is(n,t,t.pendingProps,t.type,void 0,su);break;case 11:t=Is(n,t,t.pendingProps,t.type.render,t.ref,su);break;case 5:$a(t);default:sl(n,t),t=Js(n,t=iu=Hr(t,pu),pu)}e.memoizedProps=e.pendingProps,null===t?nc(e):iu=t}function tc(e,t,n,o){xo=wo=null,$a(t),Zi=null,Xi=0;var a=t.return;try{if(function(e,t,n,o,a){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Eo(t,n,a,!0),null!==(n=is.current)){switch(n.tag){case 13:return null===ss?Ku():null===n.alternate&&0===hu&&(hu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,o===Zo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),pc(e,o,a)),!1;case 22:return n.flags|=65536,o===Zo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),pc(e,o,a)),!1}throw Error(r(435,n.tag))}return pc(e,o,a),Ku(),!1}if(so)return null!==(t=is.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,o!==co&&vo(Er(e=Error(r(422),{cause:o}),n))):(o!==co&&vo(Er(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,o=Er(o,n),ca(e,a=_s(e.stateNode,o,a)),4!==hu&&(hu=2)),!1;var i=Error(r(520),{cause:o});if(i=Er(i,n),null===wu?wu=[i]:wu.push(i),4!==hu&&(hu=2),null===t)return!0;o=Er(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,ca(n,e=_s(n.stateNode,o,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==Eu&&Eu.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,Rs(a=Es(a),e,n,o),ca(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,su))return hu=1,Ss(e,Er(n,e.current)),void(iu=null)}catch(t){if(null!==a)throw iu=a,t;return hu=1,Ss(e,Er(n,e.current)),void(iu=null)}32768&t.flags?(so||1===o?e=!0:du||536870912&su?e=!1:(cu=e=!0,(2===o||9===o||3===o||6===o)&&(null!==(o=is.current)&&13===o.tag&&(o.flags|=16384))),rc(t,e)):nc(t)}function nc(e){var t=e;do{if(32768&t.flags)return void rc(t,cu);e=t.return;var n=al(t.alternate,t,pu);if(null!==n)return void(iu=n);if(null!==(t=t.sibling))return void(iu=t);iu=t=e}while(null!==t);0===hu&&(hu=5)}function rc(e,t){do{var n=il(e.alternate,e);if(null!==n)return n.flags&=32767,void(iu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(iu=e);iu=e=n}while(null!==e);hu=6,iu=null}function oc(e,t,n,o,a,i,s,l,u){e.cancelPendingCommit=null;do{uc()}while(0!==Ru);if(6&ou)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,o,a){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=i&~n;0<n;){var c=31-me(n),d=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ne(e,r,0),0!==a&&0===o&&0!==e.tag&&(e.suspendedLanes|=a&~(i&~t))}(e,n,i|=jr,s,l,u),e===au&&(iu=au=null,su=0),ju=t,Nu=e,Pu=n,Ou=i,Mu=a,Tu=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,J(se,function(){return cc(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=F.T,F.T=null,a=L.p,L.p=2,s=ou,ou|=4;try{!function(e,t){if(e=e.containerInfo,rd=of,rr(e=nr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var a=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==a&&3!==f.nodeType||(l=s+a),f!==i||0!==o&&3!==f.nodeType||(u=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===a&&(l=s),p===i&&++d===o&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(od={focusedElem:e,selectionRange:n},of=!1,_l=t;null!==_l;)if(e=(t=_l).child,1024&t.subtreeFlags&&null!==e)e.return=t,_l=e;else for(;null!==_l;){switch(i=(t=_l).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,o=n.stateNode;try{var m=vs(n.type,a,(n.elementType,n.type));e=o.getSnapshotBeforeUpdate(m,i),o.__reactInternalSnapshotBeforeUpdate=e}catch(e){fc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))yd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,_l=e;break}_l=t.return}}(e,t)}finally{ou=s,L.p=a,F.T=o}}Ru=1,ac(),ic(),sc()}}function ac(){if(1===Ru){Ru=0;var e=Nu,t=ju,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=F.T,F.T=null;var r=L.p;L.p=2;var o=ou;ou|=4;try{Fl(t,e);var a=od,i=nr(e.containerInfo),s=a.focusedElem,l=a.selectionRange;if(i!==s&&s&&s.ownerDocument&&tr(s.ownerDocument.documentElement,s)){if(null!==l&&rr(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,m=Math.min(l.start,h),g=void 0===l.end?m:Math.min(l.end,h);!p.extend&&m>g&&(i=g,g=m,m=i);var y=er(s,m),v=er(s,g);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),m>g?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}of=!!rd,od=rd=null}finally{ou=o,L.p=r,F.T=n}}e.current=t,Ru=2}}function ic(){if(2===Ru){Ru=0;var e=Nu,t=ju,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=F.T,F.T=null;var r=L.p;L.p=2;var o=ou;ou|=4;try{El(e,t.alternate,t)}finally{ou=o,L.p=r,F.T=n}}Ru=3}}function sc(){if(4===Ru||3===Ru){Ru=0,ne();var e=Nu,t=ju,n=Pu,r=Tu;10256&t.subtreeFlags||10256&t.flags?Ru=5:(Ru=0,ju=Nu=null,lc(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Eu=null),Oe(n),t=t.stateNode,pe&&"function"==typeof pe.onCommitFiberRoot)try{pe.onCommitFiberRoot(fe,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=F.T,o=L.p,L.p=2,F.T=null;try{for(var a=e.onRecoverableError,i=0;i<r.length;i++){var s=r[i];a(s.value,{componentStack:s.stack})}}finally{F.T=t,L.p=o}}3&Pu&&uc(),kc(e),o=e.pendingLanes,4194090&n&&42&o?e===Au?Du++:(Du=0,Au=e):Du=0,_c(0)}}function lc(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Lo(t)))}function uc(e){return ac(),ic(),sc(),cc()}function cc(){if(5!==Ru)return!1;var e=Nu,t=Ou;Ou=0;var n=Oe(Pu),o=F.T,a=L.p;try{L.p=32>n?32:n,F.T=null,n=Mu,Mu=null;var i=Nu,s=Pu;if(Ru=0,ju=Nu=null,Pu=0,6&ou)throw Error(r(331));var l=ou;if(ou|=4,Jl(i.current),Wl(i,i.current,s,n),ou=l,_c(0,!1),pe&&"function"==typeof pe.onPostCommitFiberRoot)try{pe.onPostCommitFiberRoot(fe,i)}catch(e){}return!0}finally{L.p=a,F.T=o,lc(e,t)}}function dc(e,t,n){t=Er(n,t),null!==(e=la(e,t=_s(e.stateNode,t,2),2))&&(Re(e,2),kc(e))}function fc(e,t,n){if(3===e.tag)dc(e,e,n);else for(;null!==t;){if(3===t.tag){dc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Eu||!Eu.has(r))){e=Er(n,e),null!==(r=la(t,n=Es(2),2))&&(Rs(n,r,t,e),Re(r,2),kc(r));break}}t=t.return}}function pc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ru;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(fu=!0,o.add(n),e=hc.bind(null,e,t,n),t.then(e,e))}function hc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,au===e&&(su&n)===n&&(4===hu||3===hu&&(62914560&su)===su&&300>re()-Su?!(2&ou)&&Wu(e,0):yu|=n,bu===su&&(bu=0)),kc(e)}function mc(e,t){0===t&&(t=_e()),null!==(e=Tr(e,t))&&(Re(e,t),kc(e))}function gc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),mc(e,n)}function yc(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),mc(e,n)}var vc=null,bc=null,wc=!1,xc=!1,Cc=!1,Sc=0;function kc(e){e!==bc&&null===e.next&&(null===bc?vc=bc=e:bc=bc.next=e),xc=!0,wc||(wc=!0,pd(function(){6&ou?J(ae,Ec):Rc()}))}function _c(e,t){if(!Cc&&xc){Cc=!0;do{for(var n=!1,r=vc;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var a=0;else{var i=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-me(42|e)+1)-1,a=201326741&(a&=o&~(i&~s))?201326741&a|1:a?2|a:0}0!==a&&(n=!0,Pc(r,a))}else a=su,!(3&(a=xe(r,r===au?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ce(r,a)||(n=!0,Pc(r,a));r=r.next}}while(n);Cc=!1}}function Ec(){Rc()}function Rc(){xc=wc=!1;var e=0;0!==Sc&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==ud&&(ud=e,!0);return ud=null,!1}()&&(e=Sc),Sc=0);for(var t=re(),n=null,r=vc;null!==r;){var o=r.next,a=Nc(r,t);0===a?(r.next=null,null===n?vc=o:n.next=o,null===o&&(bc=n)):(n=r,(0!==e||3&a)&&(xc=!0)),r=o}_c(e)}function Nc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var i=31-me(a),s=1<<i,l=o[i];-1===l?0!==(s&n)&&0===(s&r)||(o[i]=Se(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}if(n=su,n=xe(e,e===(t=au)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===lu||9===lu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ce(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ee(r),Oe(n)){case 2:case 8:n=ie;break;case 32:default:n=se;break;case 268435456:n=ue}return r=jc.bind(null,e),n=J(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ee(r),e.callbackPriority=2,e.callbackNode=null,2}function jc(e,t){if(0!==Ru&&5!==Ru)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uc()&&e.callbackNode!==n)return null;var r=su;return 0===(r=xe(e,e===au?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(zu(e,r,t),Nc(e,re()),null!=e.callbackNode&&e.callbackNode===n?jc.bind(null,e):null)}function Pc(e,t){if(uc())return null;zu(e,t,!0)}function Oc(){return 0===Sc&&(Sc=ke()),Sc}function Mc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Ot(""+e)}function Tc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Dc=0;Dc<Sr.length;Dc++){var Ac=Sr[Dc];kr(Ac.toLowerCase(),"on"+(Ac[0].toUpperCase()+Ac.slice(1)))}kr(mr,"onAnimationEnd"),kr(gr,"onAnimationIteration"),kr(yr,"onAnimationStart"),kr("dblclick","onDoubleClick"),kr("focusin","onFocus"),kr("focusout","onBlur"),kr(vr,"onTransitionRun"),kr(br,"onTransitionStart"),kr(wr,"onTransitionCancel"),kr(xr,"onTransitionEnd"),Ze("onMouseEnter",["mouseout","mouseover"]),Ze("onMouseLeave",["mouseout","mouseover"]),Ze("onPointerEnter",["pointerout","pointerover"]),Ze("onPointerLeave",["pointerout","pointerover"]),Qe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fc="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(" "),Lc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fc));function Ic(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;a=s,o.currentTarget=u;try{a(o)}catch(e){bs(e)}o.currentTarget=null,a=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,u=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;a=s,o.currentTarget=u;try{a(o)}catch(e){bs(e)}o.currentTarget=null,a=l}}}}function zc(e,t){var n=t[Le];void 0===n&&(n=t[Le]=new Set);var r=e+"__bubble";n.has(r)||(Bc(t,e,2,!1),n.add(r))}function $c(e,t,n){var r=0;t&&(r|=4),Bc(n,e,r,t)}var Hc="_reactListening"+Math.random().toString(36).slice(2);function Vc(e){if(!e[Hc]){e[Hc]=!0,Ge.forEach(function(t){"selectionchange"!==t&&(Lc.has(t)||$c(t,!1,e),$c(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hc]||(t[Hc]=!0,$c("selectionchange",!1,t))}}function Bc(e,t,n,r){switch(ff(t)){case 2:var o=af;break;case 8:o=sf;break;default:o=lf}n=o.bind(null,t,n,e),o=void 0,!Ht||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Uc(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===o)break;if(4===s)for(s=r.return;null!==s;){var u=s.tag;if((3===u||4===u)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==l;){if(null===(s=Be(l)))return;if(5===(u=s.tag)||6===u||26===u||27===u){r=i=s;continue e}l=l.parentNode}}r=r.return}It(function(){var r=i,o=Tt(n),s=[];e:{var l=Cr.get(e);if(void 0!==l){var u=tn,c=e;switch(e){case"keypress":if(0===qt(n))break e;case"keydown":case"keyup":u=yn;break;case"focusin":c="focus",u=ln;break;case"focusout":c="blur",u=ln;break;case"beforeblur":case"afterblur":u=ln;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=an;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=sn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=bn;break;case mr:case gr:case yr:u=un;break;case xr:u=wn;break;case"scroll":case"scrollend":u=rn;break;case"wheel":u=xn;break;case"copy":case"cut":case"paste":u=cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=vn;break;case"toggle":case"beforetoggle":u=Cn}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===p||null!=(g=zt(m,p))&&d.push(Wc(m,g,h)),f)break;m=m.return}0<d.length&&(l=new u(l,c,null,n,o),s.push({event:l,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Mt||!(c=n.relatedTarget||n.fromElement)||!Be(c)&&!c[Fe])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Be(c):null)&&(f=a(c),d=c.tag,c!==f||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=an,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=vn,g="onPointerLeave",p="onPointerEnter",m="pointer"),f=null==u?l:We(u),h=null==c?l:We(c),(l=new d(g,m+"leave",u,n,o)).target=f,l.relatedTarget=h,g=null,Be(o)===r&&((d=new d(p,m+"enter",c,n,o)).target=h,d.relatedTarget=f,g=d),f=g,u&&c)e:{for(p=c,m=0,h=d=u;h;h=qc(h))m++;for(h=0,g=p;g;g=qc(g))h++;for(;0<m-h;)d=qc(d),m--;for(;0<h-m;)p=qc(p),h--;for(;m--;){if(d===p||null!==p&&d===p.alternate)break e;d=qc(d),p=qc(p)}d=null}else d=null;null!==u&&Gc(s,l,u,d,!1),null!==c&&null!==f&&Gc(s,f,c,d,!0)}if("select"===(u=(l=r?We(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y=$n;else if(Dn(l))if(Hn)y=Qn;else{y=Gn;var v=qn}else!(u=l.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Nt(r.elementType)&&(y=$n):y=Kn;switch(y&&(y=y(e,r))?An(s,y,n,o):(v&&v(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&wt(l,"number",l.value)),v=r?We(r):window,e){case"focusin":(Dn(v)||"true"===v.contentEditable)&&(ar=v,ir=r,sr=null);break;case"focusout":sr=ir=ar=null;break;case"mousedown":lr=!0;break;case"contextmenu":case"mouseup":case"dragend":lr=!1,ur(s,n,o);break;case"selectionchange":if(or)break;case"keydown":case"keyup":ur(s,n,o)}var b;if(kn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Mn?Pn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Rn&&"ko"!==n.locale&&(Mn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Mn&&(b=Yt()):(Ut="value"in(Bt=o)?Bt.value:Bt.textContent,Mn=!0)),0<(v=Yc(r,w)).length&&(w=new dn(w,e,null,n,o),s.push({event:w,listeners:v}),b?w.data=b:null!==(b=On(n))&&(w.data=b))),(b=En?function(e,t){switch(e){case"compositionend":return On(t);case"keypress":return 32!==t.which?null:(jn=!0,Nn);case"textInput":return(e=t.data)===Nn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Mn)return"compositionend"===e||!kn&&Pn(e,t)?(e=Yt(),Wt=Ut=Bt=null,Mn=!1,e):null;switch(e){case"paste":default: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 Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(w=Yc(r,"onBeforeInput")).length&&(v=new dn("onBeforeInput","beforeinput",null,n,o),s.push({event:v,listeners:w}),v.data=b)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var a=Mc((o[Ae]||null).action),i=r.submitter;i&&null!==(t=(t=i[Ae]||null)?Mc(t.formAction):i.getAttribute("formAction"))&&(a=t,i=null);var s=new tn("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Sc){var e=i?Tc(o,i):new FormData(o);Ti(n,{pending:!0,data:e,method:o.method,action:a},null,e)}}else"function"==typeof a&&(s.preventDefault(),e=i?Tc(o,i):new FormData(o),Ti(n,{pending:!0,data:e,method:o.method,action:a},a,e))},currentTarget:o}]})}}(s,e,r,n,o)}Ic(s,t)})}function Wc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yc(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===a||(null!=(o=zt(e,n))&&r.unshift(Wc(e,o,a)),null!=(o=zt(e,t))&&r.push(Wc(e,o,a))),3===e.tag)return r;e=e.return}return[]}function qc(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Gc(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,o?null!=(u=zt(n,a))&&i.unshift(Wc(n,u,l)):o||null!=(u=zt(n,a))&&i.push(Wc(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Kc=/\r\n?/g,Qc=/\u0000|\uFFFD/g;function Zc(e){return("string"==typeof e?e:""+e).replace(Kc,"\n").replace(Qc,"")}function Xc(e,t){return t=Zc(t),Zc(e)===t}function Jc(){}function ed(e,t,n,o,a,i){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||kt(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&kt(e,""+o);break;case"className":ot(e,"class",o);break;case"tabIndex":ot(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ot(e,n,o);break;case"style":Rt(e,o,i);break;case"data":if("object"!==t){ot(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Ot(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&ed(e,t,"name",a.name,a,null),ed(e,t,"formEncType",a.formEncType,a,null),ed(e,t,"formMethod",a.formMethod,a,null),ed(e,t,"formTarget",a.formTarget,a,null)):(ed(e,t,"encType",a.encType,a,null),ed(e,t,"method",a.method,a,null),ed(e,t,"target",a.target,a,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Ot(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=Jc);break;case"onScroll":null!=o&&zc("scroll",e);break;case"onScrollEnd":null!=o&&zc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=a.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Ot(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":zc("beforetoggle",e),zc("toggle",e),rt(e,"popover",o);break;case"xlinkActuate":at(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":at(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":at(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":at(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":at(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":at(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":at(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":at(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":at(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":rt(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&rt(e,n=jt.get(n)||n,o)}}function td(e,t,n,o,a,i){switch(n){case"style":Rt(e,o,i);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=a.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?kt(e,o):("number"==typeof o||"bigint"==typeof o)&&kt(e,""+o);break;case"onScroll":null!=o&&zc("scroll",e);break;case"onScrollEnd":null!=o&&zc("scrollend",e);break;case"onClick":null!=o&&(e.onclick=Jc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ke.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Ae]||null)?i[n]:null)&&e.removeEventListener(t,i,a),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):rt(e,n,o):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,a)))}}function nd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":zc("error",e),zc("load",e);var o,a=!1,i=!1;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(null!=s)switch(o){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,o,s,n,null)}}return i&&ed(e,t,"srcSet",n.srcSet,n,null),void(a&&ed(e,t,"src",n.src,n,null));case"input":zc("invalid",e);var l=o=s=i=null,u=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":i=d;break;case"type":s=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:ed(e,t,a,d,n,null)}}return bt(e,o,l,u,c,s,i,!1),void pt(e);case"select":for(i in zc("invalid",e),a=s=o=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":o=l;break;case"defaultValue":s=l;break;case"multiple":a=l;default:ed(e,t,i,l,n,null)}return t=o,n=s,e.multiple=!!a,void(null!=t?xt(e,!!a,t,!1):null!=n&&xt(e,!!a,n,!0));case"textarea":for(s in zc("invalid",e),o=i=a=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":a=l;break;case"defaultValue":i=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:ed(e,t,s,l,n,null)}return St(e,a,i,o),void pt(e);case"option":for(u in n)if(n.hasOwnProperty(u)&&null!=(a=n[u]))if("selected"===u)e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a;else ed(e,t,u,a,n,null);return;case"dialog":zc("beforetoggle",e),zc("toggle",e),zc("cancel",e),zc("close",e);break;case"iframe":case"object":zc("load",e);break;case"video":case"audio":for(a=0;a<Fc.length;a++)zc(Fc[a],e);break;case"image":zc("error",e),zc("load",e);break;case"details":zc("toggle",e);break;case"embed":case"source":case"link":zc("error",e),zc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,c,a,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(a=n[d])&&td(e,t,d,a,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(a=n[l])&&ed(e,t,l,a,n,null))}var rd=null,od=null;function ad(e){return 9===e.nodeType?e:e.ownerDocument}function id(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function ld(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ud=null;var cd="function"==typeof setTimeout?setTimeout:void 0,dd="function"==typeof clearTimeout?clearTimeout:void 0,fd="function"==typeof Promise?Promise:void 0,pd="function"==typeof queueMicrotask?queueMicrotask:void 0!==fd?function(e){return fd.resolve(null).then(e).catch(hd)}:cd;function hd(e){setTimeout(function(){throw e})}function md(e){return"head"===e}function gd(e,t){var n=t,r=0,o=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0<r&&8>r){n=r;var i=e.ownerDocument;if(1&n&&Sd(i.documentElement),2&n&&Sd(i.body),4&n)for(Sd(n=i.head),i=n.firstChild;i;){var s=i.nextSibling,l=i.nodeName;i[He]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=s}}if(0===o)return e.removeChild(a),void Pf(t);o--}else"$"===n||"$?"===n||"$!"===n?o++:r=n.charCodeAt(0)-48;else r=0;n=a}while(n);Pf(t)}function yd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":yd(n),Ve(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function vd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function bd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var wd=null;function xd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function Cd(e,t,n){switch(t=ad(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function Sd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ve(e)}var kd=new Map,_d=new Set;function Ed(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Rd=L.d;L.d={f:function(){var e=Rd.f(),t=Bu();return e||t},r:function(e){var t=Ue(e);null!==t&&5===t.tag&&"form"===t.type?Ai(t):Rd.r(e)},D:function(e){Rd.D(e),jd("dns-prefetch",e,null)},C:function(e,t){Rd.C(e,t),jd("preconnect",e,t)},L:function(e,t,n){Rd.L(e,t,n);var r=Nd;if(r&&e&&t){var o='link[rel="preload"][as="'+yt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+yt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+yt(n.imageSizes)+'"]')):o+='[href="'+yt(e)+'"]';var a=o;switch(t){case"style":a=Od(e);break;case"script":a=Dd(e)}kd.has(a)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),kd.set(a,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Md(a))||"script"===t&&r.querySelector(Ad(a))||(nd(t=r.createElement("link"),"link",e),qe(t),r.head.appendChild(t)))}},m:function(e,t){Rd.m(e,t);var n=Nd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+yt(r)+'"][href="'+yt(e)+'"]',a=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Dd(e)}if(!kd.has(a)&&(e=u({rel:"modulepreload",href:e},t),kd.set(a,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ad(a)))return}nd(r=n.createElement("link"),"link",e),qe(r),n.head.appendChild(r)}}},X:function(e,t){Rd.X(e,t);var n=Nd;if(n&&e){var r=Ye(n).hoistableScripts,o=Dd(e),a=r.get(o);a||((a=n.querySelector(Ad(o)))||(e=u({src:e,async:!0},t),(t=kd.get(o))&&zd(e,t),qe(a=n.createElement("script")),nd(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(o,a))}},S:function(e,t,n){Rd.S(e,t,n);var r=Nd;if(r&&e){var o=Ye(r).hoistableStyles,a=Od(e);t=t||"default";var i=o.get(a);if(!i){var s={loading:0,preload:null};if(i=r.querySelector(Md(a)))s.loading=5;else{e=u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=kd.get(a))&&Id(e,n);var l=i=r.createElement("link");qe(l),nd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Ld(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:s},o.set(a,i)}}},M:function(e,t){Rd.M(e,t);var n=Nd;if(n&&e){var r=Ye(n).hoistableScripts,o=Dd(e),a=r.get(o);a||((a=n.querySelector(Ad(o)))||(e=u({src:e,async:!0,type:"module"},t),(t=kd.get(o))&&zd(e,t),qe(a=n.createElement("script")),nd(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(o,a))}}};var Nd="undefined"==typeof document?null:document;function jd(e,t,n){var r=Nd;if(r&&"string"==typeof t&&t){var o=yt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),_d.has(o)||(_d.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(nd(t=r.createElement("link"),"link",e),qe(t),r.head.appendChild(t)))}}function Pd(e,t,n,o){var a,i,s,l,u=(u=Y.current)?Ed(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Od(n.href),(o=(n=Ye(u).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Od(n.href);var c=Ye(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Md(e)))&&!c._p&&(d.instance=c,d.state.loading=5),kd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},kd.set(e,n),c||(a=u,i=e,s=n,l=d.state,a.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=a.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),nd(i,"link",s),qe(i),a.head.appendChild(i))))),t&&null===o)throw Error(r(528,""));return d}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Dd(n),(o=(n=Ye(u).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Od(e){return'href="'+yt(e)+'"'}function Md(e){return'link[rel="stylesheet"]['+e+"]"}function Td(e){return u({},e,{"data-precedence":e.precedence,precedence:null})}function Dd(e){return'[src="'+yt(e)+'"]'}function Ad(e){return"script[async]"+e}function Fd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+yt(n.href)+'"]');if(o)return t.instance=o,qe(o),o;var a=u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return qe(o=(e.ownerDocument||e).createElement("style")),nd(o,"style",a),Ld(o,n.precedence,e),t.instance=o;case"stylesheet":a=Od(n.href);var i=e.querySelector(Md(a));if(i)return t.state.loading|=4,t.instance=i,qe(i),i;o=Td(n),(a=kd.get(a))&&Id(o,a),qe(i=(e.ownerDocument||e).createElement("link"));var s=i;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),nd(i,"link",o),t.state.loading|=4,Ld(i,n.precedence,e),t.instance=i;case"script":return i=Dd(n.src),(a=e.querySelector(Ad(i)))?(t.instance=a,qe(a),a):(o=n,(a=kd.get(i))&&zd(o=u({},n),a),qe(a=(e=e.ownerDocument||e).createElement("script")),nd(a,"link",o),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,Ld(o,n.precedence,e));return t.instance}function Ld(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,a=o,i=0;i<r.length;i++){var s=r[i];if(s.dataset.precedence===t)a=s;else if(a!==o)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Id(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var $d=null;function Hd(e,t,n){if(null===$d){var r=new Map,o=$d=new Map;o.set(n,r)}else(r=(o=$d).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var a=n[o];if(!(a[He]||a[De]||"link"===e&&"stylesheet"===a.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==a.namespaceURI){var i=a.getAttribute(t)||"";i=e+i;var s=r.get(i);s?s.push(a):r.set(i,[a])}}return r}function Vd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Bd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Ud=null;function Wd(){}function Yd(){if(this.count--,0===this.count)if(this.stylesheets)Gd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var qd=null;function Gd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,qd=new Map,t.forEach(Kd,e),qd=null,Yd.call(e))}function Kd(e,t){if(!(4&t.state.loading)){var n=qd.get(e);if(n)var r=n.get(null);else{n=new Map,qd.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<o.length;a++){var i=o[a];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(o=t.instance).getAttribute("data-precedence"),(a=n.get(i)||r)===r&&n.set(null,o),n.set(i,o),this.count++,r=Yd.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),a?a.parentNode.insertBefore(o,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var Qd={$$typeof:x,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Zd(e,t,n,r,o,a,i,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ee(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ee(0),this.hiddenUpdates=Ee(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=a,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Xd(e,t,n,r,o,a,i,s,l,u,c,d){return e=new Zd(e,t,n,i,s,l,u,d),t=1,!0===a&&(t|=24),a=Ir(3,null,null,t),e.current=a,a.stateNode=e,(t=Fo()).refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},aa(a),e}function Jd(e){return e?e=Fr:Fr}function ef(e,t,n,r,o,a){o=Jd(o),null===r.context?r.context=o:r.pendingContext=o,(r=sa(t)).payload={element:n},null!==(a=void 0===a?null:a)&&(r.callback=a),null!==(n=la(e,r,t))&&(Iu(n,0,t),ua(n,e,t))}function tf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nf(e,t){tf(e,t),(e=e.alternate)&&tf(e,t)}function rf(e){if(13===e.tag){var t=Tr(e,67108864);null!==t&&Iu(t,0,67108864),nf(e,67108864)}}var of=!0;function af(e,t,n,r){var o=F.T;F.T=null;var a=L.p;try{L.p=2,lf(e,t,n,r)}finally{L.p=a,F.T=o}}function sf(e,t,n,r){var o=F.T;F.T=null;var a=L.p;try{L.p=8,lf(e,t,n,r)}finally{L.p=a,F.T=o}}function lf(e,t,n,r){if(of){var o=uf(r);if(null===o)Uc(e,t,r,cf,n),xf(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return hf=Cf(hf,e,t,n,r,o),!0;case"dragenter":return mf=Cf(mf,e,t,n,r,o),!0;case"mouseover":return gf=Cf(gf,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return yf.set(a,Cf(yf.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,vf.set(a,Cf(vf.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(xf(e,r),4&t&&-1<wf.indexOf(e)){for(;null!==o;){var a=Ue(o);if(null!==a)switch(a.tag){case 3:if((a=a.stateNode).current.memoizedState.isDehydrated){var i=we(a.pendingLanes);if(0!==i){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var l=1<<31-me(i);s.entanglements[1]|=l,i&=~l}kc(a),!(6&ou)&&(ku=re()+500,_c(0))}}break;case 13:null!==(s=Tr(a,2))&&Iu(s,0,2),Bu(),nf(a,2)}if(null===(a=uf(r))&&Uc(e,t,r,cf,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Uc(e,t,r,null,n)}}function uf(e){return df(e=Tt(e))}var cf=null;function df(e){if(cf=null,null!==(e=Be(e))){var t=a(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=i(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cf=e,null}function ff(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(oe()){case ae:return 2;case ie:return 8;case se:case le:return 32;case ue:return 268435456;default:return 32}default:return 32}}var pf=!1,hf=null,mf=null,gf=null,yf=new Map,vf=new Map,bf=[],wf="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".split(" ");function xf(e,t){switch(e){case"focusin":case"focusout":hf=null;break;case"dragenter":case"dragleave":mf=null;break;case"mouseover":case"mouseout":gf=null;break;case"pointerover":case"pointerout":yf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vf.delete(t.pointerId)}}function Cf(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=Ue(t))&&rf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Sf(e){var t=Be(e.target);if(null!==t){var n=a(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=i(n)))return e.blockedOn=t,void function(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}(e.priority,function(){if(13===n.tag){var e=Fu();e=Pe(e);var t=Tr(n,e);null!==t&&Iu(t,0,e),nf(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function kf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=uf(e.nativeEvent);if(null!==n)return null!==(t=Ue(n))&&rf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Mt=r,n.target.dispatchEvent(r),Mt=null,t.shift()}return!0}function _f(e,t,n){kf(e)&&n.delete(t)}function Ef(){pf=!1,null!==hf&&kf(hf)&&(hf=null),null!==mf&&kf(mf)&&(mf=null),null!==gf&&kf(gf)&&(gf=null),yf.forEach(_f),vf.forEach(_f)}function Rf(t,n){t.blockedOn===n&&(t.blockedOn=null,pf||(pf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ef)))}var Nf=null;function jf(t){Nf!==t&&(Nf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Nf===t&&(Nf=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===df(r||n))continue;break}var a=Ue(n);null!==a&&(t.splice(e,3),e-=3,Ti(a,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Pf(e){function t(t){return Rf(t,e)}null!==hf&&Rf(hf,e),null!==mf&&Rf(mf,e),null!==gf&&Rf(gf,e),yf.forEach(t),vf.forEach(t);for(var n=0;n<bf.length;n++){var r=bf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<bf.length&&null===(n=bf[0]).blockedOn;)Sf(n),null===n.blockedOn&&bf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],a=n[r+1],i=o[Ae]||null;if("function"==typeof a)i||jf(n);else if(i){var s=null;if(a&&a.hasAttribute("formAction")){if(o=a,i=a[Ae]||null)s=i.formAction;else if(null!==df(o))continue}else s=i.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),jf(n)}}}function Of(e){this._internalRoot=e}function Mf(e){this._internalRoot=e}Mf.prototype.render=Of.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));ef(t.current,Fu(),e,t,null,null)},Mf.prototype.unmount=Of.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ef(e.current,2,null,e,null,null),Bu(),t[Fe]=null}},Mf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Me();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bf.length&&0!==t&&t<bf[n].priority;n++);bf.splice(n,0,e),0===n&&Sf(e)}};var Tf=t.version;if("19.1.1"!==Tf)throw Error(r(527,Tf,"19.1.1"));L.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=a(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var l=i.alternate;if(null===l){if(null!==(o=i.return)){n=o;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return s(i),e;if(l===o)return s(i),t;l=l.sibling}throw Error(r(188))}if(n.return!==o.return)n=i,o=l;else{for(var u=!1,c=i.child;c;){if(c===n){u=!0,n=i,o=l;break}if(c===o){u=!0,o=i,n=l;break}c=c.sibling}if(!u){for(c=l.child;c;){if(c===n){u=!0,n=l,o=i;break}if(c===o){u=!0,o=l,n=i;break}c=c.sibling}if(!u)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?l(e):null)?null:e.stateNode};var Df={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Af=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Af.isDisabled&&Af.supportsFiber)try{fe=Af.inject(Df),pe=Af}catch(e){}}return y.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,a="",i=ws,s=xs,l=Cs;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Xd(e,1,!1,null,0,n,a,i,s,l,0,null),e[Fe]=t.current,Vc(e),new Of(t)},y.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var a=!1,i="",s=ws,l=xs,u=Cs,c=null;return null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(c=n.formState)),(t=Xd(e,1,!0,t,0,a,i,s,l,u,0,c)).context=Jd(null),n=t.current,(i=sa(a=Pe(a=Fu()))).callback=null,la(n,i,a),n=a,t.current.lanes=n,Re(t,n),kc(t),e[Fe]=t.current,Vc(e),new Mf(t)},y.version="19.1.1",y}var P,O,M=n((k||(k=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),g.exports=j()),g.exports)),T=f(),D=n(T),A=t({__proto__:null,default:D},[T]),F={exports:{}},L={};var I=(O||(O=1,F.exports=function(){if(P)return L;P=1;var e=f(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,o=e.useEffect,a=e.useMemo,i=e.useDebugValue;return L.useSyncExternalStoreWithSelector=function(e,s,l,u,c){var d=r(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=a(function(){function e(e){if(!o){if(o=!0,n=e,e=u(e),void 0!==c&&f.hasValue){var a=f.value;if(c(a,e))return r=a}return r=e}if(a=r,t(n,e))return a;var i=u(e);return void 0!==c&&c(a,i)?(n=e,a):(n=e,r=i)}var n,r,o=!1,a=void 0===l?null:l;return[function(){return e(s())},null===a?void 0:function(){return e(a())}]},[s,l,u,c]);var p=n(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),i(p),p},L}()),F.exports);var z={notify(){},get:()=>[]};var $=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),H=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),V=(()=>$||H?T.useLayoutEffect:T.useEffect)(),B=Symbol.for("react-redux-context"),U="undefined"!=typeof globalThis?globalThis:{};function W(){if(!T.createContext)return{};const e=U[B]??=new Map;let t=e.get(T.createContext);return t||(t=T.createContext(null),e.set(T.createContext,t)),t}var Y=W();var q=function(e){const{children:t,context:n,serverState:r,store:o}=e,a=T.useMemo(()=>{const e=function(e){let t,n=z,r=0,o=!1;function a(){l.onStateChange&&l.onStateChange()}function i(){r++,t||(t=e.subscribe(a),n=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=z)}const l={addNestedSub:function(e){i();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),s())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,i())},tryUnsubscribe:function(){o&&(o=!1,s())},getListeners:()=>n};return l}(o);return{store:o,subscription:e,getServerState:r?()=>r:void 0}},[o,r]),i=T.useMemo(()=>o.getState(),[o]);V(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,i]);const s=n||Y;return T.createElement(s.Provider,{value:a},t)};function G(e=Y){return function(){return T.useContext(e)}}var K=G();function Q(e=Y){const t=e===Y?K:G(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var Z=Q();function X(e=Y){const t=e===Y?Z:Q(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var J=X(),ee=(e,t)=>e===t;function te(e=Y){const t=e===Y?K:G(e),n=(e,n={})=>{const{equalityFn:r=ee}="function"==typeof n?{equalityFn:n}:n,o=t(),{store:a,subscription:i,getServerState:s}=o;T.useRef(!0);const l=T.useCallback({[e.name]:t=>e(t)}[e.name],[e]),u=I.useSyncExternalStoreWithSelector(i.addNestedSub,a.getState,s||a.getState,l,r);return T.useDebugValue(u),u};return Object.assign(n,{withTypes:()=>n}),n}var ne=te();function re(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var oe=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),ae=()=>Math.random().toString(36).substring(7).split("").join("."),ie={INIT:`@@redux/INIT${ae()}`,REPLACE:`@@redux/REPLACE${ae()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ae()}`};function se(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function le(e,t,n){if("function"!=typeof e)throw new Error(re(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(re(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(re(1));return n(le)(e,t)}let r=e,o=t,a=new Map,i=a,s=0,l=!1;function u(){i===a&&(i=new Map,a.forEach((e,t)=>{i.set(t,e)}))}function c(){if(l)throw new Error(re(3));return o}function d(e){if("function"!=typeof e)throw new Error(re(4));if(l)throw new Error(re(5));let t=!0;u();const n=s++;return i.set(n,e),function(){if(t){if(l)throw new Error(re(6));t=!1,u(),i.delete(n),a=null}}}function f(e){if(!se(e))throw new Error(re(7));if(void 0===e.type)throw new Error(re(8));if("string"!=typeof e.type)throw new Error(re(17));if(l)throw new Error(re(9));try{l=!0,o=r(o,e)}finally{l=!1}return(a=i).forEach(e=>{e()}),e}f({type:ie.INIT});return{dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(re(10));r=e,f({type:ie.REPLACE})},[oe]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(re(11));function n(){const e=t;e.next&&e.next(c())}n();return{unsubscribe:e(n)}},[oe](){return this}}}}}function ue(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:ie.INIT}))throw new Error(re(12));if(void 0===n(void 0,{type:ie.PROBE_UNKNOWN_ACTION()}))throw new Error(re(13))})}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let a=!1;const i={};for(let o=0;o<r.length;o++){const s=r[o],l=n[s],u=e[s],c=l(u,t);if(void 0===c)throw t&&t.type,new Error(re(14));i[s]=c,a=a||c!==u}return a=a||r.length!==Object.keys(e).length,a?i:e}}function ce(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}var de=Symbol.for("immer-nothing"),fe=Symbol.for("immer-draftable"),pe=Symbol.for("immer-state");function he(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var me=Object.getPrototypeOf;function ge(e){return!!e&&!!e[pe]}function ye(e){return!!e&&(be(e)||Array.isArray(e)||!!e[fe]||!!e.constructor?.[fe]||ke(e)||_e(e))}var ve=Object.prototype.constructor.toString();function be(e){if(!e||"object"!=typeof e)return!1;const t=me(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ve}function we(e,t){0===xe(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function xe(e){const t=e[pe];return t?t.type_:Array.isArray(e)?1:ke(e)?2:_e(e)?3:0}function Ce(e,t){return 2===xe(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Se(e,t,n){const r=xe(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function ke(e){return e instanceof Map}function _e(e){return e instanceof Set}function Ee(e){return e.copy_||e.base_}function Re(e,t){if(ke(e))return new Map(e);if(_e(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=be(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[pe];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],a=t[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(me(e),t)}{const t=me(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function Ne(e,t=!1){return Pe(e)||ge(e)||!ye(e)||(xe(e)>1&&(e.set=e.add=e.clear=e.delete=je),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>Ne(t,!0))),e}function je(){he(2)}function Pe(e){return Object.isFrozen(e)}var Oe,Me={};function Te(e){const t=Me[e];return t||he(0),t}function De(){return Oe}function Ae(e,t){t&&(Te("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fe(e){Le(e),e.drafts_.forEach(ze),e.drafts_=null}function Le(e){e===Oe&&(Oe=e.parent_)}function Ie(e){return Oe={drafts_:[],parent_:Oe,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ze(e){const t=e[pe];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function $e(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[pe].modified_&&(Fe(t),he(4)),ye(e)&&(e=He(t,e),t.parent_||Be(t,e)),t.patches_&&Te("Patches").generateReplacementPatches_(n[pe].base_,e,t.patches_,t.inversePatches_)):e=He(t,n,[]),Fe(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==de?e:void 0}function He(e,t,n){if(Pe(t))return t;const r=t[pe];if(!r)return we(t,(o,a)=>Ve(e,r,t,o,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Be(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,a=!1;3===r.type_&&(o=new Set(t),t.clear(),a=!0),we(o,(o,i)=>Ve(e,r,t,o,i,n,a)),Be(e,t,!1),n&&e.patches_&&Te("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Ve(e,t,n,r,o,a,i){if(ge(o)){const i=He(e,o,a&&t&&3!==t.type_&&!Ce(t.assigned_,r)?a.concat(r):void 0);if(Se(n,r,i),!ge(i))return;e.canAutoFreeze_=!1}else i&&n.add(o);if(ye(o)&&!Pe(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;He(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||Be(e,o)}}function Be(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ne(t,n)}var Ue={get(e,t){if(t===pe)return e;const n=Ee(e);if(!Ce(n,t))return function(e,t,n){const r=qe(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!ye(r)?r:r===Ye(e.base_,t)?(Ke(e),e.copy_[t]=Qe(r,e)):r},has:(e,t)=>t in Ee(e),ownKeys:e=>Reflect.ownKeys(Ee(e)),set(e,t,n){const r=qe(Ee(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Ye(Ee(e),t),o=r?.[pe];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||Ce(e.base_,t)))return!0;Ke(e),Ge(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Ye(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Ke(e),Ge(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Ee(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){he(11)},getPrototypeOf:e=>me(e.base_),setPrototypeOf(){he(12)}},We={};function Ye(e,t){const n=e[pe];return(n?Ee(n):e)[t]}function qe(e,t){if(!(t in e))return;let n=me(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=me(n)}}function Ge(e){e.modified_||(e.modified_=!0,e.parent_&&Ge(e.parent_))}function Ke(e){e.copy_||(e.copy_=Re(e.base_,e.scope_.immer_.useStrictShallowCopy_))}we(Ue,(e,t)=>{We[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),We.deleteProperty=function(e,t){return We.set.call(this,e,t,void 0)},We.set=function(e,t,n){return Ue.set.call(this,e[0],t,n,e[0])};function Qe(e,t){const n=ke(e)?Te("MapSet").proxyMap_(e,t):_e(e)?Te("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:De(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,a=Ue;n&&(o=[r],a=We);const{revoke:i,proxy:s}=Proxy.revocable(o,a);return r.draft_=s,r.revoke_=i,s}(e,t);return(t?t.scope_:De()).drafts_.push(n),n}function Ze(e){if(!ye(e)||Pe(e))return e;const t=e[pe];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Re(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Re(e,!0);return we(n,(e,t)=>{Se(n,e,Ze(t))}),t&&(t.finalized_=!1),n}var Xe=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}let r;if("function"!=typeof t&&he(6),void 0!==n&&"function"!=typeof n&&he(7),ye(e)){const o=Ie(this),a=Qe(e,void 0);let i=!0;try{r=t(a),i=!1}finally{i?Fe(o):Le(o)}return Ae(o,n),$e(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===de&&(r=void 0),this.autoFreeze_&&Ne(r,!0),n){const t=[],o=[];Te("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}he(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;const o=this.produce(e,t,(e,t)=>{n=e,r=t});return[o,n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ye(e)||he(8),ge(e)&&(e=function(e){ge(e)||he(10);return Ze(e)}(e));const t=Ie(this),n=Qe(e,void 0);return n[pe].isManual_=!0,Le(t),n}finishDraft(e,t){const n=e&&e[pe];n&&n.isManual_||he(9);const{scope_:r}=n;return Ae(r,t),$e(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=Te("Patches").applyPatches_;return ge(e)?r(e,t):this.produce(e,e=>r(e,t))}},Je=Xe.produce;function et(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}Xe.produceWithPatches.bind(Xe),Xe.setAutoFreeze.bind(Xe),Xe.setUseStrictShallowCopy.bind(Xe),Xe.applyPatches.bind(Xe),Xe.createDraft.bind(Xe),Xe.finishDraft.bind(Xe);var tt=et(),nt=et,rt="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ce:ce.apply(null,arguments)};function ot(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(gt(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>function(e){return se(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,n}var at=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function it(e){return ye(e)?Je(e,()=>{}):e}function st(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var lt=e=>t=>{setTimeout(t,e)},ut=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new at(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,a=!1,i=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:lt(10):"callback"===e.type?e.queueNotification:lt(e.timeout),u=()=>{i=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>o&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.RTK_autoBatch,a=!o,a&&(i||(i=!0,l(u))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function ct(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(gt(28));if(r in t)throw new Error(gt(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var dt=Symbol.for("rtk-slice-createasyncthunk");function ft(e,t){return`${e}/${t}`}function pt({creators:e}={}){const t=e?.asyncThunk?.[dt];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(gt(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(o),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(gt(12));if(n in i.sliceCaseReducersByType)throw new Error(gt(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},n=[],r]="function"==typeof e.extraReducers?ct(e.extraReducers):[e.extraReducers],o={...t,...i.sliceCaseReducersByType};return function(e,t){let n,[r,o,a]=ct(t);if(function(e){return"function"==typeof e}(e))n=()=>it(e());else{const t=it(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===i.filter(e=>!!e).length&&(i=[a]),i.reduce((e,n)=>{if(n){if(ge(e)){const r=n(e,t);return void 0===r?e:r}if(ye(e))return Je(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return i.getInitialState=n,i}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}a.forEach(r=>{const a=o[r],i={reducerName:r,type:ft(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(a)?function({type:e,reducerName:t,createNotation:n},r,o){let a,i;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(gt(17));a=r.reducer,i=r.prepare}else a=r;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?ot(e,i):ot(e))}(i,a,s):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(gt(18));const{payloadCreator:a,fulfilled:i,pending:s,rejected:l,settled:u,options:c}=n,d=o(e,a,c);r.exposeAction(t,d),i&&r.addCase(d.fulfilled,i);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);u&&r.addMatcher(d.settled,u);r.exposeCaseReducer(t,{fulfilled:i||mt,pending:s||mt,rejected:l||mt,settled:u||mt})}(i,a,s,t)});const u=e=>e,c=new Map,d=new WeakMap;let f;function p(e,t){return f||(f=l()),f(e,t)}function h(){return f||(f=l()),f.getInitialState()}function m(t,n=!1){function r(e){let o=e[t];return void 0===o&&n&&(o=st(d,r,h)),o}function o(t=u){const r=st(c,n,()=>new WeakMap);return st(r,t,()=>{const r={};for(const[o,a]of Object.entries(e.selectors??{}))r[o]=ht(a,t,()=>st(d,t,h),n);return r})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const g={name:n,reducer:p,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:h,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:p},n),{...g,...m(o,!0)}}};return g}}function ht(e,t,n,r){function o(o,...a){let i=t(o);return void 0===i&&r&&(i=n()),e(i,...a)}return o.unwrapped=e,o}function mt(){}function gt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const yt=pt()({name:"app",initialState:{currentPage:1,perview:10},reducers:{setCurrentPage:(e,t)=>{e.currentPage=t.payload},setPerview:(e,t)=>{e.perview=t.payload}}}),{setCurrentPage:vt,setPerview:bt}=yt.actions;const wt=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let a=new at;return t&&(function(e){return"boolean"==typeof e}(t)?a.push(tt):a.push(nt(t.extraArgument))),a},{reducer:n,middleware:r,devTools:o=!0,preloadedState:a,enhancers:i}=e||{};let s,l;if("function"==typeof n)s=n;else{if(!se(n))throw new Error(gt(1));s=ue(n)}l="function"==typeof r?r(t):t();let u=ce;o&&(u=rt({trace:!1,..."object"==typeof o&&o}));const c=function(...e){return t=>(n,r)=>{const o=t(n,r);let a=()=>{throw new Error(re(15))};const i={getState:o.getState,dispatch:(e,...t)=>a(e,...t)},s=e.map(e=>e(i));return a=ce(...s)(o.dispatch),{...o,dispatch:a}}}(...l),d=ut(c);return le(s,a,u(..."function"==typeof i?i(d):d()))}({reducer:{app:yt.reducer}});var xt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ct="undefined"==typeof window||"Deno"in globalThis;function St(){}function kt(e){return"number"==typeof e&&e>=0&&e!==1/0}function _t(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Et(e,t){return"function"==typeof e?e(t):e}function Rt(e,t){return"function"==typeof e?e(t):e}function Nt(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(i)if(r){if(t.queryHash!==Pt(i,t.options))return!1}else if(!Mt(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function jt(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ot(t.options.mutationKey)!==Ot(a))return!1}else if(!Mt(t.options.mutationKey,a))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function Pt(e,t){return(t?.queryKeyHashFn||Ot)(e)}function Ot(e){return JSON.stringify(e,(e,t)=>Ft(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Mt(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>Mt(e[n],t[n])))}function Tt(e,t){if(e===t)return e;const n=At(e)&&At(t);if(n||Ft(e)&&Ft(t)){const r=n?e:Object.keys(e),o=r.length,a=n?t:Object.keys(t),i=a.length,s=n?[]:{},l=new Set(r);let u=0;for(let r=0;r<i;r++){const o=n?r:a[r];(!n&&l.has(o)||n)&&void 0===e[o]&&void 0===t[o]?(s[o]=void 0,u++):(s[o]=Tt(e[o],t[o]),s[o]===e[o]&&void 0!==e[o]&&u++)}return o===i&&u===o?e:s}return t}function Dt(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function At(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ft(e){if(!Lt(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Lt(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Lt(e){return"[object Object]"===Object.prototype.toString.call(e)}function It(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Tt(e,t):t}function zt(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function $t(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ht=Symbol();function Vt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Ht?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Bt(e,t){return"function"==typeof e?e(...t):!!e}var Ut=new class extends xt{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Ct&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},Wt=new class extends xt{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Ct&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#r}};function Yt(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function qt(e){return Math.min(1e3*2**e,3e4)}function Gt(e){return"online"!==(e??"online")||Wt.isOnline()}var Kt=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Qt(e){return e instanceof Kt}function Zt(e){let t,n=!1,r=0,o=!1;const a=Yt(),i=()=>Ut.isFocused()&&("always"===e.networkMode||Wt.isOnline())&&e.canRun(),s=()=>Gt(e.networkMode)&&e.canRun(),l=n=>{o||(o=!0,e.onSuccess?.(n),t?.(),a.resolve(n))},u=n=>{o||(o=!0,e.onError?.(n),t?.(),a.reject(n))},c=()=>new Promise(n=>{t=e=>{(o||i())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,o||e.onContinue?.()}),d=()=>{if(o)return;let t;const a=0===r?e.initialPromise:void 0;try{t=a??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if(o)return;const a=e.retry??(Ct?0:3),s=e.retryDelay??qt,l="function"==typeof s?s(r,t):s,f=!0===a||"number"==typeof a&&r<a||"function"==typeof a&&a(r,t);var p;!n&&f?(r++,e.onFail?.(r,t),(p=l,new Promise(e=>{setTimeout(e,p)})).then(()=>i()?void 0:c()).then(()=>{n?u(t):d()})):u(t)})};return{promise:a,cancel:t=>{o||(u(new Kt(t)),e.abort?.())},continue:()=>(t?.(),a),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():c().then(d),a)}}var Xt=e=>setTimeout(e,0);var Jt=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=Xt;const a=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:a=>{let i;t++;try{i=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),en=class{#o;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kt(this.gcTime)&&(this.#o=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ct?1/0:3e5))}clearGcTimeout(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}},tn=class extends en{#a;#i;#s;#l;#u;#c;#d;constructor(e){super(),this.#d=!1,this.#c=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#l=e.client,this.#s=this.#l.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#u?.promise}setOptions(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(e,t){const n=It(this.state.data,e,this.options);return this.#f({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#f({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#u?.promise;return this.#u?.cancel(e),t?t.then(St).catch(St):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#a)}isActive(){return this.observers.some(e=>!1!==Rt(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ht||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Et(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!_t(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#u&&(this.#d?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#f({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#u)return this.#u.continueRetry(),this.#u.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#d=!0,n.signal)})},o=()=>{const e=Vt(this.options,t),n=(()=>{const e={client:this.#l,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#d=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#i=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===a.fetchOptions?.meta||this.#f({type:"fetch",meta:a.fetchOptions?.meta});const i=e=>{Qt(e)&&e.silent||this.#f({type:"error",error:e}),Qt(e)||(this.#s.config.onError?.(e,this),this.#s.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#u=Zt({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(e){return void i(e)}this.#s.config.onSuccess?.(e,this),this.#s.config.onSettled?.(e,this.state.error,this),this.scheduleGc()}else i(new Error(`${this.queryHash} data is undefined`))},onError:i,onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#u.start()}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...nn(t.data,this.options),fetchMeta:e.meta??null};case"success":return this.#i=void 0,{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return Qt(n)&&n.revert&&this.#i?{...this.#i,fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Jt.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}};function nn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var rn=class extends xt{constructor(e={}){super(),this.config=e,this.#p=new Map}#p;build(e,t,n){const r=t.queryKey,o=t.queryHash??Pt(r,t);let a=this.get(o);return a||(a=new tn({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#p.has(e.queryHash)||(this.#p.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#p.get(e.queryHash);t&&(e.destroy(),t===e&&this.#p.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Jt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#p.get(e)}getAll(){return[...this.#p.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Nt(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Nt(e,t)):t}notify(e){Jt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Jt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Jt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},on=class extends en{#h;#m;#u;constructor(e){super(),this.mutationId=e.mutationId,this.#m=e.mutationCache,this.#h=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#h.includes(e)||(this.#h.push(e),this.clearGcTimeout(),this.#m.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#h=this.#h.filter(t=>t!==e),this.scheduleGc(),this.#m.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#h.length||("pending"===this.state.status?this.scheduleGc():this.#m.remove(this))}continue(){return this.#u?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#f({type:"continue"})};this.#u=Zt({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#m.canRun(this)});const n="pending"===this.state.status,r=!this.#u.canStart();try{if(n)t();else{this.#f({type:"pending",variables:e,isPaused:r}),await(this.#m.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#f({type:"pending",context:t,variables:e,isPaused:r})}const o=await this.#u.start();return await(this.#m.config.onSuccess?.(o,e,this.state.context,this)),await(this.options.onSuccess?.(o,e,this.state.context)),await(this.#m.config.onSettled?.(o,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(o,null,e,this.state.context)),this.#f({type:"success",data:o}),o}catch(t){try{throw await(this.#m.config.onError?.(t,e,this.state.context,this)),await(this.options.onError?.(t,e,this.state.context)),await(this.#m.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,t,e,this.state.context)),t}finally{this.#f({type:"error",error:t})}}finally{this.#m.runNext(this)}}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Jt.batch(()=>{this.#h.forEach(t=>{t.onMutationUpdate(e)}),this.#m.notify({mutation:this,type:"updated",action:e})})}};var an=class extends xt{constructor(e={}){super(),this.config=e,this.#g=new Set,this.#y=new Map,this.#v=0}#g;#y;#v;build(e,t,n){const r=new on({mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#g.add(e);const t=sn(e);if("string"==typeof t){const n=this.#y.get(t);n?n.push(e):this.#y.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#g.delete(e)){const t=sn(e);if("string"==typeof t){const n=this.#y.get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#y.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=sn(e);if("string"==typeof t){const n=this.#y.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=sn(e);if("string"==typeof t){const n=this.#y.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}return Promise.resolve()}clear(){Jt.batch(()=>{this.#g.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#g.clear(),this.#y.clear()})}getAll(){return Array.from(this.#g)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>jt(t,e))}findAll(e={}){return this.getAll().filter(t=>jt(e,t))}notify(e){Jt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return Jt.batch(()=>Promise.all(e.map(e=>e.continue().catch(St))))}};function sn(e){return e.options.scope?.id}function ln(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let n=!1;const u=Vt(t.options,t.fetchOptions),c=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const a=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var a;return a=e,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)}),e})(),i=await u(a),{maxPages:s}=t.options,l=o?$t:zt;return{pages:l(e.pages,i,s),pageParams:l(e.pageParams,r,s)}};if(o&&a.length){const e="backward"===o,t={pages:a,pageParams:i},n=(e?cn:un)(r,t);s=await c(t,n,e)}else{const t=e??a.length;do{const e=0===l?i[0]??r.initialPageParam:un(r,s);if(l>0&&null==e)break;s=await c(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function un(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function cn(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var dn=class{#b;#m;#c;#w;#x;#C;#S;#k;constructor(e={}){this.#b=e.queryCache||new rn,this.#m=e.mutationCache||new an,this.#c=e.defaultOptions||{},this.#w=new Map,this.#x=new Map,this.#C=0}mount(){this.#C++,1===this.#C&&(this.#S=Ut.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#b.onFocus())}),this.#k=Wt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#b.onOnline())}))}unmount(){this.#C--,0===this.#C&&(this.#S?.(),this.#S=void 0,this.#k?.(),this.#k=void 0)}isFetching(e){return this.#b.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#m.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#b.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#b.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Et(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#b.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#b.get(r.queryHash),a=o?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,a);if(void 0!==i)return this.#b.build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Jt.batch(()=>this.#b.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#b.get(t.queryHash)?.state}removeQueries(e){const t=this.#b;Jt.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=this.#b;return Jt.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Jt.batch(()=>this.#b.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(St).catch(St)}invalidateQueries(e,t={}){return Jt.batch(()=>(this.#b.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Jt.batch(()=>this.#b.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(St)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(St)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#b.build(this,t);return n.isStaleByTime(Et(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(St).catch(St)}fetchInfiniteQuery(e){return e.behavior=ln(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(St).catch(St)}ensureInfiniteQueryData(e){return e.behavior=ln(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Wt.isOnline()?this.#m.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#b}getMutationCache(){return this.#m}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#w.set(Ot(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#w.values()],n={};return t.forEach(t=>{Mt(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#x.set(Ot(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#x.values()],n={};return t.forEach(t=>{Mt(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#c.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Pt(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ht&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#b.clear(),this.#m.clear()}},fn=class extends xt{constructor(e,t){super(),this.options=t,this.#l=e,this.#_=null,this.#E=Yt(),this.options.experimental_prefetchInRender||this.#E.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#l;#R=void 0;#N=void 0;#j=void 0;#P;#O;#E;#_;#M;#T;#D;#A;#F;#L;#I=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#R.addObserver(this),pn(this.#R,this.options)?this.#z():this.updateResult(),this.#$())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hn(this.#R,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hn(this.#R,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#H(),this.#V(),this.#R.removeObserver(this)}setOptions(e){const t=this.options,n=this.#R;if(this.options=this.#l.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Rt(this.options.enabled,this.#R))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#B(),this.#R.setOptions(this.options),t._defaulted&&!Dt(this.options,t)&&this.#l.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#R,observer:this});const r=this.hasListeners();r&&mn(this.#R,n,this.options,t)&&this.#z(),this.updateResult(),!r||this.#R===n&&Rt(this.options.enabled,this.#R)===Rt(t.enabled,this.#R)&&Et(this.options.staleTime,this.#R)===Et(t.staleTime,this.#R)||this.#U();const o=this.#W();!r||this.#R===n&&Rt(this.options.enabled,this.#R)===Rt(t.enabled,this.#R)&&o===this.#L||this.#Y(o)}getOptimisticResult(e){const t=this.#l.getQueryCache().build(this.#l,e),n=this.createResult(t,e);return function(e,t){if(!Dt(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(this.#j=n,this.#O=this.options,this.#P=this.#R.state),n}getCurrentResult(){return this.#j}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#I.add(e)}getCurrentQuery(){return this.#R}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#l.defaultQueryOptions(e),n=this.#l.getQueryCache().build(this.#l,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#z({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#j))}#z(e){this.#B();let t=this.#R.fetch(this.options,e);return e?.throwOnError||(t=t.catch(St)),t}#U(){this.#H();const e=Et(this.options.staleTime,this.#R);if(Ct||this.#j.isStale||!kt(e))return;const t=_t(this.#j.dataUpdatedAt,e)+1;this.#A=setTimeout(()=>{this.#j.isStale||this.updateResult()},t)}#W(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#R):this.options.refetchInterval)??!1}#Y(e){this.#V(),this.#L=e,!Ct&&!1!==Rt(this.options.enabled,this.#R)&&kt(this.#L)&&0!==this.#L&&(this.#F=setInterval(()=>{(this.options.refetchIntervalInBackground||Ut.isFocused())&&this.#z()},this.#L))}#$(){this.#U(),this.#Y(this.#W())}#H(){this.#A&&(clearTimeout(this.#A),this.#A=void 0)}#V(){this.#F&&(clearInterval(this.#F),this.#F=void 0)}createResult(e,t){const n=this.#R,r=this.options,o=this.#j,a=this.#P,i=this.#O,s=e!==n?e.state:this.#N,{state:l}=e;let u,c={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&pn(e,t),i=o&&mn(e,n,t,r);(a||i)&&(c={...c,...nn(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(c.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:h}=c;u=c.data;let m=!1;if(void 0!==t.placeholderData&&void 0===u&&"pending"===h){let e;o?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#D?.state.data,this.#D):t.placeholderData,void 0!==e&&(h="success",u=It(o?.data,e,t),d=!0)}if(t.select&&void 0!==u&&!m)if(o&&u===a?.data&&t.select===this.#M)u=this.#T;else try{this.#M=t.select,u=t.select(u),u=It(o?.data,u,t),this.#T=u,this.#_=null}catch(e){this.#_=e}this.#_&&(f=this.#_,u=this.#T,p=Date.now(),h="error");const g="fetching"===c.fetchStatus,y="pending"===h,v="error"===h,b=y&&g,w=void 0!==u,x={status:h,fetchStatus:c.fetchStatus,isPending:y,isSuccess:"success"===h,isError:v,isInitialLoading:b,isLoading:b,data:u,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>s.dataUpdateCount||c.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:v&&!w,isPaused:"paused"===c.fetchStatus,isPlaceholderData:d,isRefetchError:v&&w,isStale:gn(e,t),refetch:this.refetch,promise:this.#E,isEnabled:!1!==Rt(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===x.status?e.reject(x.error):void 0!==x.data&&e.resolve(x.data)},r=()=>{const e=this.#E=x.promise=Yt();t(e)},o=this.#E;switch(o.status){case"pending":e.queryHash===n.queryHash&&t(o);break;case"fulfilled":"error"!==x.status&&x.data===o.value||r();break;case"rejected":"error"===x.status&&x.error===o.reason||r()}}return x}updateResult(){const e=this.#j,t=this.createResult(this.#R,this.options);if(this.#P=this.#R.state,this.#O=this.options,void 0!==this.#P.data&&(this.#D=this.#R),Dt(t,e))return;this.#j=t;this.#q({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#I.size)return!0;const r=new Set(n??this.#I);return this.options.throwOnError&&r.add("error"),Object.keys(this.#j).some(t=>{const n=t;return this.#j[n]!==e[n]&&r.has(n)})})()})}#B(){const e=this.#l.getQueryCache().build(this.#l,this.options);if(e===this.#R)return;const t=this.#R;this.#R=e,this.#N=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#$()}#q(e){Jt.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#j)}),this.#l.getQueryCache().notify({query:this.#R,type:"observerResultsUpdated"})})}};function pn(e,t){return function(e,t){return!1!==Rt(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&hn(e,t,t.refetchOnMount)}function hn(e,t,n){if(!1!==Rt(t.enabled,e)&&"static"!==Et(t.staleTime,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&gn(e,t)}return!1}function mn(e,t,n,r){return(e!==t||!1===Rt(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&gn(e,n)}function gn(e,t){return!1!==Rt(t.enabled,e)&&e.isStaleByTime(Et(t.staleTime,e))}var yn=class extends xt{#l;#j=void 0;#G;#K;constructor(e,t){super(),this.#l=e,this.setOptions(t),this.bindMethods(),this.#Q()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#l.defaultMutationOptions(e),Dt(this.options,t)||this.#l.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#G,observer:this}),t?.mutationKey&&this.options.mutationKey&&Ot(t.mutationKey)!==Ot(this.options.mutationKey)?this.reset():"pending"===this.#G?.state.status&&this.#G.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#G?.removeObserver(this)}onMutationUpdate(e){this.#Q(),this.#q(e)}getCurrentResult(){return this.#j}reset(){this.#G?.removeObserver(this),this.#G=void 0,this.#Q(),this.#q()}mutate(e,t){return this.#K=t,this.#G?.removeObserver(this),this.#G=this.#l.getMutationCache().build(this.#l,this.options),this.#G.addObserver(this),this.#G.execute(e)}#Q(){const e=this.#G?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#j={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#q(e){Jt.batch(()=>{if(this.#K&&this.hasListeners()){const t=this.#j.variables,n=this.#j.context;"success"===e?.type?(this.#K.onSuccess?.(e.data,t,n),this.#K.onSettled?.(e.data,null,t,n)):"error"===e?.type&&(this.#K.onError?.(e.error,t,n),this.#K.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#j)})})}},vn=T.createContext(void 0),bn=e=>{const t=T.useContext(vn);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},wn=({client:e,children:t})=>(T.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),m.jsx(vn.Provider,{value:e,children:t})),xn=T.createContext(!1);xn.Provider;var Cn=T.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Sn=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function kn(e,t,n){const r=T.useContext(xn),o=T.useContext(Cn),a=bn(),i=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(i),i._optimisticResults=r?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=e=>"static"===e?e:Math.max(e??1e3,1e3),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>t(n(...e)):t(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}})(i),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(i,o),(e=>{T.useEffect(()=>{e.clearReset()},[e])})(o);const s=!a.getQueryCache().get(i.queryHash),[l]=T.useState(()=>new t(a,i)),u=l.getOptimisticResult(i),c=!r&&!1!==e.subscribed;if(T.useSyncExternalStore(T.useCallback(e=>{const t=c?l.subscribe(Jt.batchCalls(e)):St;return l.updateResult(),t},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),T.useEffect(()=>{l.setOptions(i)},[i,l]),((e,t)=>e?.suspense&&t.isPending)(i,u))throw Sn(i,l,o);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&void 0===e.data||Bt(n,[e.error,r])))({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:a.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if(a.getDefaultOptions().queries?._experimental_afterQuery?.(i,u),i.experimental_prefetchInRender&&!Ct&&((e,t)=>e.isLoading&&e.isFetching&&!t)(u,r)){const e=s?Sn(i,l,o):a.getQueryCache().get(i.queryHash)?.promise;e?.catch(St).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?u:l.trackResult(u)}const _n=T.createContext(null),En=()=>{const e=T.useContext(_n);if(!e)throw new Error("useSDK must be used within SDKProvider");return e},Rn=({apiKey:e,children:t})=>{if("undefined"==typeof window)return null;const[n]=D.useState(()=>new dn({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}));return m.jsx(_n.Provider,{value:{apiKey:e},children:m.jsx(q,{store:wt,children:m.jsx(wn,{client:n,children:t})})})};
10
+ */function j(){if(S)return y;S=1;var e=w(),t=f(),n=N();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function a(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function i(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function s(e){if(a(e)!==e)throw Error(r(188))}function l(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=l(e)))return t;e=e.sibling}return null}var u=Object.assign,c=Symbol.for("react.element"),d=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),b=Symbol.for("react.consumer"),x=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var T=Symbol.for("react.client.reference");function D(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===T?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case g:return"Profiler";case m:return"StrictMode";case k:return"Suspense";case _:return"SuspenseList";case j:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case p:return"Portal";case x:return(e.displayName||"Context")+".Provider";case b:return(e._context.displayName||"Context")+".Consumer";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:D(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return D(e(t))}catch(e){}}return null}var A=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},z=[],$=-1;function H(e){return{current:e}}function V(e){0>$||(e.current=z[$],z[$]=null,$--)}function B(e,t){$++,z[$]=e.current,e.current=t}var U=H(null),W=H(null),Y=H(null),q=H(null);function G(e,t){switch(B(Y,t),B(W,e),B(U,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=sd(t=id(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(U),B(U,e)}function K(){V(U),V(W),V(Y)}function Q(e){null!==e.memoizedState&&B(q,e);var t=U.current,n=sd(t,e.type);t!==n&&(B(W,e),B(U,n))}function Z(e){W.current===e&&(V(U),V(W)),q.current===e&&(V(q),Qd._currentValue=I)}var X=Object.prototype.hasOwnProperty,J=e.unstable_scheduleCallback,ee=e.unstable_cancelCallback,te=e.unstable_shouldYield,ne=e.unstable_requestPaint,re=e.unstable_now,oe=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,ie=e.unstable_UserBlockingPriority,se=e.unstable_NormalPriority,le=e.unstable_LowPriority,ue=e.unstable_IdlePriority,ce=e.log,de=e.unstable_setDisableYieldValue,fe=null,pe=null;function he(e){if("function"==typeof ce&&de(e),pe&&"function"==typeof pe.setStrictMode)try{pe.setStrictMode(fe,e)}catch(e){}}var me=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ge(e)/ye|0)|0},ge=Math.log,ye=Math.LN2;var ve=256,be=4194304;function we(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 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 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function xe(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,a=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~a)?o=we(r):0!==(i&=s)?o=we(i):n||0!==(n=s&~e)&&(o=we(n)):0!==(s=r&~a)?o=we(s):0!==i?o=we(i):n||0!==(n=r&~e)&&(o=we(n)),0===o?0:0!==t&&t!==o&&0===(t&a)&&((a=o&-o)>=(n=t&-t)||32===a&&4194048&n)?t:o}function Ce(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Se(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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;default:return-1}}function ke(){var e=ve;return!(4194048&(ve<<=1))&&(ve=256),e}function _e(){var e=be;return!(62914560&(be<<=1))&&(be=4194304),e}function Ee(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Re(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ne(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-me(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function je(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-me(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Pe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Oe(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Me(){var e=L.p;return 0!==e?e:void 0===(e=window.event)?32:ff(e.type)}var Te=Math.random().toString(36).slice(2),De="__reactFiber$"+Te,Ae="__reactProps$"+Te,Fe="__reactContainer$"+Te,Le="__reactEvents$"+Te,Ie="__reactListeners$"+Te,ze="__reactHandles$"+Te,$e="__reactResources$"+Te,He="__reactMarker$"+Te;function Ve(e){delete e[De],delete e[Ae],delete e[Le],delete e[Ie],delete e[ze]}function Be(e){var t=e[De];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Fe]||n[De]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=xd(e);null!==e;){if(n=e[De])return n;e=xd(e)}return t}n=(e=n).parentNode}return null}function Ue(e){if(e=e[De]||e[Fe]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function We(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function Ye(e){var t=e[$e];return t||(t=e[$e]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qe(e){e[He]=!0}var Ge=new Set,Ke={};function Qe(e,t){Ze(e,t),Ze(e+"Capture",t)}function Ze(e,t){for(Ke[e]=t,e=0;e<t.length;e++)Ge.add(t[e])}var Xe,Je,et=RegExp("^[: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]*$"),tt={},nt={};function rt(e,t,n){if(o=t,X.call(nt,o)||!X.call(tt,o)&&(et.test(o)?nt[o]=!0:(tt[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function ot(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function at(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function it(e){if(void 0===Xe)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Xe=t&&t[1]||"",Je=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Xe+e+Je}var st=!1;function lt(e,t){if(!e||st)return"";st=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=r.DetermineComponentFrameRoot(),i=a[0],s=a[1];if(i&&s){var l=i.split("\n"),u=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===u.length)for(r=l.length-1,o=u.length-1;1<=r&&0<=o&&l[r]!==u[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==u[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==u[o]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{st=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?it(n):""}function ut(e){switch(e.tag){case 26:case 27:case 5:return it(e.type);case 16:return it("Lazy");case 13:return it("Suspense");case 19:return it("SuspenseList");case 0:case 15:return lt(e.type,!1);case 11:return lt(e.type.render,!1);case 1:return lt(e.type,!0);case 31:return it("Activity");default:return""}}function ct(e){try{var t="";do{t+=ut(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){e._valueTracker||(e._valueTracker=function(e){var t=ft(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function mt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function yt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vt(e,t,n,r,o,a,i,s){e.name="",null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?wt(e,i,dt(t)):null!=n?wt(e,i,dt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=a&&(e.defaultChecked=!!a),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+dt(s):e.removeAttribute("name")}function bt(e,t,n,r,o,a,i,s){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(("submit"===a||"reset"===a)&&null==t)return;n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.name=i)}function wt(e,t,n){"number"===t&&mt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function xt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Ct(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function St(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(A(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o)}function kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var _t=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Et(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||_t.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Rt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var a in t)o=t[a],t.hasOwnProperty(a)&&n[a]!==o&&Et(e,a,o)}else for(var i in t)t.hasOwnProperty(i)&&Et(e,i,t[i])}function Nt(e){if(-1===e.indexOf("-"))return!1;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 jt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Pt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ot(e){return Pt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Mt=null;function Tt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Dt=null,At=null;function Ft(e){var t=Ue(e);if(t&&(e=t.stateNode)){var n=e[Ae]||null;e:switch(e=t.stateNode,t.type){case"input":if(vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var a=o[Ae]||null;if(!a)throw Error(r(90));vt(o,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&ht(o)}break e;case"textarea":Ct(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&xt(e,!!n.multiple,t,!1)}}}var Lt=!1;function It(e,t,n){if(Lt)return e(t,n);Lt=!0;try{return e(t)}finally{if(Lt=!1,(null!==Dt||null!==At)&&(Bu(),Dt&&(t=Dt,e=At,At=Dt=null,Ft(t),e)))for(t=0;t<e.length;t++)Ft(e[t])}}function zt(e,t){var n=e.stateNode;if(null===n)return null;var o=n[Ae]||null;if(null===o)return null;n=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var $t=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ht=!1;if($t)try{var Vt={};Object.defineProperty(Vt,"passive",{get:function(){Ht=!0}}),window.addEventListener("test",Vt,Vt),window.removeEventListener("test",Vt,Vt)}catch(e){Ht=!1}var Bt=null,Ut=null,Wt=null;function Yt(){if(Wt)return Wt;var e,t,n=Ut,r=n.length,o="value"in Bt?Bt.value:Bt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Wt=o.slice(e,1<t?1-t:void 0)}function qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Gt(){return!0}function Kt(){return!1}function Qt(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Gt:Kt,this.isPropagationStopped=Kt,this}return u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Gt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Gt)},persist:function(){},isPersistent:Gt}),t}var Zt,Xt,Jt,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Qt(en),nn=u({},en,{view:0,detail:0}),rn=Qt(nn),on=u({},nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jt&&(Jt&&"mousemove"===e.type?(Zt=e.screenX-Jt.screenX,Xt=e.screenY-Jt.screenY):Xt=Zt=0,Jt=e),Zt)},movementY:function(e){return"movementY"in e?e.movementY:Xt}}),an=Qt(on),sn=Qt(u({},on,{dataTransfer:0})),ln=Qt(u({},nn,{relatedTarget:0})),un=Qt(u({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),cn=Qt(u({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),dn=Qt(u({},en,{data:0})),fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={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"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function gn(){return mn}var yn=Qt(u({},nn,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),vn=Qt(u({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),bn=Qt(u({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),wn=Qt(u({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),xn=Qt(u({},on,{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})),Cn=Qt(u({},en,{newState:0,oldState:0})),Sn=[9,13,27,32],kn=$t&&"CompositionEvent"in window,_n=null;$t&&"documentMode"in document&&(_n=document.documentMode);var En=$t&&"TextEvent"in window&&!_n,Rn=$t&&(!kn||_n&&8<_n&&11>=_n),Nn=String.fromCharCode(32),jn=!1;function Pn(e,t){switch(e){case"keyup":return-1!==Sn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function On(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Mn=!1;var Tn={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 Dn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Tn[e.type]:"textarea"===t}function An(e,t,n,r){Dt?At?At.push(r):At=[r]:Dt=r,0<(t=Yc(t,"onChange")).length&&(n=new tn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fn=null,Ln=null;function In(e){Ic(e,0)}function zn(e){if(ht(We(e)))return e}function $n(e,t){if("change"===e)return t}var Hn=!1;if($t){var Vn;if($t){var Bn="oninput"in document;if(!Bn){var Un=document.createElement("div");Un.setAttribute("oninput","return;"),Bn="function"==typeof Un.oninput}Vn=Bn}else Vn=!1;Hn=Vn&&(!document.documentMode||9<document.documentMode)}function Wn(){Fn&&(Fn.detachEvent("onpropertychange",Yn),Ln=Fn=null)}function Yn(e){if("value"===e.propertyName&&zn(Ln)){var t=[];An(t,Ln,e,Tt(e)),It(In,t)}}function qn(e,t,n){"focusin"===e?(Wn(),Ln=n,(Fn=t).attachEvent("onpropertychange",Yn)):"focusout"===e&&Wn()}function Gn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zn(Ln)}function Kn(e,t){if("click"===e)return zn(t)}function Qn(e,t){if("input"===e||"change"===e)return zn(t)}var Zn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Xn(e,t){if(Zn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!X.call(t,o)||!Zn(e[o],t[o]))return!1}return!0}function Jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function er(e,t){var n,r=Jn(e);for(e=0;r;){if(3===r.nodeType){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=Jn(r)}}function tr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var or=$t&&"documentMode"in document&&11>=document.documentMode,ar=null,ir=null,sr=null,lr=!1;function ur(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;lr||null==ar||ar!==mt(r)||("selectionStart"in(r=ar)&&rr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sr&&Xn(sr,r)||(sr=r,0<(r=Yc(ir,"onSelect")).length&&(t=new tn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ar)))}function cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:cr("Animation","AnimationEnd"),animationiteration:cr("Animation","AnimationIteration"),animationstart:cr("Animation","AnimationStart"),transitionrun:cr("Transition","TransitionRun"),transitionstart:cr("Transition","TransitionStart"),transitioncancel:cr("Transition","TransitionCancel"),transitionend:cr("Transition","TransitionEnd")},fr={},pr={};function hr(e){if(fr[e])return fr[e];if(!dr[e])return e;var t,n=dr[e];for(t in n)if(n.hasOwnProperty(t)&&t in pr)return fr[e]=n[t];return e}$t&&(pr=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);var mr=hr("animationend"),gr=hr("animationiteration"),yr=hr("animationstart"),vr=hr("transitionrun"),br=hr("transitionstart"),wr=hr("transitioncancel"),xr=hr("transitionend"),Cr=new Map,Sr="abort auxClick beforeToggle 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 kr(e,t){Cr.set(e,t),Qe(t,[e])}Sr.push("scrollEnd");var _r=new WeakMap;function Er(e,t){if("object"==typeof e&&null!==e){var n=_r.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ct(t)},_r.set(e,t),t)}return{value:e,source:t,stack:ct(t)}}var Rr=[],Nr=0,jr=0;function Pr(){for(var e=Nr,t=jr=Nr=0;t<e;){var n=Rr[t];Rr[t++]=null;var r=Rr[t];Rr[t++]=null;var o=Rr[t];Rr[t++]=null;var a=Rr[t];if(Rr[t++]=null,null!==r&&null!==o){var i=r.pending;null===i?o.next=o:(o.next=i.next,i.next=o),r.pending=o}0!==a&&Dr(n,o,a)}}function Or(e,t,n,r){Rr[Nr++]=e,Rr[Nr++]=t,Rr[Nr++]=n,Rr[Nr++]=r,jr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Mr(e,t,n,r){return Or(e,t,n,r),Ar(e)}function Tr(e,t){return Or(e,null,null,t),Ar(e)}function Dr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,a=e.return;null!==a;)a.childLanes|=n,null!==(r=a.alternate)&&(r.childLanes|=n),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(o=!0)),e=a,a=a.return;return 3===e.tag?(a=e.stateNode,o&&null!==t&&(o=31-me(n),null===(r=(e=a.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),a):null}function Ar(e){if(50<Du)throw Du=0,Au=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Fr={};function Lr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ir(e,t,n,r){return new Lr(e,t,n,r)}function zr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $r(e,t){var n=e.alternate;return null===n?((n=Ir(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Hr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Vr(e,t,n,o,a,i){var s=0;if(o=e,"function"==typeof e)zr(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,U.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case j:return(e=Ir(31,n,t,a)).elementType=j,e.lanes=i,e;case h:return Br(n.children,a,i,t);case m:s=8,a|=24;break;case g:return(e=Ir(12,n,t,2|a)).elementType=g,e.lanes=i,e;case k:return(e=Ir(13,n,t,a)).elementType=k,e.lanes=i,e;case _:return(e=Ir(19,n,t,a)).elementType=_,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case v:case x:s=10;break e;case b:s=9;break e;case C:s=11;break e;case E:s=14;break e;case R:s=16,o=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=Ir(s,n,t,a)).elementType=e,t.type=o,t.lanes=i,t}function Br(e,t,n,r){return(e=Ir(7,e,r,t)).lanes=n,e}function Ur(e,t,n){return(e=Ir(6,e,null,t)).lanes=n,e}function Wr(e,t,n){return(t=Ir(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yr=[],qr=0,Gr=null,Kr=0,Qr=[],Zr=0,Xr=null,Jr=1,eo="";function to(e,t){Yr[qr++]=Kr,Yr[qr++]=Gr,Gr=e,Kr=t}function no(e,t,n){Qr[Zr++]=Jr,Qr[Zr++]=eo,Qr[Zr++]=Xr,Xr=e;var r=Jr;e=eo;var o=32-me(r)-1;r&=~(1<<o),n+=1;var a=32-me(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Jr=1<<32-me(t)+o|n<<o|r,eo=a+e}else Jr=1<<a|n<<o|r,eo=e}function ro(e){null!==e.return&&(to(e,1),no(e,1,0))}function oo(e){for(;e===Gr;)Gr=Yr[--qr],Yr[qr]=null,Kr=Yr[--qr],Yr[qr]=null;for(;e===Xr;)Xr=Qr[--Zr],Qr[Zr]=null,eo=Qr[--Zr],Qr[Zr]=null,Jr=Qr[--Zr],Qr[Zr]=null}var ao=null,io=null,so=!1,lo=null,uo=!1,co=Error(r(519));function fo(e){throw vo(Er(Error(r(418,"")),e)),co}function po(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[De]=e,t[Ae]=r,n){case"dialog":zc("cancel",t),zc("close",t);break;case"iframe":case"object":case"embed":zc("load",t);break;case"video":case"audio":for(n=0;n<Fc.length;n++)zc(Fc[n],t);break;case"source":zc("error",t);break;case"img":case"image":case"link":zc("error",t),zc("load",t);break;case"details":zc("toggle",t);break;case"input":zc("invalid",t),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),pt(t);break;case"select":zc("invalid",t);break;case"textarea":zc("invalid",t),St(t,r.value,r.defaultValue,r.children),pt(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Xc(t.textContent,n)?(null!=r.popover&&(zc("beforetoggle",t),zc("toggle",t)),null!=r.onScroll&&zc("scroll",t),null!=r.onScrollEnd&&zc("scrollend",t),null!=r.onClick&&(t.onclick=Jc),t=!0):t=!1,t||fo(e)}function ho(e){for(ao=e.return;ao;)switch(ao.tag){case 5:case 13:return void(uo=!1);case 27:case 3:return void(uo=!0);default:ao=ao.return}}function mo(e){if(e!==ao)return!1;if(!so)return ho(e),so=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||ld(e.type,e.memoizedProps)),t=!t),t&&io&&fo(e),ho(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){io=bd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}io=null}}else 27===n?(n=io,md(e.type)?(e=wd,wd=null,io=e):io=n):io=ao?bd(e.stateNode.nextSibling):null;return!0}function go(){io=ao=null,so=!1}function yo(){var e=lo;return null!==e&&(null===xu?xu=e:xu.push.apply(xu,e),lo=null),e}function vo(e){null===lo?lo=[e]:lo.push(e)}var bo=H(null),wo=null,xo=null;function Co(e,t,n){B(bo,t._currentValue),t._currentValue=n}function So(e){e._currentValue=bo.current,V(bo)}function ko(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _o(e,t,n,o){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var i=a.dependencies;if(null!==i){var s=a.child;i=i.firstContext;e:for(;null!==i;){var l=i;i=a;for(var u=0;u<t.length;u++)if(l.context===t[u]){i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),ko(i.return,n,e),o||(s=null);break e}i=l.next}}else if(18===a.tag){if(null===(s=a.return))throw Error(r(341));s.lanes|=n,null!==(i=s.alternate)&&(i.lanes|=n),ko(s,n,e),s=null}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===e){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}}function Eo(e,t,n,o){e=null;for(var a=t,i=!1;null!==a;){if(!i)if(524288&a.flags)i=!0;else if(262144&a.flags)break;if(10===a.tag){var s=a.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=a.type;Zn(a.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(a===q.current){if(null===(s=a.alternate))throw Error(r(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(Qd):e=[Qd])}a=a.return}null!==e&&_o(t,e,n,o),t.flags|=262144}function Ro(e){for(e=e.firstContext;null!==e;){if(!Zn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function No(e){wo=e,xo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function jo(e){return Oo(wo,e)}function Po(e,t){return null===wo&&No(e),Oo(e,t)}function Oo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===xo){if(null===e)throw Error(r(308));xo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xo=xo.next=t;return n}var Mo="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},To=e.unstable_scheduleCallback,Do=e.unstable_NormalPriority,Ao={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fo(){return{controller:new Mo,data:new Map,refCount:0}}function Lo(e){e.refCount--,0===e.refCount&&To(Do,function(){e.controller.abort()})}var Io=null,zo=0,$o=0,Ho=null;function Vo(){if(0===--zo&&null!==Io){null!==Ho&&(Ho.status="fulfilled");var e=Io;Io=null,$o=0,Ho=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Bo=F.S;F.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Io){var n=Io=[];zo=0,$o=Oc(),Ho={status:"pending",value:void 0,then:function(e){n.push(e)}}}zo++,t.then(Vo,Vo)}(0,t),null!==Bo&&Bo(e,t)};var Uo=H(null);function Wo(){var e=Uo.current;return null!==e?e:au.pooledCache}function Yo(e,t){B(Uo,null===t?Uo.current:t.pool)}function qo(){var e=Wo();return null===e?null:{parent:Ao._currentValue,pool:e}}var Go=Error(r(460)),Ko=Error(r(474)),Qo=Error(r(542)),Zo={then:function(){}};function Xo(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Jo(){}function ea(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Jo,Jo),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ra(e=t.reason),e;default:if("string"==typeof t.status)t.then(Jo,Jo);else{if(null!==(e=au)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ra(e=t.reason),e}throw ta=t,Go}}var ta=null;function na(){if(null===ta)throw Error(r(459));var e=ta;return ta=null,e}function ra(e){if(e===Go||e===Qo)throw Error(r(483))}var oa=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function sa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function la(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ou){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Ar(e),Dr(e,null,n),t}return Or(e,r,t,n),Ar(e)}function ua(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,je(e,n)}}function ca(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var da=!1;function fa(){if(da){if(null!==Ho)throw Ho}}function pa(e,t,n,r){da=!1;var o=e.updateQueue;oa=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var d=e.alternate;null!==d&&((s=(d=d.updateQueue).lastBaseUpdate)!==i&&(null===s?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(null!==a){var f=o.baseState;for(i=0,d=c=l=null,s=a;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(su&p)===p:(r&p)===p){0!==p&&p===$o&&(da=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;p=t;var y=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){f=m.call(y,f,p);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(y,f,p):m))break e;f=u({},f,p);break e;case 2:oa=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(c=d=h,l=f):d=d.next=h,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===d&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,null===a&&(o.shared.lanes=0),mu|=i,e.lanes=i,e.memoizedState=f}}function ha(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function ma(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)ha(n[e],t)}var ga=H(null),ya=H(0);function va(e,t){B(ya,e=pu),B(ga,t),pu=e|t.baseLanes}function ba(){B(ya,pu),B(ga,ga.current)}function wa(){pu=ya.current,V(ga),V(ya)}var xa=0,Ca=null,Sa=null,ka=null,_a=!1,Ea=!1,Ra=!1,Na=0,ja=0,Pa=null,Oa=0;function Ma(){throw Error(r(321))}function Ta(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zn(e[n],t[n]))return!1;return!0}function Da(e,t,n,r,o,a){return xa=a,Ca=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=null===e||null===e.memoizedState?Gi:Ki,Ra=!1,a=n(r,o),Ra=!1,Ea&&(a=Fa(t,n,r,o)),Aa(e),a}function Aa(e){F.H=qi;var t=null!==Sa&&null!==Sa.next;if(xa=0,ka=Sa=Ca=null,_a=!1,ja=0,Pa=null,t)throw Error(r(300));null===e||js||null!==(e=e.dependencies)&&Ro(e)&&(js=!0)}function Fa(e,t,n,o){Ca=e;var a=0;do{if(Ea&&(Pa=null),ja=0,Ea=!1,25<=a)throw Error(r(301));if(a+=1,ka=Sa=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}F.H=Qi,i=t(n,o)}while(Ea);return i}function La(){var e=F.H,t=e.useState()[0];return t="function"==typeof t.then?Ba(t):t,e=e.useState()[0],(null!==Sa?Sa.memoizedState:null)!==e&&(Ca.flags|=1024),t}function Ia(){var e=0!==Na;return Na=0,e}function za(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function $a(e){if(_a){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}_a=!1}xa=0,ka=Sa=Ca=null,Ea=!1,ja=Na=0,Pa=null}function Ha(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ka?Ca.memoizedState=ka=e:ka=ka.next=e,ka}function Va(){if(null===Sa){var e=Ca.alternate;e=null!==e?e.memoizedState:null}else e=Sa.next;var t=null===ka?Ca.memoizedState:ka.next;if(null!==t)ka=t,Sa=e;else{if(null===e){if(null===Ca.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Sa=e).memoizedState,baseState:Sa.baseState,baseQueue:Sa.baseQueue,queue:Sa.queue,next:null},null===ka?Ca.memoizedState=ka=e:ka=ka.next=e}return ka}function Ba(e){var t=ja;return ja+=1,null===Pa&&(Pa=[]),e=ea(Pa,e,t),t=Ca,null===(null===ka?t.memoizedState:ka.next)&&(t=t.alternate,F.H=null===t||null===t.memoizedState?Gi:Ki),e}function Ua(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Ba(e);if(e.$$typeof===x)return jo(e)}throw Error(r(438,String(e)))}function Wa(e){var t=null,n=Ca.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Ca.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Ca.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=P;return t.index++,n}function Ya(e,t){return"function"==typeof t?t(e):t}function qa(e){return Ga(Va(),Sa,e)}function Ga(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var a=e.baseQueue,i=o.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}t.baseQueue=a=i,o.pending=null}if(i=e.baseState,null===a)e.memoizedState=i;else{var l=s=null,u=null,c=t=a.next,d=!1;do{var f=-536870913&c.lane;if(f!==c.lane?(su&f)===f:(xa&f)===f){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===$o&&(d=!0);else{if((xa&p)===p){c=c.next,p===$o&&(d=!0);continue}f={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,s=i):u=u.next=f,Ca.lanes|=p,mu|=p}f=c.action,Ra&&n(i,f),i=c.hasEagerState?c.eagerState:n(i,f)}else p={lane:f,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,s=i):u=u.next=p,Ca.lanes|=f,mu|=f;c=c.next}while(null!==c&&c!==t);if(null===u?s=i:u.next=l,!Zn(i,e.memoizedState)&&(js=!0,d&&null!==(n=Ho)))throw n;e.memoizedState=i,e.baseState=s,e.baseQueue=u,o.lastRenderedState=i}return null===a&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Ka(e){var t=Va(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);Zn(i,t.memoizedState)||(js=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function Qa(e,t,n){var o=Ca,a=Va(),i=so;if(i){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!Zn((Sa||a).memoizedState,n);if(s&&(a.memoizedState=n,js=!0),a=a.queue,bi(2048,8,Ja.bind(null,o,a,e),[e]),a.getSnapshot!==t||s||null!==ka&&1&ka.memoizedState.tag){if(o.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Xa.bind(null,o,a,n,t),null),null===au)throw Error(r(349));i||124&xa||Za(o,t,n)}return n}function Za(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Ca.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Ca.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Xa(e,t,n,r){t.value=n,t.getSnapshot=r,ei(t)&&ti(e)}function Ja(e,t,n){return n(function(){ei(t)&&ti(e)})}function ei(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zn(e,n)}catch(e){return!0}}function ti(e){var t=Tr(e,2);null!==t&&Iu(t,e,2)}function ni(e){var t=Ha();if("function"==typeof e){var n=e;if(e=n(),Ra){he(!0);try{n()}finally{he(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:e},t}function ri(e,t,n,r){return e.baseState=n,Ga(e,Sa,"function"==typeof r?r:Ya)}function oi(e,t,n,o,a){if(Ui(e))throw Error(r(485));if(null!==(e=t.action)){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==F.T?n(!0):i.isTransition=!1,o(i),null===(n=t.pending)?(i.next=t.pending=i,ai(t,i)):(i.next=n.next,t.pending=n.next=i)}}function ai(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var a=F.T,i={};F.T=i;try{var s=n(o,r),l=F.S;null!==l&&l(i,s),ii(e,t,s)}catch(n){li(e,t,n)}finally{F.T=a}}else try{ii(e,t,a=n(o,r))}catch(n){li(e,t,n)}}function ii(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){si(e,t,n)},function(n){return li(e,t,n)}):si(e,t,n)}function si(e,t,n){t.status="fulfilled",t.value=n,ui(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,ai(e,n)))}function li(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,ui(t),t=t.next}while(t!==r)}e.action=null}function ui(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ci(e,t){return t}function di(e,t){if(so){var n=au.formState;if(null!==n){e:{var r=Ca;if(so){if(io){t:{for(var o=io,a=uo;8!==o.nodeType;){if(!a){o=null;break t}if(null===(o=bd(o.nextSibling))){o=null;break t}}o="F!"===(a=o.data)||"F"===a?o:null}if(o){io=bd(o.nextSibling),r="F!"===o.data;break e}}fo(r)}r=!1}r&&(t=n[0])}}return(n=Ha()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:t},n.queue=r,n=Hi.bind(null,Ca,r),r.dispatch=n,r=ni(!1),a=Bi.bind(null,Ca,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=Ha()).queue=o,n=oi.bind(null,Ca,o,a,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function fi(e){return pi(Va(),Sa,e)}function pi(e,t,n){if(t=Ga(e,t,ci)[0],e=qa(Ya)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Ba(t)}catch(e){if(e===Go)throw Qo;throw e}else r=t;var o=(t=Va()).queue,a=o.dispatch;return n!==t.memoizedState&&(Ca.flags|=2048,gi(9,{destroy:void 0,resource:void 0},hi.bind(null,o,n),null)),[r,a,e]}function hi(e,t){e.action=t}function mi(e){var t=Va(),n=Sa;if(null!==n)return pi(t,n,e);Va(),t=t.memoizedState;var r=(n=Va()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function gi(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Ca.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Ca.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function yi(){return Va().memoizedState}function vi(e,t,n,r){var o=Ha();r=void 0===r?null:r,Ca.flags|=e,o.memoizedState=gi(1|t,{destroy:void 0,resource:void 0},n,r)}function bi(e,t,n,r){var o=Va();r=void 0===r?null:r;var a=o.memoizedState.inst;null!==Sa&&null!==r&&Ta(r,Sa.memoizedState.deps)?o.memoizedState=gi(t,a,n,r):(Ca.flags|=e,o.memoizedState=gi(1|t,a,n,r))}function wi(e,t){vi(8390656,8,e,t)}function xi(e,t){bi(2048,8,e,t)}function Ci(e,t){return bi(4,2,e,t)}function Si(e,t){return bi(4,4,e,t)}function ki(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function _i(e,t,n){n=null!=n?n.concat([e]):null,bi(4,4,ki.bind(null,t,e),n)}function Ei(){}function Ri(e,t){var n=Va();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Ta(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ni(e,t){var n=Va();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Ta(t,r[1]))return r[0];if(r=e(),Ra){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r}function ji(e,t,n){return void 0===n||1073741824&xa?e.memoizedState=t:(e.memoizedState=n,e=Lu(),Ca.lanes|=e,mu|=e,n)}function Pi(e,t,n,r){return Zn(n,t)?n:null!==ga.current?(e=ji(e,n,r),Zn(e,t)||(js=!0),e):42&xa?(e=Lu(),Ca.lanes|=e,mu|=e,t):(js=!0,e.memoizedState=n)}function Oi(e,t,n,r,o){var a=L.p;L.p=0!==a&&8>a?a:8;var i,s,l,u=F.T,c={};F.T=c,Bi(e,!1,t,n);try{var d=o(),f=F.S;if(null!==f&&f(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then){var p=(i=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=i;for(var e=0;e<s.length;e++)(0,s[e])(i)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l);Vi(e,t,p,Fu())}else Vi(e,t,r,Fu())}catch(n){Vi(e,t,{then:function(){},status:"rejected",reason:n},Fu())}finally{L.p=a,F.T=u}}function Mi(){}function Ti(e,t,n,o){if(5!==e.tag)throw Error(r(476));var a=Di(e).queue;Oi(e,a,t,I,null===n?Mi:function(){return Ai(e),n(o)})}function Di(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:I},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Ai(e){Vi(e,Di(e).next.queue,{},Fu())}function Fi(){return jo(Qd)}function Li(){return Va().memoizedState}function Ii(){return Va().memoizedState}function zi(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Fu(),r=la(t,e=sa(n),n);return null!==r&&(Iu(r,t,n),ua(r,t,n)),t={cache:Fo()},void(e.payload=t)}t=t.return}}function $i(e,t,n){var r=Fu();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ui(e)?Wi(t,n):null!==(n=Mr(e,t,n,r))&&(Iu(n,e,r),Yi(n,t,r))}function Hi(e,t,n){Vi(e,t,n,Fu())}function Vi(e,t,n,r){var o={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ui(e))Wi(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,Zn(s,i))return Or(e,t,o,0),null===au&&Pr(),!1}catch(e){}if(null!==(n=Mr(e,t,o,r)))return Iu(n,e,r),Yi(n,t,r),!0}return!1}function Bi(e,t,n,o){if(o={lane:2,revertLane:Oc(),action:o,hasEagerState:!1,eagerState:null,next:null},Ui(e)){if(t)throw Error(r(479))}else null!==(t=Mr(e,n,o,2))&&Iu(t,e,2)}function Ui(e){var t=e.alternate;return e===Ca||null!==t&&t===Ca}function Wi(e,t){Ea=_a=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yi(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,je(e,n)}}var qi={readContext:jo,use:Ua,useCallback:Ma,useContext:Ma,useEffect:Ma,useImperativeHandle:Ma,useLayoutEffect:Ma,useInsertionEffect:Ma,useMemo:Ma,useReducer:Ma,useRef:Ma,useState:Ma,useDebugValue:Ma,useDeferredValue:Ma,useTransition:Ma,useSyncExternalStore:Ma,useId:Ma,useHostTransitionStatus:Ma,useFormState:Ma,useActionState:Ma,useOptimistic:Ma,useMemoCache:Ma,useCacheRefresh:Ma},Gi={readContext:jo,use:Ua,useCallback:function(e,t){return Ha().memoizedState=[e,void 0===t?null:t],e},useContext:jo,useEffect:wi,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,vi(4194308,4,ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vi(4194308,4,e,t)},useInsertionEffect:function(e,t){vi(4,2,e,t)},useMemo:function(e,t){var n=Ha();t=void 0===t?null:t;var r=e();if(Ra){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Ha();if(void 0!==n){var o=n(t);if(Ra){he(!0);try{n(t)}finally{he(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=$i.bind(null,Ca,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ha().memoizedState=e},useState:function(e){var t=(e=ni(e)).queue,n=Hi.bind(null,Ca,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ei,useDeferredValue:function(e,t){return ji(Ha(),e,t)},useTransition:function(){var e=ni(!1);return e=Oi.bind(null,Ca,e.queue,!0,!1),Ha().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=Ca,a=Ha();if(so){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===au)throw Error(r(349));124&su||Za(o,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,wi(Ja.bind(null,o,i,e),[e]),o.flags|=2048,gi(9,{destroy:void 0,resource:void 0},Xa.bind(null,o,i,n,t),null),n},useId:function(){var e=Ha(),t=au.identifierPrefix;if(so){var n=eo;t="«"+t+"R"+(n=(Jr&~(1<<32-me(Jr)-1)).toString(32)+n),0<(n=Na++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Oa++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Fi,useFormState:di,useActionState:di,useOptimistic:function(e){var t=Ha();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Bi.bind(null,Ca,!0,n),n.dispatch=t,[e,t]},useMemoCache:Wa,useCacheRefresh:function(){return Ha().memoizedState=zi.bind(null,Ca)}},Ki={readContext:jo,use:Ua,useCallback:Ri,useContext:jo,useEffect:xi,useImperativeHandle:_i,useInsertionEffect:Ci,useLayoutEffect:Si,useMemo:Ni,useReducer:qa,useRef:yi,useState:function(){return qa(Ya)},useDebugValue:Ei,useDeferredValue:function(e,t){return Pi(Va(),Sa.memoizedState,e,t)},useTransition:function(){var e=qa(Ya)[0],t=Va().memoizedState;return["boolean"==typeof e?e:Ba(e),t]},useSyncExternalStore:Qa,useId:Li,useHostTransitionStatus:Fi,useFormState:fi,useActionState:fi,useOptimistic:function(e,t){return ri(Va(),0,e,t)},useMemoCache:Wa,useCacheRefresh:Ii},Qi={readContext:jo,use:Ua,useCallback:Ri,useContext:jo,useEffect:xi,useImperativeHandle:_i,useInsertionEffect:Ci,useLayoutEffect:Si,useMemo:Ni,useReducer:Ka,useRef:yi,useState:function(){return Ka(Ya)},useDebugValue:Ei,useDeferredValue:function(e,t){var n=Va();return null===Sa?ji(n,e,t):Pi(n,Sa.memoizedState,e,t)},useTransition:function(){var e=Ka(Ya)[0],t=Va().memoizedState;return["boolean"==typeof e?e:Ba(e),t]},useSyncExternalStore:Qa,useId:Li,useHostTransitionStatus:Fi,useFormState:mi,useActionState:mi,useOptimistic:function(e,t){var n=Va();return null!==Sa?ri(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Wa,useCacheRefresh:Ii},Zi=null,Xi=0;function Ji(e){var t=Xi;return Xi+=1,null===Zi&&(Zi=[]),ea(Zi,e,t)}function es(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ts(e,t){if(t.$$typeof===c)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ns(e){return(0,e._init)(e._payload)}function rs(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=$r(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ur(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===h?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===R&&ns(o)===t.type)?(es(t=a(t,n.props),n),t.return=e,t):(es(t=Vr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wr(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Br(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function m(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Ur(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case d:return es(n=Vr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case p:return(t=Wr(t,e.mode,n)).return=e,t;case R:return m(e,t=(0,t._init)(t._payload),n)}if(A(t)||M(t))return(t=Br(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return m(e,Ji(t),n);if(t.$$typeof===x)return m(e,Po(e,t),n);ts(e,t)}return null}function g(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case d:return n.key===o?u(e,t,n,r):null;case p:return n.key===o?c(e,t,n,r):null;case R:return g(e,t,n=(o=n._init)(n._payload),r)}if(A(n)||M(n))return null!==o?null:f(e,t,n,r,null);if("function"==typeof n.then)return g(e,t,Ji(n),r);if(n.$$typeof===x)return g(e,t,Po(e,n),r);ts(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case d:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case p:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return y(e,t,n,r=(0,r._init)(r._payload),o)}if(A(r)||M(r))return f(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,Ji(r),o);if(r.$$typeof===x)return y(e,t,n,Po(t,r),o);ts(t,r)}return null}function v(l,u,c,f){if("object"==typeof c&&null!==c&&c.type===h&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case d:e:{for(var b=c.key;null!==u;){if(u.key===b){if((b=c.type)===h){if(7===u.tag){n(l,u.sibling),(f=a(u,c.props.children)).return=l,l=f;break e}}else if(u.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===R&&ns(b)===u.type){n(l,u.sibling),es(f=a(u,c.props),c),f.return=l,l=f;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===h?((f=Br(c.props.children,l.mode,f,c.key)).return=l,l=f):(es(f=Vr(c.type,c.key,c.props,null,l.mode,f),c),f.return=l,l=f)}return s(l);case p:e:{for(b=c.key;null!==u;){if(u.key===b){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(f=a(u,c.children||[])).return=l,l=f;break e}n(l,u);break}t(l,u),u=u.sibling}(f=Wr(c,l.mode,f)).return=l,l=f}return s(l);case R:return v(l,u,c=(b=c._init)(c._payload),f)}if(A(c))return function(r,a,s,l){for(var u=null,c=null,d=a,f=a=0,p=null;null!==d&&f<s.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var h=g(r,d,s[f],l);if(null===h){null===d&&(d=p);break}e&&d&&null===h.alternate&&t(r,d),a=i(h,a,f),null===c?u=h:c.sibling=h,c=h,d=p}if(f===s.length)return n(r,d),so&&to(r,f),u;if(null===d){for(;f<s.length;f++)null!==(d=m(r,s[f],l))&&(a=i(d,a,f),null===c?u=d:c.sibling=d,c=d);return so&&to(r,f),u}for(d=o(d);f<s.length;f++)null!==(p=y(d,r,f,s[f],l))&&(e&&null!==p.alternate&&d.delete(null===p.key?f:p.key),a=i(p,a,f),null===c?u=p:c.sibling=p,c=p);return e&&d.forEach(function(e){return t(r,e)}),so&&to(r,f),u}(l,u,c,f);if(M(c)){if("function"!=typeof(b=M(c)))throw Error(r(150));return function(a,s,l,u){if(null==l)throw Error(r(151));for(var c=null,d=null,f=s,p=s=0,h=null,v=l.next();null!==f&&!v.done;p++,v=l.next()){f.index>p?(h=f,f=null):h=f.sibling;var b=g(a,f,v.value,u);if(null===b){null===f&&(f=h);break}e&&f&&null===b.alternate&&t(a,f),s=i(b,s,p),null===d?c=b:d.sibling=b,d=b,f=h}if(v.done)return n(a,f),so&&to(a,p),c;if(null===f){for(;!v.done;p++,v=l.next())null!==(v=m(a,v.value,u))&&(s=i(v,s,p),null===d?c=v:d.sibling=v,d=v);return so&&to(a,p),c}for(f=o(f);!v.done;p++,v=l.next())null!==(v=y(f,a,p,v.value,u))&&(e&&null!==v.alternate&&f.delete(null===v.key?p:v.key),s=i(v,s,p),null===d?c=v:d.sibling=v,d=v);return e&&f.forEach(function(e){return t(a,e)}),so&&to(a,p),c}(l,u,c=b.call(c),f)}if("function"==typeof c.then)return v(l,u,Ji(c),f);if(c.$$typeof===x)return v(l,u,Po(l,c),f);ts(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(f=a(u,c)).return=l,l=f):(n(l,u),(f=Ur(c,l.mode,f)).return=l,l=f),s(l)):n(l,u)}return function(e,t,n,r){try{Xi=0;var o=v(e,t,n,r);return Zi=null,o}catch(t){if(t===Go||t===Qo)throw t;var a=Ir(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var os=rs(!0),as=rs(!1),is=H(null),ss=null;function ls(e){var t=e.alternate;B(fs,1&fs.current),B(is,e),null===ss&&(null===t||null!==ga.current||null!==t.memoizedState)&&(ss=e)}function us(e){if(22===e.tag){if(B(fs,fs.current),B(is,e),null===ss){var t=e.alternate;null!==t&&null!==t.memoizedState&&(ss=e)}}else cs()}function cs(){B(fs,fs.current),B(is,is.current)}function ds(e){V(is),ss===e&&(ss=null),V(fs)}var fs=H(0);function ps(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||vd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function hs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ms={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fu(),o=sa(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=la(e,o,r))&&(Iu(t,e,r),ua(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fu(),o=sa(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=la(e,o,r))&&(Iu(t,e,r),ua(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fu(),r=sa(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=la(e,r,n))&&(Iu(t,e,n),ua(t,e,n))}};function gs(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Xn(n,r)||!Xn(o,a))}function ys(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ms.enqueueReplaceState(t,t.state,null)}function vs(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=u({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}var bs="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function ws(e){bs(e)}function xs(e){console.error(e)}function Cs(e){bs(e)}function Ss(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ks(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function _s(e,t,n){return(n=sa(n)).tag=3,n.payload={element:null},n.callback=function(){Ss(e,t)},n}function Es(e){return(e=sa(e)).tag=3,e}function Rs(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var a=r.value;e.payload=function(){return o(a)},e.callback=function(){ks(t,n,r)}}var i=n.stateNode;null!==i&&"function"==typeof i.componentDidCatch&&(e.callback=function(){ks(t,n,r),"function"!=typeof o&&(null===Eu?Eu=new Set([this]):Eu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ns=Error(r(461)),js=!1;function Ps(e,t,n,r){t.child=null===e?as(t,null,n,r):os(t,e.child,n,r)}function Os(e,t,n,r,o){n=n.render;var a=t.ref;if("ref"in r){var i={};for(var s in r)"ref"!==s&&(i[s]=r[s])}else i=r;return No(t),r=Da(e,t,n,i,a,o),s=Ia(),null===e||js?(so&&s&&ro(t),t.flags|=1,Ps(e,t,r,o),t.child):(za(e,t,o),Zs(e,t,o))}function Ms(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||zr(a)||void 0!==a.defaultProps||null!==n.compare?((e=Vr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ts(e,t,a,r,o))}if(a=e.child,!Xs(e,o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:Xn)(i,r)&&e.ref===t.ref)return Zs(e,t,o)}return t.flags|=1,(e=$r(a,r)).ref=t.ref,e.return=t,t.child=e}function Ts(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(Xn(a,r)&&e.ref===t.ref){if(js=!1,t.pendingProps=r=a,!Xs(e,o))return t.lanes=e.lanes,Zs(e,t,o);131072&e.flags&&(js=!0)}}return Ls(e,t,n,r,o)}function Ds(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==a?a.baseLanes|n:n,null!==e){for(o=t.child=e.child,a=0;null!==o;)a=a|o.lanes|o.childLanes,o=o.sibling;t.childLanes=a&~r}else t.childLanes=0,t.child=null;return As(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,As(e,t,null!==a?a.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Yo(0,null!==a?a.cachePool:null),null!==a?va(t,a):ba(),us(t)}else null!==a?(Yo(0,a.cachePool),va(t,a),cs(),t.memoizedState=null):(null!==e&&Yo(0,null),ba(),cs());return Ps(e,t,o,n),t.child}function As(e,t,n,r){var o=Wo();return o=null===o?null:{parent:Ao._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Yo(0,null),ba(),us(t),null!==e&&Eo(e,t,r,!0),null}function Fs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ls(e,t,n,r,o){return No(t),n=Da(e,t,n,r,void 0,o),r=Ia(),null===e||js?(so&&r&&ro(t),t.flags|=1,Ps(e,t,n,o),t.child):(za(e,t,o),Zs(e,t,o))}function Is(e,t,n,r,o,a){return No(t),t.updateQueue=null,n=Fa(t,r,n,o),Aa(e),r=Ia(),null===e||js?(so&&r&&ro(t),t.flags|=1,Ps(e,t,n,a),t.child):(za(e,t,a),Zs(e,t,a))}function zs(e,t,n,r,o){if(No(t),null===t.stateNode){var a=Fr,i=n.contextType;"object"==typeof i&&null!==i&&(a=jo(i)),a=new n(r,a),t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=ms,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=r,a.state=t.memoizedState,a.refs={},aa(t),i=n.contextType,a.context="object"==typeof i&&null!==i?jo(i):Fr,a.state=t.memoizedState,"function"==typeof(i=n.getDerivedStateFromProps)&&(hs(t,n,i,r),a.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(i=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),i!==a.state&&ms.enqueueReplaceState(a,a.state,null),pa(t,r,a,o),fa(),a.state=t.memoizedState),"function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){a=t.stateNode;var s=t.memoizedProps,l=vs(n,s);a.props=l;var u=a.context,c=n.contextType;i=Fr,"object"==typeof c&&null!==c&&(i=jo(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s||u!==i)&&ys(t,a,r,i),oa=!1;var f=t.memoizedState;a.state=f,pa(t,r,a,o),fa(),u=t.memoizedState,s||f!==u||oa?("function"==typeof d&&(hs(t,n,d,r),u=t.memoizedState),(l=oa||gs(t,n,l,r,f,u,i))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=i,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ia(e,t),c=vs(n,i=t.memoizedProps),a.props=c,d=t.pendingProps,f=a.context,u=n.contextType,l=Fr,"object"==typeof u&&null!==u&&(l=jo(u)),(u="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(i!==d||f!==l)&&ys(t,a,r,l),oa=!1,f=t.memoizedState,a.state=f,pa(t,r,a,o),fa();var p=t.memoizedState;i!==d||f!==p||oa||null!==e&&null!==e.dependencies&&Ro(e.dependencies)?("function"==typeof s&&(hs(t,n,s,r),p=t.memoizedState),(c=oa||gs(t,n,c,r,f,p,l)||null!==e&&null!==e.dependencies&&Ro(e.dependencies))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Fs(e,t),r=!!(128&t.flags),a||r?(a=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:a.render(),t.flags|=1,null!==e&&r?(t.child=os(t,e.child,null,o),t.child=os(t,null,n,o)):Ps(e,t,n,o),t.memoizedState=a.state,e=t.child):e=Zs(e,t,o),e}function $s(e,t,n,r){return go(),t.flags|=256,Ps(e,t,n,r),t.child}var Hs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vs(e){return{baseLanes:e,cachePool:qo()}}function Bs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=vu),e}function Us(e,t,n){var o,a=t.pendingProps,i=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&fs.current)),o&&(i=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(so){if(i?ls(t):cs(),so){var l,u=io;if(l=u){e:{for(l=u,u=uo;8!==l.nodeType;){if(!u){u=null;break e}if(null===(l=bd(l.nextSibling))){u=null;break e}}u=l}null!==u?(t.memoizedState={dehydrated:u,treeContext:null!==Xr?{id:Jr,overflow:eo}:null,retryLane:536870912,hydrationErrors:null},(l=Ir(18,null,null,0)).stateNode=u,l.return=t,t.child=l,ao=t,io=null,l=!0):l=!1}l||fo(t)}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return vd(u)?t.lanes=32:t.lanes=536870912,null;ds(t)}return u=a.children,a=a.fallback,i?(cs(),u=Ys({mode:"hidden",children:u},i=t.mode),a=Br(a,i,n,null),u.return=t,a.return=t,u.sibling=a,t.child=u,(i=t.child).memoizedState=Vs(n),i.childLanes=Bs(e,o,n),t.memoizedState=Hs,a):(ls(t),Ws(t,u))}if(null!==(l=e.memoizedState)&&null!==(u=l.dehydrated)){if(s)256&t.flags?(ls(t),t.flags&=-257,t=qs(e,t,n)):null!==t.memoizedState?(cs(),t.child=e.child,t.flags|=128,t=null):(cs(),i=a.fallback,u=t.mode,a=Ys({mode:"visible",children:a.children},u),(i=Br(i,u,n,null)).flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,os(t,e.child,null,n),(a=t.child).memoizedState=Vs(n),a.childLanes=Bs(e,o,n),t.memoizedState=Hs,t=i);else if(ls(t),vd(u)){if(o=u.nextSibling&&u.nextSibling.dataset)var c=o.dgst;o=c,(a=Error(r(419))).stack="",a.digest=o,vo({value:a,source:null,stack:null}),t=qs(e,t,n)}else if(js||Eo(e,t,n,!1),o=0!==(n&e.childLanes),js||o){if(null!==(o=au)&&(0!==(a=0!==((a=42&(a=n&-n)?1:Pe(a))&(o.suspendedLanes|n))?0:a)&&a!==l.retryLane))throw l.retryLane=a,Tr(e,a),Iu(o,e,a),Ns;"$?"===u.data||Ku(),t=qs(e,t,n)}else"$?"===u.data?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,io=bd(u.nextSibling),ao=t,so=!0,lo=null,uo=!1,null!==e&&(Qr[Zr++]=Jr,Qr[Zr++]=eo,Qr[Zr++]=Xr,Jr=e.id,eo=e.overflow,Xr=t),(t=Ws(t,a.children)).flags|=4096);return t}return i?(cs(),i=a.fallback,u=t.mode,c=(l=e.child).sibling,(a=$r(l,{mode:"hidden",children:a.children})).subtreeFlags=65011712&l.subtreeFlags,null!==c?i=$r(c,i):(i=Br(i,u,n,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,null===(u=e.child.memoizedState)?u=Vs(n):(null!==(l=u.cachePool)?(c=Ao._currentValue,l=l.parent!==c?{parent:c,pool:c}:l):l=qo(),u={baseLanes:u.baseLanes|n,cachePool:l}),i.memoizedState=u,i.childLanes=Bs(e,o,n),t.memoizedState=Hs,a):(ls(t),e=(n=e.child).sibling,(n=$r(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Ws(e,t){return(t=Ys({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Ys(e,t){return(e=Ir(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function qs(e,t,n){return os(t,e.child,null,n),(e=Ws(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Gs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ko(e.return,t,n)}function Ks(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Qs(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Ps(e,t,r.children,n),2&(r=fs.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Gs(e,n,t);else if(19===e.tag)Gs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(B(fs,r),o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ps(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ks(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ps(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ks(t,!0,n,null,a);break;case"together":Ks(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),mu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Eo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=$r(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$r(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Xs(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ro(e))}function Js(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)js=!0;else{if(!(Xs(e,n)||128&t.flags))return js=!1,function(e,t,n){switch(t.tag){case 3:G(t,t.stateNode.containerInfo),Co(0,Ao,e.memoizedState.cache),go();break;case 27:case 5:Q(t);break;case 4:G(t,t.stateNode.containerInfo);break;case 10:Co(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(ls(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Us(e,t,n):(ls(t),null!==(e=Zs(e,t,n))?e.sibling:null);ls(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Eo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return Qs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(fs,fs.current),r)break;return null;case 22:case 23:return t.lanes=0,Ds(e,t,n);case 24:Co(0,Ao,e.memoizedState.cache)}return Zs(e,t,n)}(e,t,n);js=!!(131072&e.flags)}else js=!1,so&&1048576&t.flags&&no(t,Kr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,a=o._init;if(o=a(o._payload),t.type=o,"function"!=typeof o){if(null!=o){if((a=o.$$typeof)===C){t.tag=11,t=Os(null,t,o,e,n);break e}if(a===E){t.tag=14,t=Ms(null,t,o,e,n);break e}}throw t=D(o)||o,Error(r(306,t,""))}zr(o)?(e=vs(o,e),t.tag=1,t=zs(null,t,o,e,n)):(t.tag=0,t=Ls(null,t,o,e,n))}return t;case 0:return Ls(e,t,t.type,t.pendingProps,n);case 1:return zs(e,t,o=t.type,a=vs(o,t.pendingProps),n);case 3:e:{if(G(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var i=t.memoizedState;a=i.element,ia(e,t),pa(t,o,null,n);var s=t.memoizedState;if(o=s.cache,Co(0,Ao,o),o!==i.cache&&_o(t,[Ao],n,!0),fa(),o=s.element,i.isDehydrated){if(i={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=$s(e,t,o,n);break e}if(o!==a){vo(a=Er(Error(r(424)),t)),t=$s(e,t,o,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(io=bd(e.firstChild),ao=t,so=!0,lo=null,uo=!0,n=as(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(go(),o===a){t=Zs(e,t,n);break e}Ps(e,t,o,n)}t=t.child}return t;case 26:return Fs(e,t),null===e?(n=Pd(t.type,null,t.pendingProps,null))?t.memoizedState=n:so||(n=t.type,e=t.pendingProps,(o=ad(Y.current).createElement(n))[De]=t,o[Ae]=e,nd(o,n,e),qe(o),t.stateNode=o):t.memoizedState=Pd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Q(t),null===e&&so&&(o=t.stateNode=Cd(t.type,t.pendingProps,Y.current),ao=t,uo=!0,a=io,md(t.type)?(wd=a,io=bd(o.firstChild)):io=a),Ps(e,t,t.pendingProps.children,n),Fs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&so&&((a=o=io)&&(null!==(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[He])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(a=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(a!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((a=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var a=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===a)return e}if(null===(e=bd(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,uo))?(t.stateNode=o,ao=t,io=bd(o.firstChild),uo=!1,a=!0):a=!1),a||fo(t)),Q(t),a=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,o=i.children,ld(a,i)?o=null:null!==s&&ld(a,s)&&(t.flags|=32),null!==t.memoizedState&&(a=Da(e,t,La,null,null,n),Qd._currentValue=a),Fs(e,t),Ps(e,t,o,n),t.child;case 6:return null===e&&so&&((e=n=io)&&(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=bd(e.nextSibling)))return null}return e}(n,t.pendingProps,uo),null!==n?(t.stateNode=n,ao=t,io=null,e=!0):e=!1),e||fo(t)),null;case 13:return Us(e,t,n);case 4:return G(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=os(t,null,o,n):Ps(e,t,o,n),t.child;case 11:return Os(e,t,t.type,t.pendingProps,n);case 7:return Ps(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ps(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Co(0,t.type,o.value),Ps(e,t,o.children,n),t.child;case 9:return a=t.type._context,o=t.pendingProps.children,No(t),o=o(a=jo(a)),t.flags|=1,Ps(e,t,o,n),t.child;case 14:return Ms(e,t,t.type,t.pendingProps,n);case 15:return Ts(e,t,t.type,t.pendingProps,n);case 19:return Qs(e,t,n);case 31:return o=t.pendingProps,n=t.mode,o={mode:o.mode,children:o.children},null===e?((n=Ys(o,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=$r(e.child,o)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Ds(e,t,n);case 24:return No(t),o=jo(Ao),null===e?(null===(a=Wo())&&(a=au,i=Fo(),a.pooledCache=i,i.refCount++,null!==i&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:o,cache:a},aa(t),Co(0,Ao,a)):(0!==(e.lanes&n)&&(ia(e,t),pa(t,null,null,n),fa()),a=e.memoizedState,i=t.memoizedState,a.parent!==o?(a={parent:o,cache:o},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),Co(0,Ao,o)):(o=i.cache,Co(0,Ao,o),o!==a.cache&&_o(t,[Ao],n,!0))),Ps(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function el(e){e.flags|=4}function tl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Bd(t)){if(null!==(t=is.current)&&((4194048&su)===su?null!==ss:(62914560&su)!==su&&!(536870912&su)||t!==ss))throw ta=Zo,Ko;e.flags|=8192}}function nl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?_e():536870912,e.lanes|=t,bu|=t)}function rl(e,t){if(!so)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ol(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function al(e,t,n){var o=t.pendingProps;switch(oo(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return ol(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),So(Ao),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(mo(t)?el(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,yo())),ol(t),null;case 26:return n=t.memoizedState,null===e?(el(t),null!==n?(ol(t),tl(t,n)):(ol(t),t.flags&=-16777217)):n?n!==e.memoizedState?(el(t),ol(t),tl(t,n)):(ol(t),t.flags&=-16777217):(e.memoizedProps!==o&&el(t),ol(t),t.flags&=-16777217),null;case 27:Z(t),n=Y.current;var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==o&&el(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return ol(t),null}e=U.current,mo(t)?po(t):(e=Cd(a,o,n),t.stateNode=e,el(t))}return ol(t),null;case 5:if(Z(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&el(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return ol(t),null}if(e=U.current,mo(t))po(t);else{switch(a=ad(Y.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof o.is?a.createElement("select",{is:o.is}):a.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e="string"==typeof o.is?a.createElement(n,{is:o.is}):a.createElement(n)}}e[De]=t,e[Ae]=o;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(nd(e,n,o),n){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&el(t)}}return ol(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&el(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=Y.current,mo(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(a=ao))switch(a.tag){case 27:case 5:o=a.memoizedProps}e[De]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||Xc(e.nodeValue,n)))||fo(t)}else(e=ad(e).createTextNode(o))[De]=t,t.stateNode=e}return ol(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=mo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!a)throw Error(r(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(r(317));a[De]=t}else go(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ol(t),a=!1}else a=yo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(ds(t),t):(ds(t),null)}if(ds(t),128&t.flags)return t.lanes=n,t;if(n=null!==o,e=null!==e&&null!==e.memoizedState,n){a=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(a=o.alternate.memoizedState.cachePool.pool);var i=null;null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(i=o.memoizedState.cachePool.pool),i!==a&&(o.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),nl(t,t.updateQueue),ol(t),null;case 4:return K(),null===e&&Vc(t.stateNode.containerInfo),ol(t),null;case 10:return So(t.type),ol(t),null;case 19:if(V(fs),null===(a=t.memoizedState))return ol(t),null;if(o=!!(128&t.flags),null===(i=a.rendering))if(o)rl(a,!1);else{if(0!==hu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=ps(e))){for(t.flags|=128,rl(a,!1),e=i.updateQueue,t.updateQueue=e,nl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Hr(n,e),n=n.sibling;return B(fs,1&fs.current|2),t.child}e=e.sibling}null!==a.tail&&re()>ku&&(t.flags|=128,o=!0,rl(a,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=ps(i))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,nl(t,e),rl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!so)return ol(t),null}else 2*re()-a.renderingStartTime>ku&&536870912!==n&&(t.flags|=128,o=!0,rl(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=a.last)?e.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=re(),t.sibling=null,e=fs.current,B(fs,o?1&e|2:1&e),t):(ol(t),null);case 22:case 23:return ds(t),wa(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(ol(t),6&t.subtreeFlags&&(t.flags|=8192)):ol(t),null!==(n=t.updateQueue)&&nl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&V(Uo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),So(Ao),ol(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function il(e,t){switch(oo(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return So(Ao),K(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Z(t),null;case 13:if(ds(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));go()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return V(fs),null;case 4:return K(),null;case 10:return So(t.type),null;case 22:case 23:return ds(t),wa(),null!==e&&V(Uo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return So(Ao),null;default:return null}}function sl(e,t){switch(oo(t),t.tag){case 3:So(Ao),K();break;case 26:case 27:case 5:Z(t);break;case 4:K();break;case 13:ds(t);break;case 19:V(fs);break;case 10:So(t.type);break;case 22:case 23:ds(t),wa(),null!==e&&V(Uo);break;case 24:So(Ao)}}function ll(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var a=n.create,i=n.inst;r=a(),i.destroy=r}n=n.next}while(n!==o)}}catch(e){fc(t,t.return,e)}}function ul(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var a=o.next;r=a;do{if((r.tag&e)===e){var i=r.inst,s=i.destroy;if(void 0!==s){i.destroy=void 0,o=t;var l=n,u=s;try{u()}catch(e){fc(o,l,e)}}}r=r.next}while(r!==a)}}catch(e){fc(t,t.return,e)}}function cl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{ma(t,n)}catch(t){fc(e,e.return,t)}}}function dl(e,t,n){n.props=vs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){fc(e,t,n)}}function fl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){fc(e,t,n)}}function pl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){fc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){fc(e,t,n)}else n.current=null}function hl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){fc(e,e.return,t)}}function ml(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,s=null,l=null,u=null,c=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":u=f;default:o.hasOwnProperty(h)||ed(e,t,h,null,o,f)}}for(var p in o){var h=o[p];if(f=n[p],o.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":i=h;break;case"name":a=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&ed(e,t,p,h,o,f)}}return void vt(e,s,l,u,c,d,i,a);case"select":for(i in h=s=l=p=null,n)if(u=n[i],n.hasOwnProperty(i)&&null!=u)switch(i){case"value":break;case"multiple":h=u;default:o.hasOwnProperty(i)||ed(e,t,i,null,o,u)}for(a in o)if(i=o[a],u=n[a],o.hasOwnProperty(a)&&(null!=i||null!=u))switch(a){case"value":p=i;break;case"defaultValue":l=i;break;case"multiple":s=i;default:i!==u&&ed(e,t,a,i,o,u)}return t=l,n=s,o=h,void(null!=p?xt(e,!!n,p,!1):!!o!=!!n&&(null!=t?xt(e,!!n,t,!0):xt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(a=n[l],n.hasOwnProperty(l)&&null!=a&&!o.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ed(e,t,l,null,o,a)}for(s in o)if(a=o[s],i=n[s],o.hasOwnProperty(s)&&(null!=a||null!=i))switch(s){case"value":p=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(r(91));break;default:a!==i&&ed(e,t,s,a,o,i)}return void Ct(e,p,h);case"option":for(var m in n)if(p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m))if("selected"===m)e.selected=!1;else ed(e,t,m,null,o,p);for(u in o)if(p=o[u],h=n[u],o.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))if("selected"===u)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else ed(e,t,u,p,o,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!o.hasOwnProperty(g)&&ed(e,t,g,null,o,p);for(c in o)if(p=o[c],h=n[c],o.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:ed(e,t,c,p,o,h)}return;default:if(Nt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&td(e,t,y,void 0,o,p);for(d in o)p=o[d],h=n[d],!o.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||td(e,t,d,p,o,h);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!o.hasOwnProperty(v)&&ed(e,t,v,null,o,p);for(f in o)p=o[f],h=n[f],!o.hasOwnProperty(f)||p===h||null==p&&null==h||ed(e,t,f,p,o,h)}(o,e.type,n,t),o[Ae]=t}catch(t){fc(e,e.return,t)}}function gl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&md(e.type)||4===e.tag}function yl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||gl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&md(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function vl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jc));else if(4!==r&&(27===r&&md(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(vl(e,t,n),e=e.sibling;null!==e;)vl(e,t,n),e=e.sibling}function bl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&md(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(bl(e,t,n),e=e.sibling;null!==e;)bl(e,t,n),e=e.sibling}function wl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);nd(t,r,n),t[De]=e,t[Ae]=n}catch(t){fc(e,e.return,t)}}var xl=!1,Cl=!1,Sl=!1,kl="function"==typeof WeakSet?WeakSet:Set,_l=null;function El(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:zl(e,n),4&r&&ll(5,n);break;case 1:if(zl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){fc(n,n.return,e)}else{var o=vs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){fc(n,n.return,e)}}64&r&&cl(n),512&r&&fl(n,n.return);break;case 3:if(zl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{ma(e,t)}catch(e){fc(n,n.return,e)}}break;case 27:null===t&&4&r&&wl(n);case 26:case 5:zl(e,n),null===t&&4&r&&hl(n),512&r&&fl(n,n.return);break;case 12:zl(e,n);break;case 13:zl(e,n),4&r&&Ml(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=gc.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||xl)){t=null!==t&&null!==t.memoizedState||Cl,o=xl;var a=Cl;xl=r,(Cl=t)&&!a?Hl(e,n,!!(8772&n.subtreeFlags)):zl(e,n),xl=o,Cl=a}break;case 30:break;default:zl(e,n)}}function Rl(e){var t=e.alternate;null!==t&&(e.alternate=null,Rl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ve(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Nl=null,jl=!1;function Pl(e,t,n){for(n=n.child;null!==n;)Ol(e,t,n),n=n.sibling}function Ol(e,t,n){if(pe&&"function"==typeof pe.onCommitFiberUnmount)try{pe.onCommitFiberUnmount(fe,n)}catch(e){}switch(n.tag){case 26:Cl||pl(n,t),Pl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Cl||pl(n,t);var r=Nl,o=jl;md(n.type)&&(Nl=n.stateNode,jl=!1),Pl(e,t,n),Sd(n.stateNode),Nl=r,jl=o;break;case 5:Cl||pl(n,t);case 6:if(r=Nl,o=jl,Nl=null,Pl(e,t,n),jl=o,null!==(Nl=r))if(jl)try{(9===Nl.nodeType?Nl.body:"HTML"===Nl.nodeName?Nl.ownerDocument.body:Nl).removeChild(n.stateNode)}catch(e){fc(n,t,e)}else try{Nl.removeChild(n.stateNode)}catch(e){fc(n,t,e)}break;case 18:null!==Nl&&(jl?(gd(9===(e=Nl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Pf(e)):gd(Nl,n.stateNode));break;case 4:r=Nl,o=jl,Nl=n.stateNode.containerInfo,jl=!0,Pl(e,t,n),Nl=r,jl=o;break;case 0:case 11:case 14:case 15:Cl||ul(2,n,t),Cl||ul(4,n,t),Pl(e,t,n);break;case 1:Cl||(pl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&dl(n,t,r)),Pl(e,t,n);break;case 21:Pl(e,t,n);break;case 22:Cl=(r=Cl)||null!==n.memoizedState,Pl(e,t,n),Cl=r;break;default:Pl(e,t,n)}}function Ml(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Pf(e)}catch(e){fc(t,t.return,e)}}function Tl(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new kl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new kl),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){var r=yc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function Dl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var a=n[o],i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(md(l.type)){Nl=l.stateNode,jl=!1;break e}break;case 5:Nl=l.stateNode,jl=!1;break e;case 3:case 4:Nl=l.stateNode.containerInfo,jl=!0;break e}l=l.return}if(null===Nl)throw Error(r(160));Ol(i,s,a),Nl=null,jl=!1,null!==(i=a.alternate)&&(i.return=null),a.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Fl(t,e),t=t.sibling}var Al=null;function Fl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dl(t,e),Ll(e),4&o&&(ul(3,e,e.return),ll(3,e),ul(5,e,e.return));break;case 1:Dl(t,e),Ll(e),512&o&&(Cl||null===n||pl(n,n.return)),64&o&&xl&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var a=Al;if(Dl(t,e),Ll(e),512&o&&(Cl||null===n||pl(n,n.return)),4&o){var i=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(o){case"title":(!(i=a.getElementsByTagName("title")[0])||i[He]||i[De]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=a.createElement(o),a.head.insertBefore(i,a.querySelector("head > title"))),nd(i,o,n),i[De]=e,qe(i),o=i;break e;case"link":var s=Hd("link","href",a).get(o+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((i=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}nd(i=a.createElement(o),o,n),a.head.appendChild(i);break;case"meta":if(s=Hd("meta","content",a).get(o+(n.content||"")))for(l=0;l<s.length;l++)if((i=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}nd(i=a.createElement(o),o,n),a.head.appendChild(i);break;default:throw Error(r(468,o))}i[De]=e,qe(i),o=i}e.stateNode=o}else Vd(a,e.type,e.stateNode);else e.stateNode=Fd(a,o,e.memoizedProps);else i!==o?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===o?Vd(a,e.type,e.stateNode):Fd(a,o,e.memoizedProps)):null===o&&null!==e.stateNode&&ml(e,e.memoizedProps,n.memoizedProps)}break;case 27:Dl(t,e),Ll(e),512&o&&(Cl||null===n||pl(n,n.return)),null!==n&&4&o&&ml(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Dl(t,e),Ll(e),512&o&&(Cl||null===n||pl(n,n.return)),32&e.flags){a=e.stateNode;try{kt(a,"")}catch(t){fc(e,e.return,t)}}4&o&&null!=e.stateNode&&ml(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&o&&(Sl=!0);break;case 6:if(Dl(t,e),Ll(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(t){fc(e,e.return,t)}}break;case 3:if($d=null,a=Al,Al=Ed(t.containerInfo),Dl(t,e),Al=a,Ll(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Pf(t.containerInfo)}catch(t){fc(e,e.return,t)}Sl&&(Sl=!1,Il(e));break;case 4:o=Al,Al=Ed(e.stateNode.containerInfo),Dl(t,e),Ll(e),Al=o;break;case 12:default:Dl(t,e),Ll(e);break;case 13:Dl(t,e),Ll(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Su=re()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,Tl(e,o)));break;case 22:a=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=xl,d=Cl;if(xl=c||a,Cl=d||u,Dl(t,e),Cl=d,xl=c,Ll(e),8192&o)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||u||xl||Cl||$l(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(i=u.stateNode,a)"function"==typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=u.stateNode;var f=u.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){fc(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=a?"":u.memoizedProps}catch(e){fc(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,Tl(e,n))));break;case 19:Dl(t,e),Ll(e),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,Tl(e,o)));case 30:case 21:}}function Ll(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(gl(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var a=n.stateNode;bl(e,yl(e),a);break;case 5:var i=n.stateNode;32&n.flags&&(kt(i,""),n.flags&=-33),bl(e,yl(e),i);break;case 3:case 4:var s=n.stateNode.containerInfo;vl(e,yl(e),s);break;default:throw Error(r(161))}}catch(t){fc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Il(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Il(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function zl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)El(e,t.alternate,t),t=t.sibling}function $l(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ul(4,t,t.return),$l(t);break;case 1:pl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&dl(t,t.return,n),$l(t);break;case 27:Sd(t.stateNode);case 26:case 5:pl(t,t.return),$l(t);break;case 22:null===t.memoizedState&&$l(t);break;default:$l(t)}e=e.sibling}}function Hl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,a=t,i=a.flags;switch(a.tag){case 0:case 11:case 15:Hl(o,a,n),ll(4,a);break;case 1:if(Hl(o,a,n),"function"==typeof(o=(r=a).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){fc(r,r.return,e)}if(null!==(o=(r=a).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)ha(l[o],s)}catch(e){fc(r,r.return,e)}}n&&64&i&&cl(a),fl(a,a.return);break;case 27:wl(a);case 26:case 5:Hl(o,a,n),n&&null===r&&4&i&&hl(a),fl(a,a.return);break;case 12:Hl(o,a,n);break;case 13:Hl(o,a,n),n&&4&i&&Ml(o,a);break;case 22:null===a.memoizedState&&Hl(o,a,n),fl(a,a.return);break;case 30:break;default:Hl(o,a,n)}t=t.sibling}}function Vl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Lo(n))}function Bl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Lo(e))}function Ul(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Wl(e,t,n,r),t=t.sibling}function Wl(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ul(e,t,n,r),2048&o&&ll(9,t);break;case 1:case 13:default:Ul(e,t,n,r);break;case 3:Ul(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Lo(e)));break;case 12:if(2048&o){Ul(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,i=a.id,s=a.onPostCommit;"function"==typeof s&&s(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){fc(t,t.return,e)}}else Ul(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,i=t.alternate,null!==t.memoizedState?2&a._visibility?Ul(e,t,n,r):ql(e,t):2&a._visibility?Ul(e,t,n,r):(a._visibility|=2,Yl(e,t,n,r,!!(10256&t.subtreeFlags))),2048&o&&Vl(i,t);break;case 24:Ul(e,t,n,r),2048&o&&Bl(t.alternate,t)}}function Yl(e,t,n,r,o){for(o=o&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var a=e,i=t,s=n,l=r,u=i.flags;switch(i.tag){case 0:case 11:case 15:Yl(a,i,s,l,o),ll(8,i);break;case 23:break;case 22:var c=i.stateNode;null!==i.memoizedState?2&c._visibility?Yl(a,i,s,l,o):ql(a,i):(c._visibility|=2,Yl(a,i,s,l,o)),o&&2048&u&&Vl(i.alternate,i);break;case 24:Yl(a,i,s,l,o),o&&2048&u&&Bl(i.alternate,i);break;default:Yl(a,i,s,l,o)}t=t.sibling}}function ql(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:ql(n,r),2048&o&&Vl(r.alternate,r);break;case 24:ql(n,r),2048&o&&Bl(r.alternate,r);break;default:ql(n,r)}t=t.sibling}}var Gl=8192;function Kl(e){if(e.subtreeFlags&Gl)for(e=e.child;null!==e;)Ql(e),e=e.sibling}function Ql(e){switch(e.tag){case 26:Kl(e),e.flags&Gl&&null!==e.memoizedState&&function(e,t,n){if(null===Ud)throw Error(r(475));var o=Ud;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var a=Od(n.href),i=e.querySelector(Md(a));if(i)return null!==(e=i._p)&&"object"==typeof e&&"function"==typeof e.then&&(o.count++,o=Yd.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=i,void qe(i);i=e.ownerDocument||e,n=Td(n),(a=kd.get(a))&&Id(n,a),qe(i=i.createElement("link"));var s=i;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),nd(i,"link",n),t.instance=i}null===o.stylesheets&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(o.count++,t=Yd.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}(Al,e.memoizedState,e.memoizedProps);break;case 5:default:Kl(e);break;case 3:case 4:var t=Al;Al=Ed(e.stateNode.containerInfo),Kl(e),Al=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Gl,Gl=16777216,Kl(e),Gl=t):Kl(e))}}function Zl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Xl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];_l=r,tu(r,e)}Zl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Jl(e),e=e.sibling}function Jl(e){switch(e.tag){case 0:case 11:case 15:Xl(e),2048&e.flags&&ul(9,e,e.return);break;case 3:case 12:default:Xl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,eu(e)):Xl(e)}}function eu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];_l=r,tu(r,e)}Zl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:ul(8,t,t.return),eu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,eu(t));break;default:eu(t)}e=e.sibling}}function tu(e,t){for(;null!==_l;){var n=_l;switch(n.tag){case 0:case 11:case 15:ul(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Lo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,_l=r;else e:for(n=e;null!==_l;){var o=(r=_l).sibling,a=r.return;if(Rl(r),r===n){_l=null;break e}if(null!==o){o.return=a,_l=o;break e}_l=a}}}var nu={getCacheForType:function(e){var t=jo(Ao),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},ru="function"==typeof WeakMap?WeakMap:Map,ou=0,au=null,iu=null,su=0,lu=0,uu=null,cu=!1,du=!1,fu=!1,pu=0,hu=0,mu=0,gu=0,yu=0,vu=0,bu=0,wu=null,xu=null,Cu=!1,Su=0,ku=1/0,_u=null,Eu=null,Ru=0,Nu=null,ju=null,Pu=0,Ou=0,Mu=null,Tu=null,Du=0,Au=null;function Fu(){if(2&ou&&0!==su)return su&-su;if(null!==F.T){return 0!==$o?$o:Oc()}return Me()}function Lu(){0===vu&&(vu=536870912&su&&!so?536870912:ke());var e=is.current;return null!==e&&(e.flags|=32),vu}function Iu(e,t,n){(e!==au||2!==lu&&9!==lu)&&null===e.cancelPendingCommit||(Wu(e,0),Vu(e,su,vu,!1)),Re(e,n),2&ou&&e===au||(e===au&&(!(2&ou)&&(gu|=n),4===hu&&Vu(e,su,vu,!1)),kc(e))}function zu(e,t,n){if(6&ou)throw Error(r(327));for(var o=!n&&!(124&t)&&0===(t&e.expiredLanes)||Ce(e,t),a=o?function(e,t){var n=ou;ou|=2;var o=qu(),a=Gu();au!==e||su!==t?(_u=null,ku=re()+500,Wu(e,t)):du=Ce(e,t);e:for(;;)try{if(0!==lu&&null!==iu){t=iu;var i=uu;t:switch(lu){case 1:lu=0,uu=null,tc(e,t,i,1);break;case 2:case 9:if(Xo(i)){lu=0,uu=null,ec(t);break}t=function(){2!==lu&&9!==lu||au!==e||(lu=7),kc(e)},i.then(t,t);break e;case 3:lu=7;break e;case 4:lu=5;break e;case 7:Xo(i)?(lu=0,uu=null,ec(t)):(lu=0,uu=null,tc(e,t,i,7));break;case 5:var s=null;switch(iu.tag){case 26:s=iu.memoizedState;case 5:case 27:var l=iu;if(!s||Bd(s)){lu=0,uu=null;var u=l.sibling;if(null!==u)iu=u;else{var c=l.return;null!==c?(iu=c,nc(c)):iu=null}break t}}lu=0,uu=null,tc(e,t,i,5);break;case 6:lu=0,uu=null,tc(e,t,i,6);break;case 8:Uu(),hu=6;break e;default:throw Error(r(462))}}Xu();break}catch(t){Yu(e,t)}return xo=wo=null,F.H=o,F.A=a,ou=n,null!==iu?0:(au=null,su=0,Pr(),hu)}(e,t):Qu(e,t,!0),i=o;;){if(0===a){du&&!o&&Vu(e,t,0,!1);break}if(n=e.current.alternate,!i||Hu(n)){if(2===a){if(i=t,e.errorRecoveryDisabledLanes&i)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;a=wu;var u=l.current.memoizedState.isDehydrated;if(u&&(Wu(l,s).flags|=256),2!==(s=Qu(l,s,!1))){if(fu&&!u){l.errorRecoveryDisabledLanes|=i,gu|=i,a=4;break e}i=xu,xu=a,null!==i&&(null===xu?xu=i:xu.push.apply(xu,i))}a=s}if(i=!1,2!==a)continue}}if(1===a){Wu(e,0),Vu(e,t,0,!0);break}e:{switch(o=e,i=a){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:Vu(o,t,vu,!cu);break e;case 2:xu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(a=Su+300-re())){if(Vu(o,t,vu,!cu),0!==xe(o,0,!0))break e;o.timeoutHandle=cd($u.bind(null,o,n,xu,_u,Cu,t,vu,gu,bu,cu,i,2,-0,0),a)}else $u(o,n,xu,_u,Cu,t,vu,gu,bu,cu,i,0,-0,0)}break}a=Qu(e,t,!1),i=!1}kc(e)}function $u(e,t,n,o,a,i,s,l,u,c,d,f,p,h){if(e.timeoutHandle=-1,(8192&(f=t.subtreeFlags)||!(16785408&~f))&&(Ud={stylesheets:null,count:0,unsuspend:Wd},Ql(t),null!==(f=function(){if(null===Ud)throw Error(r(475));var e=Ud;return e.stylesheets&&0===e.count&&Gd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Gd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=f(oc.bind(null,e,t,i,n,o,a,s,l,u,d,1,p,h)),void Vu(e,i,s,!c);oc(e,t,i,n,o,a,s,l,u)}function Hu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!Zn(a(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vu(e,t,n,r){t&=~yu,t&=~gu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var a=31-me(o),i=1<<a;r[a]=-1,o&=~i}0!==n&&Ne(e,n,t)}function Bu(){return!!(6&ou)||(_c(0),!1)}function Uu(){if(null!==iu){if(0===lu)var e=iu.return;else xo=wo=null,$a(e=iu),Zi=null,Xi=0,e=iu;for(;null!==e;)sl(e.alternate,e),e=e.return;iu=null}}function Wu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,dd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Uu(),au=e,iu=n=$r(e.current,null),su=t,lu=0,uu=null,cu=!1,du=Ce(e,t),fu=!1,bu=vu=yu=gu=mu=hu=0,xu=wu=null,Cu=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-me(r),a=1<<o;t|=e[o],r&=~a}return pu=t,Pr(),n}function Yu(e,t){Ca=null,F.H=qi,t===Go||t===Qo?(t=na(),lu=3):t===Ko?(t=na(),lu=4):lu=t===Ns?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,uu=t,null===iu&&(hu=1,Ss(e,Er(t,e.current)))}function qu(){var e=F.H;return F.H=qi,null===e?qi:e}function Gu(){var e=F.A;return F.A=nu,e}function Ku(){hu=4,cu||(4194048&su)!==su&&null!==is.current||(du=!0),!(134217727&mu)&&!(134217727&gu)||null===au||Vu(au,su,vu,!1)}function Qu(e,t,n){var r=ou;ou|=2;var o=qu(),a=Gu();au===e&&su===t||(_u=null,Wu(e,t)),t=!1;var i=hu;e:for(;;)try{if(0!==lu&&null!==iu){var s=iu,l=uu;switch(lu){case 8:Uu(),i=6;break e;case 3:case 2:case 9:case 6:null===is.current&&(t=!0);var u=lu;if(lu=0,uu=null,tc(e,s,l,u),n&&du){i=0;break e}break;default:u=lu,lu=0,uu=null,tc(e,s,l,u)}}Zu(),i=hu;break}catch(t){Yu(e,t)}return t&&e.shellSuspendCounter++,xo=wo=null,ou=r,F.H=o,F.A=a,null===iu&&(au=null,su=0,Pr()),i}function Zu(){for(;null!==iu;)Ju(iu)}function Xu(){for(;null!==iu&&!te();)Ju(iu)}function Ju(e){var t=Js(e.alternate,e,pu);e.memoizedProps=e.pendingProps,null===t?nc(e):iu=t}function ec(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Is(n,t,t.pendingProps,t.type,void 0,su);break;case 11:t=Is(n,t,t.pendingProps,t.type.render,t.ref,su);break;case 5:$a(t);default:sl(n,t),t=Js(n,t=iu=Hr(t,pu),pu)}e.memoizedProps=e.pendingProps,null===t?nc(e):iu=t}function tc(e,t,n,o){xo=wo=null,$a(t),Zi=null,Xi=0;var a=t.return;try{if(function(e,t,n,o,a){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Eo(t,n,a,!0),null!==(n=is.current)){switch(n.tag){case 13:return null===ss?Ku():null===n.alternate&&0===hu&&(hu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,o===Zo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),pc(e,o,a)),!1;case 22:return n.flags|=65536,o===Zo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),pc(e,o,a)),!1}throw Error(r(435,n.tag))}return pc(e,o,a),Ku(),!1}if(so)return null!==(t=is.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,o!==co&&vo(Er(e=Error(r(422),{cause:o}),n))):(o!==co&&vo(Er(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,o=Er(o,n),ca(e,a=_s(e.stateNode,o,a)),4!==hu&&(hu=2)),!1;var i=Error(r(520),{cause:o});if(i=Er(i,n),null===wu?wu=[i]:wu.push(i),4!==hu&&(hu=2),null===t)return!0;o=Er(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,ca(n,e=_s(n.stateNode,o,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==Eu&&Eu.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,Rs(a=Es(a),e,n,o),ca(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,su))return hu=1,Ss(e,Er(n,e.current)),void(iu=null)}catch(t){if(null!==a)throw iu=a,t;return hu=1,Ss(e,Er(n,e.current)),void(iu=null)}32768&t.flags?(so||1===o?e=!0:du||536870912&su?e=!1:(cu=e=!0,(2===o||9===o||3===o||6===o)&&(null!==(o=is.current)&&13===o.tag&&(o.flags|=16384))),rc(t,e)):nc(t)}function nc(e){var t=e;do{if(32768&t.flags)return void rc(t,cu);e=t.return;var n=al(t.alternate,t,pu);if(null!==n)return void(iu=n);if(null!==(t=t.sibling))return void(iu=t);iu=t=e}while(null!==t);0===hu&&(hu=5)}function rc(e,t){do{var n=il(e.alternate,e);if(null!==n)return n.flags&=32767,void(iu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(iu=e);iu=e=n}while(null!==e);hu=6,iu=null}function oc(e,t,n,o,a,i,s,l,u){e.cancelPendingCommit=null;do{uc()}while(0!==Ru);if(6&ou)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,o,a){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=i&~n;0<n;){var c=31-me(n),d=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ne(e,r,0),0!==a&&0===o&&0!==e.tag&&(e.suspendedLanes|=a&~(i&~t))}(e,n,i|=jr,s,l,u),e===au&&(iu=au=null,su=0),ju=t,Nu=e,Pu=n,Ou=i,Mu=a,Tu=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,J(se,function(){return cc(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=F.T,F.T=null,a=L.p,L.p=2,s=ou,ou|=4;try{!function(e,t){if(e=e.containerInfo,rd=of,rr(e=nr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var a=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==a&&3!==f.nodeType||(l=s+a),f!==i||0!==o&&3!==f.nodeType||(u=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===a&&(l=s),p===i&&++d===o&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(od={focusedElem:e,selectionRange:n},of=!1,_l=t;null!==_l;)if(e=(t=_l).child,1024&t.subtreeFlags&&null!==e)e.return=t,_l=e;else for(;null!==_l;){switch(i=(t=_l).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,o=n.stateNode;try{var m=vs(n.type,a,(n.elementType,n.type));e=o.getSnapshotBeforeUpdate(m,i),o.__reactInternalSnapshotBeforeUpdate=e}catch(e){fc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))yd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,_l=e;break}_l=t.return}}(e,t)}finally{ou=s,L.p=a,F.T=o}}Ru=1,ac(),ic(),sc()}}function ac(){if(1===Ru){Ru=0;var e=Nu,t=ju,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=F.T,F.T=null;var r=L.p;L.p=2;var o=ou;ou|=4;try{Fl(t,e);var a=od,i=nr(e.containerInfo),s=a.focusedElem,l=a.selectionRange;if(i!==s&&s&&s.ownerDocument&&tr(s.ownerDocument.documentElement,s)){if(null!==l&&rr(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,m=Math.min(l.start,h),g=void 0===l.end?m:Math.min(l.end,h);!p.extend&&m>g&&(i=g,g=m,m=i);var y=er(s,m),v=er(s,g);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),m>g?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}of=!!rd,od=rd=null}finally{ou=o,L.p=r,F.T=n}}e.current=t,Ru=2}}function ic(){if(2===Ru){Ru=0;var e=Nu,t=ju,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=F.T,F.T=null;var r=L.p;L.p=2;var o=ou;ou|=4;try{El(e,t.alternate,t)}finally{ou=o,L.p=r,F.T=n}}Ru=3}}function sc(){if(4===Ru||3===Ru){Ru=0,ne();var e=Nu,t=ju,n=Pu,r=Tu;10256&t.subtreeFlags||10256&t.flags?Ru=5:(Ru=0,ju=Nu=null,lc(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Eu=null),Oe(n),t=t.stateNode,pe&&"function"==typeof pe.onCommitFiberRoot)try{pe.onCommitFiberRoot(fe,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=F.T,o=L.p,L.p=2,F.T=null;try{for(var a=e.onRecoverableError,i=0;i<r.length;i++){var s=r[i];a(s.value,{componentStack:s.stack})}}finally{F.T=t,L.p=o}}3&Pu&&uc(),kc(e),o=e.pendingLanes,4194090&n&&42&o?e===Au?Du++:(Du=0,Au=e):Du=0,_c(0)}}function lc(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Lo(t)))}function uc(e){return ac(),ic(),sc(),cc()}function cc(){if(5!==Ru)return!1;var e=Nu,t=Ou;Ou=0;var n=Oe(Pu),o=F.T,a=L.p;try{L.p=32>n?32:n,F.T=null,n=Mu,Mu=null;var i=Nu,s=Pu;if(Ru=0,ju=Nu=null,Pu=0,6&ou)throw Error(r(331));var l=ou;if(ou|=4,Jl(i.current),Wl(i,i.current,s,n),ou=l,_c(0,!1),pe&&"function"==typeof pe.onPostCommitFiberRoot)try{pe.onPostCommitFiberRoot(fe,i)}catch(e){}return!0}finally{L.p=a,F.T=o,lc(e,t)}}function dc(e,t,n){t=Er(n,t),null!==(e=la(e,t=_s(e.stateNode,t,2),2))&&(Re(e,2),kc(e))}function fc(e,t,n){if(3===e.tag)dc(e,e,n);else for(;null!==t;){if(3===t.tag){dc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Eu||!Eu.has(r))){e=Er(n,e),null!==(r=la(t,n=Es(2),2))&&(Rs(n,r,t,e),Re(r,2),kc(r));break}}t=t.return}}function pc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ru;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(fu=!0,o.add(n),e=hc.bind(null,e,t,n),t.then(e,e))}function hc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,au===e&&(su&n)===n&&(4===hu||3===hu&&(62914560&su)===su&&300>re()-Su?!(2&ou)&&Wu(e,0):yu|=n,bu===su&&(bu=0)),kc(e)}function mc(e,t){0===t&&(t=_e()),null!==(e=Tr(e,t))&&(Re(e,t),kc(e))}function gc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),mc(e,n)}function yc(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),mc(e,n)}var vc=null,bc=null,wc=!1,xc=!1,Cc=!1,Sc=0;function kc(e){e!==bc&&null===e.next&&(null===bc?vc=bc=e:bc=bc.next=e),xc=!0,wc||(wc=!0,pd(function(){6&ou?J(ae,Ec):Rc()}))}function _c(e,t){if(!Cc&&xc){Cc=!0;do{for(var n=!1,r=vc;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var a=0;else{var i=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-me(42|e)+1)-1,a=201326741&(a&=o&~(i&~s))?201326741&a|1:a?2|a:0}0!==a&&(n=!0,Pc(r,a))}else a=su,!(3&(a=xe(r,r===au?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ce(r,a)||(n=!0,Pc(r,a));r=r.next}}while(n);Cc=!1}}function Ec(){Rc()}function Rc(){xc=wc=!1;var e=0;0!==Sc&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==ud&&(ud=e,!0);return ud=null,!1}()&&(e=Sc),Sc=0);for(var t=re(),n=null,r=vc;null!==r;){var o=r.next,a=Nc(r,t);0===a?(r.next=null,null===n?vc=o:n.next=o,null===o&&(bc=n)):(n=r,(0!==e||3&a)&&(xc=!0)),r=o}_c(e)}function Nc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var i=31-me(a),s=1<<i,l=o[i];-1===l?0!==(s&n)&&0===(s&r)||(o[i]=Se(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}if(n=su,n=xe(e,e===(t=au)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===lu||9===lu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ce(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ee(r),Oe(n)){case 2:case 8:n=ie;break;case 32:default:n=se;break;case 268435456:n=ue}return r=jc.bind(null,e),n=J(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ee(r),e.callbackPriority=2,e.callbackNode=null,2}function jc(e,t){if(0!==Ru&&5!==Ru)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uc()&&e.callbackNode!==n)return null;var r=su;return 0===(r=xe(e,e===au?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(zu(e,r,t),Nc(e,re()),null!=e.callbackNode&&e.callbackNode===n?jc.bind(null,e):null)}function Pc(e,t){if(uc())return null;zu(e,t,!0)}function Oc(){return 0===Sc&&(Sc=ke()),Sc}function Mc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Ot(""+e)}function Tc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Dc=0;Dc<Sr.length;Dc++){var Ac=Sr[Dc];kr(Ac.toLowerCase(),"on"+(Ac[0].toUpperCase()+Ac.slice(1)))}kr(mr,"onAnimationEnd"),kr(gr,"onAnimationIteration"),kr(yr,"onAnimationStart"),kr("dblclick","onDoubleClick"),kr("focusin","onFocus"),kr("focusout","onBlur"),kr(vr,"onTransitionRun"),kr(br,"onTransitionStart"),kr(wr,"onTransitionCancel"),kr(xr,"onTransitionEnd"),Ze("onMouseEnter",["mouseout","mouseover"]),Ze("onMouseLeave",["mouseout","mouseover"]),Ze("onPointerEnter",["pointerout","pointerover"]),Ze("onPointerLeave",["pointerout","pointerover"]),Qe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fc="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(" "),Lc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fc));function Ic(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;a=s,o.currentTarget=u;try{a(o)}catch(e){bs(e)}o.currentTarget=null,a=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,u=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;a=s,o.currentTarget=u;try{a(o)}catch(e){bs(e)}o.currentTarget=null,a=l}}}}function zc(e,t){var n=t[Le];void 0===n&&(n=t[Le]=new Set);var r=e+"__bubble";n.has(r)||(Bc(t,e,2,!1),n.add(r))}function $c(e,t,n){var r=0;t&&(r|=4),Bc(n,e,r,t)}var Hc="_reactListening"+Math.random().toString(36).slice(2);function Vc(e){if(!e[Hc]){e[Hc]=!0,Ge.forEach(function(t){"selectionchange"!==t&&(Lc.has(t)||$c(t,!1,e),$c(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hc]||(t[Hc]=!0,$c("selectionchange",!1,t))}}function Bc(e,t,n,r){switch(ff(t)){case 2:var o=af;break;case 8:o=sf;break;default:o=lf}n=o.bind(null,t,n,e),o=void 0,!Ht||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Uc(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===o)break;if(4===s)for(s=r.return;null!==s;){var u=s.tag;if((3===u||4===u)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==l;){if(null===(s=Be(l)))return;if(5===(u=s.tag)||6===u||26===u||27===u){r=i=s;continue e}l=l.parentNode}}r=r.return}It(function(){var r=i,o=Tt(n),s=[];e:{var l=Cr.get(e);if(void 0!==l){var u=tn,c=e;switch(e){case"keypress":if(0===qt(n))break e;case"keydown":case"keyup":u=yn;break;case"focusin":c="focus",u=ln;break;case"focusout":c="blur",u=ln;break;case"beforeblur":case"afterblur":u=ln;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=an;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=sn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=bn;break;case mr:case gr:case yr:u=un;break;case xr:u=wn;break;case"scroll":case"scrollend":u=rn;break;case"wheel":u=xn;break;case"copy":case"cut":case"paste":u=cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=vn;break;case"toggle":case"beforetoggle":u=Cn}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===p||null!=(g=zt(m,p))&&d.push(Wc(m,g,h)),f)break;m=m.return}0<d.length&&(l=new u(l,c,null,n,o),s.push({event:l,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Mt||!(c=n.relatedTarget||n.fromElement)||!Be(c)&&!c[Fe])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Be(c):null)&&(f=a(c),d=c.tag,c!==f||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=an,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=vn,g="onPointerLeave",p="onPointerEnter",m="pointer"),f=null==u?l:We(u),h=null==c?l:We(c),(l=new d(g,m+"leave",u,n,o)).target=f,l.relatedTarget=h,g=null,Be(o)===r&&((d=new d(p,m+"enter",c,n,o)).target=h,d.relatedTarget=f,g=d),f=g,u&&c)e:{for(p=c,m=0,h=d=u;h;h=qc(h))m++;for(h=0,g=p;g;g=qc(g))h++;for(;0<m-h;)d=qc(d),m--;for(;0<h-m;)p=qc(p),h--;for(;m--;){if(d===p||null!==p&&d===p.alternate)break e;d=qc(d),p=qc(p)}d=null}else d=null;null!==u&&Gc(s,l,u,d,!1),null!==c&&null!==f&&Gc(s,f,c,d,!0)}if("select"===(u=(l=r?We(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y=$n;else if(Dn(l))if(Hn)y=Qn;else{y=Gn;var v=qn}else!(u=l.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Nt(r.elementType)&&(y=$n):y=Kn;switch(y&&(y=y(e,r))?An(s,y,n,o):(v&&v(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&wt(l,"number",l.value)),v=r?We(r):window,e){case"focusin":(Dn(v)||"true"===v.contentEditable)&&(ar=v,ir=r,sr=null);break;case"focusout":sr=ir=ar=null;break;case"mousedown":lr=!0;break;case"contextmenu":case"mouseup":case"dragend":lr=!1,ur(s,n,o);break;case"selectionchange":if(or)break;case"keydown":case"keyup":ur(s,n,o)}var b;if(kn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Mn?Pn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Rn&&"ko"!==n.locale&&(Mn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Mn&&(b=Yt()):(Ut="value"in(Bt=o)?Bt.value:Bt.textContent,Mn=!0)),0<(v=Yc(r,w)).length&&(w=new dn(w,e,null,n,o),s.push({event:w,listeners:v}),b?w.data=b:null!==(b=On(n))&&(w.data=b))),(b=En?function(e,t){switch(e){case"compositionend":return On(t);case"keypress":return 32!==t.which?null:(jn=!0,Nn);case"textInput":return(e=t.data)===Nn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Mn)return"compositionend"===e||!kn&&Pn(e,t)?(e=Yt(),Wt=Ut=Bt=null,Mn=!1,e):null;switch(e){case"paste":default: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 Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(w=Yc(r,"onBeforeInput")).length&&(v=new dn("onBeforeInput","beforeinput",null,n,o),s.push({event:v,listeners:w}),v.data=b)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var a=Mc((o[Ae]||null).action),i=r.submitter;i&&null!==(t=(t=i[Ae]||null)?Mc(t.formAction):i.getAttribute("formAction"))&&(a=t,i=null);var s=new tn("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Sc){var e=i?Tc(o,i):new FormData(o);Ti(n,{pending:!0,data:e,method:o.method,action:a},null,e)}}else"function"==typeof a&&(s.preventDefault(),e=i?Tc(o,i):new FormData(o),Ti(n,{pending:!0,data:e,method:o.method,action:a},a,e))},currentTarget:o}]})}}(s,e,r,n,o)}Ic(s,t)})}function Wc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yc(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===a||(null!=(o=zt(e,n))&&r.unshift(Wc(e,o,a)),null!=(o=zt(e,t))&&r.push(Wc(e,o,a))),3===e.tag)return r;e=e.return}return[]}function qc(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Gc(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,o?null!=(u=zt(n,a))&&i.unshift(Wc(n,u,l)):o||null!=(u=zt(n,a))&&i.push(Wc(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Kc=/\r\n?/g,Qc=/\u0000|\uFFFD/g;function Zc(e){return("string"==typeof e?e:""+e).replace(Kc,"\n").replace(Qc,"")}function Xc(e,t){return t=Zc(t),Zc(e)===t}function Jc(){}function ed(e,t,n,o,a,i){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||kt(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&kt(e,""+o);break;case"className":ot(e,"class",o);break;case"tabIndex":ot(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ot(e,n,o);break;case"style":Rt(e,o,i);break;case"data":if("object"!==t){ot(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Ot(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&ed(e,t,"name",a.name,a,null),ed(e,t,"formEncType",a.formEncType,a,null),ed(e,t,"formMethod",a.formMethod,a,null),ed(e,t,"formTarget",a.formTarget,a,null)):(ed(e,t,"encType",a.encType,a,null),ed(e,t,"method",a.method,a,null),ed(e,t,"target",a.target,a,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Ot(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=Jc);break;case"onScroll":null!=o&&zc("scroll",e);break;case"onScrollEnd":null!=o&&zc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=a.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Ot(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":zc("beforetoggle",e),zc("toggle",e),rt(e,"popover",o);break;case"xlinkActuate":at(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":at(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":at(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":at(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":at(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":at(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":at(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":at(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":at(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":rt(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&rt(e,n=jt.get(n)||n,o)}}function td(e,t,n,o,a,i){switch(n){case"style":Rt(e,o,i);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=a.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?kt(e,o):("number"==typeof o||"bigint"==typeof o)&&kt(e,""+o);break;case"onScroll":null!=o&&zc("scroll",e);break;case"onScrollEnd":null!=o&&zc("scrollend",e);break;case"onClick":null!=o&&(e.onclick=Jc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ke.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Ae]||null)?i[n]:null)&&e.removeEventListener(t,i,a),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):rt(e,n,o):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,a)))}}function nd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":zc("error",e),zc("load",e);var o,a=!1,i=!1;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(null!=s)switch(o){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,o,s,n,null)}}return i&&ed(e,t,"srcSet",n.srcSet,n,null),void(a&&ed(e,t,"src",n.src,n,null));case"input":zc("invalid",e);var l=o=s=i=null,u=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":i=d;break;case"type":s=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:ed(e,t,a,d,n,null)}}return bt(e,o,l,u,c,s,i,!1),void pt(e);case"select":for(i in zc("invalid",e),a=s=o=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":o=l;break;case"defaultValue":s=l;break;case"multiple":a=l;default:ed(e,t,i,l,n,null)}return t=o,n=s,e.multiple=!!a,void(null!=t?xt(e,!!a,t,!1):null!=n&&xt(e,!!a,n,!0));case"textarea":for(s in zc("invalid",e),o=i=a=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":a=l;break;case"defaultValue":i=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:ed(e,t,s,l,n,null)}return St(e,a,i,o),void pt(e);case"option":for(u in n)if(n.hasOwnProperty(u)&&null!=(a=n[u]))if("selected"===u)e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a;else ed(e,t,u,a,n,null);return;case"dialog":zc("beforetoggle",e),zc("toggle",e),zc("cancel",e),zc("close",e);break;case"iframe":case"object":zc("load",e);break;case"video":case"audio":for(a=0;a<Fc.length;a++)zc(Fc[a],e);break;case"image":zc("error",e),zc("load",e);break;case"details":zc("toggle",e);break;case"embed":case"source":case"link":zc("error",e),zc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,c,a,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(a=n[d])&&td(e,t,d,a,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(a=n[l])&&ed(e,t,l,a,n,null))}var rd=null,od=null;function ad(e){return 9===e.nodeType?e:e.ownerDocument}function id(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function ld(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ud=null;var cd="function"==typeof setTimeout?setTimeout:void 0,dd="function"==typeof clearTimeout?clearTimeout:void 0,fd="function"==typeof Promise?Promise:void 0,pd="function"==typeof queueMicrotask?queueMicrotask:void 0!==fd?function(e){return fd.resolve(null).then(e).catch(hd)}:cd;function hd(e){setTimeout(function(){throw e})}function md(e){return"head"===e}function gd(e,t){var n=t,r=0,o=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0<r&&8>r){n=r;var i=e.ownerDocument;if(1&n&&Sd(i.documentElement),2&n&&Sd(i.body),4&n)for(Sd(n=i.head),i=n.firstChild;i;){var s=i.nextSibling,l=i.nodeName;i[He]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=s}}if(0===o)return e.removeChild(a),void Pf(t);o--}else"$"===n||"$?"===n||"$!"===n?o++:r=n.charCodeAt(0)-48;else r=0;n=a}while(n);Pf(t)}function yd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":yd(n),Ve(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function vd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function bd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var wd=null;function xd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function Cd(e,t,n){switch(t=ad(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function Sd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ve(e)}var kd=new Map,_d=new Set;function Ed(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Rd=L.d;L.d={f:function(){var e=Rd.f(),t=Bu();return e||t},r:function(e){var t=Ue(e);null!==t&&5===t.tag&&"form"===t.type?Ai(t):Rd.r(e)},D:function(e){Rd.D(e),jd("dns-prefetch",e,null)},C:function(e,t){Rd.C(e,t),jd("preconnect",e,t)},L:function(e,t,n){Rd.L(e,t,n);var r=Nd;if(r&&e&&t){var o='link[rel="preload"][as="'+yt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+yt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+yt(n.imageSizes)+'"]')):o+='[href="'+yt(e)+'"]';var a=o;switch(t){case"style":a=Od(e);break;case"script":a=Dd(e)}kd.has(a)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),kd.set(a,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Md(a))||"script"===t&&r.querySelector(Ad(a))||(nd(t=r.createElement("link"),"link",e),qe(t),r.head.appendChild(t)))}},m:function(e,t){Rd.m(e,t);var n=Nd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+yt(r)+'"][href="'+yt(e)+'"]',a=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Dd(e)}if(!kd.has(a)&&(e=u({rel:"modulepreload",href:e},t),kd.set(a,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ad(a)))return}nd(r=n.createElement("link"),"link",e),qe(r),n.head.appendChild(r)}}},X:function(e,t){Rd.X(e,t);var n=Nd;if(n&&e){var r=Ye(n).hoistableScripts,o=Dd(e),a=r.get(o);a||((a=n.querySelector(Ad(o)))||(e=u({src:e,async:!0},t),(t=kd.get(o))&&zd(e,t),qe(a=n.createElement("script")),nd(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(o,a))}},S:function(e,t,n){Rd.S(e,t,n);var r=Nd;if(r&&e){var o=Ye(r).hoistableStyles,a=Od(e);t=t||"default";var i=o.get(a);if(!i){var s={loading:0,preload:null};if(i=r.querySelector(Md(a)))s.loading=5;else{e=u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=kd.get(a))&&Id(e,n);var l=i=r.createElement("link");qe(l),nd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Ld(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:s},o.set(a,i)}}},M:function(e,t){Rd.M(e,t);var n=Nd;if(n&&e){var r=Ye(n).hoistableScripts,o=Dd(e),a=r.get(o);a||((a=n.querySelector(Ad(o)))||(e=u({src:e,async:!0,type:"module"},t),(t=kd.get(o))&&zd(e,t),qe(a=n.createElement("script")),nd(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(o,a))}}};var Nd="undefined"==typeof document?null:document;function jd(e,t,n){var r=Nd;if(r&&"string"==typeof t&&t){var o=yt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),_d.has(o)||(_d.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(nd(t=r.createElement("link"),"link",e),qe(t),r.head.appendChild(t)))}}function Pd(e,t,n,o){var a,i,s,l,u=(u=Y.current)?Ed(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Od(n.href),(o=(n=Ye(u).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Od(n.href);var c=Ye(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Md(e)))&&!c._p&&(d.instance=c,d.state.loading=5),kd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},kd.set(e,n),c||(a=u,i=e,s=n,l=d.state,a.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=a.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),nd(i,"link",s),qe(i),a.head.appendChild(i))))),t&&null===o)throw Error(r(528,""));return d}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Dd(n),(o=(n=Ye(u).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Od(e){return'href="'+yt(e)+'"'}function Md(e){return'link[rel="stylesheet"]['+e+"]"}function Td(e){return u({},e,{"data-precedence":e.precedence,precedence:null})}function Dd(e){return'[src="'+yt(e)+'"]'}function Ad(e){return"script[async]"+e}function Fd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+yt(n.href)+'"]');if(o)return t.instance=o,qe(o),o;var a=u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return qe(o=(e.ownerDocument||e).createElement("style")),nd(o,"style",a),Ld(o,n.precedence,e),t.instance=o;case"stylesheet":a=Od(n.href);var i=e.querySelector(Md(a));if(i)return t.state.loading|=4,t.instance=i,qe(i),i;o=Td(n),(a=kd.get(a))&&Id(o,a),qe(i=(e.ownerDocument||e).createElement("link"));var s=i;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),nd(i,"link",o),t.state.loading|=4,Ld(i,n.precedence,e),t.instance=i;case"script":return i=Dd(n.src),(a=e.querySelector(Ad(i)))?(t.instance=a,qe(a),a):(o=n,(a=kd.get(i))&&zd(o=u({},n),a),qe(a=(e=e.ownerDocument||e).createElement("script")),nd(a,"link",o),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,Ld(o,n.precedence,e));return t.instance}function Ld(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,a=o,i=0;i<r.length;i++){var s=r[i];if(s.dataset.precedence===t)a=s;else if(a!==o)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Id(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var $d=null;function Hd(e,t,n){if(null===$d){var r=new Map,o=$d=new Map;o.set(n,r)}else(r=(o=$d).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var a=n[o];if(!(a[He]||a[De]||"link"===e&&"stylesheet"===a.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==a.namespaceURI){var i=a.getAttribute(t)||"";i=e+i;var s=r.get(i);s?s.push(a):r.set(i,[a])}}return r}function Vd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Bd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Ud=null;function Wd(){}function Yd(){if(this.count--,0===this.count)if(this.stylesheets)Gd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var qd=null;function Gd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,qd=new Map,t.forEach(Kd,e),qd=null,Yd.call(e))}function Kd(e,t){if(!(4&t.state.loading)){var n=qd.get(e);if(n)var r=n.get(null);else{n=new Map,qd.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<o.length;a++){var i=o[a];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(o=t.instance).getAttribute("data-precedence"),(a=n.get(i)||r)===r&&n.set(null,o),n.set(i,o),this.count++,r=Yd.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),a?a.parentNode.insertBefore(o,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var Qd={$$typeof:x,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Zd(e,t,n,r,o,a,i,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ee(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ee(0),this.hiddenUpdates=Ee(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=a,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Xd(e,t,n,r,o,a,i,s,l,u,c,d){return e=new Zd(e,t,n,i,s,l,u,d),t=1,!0===a&&(t|=24),a=Ir(3,null,null,t),e.current=a,a.stateNode=e,(t=Fo()).refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},aa(a),e}function Jd(e){return e?e=Fr:Fr}function ef(e,t,n,r,o,a){o=Jd(o),null===r.context?r.context=o:r.pendingContext=o,(r=sa(t)).payload={element:n},null!==(a=void 0===a?null:a)&&(r.callback=a),null!==(n=la(e,r,t))&&(Iu(n,0,t),ua(n,e,t))}function tf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nf(e,t){tf(e,t),(e=e.alternate)&&tf(e,t)}function rf(e){if(13===e.tag){var t=Tr(e,67108864);null!==t&&Iu(t,0,67108864),nf(e,67108864)}}var of=!0;function af(e,t,n,r){var o=F.T;F.T=null;var a=L.p;try{L.p=2,lf(e,t,n,r)}finally{L.p=a,F.T=o}}function sf(e,t,n,r){var o=F.T;F.T=null;var a=L.p;try{L.p=8,lf(e,t,n,r)}finally{L.p=a,F.T=o}}function lf(e,t,n,r){if(of){var o=uf(r);if(null===o)Uc(e,t,r,cf,n),xf(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return hf=Cf(hf,e,t,n,r,o),!0;case"dragenter":return mf=Cf(mf,e,t,n,r,o),!0;case"mouseover":return gf=Cf(gf,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return yf.set(a,Cf(yf.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,vf.set(a,Cf(vf.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(xf(e,r),4&t&&-1<wf.indexOf(e)){for(;null!==o;){var a=Ue(o);if(null!==a)switch(a.tag){case 3:if((a=a.stateNode).current.memoizedState.isDehydrated){var i=we(a.pendingLanes);if(0!==i){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var l=1<<31-me(i);s.entanglements[1]|=l,i&=~l}kc(a),!(6&ou)&&(ku=re()+500,_c(0))}}break;case 13:null!==(s=Tr(a,2))&&Iu(s,0,2),Bu(),nf(a,2)}if(null===(a=uf(r))&&Uc(e,t,r,cf,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Uc(e,t,r,null,n)}}function uf(e){return df(e=Tt(e))}var cf=null;function df(e){if(cf=null,null!==(e=Be(e))){var t=a(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=i(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cf=e,null}function ff(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(oe()){case ae:return 2;case ie:return 8;case se:case le:return 32;case ue:return 268435456;default:return 32}default:return 32}}var pf=!1,hf=null,mf=null,gf=null,yf=new Map,vf=new Map,bf=[],wf="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".split(" ");function xf(e,t){switch(e){case"focusin":case"focusout":hf=null;break;case"dragenter":case"dragleave":mf=null;break;case"mouseover":case"mouseout":gf=null;break;case"pointerover":case"pointerout":yf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vf.delete(t.pointerId)}}function Cf(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=Ue(t))&&rf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Sf(e){var t=Be(e.target);if(null!==t){var n=a(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=i(n)))return e.blockedOn=t,void function(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}(e.priority,function(){if(13===n.tag){var e=Fu();e=Pe(e);var t=Tr(n,e);null!==t&&Iu(t,0,e),nf(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function kf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=uf(e.nativeEvent);if(null!==n)return null!==(t=Ue(n))&&rf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Mt=r,n.target.dispatchEvent(r),Mt=null,t.shift()}return!0}function _f(e,t,n){kf(e)&&n.delete(t)}function Ef(){pf=!1,null!==hf&&kf(hf)&&(hf=null),null!==mf&&kf(mf)&&(mf=null),null!==gf&&kf(gf)&&(gf=null),yf.forEach(_f),vf.forEach(_f)}function Rf(t,n){t.blockedOn===n&&(t.blockedOn=null,pf||(pf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ef)))}var Nf=null;function jf(t){Nf!==t&&(Nf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Nf===t&&(Nf=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===df(r||n))continue;break}var a=Ue(n);null!==a&&(t.splice(e,3),e-=3,Ti(a,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Pf(e){function t(t){return Rf(t,e)}null!==hf&&Rf(hf,e),null!==mf&&Rf(mf,e),null!==gf&&Rf(gf,e),yf.forEach(t),vf.forEach(t);for(var n=0;n<bf.length;n++){var r=bf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<bf.length&&null===(n=bf[0]).blockedOn;)Sf(n),null===n.blockedOn&&bf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],a=n[r+1],i=o[Ae]||null;if("function"==typeof a)i||jf(n);else if(i){var s=null;if(a&&a.hasAttribute("formAction")){if(o=a,i=a[Ae]||null)s=i.formAction;else if(null!==df(o))continue}else s=i.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),jf(n)}}}function Of(e){this._internalRoot=e}function Mf(e){this._internalRoot=e}Mf.prototype.render=Of.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));ef(t.current,Fu(),e,t,null,null)},Mf.prototype.unmount=Of.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ef(e.current,2,null,e,null,null),Bu(),t[Fe]=null}},Mf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Me();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bf.length&&0!==t&&t<bf[n].priority;n++);bf.splice(n,0,e),0===n&&Sf(e)}};var Tf=t.version;if("19.1.1"!==Tf)throw Error(r(527,Tf,"19.1.1"));L.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=a(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var l=i.alternate;if(null===l){if(null!==(o=i.return)){n=o;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return s(i),e;if(l===o)return s(i),t;l=l.sibling}throw Error(r(188))}if(n.return!==o.return)n=i,o=l;else{for(var u=!1,c=i.child;c;){if(c===n){u=!0,n=i,o=l;break}if(c===o){u=!0,o=i,n=l;break}c=c.sibling}if(!u){for(c=l.child;c;){if(c===n){u=!0,n=l,o=i;break}if(c===o){u=!0,o=l,n=i;break}c=c.sibling}if(!u)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?l(e):null)?null:e.stateNode};var Df={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Af=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Af.isDisabled&&Af.supportsFiber)try{fe=Af.inject(Df),pe=Af}catch(e){}}return y.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,a="",i=ws,s=xs,l=Cs;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Xd(e,1,!1,null,0,n,a,i,s,l,0,null),e[Fe]=t.current,Vc(e),new Of(t)},y.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var a=!1,i="",s=ws,l=xs,u=Cs,c=null;return null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(c=n.formState)),(t=Xd(e,1,!0,t,0,a,i,s,l,u,0,c)).context=Jd(null),n=t.current,(i=sa(a=Pe(a=Fu()))).callback=null,la(n,i,a),n=a,t.current.lanes=n,Re(t,n),kc(t),e[Fe]=t.current,Vc(e),new Mf(t)},y.version="19.1.1",y}var P,O,M=n((k||(k=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),g.exports=j()),g.exports)),T=f(),D=n(T),A=t({__proto__:null,default:D},[T]),F={exports:{}},L={};var I=(O||(O=1,F.exports=function(){if(P)return L;P=1;var e=f(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,o=e.useEffect,a=e.useMemo,i=e.useDebugValue;return L.useSyncExternalStoreWithSelector=function(e,s,l,u,c){var d=r(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=a(function(){function e(e){if(!o){if(o=!0,n=e,e=u(e),void 0!==c&&f.hasValue){var a=f.value;if(c(a,e))return r=a}return r=e}if(a=r,t(n,e))return a;var i=u(e);return void 0!==c&&c(a,i)?(n=e,a):(n=e,r=i)}var n,r,o=!1,a=void 0===l?null:l;return[function(){return e(s())},null===a?void 0:function(){return e(a())}]},[s,l,u,c]);var p=n(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),i(p),p},L}()),F.exports);var z={notify(){},get:()=>[]};var $=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),H=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),V=(()=>$||H?T.useLayoutEffect:T.useEffect)(),B=Symbol.for("react-redux-context"),U="undefined"!=typeof globalThis?globalThis:{};function W(){if(!T.createContext)return{};const e=U[B]??=new Map;let t=e.get(T.createContext);return t||(t=T.createContext(null),e.set(T.createContext,t)),t}var Y=W();var q=function(e){const{children:t,context:n,serverState:r,store:o}=e,a=T.useMemo(()=>{const e=function(e){let t,n=z,r=0,o=!1;function a(){l.onStateChange&&l.onStateChange()}function i(){r++,t||(t=e.subscribe(a),n=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=z)}const l={addNestedSub:function(e){i();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),s())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,i())},tryUnsubscribe:function(){o&&(o=!1,s())},getListeners:()=>n};return l}(o);return{store:o,subscription:e,getServerState:r?()=>r:void 0}},[o,r]),i=T.useMemo(()=>o.getState(),[o]);V(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,i]);const s=n||Y;return T.createElement(s.Provider,{value:a},t)};function G(e=Y){return function(){return T.useContext(e)}}var K=G();function Q(e=Y){const t=e===Y?K:G(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var Z=Q();function X(e=Y){const t=e===Y?Z:Q(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var J=X(),ee=(e,t)=>e===t;function te(e=Y){const t=e===Y?K:G(e),n=(e,n={})=>{const{equalityFn:r=ee}="function"==typeof n?{equalityFn:n}:n,o=t(),{store:a,subscription:i,getServerState:s}=o;T.useRef(!0);const l=T.useCallback({[e.name]:t=>e(t)}[e.name],[e]),u=I.useSyncExternalStoreWithSelector(i.addNestedSub,a.getState,s||a.getState,l,r);return T.useDebugValue(u),u};return Object.assign(n,{withTypes:()=>n}),n}var ne=te();function re(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var oe=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),ae=()=>Math.random().toString(36).substring(7).split("").join("."),ie={INIT:`@@redux/INIT${ae()}`,REPLACE:`@@redux/REPLACE${ae()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ae()}`};function se(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function le(e,t,n){if("function"!=typeof e)throw new Error(re(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(re(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(re(1));return n(le)(e,t)}let r=e,o=t,a=new Map,i=a,s=0,l=!1;function u(){i===a&&(i=new Map,a.forEach((e,t)=>{i.set(t,e)}))}function c(){if(l)throw new Error(re(3));return o}function d(e){if("function"!=typeof e)throw new Error(re(4));if(l)throw new Error(re(5));let t=!0;u();const n=s++;return i.set(n,e),function(){if(t){if(l)throw new Error(re(6));t=!1,u(),i.delete(n),a=null}}}function f(e){if(!se(e))throw new Error(re(7));if(void 0===e.type)throw new Error(re(8));if("string"!=typeof e.type)throw new Error(re(17));if(l)throw new Error(re(9));try{l=!0,o=r(o,e)}finally{l=!1}return(a=i).forEach(e=>{e()}),e}f({type:ie.INIT});return{dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(re(10));r=e,f({type:ie.REPLACE})},[oe]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(re(11));function n(){const e=t;e.next&&e.next(c())}n();return{unsubscribe:e(n)}},[oe](){return this}}}}}function ue(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:ie.INIT}))throw new Error(re(12));if(void 0===n(void 0,{type:ie.PROBE_UNKNOWN_ACTION()}))throw new Error(re(13))})}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let a=!1;const i={};for(let o=0;o<r.length;o++){const s=r[o],l=n[s],u=e[s],c=l(u,t);if(void 0===c)throw t&&t.type,new Error(re(14));i[s]=c,a=a||c!==u}return a=a||r.length!==Object.keys(e).length,a?i:e}}function ce(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}var de=Symbol.for("immer-nothing"),fe=Symbol.for("immer-draftable"),pe=Symbol.for("immer-state");function he(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var me=Object.getPrototypeOf;function ge(e){return!!e&&!!e[pe]}function ye(e){return!!e&&(be(e)||Array.isArray(e)||!!e[fe]||!!e.constructor?.[fe]||ke(e)||_e(e))}var ve=Object.prototype.constructor.toString();function be(e){if(!e||"object"!=typeof e)return!1;const t=me(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ve}function we(e,t){0===xe(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function xe(e){const t=e[pe];return t?t.type_:Array.isArray(e)?1:ke(e)?2:_e(e)?3:0}function Ce(e,t){return 2===xe(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Se(e,t,n){const r=xe(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function ke(e){return e instanceof Map}function _e(e){return e instanceof Set}function Ee(e){return e.copy_||e.base_}function Re(e,t){if(ke(e))return new Map(e);if(_e(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=be(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[pe];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],a=t[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(me(e),t)}{const t=me(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function Ne(e,t=!1){return Pe(e)||ge(e)||!ye(e)||(xe(e)>1&&(e.set=e.add=e.clear=e.delete=je),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>Ne(t,!0))),e}function je(){he(2)}function Pe(e){return Object.isFrozen(e)}var Oe,Me={};function Te(e){const t=Me[e];return t||he(0),t}function De(){return Oe}function Ae(e,t){t&&(Te("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fe(e){Le(e),e.drafts_.forEach(ze),e.drafts_=null}function Le(e){e===Oe&&(Oe=e.parent_)}function Ie(e){return Oe={drafts_:[],parent_:Oe,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ze(e){const t=e[pe];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function $e(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[pe].modified_&&(Fe(t),he(4)),ye(e)&&(e=He(t,e),t.parent_||Be(t,e)),t.patches_&&Te("Patches").generateReplacementPatches_(n[pe].base_,e,t.patches_,t.inversePatches_)):e=He(t,n,[]),Fe(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==de?e:void 0}function He(e,t,n){if(Pe(t))return t;const r=t[pe];if(!r)return we(t,(o,a)=>Ve(e,r,t,o,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Be(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,a=!1;3===r.type_&&(o=new Set(t),t.clear(),a=!0),we(o,(o,i)=>Ve(e,r,t,o,i,n,a)),Be(e,t,!1),n&&e.patches_&&Te("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Ve(e,t,n,r,o,a,i){if(ge(o)){const i=He(e,o,a&&t&&3!==t.type_&&!Ce(t.assigned_,r)?a.concat(r):void 0);if(Se(n,r,i),!ge(i))return;e.canAutoFreeze_=!1}else i&&n.add(o);if(ye(o)&&!Pe(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;He(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||Be(e,o)}}function Be(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ne(t,n)}var Ue={get(e,t){if(t===pe)return e;const n=Ee(e);if(!Ce(n,t))return function(e,t,n){const r=qe(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!ye(r)?r:r===Ye(e.base_,t)?(Ke(e),e.copy_[t]=Qe(r,e)):r},has:(e,t)=>t in Ee(e),ownKeys:e=>Reflect.ownKeys(Ee(e)),set(e,t,n){const r=qe(Ee(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Ye(Ee(e),t),o=r?.[pe];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,r)&&(void 0!==n||Ce(e.base_,t)))return!0;Ke(e),Ge(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Ye(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Ke(e),Ge(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Ee(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){he(11)},getPrototypeOf:e=>me(e.base_),setPrototypeOf(){he(12)}},We={};function Ye(e,t){const n=e[pe];return(n?Ee(n):e)[t]}function qe(e,t){if(!(t in e))return;let n=me(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=me(n)}}function Ge(e){e.modified_||(e.modified_=!0,e.parent_&&Ge(e.parent_))}function Ke(e){e.copy_||(e.copy_=Re(e.base_,e.scope_.immer_.useStrictShallowCopy_))}we(Ue,(e,t)=>{We[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),We.deleteProperty=function(e,t){return We.set.call(this,e,t,void 0)},We.set=function(e,t,n){return Ue.set.call(this,e[0],t,n,e[0])};function Qe(e,t){const n=ke(e)?Te("MapSet").proxyMap_(e,t):_e(e)?Te("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:De(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,a=Ue;n&&(o=[r],a=We);const{revoke:i,proxy:s}=Proxy.revocable(o,a);return r.draft_=s,r.revoke_=i,s}(e,t);return(t?t.scope_:De()).drafts_.push(n),n}function Ze(e){if(!ye(e)||Pe(e))return e;const t=e[pe];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Re(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Re(e,!0);return we(n,(e,t)=>{Se(n,e,Ze(t))}),t&&(t.finalized_=!1),n}var Xe=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}let r;if("function"!=typeof t&&he(6),void 0!==n&&"function"!=typeof n&&he(7),ye(e)){const o=Ie(this),a=Qe(e,void 0);let i=!0;try{r=t(a),i=!1}finally{i?Fe(o):Le(o)}return Ae(o,n),$e(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===de&&(r=void 0),this.autoFreeze_&&Ne(r,!0),n){const t=[],o=[];Te("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}he(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;const o=this.produce(e,t,(e,t)=>{n=e,r=t});return[o,n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ye(e)||he(8),ge(e)&&(e=function(e){ge(e)||he(10);return Ze(e)}(e));const t=Ie(this),n=Qe(e,void 0);return n[pe].isManual_=!0,Le(t),n}finishDraft(e,t){const n=e&&e[pe];n&&n.isManual_||he(9);const{scope_:r}=n;return Ae(r,t),$e(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=Te("Patches").applyPatches_;return ge(e)?r(e,t):this.produce(e,e=>r(e,t))}},Je=Xe.produce;function et(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}Xe.produceWithPatches.bind(Xe),Xe.setAutoFreeze.bind(Xe),Xe.setUseStrictShallowCopy.bind(Xe),Xe.applyPatches.bind(Xe),Xe.createDraft.bind(Xe),Xe.finishDraft.bind(Xe);var tt=et(),nt=et,rt="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ce:ce.apply(null,arguments)};function ot(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(gt(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>function(e){return se(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,n}var at=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function it(e){return ye(e)?Je(e,()=>{}):e}function st(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var lt=e=>t=>{setTimeout(t,e)},ut=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new at(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,a=!1,i=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:lt(10):"callback"===e.type?e.queueNotification:lt(e.timeout),u=()=>{i=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>o&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.RTK_autoBatch,a=!o,a&&(i||(i=!0,l(u))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function ct(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(gt(28));if(r in t)throw new Error(gt(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var dt=Symbol.for("rtk-slice-createasyncthunk");function ft(e,t){return`${e}/${t}`}function pt({creators:e}={}){const t=e?.asyncThunk?.[dt];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(gt(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(o),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(gt(12));if(n in i.sliceCaseReducersByType)throw new Error(gt(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},n=[],r]="function"==typeof e.extraReducers?ct(e.extraReducers):[e.extraReducers],o={...t,...i.sliceCaseReducersByType};return function(e,t){let n,[r,o,a]=ct(t);if(function(e){return"function"==typeof e}(e))n=()=>it(e());else{const t=it(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===i.filter(e=>!!e).length&&(i=[a]),i.reduce((e,n)=>{if(n){if(ge(e)){const r=n(e,t);return void 0===r?e:r}if(ye(e))return Je(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return i.getInitialState=n,i}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}a.forEach(r=>{const a=o[r],i={reducerName:r,type:ft(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(a)?function({type:e,reducerName:t,createNotation:n},r,o){let a,i;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(gt(17));a=r.reducer,i=r.prepare}else a=r;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?ot(e,i):ot(e))}(i,a,s):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(gt(18));const{payloadCreator:a,fulfilled:i,pending:s,rejected:l,settled:u,options:c}=n,d=o(e,a,c);r.exposeAction(t,d),i&&r.addCase(d.fulfilled,i);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);u&&r.addMatcher(d.settled,u);r.exposeCaseReducer(t,{fulfilled:i||mt,pending:s||mt,rejected:l||mt,settled:u||mt})}(i,a,s,t)});const u=e=>e,c=new Map,d=new WeakMap;let f;function p(e,t){return f||(f=l()),f(e,t)}function h(){return f||(f=l()),f.getInitialState()}function m(t,n=!1){function r(e){let o=e[t];return void 0===o&&n&&(o=st(d,r,h)),o}function o(t=u){const r=st(c,n,()=>new WeakMap);return st(r,t,()=>{const r={};for(const[o,a]of Object.entries(e.selectors??{}))r[o]=ht(a,t,()=>st(d,t,h),n);return r})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const g={name:n,reducer:p,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:h,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:p},n),{...g,...m(o,!0)}}};return g}}function ht(e,t,n,r){function o(o,...a){let i=t(o);return void 0===i&&r&&(i=n()),e(i,...a)}return o.unwrapped=e,o}function mt(){}function gt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const yt=pt()({name:"app",initialState:{currentPage:1,perview:10,inline_update:0},reducers:{setCurrentPage:(e,t)=>{e.currentPage=t.payload},setPerview:(e,t)=>{e.perview=t.payload},triggerUpdate:e=>{e.inline_update=e.inline_update+1}}}),{setCurrentPage:vt,setPerview:bt,triggerUpdate:wt}=yt.actions;const xt=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let a=new at;return t&&(function(e){return"boolean"==typeof e}(t)?a.push(tt):a.push(nt(t.extraArgument))),a},{reducer:n,middleware:r,devTools:o=!0,preloadedState:a,enhancers:i}=e||{};let s,l;if("function"==typeof n)s=n;else{if(!se(n))throw new Error(gt(1));s=ue(n)}l="function"==typeof r?r(t):t();let u=ce;o&&(u=rt({trace:!1,..."object"==typeof o&&o}));const c=function(...e){return t=>(n,r)=>{const o=t(n,r);let a=()=>{throw new Error(re(15))};const i={getState:o.getState,dispatch:(e,...t)=>a(e,...t)},s=e.map(e=>e(i));return a=ce(...s)(o.dispatch),{...o,dispatch:a}}}(...l),d=ut(c);return le(s,a,u(..."function"==typeof i?i(d):d()))}({reducer:{app:yt.reducer}});var Ct=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},St="undefined"==typeof window||"Deno"in globalThis;function kt(){}function _t(e){return"number"==typeof e&&e>=0&&e!==1/0}function Et(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Rt(e,t){return"function"==typeof e?e(t):e}function Nt(e,t){return"function"==typeof e?e(t):e}function jt(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(i)if(r){if(t.queryHash!==Ot(i,t.options))return!1}else if(!Tt(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function Pt(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Mt(t.options.mutationKey)!==Mt(a))return!1}else if(!Tt(t.options.mutationKey,a))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function Ot(e,t){return(t?.queryKeyHashFn||Mt)(e)}function Mt(e){return JSON.stringify(e,(e,t)=>Lt(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Tt(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>Tt(e[n],t[n])))}function Dt(e,t){if(e===t)return e;const n=Ft(e)&&Ft(t);if(n||Lt(e)&&Lt(t)){const r=n?e:Object.keys(e),o=r.length,a=n?t:Object.keys(t),i=a.length,s=n?[]:{},l=new Set(r);let u=0;for(let r=0;r<i;r++){const o=n?r:a[r];(!n&&l.has(o)||n)&&void 0===e[o]&&void 0===t[o]?(s[o]=void 0,u++):(s[o]=Dt(e[o],t[o]),s[o]===e[o]&&void 0!==e[o]&&u++)}return o===i&&u===o?e:s}return t}function At(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ft(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Lt(e){if(!It(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!It(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function It(e){return"[object Object]"===Object.prototype.toString.call(e)}function zt(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Dt(e,t):t}function $t(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ht(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vt=Symbol();function Bt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Vt?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Ut(e,t){return"function"==typeof e?e(...t):!!e}var Wt=new class extends Ct{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!St&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},Yt=new class extends Ct{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!St&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#r}};function qt(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function Gt(e){return Math.min(1e3*2**e,3e4)}function Kt(e){return"online"!==(e??"online")||Yt.isOnline()}var Qt=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Zt(e){return e instanceof Qt}function Xt(e){let t,n=!1,r=0,o=!1;const a=qt(),i=()=>Wt.isFocused()&&("always"===e.networkMode||Yt.isOnline())&&e.canRun(),s=()=>Kt(e.networkMode)&&e.canRun(),l=n=>{o||(o=!0,e.onSuccess?.(n),t?.(),a.resolve(n))},u=n=>{o||(o=!0,e.onError?.(n),t?.(),a.reject(n))},c=()=>new Promise(n=>{t=e=>{(o||i())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,o||e.onContinue?.()}),d=()=>{if(o)return;let t;const a=0===r?e.initialPromise:void 0;try{t=a??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if(o)return;const a=e.retry??(St?0:3),s=e.retryDelay??Gt,l="function"==typeof s?s(r,t):s,f=!0===a||"number"==typeof a&&r<a||"function"==typeof a&&a(r,t);var p;!n&&f?(r++,e.onFail?.(r,t),(p=l,new Promise(e=>{setTimeout(e,p)})).then(()=>i()?void 0:c()).then(()=>{n?u(t):d()})):u(t)})};return{promise:a,cancel:t=>{o||(u(new Qt(t)),e.abort?.())},continue:()=>(t?.(),a),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():c().then(d),a)}}var Jt=e=>setTimeout(e,0);var en=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=Jt;const a=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:a=>{let i;t++;try{i=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),tn=class{#o;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_t(this.gcTime)&&(this.#o=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(St?1/0:3e5))}clearGcTimeout(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}},nn=class extends tn{#a;#i;#s;#l;#u;#c;#d;constructor(e){super(),this.#d=!1,this.#c=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#l=e.client,this.#s=this.#l.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#u?.promise}setOptions(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(e,t){const n=zt(this.state.data,e,this.options);return this.#f({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#f({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#u?.promise;return this.#u?.cancel(e),t?t.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#a)}isActive(){return this.observers.some(e=>!1!==Nt(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Rt(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Et(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#u&&(this.#d?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#f({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#u)return this.#u.continueRetry(),this.#u.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#d=!0,n.signal)})},o=()=>{const e=Bt(this.options,t),n=(()=>{const e={client:this.#l,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#d=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#i=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===a.fetchOptions?.meta||this.#f({type:"fetch",meta:a.fetchOptions?.meta});const i=e=>{Zt(e)&&e.silent||this.#f({type:"error",error:e}),Zt(e)||(this.#s.config.onError?.(e,this),this.#s.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#u=Xt({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(e){return void i(e)}this.#s.config.onSuccess?.(e,this),this.#s.config.onSettled?.(e,this.state.error,this),this.scheduleGc()}else i(new Error(`${this.queryHash} data is undefined`))},onError:i,onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#u.start()}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...rn(t.data,this.options),fetchMeta:e.meta??null};case"success":return this.#i=void 0,{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return Zt(n)&&n.revert&&this.#i?{...this.#i,fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),en.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}};function rn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var on=class extends Ct{constructor(e={}){super(),this.config=e,this.#p=new Map}#p;build(e,t,n){const r=t.queryKey,o=t.queryHash??Ot(r,t);let a=this.get(o);return a||(a=new nn({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#p.has(e.queryHash)||(this.#p.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#p.get(e.queryHash);t&&(e.destroy(),t===e&&this.#p.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){en.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#p.get(e)}getAll(){return[...this.#p.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>jt(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>jt(e,t)):t}notify(e){en.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){en.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){en.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},an=class extends tn{#h;#m;#u;constructor(e){super(),this.mutationId=e.mutationId,this.#m=e.mutationCache,this.#h=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#h.includes(e)||(this.#h.push(e),this.clearGcTimeout(),this.#m.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#h=this.#h.filter(t=>t!==e),this.scheduleGc(),this.#m.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#h.length||("pending"===this.state.status?this.scheduleGc():this.#m.remove(this))}continue(){return this.#u?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#f({type:"continue"})};this.#u=Xt({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#m.canRun(this)});const n="pending"===this.state.status,r=!this.#u.canStart();try{if(n)t();else{this.#f({type:"pending",variables:e,isPaused:r}),await(this.#m.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#f({type:"pending",context:t,variables:e,isPaused:r})}const o=await this.#u.start();return await(this.#m.config.onSuccess?.(o,e,this.state.context,this)),await(this.options.onSuccess?.(o,e,this.state.context)),await(this.#m.config.onSettled?.(o,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(o,null,e,this.state.context)),this.#f({type:"success",data:o}),o}catch(t){try{throw await(this.#m.config.onError?.(t,e,this.state.context,this)),await(this.options.onError?.(t,e,this.state.context)),await(this.#m.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,t,e,this.state.context)),t}finally{this.#f({type:"error",error:t})}}finally{this.#m.runNext(this)}}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),en.batch(()=>{this.#h.forEach(t=>{t.onMutationUpdate(e)}),this.#m.notify({mutation:this,type:"updated",action:e})})}};var sn=class extends Ct{constructor(e={}){super(),this.config=e,this.#g=new Set,this.#y=new Map,this.#v=0}#g;#y;#v;build(e,t,n){const r=new an({mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#g.add(e);const t=ln(e);if("string"==typeof t){const n=this.#y.get(t);n?n.push(e):this.#y.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#g.delete(e)){const t=ln(e);if("string"==typeof t){const n=this.#y.get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#y.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ln(e);if("string"==typeof t){const n=this.#y.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=ln(e);if("string"==typeof t){const n=this.#y.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}return Promise.resolve()}clear(){en.batch(()=>{this.#g.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#g.clear(),this.#y.clear()})}getAll(){return Array.from(this.#g)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Pt(t,e))}findAll(e={}){return this.getAll().filter(t=>Pt(e,t))}notify(e){en.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return en.batch(()=>Promise.all(e.map(e=>e.continue().catch(kt))))}};function ln(e){return e.options.scope?.id}function un(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let n=!1;const u=Bt(t.options,t.fetchOptions),c=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const a=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var a;return a=e,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)}),e})(),i=await u(a),{maxPages:s}=t.options,l=o?Ht:$t;return{pages:l(e.pages,i,s),pageParams:l(e.pageParams,r,s)}};if(o&&a.length){const e="backward"===o,t={pages:a,pageParams:i},n=(e?dn:cn)(r,t);s=await c(t,n,e)}else{const t=e??a.length;do{const e=0===l?i[0]??r.initialPageParam:cn(r,s);if(l>0&&null==e)break;s=await c(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function cn(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function dn(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var fn=class{#b;#m;#c;#w;#x;#C;#S;#k;constructor(e={}){this.#b=e.queryCache||new on,this.#m=e.mutationCache||new sn,this.#c=e.defaultOptions||{},this.#w=new Map,this.#x=new Map,this.#C=0}mount(){this.#C++,1===this.#C&&(this.#S=Wt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#b.onFocus())}),this.#k=Yt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#b.onOnline())}))}unmount(){this.#C--,0===this.#C&&(this.#S?.(),this.#S=void 0,this.#k?.(),this.#k=void 0)}isFetching(e){return this.#b.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#m.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#b.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#b.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Rt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#b.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#b.get(r.queryHash),a=o?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,a);if(void 0!==i)return this.#b.build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return en.batch(()=>this.#b.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#b.get(t.queryHash)?.state}removeQueries(e){const t=this.#b;en.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=this.#b;return en.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=en.batch(()=>this.#b.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(kt).catch(kt)}invalidateQueries(e,t={}){return en.batch(()=>(this.#b.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=en.batch(()=>this.#b.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(kt)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#b.build(this,t);return n.isStaleByTime(Rt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kt).catch(kt)}fetchInfiniteQuery(e){return e.behavior=un(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=un(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Yt.isOnline()?this.#m.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#b}getMutationCache(){return this.#m}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#w.set(Mt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#w.values()],n={};return t.forEach(t=>{Tt(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#x.set(Mt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#x.values()],n={};return t.forEach(t=>{Tt(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#c.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ot(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Vt&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#b.clear(),this.#m.clear()}},pn=class extends Ct{constructor(e,t){super(),this.options=t,this.#l=e,this.#_=null,this.#E=qt(),this.options.experimental_prefetchInRender||this.#E.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#l;#R=void 0;#N=void 0;#j=void 0;#P;#O;#E;#_;#M;#T;#D;#A;#F;#L;#I=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#R.addObserver(this),hn(this.#R,this.options)?this.#z():this.updateResult(),this.#$())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mn(this.#R,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mn(this.#R,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#H(),this.#V(),this.#R.removeObserver(this)}setOptions(e){const t=this.options,n=this.#R;if(this.options=this.#l.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Nt(this.options.enabled,this.#R))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#B(),this.#R.setOptions(this.options),t._defaulted&&!At(this.options,t)&&this.#l.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#R,observer:this});const r=this.hasListeners();r&&gn(this.#R,n,this.options,t)&&this.#z(),this.updateResult(),!r||this.#R===n&&Nt(this.options.enabled,this.#R)===Nt(t.enabled,this.#R)&&Rt(this.options.staleTime,this.#R)===Rt(t.staleTime,this.#R)||this.#U();const o=this.#W();!r||this.#R===n&&Nt(this.options.enabled,this.#R)===Nt(t.enabled,this.#R)&&o===this.#L||this.#Y(o)}getOptimisticResult(e){const t=this.#l.getQueryCache().build(this.#l,e),n=this.createResult(t,e);return function(e,t){if(!At(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(this.#j=n,this.#O=this.options,this.#P=this.#R.state),n}getCurrentResult(){return this.#j}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#I.add(e)}getCurrentQuery(){return this.#R}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#l.defaultQueryOptions(e),n=this.#l.getQueryCache().build(this.#l,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#z({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#j))}#z(e){this.#B();let t=this.#R.fetch(this.options,e);return e?.throwOnError||(t=t.catch(kt)),t}#U(){this.#H();const e=Rt(this.options.staleTime,this.#R);if(St||this.#j.isStale||!_t(e))return;const t=Et(this.#j.dataUpdatedAt,e)+1;this.#A=setTimeout(()=>{this.#j.isStale||this.updateResult()},t)}#W(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#R):this.options.refetchInterval)??!1}#Y(e){this.#V(),this.#L=e,!St&&!1!==Nt(this.options.enabled,this.#R)&&_t(this.#L)&&0!==this.#L&&(this.#F=setInterval(()=>{(this.options.refetchIntervalInBackground||Wt.isFocused())&&this.#z()},this.#L))}#$(){this.#U(),this.#Y(this.#W())}#H(){this.#A&&(clearTimeout(this.#A),this.#A=void 0)}#V(){this.#F&&(clearInterval(this.#F),this.#F=void 0)}createResult(e,t){const n=this.#R,r=this.options,o=this.#j,a=this.#P,i=this.#O,s=e!==n?e.state:this.#N,{state:l}=e;let u,c={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&hn(e,t),i=o&&gn(e,n,t,r);(a||i)&&(c={...c,...rn(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(c.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:h}=c;u=c.data;let m=!1;if(void 0!==t.placeholderData&&void 0===u&&"pending"===h){let e;o?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#D?.state.data,this.#D):t.placeholderData,void 0!==e&&(h="success",u=zt(o?.data,e,t),d=!0)}if(t.select&&void 0!==u&&!m)if(o&&u===a?.data&&t.select===this.#M)u=this.#T;else try{this.#M=t.select,u=t.select(u),u=zt(o?.data,u,t),this.#T=u,this.#_=null}catch(e){this.#_=e}this.#_&&(f=this.#_,u=this.#T,p=Date.now(),h="error");const g="fetching"===c.fetchStatus,y="pending"===h,v="error"===h,b=y&&g,w=void 0!==u,x={status:h,fetchStatus:c.fetchStatus,isPending:y,isSuccess:"success"===h,isError:v,isInitialLoading:b,isLoading:b,data:u,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>s.dataUpdateCount||c.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:v&&!w,isPaused:"paused"===c.fetchStatus,isPlaceholderData:d,isRefetchError:v&&w,isStale:yn(e,t),refetch:this.refetch,promise:this.#E,isEnabled:!1!==Nt(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===x.status?e.reject(x.error):void 0!==x.data&&e.resolve(x.data)},r=()=>{const e=this.#E=x.promise=qt();t(e)},o=this.#E;switch(o.status){case"pending":e.queryHash===n.queryHash&&t(o);break;case"fulfilled":"error"!==x.status&&x.data===o.value||r();break;case"rejected":"error"===x.status&&x.error===o.reason||r()}}return x}updateResult(){const e=this.#j,t=this.createResult(this.#R,this.options);if(this.#P=this.#R.state,this.#O=this.options,void 0!==this.#P.data&&(this.#D=this.#R),At(t,e))return;this.#j=t;this.#q({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#I.size)return!0;const r=new Set(n??this.#I);return this.options.throwOnError&&r.add("error"),Object.keys(this.#j).some(t=>{const n=t;return this.#j[n]!==e[n]&&r.has(n)})})()})}#B(){const e=this.#l.getQueryCache().build(this.#l,this.options);if(e===this.#R)return;const t=this.#R;this.#R=e,this.#N=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#$()}#q(e){en.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#j)}),this.#l.getQueryCache().notify({query:this.#R,type:"observerResultsUpdated"})})}};function hn(e,t){return function(e,t){return!1!==Nt(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&mn(e,t,t.refetchOnMount)}function mn(e,t,n){if(!1!==Nt(t.enabled,e)&&"static"!==Rt(t.staleTime,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&yn(e,t)}return!1}function gn(e,t,n,r){return(e!==t||!1===Nt(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&yn(e,n)}function yn(e,t){return!1!==Nt(t.enabled,e)&&e.isStaleByTime(Rt(t.staleTime,e))}var vn=class extends Ct{#l;#j=void 0;#G;#K;constructor(e,t){super(),this.#l=e,this.setOptions(t),this.bindMethods(),this.#Q()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#l.defaultMutationOptions(e),At(this.options,t)||this.#l.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#G,observer:this}),t?.mutationKey&&this.options.mutationKey&&Mt(t.mutationKey)!==Mt(this.options.mutationKey)?this.reset():"pending"===this.#G?.state.status&&this.#G.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#G?.removeObserver(this)}onMutationUpdate(e){this.#Q(),this.#q(e)}getCurrentResult(){return this.#j}reset(){this.#G?.removeObserver(this),this.#G=void 0,this.#Q(),this.#q()}mutate(e,t){return this.#K=t,this.#G?.removeObserver(this),this.#G=this.#l.getMutationCache().build(this.#l,this.options),this.#G.addObserver(this),this.#G.execute(e)}#Q(){const e=this.#G?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#j={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#q(e){en.batch(()=>{if(this.#K&&this.hasListeners()){const t=this.#j.variables,n=this.#j.context;"success"===e?.type?(this.#K.onSuccess?.(e.data,t,n),this.#K.onSettled?.(e.data,null,t,n)):"error"===e?.type&&(this.#K.onError?.(e.error,t,n),this.#K.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#j)})})}},bn=T.createContext(void 0),wn=e=>{const t=T.useContext(bn);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},xn=({client:e,children:t})=>(T.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),m.jsx(bn.Provider,{value:e,children:t})),Cn=T.createContext(!1);Cn.Provider;var Sn=T.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),kn=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _n(e,t,n){const r=T.useContext(Cn),o=T.useContext(Sn),a=wn(),i=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(i),i._optimisticResults=r?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=e=>"static"===e?e:Math.max(e??1e3,1e3),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>t(n(...e)):t(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}})(i),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(i,o),(e=>{T.useEffect(()=>{e.clearReset()},[e])})(o);const s=!a.getQueryCache().get(i.queryHash),[l]=T.useState(()=>new t(a,i)),u=l.getOptimisticResult(i),c=!r&&!1!==e.subscribed;if(T.useSyncExternalStore(T.useCallback(e=>{const t=c?l.subscribe(en.batchCalls(e)):kt;return l.updateResult(),t},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),T.useEffect(()=>{l.setOptions(i)},[i,l]),((e,t)=>e?.suspense&&t.isPending)(i,u))throw kn(i,l,o);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&void 0===e.data||Ut(n,[e.error,r])))({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:a.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if(a.getDefaultOptions().queries?._experimental_afterQuery?.(i,u),i.experimental_prefetchInRender&&!St&&((e,t)=>e.isLoading&&e.isFetching&&!t)(u,r)){const e=s?kn(i,l,o):a.getQueryCache().get(i.queryHash)?.promise;e?.catch(kt).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?u:l.trackResult(u)}const En=T.createContext(null),Rn=()=>{const e=T.useContext(En);if(!e)throw new Error("useSDK must be used within SDKProvider");return e},Nn=({apiKey:e,children:t})=>{if("undefined"==typeof window)return null;const[n]=D.useState(()=>new fn({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}));return m.jsx(En.Provider,{value:{apiKey:e},children:m.jsx(q,{store:xt,children:m.jsx(xn,{client:n,children:t})})})};
11
11
  /**
12
12
  * table-core
13
13
  *
@@ -18,7 +18,7 @@
18
18
  *
19
19
  * @license MIT
20
20
  */
21
- function Nn(e,t){return"function"==typeof e?e(t):e}function jn(e,t){return n=>{t.setState(t=>({...t,[e]:Nn(n,t[e])}))}}function Pn(e){return e instanceof Function}function On(e,t,n){let r,o=[];return a=>{let i;n.key&&n.debug&&(i=Date.now());const s=e(a),l=s.length!==o.length||s.some((e,t)=>o[t]!==e);if(!l)return r;let u;if(o=s,n.key&&n.debug&&(u=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-u))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function Mn(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const Tn="debugHeaders";function Dn(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}const An={createTable:e=>{e.getHeaderGroups=On(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var a,i;const s=null!=(a=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?a:[],l=null!=(i=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],u=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)));return Fn(t,[...s,...u,...l],e)},Mn(e.options,Tn)),e.getCenterHeaderGroups=On(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),Fn(t,n,e,"center")),Mn(e.options,Tn)),e.getLeftHeaderGroups=On(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;return Fn(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},Mn(e.options,Tn)),e.getRightHeaderGroups=On(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;return Fn(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},Mn(e.options,Tn)),e.getFooterGroups=On(()=>[e.getHeaderGroups()],e=>[...e].reverse(),Mn(e.options,Tn)),e.getLeftFooterGroups=On(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),Mn(e.options,Tn)),e.getCenterFooterGroups=On(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),Mn(e.options,Tn)),e.getRightFooterGroups=On(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),Mn(e.options,Tn)),e.getFlatHeaders=On(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),Mn(e.options,Tn)),e.getLeftFlatHeaders=On(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),Mn(e.options,Tn)),e.getCenterFlatHeaders=On(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),Mn(e.options,Tn)),e.getRightFlatHeaders=On(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),Mn(e.options,Tn)),e.getCenterLeafHeaders=On(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Mn(e.options,Tn)),e.getLeftLeafHeaders=On(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Mn(e.options,Tn)),e.getRightLeafHeaders=On(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Mn(e.options,Tn)),e.getLeafHeaders=On(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,a,i,s,l;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(a=null==(i=t[0])?void 0:i.headers)?a:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},Mn(e.options,Tn))}};function Fn(e,t,n,r){var o,a;let i=0;const s=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)},0)};s(e);let l=[];const u=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},a=[];e.forEach(e=>{const i=[...a].reverse()[0];let s,l=!1;if(e.column.depth===o.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),i&&(null==i?void 0:i.column)===s)i.subHeaders.push(e);else{const o=Dn(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${a.filter(e=>e.column===s).length}`:void 0,depth:t,index:a.length});o.subHeaders.push(e),a.push(o)}o.headers.push(e),e.headerGroup=o}),l.push(o),t>0&&u(a,t-1)},c=t.map((e,t)=>Dn(n,e,{depth:i,index:t}));u(c,i-1),l.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(a=l[0])?void 0:a.headers)?o:[]),l}const Ln=(e,t,n,r,o,a,i)=>{let s={id:t,index:r,original:n,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)})};return r(e),n}(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:On(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:On(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),Mn(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,s,t,t.id)),Mn(e.options,"debugRows")),_getAllCellsByColumnId:On(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),Mn(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s},In={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},zn=(e,t,n)=>{var r,o;const a=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(a))};zn.autoRemove=e=>Kn(e);const $n=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};$n.autoRemove=e=>Kn(e);const Hn=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};Hn.autoRemove=e=>Kn(e);const Vn=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Vn.autoRemove=e=>Kn(e);const Bn=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});Bn.autoRemove=e=>Kn(e)||!(null!=e&&e.length);const Un=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});Un.autoRemove=e=>Kn(e)||!(null!=e&&e.length);const Wn=(e,t,n)=>e.getValue(t)===n;Wn.autoRemove=e=>Kn(e);const Yn=(e,t,n)=>e.getValue(t)==n;Yn.autoRemove=e=>Kn(e);const qn=(e,t,n)=>{let[r,o]=n;const a=e.getValue(t);return a>=r&&a<=o};qn.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,a=null===t||Number.isNaN(r)?-1/0:r,i=null===n||Number.isNaN(o)?1/0:o;if(a>i){const e=a;a=i,i=e}return[a,i]},qn.autoRemove=e=>Kn(e)||Kn(e[0])&&Kn(e[1]);const Gn={includesString:zn,includesStringSensitive:$n,equalsString:Hn,arrIncludes:Vn,arrIncludesAll:Bn,arrIncludesSome:Un,equals:Wn,weakEquals:Yn,inNumberRange:qn};function Kn(e){return null==e||""===e}const Qn={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:jn("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?Gn.includesString:"number"==typeof r?Gn.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?Gn.equals:Array.isArray(r)?Gn.arrIncludes:Gn.weakEquals},e.getFilterFn=()=>{var n,r;return Pn(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:Gn[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),a=Nn(n,o?o.value:void 0);var i;if(Zn(r,a,e))return null!=(i=null==t?void 0:t.filter(t=>t.id!==e.id))?i:[];const s={id:e.id,value:a};var l;return o?null!=(l=null==t?void 0:t.map(t=>t.id===e.id?s:t))?l:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=Nn(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);if(t){if(Zn(t.getFilterFn(),e.value,t))return!1}return!0})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Zn(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const Xn={sum:(e,t,n)=>n.reduce((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(r=n,!Array.isArray(r)||!r.every(e=>"number"==typeof e))return;var r;if(1===n.length)return n[0];const o=Math.floor(n.length/2),a=n.sort((e,t)=>e-t);return n.length%2!=0?a[o]:(a[o-1]+a[o])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},Jn={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:jn("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?Xn.sum:"[object Date]"===Object.prototype.toString.call(r)?Xn.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Pn(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:Xn[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const er={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:jn("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=On(e=>[sr(t,e)],t=>t.findIndex(t=>t.id===e.id),Mn(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=sr(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=sr(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=On(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter(e=>!t.includes(e.id));if("remove"===n)return r;const o=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...o,...r]}(o,t,n)},Mn(e.options,"debugTable"))}},tr={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:jn("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,a,i,s,l;return"right"===n?{left:(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,a=n.some(e=>null==r?void 0:r.includes(e)),i=n.some(e=>null==o?void 0:o.includes(e));return a?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=On(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},Mn(t.options,"debugRows")),e.getLeftVisibleCells=On(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),Mn(t.options,"debugRows")),e.getRightVisibleCells=On(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),Mn(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(a=r.right)?void 0:a.length))},e.getLeftLeafColumns=On(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Mn(e.options,"debugColumns")),e.getRightLeafColumns=On(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Mn(e.options,"debugColumns")),e.getCenterLeafColumns=On(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},Mn(e.options,"debugColumns"))}};const nr={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},rr={getDefaultColumnDef:()=>nr,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:jn("columnSizing",e),onColumnSizingInfoChange:jn("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const a=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:nr.minSize,null!=(r=null!=a?a:e.columnDef.size)?r:nr.size),null!=(o=e.columnDef.maxSize)?o:nr.maxSize)},e.getStart=On(e=>[e,sr(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),Mn(t.options,"debugColumns")),e.getAfter=On(e=>[e,sr(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),Mn(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return a=>{if(!r||!o)return;if(null==a.persist||a.persist(),ar(a)&&a.touches&&a.touches.length>1)return;const i=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],l=ar(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,o;const a="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*a,s=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*s,0))/100}),{...e,deltaOffset:i,deltaPercentage:s}}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>({...e,...u})))},d=e=>c("move",e),f=e=>{c("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||("undefined"!=typeof document?document:null);const h={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",h.moveHandler),null==p||p.removeEventListener("mouseup",h.upHandler),f(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",m.moveHandler),null==p||p.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof or)return or;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return or=e,or}()&&{passive:!1};ar(a)?(null==p||p.addEventListener("touchmove",m.moveHandler,g),null==p||p.addEventListener("touchend",m.upHandler,g)):(null==p||p.addEventListener("mousemove",h.moveHandler,g),null==p||p.addEventListener("mouseup",h.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let or=null;function ar(e){return"touchstart"===e.type}const ir={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:jn("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=On(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),Mn(t.options,"debugRows")),e.getVisibleCells=On(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],Mn(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>On(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),Mn(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function sr(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const lr={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:jn("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,a;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(a=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||a)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Gn.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Pn(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:Gn[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},ur={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:jn("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>Nn(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let r=Nn(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,Nn(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=Nn(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=On(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},Mn(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},cr={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:jn("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const a=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],i=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...i,e.id,...a]);t.setRowPinning(e=>{var t,r,o,a,i,l;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=s&&s.has(e))),bottom:[...(null!=(a=null==e?void 0:e.bottom)?a:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=s&&s.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=s&&s.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=s&&s.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,a=n.some(e=>null==r?void 0:r.includes(e)),i=n.some(e=>null==o?void 0:o.includes(e));return a?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const a=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==a?void 0:a.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(a=r.bottom)?void 0:a.length))},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=On(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Mn(e.options,"debugRows")),e.getBottomRows=On(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Mn(e.options,"debugRows")),e.getCenterRows=On(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},Mn(e.options,"debugRows"))}},dr={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:jn("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{fr(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=On(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?pr(e,n):{rows:[],flatRows:[],rowsById:{}},Mn(e.options,"debugTable")),e.getFilteredSelectedRowModel=On(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?pr(e,n):{rows:[],flatRows:[],rowsById:{}},Mn(e.options,"debugTable")),e.getGroupedSelectedRowModel=On(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?pr(e,n):{rows:[],flatRows:[],rowsById:{}},Mn(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(a=>{var i;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return a;const s={...a};return fr(s,e.id,n,null==(i=null==r?void 0:r.selectChildren)||i,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return hr(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===mr(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===mr(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},fr=(e,t,n,r,o)=>{var a;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(a=i.subRows)&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>fr(e,t.id,n,r,o))};function pr(e,t){const n=e.getState().rowSelection,r=[],o={},a=function(e,t){return e.map(e=>{var t;const i=hr(e,n);if(i&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:a(e.subRows)}),i)return e}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:o}}function hr(e,t){var n;return null!=(n=t[e.id])&&n}function mr(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,a=!1;return e.subRows.forEach(e=>{if((!a||o)&&(e.getCanSelect()&&(hr(e,t)?a=!0:o=!1),e.subRows&&e.subRows.length)){const n=mr(e,t);"all"===n?a=!0:"some"===n?(a=!0,o=!1):o=!1}}),o?"all":!!a&&"some"}const gr=/([0-9]+)/gm;function yr(e,t){return e===t?0:e>t?1:-1}function vr(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function br(e,t){const n=e.split(gr).filter(Boolean),r=t.split(gr).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),a=parseInt(t,10),i=[o,a].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>a)return 1;if(a>o)return-1}}return n.length-r.length}const wr={alphanumeric:(e,t,n)=>br(vr(e.getValue(n)).toLowerCase(),vr(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>br(vr(e.getValue(n)),vr(t.getValue(n))),text:(e,t,n)=>yr(vr(e.getValue(n)).toLowerCase(),vr(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>yr(vr(e.getValue(n)),vr(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>yr(e.getValue(n),t.getValue(n))},xr={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:jn("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return wr.datetime;if("string"==typeof n&&(r=!0,n.split(gr).length>1))return wr.alphanumeric}return r?wr.text:wr.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Pn(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:wr[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),a=null!=n;t.setSorting(i=>{const s=null==i?void 0:i.find(t=>t.id===e.id),l=null==i?void 0:i.findIndex(t=>t.id===e.id);let u,c=[],d=a?n:"desc"===o;var f;(u=null!=i&&i.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=i&&i.length&&l!==i.length-1?"replace":s?"toggle":"replace","toggle"===u&&(a||o||(u="remove")),"add"===u)?(c=[...i,{id:e.id,desc:d}],c.splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):c="toggle"===u?i.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===u?i.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const a=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===a||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):a},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Cr=[An,ir,er,tr,In,Qn,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},lr,xr,Jn,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:jn("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const a=!0===r||!(null==r||!r[e.id]);let i={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{i[e]=!0}):i=r,n=null!=(o=n)?o:!a,!a&&n)return{...i,[e.id]:!0};if(a&&!n){const{[e.id]:t,...n}=i;return n}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},ur,cr,dr,rr];function Sr(e){var t,n;const r=[...Cr,...null!=(t=e._features)?t:[]];let o={_features:r};const a=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{});let i={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i});const s=[];let l=!1;const u={_features:r,options:{...a,...e},initialState:i,_queue:e=>{s.push(e),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Nn(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(a,e):{...a,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:On(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},Mn(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:On(()=>[o._getColumnDefs()],e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{const a=function(e,t,n,r){var o,a;const i={...e._getDefaultColumnDef(),...t},s=i.accessorKey;let l,u=null!=(o=null!=(a=i.id)?a:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?o:"string"==typeof i.header?i.header:void 0;if(i.accessorFn?l=i.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[i.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:l,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:On(()=>[!0],()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},Mn(e.options,"debugColumns")),getLeafColumns:On(()=>[e._getOrderColumnsFn()],e=>{var t;if(null!=(t=c.columns)&&t.length){let t=c.columns.flatMap(e=>e.getLeafColumns());return e(t)}return[c]},Mn(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(o,e,r,n),i=e;return a.columns=i.columns?t(i.columns,a,r+1):[],a})};return t(e)},Mn(e,"debugColumns")),getAllFlatColumns:On(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),Mn(e,"debugColumns")),_getAllFlatColumnsById:On(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),Mn(e,"debugColumns")),getAllLeafColumns:On(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>{let n=e.flatMap(e=>e.getLeafColumns());return t(n)},Mn(e,"debugColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,u);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}
21
+ function jn(e,t){return"function"==typeof e?e(t):e}function Pn(e,t){return n=>{t.setState(t=>({...t,[e]:jn(n,t[e])}))}}function On(e){return e instanceof Function}function Mn(e,t,n){let r,o=[];return a=>{let i;n.key&&n.debug&&(i=Date.now());const s=e(a),l=s.length!==o.length||s.some((e,t)=>o[t]!==e);if(!l)return r;let u;if(o=s,n.key&&n.debug&&(u=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-u))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function Tn(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const Dn="debugHeaders";function An(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}const Fn={createTable:e=>{e.getHeaderGroups=Mn(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var a,i;const s=null!=(a=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?a:[],l=null!=(i=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],u=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)));return Ln(t,[...s,...u,...l],e)},Tn(e.options,Dn)),e.getCenterHeaderGroups=Mn(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),Ln(t,n,e,"center")),Tn(e.options,Dn)),e.getLeftHeaderGroups=Mn(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;return Ln(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},Tn(e.options,Dn)),e.getRightHeaderGroups=Mn(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;return Ln(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},Tn(e.options,Dn)),e.getFooterGroups=Mn(()=>[e.getHeaderGroups()],e=>[...e].reverse(),Tn(e.options,Dn)),e.getLeftFooterGroups=Mn(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),Tn(e.options,Dn)),e.getCenterFooterGroups=Mn(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),Tn(e.options,Dn)),e.getRightFooterGroups=Mn(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),Tn(e.options,Dn)),e.getFlatHeaders=Mn(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),Tn(e.options,Dn)),e.getLeftFlatHeaders=Mn(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),Tn(e.options,Dn)),e.getCenterFlatHeaders=Mn(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),Tn(e.options,Dn)),e.getRightFlatHeaders=Mn(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),Tn(e.options,Dn)),e.getCenterLeafHeaders=Mn(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Tn(e.options,Dn)),e.getLeftLeafHeaders=Mn(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Tn(e.options,Dn)),e.getRightLeafHeaders=Mn(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Tn(e.options,Dn)),e.getLeafHeaders=Mn(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,a,i,s,l;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(a=null==(i=t[0])?void 0:i.headers)?a:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},Tn(e.options,Dn))}};function Ln(e,t,n,r){var o,a;let i=0;const s=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)},0)};s(e);let l=[];const u=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},a=[];e.forEach(e=>{const i=[...a].reverse()[0];let s,l=!1;if(e.column.depth===o.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),i&&(null==i?void 0:i.column)===s)i.subHeaders.push(e);else{const o=An(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${a.filter(e=>e.column===s).length}`:void 0,depth:t,index:a.length});o.subHeaders.push(e),a.push(o)}o.headers.push(e),e.headerGroup=o}),l.push(o),t>0&&u(a,t-1)},c=t.map((e,t)=>An(n,e,{depth:i,index:t}));u(c,i-1),l.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(a=l[0])?void 0:a.headers)?o:[]),l}const In=(e,t,n,r,o,a,i)=>{let s={id:t,index:r,original:n,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)})};return r(e),n}(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Mn(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:Mn(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),Tn(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,s,t,t.id)),Tn(e.options,"debugRows")),_getAllCellsByColumnId:Mn(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),Tn(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s},zn={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},$n=(e,t,n)=>{var r,o;const a=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(a))};$n.autoRemove=e=>Qn(e);const Hn=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Hn.autoRemove=e=>Qn(e);const Vn=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};Vn.autoRemove=e=>Qn(e);const Bn=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Bn.autoRemove=e=>Qn(e);const Un=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});Un.autoRemove=e=>Qn(e)||!(null!=e&&e.length);const Wn=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});Wn.autoRemove=e=>Qn(e)||!(null!=e&&e.length);const Yn=(e,t,n)=>e.getValue(t)===n;Yn.autoRemove=e=>Qn(e);const qn=(e,t,n)=>e.getValue(t)==n;qn.autoRemove=e=>Qn(e);const Gn=(e,t,n)=>{let[r,o]=n;const a=e.getValue(t);return a>=r&&a<=o};Gn.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,a=null===t||Number.isNaN(r)?-1/0:r,i=null===n||Number.isNaN(o)?1/0:o;if(a>i){const e=a;a=i,i=e}return[a,i]},Gn.autoRemove=e=>Qn(e)||Qn(e[0])&&Qn(e[1]);const Kn={includesString:$n,includesStringSensitive:Hn,equalsString:Vn,arrIncludes:Bn,arrIncludesAll:Un,arrIncludesSome:Wn,equals:Yn,weakEquals:qn,inNumberRange:Gn};function Qn(e){return null==e||""===e}const Zn={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Pn("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?Kn.includesString:"number"==typeof r?Kn.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?Kn.equals:Array.isArray(r)?Kn.arrIncludes:Kn.weakEquals},e.getFilterFn=()=>{var n,r;return On(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:Kn[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),a=jn(n,o?o.value:void 0);var i;if(Xn(r,a,e))return null!=(i=null==t?void 0:t.filter(t=>t.id!==e.id))?i:[];const s={id:e.id,value:a};var l;return o?null!=(l=null==t?void 0:t.map(t=>t.id===e.id?s:t))?l:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=jn(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);if(t){if(Xn(t.getFilterFn(),e.value,t))return!1}return!0})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Xn(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const Jn={sum:(e,t,n)=>n.reduce((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(r=n,!Array.isArray(r)||!r.every(e=>"number"==typeof e))return;var r;if(1===n.length)return n[0];const o=Math.floor(n.length/2),a=n.sort((e,t)=>e-t);return n.length%2!=0?a[o]:(a[o-1]+a[o])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},er={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Pn("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?Jn.sum:"[object Date]"===Object.prototype.toString.call(r)?Jn.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return On(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:Jn[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const tr={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Pn("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Mn(e=>[lr(t,e)],t=>t.findIndex(t=>t.id===e.id),Tn(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=lr(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=lr(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Mn(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter(e=>!t.includes(e.id));if("remove"===n)return r;const o=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...o,...r]}(o,t,n)},Tn(e.options,"debugTable"))}},nr={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Pn("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,a,i,s,l;return"right"===n?{left:(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,a=n.some(e=>null==r?void 0:r.includes(e)),i=n.some(e=>null==o?void 0:o.includes(e));return a?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Mn(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},Tn(t.options,"debugRows")),e.getLeftVisibleCells=Mn(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),Tn(t.options,"debugRows")),e.getRightVisibleCells=Mn(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),Tn(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(a=r.right)?void 0:a.length))},e.getLeftLeafColumns=Mn(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Tn(e.options,"debugColumns")),e.getRightLeafColumns=Mn(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Tn(e.options,"debugColumns")),e.getCenterLeafColumns=Mn(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},Tn(e.options,"debugColumns"))}};const rr={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},or={getDefaultColumnDef:()=>rr,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Pn("columnSizing",e),onColumnSizingInfoChange:Pn("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const a=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:rr.minSize,null!=(r=null!=a?a:e.columnDef.size)?r:rr.size),null!=(o=e.columnDef.maxSize)?o:rr.maxSize)},e.getStart=Mn(e=>[e,lr(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),Tn(t.options,"debugColumns")),e.getAfter=Mn(e=>[e,lr(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),Tn(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return a=>{if(!r||!o)return;if(null==a.persist||a.persist(),ir(a)&&a.touches&&a.touches.length>1)return;const i=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],l=ir(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,o;const a="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*a,s=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*s,0))/100}),{...e,deltaOffset:i,deltaPercentage:s}}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>({...e,...u})))},d=e=>c("move",e),f=e=>{c("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||("undefined"!=typeof document?document:null);const h={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",h.moveHandler),null==p||p.removeEventListener("mouseup",h.upHandler),f(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",m.moveHandler),null==p||p.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof ar)return ar;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return ar=e,ar}()&&{passive:!1};ir(a)?(null==p||p.addEventListener("touchmove",m.moveHandler,g),null==p||p.addEventListener("touchend",m.upHandler,g)):(null==p||p.addEventListener("mousemove",h.moveHandler,g),null==p||p.addEventListener("mouseup",h.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let ar=null;function ir(e){return"touchstart"===e.type}const sr={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Pn("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Mn(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),Tn(t.options,"debugRows")),e.getVisibleCells=Mn(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],Tn(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>Mn(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),Tn(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function lr(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const ur={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Pn("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,a;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(a=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||a)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Kn.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return On(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:Kn[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},cr={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Pn("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>jn(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let r=jn(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,jn(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=jn(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=Mn(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},Tn(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},dr={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:Pn("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const a=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],i=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...i,e.id,...a]);t.setRowPinning(e=>{var t,r,o,a,i,l;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=s&&s.has(e))),bottom:[...(null!=(a=null==e?void 0:e.bottom)?a:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=s&&s.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=s&&s.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=s&&s.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,a=n.some(e=>null==r?void 0:r.includes(e)),i=n.some(e=>null==o?void 0:o.includes(e));return a?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const a=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==a?void 0:a.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(a=r.bottom)?void 0:a.length))},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=Mn(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Tn(e.options,"debugRows")),e.getBottomRows=Mn(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Tn(e.options,"debugRows")),e.getCenterRows=Mn(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},Tn(e.options,"debugRows"))}},fr={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Pn("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{pr(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Mn(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?hr(e,n):{rows:[],flatRows:[],rowsById:{}},Tn(e.options,"debugTable")),e.getFilteredSelectedRowModel=Mn(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?hr(e,n):{rows:[],flatRows:[],rowsById:{}},Tn(e.options,"debugTable")),e.getGroupedSelectedRowModel=Mn(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?hr(e,n):{rows:[],flatRows:[],rowsById:{}},Tn(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(a=>{var i;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return a;const s={...a};return pr(s,e.id,n,null==(i=null==r?void 0:r.selectChildren)||i,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return mr(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===gr(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===gr(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},pr=(e,t,n,r,o)=>{var a;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(a=i.subRows)&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>pr(e,t.id,n,r,o))};function hr(e,t){const n=e.getState().rowSelection,r=[],o={},a=function(e,t){return e.map(e=>{var t;const i=mr(e,n);if(i&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:a(e.subRows)}),i)return e}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:o}}function mr(e,t){var n;return null!=(n=t[e.id])&&n}function gr(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,a=!1;return e.subRows.forEach(e=>{if((!a||o)&&(e.getCanSelect()&&(mr(e,t)?a=!0:o=!1),e.subRows&&e.subRows.length)){const n=gr(e,t);"all"===n?a=!0:"some"===n?(a=!0,o=!1):o=!1}}),o?"all":!!a&&"some"}const yr=/([0-9]+)/gm;function vr(e,t){return e===t?0:e>t?1:-1}function br(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function wr(e,t){const n=e.split(yr).filter(Boolean),r=t.split(yr).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),a=parseInt(t,10),i=[o,a].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>a)return 1;if(a>o)return-1}}return n.length-r.length}const xr={alphanumeric:(e,t,n)=>wr(br(e.getValue(n)).toLowerCase(),br(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>wr(br(e.getValue(n)),br(t.getValue(n))),text:(e,t,n)=>vr(br(e.getValue(n)).toLowerCase(),br(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>vr(br(e.getValue(n)),br(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>vr(e.getValue(n),t.getValue(n))},Cr={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Pn("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return xr.datetime;if("string"==typeof n&&(r=!0,n.split(yr).length>1))return xr.alphanumeric}return r?xr.text:xr.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return On(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:xr[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),a=null!=n;t.setSorting(i=>{const s=null==i?void 0:i.find(t=>t.id===e.id),l=null==i?void 0:i.findIndex(t=>t.id===e.id);let u,c=[],d=a?n:"desc"===o;var f;(u=null!=i&&i.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=i&&i.length&&l!==i.length-1?"replace":s?"toggle":"replace","toggle"===u&&(a||o||(u="remove")),"add"===u)?(c=[...i,{id:e.id,desc:d}],c.splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):c="toggle"===u?i.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===u?i.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const a=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===a||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):a},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Sr=[Fn,sr,tr,nr,zn,Zn,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},ur,Cr,er,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Pn("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const a=!0===r||!(null==r||!r[e.id]);let i={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{i[e]=!0}):i=r,n=null!=(o=n)?o:!a,!a&&n)return{...i,[e.id]:!0};if(a&&!n){const{[e.id]:t,...n}=i;return n}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},cr,dr,fr,or];function kr(e){var t,n;const r=[...Sr,...null!=(t=e._features)?t:[]];let o={_features:r};const a=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{});let i={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i});const s=[];let l=!1;const u={_features:r,options:{...a,...e},initialState:i,_queue:e=>{s.push(e),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=jn(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(a,e):{...a,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:Mn(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},Tn(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Mn(()=>[o._getColumnDefs()],e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{const a=function(e,t,n,r){var o,a;const i={...e._getDefaultColumnDef(),...t},s=i.accessorKey;let l,u=null!=(o=null!=(a=i.id)?a:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?o:"string"==typeof i.header?i.header:void 0;if(i.accessorFn?l=i.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[i.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:l,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:Mn(()=>[!0],()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},Tn(e.options,"debugColumns")),getLeafColumns:Mn(()=>[e._getOrderColumnsFn()],e=>{var t;if(null!=(t=c.columns)&&t.length){let t=c.columns.flatMap(e=>e.getLeafColumns());return e(t)}return[c]},Tn(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(o,e,r,n),i=e;return a.columns=i.columns?t(i.columns,a,r+1):[],a})};return t(e)},Tn(e,"debugColumns")),getAllFlatColumns:Mn(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),Tn(e,"debugColumns")),_getAllFlatColumnsById:Mn(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),Tn(e,"debugColumns")),getAllLeafColumns:Mn(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>{let n=e.flatMap(e=>e.getLeafColumns());return t(n)},Tn(e,"debugColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,u);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}
22
22
  /**
23
23
  * react-table
24
24
  *
@@ -29,33 +29,33 @@ function Nn(e,t){return"function"==typeof e?e(t):e}function jn(e,t){return n=>{t
29
29
  *
30
30
  * @license MIT
31
31
  */
32
- function kr(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?T.createElement(e,t):e:null;var n}function _r(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_r(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Er(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_r(e))&&(r&&(r+=" "),r+=t);return r}const Rr=e=>{const t=Or(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Nr(n,t)||Pr(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Nr=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Nr(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},jr=/^\[(.+)\]$/,Pr=e=>{if(jr.test(e)){const t=jr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Or=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)Mr(n[e],r,e,t);return r},Mr=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Tr(t,e)).classGroupId=n)}if("function"==typeof e)return Dr(e)?void Mr(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Mr(o,Tr(t,e),n,r)})})},Tr=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Dr=e=>e.isThemeGetter,Ar=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Fr=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,a=0;for(let i=0;i<e.length;i++){let s=e[i];if(0===r&&0===o){if(":"===s){t.push(e.slice(a,i)),a=i+1;continue}if("/"===s){n=i;continue}}"["===s?r++:"]"===s?r--:"("===s?o++:")"===s&&o--}const i=0===t.length?e:e.substring(a),s=Lr(i);return{modifiers:t,hasImportantModifier:s!==i,baseClassName:s,maybePostfixModifierPosition:n&&n>a?n-a:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},Lr=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Ir=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},zr=/\s+/;function $r(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Hr(e))&&(r&&(r+=" "),r+=t);return r}const Hr=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Hr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Vr(e,...t){let n,r,o,a=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Ar(e.cacheSize),parseClassName:Fr(e),sortModifiers:Ir(e),...Rr(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(zr);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let h=!!p,m=r(h?f.substring(0,p):f);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(f),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=a(c).join(":"),y=d?g+"!":g,v=y+m;if(i.includes(v))continue;i.push(v);const b=o(m,h);for(let e=0;e<b.length;++e){const t=b[e];i.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,a),a}return function(){return a($r.apply(null,arguments))}}const Br=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Ur=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Yr=/^\d+\/\d+$/,qr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Kr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xr=e=>Yr.test(e),Jr=e=>!!e&&!Number.isNaN(Number(e)),eo=e=>!!e&&Number.isInteger(Number(e)),to=e=>e.endsWith("%")&&Jr(e.slice(0,-1)),no=e=>qr.test(e),ro=()=>!0,oo=e=>Gr.test(e)&&!Kr.test(e),ao=()=>!1,io=e=>Qr.test(e),so=e=>Zr.test(e),lo=e=>!co(e)&&!yo(e),uo=e=>ko(e,No,ao),co=e=>Ur.test(e),fo=e=>ko(e,jo,oo),po=e=>ko(e,Po,Jr),ho=e=>ko(e,Eo,ao),mo=e=>ko(e,Ro,so),go=e=>ko(e,Mo,io),yo=e=>Wr.test(e),vo=e=>_o(e,jo),bo=e=>_o(e,Oo),wo=e=>_o(e,Eo),xo=e=>_o(e,No),Co=e=>_o(e,Ro),So=e=>_o(e,Mo,!0),ko=(e,t,n)=>{const r=Ur.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},_o=(e,t,n=!1)=>{const r=Wr.exec(e);return!!r&&(r[1]?t(r[1]):n)},Eo=e=>"position"===e||"percentage"===e,Ro=e=>"image"===e||"url"===e,No=e=>"length"===e||"size"===e||"bg-size"===e,jo=e=>"length"===e,Po=e=>"number"===e,Oo=e=>"family-name"===e,Mo=e=>"shadow"===e,To=Vr(()=>{const e=Br("color"),t=Br("font"),n=Br("text"),r=Br("font-weight"),o=Br("tracking"),a=Br("leading"),i=Br("breakpoint"),s=Br("container"),l=Br("spacing"),u=Br("radius"),c=Br("shadow"),d=Br("inset-shadow"),f=Br("text-shadow"),p=Br("drop-shadow"),h=Br("blur"),m=Br("perspective"),g=Br("aspect"),y=Br("ease"),v=Br("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",yo,co],w=()=>[yo,co,l],x=()=>[Xr,"full","auto",...w()],C=()=>[eo,"none","subgrid",yo,co],S=()=>["auto",{span:["full",eo,yo,co]},eo,yo,co],k=()=>[eo,"auto",yo,co],_=()=>["auto","min","max","fr",yo,co],E=()=>["auto",...w()],R=()=>[Xr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],N=()=>[e,yo,co],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",wo,ho,{position:[yo,co]}],P=()=>["auto","cover","contain",xo,uo,{size:[yo,co]}],O=()=>[to,vo,fo],M=()=>["","none","full",u,yo,co],T=()=>["",Jr,vo,fo],D=()=>[Jr,to,wo,ho],A=()=>["","none",h,yo,co],F=()=>["none",Jr,yo,co],L=()=>["none",Jr,yo,co],I=()=>[Jr,yo,co],z=()=>[Xr,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[no],breakpoint:[no],color:[ro],container:[no],"drop-shadow":[no],ease:["in","out","in-out"],font:[lo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[no],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[no],shadow:[no],spacing:["px",Jr],text:[no],"text-shadow":[no],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xr,co,yo,g]}],container:["container"],columns:[{columns:[Jr,co,yo,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[eo,"auto",yo,co]}],basis:[{basis:[Xr,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Jr,Xr,"auto","initial","none",co]}],grow:[{grow:["",Jr,yo,co]}],shrink:[{shrink:["",Jr,yo,co]}],order:[{order:[eo,"first","last","none",yo,co]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:R()}],w:[{w:[s,"screen",...R()]}],"min-w":[{"min-w":[s,"screen","none",...R()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...R()]}],h:[{h:["screen","lh",...R()]}],"min-h":[{"min-h":["screen","lh","none",...R()]}],"max-h":[{"max-h":["screen","lh",...R()]}],"font-size":[{text:["base",n,vo,fo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,yo,po]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",to,co]}],"font-family":[{font:[bo,co,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,yo,co]}],"line-clamp":[{"line-clamp":[Jr,"none",yo,po]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",yo,co]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",yo,co]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Jr,"from-font","auto",yo,fo]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[Jr,"auto",yo,co]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",yo,co]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",yo,co]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},eo,yo,co],radial:["",yo,co],conic:[eo,yo,co]},Co,mo]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:T()}],"border-w-x":[{"border-x":T()}],"border-w-y":[{"border-y":T()}],"border-w-s":[{"border-s":T()}],"border-w-e":[{"border-e":T()}],"border-w-t":[{"border-t":T()}],"border-w-r":[{"border-r":T()}],"border-w-b":[{"border-b":T()}],"border-w-l":[{"border-l":T()}],"divide-x":[{"divide-x":T()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":T()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Jr,yo,co]}],"outline-w":[{outline:["",Jr,vo,fo]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",c,So,go]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,So,go]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[Jr,fo]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":T()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",f,So,go]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[Jr,yo,co]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Jr]}],"mask-image-linear-from-pos":[{"mask-linear-from":D()}],"mask-image-linear-to-pos":[{"mask-linear-to":D()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":D()}],"mask-image-t-to-pos":[{"mask-t-to":D()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":D()}],"mask-image-r-to-pos":[{"mask-r-to":D()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":D()}],"mask-image-b-to-pos":[{"mask-b-to":D()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":D()}],"mask-image-l-to-pos":[{"mask-l-to":D()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":D()}],"mask-image-x-to-pos":[{"mask-x-to":D()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":D()}],"mask-image-y-to-pos":[{"mask-y-to":D()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[yo,co]}],"mask-image-radial-from-pos":[{"mask-radial-from":D()}],"mask-image-radial-to-pos":[{"mask-radial-to":D()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Jr]}],"mask-image-conic-from-pos":[{"mask-conic-from":D()}],"mask-image-conic-to-pos":[{"mask-conic-to":D()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",yo,co]}],filter:[{filter:["","none",yo,co]}],blur:[{blur:A()}],brightness:[{brightness:[Jr,yo,co]}],contrast:[{contrast:[Jr,yo,co]}],"drop-shadow":[{"drop-shadow":["","none",p,So,go]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",Jr,yo,co]}],"hue-rotate":[{"hue-rotate":[Jr,yo,co]}],invert:[{invert:["",Jr,yo,co]}],saturate:[{saturate:[Jr,yo,co]}],sepia:[{sepia:["",Jr,yo,co]}],"backdrop-filter":[{"backdrop-filter":["","none",yo,co]}],"backdrop-blur":[{"backdrop-blur":A()}],"backdrop-brightness":[{"backdrop-brightness":[Jr,yo,co]}],"backdrop-contrast":[{"backdrop-contrast":[Jr,yo,co]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Jr,yo,co]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Jr,yo,co]}],"backdrop-invert":[{"backdrop-invert":["",Jr,yo,co]}],"backdrop-opacity":[{"backdrop-opacity":[Jr,yo,co]}],"backdrop-saturate":[{"backdrop-saturate":[Jr,yo,co]}],"backdrop-sepia":[{"backdrop-sepia":["",Jr,yo,co]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",yo,co]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Jr,"initial",yo,co]}],ease:[{ease:["linear","initial",y,yo,co]}],delay:[{delay:[Jr,yo,co]}],animate:[{animate:["none",v,yo,co]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,yo,co]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:F()}],"rotate-x":[{"rotate-x":F()}],"rotate-y":[{"rotate-y":F()}],"rotate-z":[{"rotate-z":F()}],scale:[{scale:L()}],"scale-x":[{"scale-x":L()}],"scale-y":[{"scale-y":L()}],"scale-z":[{"scale-z":L()}],"scale-3d":["scale-3d"],skew:[{skew:I()}],"skew-x":[{"skew-x":I()}],"skew-y":[{"skew-y":I()}],transform:[{transform:[yo,co,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",yo,co]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",yo,co]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[Jr,vo,fo,po]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Do(...e){return To(Er(e))}const Ao=T.forwardRef(({className:e,...t},n)=>m.jsx("div",{className:"relative w-full overflow-auto",children:m.jsx("table",{ref:n,className:Do("w-full caption-bottom text-sm",e),...t})}));Ao.displayName="Table";const Fo=T.forwardRef(({className:e,...t},n)=>m.jsx("thead",{ref:n,className:Do("[&_tr]:border-b",e),...t}));Fo.displayName="TableHeader";const Lo=T.forwardRef(({className:e,...t},n)=>m.jsx("tbody",{ref:n,className:Do("[&_tr:last-child]:border-0",e),...t}));Lo.displayName="TableBody";T.forwardRef(({className:e,...t},n)=>m.jsx("tfoot",{ref:n,className:Do("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})).displayName="TableFooter";const Io=T.forwardRef(({className:e,...t},n)=>m.jsx("tr",{ref:n,className:Do("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Io.displayName="TableRow";const zo=T.forwardRef(({className:e,...t},n)=>m.jsx("th",{ref:n,className:Do("h-12 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));zo.displayName="TableHead";const $o=T.forwardRef(({className:e,...t},n)=>m.jsx("td",{ref:n,className:Do("p-2 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));$o.displayName="TableCell";function Ho({className:e,...t}){return m.jsx("div",{className:Do("animate-pulse rounded-md bg-neutral-100 dark:bg-neutral-800",e),...t})}function Vo(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Bo(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Uo(...e){return t=>{let n=!1;const r=e.map(e=>{const r=Bo(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Bo(e[t],null)}}}}function Wo(...e){return T.useCallback(Uo(...e),e)}function Yo(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>T.createContext(e));return function(n){const r=n?.[e]||t;return T.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=T.createContext(r),a=n.length;n=[...n,r];const i=t=>{const{scope:n,children:r,...i}=t,s=n?.[e]?.[a]||o,l=T.useMemo(()=>i,Object.values(i));return m.jsx(s.Provider,{value:l,children:r})};return i.displayName=t+"Provider",[i,function(n,i){const s=i?.[e]?.[a]||o,l=T.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},qo(r,...t)]}function qo(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}T.forwardRef(({className:e,...t},n)=>m.jsx("caption",{ref:n,className:Do("mt-4 text-sm text-muted-foreground",e),...t})).displayName="TableCaption";var Go=globalThis?.document?T.useLayoutEffect:()=>{},Ko=A[" useInsertionEffect ".trim().toString()]||Go;function Qo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=function({defaultProp:e,onChange:t}){const[n,r]=T.useState(e),o=T.useRef(n),a=T.useRef(t);return Ko(()=>{a.current=t},[t]),T.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o;{const t=T.useRef(void 0!==e);T.useEffect(()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}const u=T.useCallback(t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[s,e,a,i]);return[l,u]}var Zo=N(),Xo=n(Zo);function Jo(e){const t=ta(e),n=T.forwardRef((e,n)=>{const{children:r,...o}=e,a=T.Children.toArray(r),i=a.find(ra);if(i){const e=i.props.children,r=a.map(t=>t===i?T.Children.count(e)>1?T.Children.only(null):T.isValidElement(e)?e.props.children:null:t);return m.jsx(t,{...o,ref:n,children:T.isValidElement(e)?T.cloneElement(e,void 0,r):null})}return m.jsx(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var ea=Jo("Slot");function ta(e){const t=T.forwardRef((e,t)=>{const{children:n,...r}=e;if(T.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==T.Fragment&&(o.ref=t?Uo(t,e):e),T.cloneElement(n,o)}return T.Children.count(n)>1?T.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var na=Symbol("radix.slottable");function ra(e){return T.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===na}var oa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=Jo(`Primitive.${t}`),r=T.forwardRef((e,r)=>{const{asChild:o,...a}=e,i=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),m.jsx(i,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function aa(e,t){e&&Zo.flushSync(()=>e.dispatchEvent(t))}function ia(e){const t=e+"CollectionProvider",[n,r]=Yo(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=D.useRef(null),a=D.useRef(new Map).current;return m.jsx(o,{scope:t,itemMap:a,collectionRef:r,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=Jo(s),u=D.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=Wo(t,a(s,n).collectionRef);return m.jsx(l,{ref:o,children:r})});u.displayName=s;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Jo(c),p=D.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,i=D.useRef(null),s=Wo(t,i),l=a(c,n);return D.useEffect(()=>(l.itemMap.set(i,{ref:i,...o}),()=>{l.itemMap.delete(i)})),m.jsx(f,{[d]:"",ref:s,children:r})});return p.displayName=c,[{Provider:i,Slot:u,ItemSlot:p},function(t){const n=a(e+"CollectionConsumer",t),r=D.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`)),r=Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return r},[n.collectionRef,n.itemMap]);return r},r]}var sa=T.createContext(void 0);function la(e){const t=T.useContext(sa);return e||t||"ltr"}function ua(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...e)=>t.current?.(...e),[])}var ca,da="dismissableLayer.update",fa="dismissableLayer.pointerDownOutside",pa="dismissableLayer.focusOutside",ha=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ma=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,u=T.useContext(ha),[c,d]=T.useState(null),f=c?.ownerDocument??globalThis?.document,[,p]=T.useState({}),h=Wo(t,e=>d(e)),g=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),b=c?g.indexOf(c):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=v,C=function(e,t=globalThis?.document){const n=ua(e),r=T.useRef(!1),o=T.useRef(()=>{});return T.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){va(fa,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...u.branches].some(e=>e.contains(t));x&&!n&&(o?.(e),i?.(e),e.defaultPrevented||s?.())},f),S=function(e,t=globalThis?.document){const n=ua(e),r=T.useRef(!1);return T.useEffect(()=>{const e=e=>{if(e.target&&!r.current){va(pa,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),i?.(e),e.defaultPrevented||s?.())},f);return function(e,t=globalThis?.document){const n=ua(e);T.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{b===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),T.useEffect(()=>{if(c)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(ca=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),ya(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=ca)}},[c,f,n,u]),T.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),ya())},[c,u]),T.useEffect(()=>{const e=()=>p({});return document.addEventListener(da,e),()=>document.removeEventListener(da,e)},[]),m.jsx(oa.div,{...l,ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Vo(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Vo(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Vo(e.onPointerDownCapture,C.onPointerDownCapture)})});ma.displayName="DismissableLayer";var ga=T.forwardRef((e,t)=>{const n=T.useContext(ha),r=T.useRef(null),o=Wo(t,r);return T.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),m.jsx(oa.div,{...e,ref:o})});function ya(){const e=new CustomEvent(da);document.dispatchEvent(e)}function va(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?aa(o,a):o.dispatchEvent(a)}ga.displayName="DismissableLayerBranch";var ba=0;function wa(){T.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??xa()),document.body.insertAdjacentElement("beforeend",e[1]??xa()),ba++,()=>{1===ba&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ba--}},[])}function xa(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ca="focusScope.autoFocusOnMount",Sa="focusScope.autoFocusOnUnmount",ka={bubbles:!1,cancelable:!0},_a=T.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=T.useState(null),u=ua(o),c=ua(a),d=T.useRef(null),f=Wo(t,e=>l(e)),p=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:ja(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||ja(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ja(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,p.paused]),T.useEffect(()=>{if(s){Pa.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(Ca,ka);s.addEventListener(Ca,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ja(r,{select:t}),document.activeElement!==n)return}((e=Ea(s),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&ja(s))}return()=>{s.removeEventListener(Ca,u),setTimeout(()=>{const e=new CustomEvent(Sa,ka);s.addEventListener(Sa,c),s.dispatchEvent(e),e.defaultPrevented||ja(t??document.body,{select:!0}),s.removeEventListener(Sa,c),Pa.remove(p)},0)}}var e},[s,u,c,p]);const h=T.useCallback(e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=Ea(e),n=Ra(t,e),r=Ra(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&ja(a,{select:!0})):(e.preventDefault(),n&&ja(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return m.jsx(oa.div,{tabIndex:-1,...i,ref:f,onKeyDown:h})});function Ea(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ra(e,t){for(const n of e)if(!Na(n,{upTo:t}))return n}function Na(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function ja(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}_a.displayName="FocusScope";var Pa=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Oa(e,t),e.unshift(t)},remove(t){e=Oa(e,t),e[0]?.resume()}}}();function Oa(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Ma=A[" useId ".trim().toString()]||(()=>{}),Ta=0;function Da(e){const[t,n]=T.useState(Ma());return Go(()=>{n(e=>e??String(Ta++))},[e]),t?`radix-${t}`:""}const Aa=["top","right","bottom","left"],Fa=Math.min,La=Math.max,Ia=Math.round,za=Math.floor,$a=e=>({x:e,y:e}),Ha={left:"right",right:"left",bottom:"top",top:"bottom"},Va={start:"end",end:"start"};function Ba(e,t,n){return La(e,Fa(t,n))}function Ua(e,t){return"function"==typeof e?e(t):e}function Wa(e){return e.split("-")[0]}function Ya(e){return e.split("-")[1]}function qa(e){return"x"===e?"y":"x"}function Ga(e){return"y"===e?"height":"width"}const Ka=new Set(["top","bottom"]);function Qa(e){return Ka.has(Wa(e))?"y":"x"}function Za(e){return qa(Qa(e))}function Xa(e){return e.replace(/start|end/g,e=>Va[e])}const Ja=["left","right"],ei=["right","left"],ti=["top","bottom"],ni=["bottom","top"];function ri(e,t,n,r){const o=Ya(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?ei:Ja:t?Ja:ei;case"left":case"right":return t?ti:ni;default:return[]}}(Wa(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(Xa)))),a}function oi(e){return e.replace(/left|right|bottom|top/g,e=>Ha[e])}function ai(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ii(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function si(e,t,n){let{reference:r,floating:o}=e;const a=Qa(t),i=Za(t),s=Ga(i),l=Wa(t),u="y"===a,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ya(t)){case"start":p[i]-=f*(n&&u?-1:1);break;case"end":p[i]+=f*(n&&u?-1:1)}return p}async function li(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ua(t,e),h=ai(p),m=s[f?"floating"===d?"reference":"floating":d],g=ii(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=ii(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}function ui(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ci(e){return Aa.some(t=>e[t]>=0)}const di=new Set(["left","top"]);function fi(){return"undefined"!=typeof window}function pi(e){return gi(e)?(e.nodeName||"").toLowerCase():"#document"}function hi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function mi(e){var t;return null==(t=(gi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function gi(e){return!!fi()&&(e instanceof Node||e instanceof hi(e).Node)}function yi(e){return!!fi()&&(e instanceof Element||e instanceof hi(e).Element)}function vi(e){return!!fi()&&(e instanceof HTMLElement||e instanceof hi(e).HTMLElement)}function bi(e){return!(!fi()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof hi(e).ShadowRoot)}const wi=new Set(["inline","contents"]);function xi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ti(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!wi.has(o)}const Ci=new Set(["table","td","th"]);function Si(e){return Ci.has(pi(e))}const ki=[":popover-open",":modal"];function _i(e){return ki.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Ei=["transform","translate","scale","rotate","perspective"],Ri=["transform","translate","scale","rotate","perspective","filter"],Ni=["paint","layout","strict","content"];function ji(e){const t=Pi(),n=yi(e)?Ti(e):e;return Ei.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Ri.some(e=>(n.willChange||"").includes(e))||Ni.some(e=>(n.contain||"").includes(e))}function Pi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Oi=new Set(["html","body","#document"]);function Mi(e){return Oi.has(pi(e))}function Ti(e){return hi(e).getComputedStyle(e)}function Di(e){return yi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ai(e){if("html"===pi(e))return e;const t=e.assignedSlot||e.parentNode||bi(e)&&e.host||mi(e);return bi(t)?t.host:t}function Fi(e){const t=Ai(e);return Mi(t)?e.ownerDocument?e.ownerDocument.body:e.body:vi(t)&&xi(t)?t:Fi(t)}function Li(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Fi(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=hi(o);if(a){const e=Ii(i);return t.concat(i,i.visualViewport||[],xi(o)?o:[],e&&n?Li(e):[])}return t.concat(o,Li(o,[],n))}function Ii(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zi(e){const t=Ti(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=vi(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Ia(n)!==a||Ia(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function $i(e){return yi(e)?e:e.contextElement}function Hi(e){const t=$i(e);if(!vi(t))return $a(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=zi(t);let i=(a?Ia(n.width):n.width)/r,s=(a?Ia(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Vi=$a(0);function Bi(e){const t=hi(e);return Pi()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Vi}function Ui(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=$i(e);let i=$a(1);t&&(r?yi(r)&&(i=Hi(r)):i=Hi(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==hi(e))&&t}(a,n,r)?Bi(a):$a(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=hi(a),t=r&&yi(r)?hi(r):r;let n=e,o=Ii(n);for(;o&&r&&t!==n;){const e=Hi(o),t=o.getBoundingClientRect(),r=Ti(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=a,u+=i,n=hi(o),o=Ii(n)}}return ii({width:c,height:d,x:l,y:u})}function Wi(e,t){const n=Di(e).scrollLeft;return t?t.left+n:Ui(mi(e)).left+n}function Yi(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Wi(e,r)),y:r.top+t.scrollTop}}const qi=new Set(["absolute","fixed"]);function Gi(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=hi(e),r=mi(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=Pi();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=mi(e),n=Di(e),r=e.ownerDocument.body,o=La(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=La(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Wi(e);const s=-n.scrollTop;return"rtl"===Ti(r).direction&&(i+=La(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(mi(e));else if(yi(t))r=function(e,t){const n=Ui(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=vi(e)?Hi(e):$a(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=Bi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ii(r)}function Ki(e,t){const n=Ai(e);return!(n===t||!yi(n)||Mi(n))&&("fixed"===Ti(n).position||Ki(n,t))}function Qi(e,t,n){const r=vi(t),o=mi(t),a="fixed"===n,i=Ui(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=$a(0);function u(){l.x=Wi(o)}if(r||!r&&!a)if(("body"!==pi(t)||xi(o))&&(s=Di(t)),r){const e=Ui(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&u();a&&!r&&o&&u();const c=!o||r||a?$a(0):Yi(o,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function Zi(e){return"static"===Ti(e).position}function Xi(e,t){if(!vi(e)||"fixed"===Ti(e).position)return null;if(t)return t(e);let n=e.offsetParent;return mi(e)===n&&(n=n.ownerDocument.body),n}function Ji(e,t){const n=hi(e);if(_i(e))return n;if(!vi(e)){let t=Ai(e);for(;t&&!Mi(t);){if(yi(t)&&!Zi(t))return t;t=Ai(t)}return n}let r=Xi(e,t);for(;r&&Si(r)&&Zi(r);)r=Xi(r,t);return r&&Mi(r)&&Zi(r)&&!ji(r)?n:r||function(e){let t=Ai(e);for(;vi(t)&&!Mi(t);){if(ji(t))return t;if(_i(t))return null;t=Ai(t)}return null}(e)||n}const es={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=mi(r),s=!!t&&_i(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=$a(1);const c=$a(0),d=vi(r);if((d||!d&&!a)&&(("body"!==pi(r)||xi(i))&&(l=Di(r)),vi(r))){const e=Ui(r);u=Hi(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const f=!i||d||a?$a(0):Yi(i,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:mi,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?_i(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Li(e,[],!1).filter(e=>yi(e)&&"body"!==pi(e)),o=null;const a="fixed"===Ti(e).position;let i=a?Ai(e):e;for(;yi(i)&&!Mi(i);){const t=Ti(i),n=ji(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&qi.has(o.position)||xi(i)&&!n&&Ki(e,i))?r=r.filter(e=>e!==i):o=t,i=Ai(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((e,n)=>{const r=Gi(t,n,o);return e.top=La(r.top,e.top),e.right=Fa(r.right,e.right),e.bottom=Fa(r.bottom,e.bottom),e.left=La(r.left,e.left),e},Gi(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ji,getElementRects:async function(e){const t=this.getOffsetParent||Ji,n=this.getDimensions,r=await n(e.floating);return{reference:Qi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=zi(e);return{width:t,height:n}},getScale:Hi,isElement:yi,isRTL:function(e){return"rtl"===Ti(e).direction}};function ts(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ns(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=$i(e),c=o||a?[...u?Li(u):[],...Li(t)]:[];c.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=u&&s?function(e,t){let n,r=null;const o=mi(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(s||t(),!f||!p)return;const h={rootMargin:-za(d)+"px "+-za(o.clientWidth-(c+f))+"px "+-za(o.clientHeight-(d+p))+"px "+-za(c)+"px",threshold:La(0,Fa(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||ts(u,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),a}(u,n):null;let f,p=-1,h=null;i&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m=l?Ui(e):null;return l&&function t(){const r=Ui(e);m&&!ts(m,r)&&n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const rs=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=Wa(n),s=Ya(n),l="y"===Qa(n),u=di.has(i)?-1:1,c=a&&l?-1:1,d=Ua(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},os=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ua(e,t),u={x:n,y:r},c=await li(t,l),d=Qa(Wa(o)),f=qa(d);let p=u[f],h=u[d];if(a){const e="y"===f?"bottom":"right";p=Ba(p+c["y"===f?"top":"left"],p,p-c[e])}if(i){const e="y"===d?"bottom":"right";h=Ba(h+c["y"===d?"top":"left"],h,h-c[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:i}}}}}},as=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Ua(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=Wa(o),v=Qa(s),b=Wa(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(u.floating)),x=f||(b||!m?[oi(s)]:function(e){const t=oi(e);return[Xa(e),t,Xa(t)]}(s)),C="none"!==h;!f&&C&&x.push(...ri(s,m,h,w));const S=[s,...x],k=await li(t,g),_=[];let E=(null==(r=a.flip)?void 0:r.overflows)||[];if(c&&_.push(k[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Ya(e),o=Za(e),a=Ga(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=oi(i)),[i,oi(i)]}(o,i,w);_.push(k[e[0]],k[e[1]])}if(E=[...E,{placement:o,overflows:_}],!_.every(e=>e<=0)){var R,N;const e=((null==(R=a.flip)?void 0:R.index)||0)+1,t=S[e];if(t){if(!("alignment"===d&&v!==Qa(t))||E.every(e=>Qa(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=null==(N=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:N.placement;if(!n)switch(p){case"bestFit":{var j;const e=null==(j=E.filter(e=>{if(C){const t=Qa(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:j[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},is=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...u}=Ua(e,t),c=await li(t,u),d=Wa(o),f=Ya(o),p="y"===Qa(o),{width:h,height:m}=a.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===f?"top":"bottom");const v=m-c.top-c.bottom,b=h-c.left-c.right,w=Fa(m-c[g],v),x=Fa(h-c[y],b),C=!t.middlewareData.shift;let S=w,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),C&&!f){const e=La(c.left,0),t=La(c.right,0),n=La(c.top,0),r=La(c.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:La(c.left,c.right)):S=m-2*(0!==n||0!==r?n+r:La(c.top,c.bottom))}await l({...t,availableWidth:k,availableHeight:S});const _=await i.getDimensions(s.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}},ss=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ua(e,t);switch(r){case"referenceHidden":{const e=ui(await li(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ci(e)}}}case"escaped":{const e=ui(await li(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ci(e)}}}default:return{}}}}},ls=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Ua(e,t)||{};if(null==u)return{};const d=ai(c),f={x:n,y:r},p=Za(o),h=Ga(p),m=await i.getDimensions(u),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-f[p]-a.floating[h],x=f[p]-a.reference[p],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let S=C?C[b]:0;S&&await(null==i.isElement?void 0:i.isElement(C))||(S=s.floating[b]||a.floating[h]);const k=w/2-x/2,_=S/2-m[h]/2-1,E=Fa(d[y],_),R=Fa(d[v],_),N=E,j=S-m[h]-R,P=S/2-m[h]/2+k,O=Ba(N,P,j),M=!l.arrow&&null!=Ya(o)&&P!==O&&a.reference[h]/2-(P<N?E:R)-m[h]/2<0,T=M?P<N?P-N:P-j:0;return{[p]:f[p]+T,data:{[p]:O,centerOffset:P-O-T,...M&&{alignmentOffset:T}},reset:M}}}),us=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Ua(e,t),c={x:n,y:r},d=Qa(o),f=qa(d);let p=c[f],h=c[d];const m=Ua(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,v;const e="y"===f?"width":"height",t=di.has(Wa(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},cs=(e,t,n)=>{const r=new Map,o={platform:es,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=si(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:g,y:y,data:v,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,p={...p,[a]:{...p[a],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=si(u,f,l))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var ds="undefined"!=typeof document?T.useLayoutEffect:function(){};function fs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!fs(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!fs(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ps(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hs(e,t){const n=ps(e);return Math.round(t*n)/n}function ms(e){const t=T.useRef(e);return ds(()=>{t.current=e}),t}const gs=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?ls({element:n.current,padding:r}).fn(t):{}:n?ls({element:n,padding:r}).fn(t):{};var o}}),ys=(e,t)=>({...rs(e),options:[e,t]}),vs=(e,t)=>({...os(e),options:[e,t]}),bs=(e,t)=>({...us(e),options:[e,t]}),ws=(e,t)=>({...as(e),options:[e,t]}),xs=(e,t)=>({...is(e),options:[e,t]}),Cs=(e,t)=>({...ss(e),options:[e,t]}),Ss=(e,t)=>({...gs(e),options:[e,t]});var ks=T.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(oa.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});ks.displayName="Arrow";var _s=ks;var Es="Popper",[Rs,Ns]=Yo(Es),[js,Ps]=Rs(Es),Os=e=>{const{__scopePopper:t,children:n}=e,[r,o]=T.useState(null);return m.jsx(js,{scope:t,anchor:r,onAnchorChange:o,children:n})};Os.displayName=Es;var Ms="PopperAnchor",Ts=T.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Ps(Ms,n),i=T.useRef(null),s=Wo(t,i);return T.useEffect(()=>{a.onAnchorChange(r?.current||i.current)}),r?null:m.jsx(oa.div,{...o,ref:s})});Ts.displayName=Ms;var Ds="PopperContent",[As,Fs]=Rs(Ds),Ls=T.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:h,...g}=e,y=Ps(Ds,n),[v,b]=T.useState(null),w=Wo(t,e=>b(e)),[x,C]=T.useState(null),S=function(e){const[t,n]=T.useState(void 0);return Go(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(x),k=S?.width??0,_=S?.height??0,E=r+("center"!==a?"-"+a:""),R="number"==typeof c?c:{top:0,right:0,bottom:0,left:0,...c},N=Array.isArray(u)?u:[u],j=N.length>0,P={padding:R,boundary:N.filter(Hs),altBoundary:j},{refs:O,floatingStyles:M,placement:D,isPositioned:A,middlewareData:F}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=T.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=T.useState(r);fs(f,r)||p(r);const[h,m]=T.useState(null),[g,y]=T.useState(null),v=T.useCallback(e=>{e!==C.current&&(C.current=e,m(e))},[]),b=T.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),w=a||h,x=i||g,C=T.useRef(null),S=T.useRef(null),k=T.useRef(c),_=null!=l,E=ms(l),R=ms(o),N=ms(u),j=T.useCallback(()=>{if(!C.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};R.current&&(e.platform=R.current),cs(C.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};P.current&&!fs(k.current,t)&&(k.current=t,Zo.flushSync(()=>{d(t)}))})},[f,t,n,R,N]);ds(()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);const P=T.useRef(!1);ds(()=>(P.current=!0,()=>{P.current=!1}),[]),ds(()=>{if(w&&(C.current=w),x&&(S.current=x),w&&x){if(E.current)return E.current(w,x,j);j()}},[w,x,j,E,_]);const O=T.useMemo(()=>({reference:C,floating:S,setReference:v,setFloating:b}),[v,b]),M=T.useMemo(()=>({reference:w,floating:x}),[w,x]),D=T.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=hs(M.floating,c.x),r=hs(M.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ps(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,M.floating,c.x,c.y]);return T.useMemo(()=>({...c,update:j,refs:O,elements:M,floatingStyles:D}),[c,j,O,M,D])}({strategy:"fixed",placement:E,whileElementsMounted:(...e)=>ns(...e,{animationFrame:"always"===p}),elements:{reference:y.anchor},middleware:[ys({mainAxis:o+_,alignmentAxis:i}),l&&vs({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?bs():void 0,...P}),l&&ws({...P}),xs({...P,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),x&&Ss({element:x,padding:s}),Vs({arrowWidth:k,arrowHeight:_}),f&&Cs({strategy:"referenceHidden",...P})]}),[L,I]=Bs(D),z=ua(h);Go(()=>{A&&z?.()},[A,z]);const $=F.arrow?.x,H=F.arrow?.y,V=0!==F.arrow?.centerOffset,[B,U]=T.useState();return Go(()=>{v&&U(window.getComputedStyle(v).zIndex)},[v]),m.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:A?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(As,{scope:n,placedSide:L,onArrowChange:C,arrowX:$,arrowY:H,shouldHideArrow:V,children:m.jsx(oa.div,{"data-side":L,"data-align":I,...g,ref:w,style:{...g.style,animation:A?void 0:"none"}})})})});Ls.displayName=Ds;var Is="PopperArrow",zs={top:"bottom",right:"left",bottom:"top",left:"right"},$s=T.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Fs(Is,n),a=zs[o.placedSide];return m.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:m.jsx(_s,{...r,ref:t,style:{...r.style,display:"block"}})})});function Hs(e){return null!==e}$s.displayName=Is;var Vs=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,u]=Bs(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let p="",h="";return"bottom"===l?(p=a?c:`${d}px`,h=-s+"px"):"top"===l?(p=a?c:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",h=a?c:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=a?c:`${f}px`),{data:{x:p,y:h}}}});function Bs(e){const[t,n="center"]=e.split("-");return[t,n]}var Us=Os,Ws=Ts,Ys=Ls,qs=$s,Gs=T.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=T.useState(!1);Go(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Xo.createPortal(m.jsx(oa.div,{...r,ref:t}),i):null});Gs.displayName="Portal";var Ks=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=T.useState(),r=T.useRef(null),o=T.useRef(e),a=T.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return T.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const e=Qs(r.current);a.current="mounted"===s?e:"none"},[s]),Go(()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=Qs(t);if(e)l("MOUNT");else if("none"===i||"none"===t?.display)l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),Go(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=a=>{const i=Qs(r.current).includes(a.animationName);if(a.target===t&&i&&(l("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=Qs(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:T.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):T.Children.only(n),a=Wo(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?T.cloneElement(o,{ref:a}):null};function Qs(e){return e?.animationName||"none"}Ks.displayName="Presence";var Zs="rovingFocusGroup.onEntryFocus",Xs={bubbles:!1,cancelable:!0},Js="RovingFocusGroup",[el,tl,nl]=ia(Js),[rl,ol]=Yo(Js,[nl]),[al,il]=rl(Js),sl=T.forwardRef((e,t)=>m.jsx(el.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(el.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(ll,{...e,ref:t})})}));sl.displayName=Js;var ll=T.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,f=T.useRef(null),p=Wo(t,f),h=la(a),[g,y]=Qo({prop:i,defaultProp:s??null,onChange:l,caller:Js}),[v,b]=T.useState(!1),w=ua(u),x=tl(n),C=T.useRef(!1),[S,k]=T.useState(0);return T.useEffect(()=>{const e=f.current;if(e)return e.addEventListener(Zs,w),()=>e.removeEventListener(Zs,w)},[w]),m.jsx(al,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:g,onItemFocus:T.useCallback(e=>y(e),[y]),onItemShiftTab:T.useCallback(()=>b(!0),[]),onFocusableItemAdd:T.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:T.useCallback(()=>k(e=>e-1),[]),children:m.jsx(oa.div,{tabIndex:v||0===S?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Vo(e.onMouseDown,()=>{C.current=!0}),onFocus:Vo(e.onFocus,e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(Zs,Xs);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter(e=>e.focusable);fl([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),c)}}C.current=!1}),onBlur:Vo(e.onBlur,()=>b(!1))})})}),ul="RovingFocusGroupItem",cl=T.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,l=Da(),u=a||l,c=il(ul,n),d=c.currentTabStopId===u,f=tl(n),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:g}=c;return T.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),m.jsx(el.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:m.jsx(oa.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:Vo(e.onMouseDown,e=>{r?c.onItemFocus(u):e.preventDefault()}),onFocus:Vo(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:Vo(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:dl[r]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=f().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=c.loop?(r=a+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>fl(o))}var n,r}),children:"function"==typeof i?i({isCurrentTabStop:d,hasTabStop:null!=g}):i})})});cl.displayName=ul;var dl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fl(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var pl=sl,hl=cl,ml=new WeakMap,gl=new WeakMap,yl={},vl=0,bl=function(e){return e&&(e.host||bl(e.parentNode))},wl=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=bl(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);yl[n]||(yl[n]=new WeakMap);var a=yl[n],i=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(ml.get(e)||0)+1,u=(a.get(e)||0)+1;ml.set(e,l),a.set(e,u),i.push(e),1===l&&o&&gl.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),vl++,function(){i.forEach(function(e){var t=ml.get(e)-1,o=a.get(e)-1;ml.set(e,t),a.set(e,o),t||(gl.has(e)||e.removeAttribute(r),gl.delete(e)),o||e.removeAttribute(n)}),--vl||(ml=new WeakMap,ml=new WeakMap,gl=new WeakMap,yl={})}},xl=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),wl(r,o,n,"aria-hidden")):function(){return null}},Cl=function(){return Cl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cl.apply(this,arguments)};function Sl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function kl(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var _l="right-scroll-bar-position",El="width-before-scroll-bar";function Rl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Nl="undefined"!=typeof window?T.useLayoutEffect:T.useEffect,jl=new WeakMap;function Pl(e,t){var n,r,o,a=(n=null,r=function(t){return e.forEach(function(e){return Rl(e,t)})},(o=T.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return Nl(function(){var t=jl.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||Rl(e,null)}),r.forEach(function(e){n.has(e)||Rl(e,o)})}jl.set(a,e)},[e]),a}function Ol(e){return e}var Ml=function(e){var t=e.sideCar,n=Sl(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return T.createElement(r,Cl({},n))};Ml.isSideCarExport=!0;var Tl=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Ol);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=Cl({async:!0,ssr:!1},e),t}(),Dl=function(){},Al=T.forwardRef(function(e,t){var n=T.useRef(null),r=T.useState({onScrollCapture:Dl,onWheelCapture:Dl,onTouchMoveCapture:Dl}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,v=void 0===y?"div":y,b=e.gapMode,w=Sl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,C=Pl([n,t]),S=Cl(Cl({},w),o);return T.createElement(T.Fragment,null,c&&T.createElement(x,{sideCar:Tl,removeScrollBar:u,shards:d,noRelative:p,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),i?T.cloneElement(T.Children.only(s),Cl(Cl({},S),{ref:C})):T.createElement(v,Cl({},S,{className:l,ref:C}),s))});Al.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Al.classNames={fullWidth:El,zeroRight:_l};function Fl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Ll=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=Fl())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Il=function(){var e,t=(e=Ll(),function(t,n){T.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},zl={left:0,top:0,right:0,gap:0},$l=function(e){return parseInt(e||"",10)||0},Hl=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return zl;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[$l(n),$l(r),$l(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Vl=Il(),Bl="data-scroll-locked",Ul=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Bl,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(_l," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(El," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(_l," .").concat(_l," {\n right: 0 ").concat(r,";\n }\n \n .").concat(El," .").concat(El," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Bl,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Wl=function(){var e=parseInt(document.body.getAttribute(Bl)||"0",10);return isFinite(e)?e:0},Yl=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;T.useEffect(function(){return document.body.setAttribute(Bl,(Wl()+1).toString()),function(){var e=Wl()-1;e<=0?document.body.removeAttribute(Bl):document.body.setAttribute(Bl,e.toString())}},[]);var a=T.useMemo(function(){return Hl(o)},[o]);return T.createElement(Vl,{styles:Ul(a,!t,o,n?"":"!important")})},ql=!1;if("undefined"!=typeof window)try{var Gl=Object.defineProperty({},"passive",{get:function(){return ql=!0,!0}});window.addEventListener("test",Gl,Gl),window.removeEventListener("test",Gl,Gl)}catch(e){ql=!1}var Kl=!!ql&&{passive:!1},Ql=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Zl=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Xl(e,r)){var o=Jl(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xl=function(e,t){return"v"===e?function(e){return Ql(e,"overflowY")}(t):function(e){return Ql(e,"overflowX")}(t)},Jl=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},eu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tu=function(e){return[e.deltaX,e.deltaY]},nu=function(e){return e&&"current"in e?e.current:e},ru=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},ou=0,au=[];function iu(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var su,lu=(su=function(e){var t=T.useRef([]),n=T.useRef([0,0]),r=T.useRef(),o=T.useState(ou++)[0],a=T.useState(Il)[0],i=T.useRef(e);T.useEffect(function(){i.current=e},[e]),T.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=kl([e.lockRef.current],(e.shards||[]).map(nu),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=T.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=eu(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=Zl(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Zl(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,u=a>0,c=0,d=0;do{if(!i)break;var f=Jl(e,i),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&Xl(e,i)&&(c+=h,d+=p);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(u&&Math.abs(c)<1||!u&&Math.abs(d)<1)&&(l=!0),l}(p,t,e,"h"===p?l:u)},[]),l=T.useCallback(function(e){var n=e;if(au.length&&au[au.length-1]===a){var r="deltaY"in n?tu(n):eu(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(i.current.shards||[]).map(nu).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=T.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:iu(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=T.useCallback(function(e){n.current=eu(e),r.current=void 0},[]),d=T.useCallback(function(t){u(t.type,tu(t),t.target,s(t,e.lockRef.current))},[]),f=T.useCallback(function(t){u(t.type,eu(t),t.target,s(t,e.lockRef.current))},[]);T.useEffect(function(){return au.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Kl),document.addEventListener("touchmove",l,Kl),document.addEventListener("touchstart",c,Kl),function(){au=au.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,Kl),document.removeEventListener("touchmove",l,Kl),document.removeEventListener("touchstart",c,Kl)}},[]);var p=e.removeScrollBar,h=e.inert;return T.createElement(T.Fragment,null,h?T.createElement(a,{styles:ru(o)}):null,p?T.createElement(Yl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Tl.useMedium(su),Ml),uu=T.forwardRef(function(e,t){return T.createElement(Al,Cl({},e,{ref:t,sideCar:lu}))});uu.classNames=Al.classNames;var cu=["Enter"," "],du=["ArrowUp","PageDown","End"],fu=["ArrowDown","PageUp","Home",...du],pu={ltr:[...cu,"ArrowRight"],rtl:[...cu,"ArrowLeft"]},hu={ltr:["ArrowLeft"],rtl:["ArrowRight"]},mu="Menu",[gu,yu,vu]=ia(mu),[bu,wu]=Yo(mu,[vu,Ns,ol]),xu=Ns(),Cu=ol(),[Su,ku]=bu(mu),[_u,Eu]=bu(mu),Ru=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=xu(t),[l,u]=T.useState(null),c=T.useRef(!1),d=ua(a),f=la(o);return T.useEffect(()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),m.jsx(Us,{...s,children:m.jsx(Su,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u,children:m.jsx(_u,{scope:t,onClose:T.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:i,children:r})})})};Ru.displayName=mu;var Nu=T.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=xu(n);return m.jsx(Ws,{...o,...r,ref:t})});Nu.displayName="MenuAnchor";var ju="MenuPortal",[Pu,Ou]=bu(ju,{forceMount:void 0}),Mu=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=ku(ju,t);return m.jsx(Pu,{scope:t,forceMount:n,children:m.jsx(Ks,{present:n||a.open,children:m.jsx(Gs,{asChild:!0,container:o,children:r})})})};Mu.displayName=ju;var Tu="MenuContent",[Du,Au]=bu(Tu),Fu=T.forwardRef((e,t)=>{const n=Ou(Tu,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ku(Tu,e.__scopeMenu),i=Eu(Tu,e.__scopeMenu);return m.jsx(gu.Provider,{scope:e.__scopeMenu,children:m.jsx(Ks,{present:r||a.open,children:m.jsx(gu.Slot,{scope:e.__scopeMenu,children:i.modal?m.jsx(Lu,{...o,ref:t}):m.jsx(Iu,{...o,ref:t})})})})}),Lu=T.forwardRef((e,t)=>{const n=ku(Tu,e.__scopeMenu),r=T.useRef(null),o=Wo(t,r);return T.useEffect(()=>{const e=r.current;if(e)return xl(e)},[]),m.jsx($u,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Vo(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Iu=T.forwardRef((e,t)=>{const n=ku(Tu,e.__scopeMenu);return m.jsx($u,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),zu=Jo("MenuContent.ScrollLock"),$u=T.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...g}=e,y=ku(Tu,n),v=Eu(Tu,n),b=xu(n),w=Cu(n),x=yu(n),[C,S]=T.useState(null),k=T.useRef(null),_=Wo(t,k,y.onContentChange),E=T.useRef(0),R=T.useRef(""),N=T.useRef(0),j=T.useRef(null),P=T.useRef("right"),O=T.useRef(0),M=h?uu:T.Fragment,D=h?{as:zu,allowPinchZoom:!0}:void 0,A=e=>{const t=R.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,a=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const u=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(n.map(e=>e.textValue),t,o),i=n.find(e=>e.textValue===a)?.ref.current;!function e(t){R.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())};T.useEffect(()=>()=>window.clearTimeout(E.current),[]),wa();const F=T.useCallback(e=>P.current===j.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e],s=t[a],l=i.x,u=i.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(o=!o)}return o}(n,t)}(e,j.current?.area),[]);return m.jsx(Du,{scope:n,searchRef:R,onItemEnter:T.useCallback(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:T.useCallback(e=>{F(e)||(k.current?.focus(),S(null))},[F]),onTriggerLeave:T.useCallback(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:N,onPointerGraceIntentChange:T.useCallback(e=>{j.current=e},[]),children:m.jsx(M,{...D,children:m.jsx(_a,{asChild:!0,trapped:o,onMountAutoFocus:Vo(a,e=>{e.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:m.jsx(ma,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:m.jsx(pl,{asChild:!0,...w,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:S,onEntryFocus:Vo(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(Ys,{role:"menu","aria-orientation":"vertical","data-state":fc(y.open),"data-radix-menu-content":"",dir:v.dir,...b,...g,ref:_,style:{outline:"none",...g.style},onKeyDown:Vo(g.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&A(e.key));const o=k.current;if(e.target!==o)return;if(!fu.includes(e.key))return;e.preventDefault();const a=x().filter(e=>!e.disabled).map(e=>e.ref.current);du.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)}),onBlur:Vo(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),R.current="")}),onPointerMove:Vo(e.onPointerMove,mc(e=>{const t=e.target,n=O.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>O.current?"right":"left";P.current=t,O.current=e.clientX}}))})})})})})})});Fu.displayName=Tu;var Hu=T.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(oa.div,{role:"group",...r,ref:t})});Hu.displayName="MenuGroup";var Vu=T.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(oa.div,{...r,ref:t})});Vu.displayName="MenuLabel";var Bu="MenuItem",Uu="menu.itemSelect",Wu=T.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=T.useRef(null),i=Eu(Bu,e.__scopeMenu),s=Au(Bu,e.__scopeMenu),l=Wo(t,a),u=T.useRef(!1);return m.jsx(Yu,{...o,ref:l,disabled:n,onClick:Vo(e.onClick,()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(Uu,{bubbles:!0,cancelable:!0});e.addEventListener(Uu,e=>r?.(e),{once:!0}),aa(e,t),t.defaultPrevented?u.current=!1:i.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:Vo(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:Vo(e.onKeyDown,e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||cu.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Wu.displayName=Bu;var Yu=T.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Au(Bu,n),s=Cu(n),l=T.useRef(null),u=Wo(t,l),[c,d]=T.useState(!1),[f,p]=T.useState("");return T.useEffect(()=>{const e=l.current;e&&p((e.textContent??"").trim())},[a.children]),m.jsx(gu.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:m.jsx(hl,{asChild:!0,...s,focusable:!r,children:m.jsx(oa.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:Vo(e.onPointerMove,mc(e=>{if(r)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:Vo(e.onPointerLeave,mc(e=>i.onItemLeave(e))),onFocus:Vo(e.onFocus,()=>d(!0)),onBlur:Vo(e.onBlur,()=>d(!1))})})})}),qu=T.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(tc,{scope:e.__scopeMenu,checked:n,children:m.jsx(Wu,{role:"menuitemcheckbox","aria-checked":pc(n)?"mixed":n,...o,ref:t,"data-state":hc(n),onSelect:Vo(o.onSelect,()=>r?.(!!pc(n)||!n),{checkForDefaultPrevented:!1})})})});qu.displayName="MenuCheckboxItem";var Gu="MenuRadioGroup",[Ku,Qu]=bu(Gu,{value:void 0,onValueChange:()=>{}}),Zu=T.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=ua(r);return m.jsx(Ku,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(Hu,{...o,ref:t})})});Zu.displayName=Gu;var Xu="MenuRadioItem",Ju=T.forwardRef((e,t)=>{const{value:n,...r}=e,o=Qu(Xu,e.__scopeMenu),a=n===o.value;return m.jsx(tc,{scope:e.__scopeMenu,checked:a,children:m.jsx(Wu,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":hc(a),onSelect:Vo(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ju.displayName=Xu;var ec="MenuItemIndicator",[tc,nc]=bu(ec,{checked:!1}),rc=T.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=nc(ec,n);return m.jsx(Ks,{present:r||pc(a.checked)||!0===a.checked,children:m.jsx(oa.span,{...o,ref:t,"data-state":hc(a.checked)})})});rc.displayName=ec;var oc=T.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(oa.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});oc.displayName="MenuSeparator";var ac=T.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=xu(n);return m.jsx(qs,{...o,...r,ref:t})});ac.displayName="MenuArrow";var[ic,sc]=bu("MenuSub"),lc="MenuSubTrigger",uc=T.forwardRef((e,t)=>{const n=ku(lc,e.__scopeMenu),r=Eu(lc,e.__scopeMenu),o=sc(lc,e.__scopeMenu),a=Au(lc,e.__scopeMenu),i=T.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},c=T.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return T.useEffect(()=>c,[c]),T.useEffect(()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),m.jsx(Nu,{asChild:!0,...u,children:m.jsx(Yu,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":fc(n.open),...e,ref:Uo(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Vo(e.onPointerMove,mc(t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||i.current||(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:Vo(e.onPointerLeave,mc(e=>{c();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,i=o?-5:5,l=t[o?"left":"right"],u=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:l,y:t.top},{x:u,y:t.top},{x:u,y:t.bottom},{x:l,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Vo(e.onKeyDown,t=>{const o=""!==a.searchRef.current;e.disabled||o&&" "===t.key||pu[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});uc.displayName=lc;var cc="MenuSubContent",dc=T.forwardRef((e,t)=>{const n=Ou(Tu,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ku(Tu,e.__scopeMenu),i=Eu(Tu,e.__scopeMenu),s=sc(cc,e.__scopeMenu),l=T.useRef(null),u=Wo(t,l);return m.jsx(gu.Provider,{scope:e.__scopeMenu,children:m.jsx(Ks,{present:r||a.open,children:m.jsx(gu.Slot,{scope:e.__scopeMenu,children:m.jsx($u,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Vo(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Vo(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:Vo(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=hu[i.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});function fc(e){return e?"open":"closed"}function pc(e){return"indeterminate"===e}function hc(e){return pc(e)?"indeterminate":e?"checked":"unchecked"}function mc(e){return t=>"mouse"===t.pointerType?e(t):void 0}dc.displayName=cc;var gc=Ru,yc=Nu,vc=Mu,bc=Fu,wc=Hu,xc=Vu,Cc=Wu,Sc=qu,kc=Zu,_c=Ju,Ec=rc,Rc=oc,Nc=ac,jc=uc,Pc=dc,Oc="DropdownMenu",[Mc,Tc]=Yo(Oc,[wu]),Dc=wu(),[Ac,Fc]=Mc(Oc),Lc=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=Dc(t),u=T.useRef(null),[c,d]=Qo({prop:o,defaultProp:a??!1,onChange:i,caller:Oc});return m.jsx(Ac,{scope:t,triggerId:Da(),triggerRef:u,contentId:Da(),open:c,onOpenChange:d,onOpenToggle:T.useCallback(()=>d(e=>!e),[d]),modal:s,children:m.jsx(gc,{...l,open:c,onOpenChange:d,dir:r,modal:s,children:n})})};Lc.displayName=Oc;var Ic="DropdownMenuTrigger",zc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Fc(Ic,n),i=Dc(n);return m.jsx(yc,{asChild:!0,...i,children:m.jsx(oa.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Uo(t,a.triggerRef),onPointerDown:Vo(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:Vo(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});zc.displayName=Ic;var $c=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Dc(t);return m.jsx(vc,{...r,...n})};$c.displayName="DropdownMenuPortal";var Hc="DropdownMenuContent",Vc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Fc(Hc,n),a=Dc(n),i=T.useRef(!1);return m.jsx(bc,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:Vo(e.onCloseAutoFocus,e=>{i.current||o.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:Vo(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Vc.displayName=Hc;T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Dc(n);return m.jsx(wc,{...o,...r,ref:t})}).displayName="DropdownMenuGroup";var Bc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Dc(n);return m.jsx(xc,{...o,...r,ref:t})});Bc.displayName="DropdownMenuLabel";var Uc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Dc(n);return m.jsx(Cc,{...o,...r,ref:t})});Uc.displayName="DropdownMenuItem";var Wc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Dc(n);return m.jsx(Sc,{...o,...r,ref:t})});Wc.displayName="DropdownMenuCheckboxItem";T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Dc(n);return m.jsx(kc,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup";var Yc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Dc(n);return m.jsx(_c,{...o,...r,ref:t})});Yc.displayName="DropdownMenuRadioItem";var qc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Dc(n);return m.jsx(Ec,{...o,...r,ref:t})});qc.displayName="DropdownMenuItemIndicator";var Gc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Dc(n);return m.jsx(Rc,{...o,...r,ref:t})});Gc.displayName="DropdownMenuSeparator";T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Dc(n);return m.jsx(Nc,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var Kc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Dc(n);return m.jsx(jc,{...o,...r,ref:t})});Kc.displayName="DropdownMenuSubTrigger";var Qc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Dc(n);return m.jsx(Pc,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Qc.displayName="DropdownMenuSubContent";var Zc=Lc,Xc=zc,Jc=$c,ed=Vc,td=Bc,nd=Uc,rd=Wc,od=Yc,ad=qc,id=Gc,sd=Kc,ld=Qc;
32
+ function _r(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?T.createElement(e,t):e:null;var n}function Er(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Er(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Rr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Er(e))&&(r&&(r+=" "),r+=t);return r}const Nr=e=>{const t=Mr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),jr(n,t)||Or(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},jr=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?jr(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},Pr=/^\[(.+)\]$/,Or=e=>{if(Pr.test(e)){const t=Pr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Mr=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)Tr(n[e],r,e,t);return r},Tr=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Dr(t,e)).classGroupId=n)}if("function"==typeof e)return Ar(e)?void Tr(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Tr(o,Dr(t,e),n,r)})})},Dr=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Ar=e=>e.isThemeGetter,Fr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Lr=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,a=0;for(let i=0;i<e.length;i++){let s=e[i];if(0===r&&0===o){if(":"===s){t.push(e.slice(a,i)),a=i+1;continue}if("/"===s){n=i;continue}}"["===s?r++:"]"===s?r--:"("===s?o++:")"===s&&o--}const i=0===t.length?e:e.substring(a),s=Ir(i);return{modifiers:t,hasImportantModifier:s!==i,baseClassName:s,maybePostfixModifierPosition:n&&n>a?n-a:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},Ir=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,zr=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},$r=/\s+/;function Hr(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Vr(e))&&(r&&(r+=" "),r+=t);return r}const Vr=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Vr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Br(e,...t){let n,r,o,a=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Fr(e.cacheSize),parseClassName:Lr(e),sortModifiers:zr(e),...Nr(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split($r);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let h=!!p,m=r(h?f.substring(0,p):f);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(f),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=a(c).join(":"),y=d?g+"!":g,v=y+m;if(i.includes(v))continue;i.push(v);const b=o(m,h);for(let e=0;e<b.length;++e){const t=b[e];i.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,a),a}return function(){return a(Hr.apply(null,arguments))}}const Ur=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Wr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qr=/^\d+\/\d+$/,Gr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jr=e=>qr.test(e),eo=e=>!!e&&!Number.isNaN(Number(e)),to=e=>!!e&&Number.isInteger(Number(e)),no=e=>e.endsWith("%")&&eo(e.slice(0,-1)),ro=e=>Gr.test(e),oo=()=>!0,ao=e=>Kr.test(e)&&!Qr.test(e),io=()=>!1,so=e=>Zr.test(e),lo=e=>Xr.test(e),uo=e=>!fo(e)&&!vo(e),co=e=>_o(e,jo,io),fo=e=>Wr.test(e),po=e=>_o(e,Po,ao),ho=e=>_o(e,Oo,eo),mo=e=>_o(e,Ro,io),go=e=>_o(e,No,lo),yo=e=>_o(e,To,so),vo=e=>Yr.test(e),bo=e=>Eo(e,Po),wo=e=>Eo(e,Mo),xo=e=>Eo(e,Ro),Co=e=>Eo(e,jo),So=e=>Eo(e,No),ko=e=>Eo(e,To,!0),_o=(e,t,n)=>{const r=Wr.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},Eo=(e,t,n=!1)=>{const r=Yr.exec(e);return!!r&&(r[1]?t(r[1]):n)},Ro=e=>"position"===e||"percentage"===e,No=e=>"image"===e||"url"===e,jo=e=>"length"===e||"size"===e||"bg-size"===e,Po=e=>"length"===e,Oo=e=>"number"===e,Mo=e=>"family-name"===e,To=e=>"shadow"===e,Do=Br(()=>{const e=Ur("color"),t=Ur("font"),n=Ur("text"),r=Ur("font-weight"),o=Ur("tracking"),a=Ur("leading"),i=Ur("breakpoint"),s=Ur("container"),l=Ur("spacing"),u=Ur("radius"),c=Ur("shadow"),d=Ur("inset-shadow"),f=Ur("text-shadow"),p=Ur("drop-shadow"),h=Ur("blur"),m=Ur("perspective"),g=Ur("aspect"),y=Ur("ease"),v=Ur("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",vo,fo],w=()=>[vo,fo,l],x=()=>[Jr,"full","auto",...w()],C=()=>[to,"none","subgrid",vo,fo],S=()=>["auto",{span:["full",to,vo,fo]},to,vo,fo],k=()=>[to,"auto",vo,fo],_=()=>["auto","min","max","fr",vo,fo],E=()=>["auto",...w()],R=()=>[Jr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],N=()=>[e,vo,fo],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",xo,mo,{position:[vo,fo]}],P=()=>["auto","cover","contain",Co,co,{size:[vo,fo]}],O=()=>[no,bo,po],M=()=>["","none","full",u,vo,fo],T=()=>["",eo,bo,po],D=()=>[eo,no,xo,mo],A=()=>["","none",h,vo,fo],F=()=>["none",eo,vo,fo],L=()=>["none",eo,vo,fo],I=()=>[eo,vo,fo],z=()=>[Jr,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ro],breakpoint:[ro],color:[oo],container:[ro],"drop-shadow":[ro],ease:["in","out","in-out"],font:[uo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ro],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ro],shadow:[ro],spacing:["px",eo],text:[ro],"text-shadow":[ro],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jr,fo,vo,g]}],container:["container"],columns:[{columns:[eo,fo,vo,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[to,"auto",vo,fo]}],basis:[{basis:[Jr,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[eo,Jr,"auto","initial","none",fo]}],grow:[{grow:["",eo,vo,fo]}],shrink:[{shrink:["",eo,vo,fo]}],order:[{order:[to,"first","last","none",vo,fo]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:R()}],w:[{w:[s,"screen",...R()]}],"min-w":[{"min-w":[s,"screen","none",...R()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...R()]}],h:[{h:["screen","lh",...R()]}],"min-h":[{"min-h":["screen","lh","none",...R()]}],"max-h":[{"max-h":["screen","lh",...R()]}],"font-size":[{text:["base",n,bo,po]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,vo,ho]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",no,fo]}],"font-family":[{font:[wo,fo,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,vo,fo]}],"line-clamp":[{"line-clamp":[eo,"none",vo,ho]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",vo,fo]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",vo,fo]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[eo,"from-font","auto",vo,po]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[eo,"auto",vo,fo]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",vo,fo]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",vo,fo]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},to,vo,fo],radial:["",vo,fo],conic:[to,vo,fo]},So,go]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:T()}],"border-w-x":[{"border-x":T()}],"border-w-y":[{"border-y":T()}],"border-w-s":[{"border-s":T()}],"border-w-e":[{"border-e":T()}],"border-w-t":[{"border-t":T()}],"border-w-r":[{"border-r":T()}],"border-w-b":[{"border-b":T()}],"border-w-l":[{"border-l":T()}],"divide-x":[{"divide-x":T()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":T()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[eo,vo,fo]}],"outline-w":[{outline:["",eo,bo,po]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",c,ko,yo]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,ko,yo]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[eo,po]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":T()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",f,ko,yo]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[eo,vo,fo]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[eo]}],"mask-image-linear-from-pos":[{"mask-linear-from":D()}],"mask-image-linear-to-pos":[{"mask-linear-to":D()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":D()}],"mask-image-t-to-pos":[{"mask-t-to":D()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":D()}],"mask-image-r-to-pos":[{"mask-r-to":D()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":D()}],"mask-image-b-to-pos":[{"mask-b-to":D()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":D()}],"mask-image-l-to-pos":[{"mask-l-to":D()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":D()}],"mask-image-x-to-pos":[{"mask-x-to":D()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":D()}],"mask-image-y-to-pos":[{"mask-y-to":D()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[vo,fo]}],"mask-image-radial-from-pos":[{"mask-radial-from":D()}],"mask-image-radial-to-pos":[{"mask-radial-to":D()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[eo]}],"mask-image-conic-from-pos":[{"mask-conic-from":D()}],"mask-image-conic-to-pos":[{"mask-conic-to":D()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",vo,fo]}],filter:[{filter:["","none",vo,fo]}],blur:[{blur:A()}],brightness:[{brightness:[eo,vo,fo]}],contrast:[{contrast:[eo,vo,fo]}],"drop-shadow":[{"drop-shadow":["","none",p,ko,yo]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",eo,vo,fo]}],"hue-rotate":[{"hue-rotate":[eo,vo,fo]}],invert:[{invert:["",eo,vo,fo]}],saturate:[{saturate:[eo,vo,fo]}],sepia:[{sepia:["",eo,vo,fo]}],"backdrop-filter":[{"backdrop-filter":["","none",vo,fo]}],"backdrop-blur":[{"backdrop-blur":A()}],"backdrop-brightness":[{"backdrop-brightness":[eo,vo,fo]}],"backdrop-contrast":[{"backdrop-contrast":[eo,vo,fo]}],"backdrop-grayscale":[{"backdrop-grayscale":["",eo,vo,fo]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[eo,vo,fo]}],"backdrop-invert":[{"backdrop-invert":["",eo,vo,fo]}],"backdrop-opacity":[{"backdrop-opacity":[eo,vo,fo]}],"backdrop-saturate":[{"backdrop-saturate":[eo,vo,fo]}],"backdrop-sepia":[{"backdrop-sepia":["",eo,vo,fo]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",vo,fo]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[eo,"initial",vo,fo]}],ease:[{ease:["linear","initial",y,vo,fo]}],delay:[{delay:[eo,vo,fo]}],animate:[{animate:["none",v,vo,fo]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,vo,fo]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:F()}],"rotate-x":[{"rotate-x":F()}],"rotate-y":[{"rotate-y":F()}],"rotate-z":[{"rotate-z":F()}],scale:[{scale:L()}],"scale-x":[{"scale-x":L()}],"scale-y":[{"scale-y":L()}],"scale-z":[{"scale-z":L()}],"scale-3d":["scale-3d"],skew:[{skew:I()}],"skew-x":[{"skew-x":I()}],"skew-y":[{"skew-y":I()}],transform:[{transform:[vo,fo,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",vo,fo]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",vo,fo]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[eo,bo,po,ho]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ao(...e){return Do(Rr(e))}const Fo=T.forwardRef(({className:e,...t},n)=>m.jsx("div",{className:"relative w-full overflow-auto",children:m.jsx("table",{ref:n,className:Ao("w-full caption-bottom text-sm",e),...t})}));Fo.displayName="Table";const Lo=T.forwardRef(({className:e,...t},n)=>m.jsx("thead",{ref:n,className:Ao("[&_tr]:border-b",e),...t}));Lo.displayName="TableHeader";const Io=T.forwardRef(({className:e,...t},n)=>m.jsx("tbody",{ref:n,className:Ao("[&_tr:last-child]:border-0",e),...t}));Io.displayName="TableBody";T.forwardRef(({className:e,...t},n)=>m.jsx("tfoot",{ref:n,className:Ao("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})).displayName="TableFooter";const zo=T.forwardRef(({className:e,...t},n)=>m.jsx("tr",{ref:n,className:Ao("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));zo.displayName="TableRow";const $o=T.forwardRef(({className:e,...t},n)=>m.jsx("th",{ref:n,className:Ao("h-12 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));$o.displayName="TableHead";const Ho=T.forwardRef(({className:e,...t},n)=>m.jsx("td",{ref:n,className:Ao("p-2 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Ho.displayName="TableCell";function Vo({className:e,...t}){return m.jsx("div",{className:Ao("animate-pulse rounded-md bg-neutral-100 dark:bg-neutral-800",e),...t})}function Bo(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Uo(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Wo(...e){return t=>{let n=!1;const r=e.map(e=>{const r=Uo(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Uo(e[t],null)}}}}function Yo(...e){return T.useCallback(Wo(...e),e)}function qo(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>T.createContext(e));return function(n){const r=n?.[e]||t;return T.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=T.createContext(r),a=n.length;n=[...n,r];const i=t=>{const{scope:n,children:r,...i}=t,s=n?.[e]?.[a]||o,l=T.useMemo(()=>i,Object.values(i));return m.jsx(s.Provider,{value:l,children:r})};return i.displayName=t+"Provider",[i,function(n,i){const s=i?.[e]?.[a]||o,l=T.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Go(r,...t)]}function Go(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}T.forwardRef(({className:e,...t},n)=>m.jsx("caption",{ref:n,className:Ao("mt-4 text-sm text-muted-foreground",e),...t})).displayName="TableCaption";var Ko=globalThis?.document?T.useLayoutEffect:()=>{},Qo=A[" useInsertionEffect ".trim().toString()]||Ko;function Zo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=function({defaultProp:e,onChange:t}){const[n,r]=T.useState(e),o=T.useRef(n),a=T.useRef(t);return Qo(()=>{a.current=t},[t]),T.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o;{const t=T.useRef(void 0!==e);T.useEffect(()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}const u=T.useCallback(t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[s,e,a,i]);return[l,u]}var Xo=N(),Jo=n(Xo);function ea(e){const t=na(e),n=T.forwardRef((e,n)=>{const{children:r,...o}=e,a=T.Children.toArray(r),i=a.find(oa);if(i){const e=i.props.children,r=a.map(t=>t===i?T.Children.count(e)>1?T.Children.only(null):T.isValidElement(e)?e.props.children:null:t);return m.jsx(t,{...o,ref:n,children:T.isValidElement(e)?T.cloneElement(e,void 0,r):null})}return m.jsx(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var ta=ea("Slot");function na(e){const t=T.forwardRef((e,t)=>{const{children:n,...r}=e;if(T.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==T.Fragment&&(o.ref=t?Wo(t,e):e),T.cloneElement(n,o)}return T.Children.count(n)>1?T.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ra=Symbol("radix.slottable");function oa(e){return T.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ra}var aa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=ea(`Primitive.${t}`),r=T.forwardRef((e,r)=>{const{asChild:o,...a}=e,i=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),m.jsx(i,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ia(e,t){e&&Xo.flushSync(()=>e.dispatchEvent(t))}function sa(e){const t=e+"CollectionProvider",[n,r]=qo(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=D.useRef(null),a=D.useRef(new Map).current;return m.jsx(o,{scope:t,itemMap:a,collectionRef:r,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=ea(s),u=D.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=Yo(t,a(s,n).collectionRef);return m.jsx(l,{ref:o,children:r})});u.displayName=s;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=ea(c),p=D.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,i=D.useRef(null),s=Yo(t,i),l=a(c,n);return D.useEffect(()=>(l.itemMap.set(i,{ref:i,...o}),()=>{l.itemMap.delete(i)})),m.jsx(f,{[d]:"",ref:s,children:r})});return p.displayName=c,[{Provider:i,Slot:u,ItemSlot:p},function(t){const n=a(e+"CollectionConsumer",t),r=D.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`)),r=Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return r},[n.collectionRef,n.itemMap]);return r},r]}var la=T.createContext(void 0);function ua(e){const t=T.useContext(la);return e||t||"ltr"}function ca(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...e)=>t.current?.(...e),[])}var da,fa="dismissableLayer.update",pa="dismissableLayer.pointerDownOutside",ha="dismissableLayer.focusOutside",ma=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ga=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,u=T.useContext(ma),[c,d]=T.useState(null),f=c?.ownerDocument??globalThis?.document,[,p]=T.useState({}),h=Yo(t,e=>d(e)),g=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),b=c?g.indexOf(c):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=b>=v,C=function(e,t=globalThis?.document){const n=ca(e),r=T.useRef(!1),o=T.useRef(()=>{});return T.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){ba(pa,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...u.branches].some(e=>e.contains(t));x&&!n&&(o?.(e),i?.(e),e.defaultPrevented||s?.())},f),S=function(e,t=globalThis?.document){const n=ca(e),r=T.useRef(!1);return T.useEffect(()=>{const e=e=>{if(e.target&&!r.current){ba(ha,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),i?.(e),e.defaultPrevented||s?.())},f);return function(e,t=globalThis?.document){const n=ca(e);T.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{b===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),T.useEffect(()=>{if(c)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(da=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),va(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=da)}},[c,f,n,u]),T.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),va())},[c,u]),T.useEffect(()=>{const e=()=>p({});return document.addEventListener(fa,e),()=>document.removeEventListener(fa,e)},[]),m.jsx(aa.div,{...l,ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Bo(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Bo(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Bo(e.onPointerDownCapture,C.onPointerDownCapture)})});ga.displayName="DismissableLayer";var ya=T.forwardRef((e,t)=>{const n=T.useContext(ma),r=T.useRef(null),o=Yo(t,r);return T.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),m.jsx(aa.div,{...e,ref:o})});function va(){const e=new CustomEvent(fa);document.dispatchEvent(e)}function ba(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ia(o,a):o.dispatchEvent(a)}ya.displayName="DismissableLayerBranch";var wa=0;function xa(){T.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ca()),document.body.insertAdjacentElement("beforeend",e[1]??Ca()),wa++,()=>{1===wa&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),wa--}},[])}function Ca(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Sa="focusScope.autoFocusOnMount",ka="focusScope.autoFocusOnUnmount",_a={bubbles:!1,cancelable:!0},Ea=T.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=T.useState(null),u=ca(o),c=ca(a),d=T.useRef(null),f=Yo(t,e=>l(e)),p=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:Pa(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||Pa(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Pa(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,p.paused]),T.useEffect(()=>{if(s){Oa.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(Sa,_a);s.addEventListener(Sa,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pa(r,{select:t}),document.activeElement!==n)return}((e=Ra(s),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Pa(s))}return()=>{s.removeEventListener(Sa,u),setTimeout(()=>{const e=new CustomEvent(ka,_a);s.addEventListener(ka,c),s.dispatchEvent(e),e.defaultPrevented||Pa(t??document.body,{select:!0}),s.removeEventListener(ka,c),Oa.remove(p)},0)}}var e},[s,u,c,p]);const h=T.useCallback(e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=Ra(e),n=Na(t,e),r=Na(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&Pa(a,{select:!0})):(e.preventDefault(),n&&Pa(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return m.jsx(aa.div,{tabIndex:-1,...i,ref:f,onKeyDown:h})});function Ra(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Na(e,t){for(const n of e)if(!ja(n,{upTo:t}))return n}function ja(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Pa(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Ea.displayName="FocusScope";var Oa=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ma(e,t),e.unshift(t)},remove(t){e=Ma(e,t),e[0]?.resume()}}}();function Ma(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Ta=A[" useId ".trim().toString()]||(()=>{}),Da=0;function Aa(e){const[t,n]=T.useState(Ta());return Ko(()=>{n(e=>e??String(Da++))},[e]),t?`radix-${t}`:""}const Fa=["top","right","bottom","left"],La=Math.min,Ia=Math.max,za=Math.round,$a=Math.floor,Ha=e=>({x:e,y:e}),Va={left:"right",right:"left",bottom:"top",top:"bottom"},Ba={start:"end",end:"start"};function Ua(e,t,n){return Ia(e,La(t,n))}function Wa(e,t){return"function"==typeof e?e(t):e}function Ya(e){return e.split("-")[0]}function qa(e){return e.split("-")[1]}function Ga(e){return"x"===e?"y":"x"}function Ka(e){return"y"===e?"height":"width"}const Qa=new Set(["top","bottom"]);function Za(e){return Qa.has(Ya(e))?"y":"x"}function Xa(e){return Ga(Za(e))}function Ja(e){return e.replace(/start|end/g,e=>Ba[e])}const ei=["left","right"],ti=["right","left"],ni=["top","bottom"],ri=["bottom","top"];function oi(e,t,n,r){const o=qa(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?ti:ei:t?ei:ti;case"left":case"right":return t?ni:ri;default:return[]}}(Ya(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(Ja)))),a}function ai(e){return e.replace(/left|right|bottom|top/g,e=>Va[e])}function ii(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function si(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function li(e,t,n){let{reference:r,floating:o}=e;const a=Za(t),i=Xa(t),s=Ka(i),l=Ya(t),u="y"===a,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(qa(t)){case"start":p[i]-=f*(n&&u?-1:1);break;case"end":p[i]+=f*(n&&u?-1:1)}return p}async function ui(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Wa(t,e),h=ii(p),m=s[f?"floating"===d?"reference":"floating":d],g=si(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=si(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}function ci(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function di(e){return Fa.some(t=>e[t]>=0)}const fi=new Set(["left","top"]);function pi(){return"undefined"!=typeof window}function hi(e){return yi(e)?(e.nodeName||"").toLowerCase():"#document"}function mi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function gi(e){var t;return null==(t=(yi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function yi(e){return!!pi()&&(e instanceof Node||e instanceof mi(e).Node)}function vi(e){return!!pi()&&(e instanceof Element||e instanceof mi(e).Element)}function bi(e){return!!pi()&&(e instanceof HTMLElement||e instanceof mi(e).HTMLElement)}function wi(e){return!(!pi()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof mi(e).ShadowRoot)}const xi=new Set(["inline","contents"]);function Ci(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Di(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!xi.has(o)}const Si=new Set(["table","td","th"]);function ki(e){return Si.has(hi(e))}const _i=[":popover-open",":modal"];function Ei(e){return _i.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Ri=["transform","translate","scale","rotate","perspective"],Ni=["transform","translate","scale","rotate","perspective","filter"],ji=["paint","layout","strict","content"];function Pi(e){const t=Oi(),n=vi(e)?Di(e):e;return Ri.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Ni.some(e=>(n.willChange||"").includes(e))||ji.some(e=>(n.contain||"").includes(e))}function Oi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Mi=new Set(["html","body","#document"]);function Ti(e){return Mi.has(hi(e))}function Di(e){return mi(e).getComputedStyle(e)}function Ai(e){return vi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fi(e){if("html"===hi(e))return e;const t=e.assignedSlot||e.parentNode||wi(e)&&e.host||gi(e);return wi(t)?t.host:t}function Li(e){const t=Fi(e);return Ti(t)?e.ownerDocument?e.ownerDocument.body:e.body:bi(t)&&Ci(t)?t:Li(t)}function Ii(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Li(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=mi(o);if(a){const e=zi(i);return t.concat(i,i.visualViewport||[],Ci(o)?o:[],e&&n?Ii(e):[])}return t.concat(o,Ii(o,[],n))}function zi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $i(e){const t=Di(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bi(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=za(n)!==a||za(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Hi(e){return vi(e)?e:e.contextElement}function Vi(e){const t=Hi(e);if(!bi(t))return Ha(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=$i(t);let i=(a?za(n.width):n.width)/r,s=(a?za(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Bi=Ha(0);function Ui(e){const t=mi(e);return Oi()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Bi}function Wi(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Hi(e);let i=Ha(1);t&&(r?vi(r)&&(i=Vi(r)):i=Vi(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==mi(e))&&t}(a,n,r)?Ui(a):Ha(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=mi(a),t=r&&vi(r)?mi(r):r;let n=e,o=zi(n);for(;o&&r&&t!==n;){const e=Vi(o),t=o.getBoundingClientRect(),r=Di(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=a,u+=i,n=mi(o),o=zi(n)}}return si({width:c,height:d,x:l,y:u})}function Yi(e,t){const n=Ai(e).scrollLeft;return t?t.left+n:Wi(gi(e)).left+n}function qi(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Yi(e,r)),y:r.top+t.scrollTop}}const Gi=new Set(["absolute","fixed"]);function Ki(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=mi(e),r=gi(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=Oi();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=gi(e),n=Ai(e),r=e.ownerDocument.body,o=Ia(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ia(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Yi(e);const s=-n.scrollTop;return"rtl"===Di(r).direction&&(i+=Ia(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(gi(e));else if(vi(t))r=function(e,t){const n=Wi(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=bi(e)?Vi(e):Ha(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=Ui(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return si(r)}function Qi(e,t){const n=Fi(e);return!(n===t||!vi(n)||Ti(n))&&("fixed"===Di(n).position||Qi(n,t))}function Zi(e,t,n){const r=bi(t),o=gi(t),a="fixed"===n,i=Wi(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Ha(0);function u(){l.x=Yi(o)}if(r||!r&&!a)if(("body"!==hi(t)||Ci(o))&&(s=Ai(t)),r){const e=Wi(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&u();a&&!r&&o&&u();const c=!o||r||a?Ha(0):qi(o,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function Xi(e){return"static"===Di(e).position}function Ji(e,t){if(!bi(e)||"fixed"===Di(e).position)return null;if(t)return t(e);let n=e.offsetParent;return gi(e)===n&&(n=n.ownerDocument.body),n}function es(e,t){const n=mi(e);if(Ei(e))return n;if(!bi(e)){let t=Fi(e);for(;t&&!Ti(t);){if(vi(t)&&!Xi(t))return t;t=Fi(t)}return n}let r=Ji(e,t);for(;r&&ki(r)&&Xi(r);)r=Ji(r,t);return r&&Ti(r)&&Xi(r)&&!Pi(r)?n:r||function(e){let t=Fi(e);for(;bi(t)&&!Ti(t);){if(Pi(t))return t;if(Ei(t))return null;t=Fi(t)}return null}(e)||n}const ts={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=gi(r),s=!!t&&Ei(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Ha(1);const c=Ha(0),d=bi(r);if((d||!d&&!a)&&(("body"!==hi(r)||Ci(i))&&(l=Ai(r)),bi(r))){const e=Wi(r);u=Vi(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const f=!i||d||a?Ha(0):qi(i,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:gi,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?Ei(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ii(e,[],!1).filter(e=>vi(e)&&"body"!==hi(e)),o=null;const a="fixed"===Di(e).position;let i=a?Fi(e):e;for(;vi(i)&&!Ti(i);){const t=Di(i),n=Pi(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&Gi.has(o.position)||Ci(i)&&!n&&Qi(e,i))?r=r.filter(e=>e!==i):o=t,i=Fi(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((e,n)=>{const r=Ki(t,n,o);return e.top=Ia(r.top,e.top),e.right=La(r.right,e.right),e.bottom=La(r.bottom,e.bottom),e.left=Ia(r.left,e.left),e},Ki(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:es,getElementRects:async function(e){const t=this.getOffsetParent||es,n=this.getDimensions,r=await n(e.floating);return{reference:Zi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=$i(e);return{width:t,height:n}},getScale:Vi,isElement:vi,isRTL:function(e){return"rtl"===Di(e).direction}};function ns(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rs(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Hi(e),c=o||a?[...u?Ii(u):[],...Ii(t)]:[];c.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=u&&s?function(e,t){let n,r=null;const o=gi(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(s||t(),!f||!p)return;const h={rootMargin:-$a(d)+"px "+-$a(o.clientWidth-(c+f))+"px "+-$a(o.clientHeight-(d+p))+"px "+-$a(c)+"px",threshold:Ia(0,La(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||ns(u,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),a}(u,n):null;let f,p=-1,h=null;i&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m=l?Wi(e):null;return l&&function t(){const r=Wi(e);m&&!ns(m,r)&&n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const os=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=Ya(n),s=qa(n),l="y"===Za(n),u=fi.has(i)?-1:1,c=a&&l?-1:1,d=Wa(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},as=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Wa(e,t),u={x:n,y:r},c=await ui(t,l),d=Za(Ya(o)),f=Ga(d);let p=u[f],h=u[d];if(a){const e="y"===f?"bottom":"right";p=Ua(p+c["y"===f?"top":"left"],p,p-c[e])}if(i){const e="y"===d?"bottom":"right";h=Ua(h+c["y"===d?"top":"left"],h,h-c[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:a,[d]:i}}}}}},is=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Wa(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=Ya(o),v=Za(s),b=Ya(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(u.floating)),x=f||(b||!m?[ai(s)]:function(e){const t=ai(e);return[Ja(e),t,Ja(t)]}(s)),C="none"!==h;!f&&C&&x.push(...oi(s,m,h,w));const S=[s,...x],k=await ui(t,g),_=[];let E=(null==(r=a.flip)?void 0:r.overflows)||[];if(c&&_.push(k[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=qa(e),o=Xa(e),a=Ka(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=ai(i)),[i,ai(i)]}(o,i,w);_.push(k[e[0]],k[e[1]])}if(E=[...E,{placement:o,overflows:_}],!_.every(e=>e<=0)){var R,N;const e=((null==(R=a.flip)?void 0:R.index)||0)+1,t=S[e];if(t){if(!("alignment"===d&&v!==Za(t))||E.every(e=>Za(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=null==(N=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:N.placement;if(!n)switch(p){case"bestFit":{var j;const e=null==(j=E.filter(e=>{if(C){const t=Za(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:j[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},ss=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...u}=Wa(e,t),c=await ui(t,u),d=Ya(o),f=qa(o),p="y"===Za(o),{width:h,height:m}=a.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===f?"top":"bottom");const v=m-c.top-c.bottom,b=h-c.left-c.right,w=La(m-c[g],v),x=La(h-c[y],b),C=!t.middlewareData.shift;let S=w,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),C&&!f){const e=Ia(c.left,0),t=Ia(c.right,0),n=Ia(c.top,0),r=Ia(c.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:Ia(c.left,c.right)):S=m-2*(0!==n||0!==r?n+r:Ia(c.top,c.bottom))}await l({...t,availableWidth:k,availableHeight:S});const _=await i.getDimensions(s.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}},ls=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Wa(e,t);switch(r){case"referenceHidden":{const e=ci(await ui(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:di(e)}}}case"escaped":{const e=ci(await ui(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:di(e)}}}default:return{}}}}},us=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Wa(e,t)||{};if(null==u)return{};const d=ii(c),f={x:n,y:r},p=Xa(o),h=Ka(p),m=await i.getDimensions(u),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[p]-f[p]-a.floating[h],x=f[p]-a.reference[p],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let S=C?C[b]:0;S&&await(null==i.isElement?void 0:i.isElement(C))||(S=s.floating[b]||a.floating[h]);const k=w/2-x/2,_=S/2-m[h]/2-1,E=La(d[y],_),R=La(d[v],_),N=E,j=S-m[h]-R,P=S/2-m[h]/2+k,O=Ua(N,P,j),M=!l.arrow&&null!=qa(o)&&P!==O&&a.reference[h]/2-(P<N?E:R)-m[h]/2<0,T=M?P<N?P-N:P-j:0;return{[p]:f[p]+T,data:{[p]:O,centerOffset:P-O-T,...M&&{alignmentOffset:T}},reset:M}}}),cs=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Wa(e,t),c={x:n,y:r},d=Za(o),f=Ga(d);let p=c[f],h=c[d];const m=Wa(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,v;const e="y"===f?"width":"height",t=fi.has(Ya(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},ds=(e,t,n)=>{const r=new Map,o={platform:ts,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=li(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:a,fn:m}=s[n],{x:g,y:y,data:v,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,p={...p,[a]:{...p[a],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=li(u,f,l))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var fs="undefined"!=typeof document?T.useLayoutEffect:function(){};function ps(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ps(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ps(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function hs(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ms(e,t){const n=hs(e);return Math.round(t*n)/n}function gs(e){const t=T.useRef(e);return fs(()=>{t.current=e}),t}const ys=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?us({element:n.current,padding:r}).fn(t):{}:n?us({element:n,padding:r}).fn(t):{};var o}}),vs=(e,t)=>({...os(e),options:[e,t]}),bs=(e,t)=>({...as(e),options:[e,t]}),ws=(e,t)=>({...cs(e),options:[e,t]}),xs=(e,t)=>({...is(e),options:[e,t]}),Cs=(e,t)=>({...ss(e),options:[e,t]}),Ss=(e,t)=>({...ls(e),options:[e,t]}),ks=(e,t)=>({...ys(e),options:[e,t]});var _s=T.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(aa.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});_s.displayName="Arrow";var Es=_s;var Rs="Popper",[Ns,js]=qo(Rs),[Ps,Os]=Ns(Rs),Ms=e=>{const{__scopePopper:t,children:n}=e,[r,o]=T.useState(null);return m.jsx(Ps,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ms.displayName=Rs;var Ts="PopperAnchor",Ds=T.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Os(Ts,n),i=T.useRef(null),s=Yo(t,i);return T.useEffect(()=>{a.onAnchorChange(r?.current||i.current)}),r?null:m.jsx(aa.div,{...o,ref:s})});Ds.displayName=Ts;var As="PopperContent",[Fs,Ls]=Ns(As),Is=T.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:h,...g}=e,y=Os(As,n),[v,b]=T.useState(null),w=Yo(t,e=>b(e)),[x,C]=T.useState(null),S=function(e){const[t,n]=T.useState(void 0);return Ko(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(x),k=S?.width??0,_=S?.height??0,E=r+("center"!==a?"-"+a:""),R="number"==typeof c?c:{top:0,right:0,bottom:0,left:0,...c},N=Array.isArray(u)?u:[u],j=N.length>0,P={padding:R,boundary:N.filter(Vs),altBoundary:j},{refs:O,floatingStyles:M,placement:D,isPositioned:A,middlewareData:F}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=T.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=T.useState(r);ps(f,r)||p(r);const[h,m]=T.useState(null),[g,y]=T.useState(null),v=T.useCallback(e=>{e!==C.current&&(C.current=e,m(e))},[]),b=T.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),w=a||h,x=i||g,C=T.useRef(null),S=T.useRef(null),k=T.useRef(c),_=null!=l,E=gs(l),R=gs(o),N=gs(u),j=T.useCallback(()=>{if(!C.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};R.current&&(e.platform=R.current),ds(C.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};P.current&&!ps(k.current,t)&&(k.current=t,Xo.flushSync(()=>{d(t)}))})},[f,t,n,R,N]);fs(()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);const P=T.useRef(!1);fs(()=>(P.current=!0,()=>{P.current=!1}),[]),fs(()=>{if(w&&(C.current=w),x&&(S.current=x),w&&x){if(E.current)return E.current(w,x,j);j()}},[w,x,j,E,_]);const O=T.useMemo(()=>({reference:C,floating:S,setReference:v,setFloating:b}),[v,b]),M=T.useMemo(()=>({reference:w,floating:x}),[w,x]),D=T.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=ms(M.floating,c.x),r=ms(M.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...hs(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,M.floating,c.x,c.y]);return T.useMemo(()=>({...c,update:j,refs:O,elements:M,floatingStyles:D}),[c,j,O,M,D])}({strategy:"fixed",placement:E,whileElementsMounted:(...e)=>rs(...e,{animationFrame:"always"===p}),elements:{reference:y.anchor},middleware:[vs({mainAxis:o+_,alignmentAxis:i}),l&&bs({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?ws():void 0,...P}),l&&xs({...P}),Cs({...P,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),x&&ks({element:x,padding:s}),Bs({arrowWidth:k,arrowHeight:_}),f&&Ss({strategy:"referenceHidden",...P})]}),[L,I]=Us(D),z=ca(h);Ko(()=>{A&&z?.()},[A,z]);const $=F.arrow?.x,H=F.arrow?.y,V=0!==F.arrow?.centerOffset,[B,U]=T.useState();return Ko(()=>{v&&U(window.getComputedStyle(v).zIndex)},[v]),m.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:A?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(Fs,{scope:n,placedSide:L,onArrowChange:C,arrowX:$,arrowY:H,shouldHideArrow:V,children:m.jsx(aa.div,{"data-side":L,"data-align":I,...g,ref:w,style:{...g.style,animation:A?void 0:"none"}})})})});Is.displayName=As;var zs="PopperArrow",$s={top:"bottom",right:"left",bottom:"top",left:"right"},Hs=T.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Ls(zs,n),a=$s[o.placedSide];return m.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:m.jsx(Es,{...r,ref:t,style:{...r.style,display:"block"}})})});function Vs(e){return null!==e}Hs.displayName=zs;var Bs=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,u]=Us(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let p="",h="";return"bottom"===l?(p=a?c:`${d}px`,h=-s+"px"):"top"===l?(p=a?c:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",h=a?c:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=a?c:`${f}px`),{data:{x:p,y:h}}}});function Us(e){const[t,n="center"]=e.split("-");return[t,n]}var Ws=Ms,Ys=Ds,qs=Is,Gs=Hs,Ks=T.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=T.useState(!1);Ko(()=>a(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Jo.createPortal(m.jsx(aa.div,{...r,ref:t}),i):null});Ks.displayName="Portal";var Qs=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=T.useState(),r=T.useRef(null),o=T.useRef(e),a=T.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return T.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const e=Zs(r.current);a.current="mounted"===s?e:"none"},[s]),Ko(()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=Zs(t);if(e)l("MOUNT");else if("none"===i||"none"===t?.display)l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),Ko(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=a=>{const i=Zs(r.current).includes(a.animationName);if(a.target===t&&i&&(l("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=Zs(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:T.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):T.Children.only(n),a=Yo(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?T.cloneElement(o,{ref:a}):null};function Zs(e){return e?.animationName||"none"}Qs.displayName="Presence";var Xs="rovingFocusGroup.onEntryFocus",Js={bubbles:!1,cancelable:!0},el="RovingFocusGroup",[tl,nl,rl]=sa(el),[ol,al]=qo(el,[rl]),[il,sl]=ol(el),ll=T.forwardRef((e,t)=>m.jsx(tl.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(tl.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(ul,{...e,ref:t})})}));ll.displayName=el;var ul=T.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,f=T.useRef(null),p=Yo(t,f),h=ua(a),[g,y]=Zo({prop:i,defaultProp:s??null,onChange:l,caller:el}),[v,b]=T.useState(!1),w=ca(u),x=nl(n),C=T.useRef(!1),[S,k]=T.useState(0);return T.useEffect(()=>{const e=f.current;if(e)return e.addEventListener(Xs,w),()=>e.removeEventListener(Xs,w)},[w]),m.jsx(il,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:g,onItemFocus:T.useCallback(e=>y(e),[y]),onItemShiftTab:T.useCallback(()=>b(!0),[]),onFocusableItemAdd:T.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:T.useCallback(()=>k(e=>e-1),[]),children:m.jsx(aa.div,{tabIndex:v||0===S?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Bo(e.onMouseDown,()=>{C.current=!0}),onFocus:Bo(e.onFocus,e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(Xs,Js);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter(e=>e.focusable);pl([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),c)}}C.current=!1}),onBlur:Bo(e.onBlur,()=>b(!1))})})}),cl="RovingFocusGroupItem",dl=T.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,l=Aa(),u=a||l,c=sl(cl,n),d=c.currentTabStopId===u,f=nl(n),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:g}=c;return T.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),m.jsx(tl.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:m.jsx(aa.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:Bo(e.onMouseDown,e=>{r?c.onItemFocus(u):e.preventDefault()}),onFocus:Bo(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:Bo(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:fl[r]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=f().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=c.loop?(r=a+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>pl(o))}var n,r}),children:"function"==typeof i?i({isCurrentTabStop:d,hasTabStop:null!=g}):i})})});dl.displayName=cl;var fl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pl(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var hl=ll,ml=dl,gl=new WeakMap,yl=new WeakMap,vl={},bl=0,wl=function(e){return e&&(e.host||wl(e.parentNode))},xl=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=wl(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);vl[n]||(vl[n]=new WeakMap);var a=vl[n],i=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(gl.get(e)||0)+1,u=(a.get(e)||0)+1;gl.set(e,l),a.set(e,u),i.push(e),1===l&&o&&yl.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),bl++,function(){i.forEach(function(e){var t=gl.get(e)-1,o=a.get(e)-1;gl.set(e,t),a.set(e,o),t||(yl.has(e)||e.removeAttribute(r),yl.delete(e)),o||e.removeAttribute(n)}),--bl||(gl=new WeakMap,gl=new WeakMap,yl=new WeakMap,vl={})}},Cl=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),xl(r,o,n,"aria-hidden")):function(){return null}},Sl=function(){return Sl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sl.apply(this,arguments)};function kl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function _l(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var El="right-scroll-bar-position",Rl="width-before-scroll-bar";function Nl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var jl="undefined"!=typeof window?T.useLayoutEffect:T.useEffect,Pl=new WeakMap;function Ol(e,t){var n,r,o,a=(n=null,r=function(t){return e.forEach(function(e){return Nl(e,t)})},(o=T.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return jl(function(){var t=Pl.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||Nl(e,null)}),r.forEach(function(e){n.has(e)||Nl(e,o)})}Pl.set(a,e)},[e]),a}function Ml(e){return e}var Tl=function(e){var t=e.sideCar,n=kl(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return T.createElement(r,Sl({},n))};Tl.isSideCarExport=!0;var Dl=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Ml);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=Sl({async:!0,ssr:!1},e),t}(),Al=function(){},Fl=T.forwardRef(function(e,t){var n=T.useRef(null),r=T.useState({onScrollCapture:Al,onWheelCapture:Al,onTouchMoveCapture:Al}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,v=void 0===y?"div":y,b=e.gapMode,w=kl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,C=Ol([n,t]),S=Sl(Sl({},w),o);return T.createElement(T.Fragment,null,c&&T.createElement(x,{sideCar:Dl,removeScrollBar:u,shards:d,noRelative:p,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),i?T.cloneElement(T.Children.only(s),Sl(Sl({},S),{ref:C})):T.createElement(v,Sl({},S,{className:l,ref:C}),s))});Fl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fl.classNames={fullWidth:Rl,zeroRight:El};function Ll(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Il=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=Ll())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zl=function(){var e,t=(e=Il(),function(t,n){T.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},$l={left:0,top:0,right:0,gap:0},Hl=function(e){return parseInt(e||"",10)||0},Vl=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return $l;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Hl(n),Hl(r),Hl(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Bl=zl(),Ul="data-scroll-locked",Wl=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Ul,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(El," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Rl," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(El," .").concat(El," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Rl," .").concat(Rl," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Ul,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Yl=function(){var e=parseInt(document.body.getAttribute(Ul)||"0",10);return isFinite(e)?e:0},ql=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;T.useEffect(function(){return document.body.setAttribute(Ul,(Yl()+1).toString()),function(){var e=Yl()-1;e<=0?document.body.removeAttribute(Ul):document.body.setAttribute(Ul,e.toString())}},[]);var a=T.useMemo(function(){return Vl(o)},[o]);return T.createElement(Bl,{styles:Wl(a,!t,o,n?"":"!important")})},Gl=!1;if("undefined"!=typeof window)try{var Kl=Object.defineProperty({},"passive",{get:function(){return Gl=!0,!0}});window.addEventListener("test",Kl,Kl),window.removeEventListener("test",Kl,Kl)}catch(e){Gl=!1}var Ql=!!Gl&&{passive:!1},Zl=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Xl=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Jl(e,r)){var o=eu(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Jl=function(e,t){return"v"===e?function(e){return Zl(e,"overflowY")}(t):function(e){return Zl(e,"overflowX")}(t)},eu=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},tu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nu=function(e){return[e.deltaX,e.deltaY]},ru=function(e){return e&&"current"in e?e.current:e},ou=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},au=0,iu=[];function su(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var lu,uu=(lu=function(e){var t=T.useRef([]),n=T.useRef([0,0]),r=T.useRef(),o=T.useState(au++)[0],a=T.useState(zl)[0],i=T.useRef(e);T.useEffect(function(){i.current=e},[e]),T.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=_l([e.lockRef.current],(e.shards||[]).map(ru),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=T.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=tu(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=Xl(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Xl(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,u=a>0,c=0,d=0;do{if(!i)break;var f=eu(e,i),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&Jl(e,i)&&(c+=h,d+=p);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(u&&Math.abs(c)<1||!u&&Math.abs(d)<1)&&(l=!0),l}(p,t,e,"h"===p?l:u)},[]),l=T.useCallback(function(e){var n=e;if(iu.length&&iu[iu.length-1]===a){var r="deltaY"in n?nu(n):tu(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(i.current.shards||[]).map(ru).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=T.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:su(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=T.useCallback(function(e){n.current=tu(e),r.current=void 0},[]),d=T.useCallback(function(t){u(t.type,nu(t),t.target,s(t,e.lockRef.current))},[]),f=T.useCallback(function(t){u(t.type,tu(t),t.target,s(t,e.lockRef.current))},[]);T.useEffect(function(){return iu.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ql),document.addEventListener("touchmove",l,Ql),document.addEventListener("touchstart",c,Ql),function(){iu=iu.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,Ql),document.removeEventListener("touchmove",l,Ql),document.removeEventListener("touchstart",c,Ql)}},[]);var p=e.removeScrollBar,h=e.inert;return T.createElement(T.Fragment,null,h?T.createElement(a,{styles:ou(o)}):null,p?T.createElement(ql,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Dl.useMedium(lu),Tl),cu=T.forwardRef(function(e,t){return T.createElement(Fl,Sl({},e,{ref:t,sideCar:uu}))});cu.classNames=Fl.classNames;var du=["Enter"," "],fu=["ArrowUp","PageDown","End"],pu=["ArrowDown","PageUp","Home",...fu],hu={ltr:[...du,"ArrowRight"],rtl:[...du,"ArrowLeft"]},mu={ltr:["ArrowLeft"],rtl:["ArrowRight"]},gu="Menu",[yu,vu,bu]=sa(gu),[wu,xu]=qo(gu,[bu,js,al]),Cu=js(),Su=al(),[ku,_u]=wu(gu),[Eu,Ru]=wu(gu),Nu=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Cu(t),[l,u]=T.useState(null),c=T.useRef(!1),d=ca(a),f=ua(o);return T.useEffect(()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),m.jsx(Ws,{...s,children:m.jsx(ku,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u,children:m.jsx(Eu,{scope:t,onClose:T.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:i,children:r})})})};Nu.displayName=gu;var ju=T.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Cu(n);return m.jsx(Ys,{...o,...r,ref:t})});ju.displayName="MenuAnchor";var Pu="MenuPortal",[Ou,Mu]=wu(Pu,{forceMount:void 0}),Tu=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=_u(Pu,t);return m.jsx(Ou,{scope:t,forceMount:n,children:m.jsx(Qs,{present:n||a.open,children:m.jsx(Ks,{asChild:!0,container:o,children:r})})})};Tu.displayName=Pu;var Du="MenuContent",[Au,Fu]=wu(Du),Lu=T.forwardRef((e,t)=>{const n=Mu(Du,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=_u(Du,e.__scopeMenu),i=Ru(Du,e.__scopeMenu);return m.jsx(yu.Provider,{scope:e.__scopeMenu,children:m.jsx(Qs,{present:r||a.open,children:m.jsx(yu.Slot,{scope:e.__scopeMenu,children:i.modal?m.jsx(Iu,{...o,ref:t}):m.jsx(zu,{...o,ref:t})})})})}),Iu=T.forwardRef((e,t)=>{const n=_u(Du,e.__scopeMenu),r=T.useRef(null),o=Yo(t,r);return T.useEffect(()=>{const e=r.current;if(e)return Cl(e)},[]),m.jsx(Hu,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Bo(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),zu=T.forwardRef((e,t)=>{const n=_u(Du,e.__scopeMenu);return m.jsx(Hu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),$u=ea("MenuContent.ScrollLock"),Hu=T.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...g}=e,y=_u(Du,n),v=Ru(Du,n),b=Cu(n),w=Su(n),x=vu(n),[C,S]=T.useState(null),k=T.useRef(null),_=Yo(t,k,y.onContentChange),E=T.useRef(0),R=T.useRef(""),N=T.useRef(0),j=T.useRef(null),P=T.useRef("right"),O=T.useRef(0),M=h?cu:T.Fragment,D=h?{as:$u,allowPinchZoom:!0}:void 0,A=e=>{const t=R.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,a=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const u=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(n.map(e=>e.textValue),t,o),i=n.find(e=>e.textValue===a)?.ref.current;!function e(t){R.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())};T.useEffect(()=>()=>window.clearTimeout(E.current),[]),xa();const F=T.useCallback(e=>P.current===j.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e],s=t[a],l=i.x,u=i.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(o=!o)}return o}(n,t)}(e,j.current?.area),[]);return m.jsx(Au,{scope:n,searchRef:R,onItemEnter:T.useCallback(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:T.useCallback(e=>{F(e)||(k.current?.focus(),S(null))},[F]),onTriggerLeave:T.useCallback(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:N,onPointerGraceIntentChange:T.useCallback(e=>{j.current=e},[]),children:m.jsx(M,{...D,children:m.jsx(Ea,{asChild:!0,trapped:o,onMountAutoFocus:Bo(a,e=>{e.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:m.jsx(ga,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:m.jsx(hl,{asChild:!0,...w,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:S,onEntryFocus:Bo(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(qs,{role:"menu","aria-orientation":"vertical","data-state":pc(y.open),"data-radix-menu-content":"",dir:v.dir,...b,...g,ref:_,style:{outline:"none",...g.style},onKeyDown:Bo(g.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&A(e.key));const o=k.current;if(e.target!==o)return;if(!pu.includes(e.key))return;e.preventDefault();const a=x().filter(e=>!e.disabled).map(e=>e.ref.current);fu.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)}),onBlur:Bo(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),R.current="")}),onPointerMove:Bo(e.onPointerMove,gc(e=>{const t=e.target,n=O.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>O.current?"right":"left";P.current=t,O.current=e.clientX}}))})})})})})})});Lu.displayName=Du;var Vu=T.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(aa.div,{role:"group",...r,ref:t})});Vu.displayName="MenuGroup";var Bu=T.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(aa.div,{...r,ref:t})});Bu.displayName="MenuLabel";var Uu="MenuItem",Wu="menu.itemSelect",Yu=T.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=T.useRef(null),i=Ru(Uu,e.__scopeMenu),s=Fu(Uu,e.__scopeMenu),l=Yo(t,a),u=T.useRef(!1);return m.jsx(qu,{...o,ref:l,disabled:n,onClick:Bo(e.onClick,()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(Wu,{bubbles:!0,cancelable:!0});e.addEventListener(Wu,e=>r?.(e),{once:!0}),ia(e,t),t.defaultPrevented?u.current=!1:i.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:Bo(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:Bo(e.onKeyDown,e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||du.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Yu.displayName=Uu;var qu=T.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Fu(Uu,n),s=Su(n),l=T.useRef(null),u=Yo(t,l),[c,d]=T.useState(!1),[f,p]=T.useState("");return T.useEffect(()=>{const e=l.current;e&&p((e.textContent??"").trim())},[a.children]),m.jsx(yu.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:m.jsx(ml,{asChild:!0,...s,focusable:!r,children:m.jsx(aa.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:Bo(e.onPointerMove,gc(e=>{if(r)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:Bo(e.onPointerLeave,gc(e=>i.onItemLeave(e))),onFocus:Bo(e.onFocus,()=>d(!0)),onBlur:Bo(e.onBlur,()=>d(!1))})})})}),Gu=T.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(nc,{scope:e.__scopeMenu,checked:n,children:m.jsx(Yu,{role:"menuitemcheckbox","aria-checked":hc(n)?"mixed":n,...o,ref:t,"data-state":mc(n),onSelect:Bo(o.onSelect,()=>r?.(!!hc(n)||!n),{checkForDefaultPrevented:!1})})})});Gu.displayName="MenuCheckboxItem";var Ku="MenuRadioGroup",[Qu,Zu]=wu(Ku,{value:void 0,onValueChange:()=>{}}),Xu=T.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=ca(r);return m.jsx(Qu,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(Vu,{...o,ref:t})})});Xu.displayName=Ku;var Ju="MenuRadioItem",ec=T.forwardRef((e,t)=>{const{value:n,...r}=e,o=Zu(Ju,e.__scopeMenu),a=n===o.value;return m.jsx(nc,{scope:e.__scopeMenu,checked:a,children:m.jsx(Yu,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":mc(a),onSelect:Bo(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ec.displayName=Ju;var tc="MenuItemIndicator",[nc,rc]=wu(tc,{checked:!1}),oc=T.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=rc(tc,n);return m.jsx(Qs,{present:r||hc(a.checked)||!0===a.checked,children:m.jsx(aa.span,{...o,ref:t,"data-state":mc(a.checked)})})});oc.displayName=tc;var ac=T.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(aa.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ac.displayName="MenuSeparator";var ic=T.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Cu(n);return m.jsx(Gs,{...o,...r,ref:t})});ic.displayName="MenuArrow";var[sc,lc]=wu("MenuSub"),uc="MenuSubTrigger",cc=T.forwardRef((e,t)=>{const n=_u(uc,e.__scopeMenu),r=Ru(uc,e.__scopeMenu),o=lc(uc,e.__scopeMenu),a=Fu(uc,e.__scopeMenu),i=T.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},c=T.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return T.useEffect(()=>c,[c]),T.useEffect(()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),m.jsx(ju,{asChild:!0,...u,children:m.jsx(qu,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":pc(n.open),...e,ref:Wo(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Bo(e.onPointerMove,gc(t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||i.current||(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:Bo(e.onPointerLeave,gc(e=>{c();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,i=o?-5:5,l=t[o?"left":"right"],u=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:l,y:t.top},{x:u,y:t.top},{x:u,y:t.bottom},{x:l,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Bo(e.onKeyDown,t=>{const o=""!==a.searchRef.current;e.disabled||o&&" "===t.key||hu[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});cc.displayName=uc;var dc="MenuSubContent",fc=T.forwardRef((e,t)=>{const n=Mu(Du,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=_u(Du,e.__scopeMenu),i=Ru(Du,e.__scopeMenu),s=lc(dc,e.__scopeMenu),l=T.useRef(null),u=Yo(t,l);return m.jsx(yu.Provider,{scope:e.__scopeMenu,children:m.jsx(Qs,{present:r||a.open,children:m.jsx(yu.Slot,{scope:e.__scopeMenu,children:m.jsx(Hu,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Bo(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Bo(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:Bo(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=mu[i.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});function pc(e){return e?"open":"closed"}function hc(e){return"indeterminate"===e}function mc(e){return hc(e)?"indeterminate":e?"checked":"unchecked"}function gc(e){return t=>"mouse"===t.pointerType?e(t):void 0}fc.displayName=dc;var yc=Nu,vc=ju,bc=Tu,wc=Lu,xc=Vu,Cc=Bu,Sc=Yu,kc=Gu,_c=Xu,Ec=ec,Rc=oc,Nc=ac,jc=ic,Pc=cc,Oc=fc,Mc="DropdownMenu",[Tc,Dc]=qo(Mc,[xu]),Ac=xu(),[Fc,Lc]=Tc(Mc),Ic=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=Ac(t),u=T.useRef(null),[c,d]=Zo({prop:o,defaultProp:a??!1,onChange:i,caller:Mc});return m.jsx(Fc,{scope:t,triggerId:Aa(),triggerRef:u,contentId:Aa(),open:c,onOpenChange:d,onOpenToggle:T.useCallback(()=>d(e=>!e),[d]),modal:s,children:m.jsx(yc,{...l,open:c,onOpenChange:d,dir:r,modal:s,children:n})})};Ic.displayName=Mc;var zc="DropdownMenuTrigger",$c=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Lc(zc,n),i=Ac(n);return m.jsx(vc,{asChild:!0,...i,children:m.jsx(aa.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Wo(t,a.triggerRef),onPointerDown:Bo(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:Bo(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});$c.displayName=zc;var Hc=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ac(t);return m.jsx(bc,{...r,...n})};Hc.displayName="DropdownMenuPortal";var Vc="DropdownMenuContent",Bc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lc(Vc,n),a=Ac(n),i=T.useRef(!1);return m.jsx(wc,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:Bo(e.onCloseAutoFocus,e=>{i.current||o.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:Bo(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Bc.displayName=Vc;T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ac(n);return m.jsx(xc,{...o,...r,ref:t})}).displayName="DropdownMenuGroup";var Uc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ac(n);return m.jsx(Cc,{...o,...r,ref:t})});Uc.displayName="DropdownMenuLabel";var Wc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ac(n);return m.jsx(Sc,{...o,...r,ref:t})});Wc.displayName="DropdownMenuItem";var Yc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ac(n);return m.jsx(kc,{...o,...r,ref:t})});Yc.displayName="DropdownMenuCheckboxItem";T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ac(n);return m.jsx(_c,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup";var qc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ac(n);return m.jsx(Ec,{...o,...r,ref:t})});qc.displayName="DropdownMenuRadioItem";var Gc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ac(n);return m.jsx(Rc,{...o,...r,ref:t})});Gc.displayName="DropdownMenuItemIndicator";var Kc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ac(n);return m.jsx(Nc,{...o,...r,ref:t})});Kc.displayName="DropdownMenuSeparator";T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ac(n);return m.jsx(jc,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var Qc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ac(n);return m.jsx(Pc,{...o,...r,ref:t})});Qc.displayName="DropdownMenuSubTrigger";var Zc=T.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ac(n);return m.jsx(Oc,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Zc.displayName="DropdownMenuSubContent";var Xc=Ic,Jc=$c,ed=Hc,td=Bc,nd=Uc,rd=Wc,od=Yc,ad=qc,id=Gc,sd=Kc,ld=Qc,ud=Zc;
33
33
  /**
34
34
  * @license lucide-react v0.525.0 - ISC
35
35
  *
36
36
  * This source code is licensed under the ISC license.
37
37
  * See the LICENSE file in the root directory of this source tree.
38
38
  */
39
- const ud=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},cd=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),dd=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
39
+ const cd=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},dd=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),fd=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
40
40
  /**
41
41
  * @license lucide-react v0.525.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
44
44
  * See the LICENSE file in the root directory of this source tree.
45
45
  */
46
- var fd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
46
+ var pd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
47
47
  /**
48
48
  * @license lucide-react v0.525.0 - ISC
49
49
  *
50
50
  * This source code is licensed under the ISC license.
51
51
  * See the LICENSE file in the root directory of this source tree.
52
- */const pd=T.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},l)=>T.createElement("svg",{ref:l,...fd,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:cd("lucide",o),...!a&&!dd(s)&&{"aria-hidden":"true"},...s},[...i.map(([e,t])=>T.createElement(e,t)),...Array.isArray(a)?a:[a]])),hd=(e,t)=>{const n=T.forwardRef(({className:n,...r},o)=>{return T.createElement(pd,{ref:o,iconNode:t,className:cd(`lucide-${a=ud(e),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r});var a});return n.displayName=ud(e),n},md=hd("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),gd=hd("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),yd=hd("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),vd=hd("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),bd=hd("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),wd=hd("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),xd=hd("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Cd=hd("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Sd=Zc,kd=Xc;
52
+ */const hd=T.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},l)=>T.createElement("svg",{ref:l,...pd,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:dd("lucide",o),...!a&&!fd(s)&&{"aria-hidden":"true"},...s},[...i.map(([e,t])=>T.createElement(e,t)),...Array.isArray(a)?a:[a]])),md=(e,t)=>{const n=T.forwardRef(({className:n,...r},o)=>{return T.createElement(hd,{ref:o,iconNode:t,className:dd(`lucide-${a=cd(e),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r});var a});return n.displayName=cd(e),n},gd=md("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),yd=md("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),vd=md("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),bd=md("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),wd=md("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),xd=md("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Cd=md("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Sd=md("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),kd=Xc,_d=Jc;
53
53
  /**
54
54
  * @license lucide-react v0.525.0 - ISC
55
55
  *
56
56
  * This source code is licensed under the ISC license.
57
57
  * See the LICENSE file in the root directory of this source tree.
58
- */T.forwardRef(({className:e,inset:t,children:n,...r},o)=>m.jsxs(sd,{ref:o,className:Do("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 data-[state=open]:bg-neutral-100 dark:focus:bg-neutral-800 dark:data-[state=open]:bg-neutral-800",t&&"pl-8",e),...r,children:[n,m.jsx(yd,{className:"ml-auto h-4 w-4"})]})).displayName=sd.displayName;T.forwardRef(({className:e,...t},n)=>m.jsx(ld,{ref:n,className:Do("z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...t})).displayName=ld.displayName;const _d=T.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(Jc,{children:m.jsx(ed,{ref:r,sideOffset:t,className:Do("z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-[0_8px_14px_0_#0F2A510A] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...n})}));_d.displayName=ed.displayName;const Ed=T.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(nd,{ref:r,className:Do("relative flex cursor-default select-none items-center rounded-sm px-2 py-2.5 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",t&&"pl-8",e),...n}));Ed.displayName=nd.displayName;T.forwardRef(({className:e,children:t,checked:n,...r},o)=>m.jsxs(rd,{ref:o,className:Do("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),checked:n,...r,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(ad,{children:m.jsx(md,{className:"h-4 w-4"})})}),t]})).displayName=rd.displayName;T.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(od,{ref:r,className:Do("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(ad,{children:m.jsx(wd,{className:"h-2 w-2 fill-current"})})}),t]})).displayName=od.displayName;T.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(td,{ref:r,className:Do("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n})).displayName=td.displayName;function Rd(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let e=0;e<a.length;e+=1){const r=a[e];r&&(i+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(i+=" "+n[r]))}r[o]=i}return r}T.forwardRef(({className:e,...t},n)=>m.jsx(id,{ref:n,className:Do("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t})).displayName=id.displayName;const Nd=e=>e,jd=(()=>{let e=Nd;return{configure(t){e=t},generate:t=>e(t),reset(){e=Nd}}})(),Pd={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Od(e,t,n="Mui"){const r=Pd[t];return r?`${n}-${r}`:`${jd.generate(e)}-${t}`}function Md(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Od(e,t,n)}),r}function Td(e){return Od("MuiPagination",e)}function Dd(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:l,page:u,showFirstButton:c=!1,showLastButton:d=!1,siblingCount:f=1,...p}=e,[h,m]=function(e){const{controlled:t,default:n}=e,{current:r}=T.useRef(void 0!==t),[o,a]=T.useState(n);return[r?t:o,T.useCallback(e=>{r||a(e)},[])]}({controlled:u,default:o}),g=(e,t)=>{u||m(t),l&&l(e,t)},y=(e,t)=>{const n=t-e+1;return Array.from({length:n},(t,n)=>e+n)},v=y(1,Math.min(t,r)),b=y(Math.max(r-t+1,t+1),r),w=Math.max(Math.min(h-f,r-t-2*f-1),t+2),x=Math.min(Math.max(h+f,t+2*f+2),r-t-1),C=[...c?["first"]:[],...s?[]:["previous"],...v,...w>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...y(w,x),...x<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...b,...i?[]:["next"],...d?["last"]:[]],S=e=>{switch(e){case"first":return 1;case"previous":return h-1;case"next":return h+1;case"last":return r;default:return null}};return{items:C.map(e=>"number"==typeof e?{onClick:t=>{g(t,e)},type:"page",page:e,selected:e===h,disabled:a,"aria-current":e===h?"page":void 0}:{onClick:t=>{g(t,S(e))},type:e,page:S(e),selected:!1,disabled:a||!e.includes("ellipsis")&&("next"===e||"last"===e?h>=r:h<=1)}),...p}}Md("MuiPagination",["root","ul","outlined","text"]);const Ad=T.createContext();function Fd(e){return Od("MuiPaginationItem",e)}const Ld=Md("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]);function Id(e){try{return e.matches(":focus-visible")}catch(e){}return!1}function zd(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function $d(e){if("string"!=typeof e)throw new Error(zd(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Hd,Vd,Bd={exports:{}},Ud={};function Wd(){if(Hd)return Ud;Hd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case u:case f:return p;default:switch(p=p&&p.$$typeof){case i:case s:case d:case c:case a:return p;default:return h}}case t:return h}}}return Ud.ContextConsumer=a,Ud.ContextProvider=i,Ud.Element=e,Ud.ForwardRef=s,Ud.Fragment=n,Ud.Lazy=d,Ud.Memo=c,Ud.Portal=t,Ud.Profiler=o,Ud.StrictMode=r,Ud.Suspense=l,Ud.SuspenseList=u,Ud.isContextConsumer=function(e){return h(e)===a},Ud.isContextProvider=function(e){return h(e)===i},Ud.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ud.isForwardRef=function(e){return h(e)===s},Ud.isFragment=function(e){return h(e)===n},Ud.isLazy=function(e){return h(e)===d},Ud.isMemo=function(e){return h(e)===c},Ud.isPortal=function(e){return h(e)===t},Ud.isProfiler=function(e){return h(e)===o},Ud.isStrictMode=function(e){return h(e)===r},Ud.isSuspense=function(e){return h(e)===l},Ud.isSuspenseList=function(e){return h(e)===u},Ud.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},Ud.typeOf=h,Ud}function Yd(){return Vd||(Vd=1,Bd.exports=Wd()),Bd.exports}var qd=Yd();function Gd(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Kd(e){if(T.isValidElement(e)||qd.isValidElementType(e)||!Gd(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Kd(e[n])}),t}function Qd(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Gd(e)&&Gd(t)&&Object.keys(t).forEach(o=>{T.isValidElement(t[o])||qd.isValidElementType(t[o])?r[o]=t[o]:Gd(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Gd(e[o])?r[o]=Qd(e[o],t[o],n):n.clone?r[o]=Gd(t[o])?Kd(t[o]):t[o]:r[o]=t[o]}),r}function Zd(e,t){return t?Qd(e,t,{clone:!1}):e}function Xd(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const Jd={xs:0,sm:600,md:900,lg:1200,xl:1536},ef={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Jd[e]}px)`},tf={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Jd[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function nf(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||ef;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){const e=r.breakpoints||ef;return Object.keys(t).reduce((o,a)=>{if(i=e.keys,"@"===(s=a)||s.startsWith("@")&&(i.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}(r.containerQueries?r:tf,a);e&&(o[e]=n(t[a],a))}else if(Object.keys(e.values||Jd).includes(a)){o[e.up(a)]=n(t[a],a)}else{const e=a;o[e]=t[e]}var i,s;return o},{})}return n(t)}function rf(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function of(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function af(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:of(e,n)||r,t&&(o=t(o,r,e)),o}function sf(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=of(e.theme,r)||{};return nf(e,a,e=>{let r=af(i,o,e);return e===r&&"string"==typeof e&&(r=af(i,o,`${t}${"default"===e?"":$d(e)}`,e)),!1===n?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}const lf={m:"margin",p:"padding"},uf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},df=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!cf[e])return[e];e=cf[e]}const[t,n]=e.split(""),r=lf[t],o=uf[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),ff=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function hf(e,t,n,r){const o=of(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function mf(e){return hf(e,"spacing",8)}function gf(e,t){return"string"==typeof t||null==t?t:e(t)}function yf(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=gf(t,n),e),{})}(df(n),r);return nf(e,e[n],o)}function vf(e,t){const n=mf(e.theme);return Object.keys(e).map(r=>yf(e,t,r,n)).reduce(Zd,{})}function bf(e){return vf(e,ff)}function wf(e){return vf(e,pf)}function xf(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Zd(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Cf(e){return"number"!=typeof e?e:`${e}px solid`}function Sf(e,t){return sf({prop:e,themeKey:"borders",transform:t})}bf.propTypes={},bf.filterProps=ff,wf.propTypes={},wf.filterProps=pf;const kf=Sf("border",Cf),_f=Sf("borderTop",Cf),Ef=Sf("borderRight",Cf),Rf=Sf("borderBottom",Cf),Nf=Sf("borderLeft",Cf),jf=Sf("borderColor"),Pf=Sf("borderTopColor"),Of=Sf("borderRightColor"),Mf=Sf("borderBottomColor"),Tf=Sf("borderLeftColor"),Df=Sf("outline",Cf),Af=Sf("outlineColor"),Ff=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=hf(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:gf(t,e)});return nf(e,e.borderRadius,n)}return null};Ff.propTypes={},Ff.filterProps=["borderRadius"],xf(kf,_f,Ef,Rf,Nf,jf,Pf,Of,Mf,Tf,Ff,Df,Af);const Lf=e=>{if(void 0!==e.gap&&null!==e.gap){const t=hf(e.theme,"spacing",8),n=e=>({gap:gf(t,e)});return nf(e,e.gap,n)}return null};Lf.propTypes={},Lf.filterProps=["gap"];const If=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=hf(e.theme,"spacing",8),n=e=>({columnGap:gf(t,e)});return nf(e,e.columnGap,n)}return null};If.propTypes={},If.filterProps=["columnGap"];const zf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=hf(e.theme,"spacing",8),n=e=>({rowGap:gf(t,e)});return nf(e,e.rowGap,n)}return null};zf.propTypes={},zf.filterProps=["rowGap"];function $f(e,t){return"grey"===t?t:e}xf(Lf,If,zf,sf({prop:"gridColumn"}),sf({prop:"gridRow"}),sf({prop:"gridAutoFlow"}),sf({prop:"gridAutoColumns"}),sf({prop:"gridAutoRows"}),sf({prop:"gridTemplateColumns"}),sf({prop:"gridTemplateRows"}),sf({prop:"gridTemplateAreas"}),sf({prop:"gridArea"}));function Hf(e){return e<=1&&0!==e?100*e+"%":e}xf(sf({prop:"color",themeKey:"palette",transform:$f}),sf({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$f}),sf({prop:"backgroundColor",themeKey:"palette",transform:$f}));const Vf=sf({prop:"width",transform:Hf}),Bf=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Jd[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Hf(t)}};return nf(e,e.maxWidth,t)}return null};Bf.filterProps=["maxWidth"];const Uf=sf({prop:"minWidth",transform:Hf}),Wf=sf({prop:"height",transform:Hf}),Yf=sf({prop:"maxHeight",transform:Hf}),qf=sf({prop:"minHeight",transform:Hf});sf({prop:"size",cssProperty:"width",transform:Hf}),sf({prop:"size",cssProperty:"height",transform:Hf});xf(Vf,Bf,Uf,Wf,Yf,qf,sf({prop:"boxSizing"}));const Gf={border:{themeKey:"borders",transform:Cf},borderTop:{themeKey:"borders",transform:Cf},borderRight:{themeKey:"borders",transform:Cf},borderBottom:{themeKey:"borders",transform:Cf},borderLeft:{themeKey:"borders",transform:Cf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Cf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ff},color:{themeKey:"palette",transform:$f},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$f},backgroundColor:{themeKey:"palette",transform:$f},p:{style:wf},pt:{style:wf},pr:{style:wf},pb:{style:wf},pl:{style:wf},px:{style:wf},py:{style:wf},padding:{style:wf},paddingTop:{style:wf},paddingRight:{style:wf},paddingBottom:{style:wf},paddingLeft:{style:wf},paddingX:{style:wf},paddingY:{style:wf},paddingInline:{style:wf},paddingInlineStart:{style:wf},paddingInlineEnd:{style:wf},paddingBlock:{style:wf},paddingBlockStart:{style:wf},paddingBlockEnd:{style:wf},m:{style:bf},mt:{style:bf},mr:{style:bf},mb:{style:bf},ml:{style:bf},mx:{style:bf},my:{style:bf},margin:{style:bf},marginTop:{style:bf},marginRight:{style:bf},marginBottom:{style:bf},marginLeft:{style:bf},marginX:{style:bf},marginY:{style:bf},marginInline:{style:bf},marginInlineStart:{style:bf},marginInlineEnd:{style:bf},marginBlock:{style:bf},marginBlockStart:{style:bf},marginBlockEnd:{style:bf},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Lf},rowGap:{style:zf},columnGap:{style:If},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Hf},maxWidth:{style:Bf},minWidth:{transform:Hf},height:{transform:Hf},maxHeight:{transform:Hf},minHeight:{transform:Hf},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Kf=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:u}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=of(n,s)||{};if(u)return u(o);return nf(o,t,t=>{let n=af(c,l,t);return t===n&&"string"==typeof t&&(n=af(c,l,`${e}${"default"===t?"":$d(t)}`,t)),!1===i?n:{[i]:n}})}return function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Gf;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(o.breakpoints),l=Object.keys(s);let u=s;return Object.keys(r).forEach(n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=a)if("object"==typeof a)if(i[n])u=Zd(u,e(n,a,o,i));else{const e=nf({theme:o},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?u=Zd(u,e):u[n]=t({sx:a,theme:o,nested:!0})}else u=Zd(u,e(n,a,o,i))}),!a&&o.modularCssLayers?{"@layer sx":Xd(o,rf(l,u))}:Xd(o,rf(l,u))}return Array.isArray(r)?r.map(s):s(r)}}();function Qf(){return Qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qf.apply(null,arguments)}Kf.filterProps=["sx"];var Zf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Xf="-ms-",Jf="-moz-",ep="-webkit-",tp="comm",np="rule",rp="decl",op="@keyframes",ap=Math.abs,ip=String.fromCharCode,sp=Object.assign;function lp(e){return e.trim()}function up(e,t,n){return e.replace(t,n)}function cp(e,t){return e.indexOf(t)}function dp(e,t){return 0|e.charCodeAt(t)}function fp(e,t,n){return e.slice(t,n)}function pp(e){return e.length}function hp(e){return e.length}function mp(e,t){return t.push(e),e}var gp=1,yp=1,vp=0,bp=0,wp=0,xp="";function Cp(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:gp,column:yp,length:i,return:""}}function Sp(e,t){return sp(Cp("",null,null,"",null,null,0),e,{length:-e.length},t)}function kp(){return wp=bp>0?dp(xp,--bp):0,yp--,10===wp&&(yp=1,gp--),wp}function _p(){return wp=bp<vp?dp(xp,bp++):0,yp++,10===wp&&(yp=1,gp++),wp}function Ep(){return dp(xp,bp)}function Rp(){return bp}function Np(e,t){return fp(xp,e,t)}function jp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pp(e){return gp=yp=1,vp=pp(xp=e),bp=0,[]}function Op(e){return xp="",e}function Mp(e){return lp(Np(bp-1,Ap(91===e?e+2:40===e?e+1:e)))}function Tp(e){for(;(wp=Ep())&&wp<33;)_p();return jp(e)>2||jp(wp)>3?"":" "}function Dp(e,t){for(;--t&&_p()&&!(wp<48||wp>102||wp>57&&wp<65||wp>70&&wp<97););return Np(e,Rp()+(t<6&&32==Ep()&&32==_p()))}function Ap(e){for(;_p();)switch(wp){case e:return bp;case 34:case 39:34!==e&&39!==e&&Ap(wp);break;case 40:41===e&&Ap(e);break;case 92:_p()}return bp}function Fp(e,t){for(;_p()&&e+wp!==57&&(e+wp!==84||47!==Ep()););return"/*"+Np(t,bp-1)+"*"+ip(47===e?e:_p())}function Lp(e){for(;!jp(Ep());)_p();return Np(e,bp)}function Ip(e){return Op(zp("",null,null,null,[""],e=Pp(e),0,[0],e))}function zp(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,x=a,C=r,S=b;g;)switch(h=v,v=_p()){case 40:if(108!=h&&58==dp(S,d-1)){-1!=cp(S+=up(Mp(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=Mp(v);break;case 9:case 10:case 13:case 32:S+=Tp(h);break;case 92:S+=Dp(Rp()-1,7);continue;case 47:switch(Ep()){case 42:case 47:mp(Hp(Fp(_p(),Rp()),t,n),l);break;default:S+="/"}break;case 123*m:s[u++]=pp(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(S=up(S,/\f/g,"")),p>0&&pp(S)-d&&mp(p>32?Vp(S+";",r,n,d-1):Vp(up(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(mp(C=$p(S,t,n,u,c,o,s,b,w=[],x=[],d),a),123===v)if(0===c)zp(S,t,C,C,w,a,d,s,x);else switch(99===f&&110===dp(S,3)?100:f){case 100:case 108:case 109:case 115:zp(e,C,C,r&&mp($p(e,C,C,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:zp(S,C,C,C,[""],x,0,s,x)}}u=c=p=0,m=y=1,b=S="",d=i;break;case 58:d=1+pp(S),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==kp())continue;switch(S+=ip(v),v*m){case 38:y=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(pp(S)-1)*y,y=1;break;case 64:45===Ep()&&(S+=Mp(_p())),f=Ep(),c=d=pp(b=S+=Lp(Rp())),v++;break;case 45:45===h&&2==pp(S)&&(m=0)}}return a}function $p(e,t,n,r,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=hp(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=fp(e,d+1,d=ap(m=i[h])),b=e;y<p;++y)(b=lp(m>0?f[y]+" "+v:up(v,/&\f/g,f[y])))&&(l[g++]=b);return Cp(e,t,n,0===o?np:s,l,u,c)}function Hp(e,t,n){return Cp(e,t,n,tp,ip(wp),fp(e,2,-2),0)}function Vp(e,t,n,r){return Cp(e,t,n,rp,fp(e,0,r),fp(e,r+1,-1),r)}function Bp(e,t){for(var n="",r=hp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Up(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case rp:return e.return=e.return||e.value;case tp:return"";case op:return e.return=e.value+"{"+Bp(e.children,r)+"}";case np:e.value=e.props.join(",")}return pp(n=Bp(e.children,r))?e.return=e.value+"{"+n+"}":""}function Wp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Yp=function(e,t,n){for(var r=0,o=0;r=o,o=Ep(),38===r&&12===o&&(t[n]=1),!jp(o);)_p();return Np(e,bp)},qp=function(e,t){return Op(function(e,t){var n=-1,r=44;do{switch(jp(r)){case 0:38===r&&12===Ep()&&(t[n]=1),e[n]+=Yp(bp-1,t,n);break;case 2:e[n]+=Mp(r);break;case 4:if(44===r){e[++n]=58===Ep()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ip(r)}}while(r=_p());return e}(Pp(e),t))},Gp=new WeakMap,Kp=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Gp.get(n))&&!r){Gp.set(e,!0);for(var o=[],a=qp(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Qp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Zp(e,t){switch(function(e,t){return 45^dp(e,0)?(((t<<2^dp(e,0))<<2^dp(e,1))<<2^dp(e,2))<<2^dp(e,3):0}(e,t)){case 5103:return ep+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ep+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ep+e+Jf+e+Xf+e+e;case 6828:case 4268:return ep+e+Xf+e+e;case 6165:return ep+e+Xf+"flex-"+e+e;case 5187:return ep+e+up(e,/(\w+).+(:[^]+)/,ep+"box-$1$2"+Xf+"flex-$1$2")+e;case 5443:return ep+e+Xf+"flex-item-"+up(e,/flex-|-self/,"")+e;case 4675:return ep+e+Xf+"flex-line-pack"+up(e,/align-content|flex-|-self/,"")+e;case 5548:return ep+e+Xf+up(e,"shrink","negative")+e;case 5292:return ep+e+Xf+up(e,"basis","preferred-size")+e;case 6060:return ep+"box-"+up(e,"-grow","")+ep+e+Xf+up(e,"grow","positive")+e;case 4554:return ep+up(e,/([^-])(transform)/g,"$1"+ep+"$2")+e;case 6187:return up(up(up(e,/(zoom-|grab)/,ep+"$1"),/(image-set)/,ep+"$1"),e,"")+e;case 5495:case 3959:return up(e,/(image-set\([^]*)/,ep+"$1$`$1");case 4968:return up(up(e,/(.+:)(flex-)?(.*)/,ep+"box-pack:$3"+Xf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ep+e+e;case 4095:case 3583:case 4068:case 2532:return up(e,/(.+)-inline(.+)/,ep+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(pp(e)-1-t>6)switch(dp(e,t+1)){case 109:if(45!==dp(e,t+4))break;case 102:return up(e,/(.+:)(.+)-([^]+)/,"$1"+ep+"$2-$3$1"+Jf+(108==dp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~cp(e,"stretch")?Zp(up(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==dp(e,t+1))break;case 6444:switch(dp(e,pp(e)-3-(~cp(e,"!important")&&10))){case 107:return up(e,":",":"+ep)+e;case 101:return up(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ep+(45===dp(e,14)?"inline-":"")+"box$3$1"+ep+"$2$3$1"+Xf+"$2box$3")+e}break;case 5936:switch(dp(e,t+11)){case 114:return ep+e+Xf+up(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ep+e+Xf+up(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ep+e+Xf+up(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ep+e+Xf+e+e}return e}var Xp,Jp,eh,th,nh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case rp:e.return=Zp(e.value,e.length);break;case op:return Bp([Sp(e,{value:up(e.value,"@","@"+ep)})],r);case np:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bp([Sp(e,{props:[up(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Bp([Sp(e,{props:[up(t,/:(plac\w+)/,":"+ep+"input-$1")]}),Sp(e,{props:[up(t,/:(plac\w+)/,":-moz-$1")]}),Sp(e,{props:[up(t,/:(plac\w+)/,Xf+"input-$1")]})],r)}return""})}}],rh=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,a=e.stylisPlugins||nh,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l,u,c=[Up,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=hp(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}([Kp,Qp].concat(a,c));o=function(e,t,n,r){l=n,Bp(Ip(e?e+"{"+t.styles+"}":t.styles),d),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Zf({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f},oh={exports:{}},ah={};function ih(){return Jp||(Jp=1,oh.exports=function(){if(Xp)return ah;Xp=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case a:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case i:return e;default:return f}}case n:return f}}}function w(e){return b(e)===u}return ah.AsyncMode=l,ah.ConcurrentMode=u,ah.ContextConsumer=s,ah.ContextProvider=i,ah.Element=t,ah.ForwardRef=c,ah.Fragment=r,ah.Lazy=h,ah.Memo=p,ah.Portal=n,ah.Profiler=a,ah.StrictMode=o,ah.Suspense=d,ah.isAsyncMode=function(e){return w(e)||b(e)===l},ah.isConcurrentMode=w,ah.isContextConsumer=function(e){return b(e)===s},ah.isContextProvider=function(e){return b(e)===i},ah.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ah.isForwardRef=function(e){return b(e)===c},ah.isFragment=function(e){return b(e)===r},ah.isLazy=function(e){return b(e)===h},ah.isMemo=function(e){return b(e)===p},ah.isPortal=function(e){return b(e)===n},ah.isProfiler=function(e){return b(e)===a},ah.isStrictMode=function(e){return b(e)===o},ah.isSuspense=function(e){return b(e)===d},ah.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===a||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===i||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},ah.typeOf=b,ah}()),oh.exports}!function(){if(th)return eh;th=1;var e=ih(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function a(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var i=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;eh=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=a(t),m=a(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||o&&o[y]||m&&m[y]||h&&h[y])){var v=u(r,y);try{i(t,y,v)}catch(e){}}}}return t}}();function sh(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var lh=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},uh=function(e,t,n){lh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var ch={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dh=/[A-Z]|^ms/g,fh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ph=function(e){return 45===e.charCodeAt(1)},hh=function(e){return null!=e&&"boolean"!=typeof e},mh=Wp(function(e){return ph(e)?e:e.replace(dh,"-$&").toLowerCase()}),gh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fh,function(e,t,n){return vh={name:t,styles:n,next:vh},t})}return 1===ch[e]||ph(e)||"number"!=typeof t||0===t?t:t+"px"};function yh(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return vh={name:o.name,styles:o.styles,next:vh},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)vh={name:i.name,styles:i.styles,next:vh},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=yh(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":hh(s)&&(r+=mh(a)+":"+gh(a,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=yh(e,t,i);switch(a){case"animation":case"animationName":r+=mh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var u=0;u<i.length;u++)hh(i[u])&&(r+=mh(a)+":"+gh(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=vh,l=n(e);return vh=s,yh(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var vh,bh=/label:\s*([^\s;{]+)\s*(;|$)/g;function wh(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";vh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=yh(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=yh(n,t,e[i]),r)o+=a[i]}bh.lastIndex=0;for(var s,l="";null!==(s=bh.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:vh}}var xh=!!A.useInsertionEffect&&A.useInsertionEffect||function(e){return e()},Ch=T.createContext("undefined"!=typeof HTMLElement?rh({key:"css"}):null);Ch.Provider;var Sh,kh,_h=function(e){return T.forwardRef(function(t,n){var r=T.useContext(Ch);return e(t,r,n)})},Eh=T.createContext({}),Rh={}.hasOwnProperty,Nh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",jh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return lh(t,n,r),xh(function(){return uh(t,n,r)}),null},Ph=_h(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Nh],a=[r],i="";"string"==typeof e.className?i=sh(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=wh(a,void 0,T.useContext(Eh));i+=t.key+"-"+s.name;var l={};for(var u in e)Rh.call(e,u)&&"css"!==u&&u!==Nh&&(l[u]=e[u]);return l.className=i,n&&(l.ref=n),T.createElement(T.Fragment,null,T.createElement(jh,{cache:t,serialized:s,isStringTag:"string"==typeof o}),T.createElement(o,l))}),Oh=Ph,Mh=function(e,t){var n=arguments;if(null==t||!Rh.call(t,"css"))return T.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Oh,o[1]=function(e,t){var n={};for(var r in t)Rh.call(t,r)&&(n[r]=t[r]);return n[Nh]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return T.createElement.apply(null,o)};function Th(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wh(t)}function Dh(){var e=Th.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}Sh=Mh||(Mh={}),kh||(kh=Sh.JSX||(Sh.JSX={}));var Ah=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Fh=Wp(function(e){return Ah.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Lh=function(e){return"theme"!==e},Ih=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Fh:Lh},zh=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},$h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return lh(t,n,r),xh(function(){return uh(t,n,r)}),null},Hh=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=zh(t,n,a),l=s||Ih(i),u=!l("as");return function(){var c=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var p=c.length,h=1;h<p;h++)d.push(c[h],f[h])}var m=_h(function(e,t,n){var r=u&&e.as||i,a="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=T.useContext(Eh)}"string"==typeof e.className?a=sh(t.registered,c,e.className):null!=e.className&&(a=e.className+" ");var h=wh(d.concat(c),t.registered,f);a+=t.key+"-"+h.name,void 0!==o&&(a+=" "+o);var m=u&&void 0===s?Ih(r):l,g={};for(var y in e)u&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=a,n&&(g.ref=n),T.createElement(T.Fragment,null,T.createElement($h,{cache:t,serialized:h,isStringTag:"string"==typeof r}),T.createElement(r,g))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,Qf({},n,r,{shouldForwardProp:zh(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Hh[e]=Hh(e)});const Vh=[];function Bh(e){return Vh[0]=e,wh(Vh)}function Uh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return{keys:i,values:a,up:s,down:l,between:u,only:function(e){return i.indexOf(e)+1<i.length?u(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):u(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const Wh={borderRadius:4};function Yh(e=8,t=mf({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function qh(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Gh(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e;let s=Qd({breakpoints:Uh(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Yh(o),shape:{...Wh,...a}},i);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=qh,s=t.reduce((e,t)=>Qd(e,t),s),s.unstable_sxConfig={...Gf,...i?.unstable_sxConfig},s.unstable_sx=function(e){return Kf({sx:e,theme:this})},s}function Kh(e){const{variants:t,...n}=e,r={variants:t,style:Bh(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Bh(e.style))}),r}const Qh=Gh();function Zh(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Xh(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Jh(e){return e?(t,n)=>n[e]:null}function em(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>em(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Xh(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?Xh(Bh(o),n):o}return tm(e,r.variants,[t],n)}return r?.isProcessed?n?Xh(Bh(r.style),n):r.style:n?Xh(Bh(r),n):r}function tm(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if("function"==typeof i.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const t in i.props)if(e[t]!==i.props[t]&&e.ownerState?.[t]!==i.props[t])continue e;"function"==typeof i.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Xh(Bh(i.style(o)),r):i.style(o))):n.push(r?Xh(Bh(i.style),r):i.style)}return n}function nm(e,t){}function rm(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function om(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if("components"===a||"slots"===a)r[a]={...e[a],...r[a]};else if("componentsProps"===a||"slotProps"===a){const o=e[a],i=t[a];if(i)if(o){r[a]={...i};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[a][t]=om(o[t],i[t],n)}}else r[a]=i;else r[a]=o||{}}else"className"===a&&n&&t.className?r.className=Er(e?.className,t?.className):"style"===a&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[a]&&(r[a]=e[a])}return r}const am="undefined"!=typeof window?T.useLayoutEffect:T.useEffect;function im(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function sm(e){if(e.type)return e;if("#"===e.charAt(0))return sm(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(zd(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(zd(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const lm=(e,t)=>{try{return(e=>{const t=sm(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function um(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function cm(e){e=sm(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),um({type:s,values:l})}function dm(e){let t="hsl"===(e=sm(e)).type||"hsla"===e.type?sm(cm(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function fm(e,t){return e=sm(e),t=im(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,um(e)}function pm(e,t,n){try{return fm(e,t)}catch(t){return e}}function hm(e,t){if(e=sm(e),t=im(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return um(e)}function mm(e,t,n){try{return hm(e,t)}catch(t){return e}}function gm(e,t){if(e=sm(e),t=im(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return um(e)}function ym(e,t,n){try{return gm(e,t)}catch(t){return e}}function vm(e,t,n){try{return function(e,t=.15){return dm(e)>.5?hm(e,t):gm(e,t)}(e,t)}catch(t){return e}}const bm=T.createContext(void 0);function wm({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?om(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:om(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:T.useContext(bm)}})}const xm={theme:void 0};function Cm(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Sm=(e,t,n,r=[])=>{let o=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function km(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),Sm(a,e,`var(${r})`,s),Sm(i,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:a,varsWithDefaults:i}}const _m={black:"#000",white:"#fff"},Em={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Rm="#f3e5f5",Nm="#ce93d8",jm="#ba68c8",Pm="#ab47bc",Om="#9c27b0",Mm="#7b1fa2",Tm="#e57373",Dm="#ef5350",Am="#f44336",Fm="#d32f2f",Lm="#c62828",Im="#ffb74d",zm="#ffa726",$m="#ff9800",Hm="#f57c00",Vm="#e65100",Bm="#e3f2fd",Um="#90caf9",Wm="#42a5f5",Ym="#1976d2",qm="#1565c0",Gm="#4fc3f7",Km="#29b6f6",Qm="#03a9f4",Zm="#0288d1",Xm="#01579b",Jm="#81c784",eg="#66bb6a",tg="#4caf50",ng="#388e3c",rg="#2e7d32",og="#1b5e20";function ag(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:_m.white,default:_m.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ig=ag();function sg(){return{text:{primary:_m.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:_m.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const lg=sg();function ug(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=gm(e.main,o):"dark"===t&&(e.dark=hm(e.main,a)))}function cg(e,t,n,r,o){const a=o.light||o,i=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*a).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*i).toFixed(0)}%)`))}function dg(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,i=e.primary||function(e="light"){return"dark"===e?{main:Um,light:Bm,dark:Wm}:{main:Ym,light:Wm,dark:qm}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:Nm,light:Rm,dark:Pm}:{main:Om,light:jm,dark:Mm}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Am,light:Tm,dark:Fm}:{main:Fm,light:Dm,dark:Lm}}(t),u=e.info||function(e="light"){return"dark"===e?{main:Km,light:Gm,dark:Zm}:{main:Zm,light:Qm,dark:Xm}}(t),c=e.success||function(e="light"){return"dark"===e?{main:eg,light:Jm,dark:ng}:{main:rg,light:tg,dark:og}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:zm,light:Im,dark:Hm}:{main:"#ed6c02",light:$m,dark:Vm}}(t);function f(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=dm(e),r=dm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,lg.text.primary)>=n?lg.text.primary:ig.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(zd(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(zd(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(cg(o,e,"light",a,r),cg(o,e,"dark",i,r)):(ug(e,"light",a,r),ug(e,"dark",i,r)),e.contrastText||(e.contrastText=f(e.main)),e};let h;"light"===t?h=ag():"dark"===t&&(h=sg());return Qd({common:{..._m},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:Em,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...h},a)}function fg(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const pg={textTransform:"uppercase"},hg='"Roboto", "Helvetica", "Arial", sans-serif';function mg(e,t){const{fontFamily:n=hg,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,f=r/14,p=c||(e=>e/l*f+"rem"),h=(e,t,r,o,a)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===hg?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},...a,...u};var i},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(i,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(i,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(i,14,1.75,.4,pg),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,pg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qd({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...m},d,{clone:!1})}function gg(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const yg=["none",gg(0,2,1,-1,0,1,1,0,0,1,3,0),gg(0,3,1,-2,0,2,2,0,0,1,5,0),gg(0,3,3,-2,0,3,4,0,0,1,8,0),gg(0,2,4,-1,0,4,5,0,0,1,10,0),gg(0,3,5,-1,0,5,8,0,0,1,14,0),gg(0,3,5,-1,0,6,10,0,0,1,18,0),gg(0,4,5,-2,0,7,10,1,0,2,16,1),gg(0,5,5,-3,0,8,10,1,0,3,14,2),gg(0,5,6,-3,0,9,12,1,0,3,16,2),gg(0,6,6,-3,0,10,14,1,0,4,18,3),gg(0,6,7,-4,0,11,15,1,0,4,20,3),gg(0,7,8,-4,0,12,17,2,0,5,22,4),gg(0,7,8,-4,0,13,19,2,0,5,24,4),gg(0,7,9,-4,0,14,21,2,0,5,26,4),gg(0,8,9,-5,0,15,22,2,0,6,28,5),gg(0,8,10,-5,0,16,24,2,0,6,30,5),gg(0,8,11,-5,0,17,26,2,0,6,32,5),gg(0,9,11,-5,0,18,28,2,0,7,34,6),gg(0,9,12,-6,0,19,29,2,0,7,36,6),gg(0,10,13,-6,0,20,31,3,0,8,38,7),gg(0,10,13,-6,0,21,33,3,0,8,40,7),gg(0,10,14,-6,0,22,35,3,0,8,42,7),gg(0,11,14,-7,0,23,36,3,0,9,44,8),gg(0,11,15,-7,0,24,38,3,0,9,46,8)],vg={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},bg={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wg(e){return`${Math.round(e)}ms`}function xg(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Cg(e){const t={...vg,...e.easing},n={...bg,...e.duration};return{getAutoHeightDuration:xg,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:wg(o)} ${a} ${"string"==typeof i?i:wg(i)}`).join(",")},...e,easing:t,duration:n}}const Sg={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function kg(e){return Gd(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function _g(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,a]=n[r];!kg(a)||o.startsWith("unstable_")?delete t[o]:Gd(a)&&(t[o]={...a},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function Eg(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function Rg(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:fm(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Eg(n)})`:gm(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Eg(n)})`:hm(t,n)}})}function Ng(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,colorSpace:u,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(zd(20));const d=dg({...a,colorSpace:u}),f=Gh(e);let p=Qd(f,{mixins:(h=f.breakpoints,m=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...m}),palette:d,shadows:yg.slice(),typography:mg(d,s),transitions:Cg(i),zIndex:{...Sg}});var h,m;return p=Qd(p,c),p=t.reduce((e,t)=>Qd(e,t),p),p.unstable_sxConfig={...Gf,...c?.unstable_sxConfig},p.unstable_sx=function(e){return Kf({sx:e,theme:this})},p.toRuntimeSource=_g,Rg(p),p}const jg=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Pg(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Og(e){return"dark"===e?jg:[]}function Mg(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var Tg=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if("class"===o&&(a=".%s"),"data"===o&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(i=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${i?`${i}-`:""}overlays-${t}`),`--${i?`${i}-`:""}palette-AppBar-darkBg`,`--${i?`${i}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===a?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:a?{[a.replace("%s",t)]:o,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(a&&"media"!==a)return`${r}, ${a.replace("%s",String(t))}`}else if(t){if("media"===a)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}var i;return r};function Dg(e,t,n){!e[t]&&n&&(e[t]=n)}function Ag(e){return"string"==typeof e&&e.startsWith("hsl")?cm(e):e}function Fg(e,t){`${t}Channel`in e||(e[`${t}Channel`]=lm(Ag(e[t])))}const Lg=e=>{try{return e()}catch(e){}};function Ig(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const a="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,i=dg({...t,colorSpace:o});return{palette:i,opacity:{...Pg(i.mode),...n},overlays:r||Og(i.mode),...a}}({...n,palette:{mode:a,...n?.palette},colorSpace:e}));const{palette:i,...s}=Ng({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...Pg(a),...n?.opacity},overlays:n?.overlays||Og(a)},s}function zg(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:i=!1,shouldSkipGeneratingVar:s=Mg,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:u=":root",...c}=e,d=Object.keys(n)[0],f=r||(n.light&&"light"!==d?"light":d),p=((e="mui")=>Cm(e))(a),{[f]:h,light:m,dark:g,...y}=n,v={...y};let b,w=h;if(("dark"===f&&!("dark"in n)||"light"===f&&!("light"in n))&&(w=!0),!w)throw new Error(zd(21,f));i&&(b="oklch");const x=Ig(b,v,w,c,f);m&&!v.light&&Ig(b,v,m,void 0,"light"),g&&!v.dark&&Ig(b,v,g,void 0,"dark");let C={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:p,colorSchemes:v,font:{...fg(x.typography),...x.font},spacing:(S=c.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;Object.keys(C.colorSchemes).forEach(e=>{const t=C.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};function r(e,t,n){if(b){let r;return e===pm&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===mm&&(r=`#000 ${(100*n).toFixed(0)}%`),e===ym&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}var o;if("light"===t.mode&&(Dg(t.common,"background","#fff"),Dg(t.common,"onBackground","#000")),"dark"===t.mode&&(Dg(t.common,"background","#000"),Dg(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){Dg(t.Alert,"errorColor",r(mm,t.error.light,.6)),Dg(t.Alert,"infoColor",r(mm,t.info.light,.6)),Dg(t.Alert,"successColor",r(mm,t.success.light,.6)),Dg(t.Alert,"warningColor",r(mm,t.warning.light,.6)),Dg(t.Alert,"errorFilledBg",n("palette-error-main")),Dg(t.Alert,"infoFilledBg",n("palette-info-main")),Dg(t.Alert,"successFilledBg",n("palette-success-main")),Dg(t.Alert,"warningFilledBg",n("palette-warning-main")),Dg(t.Alert,"errorFilledColor",Lg(()=>t.getContrastText(t.error.main))),Dg(t.Alert,"infoFilledColor",Lg(()=>t.getContrastText(t.info.main))),Dg(t.Alert,"successFilledColor",Lg(()=>t.getContrastText(t.success.main))),Dg(t.Alert,"warningFilledColor",Lg(()=>t.getContrastText(t.warning.main))),Dg(t.Alert,"errorStandardBg",r(ym,t.error.light,.9)),Dg(t.Alert,"infoStandardBg",r(ym,t.info.light,.9)),Dg(t.Alert,"successStandardBg",r(ym,t.success.light,.9)),Dg(t.Alert,"warningStandardBg",r(ym,t.warning.light,.9)),Dg(t.Alert,"errorIconColor",n("palette-error-main")),Dg(t.Alert,"infoIconColor",n("palette-info-main")),Dg(t.Alert,"successIconColor",n("palette-success-main")),Dg(t.Alert,"warningIconColor",n("palette-warning-main")),Dg(t.AppBar,"defaultBg",n("palette-grey-100")),Dg(t.Avatar,"defaultBg",n("palette-grey-400")),Dg(t.Button,"inheritContainedBg",n("palette-grey-300")),Dg(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Dg(t.Chip,"defaultBorder",n("palette-grey-400")),Dg(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Dg(t.Chip,"defaultIconColor",n("palette-grey-700")),Dg(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Dg(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Dg(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Dg(t.LinearProgress,"primaryBg",r(ym,t.primary.main,.62)),Dg(t.LinearProgress,"secondaryBg",r(ym,t.secondary.main,.62)),Dg(t.LinearProgress,"errorBg",r(ym,t.error.main,.62)),Dg(t.LinearProgress,"infoBg",r(ym,t.info.main,.62)),Dg(t.LinearProgress,"successBg",r(ym,t.success.main,.62)),Dg(t.LinearProgress,"warningBg",r(ym,t.warning.main,.62)),Dg(t.Skeleton,"bg",b?r(pm,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Dg(t.Slider,"primaryTrack",r(ym,t.primary.main,.62)),Dg(t.Slider,"secondaryTrack",r(ym,t.secondary.main,.62)),Dg(t.Slider,"errorTrack",r(ym,t.error.main,.62)),Dg(t.Slider,"infoTrack",r(ym,t.info.main,.62)),Dg(t.Slider,"successTrack",r(ym,t.success.main,.62)),Dg(t.Slider,"warningTrack",r(ym,t.warning.main,.62));const e=b?r(mm,t.background.default,.6825):vm(t.background.default,.8);Dg(t.SnackbarContent,"bg",e),Dg(t.SnackbarContent,"color",Lg(()=>b?lg.text.primary:t.getContrastText(e))),Dg(t.SpeedDialAction,"fabHoverBg",vm(t.background.paper,.15)),Dg(t.StepConnector,"border",n("palette-grey-400")),Dg(t.StepContent,"border",n("palette-grey-400")),Dg(t.Switch,"defaultColor",n("palette-common-white")),Dg(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Dg(t.Switch,"primaryDisabledColor",r(ym,t.primary.main,.62)),Dg(t.Switch,"secondaryDisabledColor",r(ym,t.secondary.main,.62)),Dg(t.Switch,"errorDisabledColor",r(ym,t.error.main,.62)),Dg(t.Switch,"infoDisabledColor",r(ym,t.info.main,.62)),Dg(t.Switch,"successDisabledColor",r(ym,t.success.main,.62)),Dg(t.Switch,"warningDisabledColor",r(ym,t.warning.main,.62)),Dg(t.TableCell,"border",r(ym,r(pm,t.divider,1),.88)),Dg(t.Tooltip,"bg",r(pm,t.grey[700],.92))}if("dark"===t.mode){Dg(t.Alert,"errorColor",r(ym,t.error.light,.6)),Dg(t.Alert,"infoColor",r(ym,t.info.light,.6)),Dg(t.Alert,"successColor",r(ym,t.success.light,.6)),Dg(t.Alert,"warningColor",r(ym,t.warning.light,.6)),Dg(t.Alert,"errorFilledBg",n("palette-error-dark")),Dg(t.Alert,"infoFilledBg",n("palette-info-dark")),Dg(t.Alert,"successFilledBg",n("palette-success-dark")),Dg(t.Alert,"warningFilledBg",n("palette-warning-dark")),Dg(t.Alert,"errorFilledColor",Lg(()=>t.getContrastText(t.error.dark))),Dg(t.Alert,"infoFilledColor",Lg(()=>t.getContrastText(t.info.dark))),Dg(t.Alert,"successFilledColor",Lg(()=>t.getContrastText(t.success.dark))),Dg(t.Alert,"warningFilledColor",Lg(()=>t.getContrastText(t.warning.dark))),Dg(t.Alert,"errorStandardBg",r(mm,t.error.light,.9)),Dg(t.Alert,"infoStandardBg",r(mm,t.info.light,.9)),Dg(t.Alert,"successStandardBg",r(mm,t.success.light,.9)),Dg(t.Alert,"warningStandardBg",r(mm,t.warning.light,.9)),Dg(t.Alert,"errorIconColor",n("palette-error-main")),Dg(t.Alert,"infoIconColor",n("palette-info-main")),Dg(t.Alert,"successIconColor",n("palette-success-main")),Dg(t.Alert,"warningIconColor",n("palette-warning-main")),Dg(t.AppBar,"defaultBg",n("palette-grey-900")),Dg(t.AppBar,"darkBg",n("palette-background-paper")),Dg(t.AppBar,"darkColor",n("palette-text-primary")),Dg(t.Avatar,"defaultBg",n("palette-grey-600")),Dg(t.Button,"inheritContainedBg",n("palette-grey-800")),Dg(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Dg(t.Chip,"defaultBorder",n("palette-grey-700")),Dg(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Dg(t.Chip,"defaultIconColor",n("palette-grey-300")),Dg(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Dg(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Dg(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Dg(t.LinearProgress,"primaryBg",r(mm,t.primary.main,.5)),Dg(t.LinearProgress,"secondaryBg",r(mm,t.secondary.main,.5)),Dg(t.LinearProgress,"errorBg",r(mm,t.error.main,.5)),Dg(t.LinearProgress,"infoBg",r(mm,t.info.main,.5)),Dg(t.LinearProgress,"successBg",r(mm,t.success.main,.5)),Dg(t.LinearProgress,"warningBg",r(mm,t.warning.main,.5)),Dg(t.Skeleton,"bg",b?r(pm,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Dg(t.Slider,"primaryTrack",r(mm,t.primary.main,.5)),Dg(t.Slider,"secondaryTrack",r(mm,t.secondary.main,.5)),Dg(t.Slider,"errorTrack",r(mm,t.error.main,.5)),Dg(t.Slider,"infoTrack",r(mm,t.info.main,.5)),Dg(t.Slider,"successTrack",r(mm,t.success.main,.5)),Dg(t.Slider,"warningTrack",r(mm,t.warning.main,.5));const e=b?r(ym,t.background.default,.985):vm(t.background.default,.98);Dg(t.SnackbarContent,"bg",e),Dg(t.SnackbarContent,"color",Lg(()=>b?ig.text.primary:t.getContrastText(e))),Dg(t.SpeedDialAction,"fabHoverBg",vm(t.background.paper,.15)),Dg(t.StepConnector,"border",n("palette-grey-600")),Dg(t.StepContent,"border",n("palette-grey-600")),Dg(t.Switch,"defaultColor",n("palette-grey-300")),Dg(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Dg(t.Switch,"primaryDisabledColor",r(mm,t.primary.main,.55)),Dg(t.Switch,"secondaryDisabledColor",r(mm,t.secondary.main,.55)),Dg(t.Switch,"errorDisabledColor",r(mm,t.error.main,.55)),Dg(t.Switch,"infoDisabledColor",r(mm,t.info.main,.55)),Dg(t.Switch,"successDisabledColor",r(mm,t.success.main,.55)),Dg(t.Switch,"warningDisabledColor",r(mm,t.warning.main,.55)),Dg(t.TableCell,"border",r(mm,r(pm,t.divider,1),.68)),Dg(t.Tooltip,"bg",r(pm,t.grey[700],.92))}Fg(t.background,"default"),Fg(t.background,"paper"),Fg(t.common,"background"),Fg(t.common,"onBackground"),Fg(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Dg(t[e],"mainChannel",lm(Ag(n.main))),n.light&&Dg(t[e],"lightChannel",lm(Ag(n.light))),n.dark&&Dg(t[e],"darkChannel",lm(Ag(n.dark))),n.contrastText&&Dg(t[e],"contrastTextChannel",lm(Ag(n.contrastText))),"text"===e&&(Fg(t[e],"primary"),Fg(t[e],"secondary")),"action"===e&&(n.active&&Fg(t[e],"active"),n.selected&&Fg(t[e],"selected")))})}),C=t.reduce((e,t)=>Qd(e,t),C);const k={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Tg(C),enableContrastVars:i},{vars:_,generateThemeVars:E,generateStyleSheets:R}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:i={},components:s,defaultColorScheme:l="light",...u}=e,{vars:c,css:d,varsWithDefaults:f}=km(u,t);let p=f;const h={},{[l]:m,...g}=i;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:a}=km(n,t);p=Qd(p,a),h[e]={css:o,vars:r}}),m){const{css:e,vars:n,varsWithDefaults:r}=km(m,t);p=Qd(p,r),h[l]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach(([,{vars:t}])=>{e=Qd(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...u}=h;if(l){const{css:e}=l,t=i[o]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...a}),a)}return Object.entries(u).forEach(([e,{css:t}])=>{const o=i[e]?.palette?.mode,a=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(C,k);return C.vars=_,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=E,C.generateStyleSheets=R,C.generateSpacing=function(){return Yh(c.spacing,mf(this))},C.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...Gf,...c?.unstable_sxConfig},C.unstable_sx=function(e){return Kf({sx:e,theme:this})},C.toRuntimeSource=_g,C}function $g(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:dg({...!0===n?{}:n.palette,mode:t})})}const Hg=function(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:a=n?.mode,...i}=e,s=a||"light",l=o?.[s],u={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return Ng(e,...t);let r=n;"palette"in e||u[s]&&(!0!==u[s]?r=u[s].palette:"dark"===s&&(r={mode:"dark"}));const o=Ng({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=u,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==u.light&&u.light,palette:o.palette},$g(o,"dark",u.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:o.palette},$g(o,"light",u.light)),o}return n||"light"in u||"light"!==s||(u.light=!0),zg({...i,colorSchemes:u,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}();const Vg=function(e={}){const{themeId:t,defaultTheme:n=Qh,rootShouldForwardProp:r=Zh,slotShouldForwardProp:o=Zh}=e;function a(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Kf));const{name:n,slot:i,skipVariantsResolver:s,skipSx:l,overridesResolver:u=Jh(rm(i)),...c}=t,d=n&&n.startsWith("Mui")||i?"components":"custom",f=void 0!==s?s:i&&"Root"!==i&&"root"!==i||!1,p=l||!1;let h=Zh;"Root"===i||"root"===i?h=r:i?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=
58
+ */T.forwardRef(({className:e,inset:t,children:n,...r},o)=>m.jsxs(ld,{ref:o,className:Ao("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 data-[state=open]:bg-neutral-100 dark:focus:bg-neutral-800 dark:data-[state=open]:bg-neutral-800",t&&"pl-8",e),...r,children:[n,m.jsx(vd,{className:"ml-auto h-4 w-4"})]})).displayName=ld.displayName;T.forwardRef(({className:e,...t},n)=>m.jsx(ud,{ref:n,className:Ao("z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...t})).displayName=ud.displayName;const Ed=T.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(ed,{children:m.jsx(td,{ref:r,sideOffset:t,className:Ao("z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-[0_8px_14px_0_#0F2A510A] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...n})}));Ed.displayName=td.displayName;const Rd=T.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(rd,{ref:r,className:Ao("relative flex cursor-default select-none items-center rounded-sm px-2 py-2.5 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",t&&"pl-8",e),...n}));Rd.displayName=rd.displayName;T.forwardRef(({className:e,children:t,checked:n,...r},o)=>m.jsxs(od,{ref:o,className:Ao("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),checked:n,...r,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(id,{children:m.jsx(gd,{className:"h-4 w-4"})})}),t]})).displayName=od.displayName;T.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(ad,{ref:r,className:Ao("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(id,{children:m.jsx(xd,{className:"h-2 w-2 fill-current"})})}),t]})).displayName=ad.displayName;T.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(nd,{ref:r,className:Ao("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n})).displayName=nd.displayName;function Nd(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let e=0;e<a.length;e+=1){const r=a[e];r&&(i+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(i+=" "+n[r]))}r[o]=i}return r}T.forwardRef(({className:e,...t},n)=>m.jsx(sd,{ref:n,className:Ao("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t})).displayName=sd.displayName;const jd=e=>e,Pd=(()=>{let e=jd;return{configure(t){e=t},generate:t=>e(t),reset(){e=jd}}})(),Od={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Md(e,t,n="Mui"){const r=Od[t];return r?`${n}-${r}`:`${Pd.generate(e)}-${t}`}function Td(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Md(e,t,n)}),r}function Dd(e){return Md("MuiPagination",e)}function Ad(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:l,page:u,showFirstButton:c=!1,showLastButton:d=!1,siblingCount:f=1,...p}=e,[h,m]=function(e){const{controlled:t,default:n}=e,{current:r}=T.useRef(void 0!==t),[o,a]=T.useState(n);return[r?t:o,T.useCallback(e=>{r||a(e)},[])]}({controlled:u,default:o}),g=(e,t)=>{u||m(t),l&&l(e,t)},y=(e,t)=>{const n=t-e+1;return Array.from({length:n},(t,n)=>e+n)},v=y(1,Math.min(t,r)),b=y(Math.max(r-t+1,t+1),r),w=Math.max(Math.min(h-f,r-t-2*f-1),t+2),x=Math.min(Math.max(h+f,t+2*f+2),r-t-1),C=[...c?["first"]:[],...s?[]:["previous"],...v,...w>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...y(w,x),...x<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...b,...i?[]:["next"],...d?["last"]:[]],S=e=>{switch(e){case"first":return 1;case"previous":return h-1;case"next":return h+1;case"last":return r;default:return null}};return{items:C.map(e=>"number"==typeof e?{onClick:t=>{g(t,e)},type:"page",page:e,selected:e===h,disabled:a,"aria-current":e===h?"page":void 0}:{onClick:t=>{g(t,S(e))},type:e,page:S(e),selected:!1,disabled:a||!e.includes("ellipsis")&&("next"===e||"last"===e?h>=r:h<=1)}),...p}}Td("MuiPagination",["root","ul","outlined","text"]);const Fd=T.createContext();function Ld(e){return Md("MuiPaginationItem",e)}const Id=Td("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]);function zd(e){try{return e.matches(":focus-visible")}catch(e){}return!1}function $d(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Hd(e){if("string"!=typeof e)throw new Error($d(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Vd,Bd,Ud={exports:{}},Wd={};function Yd(){if(Vd)return Wd;Vd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case u:case f:return p;default:switch(p=p&&p.$$typeof){case i:case s:case d:case c:case a:return p;default:return h}}case t:return h}}}return Wd.ContextConsumer=a,Wd.ContextProvider=i,Wd.Element=e,Wd.ForwardRef=s,Wd.Fragment=n,Wd.Lazy=d,Wd.Memo=c,Wd.Portal=t,Wd.Profiler=o,Wd.StrictMode=r,Wd.Suspense=l,Wd.SuspenseList=u,Wd.isContextConsumer=function(e){return h(e)===a},Wd.isContextProvider=function(e){return h(e)===i},Wd.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Wd.isForwardRef=function(e){return h(e)===s},Wd.isFragment=function(e){return h(e)===n},Wd.isLazy=function(e){return h(e)===d},Wd.isMemo=function(e){return h(e)===c},Wd.isPortal=function(e){return h(e)===t},Wd.isProfiler=function(e){return h(e)===o},Wd.isStrictMode=function(e){return h(e)===r},Wd.isSuspense=function(e){return h(e)===l},Wd.isSuspenseList=function(e){return h(e)===u},Wd.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},Wd.typeOf=h,Wd}function qd(){return Bd||(Bd=1,Ud.exports=Yd()),Ud.exports}var Gd=qd();function Kd(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Qd(e){if(T.isValidElement(e)||Gd.isValidElementType(e)||!Kd(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Qd(e[n])}),t}function Zd(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Kd(e)&&Kd(t)&&Object.keys(t).forEach(o=>{T.isValidElement(t[o])||Gd.isValidElementType(t[o])?r[o]=t[o]:Kd(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Kd(e[o])?r[o]=Zd(e[o],t[o],n):n.clone?r[o]=Kd(t[o])?Qd(t[o]):t[o]:r[o]=t[o]}),r}function Xd(e,t){return t?Zd(e,t,{clone:!1}):e}function Jd(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const ef={xs:0,sm:600,md:900,lg:1200,xl:1536},tf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ef[e]}px)`},nf={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:ef[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function rf(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||tf;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){const e=r.breakpoints||tf;return Object.keys(t).reduce((o,a)=>{if(i=e.keys,"@"===(s=a)||s.startsWith("@")&&(i.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}(r.containerQueries?r:nf,a);e&&(o[e]=n(t[a],a))}else if(Object.keys(e.values||ef).includes(a)){o[e.up(a)]=n(t[a],a)}else{const e=a;o[e]=t[e]}var i,s;return o},{})}return n(t)}function of(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function af(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function sf(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:af(e,n)||r,t&&(o=t(o,r,e)),o}function lf(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=af(e.theme,r)||{};return rf(e,a,e=>{let r=sf(i,o,e);return e===r&&"string"==typeof e&&(r=sf(i,o,`${t}${"default"===e?"":Hd(e)}`,e)),!1===n?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}const uf={m:"margin",p:"padding"},cf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},df={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ff=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!df[e])return[e];e=df[e]}const[t,n]=e.split(""),r=uf[t],o=cf[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),pf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function mf(e,t,n,r){const o=af(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function gf(e){return mf(e,"spacing",8)}function yf(e,t){return"string"==typeof t||null==t?t:e(t)}function vf(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=yf(t,n),e),{})}(ff(n),r);return rf(e,e[n],o)}function bf(e,t){const n=gf(e.theme);return Object.keys(e).map(r=>vf(e,t,r,n)).reduce(Xd,{})}function wf(e){return bf(e,pf)}function xf(e){return bf(e,hf)}function Cf(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Xd(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Sf(e){return"number"!=typeof e?e:`${e}px solid`}function kf(e,t){return lf({prop:e,themeKey:"borders",transform:t})}wf.propTypes={},wf.filterProps=pf,xf.propTypes={},xf.filterProps=hf;const _f=kf("border",Sf),Ef=kf("borderTop",Sf),Rf=kf("borderRight",Sf),Nf=kf("borderBottom",Sf),jf=kf("borderLeft",Sf),Pf=kf("borderColor"),Of=kf("borderTopColor"),Mf=kf("borderRightColor"),Tf=kf("borderBottomColor"),Df=kf("borderLeftColor"),Af=kf("outline",Sf),Ff=kf("outlineColor"),Lf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=mf(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:yf(t,e)});return rf(e,e.borderRadius,n)}return null};Lf.propTypes={},Lf.filterProps=["borderRadius"],Cf(_f,Ef,Rf,Nf,jf,Pf,Of,Mf,Tf,Df,Lf,Af,Ff);const If=e=>{if(void 0!==e.gap&&null!==e.gap){const t=mf(e.theme,"spacing",8),n=e=>({gap:yf(t,e)});return rf(e,e.gap,n)}return null};If.propTypes={},If.filterProps=["gap"];const zf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=mf(e.theme,"spacing",8),n=e=>({columnGap:yf(t,e)});return rf(e,e.columnGap,n)}return null};zf.propTypes={},zf.filterProps=["columnGap"];const $f=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=mf(e.theme,"spacing",8),n=e=>({rowGap:yf(t,e)});return rf(e,e.rowGap,n)}return null};$f.propTypes={},$f.filterProps=["rowGap"];function Hf(e,t){return"grey"===t?t:e}Cf(If,zf,$f,lf({prop:"gridColumn"}),lf({prop:"gridRow"}),lf({prop:"gridAutoFlow"}),lf({prop:"gridAutoColumns"}),lf({prop:"gridAutoRows"}),lf({prop:"gridTemplateColumns"}),lf({prop:"gridTemplateRows"}),lf({prop:"gridTemplateAreas"}),lf({prop:"gridArea"}));function Vf(e){return e<=1&&0!==e?100*e+"%":e}Cf(lf({prop:"color",themeKey:"palette",transform:Hf}),lf({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hf}),lf({prop:"backgroundColor",themeKey:"palette",transform:Hf}));const Bf=lf({prop:"width",transform:Vf}),Uf=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||ef[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Vf(t)}};return rf(e,e.maxWidth,t)}return null};Uf.filterProps=["maxWidth"];const Wf=lf({prop:"minWidth",transform:Vf}),Yf=lf({prop:"height",transform:Vf}),qf=lf({prop:"maxHeight",transform:Vf}),Gf=lf({prop:"minHeight",transform:Vf});lf({prop:"size",cssProperty:"width",transform:Vf}),lf({prop:"size",cssProperty:"height",transform:Vf});Cf(Bf,Uf,Wf,Yf,qf,Gf,lf({prop:"boxSizing"}));const Kf={border:{themeKey:"borders",transform:Sf},borderTop:{themeKey:"borders",transform:Sf},borderRight:{themeKey:"borders",transform:Sf},borderBottom:{themeKey:"borders",transform:Sf},borderLeft:{themeKey:"borders",transform:Sf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Sf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Lf},color:{themeKey:"palette",transform:Hf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hf},backgroundColor:{themeKey:"palette",transform:Hf},p:{style:xf},pt:{style:xf},pr:{style:xf},pb:{style:xf},pl:{style:xf},px:{style:xf},py:{style:xf},padding:{style:xf},paddingTop:{style:xf},paddingRight:{style:xf},paddingBottom:{style:xf},paddingLeft:{style:xf},paddingX:{style:xf},paddingY:{style:xf},paddingInline:{style:xf},paddingInlineStart:{style:xf},paddingInlineEnd:{style:xf},paddingBlock:{style:xf},paddingBlockStart:{style:xf},paddingBlockEnd:{style:xf},m:{style:wf},mt:{style:wf},mr:{style:wf},mb:{style:wf},ml:{style:wf},mx:{style:wf},my:{style:wf},margin:{style:wf},marginTop:{style:wf},marginRight:{style:wf},marginBottom:{style:wf},marginLeft:{style:wf},marginX:{style:wf},marginY:{style:wf},marginInline:{style:wf},marginInlineStart:{style:wf},marginInlineEnd:{style:wf},marginBlock:{style:wf},marginBlockStart:{style:wf},marginBlockEnd:{style:wf},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:If},rowGap:{style:$f},columnGap:{style:zf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vf},maxWidth:{style:Uf},minWidth:{transform:Vf},height:{transform:Vf},maxHeight:{transform:Vf},minHeight:{transform:Vf},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Qf=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:u}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=af(n,s)||{};if(u)return u(o);return rf(o,t,t=>{let n=sf(c,l,t);return t===n&&"string"==typeof t&&(n=sf(c,l,`${e}${"default"===t?"":Hd(t)}`,t)),!1===i?n:{[i]:n}})}return function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Kf;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(o.breakpoints),l=Object.keys(s);let u=s;return Object.keys(r).forEach(n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=a)if("object"==typeof a)if(i[n])u=Xd(u,e(n,a,o,i));else{const e=rf({theme:o},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?u=Xd(u,e):u[n]=t({sx:a,theme:o,nested:!0})}else u=Xd(u,e(n,a,o,i))}),!a&&o.modularCssLayers?{"@layer sx":Jd(o,of(l,u))}:Jd(o,of(l,u))}return Array.isArray(r)?r.map(s):s(r)}}();function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zf.apply(null,arguments)}Qf.filterProps=["sx"];var Xf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Jf="-ms-",ep="-moz-",tp="-webkit-",np="comm",rp="rule",op="decl",ap="@keyframes",ip=Math.abs,sp=String.fromCharCode,lp=Object.assign;function up(e){return e.trim()}function cp(e,t,n){return e.replace(t,n)}function dp(e,t){return e.indexOf(t)}function fp(e,t){return 0|e.charCodeAt(t)}function pp(e,t,n){return e.slice(t,n)}function hp(e){return e.length}function mp(e){return e.length}function gp(e,t){return t.push(e),e}var yp=1,vp=1,bp=0,wp=0,xp=0,Cp="";function Sp(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:yp,column:vp,length:i,return:""}}function kp(e,t){return lp(Sp("",null,null,"",null,null,0),e,{length:-e.length},t)}function _p(){return xp=wp>0?fp(Cp,--wp):0,vp--,10===xp&&(vp=1,yp--),xp}function Ep(){return xp=wp<bp?fp(Cp,wp++):0,vp++,10===xp&&(vp=1,yp++),xp}function Rp(){return fp(Cp,wp)}function Np(){return wp}function jp(e,t){return pp(Cp,e,t)}function Pp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Op(e){return yp=vp=1,bp=hp(Cp=e),wp=0,[]}function Mp(e){return Cp="",e}function Tp(e){return up(jp(wp-1,Fp(91===e?e+2:40===e?e+1:e)))}function Dp(e){for(;(xp=Rp())&&xp<33;)Ep();return Pp(e)>2||Pp(xp)>3?"":" "}function Ap(e,t){for(;--t&&Ep()&&!(xp<48||xp>102||xp>57&&xp<65||xp>70&&xp<97););return jp(e,Np()+(t<6&&32==Rp()&&32==Ep()))}function Fp(e){for(;Ep();)switch(xp){case e:return wp;case 34:case 39:34!==e&&39!==e&&Fp(xp);break;case 40:41===e&&Fp(e);break;case 92:Ep()}return wp}function Lp(e,t){for(;Ep()&&e+xp!==57&&(e+xp!==84||47!==Rp()););return"/*"+jp(t,wp-1)+"*"+sp(47===e?e:Ep())}function Ip(e){for(;!Pp(Rp());)Ep();return jp(e,wp)}function zp(e){return Mp($p("",null,null,null,[""],e=Op(e),0,[0],e))}function $p(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,x=a,C=r,S=b;g;)switch(h=v,v=Ep()){case 40:if(108!=h&&58==fp(S,d-1)){-1!=dp(S+=cp(Tp(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=Tp(v);break;case 9:case 10:case 13:case 32:S+=Dp(h);break;case 92:S+=Ap(Np()-1,7);continue;case 47:switch(Rp()){case 42:case 47:gp(Vp(Lp(Ep(),Np()),t,n),l);break;default:S+="/"}break;case 123*m:s[u++]=hp(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(S=cp(S,/\f/g,"")),p>0&&hp(S)-d&&gp(p>32?Bp(S+";",r,n,d-1):Bp(cp(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(gp(C=Hp(S,t,n,u,c,o,s,b,w=[],x=[],d),a),123===v)if(0===c)$p(S,t,C,C,w,a,d,s,x);else switch(99===f&&110===fp(S,3)?100:f){case 100:case 108:case 109:case 115:$p(e,C,C,r&&gp(Hp(e,C,C,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:$p(S,C,C,C,[""],x,0,s,x)}}u=c=p=0,m=y=1,b=S="",d=i;break;case 58:d=1+hp(S),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==_p())continue;switch(S+=sp(v),v*m){case 38:y=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(hp(S)-1)*y,y=1;break;case 64:45===Rp()&&(S+=Tp(Ep())),f=Rp(),c=d=hp(b=S+=Ip(Np())),v++;break;case 45:45===h&&2==hp(S)&&(m=0)}}return a}function Hp(e,t,n,r,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=mp(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=pp(e,d+1,d=ip(m=i[h])),b=e;y<p;++y)(b=up(m>0?f[y]+" "+v:cp(v,/&\f/g,f[y])))&&(l[g++]=b);return Sp(e,t,n,0===o?rp:s,l,u,c)}function Vp(e,t,n){return Sp(e,t,n,np,sp(xp),pp(e,2,-2),0)}function Bp(e,t,n,r){return Sp(e,t,n,op,pp(e,0,r),pp(e,r+1,-1),r)}function Up(e,t){for(var n="",r=mp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Wp(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case op:return e.return=e.return||e.value;case np:return"";case ap:return e.return=e.value+"{"+Up(e.children,r)+"}";case rp:e.value=e.props.join(",")}return hp(n=Up(e.children,r))?e.return=e.value+"{"+n+"}":""}function Yp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var qp=function(e,t,n){for(var r=0,o=0;r=o,o=Rp(),38===r&&12===o&&(t[n]=1),!Pp(o);)Ep();return jp(e,wp)},Gp=function(e,t){return Mp(function(e,t){var n=-1,r=44;do{switch(Pp(r)){case 0:38===r&&12===Rp()&&(t[n]=1),e[n]+=qp(wp-1,t,n);break;case 2:e[n]+=Tp(r);break;case 4:if(44===r){e[++n]=58===Rp()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=sp(r)}}while(r=Ep());return e}(Op(e),t))},Kp=new WeakMap,Qp=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Kp.get(n))&&!r){Kp.set(e,!0);for(var o=[],a=Gp(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Zp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Xp(e,t){switch(function(e,t){return 45^fp(e,0)?(((t<<2^fp(e,0))<<2^fp(e,1))<<2^fp(e,2))<<2^fp(e,3):0}(e,t)){case 5103:return tp+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return tp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return tp+e+ep+e+Jf+e+e;case 6828:case 4268:return tp+e+Jf+e+e;case 6165:return tp+e+Jf+"flex-"+e+e;case 5187:return tp+e+cp(e,/(\w+).+(:[^]+)/,tp+"box-$1$2"+Jf+"flex-$1$2")+e;case 5443:return tp+e+Jf+"flex-item-"+cp(e,/flex-|-self/,"")+e;case 4675:return tp+e+Jf+"flex-line-pack"+cp(e,/align-content|flex-|-self/,"")+e;case 5548:return tp+e+Jf+cp(e,"shrink","negative")+e;case 5292:return tp+e+Jf+cp(e,"basis","preferred-size")+e;case 6060:return tp+"box-"+cp(e,"-grow","")+tp+e+Jf+cp(e,"grow","positive")+e;case 4554:return tp+cp(e,/([^-])(transform)/g,"$1"+tp+"$2")+e;case 6187:return cp(cp(cp(e,/(zoom-|grab)/,tp+"$1"),/(image-set)/,tp+"$1"),e,"")+e;case 5495:case 3959:return cp(e,/(image-set\([^]*)/,tp+"$1$`$1");case 4968:return cp(cp(e,/(.+:)(flex-)?(.*)/,tp+"box-pack:$3"+Jf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tp+e+e;case 4095:case 3583:case 4068:case 2532:return cp(e,/(.+)-inline(.+)/,tp+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(hp(e)-1-t>6)switch(fp(e,t+1)){case 109:if(45!==fp(e,t+4))break;case 102:return cp(e,/(.+:)(.+)-([^]+)/,"$1"+tp+"$2-$3$1"+ep+(108==fp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~dp(e,"stretch")?Xp(cp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==fp(e,t+1))break;case 6444:switch(fp(e,hp(e)-3-(~dp(e,"!important")&&10))){case 107:return cp(e,":",":"+tp)+e;case 101:return cp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tp+(45===fp(e,14)?"inline-":"")+"box$3$1"+tp+"$2$3$1"+Jf+"$2box$3")+e}break;case 5936:switch(fp(e,t+11)){case 114:return tp+e+Jf+cp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return tp+e+Jf+cp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return tp+e+Jf+cp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return tp+e+Jf+e+e}return e}var Jp,eh,th,nh,rh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case op:e.return=Xp(e.value,e.length);break;case ap:return Up([kp(e,{value:cp(e.value,"@","@"+tp)})],r);case rp:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Up([kp(e,{props:[cp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Up([kp(e,{props:[cp(t,/:(plac\w+)/,":"+tp+"input-$1")]}),kp(e,{props:[cp(t,/:(plac\w+)/,":-moz-$1")]}),kp(e,{props:[cp(t,/:(plac\w+)/,Jf+"input-$1")]})],r)}return""})}}],oh=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,a=e.stylisPlugins||rh,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var l,u,c=[Wp,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=mp(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}([Qp,Zp].concat(a,c));o=function(e,t,n,r){l=n,Up(zp(e?e+"{"+t.styles+"}":t.styles),d),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Xf({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f},ah={exports:{}},ih={};function sh(){return eh||(eh=1,ah.exports=function(){if(Jp)return ih;Jp=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case a:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case i:return e;default:return f}}case n:return f}}}function w(e){return b(e)===u}return ih.AsyncMode=l,ih.ConcurrentMode=u,ih.ContextConsumer=s,ih.ContextProvider=i,ih.Element=t,ih.ForwardRef=c,ih.Fragment=r,ih.Lazy=h,ih.Memo=p,ih.Portal=n,ih.Profiler=a,ih.StrictMode=o,ih.Suspense=d,ih.isAsyncMode=function(e){return w(e)||b(e)===l},ih.isConcurrentMode=w,ih.isContextConsumer=function(e){return b(e)===s},ih.isContextProvider=function(e){return b(e)===i},ih.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ih.isForwardRef=function(e){return b(e)===c},ih.isFragment=function(e){return b(e)===r},ih.isLazy=function(e){return b(e)===h},ih.isMemo=function(e){return b(e)===p},ih.isPortal=function(e){return b(e)===n},ih.isProfiler=function(e){return b(e)===a},ih.isStrictMode=function(e){return b(e)===o},ih.isSuspense=function(e){return b(e)===d},ih.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===a||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===i||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},ih.typeOf=b,ih}()),ah.exports}!function(){if(nh)return th;nh=1;var e=sh(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function a(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var i=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;th=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=a(t),m=a(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||o&&o[y]||m&&m[y]||h&&h[y])){var v=u(r,y);try{i(t,y,v)}catch(e){}}}}return t}}();function lh(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var uh=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ch=function(e,t,n){uh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var dh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fh=/[A-Z]|^ms/g,ph=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hh=function(e){return 45===e.charCodeAt(1)},mh=function(e){return null!=e&&"boolean"!=typeof e},gh=Yp(function(e){return hh(e)?e:e.replace(fh,"-$&").toLowerCase()}),yh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ph,function(e,t,n){return bh={name:t,styles:n,next:bh},t})}return 1===dh[e]||hh(e)||"number"!=typeof t||0===t?t:t+"px"};function vh(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return bh={name:o.name,styles:o.styles,next:bh},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)bh={name:i.name,styles:i.styles,next:bh},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=vh(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":mh(s)&&(r+=gh(a)+":"+yh(a,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=vh(e,t,i);switch(a){case"animation":case"animationName":r+=gh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var u=0;u<i.length;u++)mh(i[u])&&(r+=gh(a)+":"+yh(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=bh,l=n(e);return bh=s,vh(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var bh,wh=/label:\s*([^\s;{]+)\s*(;|$)/g;function xh(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";bh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=vh(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=vh(n,t,e[i]),r)o+=a[i]}wh.lastIndex=0;for(var s,l="";null!==(s=wh.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:bh}}var Ch=!!A.useInsertionEffect&&A.useInsertionEffect||function(e){return e()},Sh=T.createContext("undefined"!=typeof HTMLElement?oh({key:"css"}):null);Sh.Provider;var kh,_h,Eh=function(e){return T.forwardRef(function(t,n){var r=T.useContext(Sh);return e(t,r,n)})},Rh=T.createContext({}),Nh={}.hasOwnProperty,jh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ph=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return uh(t,n,r),Ch(function(){return ch(t,n,r)}),null},Oh=Eh(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[jh],a=[r],i="";"string"==typeof e.className?i=lh(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=xh(a,void 0,T.useContext(Rh));i+=t.key+"-"+s.name;var l={};for(var u in e)Nh.call(e,u)&&"css"!==u&&u!==jh&&(l[u]=e[u]);return l.className=i,n&&(l.ref=n),T.createElement(T.Fragment,null,T.createElement(Ph,{cache:t,serialized:s,isStringTag:"string"==typeof o}),T.createElement(o,l))}),Mh=Oh,Th=function(e,t){var n=arguments;if(null==t||!Nh.call(t,"css"))return T.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Mh,o[1]=function(e,t){var n={};for(var r in t)Nh.call(t,r)&&(n[r]=t[r]);return n[jh]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return T.createElement.apply(null,o)};function Dh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xh(t)}function Ah(){var e=Dh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}kh=Th||(Th={}),_h||(_h=kh.JSX||(kh.JSX={}));var Fh=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Lh=Yp(function(e){return Fh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Ih=function(e){return"theme"!==e},zh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Lh:Ih},$h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Hh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return uh(t,n,r),Ch(function(){return ch(t,n,r)}),null},Vh=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=$h(t,n,a),l=s||zh(i),u=!l("as");return function(){var c=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var p=c.length,h=1;h<p;h++)d.push(c[h],f[h])}var m=Eh(function(e,t,n){var r=u&&e.as||i,a="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=T.useContext(Rh)}"string"==typeof e.className?a=lh(t.registered,c,e.className):null!=e.className&&(a=e.className+" ");var h=xh(d.concat(c),t.registered,f);a+=t.key+"-"+h.name,void 0!==o&&(a+=" "+o);var m=u&&void 0===s?zh(r):l,g={};for(var y in e)u&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=a,n&&(g.ref=n),T.createElement(T.Fragment,null,T.createElement(Hh,{cache:t,serialized:h,isStringTag:"string"==typeof r}),T.createElement(r,g))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,Zf({},n,r,{shouldForwardProp:$h(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Vh[e]=Vh(e)});const Bh=[];function Uh(e){return Bh[0]=e,xh(Bh)}function Wh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return{keys:i,values:a,up:s,down:l,between:u,only:function(e){return i.indexOf(e)+1<i.length?u(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):u(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const Yh={borderRadius:4};function qh(e=8,t=gf({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function Gh(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Kh(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e;let s=Zd({breakpoints:Wh(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:qh(o),shape:{...Yh,...a}},i);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=Gh,s=t.reduce((e,t)=>Zd(e,t),s),s.unstable_sxConfig={...Kf,...i?.unstable_sxConfig},s.unstable_sx=function(e){return Qf({sx:e,theme:this})},s}function Qh(e){const{variants:t,...n}=e,r={variants:t,style:Uh(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Uh(e.style))}),r}const Zh=Kh();function Xh(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Jh(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function em(e){return e?(t,n)=>n[e]:null}function tm(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>tm(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Jh(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?Jh(Uh(o),n):o}return nm(e,r.variants,[t],n)}return r?.isProcessed?n?Jh(Uh(r.style),n):r.style:n?Jh(Uh(r),n):r}function nm(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if("function"==typeof i.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const t in i.props)if(e[t]!==i.props[t]&&e.ownerState?.[t]!==i.props[t])continue e;"function"==typeof i.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Jh(Uh(i.style(o)),r):i.style(o))):n.push(r?Jh(Uh(i.style),r):i.style)}return n}function rm(e,t){}function om(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function am(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if("components"===a||"slots"===a)r[a]={...e[a],...r[a]};else if("componentsProps"===a||"slotProps"===a){const o=e[a],i=t[a];if(i)if(o){r[a]={...i};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[a][t]=am(o[t],i[t],n)}}else r[a]=i;else r[a]=o||{}}else"className"===a&&n&&t.className?r.className=Rr(e?.className,t?.className):"style"===a&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[a]&&(r[a]=e[a])}return r}const im="undefined"!=typeof window?T.useLayoutEffect:T.useEffect;function sm(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function lm(e){if(e.type)return e;if("#"===e.charAt(0))return lm(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error($d(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error($d(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const um=(e,t)=>{try{return(e=>{const t=lm(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function cm(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function dm(e){e=lm(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),cm({type:s,values:l})}function fm(e){let t="hsl"===(e=lm(e)).type||"hsla"===e.type?lm(dm(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pm(e,t){return e=lm(e),t=sm(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,cm(e)}function hm(e,t,n){try{return pm(e,t)}catch(t){return e}}function mm(e,t){if(e=lm(e),t=sm(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return cm(e)}function gm(e,t,n){try{return mm(e,t)}catch(t){return e}}function ym(e,t){if(e=lm(e),t=sm(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return cm(e)}function vm(e,t,n){try{return ym(e,t)}catch(t){return e}}function bm(e,t,n){try{return function(e,t=.15){return fm(e)>.5?mm(e,t):ym(e,t)}(e,t)}catch(t){return e}}const wm=T.createContext(void 0);function xm({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?am(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:am(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:T.useContext(wm)}})}const Cm={theme:void 0};function Sm(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const km=(e,t,n,r=[])=>{let o=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function _m(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),km(a,e,`var(${r})`,s),km(i,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:a,varsWithDefaults:i}}const Em={black:"#000",white:"#fff"},Rm={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Nm="#f3e5f5",jm="#ce93d8",Pm="#ba68c8",Om="#ab47bc",Mm="#9c27b0",Tm="#7b1fa2",Dm="#e57373",Am="#ef5350",Fm="#f44336",Lm="#d32f2f",Im="#c62828",zm="#ffb74d",$m="#ffa726",Hm="#ff9800",Vm="#f57c00",Bm="#e65100",Um="#e3f2fd",Wm="#90caf9",Ym="#42a5f5",qm="#1976d2",Gm="#1565c0",Km="#4fc3f7",Qm="#29b6f6",Zm="#03a9f4",Xm="#0288d1",Jm="#01579b",eg="#81c784",tg="#66bb6a",ng="#4caf50",rg="#388e3c",og="#2e7d32",ag="#1b5e20";function ig(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Em.white,default:Em.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const sg=ig();function lg(){return{text:{primary:Em.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Em.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ug=lg();function cg(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=ym(e.main,o):"dark"===t&&(e.dark=mm(e.main,a)))}function dg(e,t,n,r,o){const a=o.light||o,i=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*a).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*i).toFixed(0)}%)`))}function fg(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,i=e.primary||function(e="light"){return"dark"===e?{main:Wm,light:Um,dark:Ym}:{main:qm,light:Ym,dark:Gm}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:jm,light:Nm,dark:Om}:{main:Mm,light:Pm,dark:Tm}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Fm,light:Dm,dark:Lm}:{main:Lm,light:Am,dark:Im}}(t),u=e.info||function(e="light"){return"dark"===e?{main:Qm,light:Km,dark:Xm}:{main:Xm,light:Zm,dark:Jm}}(t),c=e.success||function(e="light"){return"dark"===e?{main:tg,light:eg,dark:rg}:{main:og,light:ng,dark:ag}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:$m,light:zm,dark:Vm}:{main:"#ed6c02",light:Hm,dark:Bm}}(t);function f(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=fm(e),r=fm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ug.text.primary)>=n?ug.text.primary:sg.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error($d(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error($d(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(dg(o,e,"light",a,r),dg(o,e,"dark",i,r)):(cg(e,"light",a,r),cg(e,"dark",i,r)),e.contrastText||(e.contrastText=f(e.main)),e};let h;"light"===t?h=ig():"dark"===t&&(h=lg());return Zd({common:{...Em},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:Rm,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...h},a)}function pg(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const hg={textTransform:"uppercase"},mg='"Roboto", "Helvetica", "Arial", sans-serif';function gg(e,t){const{fontFamily:n=mg,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,f=r/14,p=c||(e=>e/l*f+"rem"),h=(e,t,r,o,a)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===mg?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},...a,...u};var i},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(i,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(i,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(i,14,1.75,.4,hg),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,hg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zd({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...m},d,{clone:!1})}function yg(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const vg=["none",yg(0,2,1,-1,0,1,1,0,0,1,3,0),yg(0,3,1,-2,0,2,2,0,0,1,5,0),yg(0,3,3,-2,0,3,4,0,0,1,8,0),yg(0,2,4,-1,0,4,5,0,0,1,10,0),yg(0,3,5,-1,0,5,8,0,0,1,14,0),yg(0,3,5,-1,0,6,10,0,0,1,18,0),yg(0,4,5,-2,0,7,10,1,0,2,16,1),yg(0,5,5,-3,0,8,10,1,0,3,14,2),yg(0,5,6,-3,0,9,12,1,0,3,16,2),yg(0,6,6,-3,0,10,14,1,0,4,18,3),yg(0,6,7,-4,0,11,15,1,0,4,20,3),yg(0,7,8,-4,0,12,17,2,0,5,22,4),yg(0,7,8,-4,0,13,19,2,0,5,24,4),yg(0,7,9,-4,0,14,21,2,0,5,26,4),yg(0,8,9,-5,0,15,22,2,0,6,28,5),yg(0,8,10,-5,0,16,24,2,0,6,30,5),yg(0,8,11,-5,0,17,26,2,0,6,32,5),yg(0,9,11,-5,0,18,28,2,0,7,34,6),yg(0,9,12,-6,0,19,29,2,0,7,36,6),yg(0,10,13,-6,0,20,31,3,0,8,38,7),yg(0,10,13,-6,0,21,33,3,0,8,40,7),yg(0,10,14,-6,0,22,35,3,0,8,42,7),yg(0,11,14,-7,0,23,36,3,0,9,44,8),yg(0,11,15,-7,0,24,38,3,0,9,46,8)],bg={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},wg={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xg(e){return`${Math.round(e)}ms`}function Cg(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Sg(e){const t={...bg,...e.easing},n={...wg,...e.duration};return{getAutoHeightDuration:Cg,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:xg(o)} ${a} ${"string"==typeof i?i:xg(i)}`).join(",")},...e,easing:t,duration:n}}const kg={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _g(e){return Kd(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function Eg(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,a]=n[r];!_g(a)||o.startsWith("unstable_")?delete t[o]:Kd(a)&&(t[o]={...a},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function Rg(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function Ng(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:pm(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Rg(n)})`:ym(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Rg(n)})`:mm(t,n)}})}function jg(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,colorSpace:u,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error($d(20));const d=fg({...a,colorSpace:u}),f=Kh(e);let p=Zd(f,{mixins:(h=f.breakpoints,m=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...m}),palette:d,shadows:vg.slice(),typography:gg(d,s),transitions:Sg(i),zIndex:{...kg}});var h,m;return p=Zd(p,c),p=t.reduce((e,t)=>Zd(e,t),p),p.unstable_sxConfig={...Kf,...c?.unstable_sxConfig},p.unstable_sx=function(e){return Qf({sx:e,theme:this})},p.toRuntimeSource=Eg,Ng(p),p}const Pg=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Og(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Mg(e){return"dark"===e?Pg:[]}function Tg(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var Dg=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if("class"===o&&(a=".%s"),"data"===o&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(i=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${i?`${i}-`:""}overlays-${t}`),`--${i?`${i}-`:""}palette-AppBar-darkBg`,`--${i?`${i}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===a?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:a?{[a.replace("%s",t)]:o,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(a&&"media"!==a)return`${r}, ${a.replace("%s",String(t))}`}else if(t){if("media"===a)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}var i;return r};function Ag(e,t,n){!e[t]&&n&&(e[t]=n)}function Fg(e){return"string"==typeof e&&e.startsWith("hsl")?dm(e):e}function Lg(e,t){`${t}Channel`in e||(e[`${t}Channel`]=um(Fg(e[t])))}const Ig=e=>{try{return e()}catch(e){}};function zg(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const a="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,i=fg({...t,colorSpace:o});return{palette:i,opacity:{...Og(i.mode),...n},overlays:r||Mg(i.mode),...a}}({...n,palette:{mode:a,...n?.palette},colorSpace:e}));const{palette:i,...s}=jg({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...Og(a),...n?.opacity},overlays:n?.overlays||Mg(a)},s}function $g(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:i=!1,shouldSkipGeneratingVar:s=Tg,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:u=":root",...c}=e,d=Object.keys(n)[0],f=r||(n.light&&"light"!==d?"light":d),p=((e="mui")=>Sm(e))(a),{[f]:h,light:m,dark:g,...y}=n,v={...y};let b,w=h;if(("dark"===f&&!("dark"in n)||"light"===f&&!("light"in n))&&(w=!0),!w)throw new Error($d(21,f));i&&(b="oklch");const x=zg(b,v,w,c,f);m&&!v.light&&zg(b,v,m,void 0,"light"),g&&!v.dark&&zg(b,v,g,void 0,"dark");let C={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:p,colorSchemes:v,font:{...pg(x.typography),...x.font},spacing:(S=c.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;Object.keys(C.colorSchemes).forEach(e=>{const t=C.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};function r(e,t,n){if(b){let r;return e===hm&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===gm&&(r=`#000 ${(100*n).toFixed(0)}%`),e===vm&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}var o;if("light"===t.mode&&(Ag(t.common,"background","#fff"),Ag(t.common,"onBackground","#000")),"dark"===t.mode&&(Ag(t.common,"background","#000"),Ag(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){Ag(t.Alert,"errorColor",r(gm,t.error.light,.6)),Ag(t.Alert,"infoColor",r(gm,t.info.light,.6)),Ag(t.Alert,"successColor",r(gm,t.success.light,.6)),Ag(t.Alert,"warningColor",r(gm,t.warning.light,.6)),Ag(t.Alert,"errorFilledBg",n("palette-error-main")),Ag(t.Alert,"infoFilledBg",n("palette-info-main")),Ag(t.Alert,"successFilledBg",n("palette-success-main")),Ag(t.Alert,"warningFilledBg",n("palette-warning-main")),Ag(t.Alert,"errorFilledColor",Ig(()=>t.getContrastText(t.error.main))),Ag(t.Alert,"infoFilledColor",Ig(()=>t.getContrastText(t.info.main))),Ag(t.Alert,"successFilledColor",Ig(()=>t.getContrastText(t.success.main))),Ag(t.Alert,"warningFilledColor",Ig(()=>t.getContrastText(t.warning.main))),Ag(t.Alert,"errorStandardBg",r(vm,t.error.light,.9)),Ag(t.Alert,"infoStandardBg",r(vm,t.info.light,.9)),Ag(t.Alert,"successStandardBg",r(vm,t.success.light,.9)),Ag(t.Alert,"warningStandardBg",r(vm,t.warning.light,.9)),Ag(t.Alert,"errorIconColor",n("palette-error-main")),Ag(t.Alert,"infoIconColor",n("palette-info-main")),Ag(t.Alert,"successIconColor",n("palette-success-main")),Ag(t.Alert,"warningIconColor",n("palette-warning-main")),Ag(t.AppBar,"defaultBg",n("palette-grey-100")),Ag(t.Avatar,"defaultBg",n("palette-grey-400")),Ag(t.Button,"inheritContainedBg",n("palette-grey-300")),Ag(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Ag(t.Chip,"defaultBorder",n("palette-grey-400")),Ag(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Ag(t.Chip,"defaultIconColor",n("palette-grey-700")),Ag(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ag(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ag(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ag(t.LinearProgress,"primaryBg",r(vm,t.primary.main,.62)),Ag(t.LinearProgress,"secondaryBg",r(vm,t.secondary.main,.62)),Ag(t.LinearProgress,"errorBg",r(vm,t.error.main,.62)),Ag(t.LinearProgress,"infoBg",r(vm,t.info.main,.62)),Ag(t.LinearProgress,"successBg",r(vm,t.success.main,.62)),Ag(t.LinearProgress,"warningBg",r(vm,t.warning.main,.62)),Ag(t.Skeleton,"bg",b?r(hm,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Ag(t.Slider,"primaryTrack",r(vm,t.primary.main,.62)),Ag(t.Slider,"secondaryTrack",r(vm,t.secondary.main,.62)),Ag(t.Slider,"errorTrack",r(vm,t.error.main,.62)),Ag(t.Slider,"infoTrack",r(vm,t.info.main,.62)),Ag(t.Slider,"successTrack",r(vm,t.success.main,.62)),Ag(t.Slider,"warningTrack",r(vm,t.warning.main,.62));const e=b?r(gm,t.background.default,.6825):bm(t.background.default,.8);Ag(t.SnackbarContent,"bg",e),Ag(t.SnackbarContent,"color",Ig(()=>b?ug.text.primary:t.getContrastText(e))),Ag(t.SpeedDialAction,"fabHoverBg",bm(t.background.paper,.15)),Ag(t.StepConnector,"border",n("palette-grey-400")),Ag(t.StepContent,"border",n("palette-grey-400")),Ag(t.Switch,"defaultColor",n("palette-common-white")),Ag(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Ag(t.Switch,"primaryDisabledColor",r(vm,t.primary.main,.62)),Ag(t.Switch,"secondaryDisabledColor",r(vm,t.secondary.main,.62)),Ag(t.Switch,"errorDisabledColor",r(vm,t.error.main,.62)),Ag(t.Switch,"infoDisabledColor",r(vm,t.info.main,.62)),Ag(t.Switch,"successDisabledColor",r(vm,t.success.main,.62)),Ag(t.Switch,"warningDisabledColor",r(vm,t.warning.main,.62)),Ag(t.TableCell,"border",r(vm,r(hm,t.divider,1),.88)),Ag(t.Tooltip,"bg",r(hm,t.grey[700],.92))}if("dark"===t.mode){Ag(t.Alert,"errorColor",r(vm,t.error.light,.6)),Ag(t.Alert,"infoColor",r(vm,t.info.light,.6)),Ag(t.Alert,"successColor",r(vm,t.success.light,.6)),Ag(t.Alert,"warningColor",r(vm,t.warning.light,.6)),Ag(t.Alert,"errorFilledBg",n("palette-error-dark")),Ag(t.Alert,"infoFilledBg",n("palette-info-dark")),Ag(t.Alert,"successFilledBg",n("palette-success-dark")),Ag(t.Alert,"warningFilledBg",n("palette-warning-dark")),Ag(t.Alert,"errorFilledColor",Ig(()=>t.getContrastText(t.error.dark))),Ag(t.Alert,"infoFilledColor",Ig(()=>t.getContrastText(t.info.dark))),Ag(t.Alert,"successFilledColor",Ig(()=>t.getContrastText(t.success.dark))),Ag(t.Alert,"warningFilledColor",Ig(()=>t.getContrastText(t.warning.dark))),Ag(t.Alert,"errorStandardBg",r(gm,t.error.light,.9)),Ag(t.Alert,"infoStandardBg",r(gm,t.info.light,.9)),Ag(t.Alert,"successStandardBg",r(gm,t.success.light,.9)),Ag(t.Alert,"warningStandardBg",r(gm,t.warning.light,.9)),Ag(t.Alert,"errorIconColor",n("palette-error-main")),Ag(t.Alert,"infoIconColor",n("palette-info-main")),Ag(t.Alert,"successIconColor",n("palette-success-main")),Ag(t.Alert,"warningIconColor",n("palette-warning-main")),Ag(t.AppBar,"defaultBg",n("palette-grey-900")),Ag(t.AppBar,"darkBg",n("palette-background-paper")),Ag(t.AppBar,"darkColor",n("palette-text-primary")),Ag(t.Avatar,"defaultBg",n("palette-grey-600")),Ag(t.Button,"inheritContainedBg",n("palette-grey-800")),Ag(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Ag(t.Chip,"defaultBorder",n("palette-grey-700")),Ag(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Ag(t.Chip,"defaultIconColor",n("palette-grey-300")),Ag(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ag(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ag(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ag(t.LinearProgress,"primaryBg",r(gm,t.primary.main,.5)),Ag(t.LinearProgress,"secondaryBg",r(gm,t.secondary.main,.5)),Ag(t.LinearProgress,"errorBg",r(gm,t.error.main,.5)),Ag(t.LinearProgress,"infoBg",r(gm,t.info.main,.5)),Ag(t.LinearProgress,"successBg",r(gm,t.success.main,.5)),Ag(t.LinearProgress,"warningBg",r(gm,t.warning.main,.5)),Ag(t.Skeleton,"bg",b?r(hm,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Ag(t.Slider,"primaryTrack",r(gm,t.primary.main,.5)),Ag(t.Slider,"secondaryTrack",r(gm,t.secondary.main,.5)),Ag(t.Slider,"errorTrack",r(gm,t.error.main,.5)),Ag(t.Slider,"infoTrack",r(gm,t.info.main,.5)),Ag(t.Slider,"successTrack",r(gm,t.success.main,.5)),Ag(t.Slider,"warningTrack",r(gm,t.warning.main,.5));const e=b?r(vm,t.background.default,.985):bm(t.background.default,.98);Ag(t.SnackbarContent,"bg",e),Ag(t.SnackbarContent,"color",Ig(()=>b?sg.text.primary:t.getContrastText(e))),Ag(t.SpeedDialAction,"fabHoverBg",bm(t.background.paper,.15)),Ag(t.StepConnector,"border",n("palette-grey-600")),Ag(t.StepContent,"border",n("palette-grey-600")),Ag(t.Switch,"defaultColor",n("palette-grey-300")),Ag(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Ag(t.Switch,"primaryDisabledColor",r(gm,t.primary.main,.55)),Ag(t.Switch,"secondaryDisabledColor",r(gm,t.secondary.main,.55)),Ag(t.Switch,"errorDisabledColor",r(gm,t.error.main,.55)),Ag(t.Switch,"infoDisabledColor",r(gm,t.info.main,.55)),Ag(t.Switch,"successDisabledColor",r(gm,t.success.main,.55)),Ag(t.Switch,"warningDisabledColor",r(gm,t.warning.main,.55)),Ag(t.TableCell,"border",r(gm,r(hm,t.divider,1),.68)),Ag(t.Tooltip,"bg",r(hm,t.grey[700],.92))}Lg(t.background,"default"),Lg(t.background,"paper"),Lg(t.common,"background"),Lg(t.common,"onBackground"),Lg(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Ag(t[e],"mainChannel",um(Fg(n.main))),n.light&&Ag(t[e],"lightChannel",um(Fg(n.light))),n.dark&&Ag(t[e],"darkChannel",um(Fg(n.dark))),n.contrastText&&Ag(t[e],"contrastTextChannel",um(Fg(n.contrastText))),"text"===e&&(Lg(t[e],"primary"),Lg(t[e],"secondary")),"action"===e&&(n.active&&Lg(t[e],"active"),n.selected&&Lg(t[e],"selected")))})}),C=t.reduce((e,t)=>Zd(e,t),C);const k={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Dg(C),enableContrastVars:i},{vars:_,generateThemeVars:E,generateStyleSheets:R}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:i={},components:s,defaultColorScheme:l="light",...u}=e,{vars:c,css:d,varsWithDefaults:f}=_m(u,t);let p=f;const h={},{[l]:m,...g}=i;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:a}=_m(n,t);p=Zd(p,a),h[e]={css:o,vars:r}}),m){const{css:e,vars:n,varsWithDefaults:r}=_m(m,t);p=Zd(p,r),h[l]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach(([,{vars:t}])=>{e=Zd(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...u}=h;if(l){const{css:e}=l,t=i[o]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...a}),a)}return Object.entries(u).forEach(([e,{css:t}])=>{const o=i[e]?.palette?.mode,a=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(C,k);return C.vars=_,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=E,C.generateStyleSheets=R,C.generateSpacing=function(){return qh(c.spacing,gf(this))},C.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...Kf,...c?.unstable_sxConfig},C.unstable_sx=function(e){return Qf({sx:e,theme:this})},C.toRuntimeSource=Eg,C}function Hg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:fg({...!0===n?{}:n.palette,mode:t})})}const Vg=function(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:a=n?.mode,...i}=e,s=a||"light",l=o?.[s],u={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return jg(e,...t);let r=n;"palette"in e||u[s]&&(!0!==u[s]?r=u[s].palette:"dark"===s&&(r={mode:"dark"}));const o=jg({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=u,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==u.light&&u.light,palette:o.palette},Hg(o,"dark",u.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:o.palette},Hg(o,"light",u.light)),o}return n||"light"in u||"light"!==s||(u.light=!0),$g({...i,colorSchemes:u,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}();const Bg=function(e={}){const{themeId:t,defaultTheme:n=Zh,rootShouldForwardProp:r=Xh,slotShouldForwardProp:o=Xh}=e;function a(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Qf));const{name:n,slot:i,skipVariantsResolver:s,skipSx:l,overridesResolver:u=em(om(i)),...c}=t,d=n&&n.startsWith("Mui")||i?"components":"custom",f=void 0!==s?s:i&&"Root"!==i&&"root"!==i||!1,p=l||!1;let h=Xh;"Root"===i||"root"===i?h=r:i?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=
59
59
  /**
60
60
  * @mui/styled-engine v7.3.1
61
61
  *
@@ -63,7 +63,7 @@ var fd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24
63
63
  * This source code is licensed under the MIT license found in the
64
64
  * LICENSE file in the root directory of this source tree.
65
65
  */
66
- function(e,t){return Hh(e,t)}(e,{shouldForwardProp:h,label:nm(),...c}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return em(t,e,t.theme.modularCssLayers?d:void 0)};if(Gd(e)){const t=Kh(e);return function(e){return t.variants?em(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Xh(t.style,d):t.style}}return e},y=(...t)=>{const r=[],o=t.map(g),i=[];if(r.push(a),n&&u&&i.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=em(e,r[t],e.theme.modularCssLayers?"theme":void 0);return u(e,o)}),n&&!f&&i.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?tm(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),p||i.push(Kf),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(i.length).fill("");let a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}const s=[...r,...o,...i],l=m(...s);return e.muiName&&(l.muiName=e.muiName),l};return m.withConfig&&(y.withConfig=m.withConfig),y}}({themeId:"$$material",defaultTheme:Hg,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function Bg(e){return wm(e)}function Ug(...e){const t=T.useRef(void 0),n=T.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return T.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function Wg(e){const t=T.useRef(e);return am(()=>{t.current=e}),T.useRef((...e)=>(0,t.current)(...e)).current}const Yg={};function qg(e,t){const n=T.useRef(Yg);return n.current===Yg&&(n.current=e(t)),n}class Gg{static create(){return new Gg}static use(){const e=qg(Gg.create).current,[t,n]=T.useState(!1);return e.shouldMount=t,e.setShouldMount=n,T.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function Kg(e,t){return Kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kg(e,t)}var Qg=D.createContext(null);function Zg(e,t){var n=Object.create(null);return e&&T.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&T.isValidElement(e)?t(e):e}(e)}),n}function Xg(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Jg(e,t,n){var r=Zg(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(T.isValidElement(i)){var s=a in t,l=a in r,u=t[a],c=T.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&T.isValidElement(u)&&(o[a]=T.cloneElement(i,{onExited:n.bind(null,i),in:u.props.in,exit:Xg(i,"exit",e),enter:Xg(i,"enter",e)})):o[a]=T.cloneElement(i,{in:!1}):o[a]=T.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Xg(i,"exit",e),enter:Xg(i,"enter",e)})}}),o}var ey=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ty=function(e){var t,n;function r(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Kg(t,n);var o=r.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Zg(n.children,function(e){return T.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Xg(e,"appear",n),enter:Xg(e,"enter",n),exit:Xg(e,"exit",n)})})):Jg(e,o,a),firstRender:!1}},o.handleExited=function(e,t){var n=Zg(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Qf({},t.children);return delete n[e.key],{children:n}}))},o.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,["component","childFactory"]),o=this.state.contextValue,a=ey(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?D.createElement(Qg.Provider,{value:o},a):D.createElement(Qg.Provider,{value:o},D.createElement(t,r,a))},r}(D.Component);ty.propTypes={},ty.defaultProps={component:"div",childFactory:function(e){return e}};const ny=[];class ry{static create(){return new ry}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function oy(){const e=qg(ry.create).current;var t;return t=e.disposeEffect,T.useEffect(t,ny),e}const ay=Md("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),iy=Dh`
66
+ function(e,t){return Vh(e,t)}(e,{shouldForwardProp:h,label:rm(),...c}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return tm(t,e,t.theme.modularCssLayers?d:void 0)};if(Kd(e)){const t=Qh(e);return function(e){return t.variants?tm(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Jh(t.style,d):t.style}}return e},y=(...t)=>{const r=[],o=t.map(g),i=[];if(r.push(a),n&&u&&i.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=tm(e,r[t],e.theme.modularCssLayers?"theme":void 0);return u(e,o)}),n&&!f&&i.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?nm(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),p||i.push(Qf),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(i.length).fill("");let a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}const s=[...r,...o,...i],l=m(...s);return e.muiName&&(l.muiName=e.muiName),l};return m.withConfig&&(y.withConfig=m.withConfig),y}}({themeId:"$$material",defaultTheme:Vg,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function Ug(e){return xm(e)}function Wg(...e){const t=T.useRef(void 0),n=T.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return T.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function Yg(e){const t=T.useRef(e);return im(()=>{t.current=e}),T.useRef((...e)=>(0,t.current)(...e)).current}const qg={};function Gg(e,t){const n=T.useRef(qg);return n.current===qg&&(n.current=e(t)),n}class Kg{static create(){return new Kg}static use(){const e=Gg(Kg.create).current,[t,n]=T.useState(!1);return e.shouldMount=t,e.setShouldMount=n,T.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function Qg(e,t){return Qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qg(e,t)}var Zg=D.createContext(null);function Xg(e,t){var n=Object.create(null);return e&&T.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&T.isValidElement(e)?t(e):e}(e)}),n}function Jg(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ey(e,t,n){var r=Xg(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(T.isValidElement(i)){var s=a in t,l=a in r,u=t[a],c=T.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&T.isValidElement(u)&&(o[a]=T.cloneElement(i,{onExited:n.bind(null,i),in:u.props.in,exit:Jg(i,"exit",e),enter:Jg(i,"enter",e)})):o[a]=T.cloneElement(i,{in:!1}):o[a]=T.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Jg(i,"exit",e),enter:Jg(i,"enter",e)})}}),o}var ty=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ny=function(e){var t,n;function r(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Qg(t,n);var o=r.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Xg(n.children,function(e){return T.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Jg(e,"appear",n),enter:Jg(e,"enter",n),exit:Jg(e,"exit",n)})})):ey(e,o,a),firstRender:!1}},o.handleExited=function(e,t){var n=Xg(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Zf({},t.children);return delete n[e.key],{children:n}}))},o.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,["component","childFactory"]),o=this.state.contextValue,a=ty(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?D.createElement(Zg.Provider,{value:o},a):D.createElement(Zg.Provider,{value:o},D.createElement(t,r,a))},r}(D.Component);ny.propTypes={},ny.defaultProps={component:"div",childFactory:function(e){return e}};const ry=[];class oy{static create(){return new oy}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function ay(){const e=Gg(oy.create).current;var t;return t=e.disposeEffect,T.useEffect(t,ry),e}const iy=Td("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),sy=Ah`
67
67
  0% {
68
68
  transform: scale(0);
69
69
  opacity: 0.1;
@@ -73,7 +73,7 @@ function(e,t){return Hh(e,t)}(e,{shouldForwardProp:h,label:nm(),...c}),g=e=>{if(
73
73
  transform: scale(1);
74
74
  opacity: 0.3;
75
75
  }
76
- `,sy=Dh`
76
+ `,ly=Ah`
77
77
  0% {
78
78
  opacity: 1;
79
79
  }
@@ -81,7 +81,7 @@ function(e,t){return Hh(e,t)}(e,{shouldForwardProp:h,label:nm(),...c}),g=e=>{if(
81
81
  100% {
82
82
  opacity: 0;
83
83
  }
84
- `,ly=Dh`
84
+ `,uy=Ah`
85
85
  0% {
86
86
  transform: scale(1);
87
87
  }
@@ -93,23 +93,23 @@ function(e,t){return Hh(e,t)}(e,{shouldForwardProp:h,label:nm(),...c}),g=e=>{if(
93
93
  100% {
94
94
  transform: scale(1);
95
95
  }
96
- `,uy=Vg("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),cy=Vg(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:u}=e,[c,d]=T.useState(!1),f=Er(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:i,height:i,top:-i/2+a,left:-i/2+o},h=Er(n.child,c&&n.childLeaving,r&&n.childPulsate);return s||c||d(!0),T.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,s,u]),m.jsx("span",{className:f,style:p,children:m.jsx("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})`
96
+ `,cy=Bg("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),dy=Bg(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:u}=e,[c,d]=T.useState(!1),f=Rr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:i,height:i,top:-i/2+a,left:-i/2+o},h=Rr(n.child,c&&n.childLeaving,r&&n.childPulsate);return s||c||d(!0),T.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,s,u]),m.jsx("span",{className:f,style:p,children:m.jsx("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})`
97
97
  opacity: 0;
98
98
  position: absolute;
99
99
 
100
- &.${ay.rippleVisible} {
100
+ &.${iy.rippleVisible} {
101
101
  opacity: 0.3;
102
102
  transform: scale(1);
103
- animation-name: ${iy};
103
+ animation-name: ${sy};
104
104
  animation-duration: ${550}ms;
105
105
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
106
106
  }
107
107
 
108
- &.${ay.ripplePulsate} {
108
+ &.${iy.ripplePulsate} {
109
109
  animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
110
110
  }
111
111
 
112
- & .${ay.child} {
112
+ & .${iy.child} {
113
113
  opacity: 1;
114
114
  display: block;
115
115
  width: 100%;
@@ -118,53 +118,53 @@ function(e,t){return Hh(e,t)}(e,{shouldForwardProp:h,label:nm(),...c}),g=e=>{if(
118
118
  background-color: currentColor;
119
119
  }
120
120
 
121
- & .${ay.childLeaving} {
121
+ & .${iy.childLeaving} {
122
122
  opacity: 0;
123
- animation-name: ${sy};
123
+ animation-name: ${ly};
124
124
  animation-duration: ${550}ms;
125
125
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
126
126
  }
127
127
 
128
- & .${ay.childPulsate} {
128
+ & .${iy.childPulsate} {
129
129
  position: absolute;
130
130
  /* @noflip */
131
131
  left: 0px;
132
132
  top: 0;
133
- animation-name: ${ly};
133
+ animation-name: ${uy};
134
134
  animation-duration: 2500ms;
135
135
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
136
136
  animation-iteration-count: infinite;
137
137
  animation-delay: 200ms;
138
138
  }
139
- `,dy=T.forwardRef(function(e,t){const n=Bg({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...i}=n,[s,l]=T.useState([]),u=T.useRef(0),c=T.useRef(null);T.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=T.useRef(!1),f=oy(),p=T.useRef(null),h=T.useRef(null),g=T.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;l(e=>[...e,m.jsx(cy,{classes:{ripple:Er(o.ripple,ay.ripple),rippleVisible:Er(o.rippleVisible,ay.rippleVisible),ripplePulsate:Er(o.ripplePulsate,ay.ripplePulsate),child:Er(o.child,ay.child),childLeaving:Er(o.childLeaving,ay.childLeaving),childPulsate:Er(o.childPulsate,ay.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},u.current)]),u.current+=1,c.current=i},[o]),y=T.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e?.type&&d.current)return void(d.current=!1);"touchstart"===e?.type&&(d.current=!0);const s=i?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,m;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(a)m=Math.sqrt((2*l.width**2+l.height**2)/3),m%2==0&&(m+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;m=Math.sqrt(e**2+t**2)}e?.touches?null===p.current&&(p.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},[r,g,f]),v=T.useCallback(()=>{y({},{pulsate:!0})},[y]),b=T.useCallback((e,t)=>{if(f.clear(),"touchend"===e?.type&&p.current)return p.current(),p.current=null,void f.start(0,()=>{b(e,t)});p.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[f]);return T.useImperativeHandle(t,()=>({pulsate:v,start:y,stop:b}),[v,y,b]),m.jsx(uy,{className:Er(ay.root,o.root,a),ref:h,...i,children:m.jsx(ty,{component:null,exit:!0,children:s})})});function fy(e){return Od("MuiButtonBase",e)}const py=Md("MuiButtonBase",["root","disabled","focusVisible"]),hy=Vg("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${py.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),my=T.forwardRef(function(e,t){const n=Bg({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p="a",onBlur:h,onClick:g,onContextMenu:y,onDragLeave:v,onFocus:b,onFocusVisible:w,onKeyDown:x,onKeyUp:C,onMouseDown:S,onMouseLeave:k,onMouseUp:_,onTouchEnd:E,onTouchMove:R,onTouchStart:N,tabIndex:j=0,TouchRippleProps:P,touchRippleRef:O,type:M,...D}=n,A=T.useRef(null),F=Gg.use(),L=Ug(F.ref,O),[I,z]=T.useState(!1);l&&I&&z(!1),T.useImperativeHandle(r,()=>({focusVisible:()=>{z(!0),A.current.focus()}}),[]);const $=F.shouldMount&&!u&&!l;T.useEffect(()=>{I&&d&&!u&&F.pulsate()},[u,d,I,F]);const H=gy(F,"start",S,c),V=gy(F,"stop",y,c),B=gy(F,"stop",v,c),U=gy(F,"stop",_,c),W=gy(F,"stop",e=>{I&&e.preventDefault(),k&&k(e)},c),Y=gy(F,"start",N,c),q=gy(F,"stop",E,c),G=gy(F,"stop",R,c),K=gy(F,"stop",e=>{Id(e.target)||z(!1),h&&h(e)},!1),Q=Wg(e=>{A.current||(A.current=e.currentTarget),Id(e.target)&&(z(!0),w&&w(e)),b&&b(e)}),Z=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},X=Wg(e=>{d&&!e.repeat&&I&&" "===e.key&&F.stop(e,()=>{F.start(e)}),e.target===e.currentTarget&&Z()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&Z()&&"Enter"===e.key&&!l&&(e.preventDefault(),g&&g(e))}),J=Wg(e=>{d&&" "===e.key&&I&&!e.defaultPrevented&&F.stop(e,()=>{F.pulsate(e)}),C&&C(e),g&&e.target===e.currentTarget&&Z()&&" "===e.key&&!e.defaultPrevented&&g(e)});let ee=s;"button"===ee&&(D.href||D.to)&&(ee=p);const te={};"button"===ee?(te.type=void 0===M?"button":M,te.disabled=l):(D.href||D.to||(te.role="button"),l&&(te["aria-disabled"]=l));const ne=Ug(t,A),re={...n,centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:j,focusVisible:I},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Rd({root:["root",t&&"disabled",n&&"focusVisible"]},fy,o);return n&&r&&(a.root+=` ${r}`),a})(re);return m.jsxs(hy,{as:ee,className:Er(oe.root,i),ownerState:re,onBlur:K,onClick:g,onContextMenu:V,onFocus:Q,onKeyDown:X,onKeyUp:J,onMouseDown:H,onMouseLeave:W,onMouseUp:U,onDragLeave:B,onTouchEnd:q,onTouchMove:G,onTouchStart:Y,ref:ne,tabIndex:l?-1:j,type:M,...te,...D,children:[a,$?m.jsx(dy,{ref:L,center:o,...P}):null]})});function gy(e,t,n,r=!1){return Wg(o=>(n&&n(o),r||e[t](o),!0))}function yy(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}const vy=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(xm.theme=r.theme,o=Kh(e(xm)),t=o,n=r.theme),o}};function by(e){return Od("MuiSvgIcon",e)}Md("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wy=Vg("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${$d(n.color)}`],t[`fontSize${$d(n.fontSize)}`]]}})(vy(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),xy=T.forwardRef(function(e,t){const n=Bg({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...f}=n,p=T.isValidElement(r)&&"svg"===r.type,h={...n,color:a,component:i,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p},g={};u||(g.viewBox=d);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return Rd({root:["root","inherit"!==t&&`color${$d(t)}`,`fontSize${$d(n)}`]},by,r)})(h);return m.jsxs(wy,{as:i,className:Er(y.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t,...g,...f,...p&&r.props,ownerState:h,children:[p?r.props.children:r,c?m.jsx("title",{children:c}):null]})});function Cy(e,t){function n(t,n){return m.jsx(xy,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=xy.muiName,T.memo(T.forwardRef(n))}xy.muiName="SvgIcon";var Sy=Cy(m.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),ky=Cy(m.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),_y=Cy(m.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Ey=Cy(m.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));function Ry(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function Ny(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=Er(n?.className,a,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},i={...n,...o,...r};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}({...o,...r}),s=Ry(r),l=Ry(o),u=t(i),c=Er(u?.className,n?.className,a,o?.className,r?.className),d={...u?.style,...n?.style,...o?.style,...r?.style},f={...u,...n,...l,...s};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function jy(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=c[e]||r,h=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],o),{props:{component:m,...g},internalRef:y}=Ny({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),v=Ug(y,h?.ref,t.ref),b="root"===e?m||u:m,w=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!u&&!c[e]&&i,..."root"!==e&&!c[e]&&i,...g,...b&&!s&&{as:b},...b&&s&&{component:b},ref:v},o);return[p,w]}const Py=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${$d(n.size)}`],"text"===n.variant&&t[`text${$d(n.color)}`],"outlined"===n.variant&&t[`outlined${$d(n.color)}`],"rounded"===n.shape&&t.rounded,"page"===n.type&&t.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&t.ellipsis,("previous"===n.type||"next"===n.type)&&t.previousNext,("first"===n.type||"last"===n.type)&&t.firstLast]},Oy=Vg("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Py})(vy(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Ld.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),My=Vg(my,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Py})(vy(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Ld.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ld.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ld.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ld.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},[`&.${Ld.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${Ld.selected}`]:{[`&.${Ld.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Ld.selected}`]:{[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(yy(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Ld.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${Ld.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(yy(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Ld.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.5)}`,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.activatedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ld.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))]}))),Ty=Vg("div",{name:"MuiPaginationItem",slot:"Icon"})(vy(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),Dy=T.forwardRef(function(e,t){const n=Bg({props:e,name:"MuiPaginationItem"}),{className:r,color:o="standard",component:a,components:i={},disabled:s=!1,page:l,selected:u=!1,shape:c="circular",size:d="medium",slots:f={},slotProps:p={},type:h="page",variant:g="text",...y}=n,v={...n,color:o,disabled:s,selected:u,shape:c,size:d,type:h,variant:g},b=T.useContext(Ad)??!1,w=(e=>{const{classes:t,color:n,disabled:r,selected:o,size:a,shape:i,type:s,variant:l}=e;return Rd({root:["root",`size${$d(a)}`,l,i,"standard"!==n&&`color${$d(n)}`,"standard"!==n&&`${l}${$d(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]},Fd,t)})(v),x={slots:{previous:f.previous??i.previous,next:f.next??i.next,first:f.first??i.first,last:f.last??i.last},slotProps:p},[C,S]=jy("previous",{elementType:_y,externalForwardedProps:x,ownerState:v}),[k,_]=jy("next",{elementType:Ey,externalForwardedProps:x,ownerState:v}),[E,R]=jy("first",{elementType:Sy,externalForwardedProps:x,ownerState:v}),[N,j]=jy("last",{elementType:ky,externalForwardedProps:x,ownerState:v}),P=b?{previous:"next",next:"previous",first:"last",last:"first"}[h]:h,O={previous:C,next:k,first:E,last:N}[P],M={previous:S,next:_,first:R,last:j}[P];return"start-ellipsis"===h||"end-ellipsis"===h?m.jsx(Oy,{ref:t,ownerState:v,className:Er(w.root,r),children:"…"}):m.jsxs(My,{ref:t,ownerState:v,component:a,disabled:s,className:Er(w.root,r),...y,children:["page"===h&&l,O?m.jsx(Ty,{...M,className:w.icon,as:O}):null]})}),Ay=Vg("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),Fy=Vg("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Ly(e,t,n){return"page"===e?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const Iy=T.forwardRef(function(e,t){const n=Bg({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:o,color:a="standard",count:i=1,defaultPage:s=1,disabled:l=!1,getItemAriaLabel:u=Ly,hideNextButton:c=!1,hidePrevButton:d=!1,onChange:f,page:p,renderItem:h=e=>m.jsx(Dy,{...e}),shape:g="circular",showFirstButton:y=!1,showLastButton:v=!1,siblingCount:b=1,size:w="medium",variant:x="text",...C}=n,{items:S}=Dd({...n,componentName:"Pagination"}),k={...n,boundaryCount:r,color:a,count:i,defaultPage:s,disabled:l,getItemAriaLabel:u,hideNextButton:c,hidePrevButton:d,renderItem:h,shape:g,showFirstButton:y,showLastButton:v,siblingCount:b,size:w,variant:x},_=(e=>{const{classes:t,variant:n}=e;return Rd({root:["root",n],ul:["ul"]},Td,t)})(k);return m.jsx(Ay,{"aria-label":"pagination navigation",className:Er(_.root,o),ownerState:k,ref:t,...C,children:m.jsx(Fy,{className:_.ul,ownerState:k,children:S.map((e,t)=>m.jsx("li",{children:h({...e,color:a,"aria-label":u(e.type,e.page,e.selected),shape:g,size:w,variant:x})},t))})})}),zy={arrow:m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M8.65833 15.7667C8.54866 15.7673 8.43994 15.7463 8.33841 15.7048C8.23688 15.6634 8.14453 15.6023 8.06667 15.525C7.91146 15.3689 7.82434 15.1577 7.82434 14.9375C7.82434 14.7174 7.91146 14.5062 8.06667 14.35L12.4083 10L8.06667 5.65004C7.93014 5.49062 7.85881 5.28556 7.86691 5.07583C7.87501 4.8661 7.96195 4.66715 8.11036 4.51874C8.25878 4.37032 8.45773 4.28338 8.66746 4.27528C8.87719 4.26718 9.08225 4.33852 9.24167 4.47504L14.1667 9.40837C14.2439 9.48624 14.305 9.57859 14.3465 9.68012C14.3879 9.78165 14.409 9.89037 14.4083 10C14.4053 10.2207 14.3189 10.432 14.1667 10.5917L9.225 15.525C9.07391 15.675 8.87116 15.7615 8.65833 15.7667Z",fill:"#A1A5B7"})}),info_input:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M10 18.3332C14.6024 18.3332 18.3333 14.6022 18.3333 9.99984C18.3333 5.39746 14.6024 1.6665 10 1.6665C5.39763 1.6665 1.66667 5.39746 1.66667 9.99984C1.66667 14.6022 5.39763 18.3332 10 18.3332Z",fill:"#1868DB"}),m.jsx("path",{d:"M10 8.83301C10.221 8.83301 10.433 8.9208 10.5893 9.07708C10.7455 9.23337 10.8333 9.44533 10.8333 9.66634V13.5497C10.8333 13.7707 10.7455 13.9826 10.5893 14.1389C10.433 14.2952 10.221 14.383 10 14.383C9.77899 14.383 9.56703 14.2952 9.41075 14.1389C9.25447 13.9826 9.16667 13.7707 9.16667 13.5497V9.66634C9.16667 9.44533 9.25447 9.23337 9.41075 9.07708C9.56703 8.9208 9.77899 8.83301 10 8.83301Z",fill:"#1868DB"}),m.jsx("path",{d:"M10 7.70003C10.5753 7.70003 11.0417 7.23366 11.0417 6.65837C11.0417 6.08307 10.5753 5.6167 10 5.6167C9.42471 5.6167 8.95834 6.08307 8.95834 6.65837C8.95834 7.23366 9.42471 7.70003 10 7.70003Z",fill:"#1868DB"})]}),cube:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.90996 21.67L4.66996 18.67C4.02642 18.2997 3.4934 17.7643 3.12598 17.1192C2.75856 16.474 2.57006 15.7424 2.57996 15V9C2.57541 8.26267 2.76644 7.53731 3.13359 6.89787C3.50075 6.25843 4.03088 5.72778 4.66996 5.36L9.90996 2.36C10.5447 1.99116 11.2658 1.79688 12 1.79688C12.7341 1.79688 13.4552 1.99116 14.09 2.36L19.33 5.36C19.969 5.72778 20.4992 6.25843 20.8663 6.89787C21.2335 7.53731 21.4245 8.26267 21.42 9V15C21.4192 15.7323 21.2257 16.4514 20.8588 17.0851C20.4919 17.7188 19.9646 18.2448 19.33 18.61L14.09 21.61C13.4605 21.988 12.7422 22.1927 12.008 22.2032C11.2739 22.2137 10.55 22.0298 9.90996 21.67Z",fill:"#1868DB"}),m.jsx("path",{opacity:"0.3",d:"M20.8599 6.89C20.4965 6.2519 19.968 5.7234 19.3299 5.36L14.0899 2.36C13.4551 1.99116 12.734 1.79688 11.9999 1.79688C11.2657 1.79688 10.5447 1.99116 9.90989 2.36L4.66989 5.36C4.03179 5.7234 3.5033 6.2519 3.13989 6.89L11.9999 12L20.8599 6.89Z",fill:"#1868DB"}),m.jsx("path",{d:"M20.85 6.89014L12 12.0001L12.13 22.2201C12.8324 22.2082 13.5203 22.019 14.13 21.6701L19.37 18.6701C20.0061 18.2948 20.5311 17.7572 20.8913 17.1124C21.2515 16.4675 21.4339 15.7386 21.42 15.0001V9.00014C21.4215 8.25857 21.2247 7.53009 20.85 6.89014Z",fill:"#1868DB"})]}),magnifier:m.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M19.7083 17.8015L16.8025 15.0515C16.25 15.7628 15.5878 16.3817 14.8408 16.8848L17.8292 19.7265C17.9548 19.8733 18.1102 19.9917 18.285 20.074C18.4598 20.1563 18.6501 20.2005 18.8432 20.2038C19.0364 20.2071 19.2281 20.1694 19.4056 20.0932C19.5832 20.017 19.7425 19.9039 19.8731 19.7615C20.0037 19.6192 20.1026 19.4507 20.1633 19.2673C20.224 19.0839 20.2451 18.8897 20.2252 18.6975C20.2053 18.5053 20.1449 18.3195 20.0479 18.1525C19.9509 17.9854 19.8195 17.8408 19.6625 17.7282L19.7083 17.8015Z",fill:"#7E8299"}),m.jsx("path",{d:"M10.2117 1.83325C8.57998 1.83325 6.98492 2.31711 5.62822 3.22363C4.27151 4.13015 3.21409 5.41862 2.58967 6.92611C1.96524 8.4336 1.80187 10.0924 2.1202 11.6927C2.43852 13.2931 3.22426 14.7631 4.37804 15.9169C5.53183 17.0707 7.00183 17.8564 8.60218 18.1747C10.2025 18.4931 11.8613 18.3297 13.3688 17.7053C14.8763 17.0808 16.1648 16.0234 17.0713 14.6667C17.9778 13.31 18.4617 11.7149 18.4617 10.0833C18.4617 7.89522 17.5925 5.7968 16.0453 4.24962C14.4981 2.70245 12.3997 1.83325 10.2117 1.83325ZM10.2117 15.9133C9.06081 15.9132 7.93578 15.5721 6.97875 14.9329C6.02172 14.2937 5.27564 13.3851 4.83481 12.3221C4.39397 11.259 4.27817 10.0891 4.50202 8.9602C4.72588 7.83132 5.27935 6.79413 6.09249 5.97971C6.90563 5.16529 7.94195 4.61018 9.07048 4.38455C10.199 4.15892 11.3691 4.27288 12.4329 4.71204C13.4966 5.1512 14.4064 5.89585 15.0471 6.85187C15.6878 7.8079 16.0307 8.93239 16.0325 10.0833C16.0349 10.8488 15.8861 11.6072 15.5945 12.315C15.303 13.0229 14.8744 13.6661 14.3336 14.2078C13.7927 14.7496 13.1501 15.1791 12.4428 15.4718C11.7354 15.7644 10.9772 15.9145 10.2117 15.9133Z",fill:"#7E8299"})]}),filter_edit:m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M17.3083 3.4917V5.4917C17.3065 5.84118 17.2313 6.18639 17.0878 6.50504C16.9443 6.82369 16.7355 7.10871 16.475 7.3417L15.5167 8.17503C15.3929 8.28554 15.2303 8.34235 15.0646 8.33298C14.899 8.3236 14.7438 8.2488 14.6333 8.12503C14.5228 8.00126 14.466 7.83867 14.4754 7.67301C14.4848 7.50735 14.5596 7.35221 14.6833 7.2417L15.6333 6.40837C15.7618 6.29272 15.8646 6.15136 15.9349 5.99344C16.0053 5.83552 16.0416 5.66458 16.0417 5.4917V3.4917C16.0417 3.16902 15.9135 2.85956 15.6853 2.63139C15.4571 2.40322 15.1477 2.27503 14.825 2.27503H4.21667C3.89399 2.27503 3.58452 2.40322 3.35635 2.63139C3.12818 2.85956 3 3.16902 3 3.4917V5.5667C3.00618 5.87894 3.13137 6.17702 3.35 6.40003L6.48333 9.57503C7.19463 10.2901 7.59322 11.2581 7.59167 12.2667V16.6667C7.59567 16.8589 7.65113 17.0465 7.75227 17.2099C7.85341 17.3734 7.99654 17.5068 8.16674 17.5961C8.33694 17.6855 8.52798 17.7276 8.71997 17.718C8.91196 17.7084 9.09787 17.6475 9.25833 17.5417L10.3917 16.7084C10.459 16.6608 10.535 16.6269 10.6154 16.6087C10.6958 16.5904 10.779 16.5882 10.8602 16.6021C10.9415 16.6161 11.0192 16.6459 11.0889 16.6898C11.1587 16.7338 11.2191 16.7911 11.2667 16.8584C11.3143 16.9257 11.3482 17.0017 11.3664 17.0821C11.3846 17.1625 11.3868 17.2457 11.3729 17.3269C11.359 17.4082 11.3292 17.4859 11.2852 17.5556C11.2412 17.6254 11.184 17.6858 11.1167 17.7334L9.975 18.5667C9.62709 18.8036 9.22141 18.9415 8.80123 18.9659C8.38105 18.9903 7.96213 18.9002 7.58916 18.7051C7.21619 18.5101 6.90316 18.2175 6.68346 17.8585C6.46376 17.4995 6.34563 17.0876 6.34167 16.6667V12.2917C6.34169 11.6108 6.07202 10.9576 5.59167 10.475L2.5 7.30003C2.03298 6.84254 1.76375 6.22032 1.75 5.5667V3.4917C1.75 2.82866 2.01339 2.19277 2.48223 1.72393C2.95107 1.25509 3.58696 0.991699 4.25 0.991699H14.8417C15.4989 1.00046 16.1263 1.26772 16.5879 1.73561C17.0496 2.20351 17.3084 2.83439 17.3083 3.4917ZM16.3583 12.1584L15.7167 12.8084L13.5583 15C13.3939 15.1657 13.1858 15.2813 12.9583 15.3334L12.075 15.5167C11.9919 15.5249 11.9081 15.5249 11.825 15.5167C11.5126 15.5114 11.2142 15.386 10.9917 15.1667C10.849 15.0271 10.7431 14.8544 10.6835 14.6639C10.6239 14.4734 10.6124 14.2711 10.65 14.075L10.8167 13.1917C10.8569 12.9611 10.9675 12.7486 11.1333 12.5834L13.925 9.72503C14.0459 9.60279 14.19 9.50591 14.3488 9.44009C14.5077 9.37426 14.6781 9.34081 14.85 9.3417C15.1962 9.34532 15.5277 9.48268 15.775 9.72503L16.3167 10.2584C16.4464 10.379 16.5506 10.5245 16.6232 10.6862C16.6957 10.8478 16.7351 11.0224 16.739 11.1996C16.7429 11.3767 16.7112 11.5528 16.6458 11.7175C16.5804 11.8822 16.4827 12.0321 16.3583 12.1584ZM14.8 10.6334L14.3167 11.1334C14.3687 11.2877 14.4624 11.4247 14.5874 11.5291C14.7124 11.6335 14.8639 11.7013 15.025 11.725L15.4583 11.2834C15.4583 11.2834 15.4583 11.2167 15.4583 11.1834L14.9167 10.65C14.8947 10.6453 14.872 10.6453 14.85 10.65L14.8 10.6334ZM14.075 12.7C13.8068 12.5397 13.5787 12.3203 13.4083 12.0584L12.0083 13.4917L11.8583 14.325L12.6917 14.1084L14.075 12.7Z",fill:"inherit"})}),price_tag:m.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("g",{opacity:"0.3",children:m.jsx("path",{d:"M3.55997 6.65016L3.41997 11.7402C3.39903 12.4124 3.517 13.0818 3.76649 13.7063C4.01598 14.3309 4.39164 14.8973 4.86997 15.3702L9.42997 19.9402C9.84795 20.3589 10.3444 20.6912 10.8909 20.9178C11.4374 21.1445 12.0233 21.2612 12.615 21.2612C13.2066 21.2612 13.7925 21.1445 14.339 20.9178C14.8855 20.6912 15.382 20.3589 15.8 19.9402L20.57 15.1702C20.9887 14.7522 21.321 14.2557 21.5477 13.7092C21.7743 13.1627 21.891 12.5768 21.891 11.9852C21.891 11.3935 21.7743 10.8076 21.5477 10.2611C21.321 9.71459 20.9887 9.21814 20.57 8.80016L15.96 4.19016C15.4798 3.71338 14.9078 3.33903 14.2787 3.08979C13.6496 2.84055 12.9764 2.72161 12.3 2.74016L7.29997 2.91016C6.31604 2.93547 5.37939 3.33763 4.68341 4.0336C3.98744 4.72958 3.58528 5.66623 3.55997 6.65016Z",fill:"inherit"})}),m.jsx("path",{d:"M10.23 12.2304C11.7764 12.2304 13.03 10.9768 13.03 9.43037C13.03 7.88397 11.7764 6.63037 10.23 6.63037C8.6836 6.63037 7.42999 7.88397 7.42999 9.43037C7.42999 10.9768 8.6836 12.2304 10.23 12.2304Z",fill:"inherit"}),m.jsx("path",{d:"M13.1 17.0003C12.9509 17.0022 12.8046 16.9596 12.6799 16.8779C12.5551 16.7963 12.4575 16.6793 12.3996 16.5419C12.3416 16.4045 12.3259 16.253 12.3545 16.1066C12.3831 15.9603 12.4546 15.8258 12.56 15.7203L16.56 11.7203C16.7006 11.5799 16.8912 11.501 17.09 11.501C17.2887 11.501 17.4794 11.5799 17.62 11.7203C17.6907 11.7893 17.747 11.8717 17.7854 11.9627C17.8238 12.0537 17.8435 12.1515 17.8435 12.2503C17.8435 12.3491 17.8238 12.4469 17.7854 12.5379C17.747 12.629 17.6907 12.7114 17.62 12.7803L13.67 16.7803C13.5961 16.8555 13.507 16.914 13.4087 16.9519C13.3104 16.9898 13.2052 17.0063 13.1 17.0003Z",fill:"inherit"})]}),eyeslash:m.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M2.88008 22.3404C2.67861 22.3386 2.48544 22.2599 2.34008 22.1204C2.19902 21.978 2.11987 21.7858 2.11987 21.5854C2.11987 21.385 2.19902 21.1927 2.34008 21.0504L20.6001 2.88037C20.6636 2.7878 20.7471 2.71068 20.8444 2.65467C20.9417 2.59867 21.0503 2.56523 21.1622 2.5568C21.2742 2.54838 21.3866 2.56519 21.4911 2.606C21.5957 2.64681 21.6898 2.71057 21.7665 2.79258C21.8431 2.8746 21.9004 2.97278 21.934 3.07987C21.9677 3.18697 21.9769 3.30025 21.9609 3.41137C21.9449 3.52249 21.9042 3.6286 21.8418 3.72189C21.7793 3.81518 21.6967 3.89325 21.6001 3.95037L3.40008 22.1204C3.26264 22.2595 3.07568 22.3386 2.88008 22.3404Z",fill:"black"}),m.jsx("path",{d:"M9.14993 13.1107C9.15256 12.3557 9.45368 11.6323 9.98758 11.0984C10.5215 10.5645 11.2449 10.2634 11.9999 10.2607C12.4251 10.2609 12.8448 10.3573 13.2275 10.5426C13.6102 10.7279 13.9461 10.9973 14.2099 11.3307L10.2099 15.3307C9.87756 15.0643 9.60962 14.7263 9.42608 14.3419C9.24255 13.9576 9.14815 13.5367 9.14993 13.1107ZM11.7099 15.9307C11.8065 15.9357 11.9033 15.9357 11.9999 15.9307C12.7558 15.9307 13.4807 15.6305 14.0152 15.096C14.5497 14.5615 14.8499 13.8366 14.8499 13.0807C14.8548 12.9908 14.8548 12.9007 14.8499 12.8107L11.7099 15.9307Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M6.05 19.5008L9.15 16.4108C8.70449 16.0196 8.34405 15.5411 8.09102 15.005C7.838 14.4688 7.69777 13.8864 7.67903 13.2938C7.66029 12.7013 7.76343 12.1112 7.98208 11.5601C8.20072 11.009 8.5302 10.5087 8.95011 10.0902C9.37001 9.67167 9.87139 9.34383 10.4232 9.12699C10.975 8.91015 11.5654 8.80893 12.1579 8.82961C12.7504 8.85029 13.3323 8.99243 13.8677 9.24721C14.403 9.50199 14.8803 9.86399 15.27 10.3108L18.43 7.16078C16.6374 5.59863 14.3743 4.68002 12 4.55078C7.27 4.55078 2 9.17078 2 13.1108C2 15.2508 3.71 17.7208 6.05 19.5008Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M16.0601 11.6004C16.2484 12.0817 16.3467 12.5935 16.3501 13.1104C16.3552 13.8149 16.1879 14.5101 15.8628 15.1352C15.5377 15.7604 15.0646 16.2965 14.4848 16.6968C13.905 17.0972 13.236 17.3496 12.5362 17.4322C11.8365 17.5147 11.1271 17.4248 10.4701 17.1704L7.33008 20.2904C8.74153 21.1458 10.3504 21.6212 12.0001 21.6704C17.0001 21.6704 22.0001 17.0804 22.0001 13.1104C21.8378 11.1937 20.9595 9.40848 19.5401 8.11035L16.0601 11.6004Z",fill:"black"})]}),eye_outline:m.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M7.99998 9.39988C7.5253 9.39988 7.06129 9.25912 6.66661 8.99541C6.27193 8.73169 5.96432 8.35686 5.78267 7.91832C5.60102 7.47978 5.55349 6.99722 5.6461 6.53166C5.7387 6.06611 5.96728 5.63847 6.30292 5.30282C6.63857 4.96718 7.06621 4.7386 7.53176 4.646C7.99732 4.55339 8.47988 4.60092 8.91842 4.78257C9.35696 4.96422 9.73179 5.27183 9.99551 5.66651C10.2592 6.06119 10.4 6.5252 10.4 6.99988C10.3982 7.63586 10.1448 8.24529 9.69509 8.69499C9.24539 9.1447 8.63596 9.39812 7.99998 9.39988ZM7.99998 5.59988C7.72309 5.59988 7.45241 5.68199 7.22218 5.83582C6.99195 5.98966 6.81251 6.20831 6.70655 6.46412C6.60059 6.71994 6.57286 7.00143 6.62688 7.27301C6.6809 7.54458 6.81424 7.79404 7.01003 7.98983C7.20582 8.18562 7.45528 8.31896 7.72685 8.37298C7.99843 8.427 8.27992 8.39927 8.53574 8.29331C8.79155 8.18735 9.0102 8.00791 9.16404 7.77768C9.31787 7.54745 9.39998 7.27677 9.39998 6.99988C9.39998 6.62858 9.25248 6.27248 8.98993 6.00993C8.72738 5.74738 8.37128 5.59988 7.99998 5.59988ZM7.99998 13.2065C6.19341 13.1238 4.4753 12.4006 3.15331 11.1665C1.69998 9.89321 0.833313 8.33321 0.833313 6.99988C0.833313 4.03988 4.58665 0.793213 7.99998 0.793213C11.4133 0.793213 15.1666 4.12655 15.1666 6.99988C15.1666 10.0132 11.48 13.2065 7.99998 13.2065ZM7.99998 1.79321C5.17998 1.79321 1.83331 4.61321 1.83331 6.99988C1.83331 8.03988 2.59331 9.34655 3.83331 10.4132C4.97144 11.4773 6.44482 12.1114 7.99998 12.2065C11.1733 12.2065 14.1666 9.27321 14.1666 6.99988C14.1666 4.84655 10.98 1.79321 7.99998 1.79321Z",fill:"inherit"})}),eye:m.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M11.9999 15.3504C13.5739 15.3504 14.8499 14.0744 14.8499 12.5004C14.8499 10.9264 13.5739 9.65039 11.9999 9.65039C10.4259 9.65039 9.1499 10.9264 9.1499 12.5004C9.1499 14.0744 10.4259 15.3504 11.9999 15.3504Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M11.9999 15.3504C13.5739 15.3504 14.8499 14.0744 14.8499 12.5004C14.8499 10.9264 13.5739 9.65039 11.9999 9.65039C10.4259 9.65039 9.1499 10.9264 9.1499 12.5004C9.1499 14.0744 10.4259 15.3504 11.9999 15.3504Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M12 3.94043C7.27 3.94043 2 8.56043 2 12.5004C2 16.2604 7.27 21.0604 12 21.0604C17 21.0604 22 16.4704 22 12.5004C22 8.68043 16.73 3.94043 12 3.94043ZM12 16.8504C11.1397 16.8504 10.2986 16.5953 9.58327 16.1173C8.86792 15.6393 8.31037 14.96 7.98112 14.1651C7.65188 13.3702 7.56574 12.4956 7.73358 11.6518C7.90143 10.808 8.31573 10.0329 8.92409 9.42452C9.53244 8.81616 10.3075 8.40186 11.1514 8.23401C11.9952 8.06617 12.8698 8.15231 13.6647 8.48155C14.4595 8.81079 15.1389 9.36834 15.6169 10.0837C16.0949 10.7991 16.35 11.6401 16.35 12.5004C16.35 13.6541 15.8917 14.7606 15.0759 15.5763C14.2601 16.3921 13.1537 16.8504 12 16.8504Z",fill:"black"})]}),trash:m.jsx("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M3.51994 15.1668C2.96424 15.1616 2.43084 14.9475 2.02573 14.5671C1.62061 14.1867 1.37343 13.6678 1.33328 13.1135L0.846611 6.15352C0.842233 6.08785 0.850832 6.02197 0.871915 5.95964C0.892998 5.8973 0.926153 5.83972 0.969487 5.7902C1.01282 5.74067 1.06549 5.70017 1.12447 5.671C1.18346 5.64183 1.24762 5.62456 1.31328 5.62018C1.37894 5.61581 1.44482 5.6244 1.50716 5.64549C1.56949 5.66657 1.62707 5.69973 1.67659 5.74306C1.72612 5.78639 1.76662 5.83906 1.79579 5.89804C1.82497 5.95703 1.84223 6.02119 1.84661 6.08685L2.31994 13.0468C2.34358 13.3534 2.48268 13.6395 2.70914 13.8474C2.9356 14.0553 3.23254 14.1694 3.53994 14.1668L8.57328 14.1068C8.8791 14.1038 9.17223 13.9842 9.39278 13.7723C9.61334 13.5604 9.74467 13.2723 9.75994 12.9668L10.1533 6.08685C10.1635 5.95423 10.2249 5.83076 10.3243 5.74246C10.4238 5.65417 10.5537 5.60794 10.6866 5.61352C10.8181 5.6221 10.9409 5.68224 11.0283 5.78086C11.1157 5.87948 11.1606 6.00862 11.1533 6.14018L10.7599 13.0268C10.7264 13.5836 10.4839 14.1072 10.081 14.4928C9.67801 14.8785 9.1443 15.0978 8.58661 15.1068L3.55328 15.1668H3.51994ZM7.98661 8.56685C7.98488 8.43478 7.93165 8.3086 7.83825 8.2152C7.74486 8.12181 7.61868 8.06858 7.48661 8.06685H4.51328C4.38067 8.06685 4.25349 8.11953 4.15972 8.21329C4.06596 8.30706 4.01328 8.43424 4.01328 8.56685C4.01328 8.69946 4.06596 8.82663 4.15972 8.9204C4.25349 9.01417 4.38067 9.06685 4.51328 9.06685H7.48661C7.55338 9.06863 7.61984 9.05701 7.68205 9.03268C7.74426 9.00836 7.80096 8.97181 7.84881 8.9252C7.89667 8.87859 7.93469 8.82287 7.96065 8.76132C7.98661 8.69977 7.99997 8.63365 7.99994 8.56685H7.98661ZM7.46661 11.0335C7.46661 10.9009 7.41393 10.7737 7.32016 10.68C7.2264 10.5862 7.09922 10.5335 6.96661 10.5335H5.03328C4.90067 10.5335 4.77349 10.5862 4.67972 10.68C4.58596 10.7737 4.53328 10.9009 4.53328 11.0335C4.53328 11.1661 4.58596 11.2933 4.67972 11.3871C4.77349 11.4808 4.90067 11.5335 5.03328 11.5335H6.96661C7.09868 11.5318 7.22486 11.4786 7.31825 11.3852C7.41165 11.2918 7.46488 11.1656 7.46661 11.0335ZM11.9999 4.34685C11.9837 4.46582 11.9247 4.5748 11.8338 4.65334C11.743 4.73189 11.6267 4.77462 11.5066 4.77352H11.4333C7.83463 4.27895 4.18525 4.27895 0.586611 4.77352C0.52046 4.78494 0.452697 4.78311 0.387261 4.76812C0.321825 4.75314 0.260019 4.7253 0.205434 4.68622C0.15085 4.64714 0.104575 4.5976 0.0692985 4.54049C0.0340221 4.48338 0.0104474 4.41982 -5.58854e-05 4.35352C-0.0212122 4.22268 0.0104398 4.08881 0.0879442 3.9813C0.165449 3.87379 0.282465 3.80146 0.413277 3.78018C0.499944 3.78018 1.41994 3.62018 2.86661 3.50685L3.10661 2.25352C3.18278 1.85342 3.39637 1.49252 3.71044 1.23323C4.02452 0.973936 4.41933 0.832548 4.82661 0.833516H7.17994C7.59027 0.831559 7.98819 0.974125 8.30391 1.23621C8.61963 1.4983 8.83301 1.86317 8.90661 2.26685L9.13328 3.50685C9.92661 3.57352 10.7399 3.65352 11.5733 3.78018C11.6386 3.78918 11.7015 3.811 11.7583 3.84439C11.8152 3.87778 11.8648 3.92209 11.9045 3.97476C11.9441 4.02742 11.973 4.08741 11.9894 4.15127C12.0058 4.21513 12.0093 4.2816 11.9999 4.34685ZM5.70661 3.39352H8.09328L7.91994 2.44685C7.88875 2.27498 7.79829 2.11949 7.66431 2.00743C7.53032 1.89537 7.36128 1.83383 7.18661 1.83352H4.83328C4.65875 1.83327 4.48955 1.89362 4.35458 2.00427C4.21962 2.11492 4.12726 2.269 4.09328 2.44018L3.91328 3.39352H5.70661Z",fill:"#F1416C"})}),trash2:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M10 2.25C9.58579 2.25 9.25 2.58579 9.25 3V3.75H5C4.58579 3.75 4.25 4.08579 4.25 4.5C4.25 4.91421 4.58579 5.25 5 5.25H19C19.4142 5.25 19.75 4.91421 19.75 4.5C19.75 4.08579 19.4142 3.75 19 3.75H14.75V3C14.75 2.58579 14.4142 2.25 14 2.25H10Z",fill:"#F1416C"}),m.jsx("path",{d:"M10 10.65C10.4142 10.65 10.75 10.9858 10.75 11.4L10.75 18.4C10.75 18.8142 10.4142 19.15 10 19.15C9.58579 19.15 9.25 18.8142 9.25 18.4L9.25 11.4C9.25 10.9858 9.58579 10.65 10 10.65Z",fill:"#F1416C"}),m.jsx("path",{d:"M14.75 11.4C14.75 10.9858 14.4142 10.65 14 10.65C13.5858 10.65 13.25 10.9858 13.25 11.4V18.4C13.25 18.8142 13.5858 19.15 14 19.15C14.4142 19.15 14.75 18.8142 14.75 18.4V11.4Z",fill:"#F1416C"}),m.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99142 7.91718C6.03363 7.53735 6.35468 7.25 6.73684 7.25H17.2632C17.6453 7.25 17.9664 7.53735 18.0086 7.91718L18.2087 9.71852C18.5715 12.9838 18.5715 16.2793 18.2087 19.5446L18.189 19.722C18.045 21.0181 17.0404 22.0517 15.7489 22.2325C13.2618 22.5807 10.7382 22.5807 8.25108 22.2325C6.95954 22.0517 5.955 21.0181 5.81098 19.722L5.79128 19.5446C5.42846 16.2793 5.42846 12.9838 5.79128 9.71852L5.99142 7.91718ZM7.40812 8.75L7.2821 9.88417C6.93152 13.0394 6.93152 16.2238 7.2821 19.379L7.3018 19.5563C7.37011 20.171 7.84652 20.6612 8.45905 20.747C10.8082 21.0758 13.1918 21.0758 15.5409 20.747C16.1535 20.6612 16.6299 20.171 16.6982 19.5563L16.7179 19.379C17.0685 16.2238 17.0685 13.0394 16.7179 9.88417L16.5919 8.75H7.40812Z",fill:"#F1416C"})]}),trash_outline:m.jsx("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M3.51994 15.1668C2.96424 15.1616 2.43084 14.9475 2.02573 14.5671C1.62061 14.1867 1.37343 13.6678 1.33328 13.1135L0.846611 6.15352C0.842233 6.08785 0.850832 6.02197 0.871915 5.95964C0.892998 5.8973 0.926153 5.83972 0.969487 5.7902C1.01282 5.74067 1.06549 5.70017 1.12447 5.671C1.18346 5.64183 1.24762 5.62456 1.31328 5.62018C1.37894 5.61581 1.44482 5.6244 1.50716 5.64549C1.56949 5.66657 1.62707 5.69973 1.67659 5.74306C1.72612 5.78639 1.76662 5.83906 1.79579 5.89804C1.82497 5.95703 1.84223 6.02119 1.84661 6.08685L2.31994 13.0468C2.34358 13.3534 2.48268 13.6395 2.70914 13.8474C2.9356 14.0553 3.23254 14.1694 3.53994 14.1668L8.57328 14.1068C8.8791 14.1038 9.17223 13.9842 9.39278 13.7723C9.61334 13.5604 9.74467 13.2723 9.75994 12.9668L10.1533 6.08685C10.1635 5.95423 10.2249 5.83076 10.3243 5.74246C10.4238 5.65417 10.5537 5.60794 10.6866 5.61352C10.8181 5.6221 10.9409 5.68224 11.0283 5.78086C11.1157 5.87948 11.1606 6.00862 11.1533 6.14018L10.7599 13.0268C10.7264 13.5836 10.4839 14.1072 10.081 14.4928C9.67801 14.8785 9.1443 15.0978 8.58661 15.1068L3.55328 15.1668H3.51994ZM7.98661 8.56685C7.98488 8.43478 7.93165 8.3086 7.83825 8.2152C7.74486 8.12181 7.61868 8.06858 7.48661 8.06685H4.51328C4.38067 8.06685 4.25349 8.11953 4.15972 8.21329C4.06596 8.30706 4.01328 8.43424 4.01328 8.56685C4.01328 8.69946 4.06596 8.82663 4.15972 8.9204C4.25349 9.01417 4.38067 9.06685 4.51328 9.06685H7.48661C7.55338 9.06863 7.61984 9.05701 7.68205 9.03268C7.74426 9.00836 7.80096 8.97181 7.84881 8.9252C7.89667 8.87859 7.93469 8.82287 7.96065 8.76132C7.98661 8.69977 7.99997 8.63365 7.99994 8.56685H7.98661ZM7.46661 11.0335C7.46661 10.9009 7.41393 10.7737 7.32016 10.68C7.2264 10.5862 7.09922 10.5335 6.96661 10.5335H5.03328C4.90067 10.5335 4.77349 10.5862 4.67972 10.68C4.58596 10.7737 4.53328 10.9009 4.53328 11.0335C4.53328 11.1661 4.58596 11.2933 4.67972 11.3871C4.77349 11.4808 4.90067 11.5335 5.03328 11.5335H6.96661C7.09868 11.5318 7.22486 11.4786 7.31825 11.3852C7.41165 11.2918 7.46488 11.1656 7.46661 11.0335ZM11.9999 4.34685C11.9837 4.46582 11.9247 4.5748 11.8338 4.65334C11.743 4.73189 11.6267 4.77462 11.5066 4.77352H11.4333C7.83463 4.27895 4.18525 4.27895 0.586611 4.77352C0.52046 4.78494 0.452697 4.78311 0.387261 4.76812C0.321825 4.75314 0.260019 4.7253 0.205434 4.68622C0.15085 4.64714 0.104575 4.5976 0.0692985 4.54049C0.0340221 4.48338 0.0104474 4.41982 -5.58854e-05 4.35352C-0.0212122 4.22268 0.0104398 4.08881 0.0879442 3.9813C0.165449 3.87379 0.282465 3.80146 0.413277 3.78018C0.499944 3.78018 1.41994 3.62018 2.86661 3.50685L3.10661 2.25352C3.18278 1.85342 3.39637 1.49252 3.71044 1.23323C4.02452 0.973936 4.41933 0.832548 4.82661 0.833516H7.17994C7.59027 0.831559 7.98819 0.974125 8.30391 1.23621C8.61963 1.4983 8.83301 1.86317 8.90661 2.26685L9.13328 3.50685C9.92661 3.57352 10.7399 3.65352 11.5733 3.78018C11.6386 3.78918 11.7015 3.811 11.7583 3.84439C11.8152 3.87778 11.8648 3.92209 11.9045 3.97476C11.9441 4.02742 11.973 4.08741 11.9894 4.15127C12.0058 4.21513 12.0093 4.2816 11.9999 4.34685ZM5.70661 3.39352H8.09328L7.91994 2.44685C7.88875 2.27498 7.79829 2.11949 7.66431 2.00743C7.53032 1.89537 7.36128 1.83383 7.18661 1.83352H4.83328C4.65875 1.83327 4.48955 1.89362 4.35458 2.00427C4.21962 2.11492 4.12726 2.269 4.09328 2.44018L3.91328 3.39352H5.70661Z",fill:"inherit"})}),plus_squared:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.16667 10.8333H5.83333C5.61232 10.8333 5.40036 10.7455 5.24408 10.5893C5.0878 10.433 5 10.221 5 10C5 9.77899 5.0878 9.56703 5.24408 9.41075C5.40036 9.25447 5.61232 9.16667 5.83333 9.16667H9.16667V10.8333ZM14.1667 9.16667H10.8333V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56703 14.7559 9.41075C14.5996 9.25447 14.3877 9.16667 14.1667 9.16667Z",fill:"white"}),m.jsx("path",{opacity:"0.3",d:"M13.4915 1.66667H6.50817C3.83419 1.66667 1.6665 3.83436 1.6665 6.50834V13.4917C1.6665 16.1657 3.83419 18.3333 6.50817 18.3333H13.4915C16.1655 18.3333 18.3332 16.1657 18.3332 13.4917V6.50834C18.3332 3.83436 16.1655 1.66667 13.4915 1.66667Z",fill:"white"}),m.jsx("path",{d:"M14.1667 9.16667H10.8333V5.83333C10.8333 5.61232 10.7455 5.40036 10.5893 5.24408C10.433 5.0878 10.221 5 10 5C9.77899 5 9.56702 5.0878 9.41074 5.24408C9.25446 5.40036 9.16667 5.61232 9.16667 5.83333V9.16667H5.83333C5.61232 9.16667 5.40036 9.25446 5.24408 9.41074C5.0878 9.56702 5 9.77899 5 10C5 10.221 5.0878 10.433 5.24408 10.5893C5.40036 10.7455 5.61232 10.8333 5.83333 10.8333H9.16667V14.1667C9.16667 14.3877 9.25446 14.5996 9.41074 14.7559C9.56702 14.9122 9.77899 15 10 15C10.221 15 10.433 14.9122 10.5893 14.7559C10.7455 14.5996 10.8333 14.3877 10.8333 14.1667V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56702 14.7559 9.41074C14.5996 9.25446 14.3877 9.16667 14.1667 9.16667Z",fill:"white"})]}),plus_squared2:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.16667 10.8332H5.83333C5.61232 10.8332 5.40036 10.7454 5.24408 10.5891C5.0878 10.4328 5 10.2209 5 9.99984C5 9.77882 5.0878 9.56686 5.24408 9.41058C5.40036 9.2543 5.61232 9.1665 5.83333 9.1665H9.16667V10.8332ZM14.1667 9.1665H10.8333V10.8332H14.1667C14.3877 10.8332 14.5996 10.7454 14.7559 10.5891C14.9122 10.4328 15 10.2209 15 9.99984C15 9.77882 14.9122 9.56686 14.7559 9.41058C14.5996 9.2543 14.3877 9.1665 14.1667 9.1665Z",fill:"#1868DB"}),m.jsx("path",{opacity:"0.3",d:"M13.4917 1.6665H6.50832C3.83434 1.6665 1.66666 3.83419 1.66666 6.50817V13.4915C1.66666 16.1655 3.83434 18.3332 6.50832 18.3332H13.4917C16.1656 18.3332 18.3333 16.1655 18.3333 13.4915V6.50817C18.3333 3.83419 16.1656 1.6665 13.4917 1.6665Z",fill:"#1868DB"}),m.jsx("path",{d:"M14.1667 9.16667H10.8333V5.83333C10.8333 5.61232 10.7455 5.40036 10.5893 5.24408C10.433 5.0878 10.221 5 10 5C9.77899 5 9.56702 5.0878 9.41074 5.24408C9.25446 5.40036 9.16667 5.61232 9.16667 5.83333V9.16667H5.83333C5.61232 9.16667 5.40036 9.25446 5.24408 9.41074C5.0878 9.56702 5 9.77899 5 10C5 10.221 5.0878 10.433 5.24408 10.5893C5.40036 10.7455 5.61232 10.8333 5.83333 10.8333H9.16667V14.1667C9.16667 14.3877 9.25446 14.5996 9.41074 14.7559C9.56702 14.9122 9.77899 15 10 15C10.221 15 10.433 14.9122 10.5893 14.7559C10.7455 14.5996 10.8333 14.3877 10.8333 14.1667V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56702 14.7559 9.41074C14.5996 9.25446 14.3877 9.16667 14.1667 9.16667Z",fill:"#1868DB"})]}),plus_circle:m.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M9.00008 0.666992C7.35191 0.666992 5.74074 1.15573 4.37033 2.07141C2.99992 2.98709 1.93182 4.28858 1.30109 5.8113C0.670359 7.33401 0.505331 9.00957 0.826874 10.6261C1.14842 12.2426 1.94209 13.7274 3.10753 14.8929C4.27297 16.0583 5.75782 16.852 7.37433 17.1735C8.99084 17.4951 10.6664 17.3301 12.1891 16.6993C13.7118 16.0686 15.0133 15.0005 15.929 13.6301C16.8447 12.2597 17.3334 10.6485 17.3334 9.00033C17.3334 7.90598 17.1179 6.82234 16.6991 5.8113C16.2803 4.80025 15.6665 3.88159 14.8926 3.10777C14.1188 2.33395 13.2002 1.72012 12.1891 1.30133C11.1781 0.88254 10.0944 0.666992 9.00008 0.666992ZM13.1668 9.83366H9.83342V13.167C9.83342 13.388 9.74562 13.6 9.58934 13.7562C9.43306 13.9125 9.2211 14.0003 9.00008 14.0003C8.77907 14.0003 8.56711 13.9125 8.41083 13.7562C8.25455 13.6 8.16675 13.388 8.16675 13.167V9.83366H4.83342C4.6124 9.83366 4.40044 9.74586 4.24416 9.58958C4.08788 9.4333 4.00008 9.22134 4.00008 9.00033C4.00008 8.77931 4.08788 8.56735 4.24416 8.41107C4.40044 8.25479 4.6124 8.16699 4.83342 8.16699H8.16675V4.83366C8.16675 4.61265 8.25455 4.40068 8.41083 4.2444C8.56711 4.08812 8.77907 4.00033 9.00008 4.00033C9.2211 4.00033 9.43306 4.08812 9.58934 4.2444C9.74562 4.40068 9.83342 4.61265 9.83342 4.83366V8.16699H13.1668C13.3878 8.16699 13.5997 8.25479 13.756 8.41107C13.9123 8.56735 14.0001 8.77931 14.0001 9.00033C14.0001 9.22134 13.9123 9.4333 13.756 9.58958C13.5997 9.74586 13.3878 9.83366 13.1668 9.83366Z",fill:"black"})}),close:m.jsx("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M15.0862 13.5L19.125 9.49499C19.3398 9.27718 19.4593 8.98295 19.4572 8.67703C19.4551 8.37112 19.3315 8.07856 19.1137 7.86374C18.8959 7.64891 18.6017 7.52941 18.2958 7.53152C17.9898 7.53363 17.6973 7.65718 17.4825 7.87499L13.5 11.9137L9.51747 7.95374C9.30669 7.74421 9.02155 7.6266 8.72435 7.6266C8.42714 7.6266 8.142 7.74421 7.93122 7.95374C7.82578 8.05832 7.74208 8.18275 7.68497 8.31984C7.62785 8.45693 7.59845 8.60398 7.59845 8.75249C7.59845 8.901 7.62785 9.04805 7.68497 9.18514C7.74208 9.32223 7.82578 9.44666 7.93122 9.55124L11.9137 13.5L7.87497 17.505C7.66014 17.7228 7.54064 18.017 7.54275 18.3229C7.54486 18.6289 7.66841 18.9214 7.88622 19.1362C8.10403 19.3511 8.39826 19.4706 8.70417 19.4685C9.01009 19.4663 9.30264 19.3428 9.51747 19.125L13.5 15.0862L17.4825 19.0462C17.6933 19.2558 17.9784 19.3734 18.2756 19.3734C18.5728 19.3734 18.8579 19.2558 19.0687 19.0462C19.1742 18.9417 19.2579 18.8172 19.315 18.6801C19.3721 18.543 19.4015 18.396 19.4015 18.2475C19.4015 18.099 19.3721 17.9519 19.315 17.8148C19.2579 17.6777 19.1742 17.5533 19.0687 17.4487L15.0862 13.5Z",fill:"#1868DB"})}),close2:m.jsx("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M15.0862 13.5L19.125 9.49499C19.3398 9.27718 19.4593 8.98295 19.4572 8.67703C19.4551 8.37112 19.3315 8.07856 19.1137 7.86374C18.8959 7.64891 18.6017 7.52941 18.2958 7.53152C17.9898 7.53363 17.6973 7.65718 17.4825 7.87499L13.5 11.9137L9.51747 7.95374C9.30669 7.74421 9.02155 7.6266 8.72435 7.6266C8.42714 7.6266 8.142 7.74421 7.93122 7.95374C7.82578 8.05832 7.74208 8.18275 7.68497 8.31984C7.62785 8.45693 7.59845 8.60398 7.59845 8.75249C7.59845 8.901 7.62785 9.04805 7.68497 9.18514C7.74208 9.32223 7.82578 9.44666 7.93122 9.55124L11.9137 13.5L7.87497 17.505C7.66014 17.7228 7.54064 18.017 7.54275 18.3229C7.54486 18.6289 7.66841 18.9214 7.88622 19.1362C8.10403 19.3511 8.39826 19.4706 8.70417 19.4685C9.01009 19.4663 9.30264 19.3428 9.51747 19.125L13.5 15.0862L17.4825 19.0462C17.6933 19.2558 17.9784 19.3734 18.2756 19.3734C18.5728 19.3734 18.8579 19.2558 19.0687 19.0462C19.1742 18.9417 19.2579 18.8172 19.315 18.6801C19.3721 18.543 19.4015 18.396 19.4015 18.2475C19.4015 18.099 19.3721 17.9519 19.315 17.8148C19.2579 17.6777 19.1742 17.5533 19.0687 17.4487L15.0862 13.5Z",fill:"inherit"})}),close_custom:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M17.0001 16.9298C16.8127 17.1161 16.5593 17.2206 16.2951 17.2206C16.0309 17.2206 15.7774 17.1161 15.5901 16.9298L7.05007 8.48985C6.95634 8.39688 6.88195 8.28628 6.83118 8.16442C6.78041 8.04256 6.75427 7.91186 6.75427 7.77985C6.75427 7.64783 6.78041 7.51713 6.83118 7.39527C6.88195 7.27341 6.95634 7.16281 7.05007 7.06985C7.23743 6.88359 7.49088 6.77905 7.75507 6.77905C8.01926 6.77905 8.27271 6.88359 8.46007 7.06985L17.0001 15.5098C17.0938 15.6028 17.1682 15.7134 17.219 15.8353C17.2697 15.9571 17.2959 16.0878 17.2959 16.2198C17.2959 16.3519 17.2697 16.4826 17.219 16.6044C17.1682 16.7263 17.0938 16.8369 17.0001 16.9298Z",fill:"#202125"}),m.jsx("path",{opacity:"0.3",d:"M8.46004 16.9999C8.26909 17.1935 8.00904 17.3033 7.73711 17.3052C7.46518 17.3071 7.20365 17.2009 7.01004 17.0099C6.81643 16.819 6.70661 16.5589 6.70474 16.287C6.70286 16.0151 6.80909 15.7535 7.00004 15.5599L15.54 6.99991C15.731 6.8063 15.991 6.69648 16.263 6.6946C16.5349 6.69273 16.7964 6.79895 16.99 6.98991C17.1836 7.18087 17.2935 7.44091 17.2953 7.71284C17.2972 7.98477 17.191 8.2463 17 8.43991L8.46004 16.9999Z",fill:"#202125"})]}),expand:m.jsx("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M14.1667 29.75V26.9167H9.08083L15.4558 20.5417L13.4583 18.5442L7.08333 24.9192V19.8333H4.25V29.75H14.1667ZM20.5417 15.4558L26.9167 9.08083V14.1667H29.75V4.25H19.8333V7.08333H24.9192L18.5442 13.4583L20.5417 15.4558Z",fill:"#5E6278"})}),error:m.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M12 21C7.0293 21 3 16.9707 3 12C3 7.0293 7.0293 3 12 3C16.9707 3 21 7.0293 21 12C21 16.9707 16.9707 21 12 21ZM11.1 14.7V16.5H12.9V14.7H11.1ZM11.1 7.5V12.9H12.9V7.5H11.1Z",fill:"inherit"})}),printer_blue:m.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M12.1333 4.66602H3.86667C2.83574 4.66602 2 5.50175 2 6.53268V10.1327C2 11.1636 2.83574 11.9993 3.86667 11.9993H12.1333C13.1643 11.9993 14 11.1636 14 10.1327V6.53268C14 5.50175 13.1643 4.66602 12.1333 4.66602Z",fill:"#1868DB"}),m.jsx("path",{d:"M6.83366 1.33301H9.17366C9.74714 1.33477 10.2965 1.56382 10.7014 1.96996C11.1063 2.3761 11.3337 2.92619 11.3337 3.49967V4.66634H4.66699V3.49967C4.66699 2.92504 4.89527 2.37394 5.30159 1.96761C5.70792 1.56128 6.25902 1.33301 6.83366 1.33301Z",fill:"#1868DB"}),m.jsx("path",{d:"M5.33301 10H10.6663V12.6133C10.6663 13.1579 10.45 13.6802 10.0649 14.0653C9.67986 14.4503 9.15759 14.6667 8.61301 14.6667H7.38634C6.84176 14.6667 6.31949 14.4503 5.93442 14.0653C5.54934 13.6802 5.33301 13.1579 5.33301 12.6133V10Z",fill:"#1868DB"}),m.jsx("path",{d:"M6.66699 7.83301H4.66699C4.53438 7.83301 4.40721 7.78033 4.31344 7.68656C4.21967 7.59279 4.16699 7.46562 4.16699 7.33301C4.16699 7.2004 4.21967 7.07322 4.31344 6.97945C4.40721 6.88569 4.53438 6.83301 4.66699 6.83301H6.66699C6.7996 6.83301 6.92678 6.88569 7.02055 6.97945C7.11431 7.07322 7.16699 7.2004 7.16699 7.33301C7.16699 7.46562 7.11431 7.59279 7.02055 7.68656C6.92678 7.78033 6.7996 7.83301 6.66699 7.83301Z",fill:"black"}),m.jsx("path",{d:"M11.3337 10.5H4.66699C4.53438 10.5 4.40721 10.4473 4.31344 10.3536C4.21967 10.2598 4.16699 10.1326 4.16699 10C4.16699 9.86739 4.21967 9.74022 4.31344 9.64645C4.40721 9.55268 4.53438 9.5 4.66699 9.5H11.3337C11.4663 9.5 11.5934 9.55268 11.6872 9.64645C11.781 9.74022 11.8337 9.86739 11.8337 10C11.8337 10.1326 11.781 10.2598 11.6872 10.3536C11.5934 10.4473 11.4663 10.5 11.3337 10.5Z",fill:"black"})]})};function $y({showBulkActions:e=!0,meta:t}){const n=J(),{currentPage:r,perview:o}=ne(e=>e.app);return T.useEffect(()=>{t&&r>t?.last_page&&n(vt(1))},[t?.per_page]),m.jsxs("div",{className:Do("flex items-center justify-between gap-4 flex-wrap",t&&t?.total>0?null:"hidden"),children:[e?m.jsxs("div",{className:"flex items-center gap-2.5 shrink-0",children:[m.jsxs(Sd,{children:[m.jsx(kd,{asChild:!0,children:m.jsxs("button",{className:"rounded-md h-9 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 ",children:[o,m.jsx("span",{className:"rotate-90",children:zy.arrow})]})}),m.jsx(_d,{align:"center",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5",children:[7,10,20].map((e,t)=>m.jsx(Ed,{className:`capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${o===e?"bg-primary_light text-primary":"text-gray-700"} `,onClick:()=>n(bt(e)),children:e},t))})]}),m.jsxs("p",{className:"font-normal text-gray-600 text-[15px]",children:["Showing ",t?.from," - ",t?.to," of ",t?.total]})]}):null,m.jsx(Iy,{count:t?.last_page||1,page:t?.current_page??1,shape:"rounded",color:"primary",onChange:(e,t)=>{n(vt(t))}})]})}function Hy({props:e={}}){return m.jsxs("div",{className:"flex flex-col gap-3 items-center py-24",children:[m.jsx("p",{className:"font-bold text-sm",children:e.header??"No item attached"}),m.jsx("p",{className:"font-bold text-[13px] text-gray-700",children:e.subText??"Add a new item to start managing your orders."})]})}function Vy({columns:e,data:t,tbhRowClass:n,tHeadClass:r,tbCellClass:o,meta:a,showBulkActions:i,showPaginate:s=!0,emptyData:l,emptyProps:u,loading:c,accordionData:d,hasAccordion:f,bodyRowClass:p,tableContainerClass:h,firstCellClass:g,lastCellClass:y,showAccordionDropdown:v=!0,onToggleAccordion:b}){const[w,x]=T.useState(null),C=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=T.useState(()=>({current:Sr(t)})),[r,o]=T.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:t,columns:e,getCoreRowModel:e=>On(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let l=0;l<t.length;l++){const u=Ln(e,e._getRowId(t[l],l,a),t[l],l,o,0,null==a?void 0:a.id);var s;n.flatRows.push(u),n.rowsById[u.id]=u,i.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=r(u.originalSubRows,o+1,u)))}return i};return n.rows=r(t),n},Mn(e.options,"debugTable",0,()=>e._autoResetPageIndex()))});return m.jsxs("div",{className:"flex flex-col gap-[30px]",children:[m.jsx("div",{className:`shadow-[0_3px_4px_0_#00000008] ${h}`,children:m.jsxs(Ao,{children:[m.jsx(Fo,{children:C.getHeaderGroups().map(e=>m.jsx(Io,{className:Do("border-gray-300 bg-gray-100 hover:!bg-gray-100 rounded-xl",n),children:e.headers.map(e=>m.jsx(zo,{className:Do("text-dark text-sm capitalize font-bold",r),children:e.isPlaceholder?null:kr(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),m.jsx(Lo,{children:c?Array(5).fill(null).map((e,t)=>m.jsx(D.Fragment,{children:C.getHeaderGroups().map(e=>m.jsx(Io,{className:Do("border-gray-300 hover:!bg-gray-100 rounded-xl"),children:e.headers.map(e=>m.jsx($o,{children:m.jsx(Ho,{className:"w-full h-6 rounded-lg"})},e.id))},e.id))},t)):C?.getRowModel().rows?.length?C?.getRowModel().rows.map((e,t)=>m.jsx(D.Fragment,{children:m.jsx(Io,{onClick:()=>((e,t)=>{x(t=>t===e?null:e),b?.(e,t)})(t,e.original),"data-state":e.getIsSelected()&&"selected",className:`border-gray-300 hover:!bg-gray-100 data-[state=selected]:bg-gray-100 ${p} `,children:e.getVisibleCells().map((n,r)=>m.jsx($o,{className:Do("text-gray-500 text-sm font-bold",o,0===r&&g,r===e.getVisibleCells().length-1&&y),children:m.jsxs("div",{className:"flex",children:[f&&v&&0===r&&m.jsx("div",{className:"cursor-pointer inline",children:m.jsx("div",{className:"transform transition-transform duration-200 "+(w===t?"-rotate-90":"rotate-90"),children:zy.arrow})})," ",m.jsx("div",{children:kr(n.column.columnDef.cell,n.getContext())})]})},n.id))},e.id)},e.id)):m.jsx(Io,{children:m.jsx($o,{colSpan:e.length,className:"h-24 text-center hover:bg-gray-100",children:l?m.jsx(Hy,{props:u}):"No results found."})})})]})}),s&&m.jsx($y,{showBulkActions:i,meta:a})]})}function By(e,t="NGN",n="en-NG"){isNaN(e)&&(e=0);return new Intl.NumberFormat(n,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:6}).format(e)}function Uy(e=0){if(null==e)return"0";if(isNaN(e))return"0";{const[t,n]=e.toString().split("."),r=t.replace(/\B(?=(\d{3})+(?!\d))/g,",");return n?`${r}.${n}`:r}}var Wy,Yy="HoverCard",[qy,Gy]=Yo(Yy,[Ns]),Ky=Ns(),[Qy,Zy]=qy(Yy),Xy=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,l=Ky(t),u=T.useRef(0),c=T.useRef(0),d=T.useRef(!1),f=T.useRef(!1),[p,h]=Qo({prop:r,defaultProp:o??!1,onChange:a,caller:Yy}),g=T.useCallback(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>h(!0),i)},[i,h]),y=T.useCallback(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>h(!1),s))},[s,h]),v=T.useCallback(()=>h(!1),[h]);return T.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),m.jsx(Qy,{scope:t,open:p,onOpenChange:h,onOpen:g,onClose:y,onDismiss:v,hasSelectionRef:d,isPointerDownOnContentRef:f,children:m.jsx(Us,{...l,children:n})})};Xy.displayName=Yy;var Jy="HoverCardTrigger",ev=T.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Zy(Jy,n),a=Ky(n);return m.jsx(Ws,{asChild:!0,...a,children:m.jsx(oa.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:Vo(e.onPointerEnter,iv(o.onOpen)),onPointerLeave:Vo(e.onPointerLeave,iv(o.onClose)),onFocus:Vo(e.onFocus,o.onOpen),onBlur:Vo(e.onBlur,o.onClose),onTouchStart:Vo(e.onTouchStart,e=>e.preventDefault())})})});ev.displayName=Jy;var[tv,nv]=qy("HoverCardPortal",{forceMount:void 0}),rv="HoverCardContent",ov=T.forwardRef((e,t)=>{const n=nv(rv,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=Zy(rv,e.__scopeHoverCard);return m.jsx(Ks,{present:r||a.open,children:m.jsx(av,{"data-state":a.open?"open":"closed",...o,onPointerEnter:Vo(e.onPointerEnter,iv(a.onOpen)),onPointerLeave:Vo(e.onPointerLeave,iv(a.onClose)),ref:t})})});ov.displayName=rv;var av=T.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,l=Zy(rv,n),u=Ky(n),c=T.useRef(null),d=Wo(t,c),[f,p]=T.useState(!1);return T.useEffect(()=>{if(f){const e=document.body;return Wy=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=Wy,e.style.webkitUserSelect=Wy}}},[f]),T.useEffect(()=>{if(c.current){const e=()=>{p(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{""!==document.getSelection()?.toString()&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),T.useEffect(()=>{if(c.current){const e=function(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(c.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),m.jsx(ma,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:Vo(a,e=>{e.preventDefault()}),onDismiss:l.onDismiss,children:m.jsx(Ys,{...u,...s,onPointerDown:Vo(s.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:d,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function iv(e){return t=>"touch"===t.pointerType?void 0:e()}T.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Ky(n);return m.jsx(qs,{...o,...r,ref:t})}).displayName="HoverCardArrow";var sv=ov;const lv=Xy,uv=ev,cv=T.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>m.jsx(sv,{ref:o,align:t,sideOffset:n,className:Do("z-50 w-64 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r}));function dv({children:e,trigger:t,fieldName:n,align:r="start"}){return m.jsxs(lv,{children:[m.jsx(uv,{className:"cursor-pointer",children:t??zy.info_input}),m.jsxs(cv,{align:r,className:"bg-[#0A0D14] text-[#CDD0D5] text-xs font-normal border-none",children:[n?m.jsx("p",{className:"text-sm font-medium text-white first-letter:uppercase",children:n}):null,e]})]})}function fv({status:e}){return m.jsx("span",{className:Do("font-semibold text-xs rounded p-[7px] capitalize text-center min-w-[70px] bg-gray-300 text-gray-700",["active","approved","published","received","returned","completed","reconciled","credit"].includes(e)?"text-success bg-success-light":null,["inactive","pending","expired","expiring","rejected","voided","cancelled","debit","out of stock"].includes(e)?"text-danger bg-danger_light":null,["pending","paylater","suspended","awaiting_approval"].includes(e)?"text-warning bg-warning-light":null,["draft","in_transit"].includes(e)?"text-black bg-[#E1E3EA]":null,["ongoing"].includes(e)?"text-[#7239EA] bg-[#f5edff]":null),children:e?.replace("_"," ")})}cv.displayName=sv.displayName,Array(12).fill(0);let pv=1;const hv=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:n,...r}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:pv++,a=this.toasts.find(e=>e.id===o),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:n}),{...t,...e,id:o,dismissible:i,title:n}):t):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const r=Promise.resolve(e instanceof Function?e():e);let o,a=void 0!==n;const i=r.then(async e=>{o=["resolve",e];if(D.isValidElement(e))a=!1,this.create({id:n,type:"default",message:e});else if(mv(e)&&!e.ok){a=!1;const r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,i="object"==typeof r&&!D.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:o,...i})}else if(e instanceof Error){a=!1;const r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"==typeof r&&!D.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:o,...i})}else if(void 0!==t.success){a=!1;const r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,i="object"==typeof r&&!D.isValidElement(r)?r:{message:r};this.create({id:n,type:"success",description:o,...i})}}).catch(async e=>{if(o=["reject",e],void 0!==t.error){a=!1;const r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"==typeof r&&!D.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:o,...i})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),s=()=>new Promise((e,t)=>i.then(()=>"reject"===o[0]?t(o[1]):e(o[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||pv++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},mv=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,gv=(e,t)=>{const n=(null==t?void 0:t.id)||pv++;return hv.addToast({title:e,...t,id:n}),n},yv=Object.assign(gv,{success:hv.success,info:hv.info,warning:hv.warning,error:hv.error,custom:hv.custom,message:hv.message,promise:hv.promise,dismiss:hv.dismiss,loading:hv.loading},{getHistory:()=>hv.toasts,getToasts:()=>hv.getActiveToasts()});function vv(e,t){return function(){return e.apply(t,arguments)}}!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");const{toString:bv}=Object.prototype,{getPrototypeOf:wv}=Object,{iterator:xv,toStringTag:Cv}=Symbol,Sv=(kv=Object.create(null),e=>{const t=bv.call(e);return kv[t]||(kv[t]=t.slice(8,-1).toLowerCase())});var kv;const _v=e=>(e=e.toLowerCase(),t=>Sv(t)===e),Ev=e=>t=>typeof t===e,{isArray:Rv}=Array,Nv=Ev("undefined");function jv(e){return null!==e&&!Nv(e)&&null!==e.constructor&&!Nv(e.constructor)&&Mv(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pv=_v("ArrayBuffer");const Ov=Ev("string"),Mv=Ev("function"),Tv=Ev("number"),Dv=e=>null!==e&&"object"==typeof e,Av=e=>{if("object"!==Sv(e))return!1;const t=wv(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Cv in e||xv in e)},Fv=_v("Date"),Lv=_v("File"),Iv=_v("Blob"),zv=_v("FileList"),$v=_v("URLSearchParams"),[Hv,Vv,Bv,Uv]=["ReadableStream","Request","Response","Headers"].map(_v);function Wv(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Rv(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(jv(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function Yv(e,t){if(jv(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const qv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Gv=e=>!Nv(e)&&e!==qv;const Kv=(Qv="undefined"!=typeof Uint8Array&&wv(Uint8Array),e=>Qv&&e instanceof Qv);var Qv;const Zv=_v("HTMLFormElement"),Xv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Jv=_v("RegExp"),eb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wv(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const tb=_v("AsyncFunction"),nb=(rb="function"==typeof setImmediate,ob=Mv(qv.postMessage),rb?setImmediate:ob?((e,t)=>(qv.addEventListener("message",({source:n,data:r})=>{n===qv&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),qv.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var rb,ob;const ab="undefined"!=typeof queueMicrotask?queueMicrotask.bind(qv):"undefined"!=typeof process&&process.nextTick||nb;var ib={isArray:Rv,isArrayBuffer:Pv,isBuffer:jv,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Mv(e.append)&&("formdata"===(t=Sv(e))||"object"===t&&Mv(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Pv(e.buffer),t},isString:Ov,isNumber:Tv,isBoolean:e=>!0===e||!1===e,isObject:Dv,isPlainObject:Av,isEmptyObject:e=>{if(!Dv(e)||jv(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Hv,isRequest:Vv,isResponse:Bv,isHeaders:Uv,isUndefined:Nv,isDate:Fv,isFile:Lv,isBlob:Iv,isRegExp:Jv,isFunction:Mv,isStream:e=>Dv(e)&&Mv(e.pipe),isURLSearchParams:$v,isTypedArray:Kv,isFileList:zv,forEach:Wv,merge:function e(){const{caseless:t}=Gv(this)&&this||{},n={},r=(r,o)=>{const a=t&&Yv(n,o)||o;Av(n[a])&&Av(r)?n[a]=e(n[a],r):Av(r)?n[a]=e({},r):Rv(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Wv(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Wv(t,(t,r)=>{n&&Mv(t)?e[r]=vv(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&wv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Sv,kindOfTest:_v,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Rv(e))return e;let t=e.length;if(!Tv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[xv]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Zv,hasOwnProperty:Xv,hasOwnProp:Xv,reduceDescriptors:eb,freezeMethods:e=>{eb(e,(t,n)=>{if(Mv(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Mv(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Rv(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Yv,global:qv,isContextDefined:Gv,isSpecCompliantForm:function(e){return!!(e&&Mv(e.append)&&"FormData"===e[Cv]&&e[xv])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Dv(e)){if(t.indexOf(e)>=0)return;if(jv(e))return e;if(!("toJSON"in e)){t[r]=e;const o=Rv(e)?[]:{};return Wv(e,(e,t)=>{const a=n(e,r+1);!Nv(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:tb,isThenable:e=>e&&(Dv(e)||Mv(e))&&Mv(e.then)&&Mv(e.catch),setImmediate:nb,asap:ab,isIterable:e=>null!=e&&Mv(e[xv])};function sb(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ib.inherits(sb,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ib.toJSONObject(this.config),code:this.code,status:this.status}}});const lb=sb.prototype,ub={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ub[e]={value:e}}),Object.defineProperties(sb,ub),Object.defineProperty(lb,"isAxiosError",{value:!0}),sb.from=(e,t,n,r,o,a)=>{const i=Object.create(lb);return ib.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),sb.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};function cb(e){return ib.isPlainObject(e)||ib.isArray(e)}function db(e){return ib.endsWith(e,"[]")?e.slice(0,-2):e}function fb(e,t,n){return e?e.concat(t).map(function(e,t){return e=db(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const pb=ib.toFlatObject(ib,{},null,function(e){return/^is[A-Z]/.test(e)});function hb(e,t,n){if(!ib.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ib.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ib.isUndefined(t[e])})).metaTokens,o=n.visitor||u,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ib.isSpecCompliantForm(t);if(!ib.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ib.isDate(e))return e.toISOString();if(ib.isBoolean(e))return e.toString();if(!s&&ib.isBlob(e))throw new sb("Blob is not supported. Use a Buffer instead.");return ib.isArrayBuffer(e)||ib.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(ib.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ib.isArray(e)&&function(e){return ib.isArray(e)&&!e.some(cb)}(e)||(ib.isFileList(e)||ib.endsWith(n,"[]"))&&(s=ib.toArray(e)))return n=db(n),s.forEach(function(e,r){!ib.isUndefined(e)&&null!==e&&t.append(!0===i?fb([n],r,a):null===i?n:n+"[]",l(e))}),!1;return!!cb(e)||(t.append(fb(o,n,a),l(e)),!1)}const c=[],d=Object.assign(pb,{defaultVisitor:u,convertValue:l,isVisitable:cb});if(!ib.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ib.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),ib.forEach(n,function(n,a){!0===(!(ib.isUndefined(n)||null===n)&&o.call(t,n,ib.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),c.pop()}}(e),t}function mb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function gb(e,t){this._pairs=[],e&&hb(e,this,t)}const yb=gb.prototype;function vb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bb(e,t,n){if(!t)return e;const r=n&&n.encode||vb;ib.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(a=o?o(t,n):ib.isURLSearchParams(t)?t.toString():new gb(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}yb.append=function(e,t){this._pairs.push([e,t])},yb.toString=function(e){const t=e?function(t){return e.call(this,t,mb)}:mb;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class wb{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ib.forEach(this.handlers,function(t){null!==t&&e(t)})}}var xb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cb={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:gb,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Sb="undefined"!=typeof window&&"undefined"!=typeof document,kb="object"==typeof navigator&&navigator||void 0,_b=Sb&&(!kb||["ReactNative","NativeScript","NS"].indexOf(kb.product)<0),Eb="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Rb=Sb&&window.location.href||"http://localhost";var Nb={...Object.freeze({__proto__:null,hasBrowserEnv:Sb,hasStandardBrowserEnv:_b,hasStandardBrowserWebWorkerEnv:Eb,navigator:kb,origin:Rb}),...Cb};function jb(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&ib.isArray(r)?r.length:a,s)return ib.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&ib.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&ib.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(ib.isFormData(e)&&ib.isFunction(e.entries)){const n={};return ib.forEachEntry(e,(e,r)=>{t(function(e){return ib.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Pb={transitional:xb,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ib.isObject(e);o&&ib.isHTMLForm(e)&&(e=new FormData(e));if(ib.isFormData(e))return r?JSON.stringify(jb(e)):e;if(ib.isArrayBuffer(e)||ib.isBuffer(e)||ib.isStream(e)||ib.isFile(e)||ib.isBlob(e)||ib.isReadableStream(e))return e;if(ib.isArrayBufferView(e))return e.buffer;if(ib.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return hb(e,new Nb.classes.URLSearchParams,{visitor:function(e,t,n,r){return Nb.isNode&&ib.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=ib.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return hb(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ib.isString(e))try{return(t||JSON.parse)(e),ib.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Pb.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ib.isResponse(e)||ib.isReadableStream(e))return e;if(e&&ib.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw sb.from(e,sb.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nb.classes.FormData,Blob:Nb.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ib.forEach(["delete","get","head","post","put","patch"],e=>{Pb.headers[e]={}});const Ob=ib.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Mb=Symbol("internals");function Tb(e){return e&&String(e).trim().toLowerCase()}function Db(e){return!1===e||null==e?e:ib.isArray(e)?e.map(Db):String(e)}function Ab(e,t,n,r,o){return ib.isFunction(r)?r.call(this,t,n):(o&&(t=n),ib.isString(t)?ib.isString(r)?-1!==t.indexOf(r):ib.isRegExp(r)?r.test(t):void 0:void 0)}let Fb=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Tb(t);if(!o)throw new Error("header name must be a non-empty string");const a=ib.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Db(e))}const a=(e,t)=>ib.forEach(e,(e,n)=>o(e,n,t));if(ib.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(ib.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ob[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(ib.isObject(e)&&ib.isIterable(e)){let n,r,o={};for(const t of e){if(!ib.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?ib.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Tb(e)){const n=ib.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ib.isFunction(t))return t.call(this,e,n);if(ib.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Tb(e)){const n=ib.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ab(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Tb(e)){const o=ib.findKey(n,e);!o||t&&!Ab(0,n[o],o,t)||(delete n[o],r=!0)}}return ib.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ab(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ib.forEach(this,(r,o)=>{const a=ib.findKey(n,o);if(a)return t[a]=Db(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Db(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ib.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ib.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Mb]=this[Mb]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Tb(e);t[r]||(!function(e,t){const n=ib.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return ib.isArray(e)?e.forEach(r):r(e),this}};function Lb(e,t){const n=this||Pb,r=t||n,o=Fb.from(r.headers);let a=r.data;return ib.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Ib(e){return!(!e||!e.__CANCEL__)}function zb(e,t,n){sb.call(this,null==e?"canceled":e,sb.ERR_CANCELED,t,n),this.name="CanceledError"}function $b(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new sb("Request failed with status code "+n.status,[sb.ERR_BAD_REQUEST,sb.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Fb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ib.reduceDescriptors(Fb.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ib.freezeMethods(Fb),ib.inherits(zb,sb,{__CANCEL__:!0});const Hb=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[i];o||(o=l),n[a]=s,r[a]=l;let c=i,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o<t)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,l=o(s);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},Vb=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Bb=e=>(...t)=>ib.asap(()=>e(...t));var Ub=Nb.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Nb.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Nb.origin),Nb.navigator&&/(msie|trident)/i.test(Nb.navigator.userAgent)):()=>!0,Wb=Nb.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];ib.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),ib.isString(r)&&i.push("path="+r),ib.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Yb(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const qb=e=>e instanceof Fb?{...e}:e;function Gb(e,t){t=t||{};const n={};function r(e,t,n,r){return ib.isPlainObject(e)&&ib.isPlainObject(t)?ib.merge.call({caseless:r},e,t):ib.isPlainObject(t)?ib.merge({},t):ib.isArray(t)?t.slice():t}function o(e,t,n,o){return ib.isUndefined(t)?ib.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!ib.isUndefined(t))return r(void 0,t)}function i(e,t){return ib.isUndefined(t)?ib.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(qb(e),qb(t),0,!0)};return ib.forEach(Object.keys({...e,...t}),function(r){const a=l[r]||o,i=a(e[r],t[r],r);ib.isUndefined(i)&&a!==s||(n[r]=i)}),n}var Kb=e=>{const t=Gb({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:l}=t;if(t.headers=s=Fb.from(s),t.url=bb(Yb(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),ib.isFormData(r))if(Nb.hasStandardBrowserEnv||Nb.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Nb.hasStandardBrowserEnv&&(o&&ib.isFunction(o)&&(o=o(t)),o||!1!==o&&Ub(t.url))){const e=a&&i&&Wb.read(i);e&&s.set(a,e)}return t};var Qb="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Kb(e);let o=r.data;const a=Fb.from(r.headers).normalize();let i,s,l,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Fb.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());$b(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new sb("Request aborted",sb.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new sb("Network Error",sb.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||xb;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new sb(t,o.clarifyTimeoutError?sb.ETIMEDOUT:sb.ECONNABORTED,e,m)),m=null},void 0===o&&a.setContentType(null),"setRequestHeader"in m&&ib.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),ib.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,c]=Hb(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,u]=Hb(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new zb(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===Nb.protocols.indexOf(y)?n(new sb("Unsupported protocol "+y+":",sb.ERR_BAD_REQUEST,e)):m.send(o||null)})};const Zb=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof sb?t:new zb(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new sb(`timeout ${t} of ms exceeded`,sb.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>ib.asap(i),s}},Xb=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Jb=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ew=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Jb(e))yield*Xb(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},tw="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,nw=tw&&"function"==typeof ReadableStream,rw=tw&&("function"==typeof TextEncoder?(ow=new TextEncoder,e=>ow.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ow;const aw=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iw=nw&&aw(()=>{let e=!1;const t=new Request(Nb.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),sw=nw&&aw(()=>ib.isReadableStream(new Response("").body)),lw={stream:sw&&(e=>e.body)};var uw;tw&&(uw=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!lw[e]&&(lw[e]=ib.isFunction(uw[e])?t=>t[e]():(t,n)=>{throw new sb(`Response type '${e}' is not supported`,sb.ERR_NOT_SUPPORT,n)})}));const cw=async(e,t)=>{const n=ib.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ib.isBlob(e))return e.size;if(ib.isSpecCompliantForm(e)){const t=new Request(Nb.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ib.isArrayBufferView(e)||ib.isArrayBuffer(e)?e.byteLength:(ib.isURLSearchParams(e)&&(e+=""),ib.isString(e)?(await rw(e)).byteLength:void 0)})(t):n};var dw=tw&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:f}=Kb(e);u=u?(u+"").toLowerCase():"text";let p,h=Zb([o,a&&a.toAbortSignal()],i);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&iw&&"get"!==n&&"head"!==n&&0!==(g=await cw(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ib.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=Vb(g,Hb(Bb(l)));r=ew(n.body,65536,e,t)}}ib.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let a=await fetch(p,f);const i=sw&&("stream"===u||"response"===u);if(sw&&(s||i&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=a[t]});const t=ib.toFiniteNumber(a.headers.get("content-length")),[n,r]=s&&Vb(t,Hb(Bb(s),!0))||[];a=new Response(ew(a.body,65536,n,()=>{r&&r(),m&&m()}),e)}u=u||"text";let y=await lw[ib.findKey(lw,u)||"text"](a,e);return!i&&m&&m(),await new Promise((t,n)=>{$b(t,n,{data:y,headers:Fb.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:p})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new sb("Network Error",sb.ERR_NETWORK,e,p),{cause:t.cause||t});throw sb.from(t,t&&t.code,e,p)}});const fw={http:null,xhr:Qb,fetch:dw};ib.forEach(fw,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const pw=e=>`- ${e}`,hw=e=>ib.isFunction(e)||null===e||!1===e;var mw=e=>{e=ib.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){let t;if(n=e[a],r=n,!hw(n)&&(r=fw[(t=String(n)).toLowerCase()],void 0===r))throw new sb(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+a]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new sb("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(pw).join("\n"):" "+pw(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function gw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zb(null,e)}function yw(e){gw(e),e.headers=Fb.from(e.headers),e.data=Lb.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return mw(e.adapter||Pb.adapter)(e).then(function(t){return gw(e),t.data=Lb.call(e,e.transformResponse,t),t.headers=Fb.from(t.headers),t},function(t){return Ib(t)||(gw(e),t&&t.response&&(t.response.data=Lb.call(e,e.transformResponse,t.response),t.response.headers=Fb.from(t.response.headers))),Promise.reject(t)})}const vw="1.11.0",bw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bw[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ww={};bw.transitional=function(e,t,n){function r(e,t){return"[Axios v"+vw+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new sb(r(o," has been removed"+(t?" in "+t:"")),sb.ERR_DEPRECATED);return t&&!ww[o]&&(ww[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},bw.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var xw={assertOptions:function(e,t,n){if("object"!=typeof e)throw new sb("options must be an object",sb.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new sb("option "+a+" must be "+n,sb.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new sb("Unknown option "+a,sb.ERR_BAD_OPTION)}},validators:bw};const Cw=xw.validators;let Sw=class{constructor(e){this.defaults=e||{},this.interceptors={request:new wb,response:new wb}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Gb(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&xw.assertOptions(n,{silentJSONParsing:Cw.transitional(Cw.boolean),forcedJSONParsing:Cw.transitional(Cw.boolean),clarifyTimeoutError:Cw.transitional(Cw.boolean)},!1),null!=r&&(ib.isFunction(r)?t.paramsSerializer={serialize:r}:xw.assertOptions(r,{encode:Cw.function,serialize:Cw.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),xw.assertOptions(t,{baseUrl:Cw.spelling("baseURL"),withXsrfToken:Cw.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&ib.merge(o.common,o[t.method]);o&&ib.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Fb.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!s){const e=[yw.bind(this),void 0];for(e.unshift(...i),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=i.length;let f=t;for(d=0;d<c;){const e=i[d++],t=i[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=yw.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return bb(Yb((e=Gb(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};ib.forEach(["delete","get","head","options"],function(e){Sw.prototype[e]=function(t,n){return this.request(Gb(n||{},{method:e,url:t,data:(n||{}).data}))}}),ib.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Gb(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Sw.prototype[e]=t(),Sw.prototype[e+"Form"]=t(!0)});const kw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kw).forEach(([e,t])=>{kw[t]=e});const _w=function e(t){const n=new Sw(t),r=vv(Sw.prototype.request,n);return ib.extend(r,Sw.prototype,n,{allOwnKeys:!0}),ib.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Gb(t,n))},r}(Pb);_w.Axios=Sw,_w.CanceledError=zb,_w.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new zb(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;const n=new e(function(e){t=e});return{token:n,cancel:t}}},_w.isCancel=Ib,_w.VERSION=vw,_w.toFormData=hb,_w.AxiosError=sb,_w.Cancel=_w.CanceledError,_w.all=function(e){return Promise.all(e)},_w.spread=function(e){return function(t){return e.apply(null,t)}},_w.isAxiosError=function(e){return ib.isObject(e)&&!0===e.isAxiosError},_w.mergeConfig=Gb,_w.AxiosHeaders=Fb,_w.formToJSON=e=>jb(ib.isHTMLForm(e)?new FormData(e):e),_w.getAdapter=mw,_w.HttpStatusCode=kw,_w.default=_w;const{Axios:Ew,AxiosError:Rw,CanceledError:Nw,isCancel:jw,CancelToken:Pw,VERSION:Ow,all:Mw,Cancel:Tw,isAxiosError:Dw,spread:Aw,toFormData:Fw,AxiosHeaders:Lw,HttpStatusCode:Iw,formToJSON:zw,getAdapter:$w,mergeConfig:Hw}=_w,Vw=e=>{e||console.warn("⚠️ No API key provided to createApiClient");const t=_w.create({baseURL:"https://biz.api.simpoocodes.com/api/gateway/v1",headers:{"Content-Type":"application/json","SIMPOO-API-KEY":e}});return t.interceptors.request.use(t=>(e&&t.headers&&(t.headers["SIMPOO-API-KEY"]=e),t),e=>Promise.reject(e)),t.interceptors.response.use(e=>e,e=>(e.response?console.error("API Error:",e.response.status,e.response.data):console.error("Network or Axios Error:",e.message),Promise.reject(e))),t},Bw=(e,t,n={})=>{const{apiKey:r}=En(),o=Vw(r||"");return function(e){return kn(e,fn)}({queryKey:e,queryFn:()=>(async e=>{try{const{data:t}=await o.get(e);return t}catch(e){Ww(e)}})(t),...n})},Uw=(e={enableToast:!0},t,n)=>{const{enableToast:r,...o}=e,{apiKey:a}=En(),i=Vw(a||"");return function(e){const t=bn(),[n]=T.useState(()=>new yn(t,e));T.useEffect(()=>{n.setOptions(e)},[n,e]);const r=T.useSyncExternalStore(T.useCallback(e=>n.subscribe(Jt.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=T.useCallback((e,t)=>{n.mutate(e,t).catch(St)},[n]);if(r.error&&Bt(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}({mutationFn:async({url:e,payload:t})=>{const{data:n}=await i.post(e,t);return n},onSuccess(e,t,n){r&&yv.success(e.message)},onError(e,t,n){console.log(e),Ww(e)},...o})},Ww=e=>{e?.response?(console.log("response data:",e.response.data),console.log("Status Code:",e.response.status),console.log("Status Text:",e.response.statusText),500===e.response.status?yv.error("Something went wrong",{position:"top-right"}):e.response.data&&e.response.data.message&&yv.error(`${e.response?.data?.message}`,{position:"top-right"})):(e.request,console.log(e?.message),yv.error(`${e?.message}`,{position:"top-right"}))};function Yw(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qw,Gw={exports:{}};var Kw=(qw||(qw=1,function(e){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function o(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Gn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function y(e){var t=null,r=!1,o=e._d&&!isNaN(e._d.getTime());return o&&(t=g(e),r=n.call(t.parsedDateParts,function(e){return null!=e}),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?o:(e._isValid=o,e._isValid)}function v(e){var t=h(NaN);return null!=e?p(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function x(e,t){var n,r,o,a=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=g(t)),u(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)u(o=t[r=b[n]])||(e[r]=o);return e}function C(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function S(e){return e instanceof C||null!=e&&null!=e._isAMomentObject}function k(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var n=!0;return p(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var o,a,i,l=[],u=arguments.length;for(a=0;a<u;a++){if(o="","object"==typeof arguments[a]){for(i in o+="\n["+a+"] ",arguments[0])s(arguments[0],i)&&(o+=i+": "+arguments[0][i]+", ");o=o.slice(0,-2)}else o=arguments[a];l.push(o)}k(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var E,R={};function N(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),R[e]||(k(t),R[e]=!0)}function j(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,n;for(n in e)s(e,n)&&(j(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function O(e,t){var n,r=p({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(r[n]=p({},r[n]));return r}function M(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var T={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function D(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return j(r)?r.call(t,n):r}function A(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},z={};function $(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(z[e]=o),t&&(z[t[0]]=function(){return A(o.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,r=e.match(F);for(t=0,n=r.length;t<n;t++)z[r[t]]?r[t]=z[r[t]]:r[t]=H(r[t]);return function(t){var o,a="";for(o=0;o<n;o++)a+=j(r[o])?r[o].call(t,e):r[o];return a}}function B(e,t){return e.isValid()?(t=U(t,e.localeData()),I[t]=I[t]||V(t),I[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(F).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var q="Invalid date";function G(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function Z(e){return this._ordinal.replace("%d",e)}var X={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,n,r){var o=this._relativeTime[n];return j(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return j(n)?n(t):n.replace(/%s/i,t)}var te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function re(e){var t,n,r={};for(n in e)s(e,n)&&(t=ne(n))&&(r[t]=e[n]);return r}var oe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ae(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var ie,se=/\d/,le=/\d\d/,ue=/\d{3}/,ce=/\d{4}/,de=/[+-]?\d{6}/,fe=/\d\d?/,pe=/\d\d\d\d?/,he=/\d\d\d\d\d\d?/,me=/\d{1,3}/,ge=/\d{1,4}/,ye=/[+-]?\d{1,6}/,ve=/\d+/,be=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,xe=/Z|[+-]\d\d(?::?\d\d)?/gi,Ce=/[+-]?\d+(\.\d{1,3})?/,Se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ke=/^[1-9]\d?/,_e=/^([1-9]\d|\d)/;function Ee(e,t,n){ie[e]=j(t)?t:function(e,r){return e&&n?n:t}}function Re(e,t){return s(ie,e)?ie[e](t._strict,t._locale):new RegExp(Ne(e))}function Ne(e){return je(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}function je(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Oe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Pe(t)),n}ie={};var Me={};function Te(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),c(t)&&(o=function(e,n){n[t]=Oe(e)}),r=e.length,n=0;n<r;n++)Me[e[n]]=o}function De(e,t){Te(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function Ae(e,t,n){null!=t&&s(Me,e)&&Me[e](t,n._a,n,e)}function Fe(e){return e%4==0&&e%100!=0||e%400==0}var Le=0,Ie=1,ze=2,$e=3,He=4,Ve=5,Be=6,Ue=7,We=8;function Ye(e){return Fe(e)?366:365}$("Y",0,0,function(){var e=this.year();return e<=9999?A(e,4):"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),Ee("Y",be),Ee("YY",fe,le),Ee("YYYY",ge,ce),Ee("YYYYY",ye,de),Ee("YYYYYY",ye,de),Te(["YYYYY","YYYYYY"],Le),Te("YYYY",function(e,t){t[Le]=2===e.length?r.parseTwoDigitYear(e):Oe(e)}),Te("YY",function(e,t){t[Le]=r.parseTwoDigitYear(e)}),Te("Y",function(e,t){t[Le]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return Oe(e)+(Oe(e)>68?1900:2e3)};var qe,Ge=Qe("FullYear",!0);function Ke(){return Fe(this.year())}function Qe(e,t){return function(n){return null!=n?(Xe(this,e,n),r.updateOffset(this,t),this):Ze(this,e)}}function Ze(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Xe(e,t,n){var r,o,a,i,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),s=29!==(s=e.date())||1!==i||Fe(a)?s:28,o?r.setUTCFullYear(a,i,s):r.setFullYear(a,i,s)}}function Je(e){return j(this[e=ne(e)])?this[e]():this}function et(e,t){if("object"==typeof e){var n,r=ae(e=re(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(j(this[e=ne(e)]))return this[e](t);return this}function tt(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=tt(t,12);return e+=(t-n)/12,1===n?Fe(e)?29:28:31-n%7%2}qe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ee("M",fe,ke),Ee("MM",fe,le),Ee("MMM",function(e,t){return t.monthsShortRegex(e)}),Ee("MMMM",function(e,t){return t.monthsRegex(e)}),Te(["M","MM"],function(e,t){t[Ie]=Oe(e)-1}),Te(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[Ie]=o:g(n).invalidMonth=e});var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Se,st=Se;function lt(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ut(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=qe.call(this._shortMonthsParse,i))?o:null:-1!==(o=qe.call(this._longMonthsParse,i))?o:null:"MMM"===t?-1!==(o=qe.call(this._shortMonthsParse,i))||-1!==(o=qe.call(this._longMonthsParse,i))?o:null:-1!==(o=qe.call(this._longMonthsParse,i))||-1!==(o=qe.call(this._shortMonthsParse,i))?o:null}function dt(e,t,n){var r,o,a;if(this._monthsParseExact)return ct.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ft(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Oe(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,nt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function pt(e){return null!=e?(ft(this,e),r.updateOffset(this,!0),this):Ze(this,"Month")}function ht(){return nt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||yt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||yt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function yt(){function e(e,t){return t.length-e.length}var t,n,r,o,a=[],i=[],s=[];for(t=0;t<12;t++)n=h([2e3,t]),r=je(this.monthsShort(n,"")),o=je(this.months(n,"")),a.push(r),i.push(o),s.push(o),s.push(r);a.sort(e),i.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function vt(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,o){var a,i,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,o);return s<=0?i=Ye(a=e-1)+s:s>Ye(e)?(a=e+1,i=s-Ye(e)):(a=e,i=s),{year:a,dayOfYear:i}}function Ct(e,t,n){var r,o,a=wt(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+St(o=e.year()-1,t,n):i>St(e.year(),t,n)?(r=i-St(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function St(e,t,n){var r=wt(e,t,n),o=wt(e+1,t,n);return(Ye(e)-r+o)/7}function kt(e){return Ct(e,this._week.dow,this._week.doy).week}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),Ee("w",fe,ke),Ee("ww",fe,le),Ee("W",fe,ke),Ee("WW",fe,le),De(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Oe(e)});var _t={dow:0,doy:6};function Et(){return this._week.dow}function Rt(){return this._week.doy}function Nt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function jt(e){var t=Ct(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ot(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Mt(e,t){return e.slice(t,7).concat(e.slice(0,t))}$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),Ee("d",fe),Ee("e",fe),Ee("E",fe),Ee("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ee("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ee("dddd",function(e,t){return t.weekdaysRegex(e)}),De(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:g(n).invalidWeekday=e}),De(["d","e","E"],function(e,t,n,r){t[r]=Oe(e)});var Tt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),At="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ft=Se,Lt=Se,It=Se;function zt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Mt(n,this._week.dow):e?n[e.day()]:n}function $t(e){return!0===e?Mt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?Mt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vt(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=qe.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=qe.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=qe.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=qe.call(this._weekdaysParse,i))||-1!==(o=qe.call(this._shortWeekdaysParse,i))||-1!==(o=qe.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=qe.call(this._shortWeekdaysParse,i))||-1!==(o=qe.call(this._weekdaysParse,i))||-1!==(o=qe.call(this._minWeekdaysParse,i))?o:null:-1!==(o=qe.call(this._minWeekdaysParse,i))||-1!==(o=qe.call(this._weekdaysParse,i))||-1!==(o=qe.call(this._shortWeekdaysParse,i))?o:null}function Bt(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Vt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=Ze(this,"Day");return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Yt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ot(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ft),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=It),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=je(this.weekdaysMin(n,"")),o=je(this.weekdaysShort(n,"")),a=je(this.weekdays(n,"")),i.push(r),s.push(o),l.push(a),u.push(r),u.push(o),u.push(a);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function Jt(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Zt),$("k",["kk",2],0,Xt),$("hmm",0,0,function(){return""+Zt.apply(this)+A(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Zt.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),Ee("a",en),Ee("A",en),Ee("H",fe,_e),Ee("h",fe,ke),Ee("k",fe,ke),Ee("HH",fe,le),Ee("hh",fe,le),Ee("kk",fe,le),Ee("hmm",pe),Ee("hmmss",he),Ee("Hmm",pe),Ee("Hmmss",he),Te(["H","HH"],$e),Te(["k","kk"],function(e,t,n){var r=Oe(e);t[$e]=24===r?0:r}),Te(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Te(["h","hh"],function(e,t,n){t[$e]=Oe(e),g(n).bigHour=!0}),Te("hmm",function(e,t,n){var r=e.length-2;t[$e]=Oe(e.substr(0,r)),t[He]=Oe(e.substr(r)),g(n).bigHour=!0}),Te("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[$e]=Oe(e.substr(0,r)),t[He]=Oe(e.substr(r,2)),t[Ve]=Oe(e.substr(o)),g(n).bigHour=!0}),Te("Hmm",function(e,t,n){var r=e.length-2;t[$e]=Oe(e.substr(0,r)),t[He]=Oe(e.substr(r))}),Te("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[$e]=Oe(e.substr(0,r)),t[He]=Oe(e.substr(r,2)),t[Ve]=Oe(e.substr(o))});var nn=/[ap]\.?m?\.?/i,rn=Qe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:T,longDateFormat:W,invalidDate:q,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:X,months:rt,monthsShort:ot,week:_t,weekdays:Tt,weekdaysMin:At,weekdaysShort:Dt,meridiemParse:nn},ln={},un={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,r,o,a=0;a<e.length;){for(t=(o=dn(e[a]).split("-")).length,n=(n=dn(e[a+1]))?n.split("-"):null;t>0;){if(r=hn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(o,n)>=t-1)break;t--}a++}return an}function pn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function hn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=an._abbr,Yw("./locale/"+t),mn(n)}catch(e){ln[t]=null}return ln[t]}function mn(e,t){var n;return e&&((n=u(t)?vn(e):gn(e,t))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])N("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new M(O(r,t)),un[e]&&un[e].forEach(function(e){gn(e.name,e.config)}),mn(e),ln[e]}return delete ln[e],null}function yn(e,t){if(null!=t){var n,r,o=sn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(O(ln[e]._config,t)):(null!=(r=hn(e))&&(o=r._config),t=O(o,t),null==r&&(t.abbr=e),(n=new M(t)).parentLocale=ln[e],ln[e]=n),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!a(e)){if(t=hn(e))return t;e=[e]}return fn(e)}function bn(){return E(ln)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Ie]<0||n[Ie]>11?Ie:n[ze]<1||n[ze]>nt(n[Le],n[Ie])?ze:n[$e]<0||n[$e]>24||24===n[$e]&&(0!==n[He]||0!==n[Ve]||0!==n[Be])?$e:n[He]<0||n[He]>59?He:n[Ve]<0||n[Ve]>59?Ve:n[Be]<0||n[Be]>999?Be:-1,g(e)._overflowDayOfYear&&(t<Le||t>ze)&&(t=ze),g(e)._overflowWeeks&&-1===t&&(t=Ue),g(e)._overflowWeekday&&-1===t&&(t=We),g(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,kn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_n=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,Rn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Nn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function jn(e){var t,n,r,o,a,i,s=e._i,l=xn.exec(s)||Cn.exec(s),u=kn.length,c=_n.length;if(l){for(g(e).iso=!0,t=0,n=u;t<n;t++)if(kn[t][1].exec(l[1])){o=kn[t][0],r=!1!==kn[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(_n[t][1].exec(l[3])){a=(l[2]||" ")+_n[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Sn.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=o+(a||"")+(i||""),Hn(e)}else e._isValid=!1}function Pn(e,t,n,r,o,a){var i=[On(e),ot.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return a&&i.push(parseInt(a,10)),i}function On(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Mn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Tn(e,t,n){return!e||Dt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Dn(e,t,n){if(e)return Nn[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function An(e){var t,n=Rn.exec(Mn(e._i));if(n){if(t=Pn(n[4],n[3],n[2],n[5],n[6],n[7]),!Tn(n[1],t,e))return;e._a=t,e._tzm=Dn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Fn(e){var t=En.exec(e._i);null===t?(jn(e),!1===e._isValid&&(delete e._isValid,An(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Ln(e,t,n){return null!=e?e:null!=t?t:n}function In(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,o,a,i=[];if(!e._d){for(r=In(e),e._w&&null==e._a[ze]&&null==e._a[Ie]&&$n(e),null!=e._dayOfYear&&(a=Ln(e._a[Le],r[Le]),(e._dayOfYear>Ye(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=bt(a,0,e._dayOfYear),e._a[Ie]=n.getUTCMonth(),e._a[ze]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[$e]&&0===e._a[He]&&0===e._a[Ve]&&0===e._a[Be]&&(e._nextDay=!0,e._a[$e]=0),e._d=(e._useUTC?bt:vt).apply(null,i),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$e]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(g(e).weekdayMismatch=!0)}}function $n(e){var t,n,r,o,a,i,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,i=4,n=Ln(t.GG,e._a[Le],Ct(Kn(),1,4).year),r=Ln(t.W,1),((o=Ln(t.E,1))<1||o>7)&&(l=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=Ct(Kn(),a,i),n=Ln(t.gg,e._a[Le],u.year),r=Ln(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a),r<1||r>St(n,a,i)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=xt(n,r,o,a,i),e._a[Le]=s.year,e._dayOfYear=s.dayOfYear)}function Hn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,o,a,i,s,l,u=""+e._i,c=u.length,d=0;for(l=(o=U(e._f,e._locale).match(F)||[]).length,t=0;t<l;t++)a=o[t],(n=(u.match(Re(a,e))||[])[0])&&((i=u.substr(0,u.indexOf(n))).length>0&&g(e).unusedInput.push(i),u=u.slice(u.indexOf(n)+n.length),d+=n.length),z[a]?(n?g(e).empty=!1:g(e).unusedTokens.push(a),Ae(a,n,e)):e._strict&&!n&&g(e).unusedTokens.push(a);g(e).charsLeftOver=c-d,u.length>0&&g(e).unusedInput.push(u),e._a[$e]<=12&&!0===g(e).bigHour&&e._a[$e]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[$e]=Vn(e._locale,e._a[$e],e._meridiem),null!==(s=g(e).era)&&(e._a[Le]=e._locale.erasConvertYear(s,e._a[Le])),zn(e),wn(e)}else An(e);else jn(e)}function Vn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Bn(e){var t,n,r,o,a,i,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<l;o++)a=0,i=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Hn(t),y(t)&&(i=!0),a+=g(t).charsLeftOver,a+=10*g(t).unusedTokens.length,g(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||i)&&(r=a,n=t,i&&(s=!0));p(e,n||t)}function Un(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),zn(e)}}function Wn(e){var t=new C(wn(Yn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Yn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new C(wn(t)):(d(t)?e._d=t:a(n)?Bn(e):n?Hn(e):qn(e),y(e)||(e._d=null),e))}function qn(e){var t=e._i;u(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Fn(e):a(t)?(e._a=f(t.slice(0),function(e){return parseInt(e,10)}),zn(e)):i(t)?Un(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Gn(e,t,n,r,o){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=r,Wn(s)}function Kn(e,t,n,r){return Gn(e,t,n,r,!1)}r.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Qn=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Zn=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Xn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Kn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Jn(){return Xn("isBefore",[].slice.call(arguments,0))}function er(){return Xn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,o=nr.length;for(t in e)if(s(e,t)&&(-1===qe.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==Oe(e[nr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ar(){return Nr(NaN)}function ir(e){var t=re(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+i+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function sr(e){return e instanceof ir}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ur(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<o;r++)Oe(e[r])!==Oe(t[r])&&i++;return i+a}function cr(e,t){$(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+A(~~(e/60),2)+t+A(~~e%60,2)})}cr("Z",":"),cr("ZZ",""),Ee("Z",xe),Ee("ZZ",xe),Te(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=fr(xe,e)});var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(dr)||["-",0,0])[1]+Oe(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(S(e)||d(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Kn(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var o,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(xe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=hr(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),a!==e&&(!t||this._changeInProgress?Tr(this,Nr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:hr(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function xr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Cr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Yn(t))._a?(e=t._isUTC?h(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function kr(){return!!this.isValid()&&this._isUTC}function _r(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Nr(e,t){var n,r,o,a=e,i=null;return sr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Er.exec(e))?(n="-"===i[1]?-1:1,a={y:0,d:Oe(i[ze])*n,h:Oe(i[$e])*n,m:Oe(i[He])*n,s:Oe(i[Ve])*n,ms:Oe(lr(1e3*i[Be]))*n}):(i=Rr.exec(e))?(n="-"===i[1]?-1:1,a={y:jr(i[2],n),M:jr(i[3],n),w:jr(i[4],n),d:jr(i[5],n),h:jr(i[6],n),m:jr(i[7],n),s:jr(i[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(o=Or(Kn(a.from),Kn(a.to)),(a={}).ms=o.milliseconds,a.M=o.months),r=new ir(a),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function jr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Pr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Or(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Pr(e,t):((n=Pr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Mr(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(N(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Tr(this,Nr(n,r),e),this}}function Tr(e,t,n,o){var a=t._milliseconds,i=lr(t._days),s=lr(t._months);e.isValid()&&(o=null==o||o,s&&ft(e,Ze(e,"Month")+s*n),i&&Xe(e,"Date",Ze(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),o&&r.updateOffset(e,i||s))}Nr.fn=ir.prototype,Nr.invalid=ar;var Dr=Mr(1,"add"),Ar=Mr(-1,"subtract");function Fr(e){return"string"==typeof e||e instanceof String}function Lr(e){return S(e)||d(e)||Fr(e)||c(e)||zr(e)||Ir(e)||null==e}function Ir(e){var t,n,r=i(e)&&!l(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=a.length;for(t=0;t<u;t+=1)n=a[t],o=o||s(e,n);return r&&o}function zr(e){var t=a(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&Fr(e)}).length),t&&n}function $r(e){var t,n,r=i(e)&&!l(e),o=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],o=o||s(e,n);return r&&o}function Hr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Vr(e,t){1===arguments.length&&(arguments[0]?Lr(arguments[0])?(e=arguments[0],t=void 0):$r(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Kn(),o=pr(n,this).startOf("day"),a=r.calendarFormat(this,o)||"sameElse",i=t&&(j(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Kn(n)))}function Br(){return new C(this)}function Ur(e,t){var n=S(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=S(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Yr(e,t,n,r){var o=S(e)?e:Kn(e),a=S(t)?t:Kn(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function qr(e,t){var n,r=S(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Gr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=ne(t)){case"year":a=Zr(this,r)/12;break;case"month":a=Zr(this,r);break;case"quarter":a=Zr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:Pe(a)}function Zr(e,t){if(e.date()<t.date())return-Zr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Xr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):j(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",a="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function to(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)}function no(e,t){return this.isValid()&&(S(e)&&e.isValid()||Kn(e).isValid())?Nr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ro(e){return this.from(Kn(),e)}function oo(e,t){return this.isValid()&&(S(e)&&e.isValid()||Kn(e).isValid())?Nr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ao(e){return this.to(Kn(),e)}function io(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var so=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function lo(){return this._locale}var uo=1e3,co=60*uo,fo=60*co,po=3506328*fo;function ho(e,t){return(e%t+t)%t}function mo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-po:new Date(e,t,n).valueOf()}function go(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-po:Date.UTC(e,t,n)}function yo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ho(t+(this._isUTC?0:this.utcOffset()*co),fo);break;case"minute":t=this._d.valueOf(),t-=ho(t,co);break;case"second":t=this._d.valueOf(),t-=ho(t,uo)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fo-ho(t+(this._isUTC?0:this.utcOffset()*co),fo)-1;break;case"minute":t=this._d.valueOf(),t+=co-ho(t,co)-1;break;case"second":t=this._d.valueOf(),t+=uo-ho(t,uo)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bo(){return this._d.valueOf()-6e4*(this._offset||0)}function wo(){return Math.floor(this.valueOf()/1e3)}function xo(){return new Date(this.valueOf())}function Co(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function So(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ko(){return this.isValid()?this.toISOString():null}function _o(){return y(this)}function Eo(){return p({},g(this))}function Ro(){return g(this).overflow}function No(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function jo(e,t){var n,o,a,i=this._eras||vn("en")._eras;for(n=0,o=i.length;n<o;++n)switch("string"==typeof i[n].since&&(a=r(i[n].since).startOf("day"),i[n].since=a.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":a=r(i[n].until).startOf("day").valueOf(),i[n].until=a.valueOf()}return i}function Po(e,t,n){var r,o,a,i,s,l=this.eras();for(e=e.toUpperCase(),r=0,o=l.length;r<o;++r)if(a=l[r].name.toUpperCase(),i=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[r];break;case"NNNN":if(a===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([a,i,s].indexOf(e)>=0)return l[r]}function Oo(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Mo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function To(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Do(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ao(){var e,t,n,o,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,o=this.clone().startOf("day").valueOf(),a[e].since<=o&&o<=a[e].until||a[e].until<=o&&o<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Fo(e){return s(this,"_erasNameRegex")||Bo.call(this),e?this._erasNameRegex:this._erasRegex}function Lo(e){return s(this,"_erasAbbrRegex")||Bo.call(this),e?this._erasAbbrRegex:this._erasRegex}function Io(e){return s(this,"_erasNarrowRegex")||Bo.call(this),e?this._erasNarrowRegex:this._erasRegex}function zo(e,t){return t.erasAbbrRegex(e)}function $o(e,t){return t.erasNameRegex(e)}function Ho(e,t){return t.erasNarrowRegex(e)}function Vo(e,t){return t._eraYearOrdinalRegex||ve}function Bo(){var e,t,n,r,o,a=[],i=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)n=je(u[e].name),r=je(u[e].abbr),o=je(u[e].narrow),i.push(n),a.push(r),s.push(o),l.push(n),l.push(r),l.push(o);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Uo(e,t){$(0,[e,e.length],0,t)}function Wo(e){return Zo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Yo(e){return Zo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qo(){return St(this.year(),1,4)}function Go(){return St(this.isoWeekYear(),1,4)}function Ko(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Qo(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Zo(e,t,n,r,o){var a;return null==e?Ct(this,r,o).year:(t>(a=St(e,r,o))&&(t=a),Xo.call(this,e,t,n,r,o))}function Xo(e,t,n,r,o){var a=xt(e,t,n,r,o),i=bt(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Jo(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),Ee("N",zo),Ee("NN",zo),Ee("NNN",zo),Ee("NNNN",$o),Ee("NNNNN",Ho),Te(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?g(n).era=o:g(n).invalidEra=e}),Ee("y",ve),Ee("yy",ve),Ee("yyy",ve),Ee("yyyy",ve),Ee("yo",Vo),Te(["y","yy","yyy","yyyy"],Le),Te(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Le]=n._locale.eraYearOrdinalParse(e,o):t[Le]=parseInt(e,10)}),$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Uo("gggg","weekYear"),Uo("ggggg","weekYear"),Uo("GGGG","isoWeekYear"),Uo("GGGGG","isoWeekYear"),Ee("G",be),Ee("g",be),Ee("GG",fe,le),Ee("gg",fe,le),Ee("GGGG",ge,ce),Ee("gggg",ge,ce),Ee("GGGGG",ye,de),Ee("ggggg",ye,de),De(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Oe(e)}),De(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),Ee("Q",se),Te("Q",function(e,t){t[Ie]=3*(Oe(e)-1)}),$("D",["DD",2],"Do","date"),Ee("D",fe,ke),Ee("DD",fe,le),Ee("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Te(["D","DD"],ze),Te("Do",function(e,t){t[ze]=Oe(e.match(fe)[0])});var ea=Qe("Date",!0);function ta(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}$("DDD",["DDDD",3],"DDDo","dayOfYear"),Ee("DDD",me),Ee("DDDD",ue),Te(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Oe(e)}),$("m",["mm",2],0,"minute"),Ee("m",fe,_e),Ee("mm",fe,le),Te(["m","mm"],He);var na=Qe("Minutes",!1);$("s",["ss",2],0,"second"),Ee("s",fe,_e),Ee("ss",fe,le),Te(["s","ss"],Ve);var ra,oa,aa=Qe("Seconds",!1);for($("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ee("S",me,se),Ee("SS",me,le),Ee("SSS",me,ue),ra="SSSS";ra.length<=9;ra+="S")Ee(ra,ve);function ia(e,t){t[Be]=Oe(1e3*("0."+e))}for(ra="S";ra.length<=9;ra+="S")Te(ra,ia);function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}oa=Qe("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var ua=C.prototype;function ca(e){return Kn(1e3*e)}function da(){return Kn.apply(null,arguments).parseZone()}function fa(e){return e}ua.add=Dr,ua.calendar=Vr,ua.clone=Br,ua.diff=Qr,ua.endOf=vo,ua.format=to,ua.from=no,ua.fromNow=ro,ua.to=oo,ua.toNow=ao,ua.get=Je,ua.invalidAt=Ro,ua.isAfter=Ur,ua.isBefore=Wr,ua.isBetween=Yr,ua.isSame=qr,ua.isSameOrAfter=Gr,ua.isSameOrBefore=Kr,ua.isValid=_o,ua.lang=so,ua.locale=io,ua.localeData=lo,ua.max=Zn,ua.min=Qn,ua.parsingFlags=Eo,ua.set=et,ua.startOf=yo,ua.subtract=Ar,ua.toArray=Co,ua.toObject=So,ua.toDate=xo,ua.toISOString=Jr,ua.inspect=eo,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=ko,ua.toString=Xr,ua.unix=wo,ua.valueOf=bo,ua.creationData=No,ua.eraName=Mo,ua.eraNarrow=To,ua.eraAbbr=Do,ua.eraYear=Ao,ua.year=Ge,ua.isLeapYear=Ke,ua.weekYear=Wo,ua.isoWeekYear=Yo,ua.quarter=ua.quarters=Jo,ua.month=pt,ua.daysInMonth=ht,ua.week=ua.weeks=Nt,ua.isoWeek=ua.isoWeeks=jt,ua.weeksInYear=Ko,ua.weeksInWeekYear=Qo,ua.isoWeeksInYear=qo,ua.isoWeeksInISOWeekYear=Go,ua.date=ea,ua.day=ua.days=Ut,ua.weekday=Wt,ua.isoWeekday=Yt,ua.dayOfYear=ta,ua.hour=ua.hours=rn,ua.minute=ua.minutes=na,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=oa,ua.utcOffset=mr,ua.utc=yr,ua.local=vr,ua.parseZone=br,ua.hasAlignedHourOffset=wr,ua.isDST=xr,ua.isLocal=Sr,ua.isUtcOffset=kr,ua.isUtc=_r,ua.isUTC=_r,ua.zoneAbbr=sa,ua.zoneName=la,ua.dates=_("dates accessor is deprecated. Use date instead.",ea),ua.months=_("months accessor is deprecated. Use month instead",pt),ua.years=_("years accessor is deprecated. Use year instead",Ge),ua.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),ua.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Cr);var pa=M.prototype;function ha(e,t,n,r){var o=vn(),a=h().set(r,t);return o[n](a,e)}function ma(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return ha(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=ha(e,r,n,"month");return o}function ga(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,a=vn(),i=e?a._week.dow:0,s=[];if(null!=n)return ha(t,(n+i)%7,r,"day");for(o=0;o<7;o++)s[o]=ha(t,(o+i)%7,r,"day");return s}function ya(e,t){return ma(e,t,"months")}function va(e,t){return ma(e,t,"monthsShort")}function ba(e,t,n){return ga(e,t,n,"weekdays")}function wa(e,t,n){return ga(e,t,n,"weekdaysShort")}function xa(e,t,n){return ga(e,t,n,"weekdaysMin")}pa.calendar=D,pa.longDateFormat=Y,pa.invalidDate=G,pa.ordinal=Z,pa.preparse=fa,pa.postformat=fa,pa.relativeTime=J,pa.pastFuture=ee,pa.set=P,pa.eras=jo,pa.erasParse=Po,pa.erasConvertYear=Oo,pa.erasAbbrRegex=Lo,pa.erasNameRegex=Fo,pa.erasNarrowRegex=Io,pa.months=lt,pa.monthsShort=ut,pa.monthsParse=dt,pa.monthsRegex=gt,pa.monthsShortRegex=mt,pa.week=kt,pa.firstDayOfYear=Rt,pa.firstDayOfWeek=Et,pa.weekdays=zt,pa.weekdaysMin=Ht,pa.weekdaysShort=$t,pa.weekdaysParse=Bt,pa.weekdaysRegex=qt,pa.weekdaysShortRegex=Gt,pa.weekdaysMinRegex=Kt,pa.isPM=tn,pa.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Oe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=_("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=_("moment.langData is deprecated. Use moment.localeData instead.",vn);var Ca=Math.abs;function Sa(){var e=this._data;return this._milliseconds=Ca(this._milliseconds),this._days=Ca(this._days),this._months=Ca(this._months),e.milliseconds=Ca(e.milliseconds),e.seconds=Ca(e.seconds),e.minutes=Ca(e.minutes),e.hours=Ca(e.hours),e.months=Ca(e.months),e.years=Ca(e.years),this}function ka(e,t,n,r){var o=Nr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function _a(e,t){return ka(this,e,t,1)}function Ea(e,t){return ka(this,e,t,-1)}function Ra(e){return e<0?Math.floor(e):Math.ceil(e)}function Na(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,l=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*Ra(Pa(s)+i),i=0,s=0),l.milliseconds=a%1e3,e=Pe(a/1e3),l.seconds=e%60,t=Pe(e/60),l.minutes=t%60,n=Pe(t/60),l.hours=n%24,i+=Pe(n/24),s+=o=Pe(ja(i)),i-=Ra(Pa(o)),r=Pe(s/12),s%=12,l.days=i,l.months=s,l.years=r,this}function ja(e){return 4800*e/146097}function Pa(e){return 146097*e/4800}function Oa(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+ja(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Pa(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ma(e){return function(){return this.as(e)}}var Ta=Ma("ms"),Da=Ma("s"),Aa=Ma("m"),Fa=Ma("h"),La=Ma("d"),Ia=Ma("w"),za=Ma("M"),$a=Ma("Q"),Ha=Ma("y"),Va=Ta;function Ba(){return Nr(this)}function Ua(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Wa(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ya=Wa("milliseconds"),qa=Wa("seconds"),Ga=Wa("minutes"),Ka=Wa("hours"),Qa=Wa("days"),Za=Wa("months"),Xa=Wa("years");function Ja(){return Pe(this.days()/7)}var ei=Math.round,ti={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ni(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ri(e,t,n,r){var o=Nr(e).abs(),a=ei(o.as("s")),i=ei(o.as("m")),s=ei(o.as("h")),l=ei(o.as("d")),u=ei(o.as("M")),c=ei(o.as("w")),d=ei(o.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,ni.apply(null,f)}function oi(e){return void 0===e?ei:"function"==typeof e&&(ei=e,!0)}function ai(e,t){return void 0!==ti[e]&&(void 0===t?ti[e]:(ti[e]=t,"s"===e&&(ti.ss=t-1),!0))}function ii(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=ti;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(a=Object.assign({},ti,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=ri(this,!o,a,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var si=Math.abs;function li(e){return(e>0)-(e<0)||+e}function ui(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,s,l=si(this._milliseconds)/1e3,u=si(this._days),c=si(this._months),d=this.asSeconds();return d?(e=Pe(l/60),t=Pe(e/60),l%=60,e%=60,n=Pe(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",a=li(this._months)!==li(d)?"-":"",i=li(this._days)!==li(d)?"-":"",s=li(this._milliseconds)!==li(d)?"-":"",o+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ci=ir.prototype;return ci.isValid=or,ci.abs=Sa,ci.add=_a,ci.subtract=Ea,ci.as=Oa,ci.asMilliseconds=Ta,ci.asSeconds=Da,ci.asMinutes=Aa,ci.asHours=Fa,ci.asDays=La,ci.asWeeks=Ia,ci.asMonths=za,ci.asQuarters=$a,ci.asYears=Ha,ci.valueOf=Va,ci._bubble=Na,ci.clone=Ba,ci.get=Ua,ci.milliseconds=Ya,ci.seconds=qa,ci.minutes=Ga,ci.hours=Ka,ci.days=Qa,ci.weeks=Ja,ci.months=Za,ci.years=Xa,ci.humanize=ii,ci.toISOString=ui,ci.toString=ui,ci.toJSON=ui,ci.locale=io,ci.localeData=lo,ci.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ui),ci.lang=so,$("X",0,0,"unix"),$("x",0,0,"valueOf"),Ee("x",be),Ee("X",Ce),Te("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),Te("x",function(e,t,n){n._d=new Date(Oe(e))}),
139
+ `,fy=T.forwardRef(function(e,t){const n=Ug({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...i}=n,[s,l]=T.useState([]),u=T.useRef(0),c=T.useRef(null);T.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=T.useRef(!1),f=ay(),p=T.useRef(null),h=T.useRef(null),g=T.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;l(e=>[...e,m.jsx(dy,{classes:{ripple:Rr(o.ripple,iy.ripple),rippleVisible:Rr(o.rippleVisible,iy.rippleVisible),ripplePulsate:Rr(o.ripplePulsate,iy.ripplePulsate),child:Rr(o.child,iy.child),childLeaving:Rr(o.childLeaving,iy.childLeaving),childPulsate:Rr(o.childPulsate,iy.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},u.current)]),u.current+=1,c.current=i},[o]),y=T.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e?.type&&d.current)return void(d.current=!1);"touchstart"===e?.type&&(d.current=!0);const s=i?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,m;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(a)m=Math.sqrt((2*l.width**2+l.height**2)/3),m%2==0&&(m+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;m=Math.sqrt(e**2+t**2)}e?.touches?null===p.current&&(p.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},[r,g,f]),v=T.useCallback(()=>{y({},{pulsate:!0})},[y]),b=T.useCallback((e,t)=>{if(f.clear(),"touchend"===e?.type&&p.current)return p.current(),p.current=null,void f.start(0,()=>{b(e,t)});p.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[f]);return T.useImperativeHandle(t,()=>({pulsate:v,start:y,stop:b}),[v,y,b]),m.jsx(cy,{className:Rr(iy.root,o.root,a),ref:h,...i,children:m.jsx(ny,{component:null,exit:!0,children:s})})});function py(e){return Md("MuiButtonBase",e)}const hy=Td("MuiButtonBase",["root","disabled","focusVisible"]),my=Bg("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${hy.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gy=T.forwardRef(function(e,t){const n=Ug({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p="a",onBlur:h,onClick:g,onContextMenu:y,onDragLeave:v,onFocus:b,onFocusVisible:w,onKeyDown:x,onKeyUp:C,onMouseDown:S,onMouseLeave:k,onMouseUp:_,onTouchEnd:E,onTouchMove:R,onTouchStart:N,tabIndex:j=0,TouchRippleProps:P,touchRippleRef:O,type:M,...D}=n,A=T.useRef(null),F=Kg.use(),L=Wg(F.ref,O),[I,z]=T.useState(!1);l&&I&&z(!1),T.useImperativeHandle(r,()=>({focusVisible:()=>{z(!0),A.current.focus()}}),[]);const $=F.shouldMount&&!u&&!l;T.useEffect(()=>{I&&d&&!u&&F.pulsate()},[u,d,I,F]);const H=yy(F,"start",S,c),V=yy(F,"stop",y,c),B=yy(F,"stop",v,c),U=yy(F,"stop",_,c),W=yy(F,"stop",e=>{I&&e.preventDefault(),k&&k(e)},c),Y=yy(F,"start",N,c),q=yy(F,"stop",E,c),G=yy(F,"stop",R,c),K=yy(F,"stop",e=>{zd(e.target)||z(!1),h&&h(e)},!1),Q=Yg(e=>{A.current||(A.current=e.currentTarget),zd(e.target)&&(z(!0),w&&w(e)),b&&b(e)}),Z=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},X=Yg(e=>{d&&!e.repeat&&I&&" "===e.key&&F.stop(e,()=>{F.start(e)}),e.target===e.currentTarget&&Z()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&Z()&&"Enter"===e.key&&!l&&(e.preventDefault(),g&&g(e))}),J=Yg(e=>{d&&" "===e.key&&I&&!e.defaultPrevented&&F.stop(e,()=>{F.pulsate(e)}),C&&C(e),g&&e.target===e.currentTarget&&Z()&&" "===e.key&&!e.defaultPrevented&&g(e)});let ee=s;"button"===ee&&(D.href||D.to)&&(ee=p);const te={};"button"===ee?(te.type=void 0===M?"button":M,te.disabled=l):(D.href||D.to||(te.role="button"),l&&(te["aria-disabled"]=l));const ne=Wg(t,A),re={...n,centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:j,focusVisible:I},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Nd({root:["root",t&&"disabled",n&&"focusVisible"]},py,o);return n&&r&&(a.root+=` ${r}`),a})(re);return m.jsxs(my,{as:ee,className:Rr(oe.root,i),ownerState:re,onBlur:K,onClick:g,onContextMenu:V,onFocus:Q,onKeyDown:X,onKeyUp:J,onMouseDown:H,onMouseLeave:W,onMouseUp:U,onDragLeave:B,onTouchEnd:q,onTouchMove:G,onTouchStart:Y,ref:ne,tabIndex:l?-1:j,type:M,...te,...D,children:[a,$?m.jsx(fy,{ref:L,center:o,...P}):null]})});function yy(e,t,n,r=!1){return Yg(o=>(n&&n(o),r||e[t](o),!0))}function vy(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}const by=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Cm.theme=r.theme,o=Qh(e(Cm)),t=o,n=r.theme),o}};function wy(e){return Md("MuiSvgIcon",e)}Td("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const xy=Bg("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Hd(n.color)}`],t[`fontSize${Hd(n.fontSize)}`]]}})(by(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Cy=T.forwardRef(function(e,t){const n=Ug({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...f}=n,p=T.isValidElement(r)&&"svg"===r.type,h={...n,color:a,component:i,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p},g={};u||(g.viewBox=d);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return Nd({root:["root","inherit"!==t&&`color${Hd(t)}`,`fontSize${Hd(n)}`]},wy,r)})(h);return m.jsxs(xy,{as:i,className:Rr(y.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t,...g,...f,...p&&r.props,ownerState:h,children:[p?r.props.children:r,c?m.jsx("title",{children:c}):null]})});function Sy(e,t){function n(t,n){return m.jsx(Cy,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Cy.muiName,T.memo(T.forwardRef(n))}Cy.muiName="SvgIcon";var ky=Sy(m.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),_y=Sy(m.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),Ey=Sy(m.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Ry=Sy(m.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));function Ny(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function jy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=Rr(n?.className,a,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},i={...n,...o,...r};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}({...o,...r}),s=Ny(r),l=Ny(o),u=t(i),c=Rr(u?.className,n?.className,a,o?.className,r?.className),d={...u?.style,...n?.style,...o?.style,...r?.style},f={...u,...n,...l,...s};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function Py(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=c[e]||r,h=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],o),{props:{component:m,...g},internalRef:y}=jy({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),v=Wg(y,h?.ref,t.ref),b="root"===e?m||u:m,w=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!u&&!c[e]&&i,..."root"!==e&&!c[e]&&i,...g,...b&&!s&&{as:b},...b&&s&&{component:b},ref:v},o);return[p,w]}const Oy=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Hd(n.size)}`],"text"===n.variant&&t[`text${Hd(n.color)}`],"outlined"===n.variant&&t[`outlined${Hd(n.color)}`],"rounded"===n.shape&&t.rounded,"page"===n.type&&t.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&t.ellipsis,("previous"===n.type||"next"===n.type)&&t.previousNext,("first"===n.type||"last"===n.type)&&t.firstLast]},My=Bg("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Oy})(by(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Id.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),Ty=Bg(gy,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Oy})(by(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Id.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Id.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Id.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Id.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},[`&.${Id.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${Id.selected}`]:{[`&.${Id.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Id.selected}`]:{[`&.${Id.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(vy(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Id.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${Id.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Id.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(vy(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Id.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.5)}`,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.activatedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Id.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))]}))),Dy=Bg("div",{name:"MuiPaginationItem",slot:"Icon"})(by(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),Ay=T.forwardRef(function(e,t){const n=Ug({props:e,name:"MuiPaginationItem"}),{className:r,color:o="standard",component:a,components:i={},disabled:s=!1,page:l,selected:u=!1,shape:c="circular",size:d="medium",slots:f={},slotProps:p={},type:h="page",variant:g="text",...y}=n,v={...n,color:o,disabled:s,selected:u,shape:c,size:d,type:h,variant:g},b=T.useContext(Fd)??!1,w=(e=>{const{classes:t,color:n,disabled:r,selected:o,size:a,shape:i,type:s,variant:l}=e;return Nd({root:["root",`size${Hd(a)}`,l,i,"standard"!==n&&`color${Hd(n)}`,"standard"!==n&&`${l}${Hd(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]},Ld,t)})(v),x={slots:{previous:f.previous??i.previous,next:f.next??i.next,first:f.first??i.first,last:f.last??i.last},slotProps:p},[C,S]=Py("previous",{elementType:Ey,externalForwardedProps:x,ownerState:v}),[k,_]=Py("next",{elementType:Ry,externalForwardedProps:x,ownerState:v}),[E,R]=Py("first",{elementType:ky,externalForwardedProps:x,ownerState:v}),[N,j]=Py("last",{elementType:_y,externalForwardedProps:x,ownerState:v}),P=b?{previous:"next",next:"previous",first:"last",last:"first"}[h]:h,O={previous:C,next:k,first:E,last:N}[P],M={previous:S,next:_,first:R,last:j}[P];return"start-ellipsis"===h||"end-ellipsis"===h?m.jsx(My,{ref:t,ownerState:v,className:Rr(w.root,r),children:"…"}):m.jsxs(Ty,{ref:t,ownerState:v,component:a,disabled:s,className:Rr(w.root,r),...y,children:["page"===h&&l,O?m.jsx(Dy,{...M,className:w.icon,as:O}):null]})}),Fy=Bg("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),Ly=Bg("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Iy(e,t,n){return"page"===e?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const zy=T.forwardRef(function(e,t){const n=Ug({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:o,color:a="standard",count:i=1,defaultPage:s=1,disabled:l=!1,getItemAriaLabel:u=Iy,hideNextButton:c=!1,hidePrevButton:d=!1,onChange:f,page:p,renderItem:h=e=>m.jsx(Ay,{...e}),shape:g="circular",showFirstButton:y=!1,showLastButton:v=!1,siblingCount:b=1,size:w="medium",variant:x="text",...C}=n,{items:S}=Ad({...n,componentName:"Pagination"}),k={...n,boundaryCount:r,color:a,count:i,defaultPage:s,disabled:l,getItemAriaLabel:u,hideNextButton:c,hidePrevButton:d,renderItem:h,shape:g,showFirstButton:y,showLastButton:v,siblingCount:b,size:w,variant:x},_=(e=>{const{classes:t,variant:n}=e;return Nd({root:["root",n],ul:["ul"]},Dd,t)})(k);return m.jsx(Fy,{"aria-label":"pagination navigation",className:Rr(_.root,o),ownerState:k,ref:t,...C,children:m.jsx(Ly,{className:_.ul,ownerState:k,children:S.map((e,t)=>m.jsx("li",{children:h({...e,color:a,"aria-label":u(e.type,e.page,e.selected),shape:g,size:w,variant:x})},t))})})}),$y={arrow:m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M8.65833 15.7667C8.54866 15.7673 8.43994 15.7463 8.33841 15.7048C8.23688 15.6634 8.14453 15.6023 8.06667 15.525C7.91146 15.3689 7.82434 15.1577 7.82434 14.9375C7.82434 14.7174 7.91146 14.5062 8.06667 14.35L12.4083 10L8.06667 5.65004C7.93014 5.49062 7.85881 5.28556 7.86691 5.07583C7.87501 4.8661 7.96195 4.66715 8.11036 4.51874C8.25878 4.37032 8.45773 4.28338 8.66746 4.27528C8.87719 4.26718 9.08225 4.33852 9.24167 4.47504L14.1667 9.40837C14.2439 9.48624 14.305 9.57859 14.3465 9.68012C14.3879 9.78165 14.409 9.89037 14.4083 10C14.4053 10.2207 14.3189 10.432 14.1667 10.5917L9.225 15.525C9.07391 15.675 8.87116 15.7615 8.65833 15.7667Z",fill:"#A1A5B7"})}),info_input:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M10 18.3332C14.6024 18.3332 18.3333 14.6022 18.3333 9.99984C18.3333 5.39746 14.6024 1.6665 10 1.6665C5.39763 1.6665 1.66667 5.39746 1.66667 9.99984C1.66667 14.6022 5.39763 18.3332 10 18.3332Z",fill:"#1868DB"}),m.jsx("path",{d:"M10 8.83301C10.221 8.83301 10.433 8.9208 10.5893 9.07708C10.7455 9.23337 10.8333 9.44533 10.8333 9.66634V13.5497C10.8333 13.7707 10.7455 13.9826 10.5893 14.1389C10.433 14.2952 10.221 14.383 10 14.383C9.77899 14.383 9.56703 14.2952 9.41075 14.1389C9.25447 13.9826 9.16667 13.7707 9.16667 13.5497V9.66634C9.16667 9.44533 9.25447 9.23337 9.41075 9.07708C9.56703 8.9208 9.77899 8.83301 10 8.83301Z",fill:"#1868DB"}),m.jsx("path",{d:"M10 7.70003C10.5753 7.70003 11.0417 7.23366 11.0417 6.65837C11.0417 6.08307 10.5753 5.6167 10 5.6167C9.42471 5.6167 8.95834 6.08307 8.95834 6.65837C8.95834 7.23366 9.42471 7.70003 10 7.70003Z",fill:"#1868DB"})]}),cube:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.90996 21.67L4.66996 18.67C4.02642 18.2997 3.4934 17.7643 3.12598 17.1192C2.75856 16.474 2.57006 15.7424 2.57996 15V9C2.57541 8.26267 2.76644 7.53731 3.13359 6.89787C3.50075 6.25843 4.03088 5.72778 4.66996 5.36L9.90996 2.36C10.5447 1.99116 11.2658 1.79688 12 1.79688C12.7341 1.79688 13.4552 1.99116 14.09 2.36L19.33 5.36C19.969 5.72778 20.4992 6.25843 20.8663 6.89787C21.2335 7.53731 21.4245 8.26267 21.42 9V15C21.4192 15.7323 21.2257 16.4514 20.8588 17.0851C20.4919 17.7188 19.9646 18.2448 19.33 18.61L14.09 21.61C13.4605 21.988 12.7422 22.1927 12.008 22.2032C11.2739 22.2137 10.55 22.0298 9.90996 21.67Z",fill:"#1868DB"}),m.jsx("path",{opacity:"0.3",d:"M20.8599 6.89C20.4965 6.2519 19.968 5.7234 19.3299 5.36L14.0899 2.36C13.4551 1.99116 12.734 1.79688 11.9999 1.79688C11.2657 1.79688 10.5447 1.99116 9.90989 2.36L4.66989 5.36C4.03179 5.7234 3.5033 6.2519 3.13989 6.89L11.9999 12L20.8599 6.89Z",fill:"#1868DB"}),m.jsx("path",{d:"M20.85 6.89014L12 12.0001L12.13 22.2201C12.8324 22.2082 13.5203 22.019 14.13 21.6701L19.37 18.6701C20.0061 18.2948 20.5311 17.7572 20.8913 17.1124C21.2515 16.4675 21.4339 15.7386 21.42 15.0001V9.00014C21.4215 8.25857 21.2247 7.53009 20.85 6.89014Z",fill:"#1868DB"})]}),magnifier:m.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M19.7083 17.8015L16.8025 15.0515C16.25 15.7628 15.5878 16.3817 14.8408 16.8848L17.8292 19.7265C17.9548 19.8733 18.1102 19.9917 18.285 20.074C18.4598 20.1563 18.6501 20.2005 18.8432 20.2038C19.0364 20.2071 19.2281 20.1694 19.4056 20.0932C19.5832 20.017 19.7425 19.9039 19.8731 19.7615C20.0037 19.6192 20.1026 19.4507 20.1633 19.2673C20.224 19.0839 20.2451 18.8897 20.2252 18.6975C20.2053 18.5053 20.1449 18.3195 20.0479 18.1525C19.9509 17.9854 19.8195 17.8408 19.6625 17.7282L19.7083 17.8015Z",fill:"#7E8299"}),m.jsx("path",{d:"M10.2117 1.83325C8.57998 1.83325 6.98492 2.31711 5.62822 3.22363C4.27151 4.13015 3.21409 5.41862 2.58967 6.92611C1.96524 8.4336 1.80187 10.0924 2.1202 11.6927C2.43852 13.2931 3.22426 14.7631 4.37804 15.9169C5.53183 17.0707 7.00183 17.8564 8.60218 18.1747C10.2025 18.4931 11.8613 18.3297 13.3688 17.7053C14.8763 17.0808 16.1648 16.0234 17.0713 14.6667C17.9778 13.31 18.4617 11.7149 18.4617 10.0833C18.4617 7.89522 17.5925 5.7968 16.0453 4.24962C14.4981 2.70245 12.3997 1.83325 10.2117 1.83325ZM10.2117 15.9133C9.06081 15.9132 7.93578 15.5721 6.97875 14.9329C6.02172 14.2937 5.27564 13.3851 4.83481 12.3221C4.39397 11.259 4.27817 10.0891 4.50202 8.9602C4.72588 7.83132 5.27935 6.79413 6.09249 5.97971C6.90563 5.16529 7.94195 4.61018 9.07048 4.38455C10.199 4.15892 11.3691 4.27288 12.4329 4.71204C13.4966 5.1512 14.4064 5.89585 15.0471 6.85187C15.6878 7.8079 16.0307 8.93239 16.0325 10.0833C16.0349 10.8488 15.8861 11.6072 15.5945 12.315C15.303 13.0229 14.8744 13.6661 14.3336 14.2078C13.7927 14.7496 13.1501 15.1791 12.4428 15.4718C11.7354 15.7644 10.9772 15.9145 10.2117 15.9133Z",fill:"#7E8299"})]}),filter_edit:m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M17.3083 3.4917V5.4917C17.3065 5.84118 17.2313 6.18639 17.0878 6.50504C16.9443 6.82369 16.7355 7.10871 16.475 7.3417L15.5167 8.17503C15.3929 8.28554 15.2303 8.34235 15.0646 8.33298C14.899 8.3236 14.7438 8.2488 14.6333 8.12503C14.5228 8.00126 14.466 7.83867 14.4754 7.67301C14.4848 7.50735 14.5596 7.35221 14.6833 7.2417L15.6333 6.40837C15.7618 6.29272 15.8646 6.15136 15.9349 5.99344C16.0053 5.83552 16.0416 5.66458 16.0417 5.4917V3.4917C16.0417 3.16902 15.9135 2.85956 15.6853 2.63139C15.4571 2.40322 15.1477 2.27503 14.825 2.27503H4.21667C3.89399 2.27503 3.58452 2.40322 3.35635 2.63139C3.12818 2.85956 3 3.16902 3 3.4917V5.5667C3.00618 5.87894 3.13137 6.17702 3.35 6.40003L6.48333 9.57503C7.19463 10.2901 7.59322 11.2581 7.59167 12.2667V16.6667C7.59567 16.8589 7.65113 17.0465 7.75227 17.2099C7.85341 17.3734 7.99654 17.5068 8.16674 17.5961C8.33694 17.6855 8.52798 17.7276 8.71997 17.718C8.91196 17.7084 9.09787 17.6475 9.25833 17.5417L10.3917 16.7084C10.459 16.6608 10.535 16.6269 10.6154 16.6087C10.6958 16.5904 10.779 16.5882 10.8602 16.6021C10.9415 16.6161 11.0192 16.6459 11.0889 16.6898C11.1587 16.7338 11.2191 16.7911 11.2667 16.8584C11.3143 16.9257 11.3482 17.0017 11.3664 17.0821C11.3846 17.1625 11.3868 17.2457 11.3729 17.3269C11.359 17.4082 11.3292 17.4859 11.2852 17.5556C11.2412 17.6254 11.184 17.6858 11.1167 17.7334L9.975 18.5667C9.62709 18.8036 9.22141 18.9415 8.80123 18.9659C8.38105 18.9903 7.96213 18.9002 7.58916 18.7051C7.21619 18.5101 6.90316 18.2175 6.68346 17.8585C6.46376 17.4995 6.34563 17.0876 6.34167 16.6667V12.2917C6.34169 11.6108 6.07202 10.9576 5.59167 10.475L2.5 7.30003C2.03298 6.84254 1.76375 6.22032 1.75 5.5667V3.4917C1.75 2.82866 2.01339 2.19277 2.48223 1.72393C2.95107 1.25509 3.58696 0.991699 4.25 0.991699H14.8417C15.4989 1.00046 16.1263 1.26772 16.5879 1.73561C17.0496 2.20351 17.3084 2.83439 17.3083 3.4917ZM16.3583 12.1584L15.7167 12.8084L13.5583 15C13.3939 15.1657 13.1858 15.2813 12.9583 15.3334L12.075 15.5167C11.9919 15.5249 11.9081 15.5249 11.825 15.5167C11.5126 15.5114 11.2142 15.386 10.9917 15.1667C10.849 15.0271 10.7431 14.8544 10.6835 14.6639C10.6239 14.4734 10.6124 14.2711 10.65 14.075L10.8167 13.1917C10.8569 12.9611 10.9675 12.7486 11.1333 12.5834L13.925 9.72503C14.0459 9.60279 14.19 9.50591 14.3488 9.44009C14.5077 9.37426 14.6781 9.34081 14.85 9.3417C15.1962 9.34532 15.5277 9.48268 15.775 9.72503L16.3167 10.2584C16.4464 10.379 16.5506 10.5245 16.6232 10.6862C16.6957 10.8478 16.7351 11.0224 16.739 11.1996C16.7429 11.3767 16.7112 11.5528 16.6458 11.7175C16.5804 11.8822 16.4827 12.0321 16.3583 12.1584ZM14.8 10.6334L14.3167 11.1334C14.3687 11.2877 14.4624 11.4247 14.5874 11.5291C14.7124 11.6335 14.8639 11.7013 15.025 11.725L15.4583 11.2834C15.4583 11.2834 15.4583 11.2167 15.4583 11.1834L14.9167 10.65C14.8947 10.6453 14.872 10.6453 14.85 10.65L14.8 10.6334ZM14.075 12.7C13.8068 12.5397 13.5787 12.3203 13.4083 12.0584L12.0083 13.4917L11.8583 14.325L12.6917 14.1084L14.075 12.7Z",fill:"inherit"})}),price_tag:m.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("g",{opacity:"0.3",children:m.jsx("path",{d:"M3.55997 6.65016L3.41997 11.7402C3.39903 12.4124 3.517 13.0818 3.76649 13.7063C4.01598 14.3309 4.39164 14.8973 4.86997 15.3702L9.42997 19.9402C9.84795 20.3589 10.3444 20.6912 10.8909 20.9178C11.4374 21.1445 12.0233 21.2612 12.615 21.2612C13.2066 21.2612 13.7925 21.1445 14.339 20.9178C14.8855 20.6912 15.382 20.3589 15.8 19.9402L20.57 15.1702C20.9887 14.7522 21.321 14.2557 21.5477 13.7092C21.7743 13.1627 21.891 12.5768 21.891 11.9852C21.891 11.3935 21.7743 10.8076 21.5477 10.2611C21.321 9.71459 20.9887 9.21814 20.57 8.80016L15.96 4.19016C15.4798 3.71338 14.9078 3.33903 14.2787 3.08979C13.6496 2.84055 12.9764 2.72161 12.3 2.74016L7.29997 2.91016C6.31604 2.93547 5.37939 3.33763 4.68341 4.0336C3.98744 4.72958 3.58528 5.66623 3.55997 6.65016Z",fill:"inherit"})}),m.jsx("path",{d:"M10.23 12.2304C11.7764 12.2304 13.03 10.9768 13.03 9.43037C13.03 7.88397 11.7764 6.63037 10.23 6.63037C8.6836 6.63037 7.42999 7.88397 7.42999 9.43037C7.42999 10.9768 8.6836 12.2304 10.23 12.2304Z",fill:"inherit"}),m.jsx("path",{d:"M13.1 17.0003C12.9509 17.0022 12.8046 16.9596 12.6799 16.8779C12.5551 16.7963 12.4575 16.6793 12.3996 16.5419C12.3416 16.4045 12.3259 16.253 12.3545 16.1066C12.3831 15.9603 12.4546 15.8258 12.56 15.7203L16.56 11.7203C16.7006 11.5799 16.8912 11.501 17.09 11.501C17.2887 11.501 17.4794 11.5799 17.62 11.7203C17.6907 11.7893 17.747 11.8717 17.7854 11.9627C17.8238 12.0537 17.8435 12.1515 17.8435 12.2503C17.8435 12.3491 17.8238 12.4469 17.7854 12.5379C17.747 12.629 17.6907 12.7114 17.62 12.7803L13.67 16.7803C13.5961 16.8555 13.507 16.914 13.4087 16.9519C13.3104 16.9898 13.2052 17.0063 13.1 17.0003Z",fill:"inherit"})]}),eyeslash:m.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M2.88008 22.3404C2.67861 22.3386 2.48544 22.2599 2.34008 22.1204C2.19902 21.978 2.11987 21.7858 2.11987 21.5854C2.11987 21.385 2.19902 21.1927 2.34008 21.0504L20.6001 2.88037C20.6636 2.7878 20.7471 2.71068 20.8444 2.65467C20.9417 2.59867 21.0503 2.56523 21.1622 2.5568C21.2742 2.54838 21.3866 2.56519 21.4911 2.606C21.5957 2.64681 21.6898 2.71057 21.7665 2.79258C21.8431 2.8746 21.9004 2.97278 21.934 3.07987C21.9677 3.18697 21.9769 3.30025 21.9609 3.41137C21.9449 3.52249 21.9042 3.6286 21.8418 3.72189C21.7793 3.81518 21.6967 3.89325 21.6001 3.95037L3.40008 22.1204C3.26264 22.2595 3.07568 22.3386 2.88008 22.3404Z",fill:"black"}),m.jsx("path",{d:"M9.14993 13.1107C9.15256 12.3557 9.45368 11.6323 9.98758 11.0984C10.5215 10.5645 11.2449 10.2634 11.9999 10.2607C12.4251 10.2609 12.8448 10.3573 13.2275 10.5426C13.6102 10.7279 13.9461 10.9973 14.2099 11.3307L10.2099 15.3307C9.87756 15.0643 9.60962 14.7263 9.42608 14.3419C9.24255 13.9576 9.14815 13.5367 9.14993 13.1107ZM11.7099 15.9307C11.8065 15.9357 11.9033 15.9357 11.9999 15.9307C12.7558 15.9307 13.4807 15.6305 14.0152 15.096C14.5497 14.5615 14.8499 13.8366 14.8499 13.0807C14.8548 12.9908 14.8548 12.9007 14.8499 12.8107L11.7099 15.9307Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M6.05 19.5008L9.15 16.4108C8.70449 16.0196 8.34405 15.5411 8.09102 15.005C7.838 14.4688 7.69777 13.8864 7.67903 13.2938C7.66029 12.7013 7.76343 12.1112 7.98208 11.5601C8.20072 11.009 8.5302 10.5087 8.95011 10.0902C9.37001 9.67167 9.87139 9.34383 10.4232 9.12699C10.975 8.91015 11.5654 8.80893 12.1579 8.82961C12.7504 8.85029 13.3323 8.99243 13.8677 9.24721C14.403 9.50199 14.8803 9.86399 15.27 10.3108L18.43 7.16078C16.6374 5.59863 14.3743 4.68002 12 4.55078C7.27 4.55078 2 9.17078 2 13.1108C2 15.2508 3.71 17.7208 6.05 19.5008Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M16.0601 11.6004C16.2484 12.0817 16.3467 12.5935 16.3501 13.1104C16.3552 13.8149 16.1879 14.5101 15.8628 15.1352C15.5377 15.7604 15.0646 16.2965 14.4848 16.6968C13.905 17.0972 13.236 17.3496 12.5362 17.4322C11.8365 17.5147 11.1271 17.4248 10.4701 17.1704L7.33008 20.2904C8.74153 21.1458 10.3504 21.6212 12.0001 21.6704C17.0001 21.6704 22.0001 17.0804 22.0001 13.1104C21.8378 11.1937 20.9595 9.40848 19.5401 8.11035L16.0601 11.6004Z",fill:"black"})]}),eye_outline:m.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M7.99998 9.39988C7.5253 9.39988 7.06129 9.25912 6.66661 8.99541C6.27193 8.73169 5.96432 8.35686 5.78267 7.91832C5.60102 7.47978 5.55349 6.99722 5.6461 6.53166C5.7387 6.06611 5.96728 5.63847 6.30292 5.30282C6.63857 4.96718 7.06621 4.7386 7.53176 4.646C7.99732 4.55339 8.47988 4.60092 8.91842 4.78257C9.35696 4.96422 9.73179 5.27183 9.99551 5.66651C10.2592 6.06119 10.4 6.5252 10.4 6.99988C10.3982 7.63586 10.1448 8.24529 9.69509 8.69499C9.24539 9.1447 8.63596 9.39812 7.99998 9.39988ZM7.99998 5.59988C7.72309 5.59988 7.45241 5.68199 7.22218 5.83582C6.99195 5.98966 6.81251 6.20831 6.70655 6.46412C6.60059 6.71994 6.57286 7.00143 6.62688 7.27301C6.6809 7.54458 6.81424 7.79404 7.01003 7.98983C7.20582 8.18562 7.45528 8.31896 7.72685 8.37298C7.99843 8.427 8.27992 8.39927 8.53574 8.29331C8.79155 8.18735 9.0102 8.00791 9.16404 7.77768C9.31787 7.54745 9.39998 7.27677 9.39998 6.99988C9.39998 6.62858 9.25248 6.27248 8.98993 6.00993C8.72738 5.74738 8.37128 5.59988 7.99998 5.59988ZM7.99998 13.2065C6.19341 13.1238 4.4753 12.4006 3.15331 11.1665C1.69998 9.89321 0.833313 8.33321 0.833313 6.99988C0.833313 4.03988 4.58665 0.793213 7.99998 0.793213C11.4133 0.793213 15.1666 4.12655 15.1666 6.99988C15.1666 10.0132 11.48 13.2065 7.99998 13.2065ZM7.99998 1.79321C5.17998 1.79321 1.83331 4.61321 1.83331 6.99988C1.83331 8.03988 2.59331 9.34655 3.83331 10.4132C4.97144 11.4773 6.44482 12.1114 7.99998 12.2065C11.1733 12.2065 14.1666 9.27321 14.1666 6.99988C14.1666 4.84655 10.98 1.79321 7.99998 1.79321Z",fill:"inherit"})}),eye:m.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M11.9999 15.3504C13.5739 15.3504 14.8499 14.0744 14.8499 12.5004C14.8499 10.9264 13.5739 9.65039 11.9999 9.65039C10.4259 9.65039 9.1499 10.9264 9.1499 12.5004C9.1499 14.0744 10.4259 15.3504 11.9999 15.3504Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M11.9999 15.3504C13.5739 15.3504 14.8499 14.0744 14.8499 12.5004C14.8499 10.9264 13.5739 9.65039 11.9999 9.65039C10.4259 9.65039 9.1499 10.9264 9.1499 12.5004C9.1499 14.0744 10.4259 15.3504 11.9999 15.3504Z",fill:"black"}),m.jsx("path",{opacity:"0.3",d:"M12 3.94043C7.27 3.94043 2 8.56043 2 12.5004C2 16.2604 7.27 21.0604 12 21.0604C17 21.0604 22 16.4704 22 12.5004C22 8.68043 16.73 3.94043 12 3.94043ZM12 16.8504C11.1397 16.8504 10.2986 16.5953 9.58327 16.1173C8.86792 15.6393 8.31037 14.96 7.98112 14.1651C7.65188 13.3702 7.56574 12.4956 7.73358 11.6518C7.90143 10.808 8.31573 10.0329 8.92409 9.42452C9.53244 8.81616 10.3075 8.40186 11.1514 8.23401C11.9952 8.06617 12.8698 8.15231 13.6647 8.48155C14.4595 8.81079 15.1389 9.36834 15.6169 10.0837C16.0949 10.7991 16.35 11.6401 16.35 12.5004C16.35 13.6541 15.8917 14.7606 15.0759 15.5763C14.2601 16.3921 13.1537 16.8504 12 16.8504Z",fill:"black"})]}),trash:m.jsx("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M3.51994 15.1668C2.96424 15.1616 2.43084 14.9475 2.02573 14.5671C1.62061 14.1867 1.37343 13.6678 1.33328 13.1135L0.846611 6.15352C0.842233 6.08785 0.850832 6.02197 0.871915 5.95964C0.892998 5.8973 0.926153 5.83972 0.969487 5.7902C1.01282 5.74067 1.06549 5.70017 1.12447 5.671C1.18346 5.64183 1.24762 5.62456 1.31328 5.62018C1.37894 5.61581 1.44482 5.6244 1.50716 5.64549C1.56949 5.66657 1.62707 5.69973 1.67659 5.74306C1.72612 5.78639 1.76662 5.83906 1.79579 5.89804C1.82497 5.95703 1.84223 6.02119 1.84661 6.08685L2.31994 13.0468C2.34358 13.3534 2.48268 13.6395 2.70914 13.8474C2.9356 14.0553 3.23254 14.1694 3.53994 14.1668L8.57328 14.1068C8.8791 14.1038 9.17223 13.9842 9.39278 13.7723C9.61334 13.5604 9.74467 13.2723 9.75994 12.9668L10.1533 6.08685C10.1635 5.95423 10.2249 5.83076 10.3243 5.74246C10.4238 5.65417 10.5537 5.60794 10.6866 5.61352C10.8181 5.6221 10.9409 5.68224 11.0283 5.78086C11.1157 5.87948 11.1606 6.00862 11.1533 6.14018L10.7599 13.0268C10.7264 13.5836 10.4839 14.1072 10.081 14.4928C9.67801 14.8785 9.1443 15.0978 8.58661 15.1068L3.55328 15.1668H3.51994ZM7.98661 8.56685C7.98488 8.43478 7.93165 8.3086 7.83825 8.2152C7.74486 8.12181 7.61868 8.06858 7.48661 8.06685H4.51328C4.38067 8.06685 4.25349 8.11953 4.15972 8.21329C4.06596 8.30706 4.01328 8.43424 4.01328 8.56685C4.01328 8.69946 4.06596 8.82663 4.15972 8.9204C4.25349 9.01417 4.38067 9.06685 4.51328 9.06685H7.48661C7.55338 9.06863 7.61984 9.05701 7.68205 9.03268C7.74426 9.00836 7.80096 8.97181 7.84881 8.9252C7.89667 8.87859 7.93469 8.82287 7.96065 8.76132C7.98661 8.69977 7.99997 8.63365 7.99994 8.56685H7.98661ZM7.46661 11.0335C7.46661 10.9009 7.41393 10.7737 7.32016 10.68C7.2264 10.5862 7.09922 10.5335 6.96661 10.5335H5.03328C4.90067 10.5335 4.77349 10.5862 4.67972 10.68C4.58596 10.7737 4.53328 10.9009 4.53328 11.0335C4.53328 11.1661 4.58596 11.2933 4.67972 11.3871C4.77349 11.4808 4.90067 11.5335 5.03328 11.5335H6.96661C7.09868 11.5318 7.22486 11.4786 7.31825 11.3852C7.41165 11.2918 7.46488 11.1656 7.46661 11.0335ZM11.9999 4.34685C11.9837 4.46582 11.9247 4.5748 11.8338 4.65334C11.743 4.73189 11.6267 4.77462 11.5066 4.77352H11.4333C7.83463 4.27895 4.18525 4.27895 0.586611 4.77352C0.52046 4.78494 0.452697 4.78311 0.387261 4.76812C0.321825 4.75314 0.260019 4.7253 0.205434 4.68622C0.15085 4.64714 0.104575 4.5976 0.0692985 4.54049C0.0340221 4.48338 0.0104474 4.41982 -5.58854e-05 4.35352C-0.0212122 4.22268 0.0104398 4.08881 0.0879442 3.9813C0.165449 3.87379 0.282465 3.80146 0.413277 3.78018C0.499944 3.78018 1.41994 3.62018 2.86661 3.50685L3.10661 2.25352C3.18278 1.85342 3.39637 1.49252 3.71044 1.23323C4.02452 0.973936 4.41933 0.832548 4.82661 0.833516H7.17994C7.59027 0.831559 7.98819 0.974125 8.30391 1.23621C8.61963 1.4983 8.83301 1.86317 8.90661 2.26685L9.13328 3.50685C9.92661 3.57352 10.7399 3.65352 11.5733 3.78018C11.6386 3.78918 11.7015 3.811 11.7583 3.84439C11.8152 3.87778 11.8648 3.92209 11.9045 3.97476C11.9441 4.02742 11.973 4.08741 11.9894 4.15127C12.0058 4.21513 12.0093 4.2816 11.9999 4.34685ZM5.70661 3.39352H8.09328L7.91994 2.44685C7.88875 2.27498 7.79829 2.11949 7.66431 2.00743C7.53032 1.89537 7.36128 1.83383 7.18661 1.83352H4.83328C4.65875 1.83327 4.48955 1.89362 4.35458 2.00427C4.21962 2.11492 4.12726 2.269 4.09328 2.44018L3.91328 3.39352H5.70661Z",fill:"#F1416C"})}),trash2:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M10 2.25C9.58579 2.25 9.25 2.58579 9.25 3V3.75H5C4.58579 3.75 4.25 4.08579 4.25 4.5C4.25 4.91421 4.58579 5.25 5 5.25H19C19.4142 5.25 19.75 4.91421 19.75 4.5C19.75 4.08579 19.4142 3.75 19 3.75H14.75V3C14.75 2.58579 14.4142 2.25 14 2.25H10Z",fill:"#F1416C"}),m.jsx("path",{d:"M10 10.65C10.4142 10.65 10.75 10.9858 10.75 11.4L10.75 18.4C10.75 18.8142 10.4142 19.15 10 19.15C9.58579 19.15 9.25 18.8142 9.25 18.4L9.25 11.4C9.25 10.9858 9.58579 10.65 10 10.65Z",fill:"#F1416C"}),m.jsx("path",{d:"M14.75 11.4C14.75 10.9858 14.4142 10.65 14 10.65C13.5858 10.65 13.25 10.9858 13.25 11.4V18.4C13.25 18.8142 13.5858 19.15 14 19.15C14.4142 19.15 14.75 18.8142 14.75 18.4V11.4Z",fill:"#F1416C"}),m.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99142 7.91718C6.03363 7.53735 6.35468 7.25 6.73684 7.25H17.2632C17.6453 7.25 17.9664 7.53735 18.0086 7.91718L18.2087 9.71852C18.5715 12.9838 18.5715 16.2793 18.2087 19.5446L18.189 19.722C18.045 21.0181 17.0404 22.0517 15.7489 22.2325C13.2618 22.5807 10.7382 22.5807 8.25108 22.2325C6.95954 22.0517 5.955 21.0181 5.81098 19.722L5.79128 19.5446C5.42846 16.2793 5.42846 12.9838 5.79128 9.71852L5.99142 7.91718ZM7.40812 8.75L7.2821 9.88417C6.93152 13.0394 6.93152 16.2238 7.2821 19.379L7.3018 19.5563C7.37011 20.171 7.84652 20.6612 8.45905 20.747C10.8082 21.0758 13.1918 21.0758 15.5409 20.747C16.1535 20.6612 16.6299 20.171 16.6982 19.5563L16.7179 19.379C17.0685 16.2238 17.0685 13.0394 16.7179 9.88417L16.5919 8.75H7.40812Z",fill:"#F1416C"})]}),trash_outline:m.jsx("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M3.51994 15.1668C2.96424 15.1616 2.43084 14.9475 2.02573 14.5671C1.62061 14.1867 1.37343 13.6678 1.33328 13.1135L0.846611 6.15352C0.842233 6.08785 0.850832 6.02197 0.871915 5.95964C0.892998 5.8973 0.926153 5.83972 0.969487 5.7902C1.01282 5.74067 1.06549 5.70017 1.12447 5.671C1.18346 5.64183 1.24762 5.62456 1.31328 5.62018C1.37894 5.61581 1.44482 5.6244 1.50716 5.64549C1.56949 5.66657 1.62707 5.69973 1.67659 5.74306C1.72612 5.78639 1.76662 5.83906 1.79579 5.89804C1.82497 5.95703 1.84223 6.02119 1.84661 6.08685L2.31994 13.0468C2.34358 13.3534 2.48268 13.6395 2.70914 13.8474C2.9356 14.0553 3.23254 14.1694 3.53994 14.1668L8.57328 14.1068C8.8791 14.1038 9.17223 13.9842 9.39278 13.7723C9.61334 13.5604 9.74467 13.2723 9.75994 12.9668L10.1533 6.08685C10.1635 5.95423 10.2249 5.83076 10.3243 5.74246C10.4238 5.65417 10.5537 5.60794 10.6866 5.61352C10.8181 5.6221 10.9409 5.68224 11.0283 5.78086C11.1157 5.87948 11.1606 6.00862 11.1533 6.14018L10.7599 13.0268C10.7264 13.5836 10.4839 14.1072 10.081 14.4928C9.67801 14.8785 9.1443 15.0978 8.58661 15.1068L3.55328 15.1668H3.51994ZM7.98661 8.56685C7.98488 8.43478 7.93165 8.3086 7.83825 8.2152C7.74486 8.12181 7.61868 8.06858 7.48661 8.06685H4.51328C4.38067 8.06685 4.25349 8.11953 4.15972 8.21329C4.06596 8.30706 4.01328 8.43424 4.01328 8.56685C4.01328 8.69946 4.06596 8.82663 4.15972 8.9204C4.25349 9.01417 4.38067 9.06685 4.51328 9.06685H7.48661C7.55338 9.06863 7.61984 9.05701 7.68205 9.03268C7.74426 9.00836 7.80096 8.97181 7.84881 8.9252C7.89667 8.87859 7.93469 8.82287 7.96065 8.76132C7.98661 8.69977 7.99997 8.63365 7.99994 8.56685H7.98661ZM7.46661 11.0335C7.46661 10.9009 7.41393 10.7737 7.32016 10.68C7.2264 10.5862 7.09922 10.5335 6.96661 10.5335H5.03328C4.90067 10.5335 4.77349 10.5862 4.67972 10.68C4.58596 10.7737 4.53328 10.9009 4.53328 11.0335C4.53328 11.1661 4.58596 11.2933 4.67972 11.3871C4.77349 11.4808 4.90067 11.5335 5.03328 11.5335H6.96661C7.09868 11.5318 7.22486 11.4786 7.31825 11.3852C7.41165 11.2918 7.46488 11.1656 7.46661 11.0335ZM11.9999 4.34685C11.9837 4.46582 11.9247 4.5748 11.8338 4.65334C11.743 4.73189 11.6267 4.77462 11.5066 4.77352H11.4333C7.83463 4.27895 4.18525 4.27895 0.586611 4.77352C0.52046 4.78494 0.452697 4.78311 0.387261 4.76812C0.321825 4.75314 0.260019 4.7253 0.205434 4.68622C0.15085 4.64714 0.104575 4.5976 0.0692985 4.54049C0.0340221 4.48338 0.0104474 4.41982 -5.58854e-05 4.35352C-0.0212122 4.22268 0.0104398 4.08881 0.0879442 3.9813C0.165449 3.87379 0.282465 3.80146 0.413277 3.78018C0.499944 3.78018 1.41994 3.62018 2.86661 3.50685L3.10661 2.25352C3.18278 1.85342 3.39637 1.49252 3.71044 1.23323C4.02452 0.973936 4.41933 0.832548 4.82661 0.833516H7.17994C7.59027 0.831559 7.98819 0.974125 8.30391 1.23621C8.61963 1.4983 8.83301 1.86317 8.90661 2.26685L9.13328 3.50685C9.92661 3.57352 10.7399 3.65352 11.5733 3.78018C11.6386 3.78918 11.7015 3.811 11.7583 3.84439C11.8152 3.87778 11.8648 3.92209 11.9045 3.97476C11.9441 4.02742 11.973 4.08741 11.9894 4.15127C12.0058 4.21513 12.0093 4.2816 11.9999 4.34685ZM5.70661 3.39352H8.09328L7.91994 2.44685C7.88875 2.27498 7.79829 2.11949 7.66431 2.00743C7.53032 1.89537 7.36128 1.83383 7.18661 1.83352H4.83328C4.65875 1.83327 4.48955 1.89362 4.35458 2.00427C4.21962 2.11492 4.12726 2.269 4.09328 2.44018L3.91328 3.39352H5.70661Z",fill:"inherit"})}),plus_squared:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.16667 10.8333H5.83333C5.61232 10.8333 5.40036 10.7455 5.24408 10.5893C5.0878 10.433 5 10.221 5 10C5 9.77899 5.0878 9.56703 5.24408 9.41075C5.40036 9.25447 5.61232 9.16667 5.83333 9.16667H9.16667V10.8333ZM14.1667 9.16667H10.8333V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56703 14.7559 9.41075C14.5996 9.25447 14.3877 9.16667 14.1667 9.16667Z",fill:"white"}),m.jsx("path",{opacity:"0.3",d:"M13.4915 1.66667H6.50817C3.83419 1.66667 1.6665 3.83436 1.6665 6.50834V13.4917C1.6665 16.1657 3.83419 18.3333 6.50817 18.3333H13.4915C16.1655 18.3333 18.3332 16.1657 18.3332 13.4917V6.50834C18.3332 3.83436 16.1655 1.66667 13.4915 1.66667Z",fill:"white"}),m.jsx("path",{d:"M14.1667 9.16667H10.8333V5.83333C10.8333 5.61232 10.7455 5.40036 10.5893 5.24408C10.433 5.0878 10.221 5 10 5C9.77899 5 9.56702 5.0878 9.41074 5.24408C9.25446 5.40036 9.16667 5.61232 9.16667 5.83333V9.16667H5.83333C5.61232 9.16667 5.40036 9.25446 5.24408 9.41074C5.0878 9.56702 5 9.77899 5 10C5 10.221 5.0878 10.433 5.24408 10.5893C5.40036 10.7455 5.61232 10.8333 5.83333 10.8333H9.16667V14.1667C9.16667 14.3877 9.25446 14.5996 9.41074 14.7559C9.56702 14.9122 9.77899 15 10 15C10.221 15 10.433 14.9122 10.5893 14.7559C10.7455 14.5996 10.8333 14.3877 10.8333 14.1667V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56702 14.7559 9.41074C14.5996 9.25446 14.3877 9.16667 14.1667 9.16667Z",fill:"white"})]}),plus_squared2:m.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M9.16667 10.8332H5.83333C5.61232 10.8332 5.40036 10.7454 5.24408 10.5891C5.0878 10.4328 5 10.2209 5 9.99984C5 9.77882 5.0878 9.56686 5.24408 9.41058C5.40036 9.2543 5.61232 9.1665 5.83333 9.1665H9.16667V10.8332ZM14.1667 9.1665H10.8333V10.8332H14.1667C14.3877 10.8332 14.5996 10.7454 14.7559 10.5891C14.9122 10.4328 15 10.2209 15 9.99984C15 9.77882 14.9122 9.56686 14.7559 9.41058C14.5996 9.2543 14.3877 9.1665 14.1667 9.1665Z",fill:"#1868DB"}),m.jsx("path",{opacity:"0.3",d:"M13.4917 1.6665H6.50832C3.83434 1.6665 1.66666 3.83419 1.66666 6.50817V13.4915C1.66666 16.1655 3.83434 18.3332 6.50832 18.3332H13.4917C16.1656 18.3332 18.3333 16.1655 18.3333 13.4915V6.50817C18.3333 3.83419 16.1656 1.6665 13.4917 1.6665Z",fill:"#1868DB"}),m.jsx("path",{d:"M14.1667 9.16667H10.8333V5.83333C10.8333 5.61232 10.7455 5.40036 10.5893 5.24408C10.433 5.0878 10.221 5 10 5C9.77899 5 9.56702 5.0878 9.41074 5.24408C9.25446 5.40036 9.16667 5.61232 9.16667 5.83333V9.16667H5.83333C5.61232 9.16667 5.40036 9.25446 5.24408 9.41074C5.0878 9.56702 5 9.77899 5 10C5 10.221 5.0878 10.433 5.24408 10.5893C5.40036 10.7455 5.61232 10.8333 5.83333 10.8333H9.16667V14.1667C9.16667 14.3877 9.25446 14.5996 9.41074 14.7559C9.56702 14.9122 9.77899 15 10 15C10.221 15 10.433 14.9122 10.5893 14.7559C10.7455 14.5996 10.8333 14.3877 10.8333 14.1667V10.8333H14.1667C14.3877 10.8333 14.5996 10.7455 14.7559 10.5893C14.9122 10.433 15 10.221 15 10C15 9.77899 14.9122 9.56702 14.7559 9.41074C14.5996 9.25446 14.3877 9.16667 14.1667 9.16667Z",fill:"#1868DB"})]}),plus_circle:m.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M9.00008 0.666992C7.35191 0.666992 5.74074 1.15573 4.37033 2.07141C2.99992 2.98709 1.93182 4.28858 1.30109 5.8113C0.670359 7.33401 0.505331 9.00957 0.826874 10.6261C1.14842 12.2426 1.94209 13.7274 3.10753 14.8929C4.27297 16.0583 5.75782 16.852 7.37433 17.1735C8.99084 17.4951 10.6664 17.3301 12.1891 16.6993C13.7118 16.0686 15.0133 15.0005 15.929 13.6301C16.8447 12.2597 17.3334 10.6485 17.3334 9.00033C17.3334 7.90598 17.1179 6.82234 16.6991 5.8113C16.2803 4.80025 15.6665 3.88159 14.8926 3.10777C14.1188 2.33395 13.2002 1.72012 12.1891 1.30133C11.1781 0.88254 10.0944 0.666992 9.00008 0.666992ZM13.1668 9.83366H9.83342V13.167C9.83342 13.388 9.74562 13.6 9.58934 13.7562C9.43306 13.9125 9.2211 14.0003 9.00008 14.0003C8.77907 14.0003 8.56711 13.9125 8.41083 13.7562C8.25455 13.6 8.16675 13.388 8.16675 13.167V9.83366H4.83342C4.6124 9.83366 4.40044 9.74586 4.24416 9.58958C4.08788 9.4333 4.00008 9.22134 4.00008 9.00033C4.00008 8.77931 4.08788 8.56735 4.24416 8.41107C4.40044 8.25479 4.6124 8.16699 4.83342 8.16699H8.16675V4.83366C8.16675 4.61265 8.25455 4.40068 8.41083 4.2444C8.56711 4.08812 8.77907 4.00033 9.00008 4.00033C9.2211 4.00033 9.43306 4.08812 9.58934 4.2444C9.74562 4.40068 9.83342 4.61265 9.83342 4.83366V8.16699H13.1668C13.3878 8.16699 13.5997 8.25479 13.756 8.41107C13.9123 8.56735 14.0001 8.77931 14.0001 9.00033C14.0001 9.22134 13.9123 9.4333 13.756 9.58958C13.5997 9.74586 13.3878 9.83366 13.1668 9.83366Z",fill:"black"})}),close:m.jsx("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M15.0862 13.5L19.125 9.49499C19.3398 9.27718 19.4593 8.98295 19.4572 8.67703C19.4551 8.37112 19.3315 8.07856 19.1137 7.86374C18.8959 7.64891 18.6017 7.52941 18.2958 7.53152C17.9898 7.53363 17.6973 7.65718 17.4825 7.87499L13.5 11.9137L9.51747 7.95374C9.30669 7.74421 9.02155 7.6266 8.72435 7.6266C8.42714 7.6266 8.142 7.74421 7.93122 7.95374C7.82578 8.05832 7.74208 8.18275 7.68497 8.31984C7.62785 8.45693 7.59845 8.60398 7.59845 8.75249C7.59845 8.901 7.62785 9.04805 7.68497 9.18514C7.74208 9.32223 7.82578 9.44666 7.93122 9.55124L11.9137 13.5L7.87497 17.505C7.66014 17.7228 7.54064 18.017 7.54275 18.3229C7.54486 18.6289 7.66841 18.9214 7.88622 19.1362C8.10403 19.3511 8.39826 19.4706 8.70417 19.4685C9.01009 19.4663 9.30264 19.3428 9.51747 19.125L13.5 15.0862L17.4825 19.0462C17.6933 19.2558 17.9784 19.3734 18.2756 19.3734C18.5728 19.3734 18.8579 19.2558 19.0687 19.0462C19.1742 18.9417 19.2579 18.8172 19.315 18.6801C19.3721 18.543 19.4015 18.396 19.4015 18.2475C19.4015 18.099 19.3721 17.9519 19.315 17.8148C19.2579 17.6777 19.1742 17.5533 19.0687 17.4487L15.0862 13.5Z",fill:"#1868DB"})}),close2:m.jsx("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M15.0862 13.5L19.125 9.49499C19.3398 9.27718 19.4593 8.98295 19.4572 8.67703C19.4551 8.37112 19.3315 8.07856 19.1137 7.86374C18.8959 7.64891 18.6017 7.52941 18.2958 7.53152C17.9898 7.53363 17.6973 7.65718 17.4825 7.87499L13.5 11.9137L9.51747 7.95374C9.30669 7.74421 9.02155 7.6266 8.72435 7.6266C8.42714 7.6266 8.142 7.74421 7.93122 7.95374C7.82578 8.05832 7.74208 8.18275 7.68497 8.31984C7.62785 8.45693 7.59845 8.60398 7.59845 8.75249C7.59845 8.901 7.62785 9.04805 7.68497 9.18514C7.74208 9.32223 7.82578 9.44666 7.93122 9.55124L11.9137 13.5L7.87497 17.505C7.66014 17.7228 7.54064 18.017 7.54275 18.3229C7.54486 18.6289 7.66841 18.9214 7.88622 19.1362C8.10403 19.3511 8.39826 19.4706 8.70417 19.4685C9.01009 19.4663 9.30264 19.3428 9.51747 19.125L13.5 15.0862L17.4825 19.0462C17.6933 19.2558 17.9784 19.3734 18.2756 19.3734C18.5728 19.3734 18.8579 19.2558 19.0687 19.0462C19.1742 18.9417 19.2579 18.8172 19.315 18.6801C19.3721 18.543 19.4015 18.396 19.4015 18.2475C19.4015 18.099 19.3721 17.9519 19.315 17.8148C19.2579 17.6777 19.1742 17.5533 19.0687 17.4487L15.0862 13.5Z",fill:"inherit"})}),close_custom:m.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M17.0001 16.9298C16.8127 17.1161 16.5593 17.2206 16.2951 17.2206C16.0309 17.2206 15.7774 17.1161 15.5901 16.9298L7.05007 8.48985C6.95634 8.39688 6.88195 8.28628 6.83118 8.16442C6.78041 8.04256 6.75427 7.91186 6.75427 7.77985C6.75427 7.64783 6.78041 7.51713 6.83118 7.39527C6.88195 7.27341 6.95634 7.16281 7.05007 7.06985C7.23743 6.88359 7.49088 6.77905 7.75507 6.77905C8.01926 6.77905 8.27271 6.88359 8.46007 7.06985L17.0001 15.5098C17.0938 15.6028 17.1682 15.7134 17.219 15.8353C17.2697 15.9571 17.2959 16.0878 17.2959 16.2198C17.2959 16.3519 17.2697 16.4826 17.219 16.6044C17.1682 16.7263 17.0938 16.8369 17.0001 16.9298Z",fill:"#202125"}),m.jsx("path",{opacity:"0.3",d:"M8.46004 16.9999C8.26909 17.1935 8.00904 17.3033 7.73711 17.3052C7.46518 17.3071 7.20365 17.2009 7.01004 17.0099C6.81643 16.819 6.70661 16.5589 6.70474 16.287C6.70286 16.0151 6.80909 15.7535 7.00004 15.5599L15.54 6.99991C15.731 6.8063 15.991 6.69648 16.263 6.6946C16.5349 6.69273 16.7964 6.79895 16.99 6.98991C17.1836 7.18087 17.2935 7.44091 17.2953 7.71284C17.2972 7.98477 17.191 8.2463 17 8.43991L8.46004 16.9999Z",fill:"#202125"})]}),expand:m.jsx("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M14.1667 29.75V26.9167H9.08083L15.4558 20.5417L13.4583 18.5442L7.08333 24.9192V19.8333H4.25V29.75H14.1667ZM20.5417 15.4558L26.9167 9.08083V14.1667H29.75V4.25H19.8333V7.08333H24.9192L18.5442 13.4583L20.5417 15.4558Z",fill:"#5E6278"})}),error:m.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M12 21C7.0293 21 3 16.9707 3 12C3 7.0293 7.0293 3 12 3C16.9707 3 21 7.0293 21 12C21 16.9707 16.9707 21 12 21ZM11.1 14.7V16.5H12.9V14.7H11.1ZM11.1 7.5V12.9H12.9V7.5H11.1Z",fill:"inherit"})}),printer_blue:m.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{opacity:"0.3",d:"M12.1333 4.66602H3.86667C2.83574 4.66602 2 5.50175 2 6.53268V10.1327C2 11.1636 2.83574 11.9993 3.86667 11.9993H12.1333C13.1643 11.9993 14 11.1636 14 10.1327V6.53268C14 5.50175 13.1643 4.66602 12.1333 4.66602Z",fill:"#1868DB"}),m.jsx("path",{d:"M6.83366 1.33301H9.17366C9.74714 1.33477 10.2965 1.56382 10.7014 1.96996C11.1063 2.3761 11.3337 2.92619 11.3337 3.49967V4.66634H4.66699V3.49967C4.66699 2.92504 4.89527 2.37394 5.30159 1.96761C5.70792 1.56128 6.25902 1.33301 6.83366 1.33301Z",fill:"#1868DB"}),m.jsx("path",{d:"M5.33301 10H10.6663V12.6133C10.6663 13.1579 10.45 13.6802 10.0649 14.0653C9.67986 14.4503 9.15759 14.6667 8.61301 14.6667H7.38634C6.84176 14.6667 6.31949 14.4503 5.93442 14.0653C5.54934 13.6802 5.33301 13.1579 5.33301 12.6133V10Z",fill:"#1868DB"}),m.jsx("path",{d:"M6.66699 7.83301H4.66699C4.53438 7.83301 4.40721 7.78033 4.31344 7.68656C4.21967 7.59279 4.16699 7.46562 4.16699 7.33301C4.16699 7.2004 4.21967 7.07322 4.31344 6.97945C4.40721 6.88569 4.53438 6.83301 4.66699 6.83301H6.66699C6.7996 6.83301 6.92678 6.88569 7.02055 6.97945C7.11431 7.07322 7.16699 7.2004 7.16699 7.33301C7.16699 7.46562 7.11431 7.59279 7.02055 7.68656C6.92678 7.78033 6.7996 7.83301 6.66699 7.83301Z",fill:"black"}),m.jsx("path",{d:"M11.3337 10.5H4.66699C4.53438 10.5 4.40721 10.4473 4.31344 10.3536C4.21967 10.2598 4.16699 10.1326 4.16699 10C4.16699 9.86739 4.21967 9.74022 4.31344 9.64645C4.40721 9.55268 4.53438 9.5 4.66699 9.5H11.3337C11.4663 9.5 11.5934 9.55268 11.6872 9.64645C11.781 9.74022 11.8337 9.86739 11.8337 10C11.8337 10.1326 11.781 10.2598 11.6872 10.3536C11.5934 10.4473 11.4663 10.5 11.3337 10.5Z",fill:"black"})]})};function Hy({showBulkActions:e=!0,meta:t}){const n=J(),{currentPage:r,perview:o}=ne(e=>e.app);return T.useEffect(()=>{t&&r>t?.last_page&&n(vt(1))},[t?.per_page]),m.jsxs("div",{className:Ao("flex items-center justify-between gap-4 flex-wrap",t&&t?.total>0?null:"hidden"),children:[e?m.jsxs("div",{className:"flex items-center gap-2.5 shrink-0",children:[m.jsxs(kd,{children:[m.jsx(_d,{asChild:!0,children:m.jsxs("button",{className:"rounded-md h-9 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 ",children:[o,m.jsx("span",{className:"rotate-90",children:$y.arrow})]})}),m.jsx(Ed,{align:"center",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5",children:[7,10,20].map((e,t)=>m.jsx(Rd,{className:`capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${o===e?"bg-primary_light text-primary":"text-gray-700"} `,onClick:()=>n(bt(e)),children:e},t))})]}),m.jsxs("p",{className:"font-normal text-gray-600 text-[15px]",children:["Showing ",t?.from," - ",t?.to," of ",t?.total]})]}):null,m.jsx(zy,{count:t?.last_page||1,page:t?.current_page??1,shape:"rounded",color:"primary",onChange:(e,t)=>{n(vt(t))}})]})}function Vy({props:e={}}){return m.jsxs("div",{className:"flex flex-col gap-3 items-center py-24",children:[m.jsx("p",{className:"font-bold text-sm",children:e.header??"No item attached"}),m.jsx("p",{className:"font-bold text-[13px] text-gray-700",children:e.subText??"Add a new item to start managing your orders."})]})}function By({columns:e,data:t,tbhRowClass:n,tHeadClass:r,tbCellClass:o,meta:a,showBulkActions:i,showPaginate:s=!0,emptyData:l,emptyProps:u,loading:c,accordionData:d,hasAccordion:f,bodyRowClass:p,tableContainerClass:h,firstCellClass:g,lastCellClass:y,showAccordionDropdown:v=!0,onToggleAccordion:b}){const[w,x]=T.useState(null),C=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=T.useState(()=>({current:kr(t)})),[r,o]=T.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:t,columns:e,getCoreRowModel:e=>Mn(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let l=0;l<t.length;l++){const u=In(e,e._getRowId(t[l],l,a),t[l],l,o,0,null==a?void 0:a.id);var s;n.flatRows.push(u),n.rowsById[u.id]=u,i.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=r(u.originalSubRows,o+1,u)))}return i};return n.rows=r(t),n},Tn(e.options,"debugTable",0,()=>e._autoResetPageIndex()))});return m.jsxs("div",{className:"flex flex-col gap-[30px]",children:[m.jsx("div",{className:`shadow-[0_3px_4px_0_#00000008] ${h}`,children:m.jsxs(Fo,{children:[m.jsx(Lo,{children:C.getHeaderGroups().map(e=>m.jsx(zo,{className:Ao("border-gray-300 bg-gray-100 hover:!bg-gray-100 rounded-xl",n),children:e.headers.map(e=>m.jsx($o,{className:Ao("text-dark text-sm capitalize font-bold",r),children:e.isPlaceholder?null:_r(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),m.jsx(Io,{children:c?Array(5).fill(null).map((e,t)=>m.jsx(D.Fragment,{children:C.getHeaderGroups().map(e=>m.jsx(zo,{className:Ao("border-gray-300 hover:!bg-gray-100 rounded-xl"),children:e.headers.map(e=>m.jsx(Ho,{children:m.jsx(Vo,{className:"w-full h-6 rounded-lg"})},e.id))},e.id))},t)):C?.getRowModel().rows?.length?C?.getRowModel().rows.map((e,t)=>m.jsx(D.Fragment,{children:m.jsx(zo,{onClick:()=>((e,t)=>{x(t=>t===e?null:e),b?.(e,t)})(t,e.original),"data-state":e.getIsSelected()&&"selected",className:`border-gray-300 hover:!bg-gray-100 data-[state=selected]:bg-gray-100 ${p} `,children:e.getVisibleCells().map((n,r)=>m.jsx(Ho,{className:Ao("text-gray-500 text-sm font-bold",o,0===r&&g,r===e.getVisibleCells().length-1&&y),children:m.jsxs("div",{className:"flex",children:[f&&v&&0===r&&m.jsx("div",{className:"cursor-pointer inline",children:m.jsx("div",{className:"transform transition-transform duration-200 "+(w===t?"-rotate-90":"rotate-90"),children:$y.arrow})})," ",m.jsx("div",{children:_r(n.column.columnDef.cell,n.getContext())})]})},n.id))},e.id)},e.id)):m.jsx(zo,{children:m.jsx(Ho,{colSpan:e.length,className:"h-24 text-center hover:bg-gray-100",children:l?m.jsx(Vy,{props:u}):"No results found."})})})]})}),s&&m.jsx(Hy,{showBulkActions:i,meta:a})]})}function Uy(e,t="NGN",n="en-NG"){isNaN(e)&&(e=0);return new Intl.NumberFormat(n,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:6}).format(e)}function Wy(e=0){if(null==e)return"0";if(isNaN(e))return"0";{const[t,n]=e.toString().split("."),r=t.replace(/\B(?=(\d{3})+(?!\d))/g,",");return n?`${r}.${n}`:r}}var Yy,qy="HoverCard",[Gy,Ky]=qo(qy,[js]),Qy=js(),[Zy,Xy]=Gy(qy),Jy=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,l=Qy(t),u=T.useRef(0),c=T.useRef(0),d=T.useRef(!1),f=T.useRef(!1),[p,h]=Zo({prop:r,defaultProp:o??!1,onChange:a,caller:qy}),g=T.useCallback(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>h(!0),i)},[i,h]),y=T.useCallback(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>h(!1),s))},[s,h]),v=T.useCallback(()=>h(!1),[h]);return T.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),m.jsx(Zy,{scope:t,open:p,onOpenChange:h,onOpen:g,onClose:y,onDismiss:v,hasSelectionRef:d,isPointerDownOnContentRef:f,children:m.jsx(Ws,{...l,children:n})})};Jy.displayName=qy;var ev="HoverCardTrigger",tv=T.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Xy(ev,n),a=Qy(n);return m.jsx(Ys,{asChild:!0,...a,children:m.jsx(aa.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:Bo(e.onPointerEnter,sv(o.onOpen)),onPointerLeave:Bo(e.onPointerLeave,sv(o.onClose)),onFocus:Bo(e.onFocus,o.onOpen),onBlur:Bo(e.onBlur,o.onClose),onTouchStart:Bo(e.onTouchStart,e=>e.preventDefault())})})});tv.displayName=ev;var[nv,rv]=Gy("HoverCardPortal",{forceMount:void 0}),ov="HoverCardContent",av=T.forwardRef((e,t)=>{const n=rv(ov,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=Xy(ov,e.__scopeHoverCard);return m.jsx(Qs,{present:r||a.open,children:m.jsx(iv,{"data-state":a.open?"open":"closed",...o,onPointerEnter:Bo(e.onPointerEnter,sv(a.onOpen)),onPointerLeave:Bo(e.onPointerLeave,sv(a.onClose)),ref:t})})});av.displayName=ov;var iv=T.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,l=Xy(ov,n),u=Qy(n),c=T.useRef(null),d=Yo(t,c),[f,p]=T.useState(!1);return T.useEffect(()=>{if(f){const e=document.body;return Yy=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=Yy,e.style.webkitUserSelect=Yy}}},[f]),T.useEffect(()=>{if(c.current){const e=()=>{p(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{""!==document.getSelection()?.toString()&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),T.useEffect(()=>{if(c.current){const e=function(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(c.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),m.jsx(ga,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:Bo(a,e=>{e.preventDefault()}),onDismiss:l.onDismiss,children:m.jsx(qs,{...u,...s,onPointerDown:Bo(s.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:d,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function sv(e){return t=>"touch"===t.pointerType?void 0:e()}T.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Qy(n);return m.jsx(Gs,{...o,...r,ref:t})}).displayName="HoverCardArrow";var lv=av;const uv=Jy,cv=tv,dv=T.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>m.jsx(lv,{ref:o,align:t,sideOffset:n,className:Ao("z-50 w-64 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r}));function fv({children:e,trigger:t,fieldName:n,align:r="start"}){return m.jsxs(uv,{children:[m.jsx(cv,{className:"cursor-pointer",children:t??$y.info_input}),m.jsxs(dv,{align:r,className:"bg-[#0A0D14] text-[#CDD0D5] text-xs font-normal border-none",children:[n?m.jsx("p",{className:"text-sm font-medium text-white first-letter:uppercase",children:n}):null,e]})]})}function pv({status:e}){return m.jsx("span",{className:Ao("font-semibold text-xs rounded p-[7px] capitalize text-center min-w-[70px] bg-gray-300 text-gray-700",["active","approved","published","received","returned","completed","reconciled","credit"].includes(e)?"text-success bg-success-light":null,["inactive","pending","expired","expiring","rejected","voided","cancelled","debit","out of stock"].includes(e)?"text-danger bg-danger_light":null,["pending","paylater","suspended","awaiting_approval"].includes(e)?"text-warning bg-warning-light":null,["draft","in_transit"].includes(e)?"text-black bg-[#E1E3EA]":null,["ongoing"].includes(e)?"text-[#7239EA] bg-[#f5edff]":null),children:e?.replace("_"," ")})}dv.displayName=lv.displayName,Array(12).fill(0);let hv=1;const mv=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:n,...r}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:hv++,a=this.toasts.find(e=>e.id===o),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:n}),{...t,...e,id:o,dismissible:i,title:n}):t):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const r=Promise.resolve(e instanceof Function?e():e);let o,a=void 0!==n;const i=r.then(async e=>{o=["resolve",e];if(D.isValidElement(e))a=!1,this.create({id:n,type:"default",message:e});else if(gv(e)&&!e.ok){a=!1;const r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,i="object"==typeof r&&!D.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:o,...i})}else if(e instanceof Error){a=!1;const r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"==typeof r&&!D.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:o,...i})}else if(void 0!==t.success){a=!1;const r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,i="object"==typeof r&&!D.isValidElement(r)?r:{message:r};this.create({id:n,type:"success",description:o,...i})}}).catch(async e=>{if(o=["reject",e],void 0!==t.error){a=!1;const r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,i="object"==typeof r&&!D.isValidElement(r)?r:{message:r};this.create({id:n,type:"error",description:o,...i})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),s=()=>new Promise((e,t)=>i.then(()=>"reject"===o[0]?t(o[1]):e(o[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||hv++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},gv=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,yv=(e,t)=>{const n=(null==t?void 0:t.id)||hv++;return mv.addToast({title:e,...t,id:n}),n},vv=Object.assign(yv,{success:mv.success,info:mv.info,warning:mv.warning,error:mv.error,custom:mv.custom,message:mv.message,promise:mv.promise,dismiss:mv.dismiss,loading:mv.loading},{getHistory:()=>mv.toasts,getToasts:()=>mv.getActiveToasts()});function bv(e,t){return function(){return e.apply(t,arguments)}}!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");const{toString:wv}=Object.prototype,{getPrototypeOf:xv}=Object,{iterator:Cv,toStringTag:Sv}=Symbol,kv=(_v=Object.create(null),e=>{const t=wv.call(e);return _v[t]||(_v[t]=t.slice(8,-1).toLowerCase())});var _v;const Ev=e=>(e=e.toLowerCase(),t=>kv(t)===e),Rv=e=>t=>typeof t===e,{isArray:Nv}=Array,jv=Rv("undefined");function Pv(e){return null!==e&&!jv(e)&&null!==e.constructor&&!jv(e.constructor)&&Tv(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ov=Ev("ArrayBuffer");const Mv=Rv("string"),Tv=Rv("function"),Dv=Rv("number"),Av=e=>null!==e&&"object"==typeof e,Fv=e=>{if("object"!==kv(e))return!1;const t=xv(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Sv in e||Cv in e)},Lv=Ev("Date"),Iv=Ev("File"),zv=Ev("Blob"),$v=Ev("FileList"),Hv=Ev("URLSearchParams"),[Vv,Bv,Uv,Wv]=["ReadableStream","Request","Response","Headers"].map(Ev);function Yv(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Nv(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Pv(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function qv(e,t){if(Pv(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Gv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Kv=e=>!jv(e)&&e!==Gv;const Qv=(Zv="undefined"!=typeof Uint8Array&&xv(Uint8Array),e=>Zv&&e instanceof Zv);var Zv;const Xv=Ev("HTMLFormElement"),Jv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),eb=Ev("RegExp"),tb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Yv(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const nb=Ev("AsyncFunction"),rb=(ob="function"==typeof setImmediate,ab=Tv(Gv.postMessage),ob?setImmediate:ab?((e,t)=>(Gv.addEventListener("message",({source:n,data:r})=>{n===Gv&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Gv.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var ob,ab;const ib="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Gv):"undefined"!=typeof process&&process.nextTick||rb;var sb={isArray:Nv,isArrayBuffer:Ov,isBuffer:Pv,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Tv(e.append)&&("formdata"===(t=kv(e))||"object"===t&&Tv(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ov(e.buffer),t},isString:Mv,isNumber:Dv,isBoolean:e=>!0===e||!1===e,isObject:Av,isPlainObject:Fv,isEmptyObject:e=>{if(!Av(e)||Pv(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Vv,isRequest:Bv,isResponse:Uv,isHeaders:Wv,isUndefined:jv,isDate:Lv,isFile:Iv,isBlob:zv,isRegExp:eb,isFunction:Tv,isStream:e=>Av(e)&&Tv(e.pipe),isURLSearchParams:Hv,isTypedArray:Qv,isFileList:$v,forEach:Yv,merge:function e(){const{caseless:t}=Kv(this)&&this||{},n={},r=(r,o)=>{const a=t&&qv(n,o)||o;Fv(n[a])&&Fv(r)?n[a]=e(n[a],r):Fv(r)?n[a]=e({},r):Nv(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Yv(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Yv(t,(t,r)=>{n&&Tv(t)?e[r]=bv(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&xv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:kv,kindOfTest:Ev,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Nv(e))return e;let t=e.length;if(!Dv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Cv]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Xv,hasOwnProperty:Jv,hasOwnProp:Jv,reduceDescriptors:tb,freezeMethods:e=>{tb(e,(t,n)=>{if(Tv(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Tv(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Nv(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:qv,global:Gv,isContextDefined:Kv,isSpecCompliantForm:function(e){return!!(e&&Tv(e.append)&&"FormData"===e[Sv]&&e[Cv])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Av(e)){if(t.indexOf(e)>=0)return;if(Pv(e))return e;if(!("toJSON"in e)){t[r]=e;const o=Nv(e)?[]:{};return Yv(e,(e,t)=>{const a=n(e,r+1);!jv(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:nb,isThenable:e=>e&&(Av(e)||Tv(e))&&Tv(e.then)&&Tv(e.catch),setImmediate:rb,asap:ib,isIterable:e=>null!=e&&Tv(e[Cv])};function lb(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}sb.inherits(lb,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:sb.toJSONObject(this.config),code:this.code,status:this.status}}});const ub=lb.prototype,cb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{cb[e]={value:e}}),Object.defineProperties(lb,cb),Object.defineProperty(ub,"isAxiosError",{value:!0}),lb.from=(e,t,n,r,o,a)=>{const i=Object.create(ub);return sb.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),lb.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};function db(e){return sb.isPlainObject(e)||sb.isArray(e)}function fb(e){return sb.endsWith(e,"[]")?e.slice(0,-2):e}function pb(e,t,n){return e?e.concat(t).map(function(e,t){return e=fb(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const hb=sb.toFlatObject(sb,{},null,function(e){return/^is[A-Z]/.test(e)});function mb(e,t,n){if(!sb.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=sb.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!sb.isUndefined(t[e])})).metaTokens,o=n.visitor||u,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&sb.isSpecCompliantForm(t);if(!sb.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(sb.isDate(e))return e.toISOString();if(sb.isBoolean(e))return e.toString();if(!s&&sb.isBlob(e))throw new lb("Blob is not supported. Use a Buffer instead.");return sb.isArrayBuffer(e)||sb.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(sb.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(sb.isArray(e)&&function(e){return sb.isArray(e)&&!e.some(db)}(e)||(sb.isFileList(e)||sb.endsWith(n,"[]"))&&(s=sb.toArray(e)))return n=fb(n),s.forEach(function(e,r){!sb.isUndefined(e)&&null!==e&&t.append(!0===i?pb([n],r,a):null===i?n:n+"[]",l(e))}),!1;return!!db(e)||(t.append(pb(o,n,a),l(e)),!1)}const c=[],d=Object.assign(hb,{defaultVisitor:u,convertValue:l,isVisitable:db});if(!sb.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!sb.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),sb.forEach(n,function(n,a){!0===(!(sb.isUndefined(n)||null===n)&&o.call(t,n,sb.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),c.pop()}}(e),t}function gb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function yb(e,t){this._pairs=[],e&&mb(e,this,t)}const vb=yb.prototype;function bb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wb(e,t,n){if(!t)return e;const r=n&&n.encode||bb;sb.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(a=o?o(t,n):sb.isURLSearchParams(t)?t.toString():new yb(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}vb.append=function(e,t){this._pairs.push([e,t])},vb.toString=function(e){const t=e?function(t){return e.call(this,t,gb)}:gb;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class xb{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){sb.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Cb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Sb={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:yb,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const kb="undefined"!=typeof window&&"undefined"!=typeof document,_b="object"==typeof navigator&&navigator||void 0,Eb=kb&&(!_b||["ReactNative","NativeScript","NS"].indexOf(_b.product)<0),Rb="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Nb=kb&&window.location.href||"http://localhost";var jb={...Object.freeze({__proto__:null,hasBrowserEnv:kb,hasStandardBrowserEnv:Eb,hasStandardBrowserWebWorkerEnv:Rb,navigator:_b,origin:Nb}),...Sb};function Pb(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&sb.isArray(r)?r.length:a,s)return sb.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&sb.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&sb.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(sb.isFormData(e)&&sb.isFunction(e.entries)){const n={};return sb.forEachEntry(e,(e,r)=>{t(function(e){return sb.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Ob={transitional:Cb,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=sb.isObject(e);o&&sb.isHTMLForm(e)&&(e=new FormData(e));if(sb.isFormData(e))return r?JSON.stringify(Pb(e)):e;if(sb.isArrayBuffer(e)||sb.isBuffer(e)||sb.isStream(e)||sb.isFile(e)||sb.isBlob(e)||sb.isReadableStream(e))return e;if(sb.isArrayBufferView(e))return e.buffer;if(sb.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return mb(e,new jb.classes.URLSearchParams,{visitor:function(e,t,n,r){return jb.isNode&&sb.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=sb.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return mb(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(sb.isString(e))try{return(t||JSON.parse)(e),sb.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ob.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(sb.isResponse(e)||sb.isReadableStream(e))return e;if(e&&sb.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw lb.from(e,lb.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jb.classes.FormData,Blob:jb.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};sb.forEach(["delete","get","head","post","put","patch"],e=>{Ob.headers[e]={}});const Mb=sb.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Tb=Symbol("internals");function Db(e){return e&&String(e).trim().toLowerCase()}function Ab(e){return!1===e||null==e?e:sb.isArray(e)?e.map(Ab):String(e)}function Fb(e,t,n,r,o){return sb.isFunction(r)?r.call(this,t,n):(o&&(t=n),sb.isString(t)?sb.isString(r)?-1!==t.indexOf(r):sb.isRegExp(r)?r.test(t):void 0:void 0)}let Lb=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Db(t);if(!o)throw new Error("header name must be a non-empty string");const a=sb.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Ab(e))}const a=(e,t)=>sb.forEach(e,(e,n)=>o(e,n,t));if(sb.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(sb.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Mb[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(sb.isObject(e)&&sb.isIterable(e)){let n,r,o={};for(const t of e){if(!sb.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?sb.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Db(e)){const n=sb.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(sb.isFunction(t))return t.call(this,e,n);if(sb.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Db(e)){const n=sb.findKey(this,e);return!(!n||void 0===this[n]||t&&!Fb(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Db(e)){const o=sb.findKey(n,e);!o||t&&!Fb(0,n[o],o,t)||(delete n[o],r=!0)}}return sb.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Fb(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return sb.forEach(this,(r,o)=>{const a=sb.findKey(n,o);if(a)return t[a]=Ab(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Ab(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return sb.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&sb.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Tb]=this[Tb]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Db(e);t[r]||(!function(e,t){const n=sb.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return sb.isArray(e)?e.forEach(r):r(e),this}};function Ib(e,t){const n=this||Ob,r=t||n,o=Lb.from(r.headers);let a=r.data;return sb.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function zb(e){return!(!e||!e.__CANCEL__)}function $b(e,t,n){lb.call(this,null==e?"canceled":e,lb.ERR_CANCELED,t,n),this.name="CanceledError"}function Hb(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new lb("Request failed with status code "+n.status,[lb.ERR_BAD_REQUEST,lb.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Lb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),sb.reduceDescriptors(Lb.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),sb.freezeMethods(Lb),sb.inherits($b,lb,{__CANCEL__:!0});const Vb=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[i];o||(o=l),n[a]=s,r[a]=l;let c=i,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o<t)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,l=o(s);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},Bb=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ub=e=>(...t)=>sb.asap(()=>e(...t));var Wb=jb.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,jb.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(jb.origin),jb.navigator&&/(msie|trident)/i.test(jb.navigator.userAgent)):()=>!0,Yb=jb.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];sb.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),sb.isString(r)&&i.push("path="+r),sb.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function qb(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Gb=e=>e instanceof Lb?{...e}:e;function Kb(e,t){t=t||{};const n={};function r(e,t,n,r){return sb.isPlainObject(e)&&sb.isPlainObject(t)?sb.merge.call({caseless:r},e,t):sb.isPlainObject(t)?sb.merge({},t):sb.isArray(t)?t.slice():t}function o(e,t,n,o){return sb.isUndefined(t)?sb.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!sb.isUndefined(t))return r(void 0,t)}function i(e,t){return sb.isUndefined(t)?sb.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(Gb(e),Gb(t),0,!0)};return sb.forEach(Object.keys({...e,...t}),function(r){const a=l[r]||o,i=a(e[r],t[r],r);sb.isUndefined(i)&&a!==s||(n[r]=i)}),n}var Qb=e=>{const t=Kb({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:l}=t;if(t.headers=s=Lb.from(s),t.url=wb(qb(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),sb.isFormData(r))if(jb.hasStandardBrowserEnv||jb.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(jb.hasStandardBrowserEnv&&(o&&sb.isFunction(o)&&(o=o(t)),o||!1!==o&&Wb(t.url))){const e=a&&i&&Yb.read(i);e&&s.set(a,e)}return t};var Zb="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Qb(e);let o=r.data;const a=Lb.from(r.headers).normalize();let i,s,l,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Lb.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Hb(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new lb("Request aborted",lb.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new lb("Network Error",lb.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Cb;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new lb(t,o.clarifyTimeoutError?lb.ETIMEDOUT:lb.ECONNABORTED,e,m)),m=null},void 0===o&&a.setContentType(null),"setRequestHeader"in m&&sb.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),sb.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,c]=Vb(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,u]=Vb(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new $b(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===jb.protocols.indexOf(y)?n(new lb("Unsupported protocol "+y+":",lb.ERR_BAD_REQUEST,e)):m.send(o||null)})};const Xb=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof lb?t:new $b(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new lb(`timeout ${t} of ms exceeded`,lb.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>sb.asap(i),s}},Jb=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},ew=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},tw=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of ew(e))yield*Jb(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},nw="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,rw=nw&&"function"==typeof ReadableStream,ow=nw&&("function"==typeof TextEncoder?(aw=new TextEncoder,e=>aw.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var aw;const iw=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},sw=rw&&iw(()=>{let e=!1;const t=new Request(jb.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),lw=rw&&iw(()=>sb.isReadableStream(new Response("").body)),uw={stream:lw&&(e=>e.body)};var cw;nw&&(cw=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!uw[e]&&(uw[e]=sb.isFunction(cw[e])?t=>t[e]():(t,n)=>{throw new lb(`Response type '${e}' is not supported`,lb.ERR_NOT_SUPPORT,n)})}));const dw=async(e,t)=>{const n=sb.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(sb.isBlob(e))return e.size;if(sb.isSpecCompliantForm(e)){const t=new Request(jb.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return sb.isArrayBufferView(e)||sb.isArrayBuffer(e)?e.byteLength:(sb.isURLSearchParams(e)&&(e+=""),sb.isString(e)?(await ow(e)).byteLength:void 0)})(t):n};var fw=nw&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:f}=Qb(e);u=u?(u+"").toLowerCase():"text";let p,h=Xb([o,a&&a.toAbortSignal()],i);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&sw&&"get"!==n&&"head"!==n&&0!==(g=await dw(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(sb.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=Bb(g,Vb(Ub(l)));r=tw(n.body,65536,e,t)}}sb.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let a=await fetch(p,f);const i=lw&&("stream"===u||"response"===u);if(lw&&(s||i&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=a[t]});const t=sb.toFiniteNumber(a.headers.get("content-length")),[n,r]=s&&Bb(t,Vb(Ub(s),!0))||[];a=new Response(tw(a.body,65536,n,()=>{r&&r(),m&&m()}),e)}u=u||"text";let y=await uw[sb.findKey(uw,u)||"text"](a,e);return!i&&m&&m(),await new Promise((t,n)=>{Hb(t,n,{data:y,headers:Lb.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:p})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new lb("Network Error",lb.ERR_NETWORK,e,p),{cause:t.cause||t});throw lb.from(t,t&&t.code,e,p)}});const pw={http:null,xhr:Zb,fetch:fw};sb.forEach(pw,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const hw=e=>`- ${e}`,mw=e=>sb.isFunction(e)||null===e||!1===e;var gw=e=>{e=sb.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){let t;if(n=e[a],r=n,!mw(n)&&(r=pw[(t=String(n)).toLowerCase()],void 0===r))throw new lb(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+a]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new lb("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(hw).join("\n"):" "+hw(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function yw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $b(null,e)}function vw(e){yw(e),e.headers=Lb.from(e.headers),e.data=Ib.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return gw(e.adapter||Ob.adapter)(e).then(function(t){return yw(e),t.data=Ib.call(e,e.transformResponse,t),t.headers=Lb.from(t.headers),t},function(t){return zb(t)||(yw(e),t&&t.response&&(t.response.data=Ib.call(e,e.transformResponse,t.response),t.response.headers=Lb.from(t.response.headers))),Promise.reject(t)})}const bw="1.11.0",ww={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ww[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const xw={};ww.transitional=function(e,t,n){function r(e,t){return"[Axios v"+bw+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new lb(r(o," has been removed"+(t?" in "+t:"")),lb.ERR_DEPRECATED);return t&&!xw[o]&&(xw[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},ww.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Cw={assertOptions:function(e,t,n){if("object"!=typeof e)throw new lb("options must be an object",lb.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new lb("option "+a+" must be "+n,lb.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new lb("Unknown option "+a,lb.ERR_BAD_OPTION)}},validators:ww};const Sw=Cw.validators;let kw=class{constructor(e){this.defaults=e||{},this.interceptors={request:new xb,response:new xb}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Kb(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Cw.assertOptions(n,{silentJSONParsing:Sw.transitional(Sw.boolean),forcedJSONParsing:Sw.transitional(Sw.boolean),clarifyTimeoutError:Sw.transitional(Sw.boolean)},!1),null!=r&&(sb.isFunction(r)?t.paramsSerializer={serialize:r}:Cw.assertOptions(r,{encode:Sw.function,serialize:Sw.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Cw.assertOptions(t,{baseUrl:Sw.spelling("baseURL"),withXsrfToken:Sw.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&sb.merge(o.common,o[t.method]);o&&sb.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Lb.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!s){const e=[vw.bind(this),void 0];for(e.unshift(...i),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=i.length;let f=t;for(d=0;d<c;){const e=i[d++],t=i[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=vw.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return wb(qb((e=Kb(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};sb.forEach(["delete","get","head","options"],function(e){kw.prototype[e]=function(t,n){return this.request(Kb(n||{},{method:e,url:t,data:(n||{}).data}))}}),sb.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Kb(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}kw.prototype[e]=t(),kw.prototype[e+"Form"]=t(!0)});const _w={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_w).forEach(([e,t])=>{_w[t]=e});const Ew=function e(t){const n=new kw(t),r=bv(kw.prototype.request,n);return sb.extend(r,kw.prototype,n,{allOwnKeys:!0}),sb.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Kb(t,n))},r}(Ob);Ew.Axios=kw,Ew.CanceledError=$b,Ew.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new $b(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;const n=new e(function(e){t=e});return{token:n,cancel:t}}},Ew.isCancel=zb,Ew.VERSION=bw,Ew.toFormData=mb,Ew.AxiosError=lb,Ew.Cancel=Ew.CanceledError,Ew.all=function(e){return Promise.all(e)},Ew.spread=function(e){return function(t){return e.apply(null,t)}},Ew.isAxiosError=function(e){return sb.isObject(e)&&!0===e.isAxiosError},Ew.mergeConfig=Kb,Ew.AxiosHeaders=Lb,Ew.formToJSON=e=>Pb(sb.isHTMLForm(e)?new FormData(e):e),Ew.getAdapter=gw,Ew.HttpStatusCode=_w,Ew.default=Ew;const{Axios:Rw,AxiosError:Nw,CanceledError:jw,isCancel:Pw,CancelToken:Ow,VERSION:Mw,all:Tw,Cancel:Dw,isAxiosError:Aw,spread:Fw,toFormData:Lw,AxiosHeaders:Iw,HttpStatusCode:zw,formToJSON:$w,getAdapter:Hw,mergeConfig:Vw}=Ew,Bw=e=>{e||console.warn("⚠️ No API key provided to createApiClient");const t=Ew.create({baseURL:"https://biz.api.simpoocodes.com/api/gateway/v1",headers:{"Content-Type":"application/json","SIMPOO-API-KEY":e}});return t.interceptors.request.use(t=>(e&&t.headers&&(t.headers["SIMPOO-API-KEY"]=e),t),e=>Promise.reject(e)),t.interceptors.response.use(e=>e,e=>(e.response?console.error("API Error:",e.response.status,e.response.data):console.error("Network or Axios Error:",e.message),Promise.reject(e))),t},Uw=(e,t,n={})=>{const{apiKey:r}=Rn(),o=Bw(r||"");return function(e){return _n(e,pn)}({queryKey:e,queryFn:()=>(async e=>{try{const{data:t}=await o.get(e);return t}catch(e){Yw(e)}})(t),...n})},Ww=(e={enableToast:!0},t,n)=>{const{enableToast:r,...o}=e,{apiKey:a}=Rn(),i=Bw(a||"");return function(e){const t=wn(),[n]=T.useState(()=>new vn(t,e));T.useEffect(()=>{n.setOptions(e)},[n,e]);const r=T.useSyncExternalStore(T.useCallback(e=>n.subscribe(en.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=T.useCallback((e,t)=>{n.mutate(e,t).catch(kt)},[n]);if(r.error&&Ut(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}({mutationFn:async({url:e,payload:t})=>{const{data:n}=await i.post(e,t);return n},onSuccess(e,t,n){r&&vv.success(e.message)},onError(e,t,n){console.log(e),Yw(e)},...o})},Yw=e=>{e?.response?(console.log("response data:",e.response.data),console.log("Status Code:",e.response.status),console.log("Status Text:",e.response.statusText),500===e.response.status?vv.error("Something went wrong",{position:"top-right"}):e.response.data&&e.response.data.message&&vv.error(`${e.response?.data?.message}`,{position:"top-right"})):(e.request,console.log(e?.message),vv.error(`${e?.message}`,{position:"top-right"}))};function qw(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Gw,Kw={exports:{}};var Qw=(Gw||(Gw=1,function(e){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function o(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Gn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function y(e){var t=null,r=!1,o=e._d&&!isNaN(e._d.getTime());return o&&(t=g(e),r=n.call(t.parsedDateParts,function(e){return null!=e}),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?o:(e._isValid=o,e._isValid)}function v(e){var t=h(NaN);return null!=e?p(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function x(e,t){var n,r,o,a=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=g(t)),u(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)u(o=t[r=b[n]])||(e[r]=o);return e}function C(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function S(e){return e instanceof C||null!=e&&null!=e._isAMomentObject}function k(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var n=!0;return p(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var o,a,i,l=[],u=arguments.length;for(a=0;a<u;a++){if(o="","object"==typeof arguments[a]){for(i in o+="\n["+a+"] ",arguments[0])s(arguments[0],i)&&(o+=i+": "+arguments[0][i]+", ");o=o.slice(0,-2)}else o=arguments[a];l.push(o)}k(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var E,R={};function N(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),R[e]||(k(t),R[e]=!0)}function j(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,n;for(n in e)s(e,n)&&(j(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function O(e,t){var n,r=p({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(r[n]=p({},r[n]));return r}function M(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var T={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function D(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return j(r)?r.call(t,n):r}function A(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},z={};function $(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(z[e]=o),t&&(z[t[0]]=function(){return A(o.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,r=e.match(F);for(t=0,n=r.length;t<n;t++)z[r[t]]?r[t]=z[r[t]]:r[t]=H(r[t]);return function(t){var o,a="";for(o=0;o<n;o++)a+=j(r[o])?r[o].call(t,e):r[o];return a}}function B(e,t){return e.isValid()?(t=U(t,e.localeData()),I[t]=I[t]||V(t),I[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(F).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var q="Invalid date";function G(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function Z(e){return this._ordinal.replace("%d",e)}var X={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,n,r){var o=this._relativeTime[n];return j(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return j(n)?n(t):n.replace(/%s/i,t)}var te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function re(e){var t,n,r={};for(n in e)s(e,n)&&(t=ne(n))&&(r[t]=e[n]);return r}var oe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ae(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var ie,se=/\d/,le=/\d\d/,ue=/\d{3}/,ce=/\d{4}/,de=/[+-]?\d{6}/,fe=/\d\d?/,pe=/\d\d\d\d?/,he=/\d\d\d\d\d\d?/,me=/\d{1,3}/,ge=/\d{1,4}/,ye=/[+-]?\d{1,6}/,ve=/\d+/,be=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,xe=/Z|[+-]\d\d(?::?\d\d)?/gi,Ce=/[+-]?\d+(\.\d{1,3})?/,Se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ke=/^[1-9]\d?/,_e=/^([1-9]\d|\d)/;function Ee(e,t,n){ie[e]=j(t)?t:function(e,r){return e&&n?n:t}}function Re(e,t){return s(ie,e)?ie[e](t._strict,t._locale):new RegExp(Ne(e))}function Ne(e){return je(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}function je(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Oe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Pe(t)),n}ie={};var Me={};function Te(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),c(t)&&(o=function(e,n){n[t]=Oe(e)}),r=e.length,n=0;n<r;n++)Me[e[n]]=o}function De(e,t){Te(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function Ae(e,t,n){null!=t&&s(Me,e)&&Me[e](t,n._a,n,e)}function Fe(e){return e%4==0&&e%100!=0||e%400==0}var Le=0,Ie=1,ze=2,$e=3,He=4,Ve=5,Be=6,Ue=7,We=8;function Ye(e){return Fe(e)?366:365}$("Y",0,0,function(){var e=this.year();return e<=9999?A(e,4):"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),Ee("Y",be),Ee("YY",fe,le),Ee("YYYY",ge,ce),Ee("YYYYY",ye,de),Ee("YYYYYY",ye,de),Te(["YYYYY","YYYYYY"],Le),Te("YYYY",function(e,t){t[Le]=2===e.length?r.parseTwoDigitYear(e):Oe(e)}),Te("YY",function(e,t){t[Le]=r.parseTwoDigitYear(e)}),Te("Y",function(e,t){t[Le]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return Oe(e)+(Oe(e)>68?1900:2e3)};var qe,Ge=Qe("FullYear",!0);function Ke(){return Fe(this.year())}function Qe(e,t){return function(n){return null!=n?(Xe(this,e,n),r.updateOffset(this,t),this):Ze(this,e)}}function Ze(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Xe(e,t,n){var r,o,a,i,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),s=29!==(s=e.date())||1!==i||Fe(a)?s:28,o?r.setUTCFullYear(a,i,s):r.setFullYear(a,i,s)}}function Je(e){return j(this[e=ne(e)])?this[e]():this}function et(e,t){if("object"==typeof e){var n,r=ae(e=re(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(j(this[e=ne(e)]))return this[e](t);return this}function tt(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=tt(t,12);return e+=(t-n)/12,1===n?Fe(e)?29:28:31-n%7%2}qe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ee("M",fe,ke),Ee("MM",fe,le),Ee("MMM",function(e,t){return t.monthsShortRegex(e)}),Ee("MMMM",function(e,t){return t.monthsRegex(e)}),Te(["M","MM"],function(e,t){t[Ie]=Oe(e)-1}),Te(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[Ie]=o:g(n).invalidMonth=e});var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Se,st=Se;function lt(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ut(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=qe.call(this._shortMonthsParse,i))?o:null:-1!==(o=qe.call(this._longMonthsParse,i))?o:null:"MMM"===t?-1!==(o=qe.call(this._shortMonthsParse,i))||-1!==(o=qe.call(this._longMonthsParse,i))?o:null:-1!==(o=qe.call(this._longMonthsParse,i))||-1!==(o=qe.call(this._shortMonthsParse,i))?o:null}function dt(e,t,n){var r,o,a;if(this._monthsParseExact)return ct.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ft(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Oe(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,nt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function pt(e){return null!=e?(ft(this,e),r.updateOffset(this,!0),this):Ze(this,"Month")}function ht(){return nt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||yt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||yt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function yt(){function e(e,t){return t.length-e.length}var t,n,r,o,a=[],i=[],s=[];for(t=0;t<12;t++)n=h([2e3,t]),r=je(this.monthsShort(n,"")),o=je(this.months(n,"")),a.push(r),i.push(o),s.push(o),s.push(r);a.sort(e),i.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function vt(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,o){var a,i,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,o);return s<=0?i=Ye(a=e-1)+s:s>Ye(e)?(a=e+1,i=s-Ye(e)):(a=e,i=s),{year:a,dayOfYear:i}}function Ct(e,t,n){var r,o,a=wt(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+St(o=e.year()-1,t,n):i>St(e.year(),t,n)?(r=i-St(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function St(e,t,n){var r=wt(e,t,n),o=wt(e+1,t,n);return(Ye(e)-r+o)/7}function kt(e){return Ct(e,this._week.dow,this._week.doy).week}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),Ee("w",fe,ke),Ee("ww",fe,le),Ee("W",fe,ke),Ee("WW",fe,le),De(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Oe(e)});var _t={dow:0,doy:6};function Et(){return this._week.dow}function Rt(){return this._week.doy}function Nt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function jt(e){var t=Ct(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ot(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Mt(e,t){return e.slice(t,7).concat(e.slice(0,t))}$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),Ee("d",fe),Ee("e",fe),Ee("E",fe),Ee("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ee("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ee("dddd",function(e,t){return t.weekdaysRegex(e)}),De(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:g(n).invalidWeekday=e}),De(["d","e","E"],function(e,t,n,r){t[r]=Oe(e)});var Tt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),At="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ft=Se,Lt=Se,It=Se;function zt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Mt(n,this._week.dow):e?n[e.day()]:n}function $t(e){return!0===e?Mt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?Mt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vt(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=qe.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=qe.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=qe.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=qe.call(this._weekdaysParse,i))||-1!==(o=qe.call(this._shortWeekdaysParse,i))||-1!==(o=qe.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=qe.call(this._shortWeekdaysParse,i))||-1!==(o=qe.call(this._weekdaysParse,i))||-1!==(o=qe.call(this._minWeekdaysParse,i))?o:null:-1!==(o=qe.call(this._minWeekdaysParse,i))||-1!==(o=qe.call(this._weekdaysParse,i))||-1!==(o=qe.call(this._shortWeekdaysParse,i))?o:null}function Bt(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Vt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=Ze(this,"Day");return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Yt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ot(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ft),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=It),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=je(this.weekdaysMin(n,"")),o=je(this.weekdaysShort(n,"")),a=je(this.weekdays(n,"")),i.push(r),s.push(o),l.push(a),u.push(r),u.push(o),u.push(a);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function Jt(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Zt),$("k",["kk",2],0,Xt),$("hmm",0,0,function(){return""+Zt.apply(this)+A(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Zt.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),Ee("a",en),Ee("A",en),Ee("H",fe,_e),Ee("h",fe,ke),Ee("k",fe,ke),Ee("HH",fe,le),Ee("hh",fe,le),Ee("kk",fe,le),Ee("hmm",pe),Ee("hmmss",he),Ee("Hmm",pe),Ee("Hmmss",he),Te(["H","HH"],$e),Te(["k","kk"],function(e,t,n){var r=Oe(e);t[$e]=24===r?0:r}),Te(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Te(["h","hh"],function(e,t,n){t[$e]=Oe(e),g(n).bigHour=!0}),Te("hmm",function(e,t,n){var r=e.length-2;t[$e]=Oe(e.substr(0,r)),t[He]=Oe(e.substr(r)),g(n).bigHour=!0}),Te("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[$e]=Oe(e.substr(0,r)),t[He]=Oe(e.substr(r,2)),t[Ve]=Oe(e.substr(o)),g(n).bigHour=!0}),Te("Hmm",function(e,t,n){var r=e.length-2;t[$e]=Oe(e.substr(0,r)),t[He]=Oe(e.substr(r))}),Te("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[$e]=Oe(e.substr(0,r)),t[He]=Oe(e.substr(r,2)),t[Ve]=Oe(e.substr(o))});var nn=/[ap]\.?m?\.?/i,rn=Qe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:T,longDateFormat:W,invalidDate:q,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:X,months:rt,monthsShort:ot,week:_t,weekdays:Tt,weekdaysMin:At,weekdaysShort:Dt,meridiemParse:nn},ln={},un={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,r,o,a=0;a<e.length;){for(t=(o=dn(e[a]).split("-")).length,n=(n=dn(e[a+1]))?n.split("-"):null;t>0;){if(r=hn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(o,n)>=t-1)break;t--}a++}return an}function pn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function hn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=an._abbr,qw("./locale/"+t),mn(n)}catch(e){ln[t]=null}return ln[t]}function mn(e,t){var n;return e&&((n=u(t)?vn(e):gn(e,t))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])N("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new M(O(r,t)),un[e]&&un[e].forEach(function(e){gn(e.name,e.config)}),mn(e),ln[e]}return delete ln[e],null}function yn(e,t){if(null!=t){var n,r,o=sn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(O(ln[e]._config,t)):(null!=(r=hn(e))&&(o=r._config),t=O(o,t),null==r&&(t.abbr=e),(n=new M(t)).parentLocale=ln[e],ln[e]=n),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!a(e)){if(t=hn(e))return t;e=[e]}return fn(e)}function bn(){return E(ln)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Ie]<0||n[Ie]>11?Ie:n[ze]<1||n[ze]>nt(n[Le],n[Ie])?ze:n[$e]<0||n[$e]>24||24===n[$e]&&(0!==n[He]||0!==n[Ve]||0!==n[Be])?$e:n[He]<0||n[He]>59?He:n[Ve]<0||n[Ve]>59?Ve:n[Be]<0||n[Be]>999?Be:-1,g(e)._overflowDayOfYear&&(t<Le||t>ze)&&(t=ze),g(e)._overflowWeeks&&-1===t&&(t=Ue),g(e)._overflowWeekday&&-1===t&&(t=We),g(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,kn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_n=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,Rn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Nn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function jn(e){var t,n,r,o,a,i,s=e._i,l=xn.exec(s)||Cn.exec(s),u=kn.length,c=_n.length;if(l){for(g(e).iso=!0,t=0,n=u;t<n;t++)if(kn[t][1].exec(l[1])){o=kn[t][0],r=!1!==kn[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(_n[t][1].exec(l[3])){a=(l[2]||" ")+_n[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Sn.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=o+(a||"")+(i||""),Hn(e)}else e._isValid=!1}function Pn(e,t,n,r,o,a){var i=[On(e),ot.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return a&&i.push(parseInt(a,10)),i}function On(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Mn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Tn(e,t,n){return!e||Dt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Dn(e,t,n){if(e)return Nn[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function An(e){var t,n=Rn.exec(Mn(e._i));if(n){if(t=Pn(n[4],n[3],n[2],n[5],n[6],n[7]),!Tn(n[1],t,e))return;e._a=t,e._tzm=Dn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Fn(e){var t=En.exec(e._i);null===t?(jn(e),!1===e._isValid&&(delete e._isValid,An(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Ln(e,t,n){return null!=e?e:null!=t?t:n}function In(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,o,a,i=[];if(!e._d){for(r=In(e),e._w&&null==e._a[ze]&&null==e._a[Ie]&&$n(e),null!=e._dayOfYear&&(a=Ln(e._a[Le],r[Le]),(e._dayOfYear>Ye(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=bt(a,0,e._dayOfYear),e._a[Ie]=n.getUTCMonth(),e._a[ze]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[$e]&&0===e._a[He]&&0===e._a[Ve]&&0===e._a[Be]&&(e._nextDay=!0,e._a[$e]=0),e._d=(e._useUTC?bt:vt).apply(null,i),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$e]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(g(e).weekdayMismatch=!0)}}function $n(e){var t,n,r,o,a,i,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,i=4,n=Ln(t.GG,e._a[Le],Ct(Kn(),1,4).year),r=Ln(t.W,1),((o=Ln(t.E,1))<1||o>7)&&(l=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=Ct(Kn(),a,i),n=Ln(t.gg,e._a[Le],u.year),r=Ln(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a),r<1||r>St(n,a,i)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=xt(n,r,o,a,i),e._a[Le]=s.year,e._dayOfYear=s.dayOfYear)}function Hn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,o,a,i,s,l,u=""+e._i,c=u.length,d=0;for(l=(o=U(e._f,e._locale).match(F)||[]).length,t=0;t<l;t++)a=o[t],(n=(u.match(Re(a,e))||[])[0])&&((i=u.substr(0,u.indexOf(n))).length>0&&g(e).unusedInput.push(i),u=u.slice(u.indexOf(n)+n.length),d+=n.length),z[a]?(n?g(e).empty=!1:g(e).unusedTokens.push(a),Ae(a,n,e)):e._strict&&!n&&g(e).unusedTokens.push(a);g(e).charsLeftOver=c-d,u.length>0&&g(e).unusedInput.push(u),e._a[$e]<=12&&!0===g(e).bigHour&&e._a[$e]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[$e]=Vn(e._locale,e._a[$e],e._meridiem),null!==(s=g(e).era)&&(e._a[Le]=e._locale.erasConvertYear(s,e._a[Le])),zn(e),wn(e)}else An(e);else jn(e)}function Vn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Bn(e){var t,n,r,o,a,i,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<l;o++)a=0,i=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Hn(t),y(t)&&(i=!0),a+=g(t).charsLeftOver,a+=10*g(t).unusedTokens.length,g(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||i)&&(r=a,n=t,i&&(s=!0));p(e,n||t)}function Un(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),zn(e)}}function Wn(e){var t=new C(wn(Yn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Yn(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new C(wn(t)):(d(t)?e._d=t:a(n)?Bn(e):n?Hn(e):qn(e),y(e)||(e._d=null),e))}function qn(e){var t=e._i;u(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Fn(e):a(t)?(e._a=f(t.slice(0),function(e){return parseInt(e,10)}),zn(e)):i(t)?Un(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Gn(e,t,n,r,o){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=r,Wn(s)}function Kn(e,t,n,r){return Gn(e,t,n,r,!1)}r.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Qn=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Zn=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Xn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Kn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Jn(){return Xn("isBefore",[].slice.call(arguments,0))}function er(){return Xn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,o=nr.length;for(t in e)if(s(e,t)&&(-1===qe.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==Oe(e[nr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ar(){return Nr(NaN)}function ir(e){var t=re(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+i+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function sr(e){return e instanceof ir}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ur(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<o;r++)Oe(e[r])!==Oe(t[r])&&i++;return i+a}function cr(e,t){$(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+A(~~(e/60),2)+t+A(~~e%60,2)})}cr("Z",":"),cr("ZZ",""),Ee("Z",xe),Ee("ZZ",xe),Te(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=fr(xe,e)});var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(dr)||["-",0,0])[1]+Oe(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(S(e)||d(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Kn(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var o,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(xe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=hr(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),a!==e&&(!t||this._changeInProgress?Tr(this,Nr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:hr(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function xr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Cr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Yn(t))._a?(e=t._isUTC?h(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function kr(){return!!this.isValid()&&this._isUTC}function _r(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Nr(e,t){var n,r,o,a=e,i=null;return sr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Er.exec(e))?(n="-"===i[1]?-1:1,a={y:0,d:Oe(i[ze])*n,h:Oe(i[$e])*n,m:Oe(i[He])*n,s:Oe(i[Ve])*n,ms:Oe(lr(1e3*i[Be]))*n}):(i=Rr.exec(e))?(n="-"===i[1]?-1:1,a={y:jr(i[2],n),M:jr(i[3],n),w:jr(i[4],n),d:jr(i[5],n),h:jr(i[6],n),m:jr(i[7],n),s:jr(i[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(o=Or(Kn(a.from),Kn(a.to)),(a={}).ms=o.milliseconds,a.M=o.months),r=new ir(a),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function jr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Pr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Or(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Pr(e,t):((n=Pr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Mr(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(N(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Tr(this,Nr(n,r),e),this}}function Tr(e,t,n,o){var a=t._milliseconds,i=lr(t._days),s=lr(t._months);e.isValid()&&(o=null==o||o,s&&ft(e,Ze(e,"Month")+s*n),i&&Xe(e,"Date",Ze(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),o&&r.updateOffset(e,i||s))}Nr.fn=ir.prototype,Nr.invalid=ar;var Dr=Mr(1,"add"),Ar=Mr(-1,"subtract");function Fr(e){return"string"==typeof e||e instanceof String}function Lr(e){return S(e)||d(e)||Fr(e)||c(e)||zr(e)||Ir(e)||null==e}function Ir(e){var t,n,r=i(e)&&!l(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=a.length;for(t=0;t<u;t+=1)n=a[t],o=o||s(e,n);return r&&o}function zr(e){var t=a(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&Fr(e)}).length),t&&n}function $r(e){var t,n,r=i(e)&&!l(e),o=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],o=o||s(e,n);return r&&o}function Hr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Vr(e,t){1===arguments.length&&(arguments[0]?Lr(arguments[0])?(e=arguments[0],t=void 0):$r(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Kn(),o=pr(n,this).startOf("day"),a=r.calendarFormat(this,o)||"sameElse",i=t&&(j(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Kn(n)))}function Br(){return new C(this)}function Ur(e,t){var n=S(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=S(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Yr(e,t,n,r){var o=S(e)?e:Kn(e),a=S(t)?t:Kn(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function qr(e,t){var n,r=S(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Gr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=ne(t)){case"year":a=Zr(this,r)/12;break;case"month":a=Zr(this,r);break;case"quarter":a=Zr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:Pe(a)}function Zr(e,t){if(e.date()<t.date())return-Zr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Xr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):j(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",a="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function to(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)}function no(e,t){return this.isValid()&&(S(e)&&e.isValid()||Kn(e).isValid())?Nr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ro(e){return this.from(Kn(),e)}function oo(e,t){return this.isValid()&&(S(e)&&e.isValid()||Kn(e).isValid())?Nr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ao(e){return this.to(Kn(),e)}function io(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var so=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function lo(){return this._locale}var uo=1e3,co=60*uo,fo=60*co,po=3506328*fo;function ho(e,t){return(e%t+t)%t}function mo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-po:new Date(e,t,n).valueOf()}function go(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-po:Date.UTC(e,t,n)}function yo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ho(t+(this._isUTC?0:this.utcOffset()*co),fo);break;case"minute":t=this._d.valueOf(),t-=ho(t,co);break;case"second":t=this._d.valueOf(),t-=ho(t,uo)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fo-ho(t+(this._isUTC?0:this.utcOffset()*co),fo)-1;break;case"minute":t=this._d.valueOf(),t+=co-ho(t,co)-1;break;case"second":t=this._d.valueOf(),t+=uo-ho(t,uo)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bo(){return this._d.valueOf()-6e4*(this._offset||0)}function wo(){return Math.floor(this.valueOf()/1e3)}function xo(){return new Date(this.valueOf())}function Co(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function So(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ko(){return this.isValid()?this.toISOString():null}function _o(){return y(this)}function Eo(){return p({},g(this))}function Ro(){return g(this).overflow}function No(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function jo(e,t){var n,o,a,i=this._eras||vn("en")._eras;for(n=0,o=i.length;n<o;++n)switch("string"==typeof i[n].since&&(a=r(i[n].since).startOf("day"),i[n].since=a.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":a=r(i[n].until).startOf("day").valueOf(),i[n].until=a.valueOf()}return i}function Po(e,t,n){var r,o,a,i,s,l=this.eras();for(e=e.toUpperCase(),r=0,o=l.length;r<o;++r)if(a=l[r].name.toUpperCase(),i=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[r];break;case"NNNN":if(a===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([a,i,s].indexOf(e)>=0)return l[r]}function Oo(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Mo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function To(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Do(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ao(){var e,t,n,o,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,o=this.clone().startOf("day").valueOf(),a[e].since<=o&&o<=a[e].until||a[e].until<=o&&o<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Fo(e){return s(this,"_erasNameRegex")||Bo.call(this),e?this._erasNameRegex:this._erasRegex}function Lo(e){return s(this,"_erasAbbrRegex")||Bo.call(this),e?this._erasAbbrRegex:this._erasRegex}function Io(e){return s(this,"_erasNarrowRegex")||Bo.call(this),e?this._erasNarrowRegex:this._erasRegex}function zo(e,t){return t.erasAbbrRegex(e)}function $o(e,t){return t.erasNameRegex(e)}function Ho(e,t){return t.erasNarrowRegex(e)}function Vo(e,t){return t._eraYearOrdinalRegex||ve}function Bo(){var e,t,n,r,o,a=[],i=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)n=je(u[e].name),r=je(u[e].abbr),o=je(u[e].narrow),i.push(n),a.push(r),s.push(o),l.push(n),l.push(r),l.push(o);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Uo(e,t){$(0,[e,e.length],0,t)}function Wo(e){return Zo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Yo(e){return Zo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qo(){return St(this.year(),1,4)}function Go(){return St(this.isoWeekYear(),1,4)}function Ko(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Qo(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Zo(e,t,n,r,o){var a;return null==e?Ct(this,r,o).year:(t>(a=St(e,r,o))&&(t=a),Xo.call(this,e,t,n,r,o))}function Xo(e,t,n,r,o){var a=xt(e,t,n,r,o),i=bt(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Jo(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),Ee("N",zo),Ee("NN",zo),Ee("NNN",zo),Ee("NNNN",$o),Ee("NNNNN",Ho),Te(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?g(n).era=o:g(n).invalidEra=e}),Ee("y",ve),Ee("yy",ve),Ee("yyy",ve),Ee("yyyy",ve),Ee("yo",Vo),Te(["y","yy","yyy","yyyy"],Le),Te(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Le]=n._locale.eraYearOrdinalParse(e,o):t[Le]=parseInt(e,10)}),$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Uo("gggg","weekYear"),Uo("ggggg","weekYear"),Uo("GGGG","isoWeekYear"),Uo("GGGGG","isoWeekYear"),Ee("G",be),Ee("g",be),Ee("GG",fe,le),Ee("gg",fe,le),Ee("GGGG",ge,ce),Ee("gggg",ge,ce),Ee("GGGGG",ye,de),Ee("ggggg",ye,de),De(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Oe(e)}),De(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),Ee("Q",se),Te("Q",function(e,t){t[Ie]=3*(Oe(e)-1)}),$("D",["DD",2],"Do","date"),Ee("D",fe,ke),Ee("DD",fe,le),Ee("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Te(["D","DD"],ze),Te("Do",function(e,t){t[ze]=Oe(e.match(fe)[0])});var ea=Qe("Date",!0);function ta(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}$("DDD",["DDDD",3],"DDDo","dayOfYear"),Ee("DDD",me),Ee("DDDD",ue),Te(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Oe(e)}),$("m",["mm",2],0,"minute"),Ee("m",fe,_e),Ee("mm",fe,le),Te(["m","mm"],He);var na=Qe("Minutes",!1);$("s",["ss",2],0,"second"),Ee("s",fe,_e),Ee("ss",fe,le),Te(["s","ss"],Ve);var ra,oa,aa=Qe("Seconds",!1);for($("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ee("S",me,se),Ee("SS",me,le),Ee("SSS",me,ue),ra="SSSS";ra.length<=9;ra+="S")Ee(ra,ve);function ia(e,t){t[Be]=Oe(1e3*("0."+e))}for(ra="S";ra.length<=9;ra+="S")Te(ra,ia);function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}oa=Qe("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var ua=C.prototype;function ca(e){return Kn(1e3*e)}function da(){return Kn.apply(null,arguments).parseZone()}function fa(e){return e}ua.add=Dr,ua.calendar=Vr,ua.clone=Br,ua.diff=Qr,ua.endOf=vo,ua.format=to,ua.from=no,ua.fromNow=ro,ua.to=oo,ua.toNow=ao,ua.get=Je,ua.invalidAt=Ro,ua.isAfter=Ur,ua.isBefore=Wr,ua.isBetween=Yr,ua.isSame=qr,ua.isSameOrAfter=Gr,ua.isSameOrBefore=Kr,ua.isValid=_o,ua.lang=so,ua.locale=io,ua.localeData=lo,ua.max=Zn,ua.min=Qn,ua.parsingFlags=Eo,ua.set=et,ua.startOf=yo,ua.subtract=Ar,ua.toArray=Co,ua.toObject=So,ua.toDate=xo,ua.toISOString=Jr,ua.inspect=eo,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=ko,ua.toString=Xr,ua.unix=wo,ua.valueOf=bo,ua.creationData=No,ua.eraName=Mo,ua.eraNarrow=To,ua.eraAbbr=Do,ua.eraYear=Ao,ua.year=Ge,ua.isLeapYear=Ke,ua.weekYear=Wo,ua.isoWeekYear=Yo,ua.quarter=ua.quarters=Jo,ua.month=pt,ua.daysInMonth=ht,ua.week=ua.weeks=Nt,ua.isoWeek=ua.isoWeeks=jt,ua.weeksInYear=Ko,ua.weeksInWeekYear=Qo,ua.isoWeeksInYear=qo,ua.isoWeeksInISOWeekYear=Go,ua.date=ea,ua.day=ua.days=Ut,ua.weekday=Wt,ua.isoWeekday=Yt,ua.dayOfYear=ta,ua.hour=ua.hours=rn,ua.minute=ua.minutes=na,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=oa,ua.utcOffset=mr,ua.utc=yr,ua.local=vr,ua.parseZone=br,ua.hasAlignedHourOffset=wr,ua.isDST=xr,ua.isLocal=Sr,ua.isUtcOffset=kr,ua.isUtc=_r,ua.isUTC=_r,ua.zoneAbbr=sa,ua.zoneName=la,ua.dates=_("dates accessor is deprecated. Use date instead.",ea),ua.months=_("months accessor is deprecated. Use month instead",pt),ua.years=_("years accessor is deprecated. Use year instead",Ge),ua.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),ua.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Cr);var pa=M.prototype;function ha(e,t,n,r){var o=vn(),a=h().set(r,t);return o[n](a,e)}function ma(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return ha(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=ha(e,r,n,"month");return o}function ga(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,a=vn(),i=e?a._week.dow:0,s=[];if(null!=n)return ha(t,(n+i)%7,r,"day");for(o=0;o<7;o++)s[o]=ha(t,(o+i)%7,r,"day");return s}function ya(e,t){return ma(e,t,"months")}function va(e,t){return ma(e,t,"monthsShort")}function ba(e,t,n){return ga(e,t,n,"weekdays")}function wa(e,t,n){return ga(e,t,n,"weekdaysShort")}function xa(e,t,n){return ga(e,t,n,"weekdaysMin")}pa.calendar=D,pa.longDateFormat=Y,pa.invalidDate=G,pa.ordinal=Z,pa.preparse=fa,pa.postformat=fa,pa.relativeTime=J,pa.pastFuture=ee,pa.set=P,pa.eras=jo,pa.erasParse=Po,pa.erasConvertYear=Oo,pa.erasAbbrRegex=Lo,pa.erasNameRegex=Fo,pa.erasNarrowRegex=Io,pa.months=lt,pa.monthsShort=ut,pa.monthsParse=dt,pa.monthsRegex=gt,pa.monthsShortRegex=mt,pa.week=kt,pa.firstDayOfYear=Rt,pa.firstDayOfWeek=Et,pa.weekdays=zt,pa.weekdaysMin=Ht,pa.weekdaysShort=$t,pa.weekdaysParse=Bt,pa.weekdaysRegex=qt,pa.weekdaysShortRegex=Gt,pa.weekdaysMinRegex=Kt,pa.isPM=tn,pa.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Oe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=_("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=_("moment.langData is deprecated. Use moment.localeData instead.",vn);var Ca=Math.abs;function Sa(){var e=this._data;return this._milliseconds=Ca(this._milliseconds),this._days=Ca(this._days),this._months=Ca(this._months),e.milliseconds=Ca(e.milliseconds),e.seconds=Ca(e.seconds),e.minutes=Ca(e.minutes),e.hours=Ca(e.hours),e.months=Ca(e.months),e.years=Ca(e.years),this}function ka(e,t,n,r){var o=Nr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function _a(e,t){return ka(this,e,t,1)}function Ea(e,t){return ka(this,e,t,-1)}function Ra(e){return e<0?Math.floor(e):Math.ceil(e)}function Na(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,l=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*Ra(Pa(s)+i),i=0,s=0),l.milliseconds=a%1e3,e=Pe(a/1e3),l.seconds=e%60,t=Pe(e/60),l.minutes=t%60,n=Pe(t/60),l.hours=n%24,i+=Pe(n/24),s+=o=Pe(ja(i)),i-=Ra(Pa(o)),r=Pe(s/12),s%=12,l.days=i,l.months=s,l.years=r,this}function ja(e){return 4800*e/146097}function Pa(e){return 146097*e/4800}function Oa(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+ja(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Pa(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ma(e){return function(){return this.as(e)}}var Ta=Ma("ms"),Da=Ma("s"),Aa=Ma("m"),Fa=Ma("h"),La=Ma("d"),Ia=Ma("w"),za=Ma("M"),$a=Ma("Q"),Ha=Ma("y"),Va=Ta;function Ba(){return Nr(this)}function Ua(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Wa(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ya=Wa("milliseconds"),qa=Wa("seconds"),Ga=Wa("minutes"),Ka=Wa("hours"),Qa=Wa("days"),Za=Wa("months"),Xa=Wa("years");function Ja(){return Pe(this.days()/7)}var ei=Math.round,ti={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ni(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ri(e,t,n,r){var o=Nr(e).abs(),a=ei(o.as("s")),i=ei(o.as("m")),s=ei(o.as("h")),l=ei(o.as("d")),u=ei(o.as("M")),c=ei(o.as("w")),d=ei(o.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,ni.apply(null,f)}function oi(e){return void 0===e?ei:"function"==typeof e&&(ei=e,!0)}function ai(e,t){return void 0!==ti[e]&&(void 0===t?ti[e]:(ti[e]=t,"s"===e&&(ti.ss=t-1),!0))}function ii(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=ti;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(a=Object.assign({},ti,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=ri(this,!o,a,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var si=Math.abs;function li(e){return(e>0)-(e<0)||+e}function ui(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,s,l=si(this._milliseconds)/1e3,u=si(this._days),c=si(this._months),d=this.asSeconds();return d?(e=Pe(l/60),t=Pe(e/60),l%=60,e%=60,n=Pe(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",a=li(this._months)!==li(d)?"-":"",i=li(this._days)!==li(d)?"-":"",s=li(this._milliseconds)!==li(d)?"-":"",o+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ci=ir.prototype;return ci.isValid=or,ci.abs=Sa,ci.add=_a,ci.subtract=Ea,ci.as=Oa,ci.asMilliseconds=Ta,ci.asSeconds=Da,ci.asMinutes=Aa,ci.asHours=Fa,ci.asDays=La,ci.asWeeks=Ia,ci.asMonths=za,ci.asQuarters=$a,ci.asYears=Ha,ci.valueOf=Va,ci._bubble=Na,ci.clone=Ba,ci.get=Ua,ci.milliseconds=Ya,ci.seconds=qa,ci.minutes=Ga,ci.hours=Ka,ci.days=Qa,ci.weeks=Ja,ci.months=Za,ci.years=Xa,ci.humanize=ii,ci.toISOString=ui,ci.toString=ui,ci.toJSON=ui,ci.locale=io,ci.localeData=lo,ci.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ui),ci.lang=so,$("X",0,0,"unix"),$("x",0,0,"valueOf"),Ee("x",be),Ee("X",Ce),Te("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),Te("x",function(e,t,n){n._d=new Date(Oe(e))}),
140
140
  //! moment.js
141
- r.version="2.30.1",o(Kn),r.fn=ua,r.min=Jn,r.max=er,r.now=tr,r.utc=h,r.unix=ca,r.months=ya,r.isDate=d,r.locale=mn,r.invalid=v,r.duration=Nr,r.isMoment=S,r.weekdays=ba,r.parseZone=da,r.localeData=vn,r.isDuration=sr,r.monthsShort=va,r.weekdaysMin=xa,r.defineLocale=gn,r.updateLocale=yn,r.locales=bn,r.weekdaysShort=wa,r.normalizeUnits=ne,r.relativeTimeRounding=oi,r.relativeTimeThreshold=ai,r.calendarFormat=Hr,r.prototype=ua,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}(Gw)),Gw.exports),Qw=n(Kw),Zw="Dialog",[Xw,Jw]=Yo(Zw),[ex,tx]=Xw(Zw),nx=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=T.useRef(null),l=T.useRef(null),[u,c]=Qo({prop:r,defaultProp:o??!1,onChange:a,caller:Zw});return m.jsx(ex,{scope:t,triggerRef:s,contentRef:l,contentId:Da(),titleId:Da(),descriptionId:Da(),open:u,onOpenChange:c,onOpenToggle:T.useCallback(()=>c(e=>!e),[c]),modal:i,children:n})};nx.displayName=Zw;var rx="DialogTrigger";T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tx(rx,n),a=Wo(t,o.triggerRef);return m.jsx(oa.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Sx(o.open),...r,ref:a,onClick:Vo(e.onClick,o.onOpenToggle)})}).displayName=rx;var ox="DialogPortal",[ax,ix]=Xw(ox,{forceMount:void 0}),sx=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=tx(ox,t);return m.jsx(ax,{scope:t,forceMount:n,children:T.Children.map(r,e=>m.jsx(Ks,{present:n||a.open,children:m.jsx(Gs,{asChild:!0,container:o,children:e})}))})};sx.displayName=ox;var lx="DialogOverlay",ux=T.forwardRef((e,t)=>{const n=ix(lx,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=tx(lx,e.__scopeDialog);return a.modal?m.jsx(Ks,{present:r||a.open,children:m.jsx(dx,{...o,ref:t})}):null});ux.displayName=lx;var cx=Jo("DialogOverlay.RemoveScroll"),dx=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tx(lx,n);return m.jsx(uu,{as:cx,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(oa.div,{"data-state":Sx(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),fx="DialogContent",px=T.forwardRef((e,t)=>{const n=ix(fx,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=tx(fx,e.__scopeDialog);return m.jsx(Ks,{present:r||a.open,children:a.modal?m.jsx(hx,{...o,ref:t}):m.jsx(mx,{...o,ref:t})})});px.displayName=fx;var hx=T.forwardRef((e,t)=>{const n=tx(fx,e.__scopeDialog),r=T.useRef(null),o=Wo(t,n.contentRef,r);return T.useEffect(()=>{const e=r.current;if(e)return xl(e)},[]),m.jsx(gx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Vo(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Vo(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Vo(e.onFocusOutside,e=>e.preventDefault())})}),mx=T.forwardRef((e,t)=>{const n=tx(fx,e.__scopeDialog),r=T.useRef(!1),o=T.useRef(!1);return m.jsx(gx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),gx=T.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=tx(fx,n),l=T.useRef(null),u=Wo(t,l);return wa(),m.jsxs(m.Fragment,{children:[m.jsx(_a,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(ma,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Sx(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Rx,{titleId:s.titleId}),m.jsx(Nx,{contentRef:l,descriptionId:s.descriptionId})]})]})}),yx="DialogTitle",vx=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tx(yx,n);return m.jsx(oa.h2,{id:o.titleId,...r,ref:t})});vx.displayName=yx;var bx="DialogDescription",wx=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tx(bx,n);return m.jsx(oa.p,{id:o.descriptionId,...r,ref:t})});wx.displayName=bx;var xx="DialogClose",Cx=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tx(xx,n);return m.jsx(oa.button,{type:"button",...r,ref:t,onClick:Vo(e.onClick,()=>o.onOpenChange(!1))})});function Sx(e){return e?"open":"closed"}Cx.displayName=xx;var kx="DialogTitleWarning",[_x,Ex]=function(e,t){const n=T.createContext(t),r=e=>{const{children:t,...r}=e,o=T.useMemo(()=>r,Object.values(r));return m.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=T.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(kx,{contentName:fx,titleName:yx,docsSlug:"dialog"}),Rx=({titleId:e})=>{const t=Ex(kx),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return T.useEffect(()=>{if(e){document.getElementById(e)||console.error(n)}},[n,e]),null},Nx=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ex("DialogDescriptionWarning").contentName}}.`;return T.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){document.getElementById(t)||console.warn(n)}},[n,e,t]),null},jx=nx,Px=sx,Ox=ux,Mx=px,Tx=vx,Dx=wx,Ax=Cx;const Fx=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Lx=Er,Ix=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return Lx(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=Fx(t)||Fx(r);return o[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n})?[...e,n,r]:e},[]);return Lx(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},zx=jx,$x=Ax,Hx=Px,Vx=T.forwardRef(({className:e,...t},n)=>m.jsx(Ox,{className:Do("fixed inset-0 z-50 bg-[#1E1E1E]/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Vx.displayName=Ox.displayName;const Bx=Ix("fixed z-50 gap-4 bg-white p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 dark:bg-neutral-950",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ux=T.forwardRef(({side:e="right",className:t,children:n,...r},o)=>m.jsxs(Hx,{children:[m.jsx(Vx,{}),m.jsx(Mx,{ref:o,className:Do(Bx({side:e}),t),...r,children:n})]}));Ux.displayName=Mx.displayName;T.forwardRef(({className:e,...t},n)=>m.jsx(Tx,{ref:n,className:Do("text-lg font-semibold text-neutral-950 dark:text-neutral-50",e),...t})).displayName=Tx.displayName;function Wx({children:e,isOpen:t,onClose:n,title:r,className:o}){const[a,i]=T.useState(!1);return m.jsx(zx,{open:t,onOpenChange:n,children:m.jsxs(Ux,{className:Do("p-[30px] rounded-l-xl lg:max-w-full space-y-6 overflow-auto",o,a?"w-full rounded-l-none":null),children:[m.jsxs("div",{className:"flex items-center justify-between border-b pb-2",children:[m.jsx("h1",{className:"text-gray-900 font-semibold text-xl",children:r}),m.jsxs("div",{className:"flex items-center gap-5",children:[m.jsx("button",{className:"w-9 h-9 flex items-center justify-center rounded-md hover:ring-2 ring-inset ring-dark",onClick:()=>{i(!a)},children:zy.expand}),m.jsx($x,{asChild:!0,className:"w-9 h-9 rounded-md flex items-center justify-center bg-danger_light",children:m.jsxs("button",{children:[" ",D.cloneElement(zy.close2,{fill:"#F1416C"})]})})]})]}),e]})})}function Yx({children:e,className:t}){return m.jsx("div",{className:Do("border rounded-xl py-[30px] border-gray-200 ",t),children:e})}function qx(){return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex justify-between",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx(Ho,{className:"h-5 w-[500px] rounded-md"}),m.jsx(Ho,{className:"h-5 w-[500px] rounded-md"})]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx(Ho,{className:"h-9 w-[140px] rounded-md"}),m.jsx(Ho,{className:"h-9 w-[140px] rounded-md"})]})]}),m.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[m.jsxs(Yx,{className:"p-4 flex flex-col gap-3",children:[m.jsx(Ho,{className:"flex-grow w-full rounded-md"}),m.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[m.jsx(Ho,{className:"h-[79px] rounded-md"}),m.jsx(Ho,{className:"h-[79px] rounded-md"}),m.jsx(Ho,{className:"h-[79px] rounded-md"})]})]}),m.jsxs("div",{className:"space-y-8 col-span-2",children:[m.jsx(Ho,{className:"h-9 w-full rounded-md"}),m.jsx(Ho,{className:"h-4 w-[326px] rounded-md"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(Ho,{className:"h-3.5 w-[150px] rounded-md"}),m.jsx(Ho,{className:"h-10 w-full rounded-md"})]}),m.jsx(Ho,{className:"h-9 w-[500px] rounded-md"}),m.jsxs("div",{className:"flex gap-3",children:[m.jsx(Ho,{className:"h-12 w-[115px] rounded-md"}),m.jsx(Ho,{className:"h-12 w-[150px] rounded-md"}),m.jsx(Ho,{className:"h-12 w-[171px] rounded-md"})]}),m.jsx(Ho,{className:"h-3.5 w-[337px] rounded-md"})]})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx(Ho,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(Ho,{className:"h-3.5 w-[140px] rounded-md"})]}),m.jsx("div",{className:"grid grid-cols-4 gap-3",children:[1,2,3,4].map((e,t)=>m.jsxs("div",{className:"border rounded-xl border-gray-200 p-4 gap-4 flex flex-col",children:[m.jsx(Ho,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(Ho,{className:"h-10 w-[200px] rounded-md"})]},t))}),m.jsx("div",{className:"space-y-6",children:[1,2,3,4].map((e,t)=>m.jsxs("div",{className:" gap-4 flex flex-col",children:[m.jsx(Ho,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(Ho,{className:"h-[163px] w-[896px] rounded-md"})]},t))})]})}T.forwardRef(({className:e,...t},n)=>m.jsx(Dx,{ref:n,className:Do("text-sm text-neutral-500 dark:text-neutral-400",e),...t})).displayName=Dx.displayName;var Gx="https://unpkg.com/@simpoobusiness/sdk/dist/assets/placeholder-imageaf93498c918127fb.svg";function Kx({images:e}){return m.jsxs(Yx,{className:"p-5 flex flex-col gap-2.5",children:[m.jsx("div",{className:"relative flex-grow",children:m.jsx("img",{src:e?.[0]??Gx,sizes:"100%",alt:"item image",draggable:!1,className:"rounded-xl object-cover w-full h-full"})}),m.jsx("div",{className:"flex gap-4 overflow-auto",children:e.filter((e,t)=>0!==t).map((e,t)=>m.jsx("div",{className:"w-[89px] h-[79px] relative shrink-0",children:m.jsx("img",{src:e??Gx,alt:"item image",draggable:!1,className:"rounded-xl object-cover h-full w-full"})},t))})]})}var Qx="horizontal",Zx=["horizontal","vertical"],Xx=T.forwardRef((e,t)=>{const{decorative:n,orientation:r=Qx,...o}=e,a=function(e){return Zx.includes(e)}(r)?r:Qx,i=n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"};return m.jsx(oa.div,{"data-orientation":a,...i,...o,ref:t})});Xx.displayName="Separator";var Jx=Xx;const eC=T.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>m.jsx(Jx,{ref:o,decorative:n,orientation:t,className:Do("shrink-0 bg-gray-300 dark:bg-neutral-800","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",e),...r}));function tC({data:e,printLabel:t}){const n=[{tag:"reorder level",value:`${e?.reorder_level} ${e?.unit_resource?.name}`},{tag:"packing groups",value:`${e?.item_group?.length} group(s)`},{tag:"variations",value:`${e?.variation?.length} variable(s)`},{tag:"extras",value:`${e?.extras?.length} extras`}];return m.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[m.jsx(Kx,{images:e?.images?.map(e=>e.image)}),m.jsxs("div",{className:"col-span-2 flex flex-col gap-9",children:[m.jsxs("div",{className:"flex gap-4 bg-primary_light p-2.5 rounded-md",children:[m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Cost price:"," ",m.jsx("span",{className:"text-dark font-bold text-[15px]",children:By(Number(e?.cost_price))})]}),m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Selling price:"," ",e?.duplicate_prices?.map((t,n)=>m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-dark font-bold text-[15px] px-2",children:By(Number(t.selling_price))},n),n<e?.duplicate_prices?.length-1&&"-"]}))]})]}),m.jsxs("div",{className:"flex gap-2.5",children:[m.jsxs("p",{className:"text-gray-800 text-sm font-medium",children:["In stock:"," ",m.jsxs("span",{className:"text-dark font-bold text-[15px]",children:[Uy(Number(e?.quantity))," ",e?.item_unit]})]}),"|",m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Total sold:"," ",m.jsxs("span",{className:"text-dark font-bold text-[15px]",children:[Uy(e?.total_sold)," ",e?.item_unit]})]})]}),m.jsxs("div",{className:"space-y-2.5",children:[m.jsx("h2",{className:"text-gray-800 text-sm font-bold",children:"Description"}),m.jsx("p",{className:"text-gray-800 font-normal text-sm",children:e?.description??"No description..."})]}),m.jsx("div",{className:"flex gap-5 items-center",children:n.map((e,t)=>m.jsxs("div",{className:"flex gap-5 items-center",children:[m.jsxs("div",{className:"flex flex-col gap-2.5",children:[m.jsx("p",{className:"text-dark font-medium text-sm first-letter:uppercase",children:e.tag}),m.jsx("p",{className:"text-primary",children:e.value})]}),t<n.length-1&&m.jsx(eC,{className:"bg-[#7E8299] h-[30px] w-[1px]"})]},t))}),m.jsxs("div",{className:"flex gap-2.5 items-center",children:[m.jsxs("p",{className:"text-gray-700 text-sm font-medium flex gap-2",children:["Category:"," ",e?.category?.map((e,t)=>m.jsxs("span",{className:"text-dark font-normal text-[15px]",children:[e.name," "]},t))]}),m.jsx(eC,{className:"bg-[#7E8299] h-[14px] w-[1px]"}),m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Collection:"," ",e?.item_tags?.map((e,t)=>m.jsx("span",{className:"text-dark font-normal text-[15px]",children:e.name},t))]})]})]})]})}eC.displayName=Jx.displayName;var nC=.999,rC=/[\\\/_+.#"@\[\(\{&]/,oC=/[\\\/_+.#"@\[\(\{&]/g,aC=/[\s-]/,iC=/[\s-]/g;function sC(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?1:.99;var s=`${o},${a}`;if(void 0!==i[s])return i[s];for(var l,u,c,d,f=r.charAt(a),p=n.indexOf(f,o),h=0;p>=0;)(l=sC(e,t,n,r,p+1,a+1,i))>h&&(p===o?l*=1:rC.test(e.charAt(p-1))?(l*=.8,(c=e.slice(o,p-1).match(oC))&&o>0&&(l*=Math.pow(nC,c.length))):aC.test(e.charAt(p-1))?(l*=.9,(d=e.slice(o,p-1).match(iC))&&o>0&&(l*=Math.pow(nC,d.length))):(l*=.17,o>0&&(l*=Math.pow(nC,p-o))),e.charAt(p)!==t.charAt(a)&&(l*=.9999)),(l<.1&&n.charAt(p-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(p-1)!==r.charAt(a))&&(.1*(u=sC(e,t,n,r,p+1,a+2,i))>l&&(l=.1*u)),l>h&&(h=l),p=n.indexOf(f,p+1);return i[s]=h,h}function lC(e){return e.toLowerCase().replace(iC," ")}function uC(e,t,n){return sC(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,lC(e),lC(t),0,0,{})}var cC='[cmdk-group=""]',dC='[cmdk-group-items=""]',fC='[cmdk-item=""]',pC=`${fC}:not([aria-disabled="true"])`,hC="cmdk-item-select",mC="data-value",gC=(e,t,n)=>uC(e,t,n),yC=T.createContext(void 0),vC=()=>T.useContext(yC),bC=T.createContext(void 0),wC=()=>T.useContext(bC),xC=T.createContext(void 0),CC=T.forwardRef((e,t)=>{let n=FC(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=FC(()=>new Set),o=FC(()=>new Map),a=FC(()=>new Map),i=FC(()=>new Set),s=DC(e),{label:l,children:u,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:g=!0,...y}=e,v=Da(),b=Da(),w=Da(),x=T.useRef(null),C=zC();AC(()=>{if(void 0!==c){let e=c.trim();n.current.value=e,S.emit()}},[c]),AC(()=>{C(6,j)},[]);let S=T.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)N(),E(),C(1,R);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(o=document.getElementById(v))||o.focus()}if(C(7,()=>{var e;n.current.selectedItemId=null==(e=P())?void 0:e.id,S.emit()}),r||C(5,j),void 0!==(null==(a=s.current)?void 0:a.value)){let e=null!=t?t:"";return void(null==(l=(i=s.current).onValueChange)||l.call(i,e))}}S.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),k=T.useMemo(()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,_(t,r)),C(2,()=>{E(),S.emit()}))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),C(3,()=>{N(),E(),n.current.value||R(),S.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=P();C(4,()=>{N(),(null==t?void 0:t.getAttribute("id"))===e&&R(),S.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:v,inputId:w,labelId:b,listInnerRef:x}),[]);function _(e,t){var r,o;let a=null!=(o=null==(r=s.current)?void 0:r.filter)?o:gC;return e?a(e,n.current.search,t):0}function E(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=o.current.get(n),a=0;r.forEach(t=>{let n=e.get(t);a=Math.max(n,a)}),t.push([n,a])});let r=x.current;O().sort((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)}).forEach(e=>{let t=e.closest(dC);t?t.appendChild(e.parentElement===t?e:e.closest(`${dC} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${dC} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=x.current)?void 0:t.querySelector(`${cC}[${mC}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function R(){let e=O().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(mC);S.setState("value",t||void 0)}function N(){var e,t,i,l;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let u=0;for(let o of r.current){let r=_(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(l=null==(i=a.current.get(o))?void 0:i.keywords)?l:[]);n.current.filtered.items.set(o,r),r>0&&u++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=u}function j(){var e,t,n;let r=P();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(cC))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function P(){var e;return null==(e=x.current)?void 0:e.querySelector(`${fC}[aria-selected="true"]`)}function O(){var e;return Array.from((null==(e=x.current)?void 0:e.querySelectorAll(pC))||[])}function M(e){let t=O()[e];t&&S.setState("value",t.getAttribute(mC))}function D(e){var t;let n=P(),r=O(),o=r.findIndex(e=>e===n),a=r[o+e];null!=(t=s.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&S.setState("value",a.getAttribute(mC))}function A(e){let t,n=P(),r=null==n?void 0:n.closest(cC);for(;r&&!t;)r=e>0?MC(r,cC):TC(r,cC),t=null==r?void 0:r.querySelector(pC);t?S.setState("value",t.getAttribute(mC)):D(e)}let F=()=>M(O().length-1),L=e=>{e.preventDefault(),e.metaKey?F():e.altKey?A(1):D(1)},I=e=>{e.preventDefault(),e.metaKey?M(0):e.altKey?A(-1):D(-1)};return T.createElement(oa.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=y.onKeyDown)||t.call(y,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!n)switch(e.key){case"n":case"j":g&&e.ctrlKey&&L(e);break;case"ArrowDown":L(e);break;case"p":case"k":g&&e.ctrlKey&&I(e);break;case"ArrowUp":I(e);break;case"Home":e.preventDefault(),M(0);break;case"End":e.preventDefault(),F();break;case"Enter":{e.preventDefault();let t=P();if(t){let e=new Event(hC);t.dispatchEvent(e)}}}}},T.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:HC},l),$C(e,e=>T.createElement(bC.Provider,{value:S},T.createElement(yC.Provider,{value:k},e))))}),SC=T.forwardRef((e,t)=>{var n,r;let o=Da(),a=T.useRef(null),i=T.useContext(xC),s=vC(),l=DC(e),u=null!=(r=null==(n=l.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;AC(()=>{if(!u)return s.item(o,null==i?void 0:i.id)},[u]);let c=IC(o,a,[e.value,e.children,a],e.keywords),d=wC(),f=LC(e=>e.value&&e.value===c.current),p=LC(e=>!(!u&&!1!==s.filter())||(!e.search||e.filtered.items.get(o)>0));function h(){var e,t;m(),null==(t=(e=l.current).onSelect)||t.call(e,c.current)}function m(){d.setState("value",c.current,!0)}if(T.useEffect(()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(hC,h),()=>t.removeEventListener(hC,h)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:y,onSelect:v,forceMount:b,keywords:w,...x}=e;return T.createElement(oa.div,{ref:Uo(a,t),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||s.getDisablePointerSelection()?void 0:m,onClick:g?void 0:h},e.children)}),kC=T.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=Da(),s=T.useRef(null),l=T.useRef(null),u=Da(),c=vC(),d=LC(e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(i)));AC(()=>c.group(i),[]),IC(i,s,[e.value,e.heading,l]);let f=T.useMemo(()=>({id:i,forceMount:o}),[o]);return T.createElement(oa.div,{ref:Uo(s,t),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&T.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),$C(e,e=>T.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},T.createElement(xC.Provider,{value:f},e))))}),_C=T.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=T.useRef(null),a=LC(e=>!e.search);return n||a?T.createElement(oa.div,{ref:Uo(o,t),...r,"cmdk-separator":"",role:"separator"}):null}),EC=T.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=wC(),i=LC(e=>e.search),s=LC(e=>e.selectedItemId),l=vC();return T.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),T.createElement(oa.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),RC=T.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=T.useRef(null),i=T.useRef(null),s=LC(e=>e.selectedItemId),l=vC();return T.useEffect(()=>{if(i.current&&a.current){let e,t=i.current,n=a.current,r=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}},[]),T.createElement(oa.div,{ref:Uo(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},$C(e,e=>T.createElement("div",{ref:Uo(i,l.listInnerRef),"cmdk-list-sizer":""},e)))}),NC=T.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return T.createElement(jx,{open:n,onOpenChange:r},T.createElement(Px,{container:i},T.createElement(Ox,{"cmdk-overlay":"",className:o}),T.createElement(Mx,{"aria-label":e.label,"cmdk-dialog":"",className:a},T.createElement(CC,{ref:t,...s}))))}),jC=T.forwardRef((e,t)=>LC(e=>0===e.filtered.count)?T.createElement(oa.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),PC=T.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return T.createElement(oa.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},$C(e,e=>T.createElement("div",{"aria-hidden":!0},e)))}),OC=Object.assign(CC,{List:RC,Item:SC,Input:EC,Group:kC,Separator:_C,Dialog:NC,Empty:jC,Loading:PC});function MC(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function TC(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function DC(e){let t=T.useRef(e);return AC(()=>{t.current=e}),t}var AC="undefined"==typeof window?T.useEffect:T.useLayoutEffect;function FC(e){let t=T.useRef();return void 0===t.current&&(t.current=e()),t}function LC(e){let t=wC(),n=()=>e(t.snapshot());return T.useSyncExternalStore(t.subscribe,n,n)}function IC(e,t,n,r=[]){let o=T.useRef(),a=vC();return AC(()=>{var i;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=r.map(e=>e.trim());a.value(e,s,l),null==(i=t.current)||i.setAttribute(mC,s),o.current=s}),o}var zC=()=>{let[e,t]=T.useState(),n=FC(()=>new Map);return AC(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function $C({asChild:e,children:t},n){return e&&T.isValidElement(t)?T.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var HC={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const VC=jx,BC=Px,UC=T.forwardRef(({className:e,...t},n)=>m.jsx(Ox,{ref:n,className:Do("fixed inset-0 z-50 bg-[#1E1E1E]/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));UC.displayName=Ox.displayName;const WC=T.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(BC,{children:[m.jsx(UC,{}),m.jsxs(Mx,{ref:r,className:Do("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg dark:border-neutral-800 dark:bg-neutral-950",e),...n,children:[t,m.jsxs(Ax,{className:"hidden absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400",children:[m.jsx(Cd,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));WC.displayName=Mx.displayName;const YC=T.forwardRef(({className:e,...t},n)=>m.jsx(Tx,{ref:n,className:Do("text-lg font-semibold leading-none tracking-tight",e),...t}));YC.displayName=Tx.displayName;const qC=T.forwardRef(({className:e,...t},n)=>m.jsx(Dx,{ref:n,className:Do("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));qC.displayName=Dx.displayName;const GC=T.forwardRef(({className:e,...t},n)=>m.jsx(OC,{ref:n,className:Do("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50",e),...t}));GC.displayName=OC.displayName;const KC=T.forwardRef(({className:e,...t},n)=>m.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m.jsx(xd,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m.jsx(OC.Input,{ref:n,className:Do("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",e),...t})]}));KC.displayName=OC.Input.displayName;const QC=T.forwardRef(({className:e,...t},n)=>m.jsx(OC.List,{ref:n,className:Do("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));QC.displayName=OC.List.displayName;const ZC=T.forwardRef((e,t)=>m.jsx(OC.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));ZC.displayName=OC.Empty.displayName;const XC=T.forwardRef(({className:e,...t},n)=>m.jsx(OC.Group,{ref:n,className:Do("overflow-hidden p-1 text-neutral-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 dark:text-neutral-50 dark:[&_[cmdk-group-heading]]:text-neutral-400",e),...t}));XC.displayName=OC.Group.displayName;T.forwardRef(({className:e,...t},n)=>m.jsx(OC.Separator,{ref:n,className:Do("-mx-1 h-px bg-neutral-200 dark:bg-neutral-800",e),...t})).displayName=OC.Separator.displayName;const JC=T.forwardRef(({className:e,...t},n)=>m.jsx(OC.Item,{ref:n,className:Do("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-primary_light data-[selected=true]:text-primary data-[disabled=true]:opacity-50 dark:data-[selected='true']:bg-primary_light dark:data-[selected=true]:text-primary",e),...t}));JC.displayName=OC.Item.displayName;var eS="Popover",[tS,nS]=Yo(eS,[Ns]),rS=Ns(),[oS,aS]=tS(eS),iS=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=rS(t),l=T.useRef(null),[u,c]=T.useState(!1),[d,f]=Qo({prop:r,defaultProp:o??!1,onChange:a,caller:eS});return m.jsx(Us,{...s,children:m.jsx(oS,{scope:t,contentId:Da(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:T.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:T.useCallback(()=>c(!0),[]),onCustomAnchorRemove:T.useCallback(()=>c(!1),[]),modal:i,children:n})})};iS.displayName=eS;var sS="PopoverAnchor";T.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=aS(sS,n),a=rS(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return T.useEffect(()=>(i(),()=>s()),[i,s]),m.jsx(Ws,{...a,...r,ref:t})}).displayName=sS;var lS="PopoverTrigger",uS=T.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=aS(lS,n),a=rS(n),i=Wo(t,o.triggerRef),s=m.jsx(oa.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":xS(o.open),...r,ref:i,onClick:Vo(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:m.jsx(Ws,{asChild:!0,...a,children:s})});uS.displayName=lS;var cS="PopoverPortal",[dS,fS]=tS(cS,{forceMount:void 0}),pS=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=aS(cS,t);return m.jsx(dS,{scope:t,forceMount:n,children:m.jsx(Ks,{present:n||a.open,children:m.jsx(Gs,{asChild:!0,container:o,children:r})})})};pS.displayName=cS;var hS="PopoverContent",mS=T.forwardRef((e,t)=>{const n=fS(hS,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=aS(hS,e.__scopePopover);return m.jsx(Ks,{present:r||a.open,children:a.modal?m.jsx(yS,{...o,ref:t}):m.jsx(vS,{...o,ref:t})})});mS.displayName=hS;var gS=Jo("PopoverContent.RemoveScroll"),yS=T.forwardRef((e,t)=>{const n=aS(hS,e.__scopePopover),r=T.useRef(null),o=Wo(t,r),a=T.useRef(!1);return T.useEffect(()=>{const e=r.current;if(e)return xl(e)},[]),m.jsx(uu,{as:gS,allowPinchZoom:!0,children:m.jsx(bS,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Vo(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Vo(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:Vo(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),vS=T.forwardRef((e,t)=>{const n=aS(hS,e.__scopePopover),r=T.useRef(!1),o=T.useRef(!1);return m.jsx(bS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),bS=T.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=aS(hS,n),p=rS(n);return wa(),m.jsx(_a,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(ma,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:m.jsx(Ys,{"data-state":xS(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),wS="PopoverClose";T.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=aS(wS,n);return m.jsx(oa.button,{type:"button",...r,ref:t,onClick:Vo(e.onClick,()=>o.onOpenChange(!1))})}).displayName=wS;function xS(e){return e?"open":"closed"}T.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=rS(n);return m.jsx(qs,{...o,...r,ref:t})}).displayName="PopoverArrow";var CS=pS,SS=mS;const kS=iS,_S=uS,ES=T.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>m.jsx(CS,{children:m.jsx(SS,{ref:o,align:t,sideOffset:n,className:Do("z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r})}));ES.displayName=SS.displayName;const RS=Ix("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300",{variants:{variant:{default:"bg-neutral-900 text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",destructive:"bg-red-500 text-neutral-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",outline:"border border-neutral-200 bg-white hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",secondary:"bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",ghost:"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",link:"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),NS=T.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?ea:"button";return m.jsx(i,{className:Do(RS({variant:t,size:n,className:e})),ref:a,...o})});NS.displayName="Button";const jS=({label:e,options:t=[],className:n,placeholder:r,value:o="",onValueChange:a,required:i,error:s,showSearch:l=!0,showOutline:u=!0,icon:c,info:d,optional:f,labelClass:p,actionLabel:h,actionLabelAction:g,actionLabelInfo:y,searchPlaceholder:v,disabled:b,triggerClass:w,loading:x,showError:C,onChangeSearch:S,searching:k,infoAlignment:_,align:E="start",valueClass:R})=>{const[N,j]=T.useState(""),[P,O]=T.useState(!1),[M,D]=T.useState(0),A=T.useRef(null);T.useEffect(()=>{const e=()=>{A.current&&D(A?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);return m.jsx(m.Fragment,{children:x?m.jsx(Ho,{className:"w-full h-[48px]"}):m.jsxs("div",{className:Do("flex flex-col gap-2.5",n),children:[m.jsxs("div",{className:Do("flex justify-between gap-2 flex-wrap",e?null:"hidden"),children:[e&&m.jsxs("label",{className:Do("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",p),children:[m.jsx("span",{className:"first-letter:inherit",children:e})," ",i?m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(dv,{fieldName:e,align:_,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),h&&m.jsxs("button",{onClick:g,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[h,y&&m.jsx(dv,{fieldName:h,children:m.jsx("p",{className:"font-normal first-letter:uppercase text-left",children:y})})]})]}),m.jsxs(kS,{modal:!0,open:P,onOpenChange:O,children:[m.jsx(_S,{asChild:!0,children:m.jsxs(NS,{ref:A,variant:"outline",role:"combobox","aria-expanded":P,className:Do(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${(s||C)&&"!border-danger"}`,w),disabled:b,children:[m.jsx("span",{className:Do("flex gap-2 first-letter:uppercase capitalize text-[#5E6278] justify-start truncate",o?"text-dark":null,R),children:o?(e=>{const n=t?.find(t=>t.value===e);return n?.label})(o):r??"Select..."}),m.jsx(bd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(ES,{style:{width:M},className:"min-w-[280px] p-0 bg-white rounded-xl border-gray-200",align:E,children:m.jsxs(GC,{className:"w-full",children:[l&&m.jsx(KC,{onChangeCapture:S,className:"placeholder:text-xs",placeholder:v??"Search..."}),k?m.jsx("div",{className:"flex flex-col gap-2 p-2",children:[1,2,3].map((e,t)=>m.jsx(Ho,{className:"h-9 rounded-md"},t))}):m.jsx(ZC,{children:"No result found."}),m.jsx(XC,{children:m.jsx(QC,{className:"",children:t?.map(e=>m.jsxs(JC,{value:"string"==typeof e.label?e.label:e?.searchId,className:`first-letter:uppercase capitalize mb-1 hover:bg-primary_light w-full rounded-md hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o===e.value&&"bg-primary_light text-primary"}`,onSelect:()=>{a&&a(e.value),O(!1)},children:[m.jsx(md,{className:Do("mr-2 h-4 w-4",o===e.value?"opacity-100":"opacity-0")}),e.label]},`${"string"==typeof e.label?e.label:e?.searchId}${e.value}`))})})]})})]}),s&&m.jsx("p",{className:"text-danger text-xs font-normal",children:s})]})})};var PS="https://unpkg.com/@simpoobusiness/sdk/dist/assets/image-placeholdere1821db1b147e2aa.png";function OS({data:e}){const[t,n]=T.useState(e?.total_selling_price||0),r=[{label:"Stock Quantity",value:Uy(Number(e?.quantity)),desc:null},{label:"Total Cost",value:By(Number(e?.total_cost_price)),desc:null},{label:"Total Selling Price",value:By(t),desc:m.jsx(jS,{options:e?.prices?.map(e=>({label:e.priceGroup.name,value:e.selling_price.toString()})),onValueChange:e=>n(Number(e)),value:t?.toString(),triggerClass:"h-8",showSearch:!1,placeholder:"Select price"})},{label:"Profit to be made",value:By(t-e?.total_cost_price),desc:null}],o=[{tag:"Barcode",value:e?.barcode.map(e=>e.barcode)},{tag:"SKU",value:e?.sku},{tag:"System code",value:e?.itemcode.toString()}],a=["S/N","Batch number","Quantity","Expiry date","Unit cost"],i=[{tag:"Extras",headers:["S/N","image","extra name","quantity inside ","selling price"],body:e?.extras?.map((e,t)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:t+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:PS,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:e.extra.name}),m.jsxs("td",{children:[e.quantity," ",e.extra.item_unit]}),m.jsx("td",{children:By(Number(e.selling_price))})]},t))||[]},{tag:"Raw materials",headers:["S/N","image","material name","quantity inside ","selling price"],body:e?.material?.map((e,t)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:t+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:PS,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:e.raw_material?.name}),m.jsxs("td",{children:[e.quantity," ",e.raw_material?.item_unit]}),m.jsx("td",{children:By(Number(e.selling_price))})]},t))},{tag:"Packing groups",headers:["S/N","image","group name","quantity inside ","selling price","Group code","print label"],body:e?.item_group?.map((t,n)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:n+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:PS,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:t.group_name}),m.jsxs("td",{children:[t.quantity," ",e.item_unit]}),m.jsx("td",{children:By(Number(t.selling_price))}),m.jsx("td",{children:t.barcode}),m.jsx("td",{children:m.jsx("button",{className:"w-6 h-6 items-center flex justify-center",children:zy.printer_blue})})]},n))},{tag:"Variations",headers:["S/N","image","variation","quantity ","selling price","code","print label"],body:e?.variation?.map((t,n)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:n+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:t.image??PS,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:t.variation_values.map((e,n)=>m.jsxs("span",{className:"pr-2",children:[e.attribute_value.value_name," ",t?.variation_values?.length-1>n&&"-"]},n))}),m.jsxs("td",{children:[t.quantity,e?.item_unit]}),m.jsx("td",{children:By(Number(t.locationprices?.[0]?.selling_price))}),m.jsx("td",{children:t.barcode}),m.jsx("td",{children:m.jsx("button",{className:"w-6 h-6 items-center flex justify-center",children:zy.printer_blue})})]},n))}];return m.jsxs("div",{className:"space-y-6",children:[m.jsx("div",{className:"grid grid-cols-4 gap-2.5",children:r.map((n,o)=>m.jsxs("div",{className:"border rounded-xl border-gray-200 p-4 gap-4 flex flex-col",children:[m.jsx("p",{className:"text-dark text-sm font-medium",children:n.label}),m.jsxs("p",{title:n.value,className:Do("text-dark font-bold text-3xl truncate",o===r.length-1&&Number(t)-Number(e?.cost_price)<0?"text-danger":null),children:[n.value,0===o&&m.jsx("span",{className:"font-normal text-sm",children:e.item_unit})]}),n.desc]},o))}),m.jsx("div",{className:"grid grid-cols-12",children:m.jsxs("div",{className:"col-span-10 space-y-6",children:[m.jsxs("div",{className:"space-y-3",children:[m.jsx("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:"Item codes:"}),m.jsx("div",{className:"flex gap-5",children:o.map((e,t)=>m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:Do("flex flex-col gap-2.5"),children:[m.jsx("p",{className:"text-dark text-sm font-medium",children:e.tag}),m.jsx("p",{className:"text-gray-500 text-sm font-normal flex flex-col gap-2",children:Array.isArray(e.value)?e.value?.map((e,t)=>m.jsx("span",{children:e},t)):e.value})]},t),t<o.length-1&&m.jsx("div",{children:m.jsx(eC,{orientation:"vertical",className:"bg-[#7E8299]"})},t)]}))})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:"Suppliers:"}),m.jsx("div",{className:"flex gap-5 flex-col",children:e?.suppliers?.map((e,t)=>m.jsxs("div",{className:"bg-gray-100 rounded-xl p-[15px] space-y-[18px]",children:[m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:PS,className:"object-cover w-full h-full"})}),m.jsxs("div",{className:"space-y-1 flex-grow border-b border-dashed border-gray-300 pb-1",children:[m.jsx("h1",{className:"text-dark font-semibold text-sm capitalize",children:e.name}),m.jsx("p",{className:"text-gray-700 font-medium text-[13px] capitalize"})]})]}),m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-y-3",children:[m.jsx("thead",{children:m.jsx("tr",{children:a.map((e,t)=>m.jsx("th",{className:"text-left text-dark",children:e},t))})}),m.jsx("tbody",{children:m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:"1"}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:e.supplier_batch_number})}),m.jsx("td",{children:e.supplier_quantity}),m.jsx("td",{children:Qw(e.supplier_expired_date).format("MMMM DD, YYYY")}),m.jsx("td",{children:By(Number(e.supplier_price))})]})})]})]},t))})]}),i.map((e,t)=>m.jsxs("div",{className:"space-y-3",children:[m.jsxs("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:[e.tag,": ",e.body?.length]}),e.body?.length>0?m.jsx("div",{className:"bg-gray-100 rounded-xl p-[15px] space-y-[18px]",children:m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-y-3",children:[m.jsx("thead",{children:m.jsx("tr",{children:e.headers.map((e,t)=>m.jsx("th",{className:"text-left text-dark first-letter:uppercase",children:e},t))})}),m.jsx("tbody",{children:e.body})]})}):null]},t))]})})]})}const MS=[{label:"All",count:900},{label:"Active",count:10},{label:"Inactive",count:0}];function TS({tabs:e=MS,loading:t}){const[n,r]=T.useState(0);return m.jsxs("div",{className:"flex flex-col",children:[m.jsx("div",{className:"flex gap-[30px]",children:e.map((e,o)=>m.jsxs("button",{className:"flex items-center gap-2.5 group relative pb-2",onClick:()=>((e,t)=>{e.link||r(t),e.action&&e.action()})(e,o),children:[m.jsx("p",{className:Do("group-hover:text-gray-900 duration-200 text-gray-800 font-normal text-sm first-letter:uppercase",o===n?"text-gray-900 font-semibold":null),children:e.label}),t?m.jsx(Ho,{className:"h-[26px] rounded w-8"}):m.jsxs(m.Fragment,{children:[" ",e.count>=0?m.jsx("span",{className:Do("rounded px-[7px] h-[26px] flex items-center text-xs font-semibold duration-200 group-hover:bg-primary_light group-hover:text-primary bg-gray-200 text-gray-500",o===n?"bg-primary_light text-primary":null),children:e.count}):null]}),o===n?m.jsx("div",{className:"h-[5px] rounded bg-primary absolute left-0 right-0 -bottom-[5px]"}):null]},o))}),m.jsx("div",{className:" h-[5px] rounded bg-gray-300"})]})}function DS({isOpen:e,onClose:t,itemUUID:n}){const{data:r,isFetching:o}=Bw(["single_item",n],`/outbound/items/get?item_uuid=${n}`,{enabled:e}),a=r?.data,i=[{tag:"Created",value:Qw(a?.created_date).format("MMMM DD, YYYY")},{tag:"Last edited",value:Qw(a?.last_update_date).format("MMMM DD, YYYY")},{tag:"Expiry",value:m.jsxs("p",{className:"",children:[" ",m.jsxs("span",{className:"text-danger",children:[a?.expired," Expired,"]})," ",m.jsxs("span",{className:"text-warning",children:[a?.expiring," Expiring"]})]})}],[s,l]=T.useState(1),u=[{label:"Item overview",action:()=>l(1)}];return T.useEffect(()=>{!e&&l(1)},[e]),m.jsx(Wx,{isOpen:e,onClose:t,title:"Item View",className:"w-[1176px]",children:o?m.jsx(qx,{}):m.jsxs("div",{className:"space-y-7",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsxs("h1",{className:"text-dark text-xl font-semibold flex items-center gap-2",children:[a?.name,m.jsx("span",{className:"bg-primary_light text-primary text-xs rounded px-[7px] h-5 flex items-center capitalize",children:a?.item_type?.name})]}),m.jsx("div",{className:"flex gap-2",children:i.map((e,t)=>m.jsxs("p",{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[m.jsxs("span",{className:"text-dark",children:[e.tag,":"]})," ",e.value," ",t<2&&"|"]},t))})]}),m.jsx("div",{className:"flex gap-3"})]}),m.jsx(tC,{data:a}),m.jsx(TS,{tabs:u}),1===s?m.jsx(OS,{data:a}):null]})})}function AS({children:e,isOpen:t,onClose:n,title:r,className:o}){return m.jsx(VC,{open:t,onOpenChange:n,children:m.jsxs(WC,{className:Do("p-0 gap-4 max-h-[90vh] overflow-auto",o),children:[m.jsx(YC,{className:"sr-only",children:"Modal Component"}),m.jsx(qC,{className:"sr-only",children:"This is a modal component"}),r?m.jsxs("div",{className:"sticky top-0 bg-inherit flex flex-col gap-4 pt-5 z-10",children:[m.jsxs("div",{className:"flex justify-between items-center px-5",children:[m.jsx("h1",{className:"text-dark font-medium text-lg",children:r}),m.jsx("button",{className:"w-6 h-6",onClick:n,children:D.cloneElement(zy.close2,{fill:"black"})})]}),m.jsx(eC,{})]}):null,e]})})}var FS="-ms-",LS="-moz-",IS="-webkit-",zS="comm",$S="rule",HS="decl",VS="@keyframes",BS=Math.abs,US=String.fromCharCode,WS=Object.assign;function YS(e){return e.trim()}function qS(e,t){return(e=t.exec(e))?e[0]:e}function GS(e,t,n){return e.replace(t,n)}function KS(e,t,n){return e.indexOf(t,n)}function QS(e,t){return 0|e.charCodeAt(t)}function ZS(e,t,n){return e.slice(t,n)}function XS(e){return e.length}function JS(e){return e.length}function ek(e,t){return t.push(e),e}function tk(e,t){return e.filter(function(e){return!qS(e,t)})}var nk=1,rk=1,ok=0,ak=0,ik=0,sk="";function lk(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:nk,column:rk,length:i,return:"",siblings:s}}function uk(e,t){return WS(lk("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ck(e){for(;e.root;)e=uk(e.root,{children:[e]});ek(e,e.siblings)}function dk(){return ik=ak>0?QS(sk,--ak):0,rk--,10===ik&&(rk=1,nk--),ik}function fk(){return ik=ak<ok?QS(sk,ak++):0,rk++,10===ik&&(rk=1,nk++),ik}function pk(){return QS(sk,ak)}function hk(){return ak}function mk(e,t){return ZS(sk,e,t)}function gk(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yk(e){return YS(mk(ak-1,wk(91===e?e+2:40===e?e+1:e)))}function vk(e){for(;(ik=pk())&&ik<33;)fk();return gk(e)>2||gk(ik)>3?"":" "}function bk(e,t){for(;--t&&fk()&&!(ik<48||ik>102||ik>57&&ik<65||ik>70&&ik<97););return mk(e,hk()+(t<6&&32==pk()&&32==fk()))}function wk(e){for(;fk();)switch(ik){case e:return ak;case 34:case 39:34!==e&&39!==e&&wk(ik);break;case 40:41===e&&wk(e);break;case 92:fk()}return ak}function xk(e,t){for(;fk()&&e+ik!==57&&(e+ik!==84||47!==pk()););return"/*"+mk(t,ak-1)+"*"+US(47===e?e:fk())}function Ck(e){for(;!gk(pk());)fk();return mk(e,ak)}function Sk(e){return function(e){return sk="",e}(kk("",null,null,null,[""],e=function(e){return nk=rk=1,ok=XS(sk=e),ak=0,[]}(e),0,[0],e))}function kk(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,x=a,C=r,S=b;g;)switch(h=v,v=fk()){case 40:if(108!=h&&58==QS(S,d-1)){-1!=KS(S+=GS(yk(v),"&","&\f"),"&\f",BS(u?s[u-1]:0))&&(y=-1);break}case 34:case 39:case 91:S+=yk(v);break;case 9:case 10:case 13:case 32:S+=vk(h);break;case 92:S+=bk(hk()-1,7);continue;case 47:switch(pk()){case 42:case 47:ek(Ek(xk(fk(),hk()),t,n,l),l);break;default:S+="/"}break;case 123*m:s[u++]=XS(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(S=GS(S,/\f/g,"")),p>0&&XS(S)-d&&ek(p>32?Rk(S+";",r,n,d-1,l):Rk(GS(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(ek(C=_k(S,t,n,u,c,o,s,b,w=[],x=[],d,a),a),123===v)if(0===c)kk(S,t,C,C,w,a,d,s,x);else switch(99===f&&110===QS(S,3)?100:f){case 100:case 108:case 109:case 115:kk(e,C,C,r&&ek(_k(e,C,C,0,0,o,s,b,o,w=[],d,x),x),o,x,d,s,r?w:x);break;default:kk(S,C,C,C,[""],x,0,s,x)}}u=c=p=0,m=y=1,b=S="",d=i;break;case 58:d=1+XS(S),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==dk())continue;switch(S+=US(v),v*m){case 38:y=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(XS(S)-1)*y,y=1;break;case 64:45===pk()&&(S+=yk(fk())),f=pk(),c=d=XS(b=S+=Ck(hk())),v++;break;case 45:45===h&&2==XS(S)&&(m=0)}}return a}function _k(e,t,n,r,o,a,i,s,l,u,c,d){for(var f=o-1,p=0===o?a:[""],h=JS(p),m=0,g=0,y=0;m<r;++m)for(var v=0,b=ZS(e,f+1,f=BS(g=i[m])),w=e;v<h;++v)(w=YS(g>0?p[v]+" "+b:GS(b,/&\f/g,p[v])))&&(l[y++]=w);return lk(e,t,n,0===o?$S:s,l,u,c,d)}function Ek(e,t,n,r){return lk(e,t,n,zS,US(ik),ZS(e,2,-2),0,r)}function Rk(e,t,n,r,o){return lk(e,t,n,HS,ZS(e,0,r),ZS(e,r+1,-1),r,o)}function Nk(e,t,n){switch(function(e,t){return 45^QS(e,0)?(((t<<2^QS(e,0))<<2^QS(e,1))<<2^QS(e,2))<<2^QS(e,3):0}(e,t)){case 5103:return IS+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return IS+e+e;case 4789:return LS+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return IS+e+LS+e+FS+e+e;case 5936:switch(QS(e,t+11)){case 114:return IS+e+FS+GS(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return IS+e+FS+GS(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return IS+e+FS+GS(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return IS+e+FS+e+e;case 6165:return IS+e+FS+"flex-"+e+e;case 5187:return IS+e+GS(e,/(\w+).+(:[^]+)/,IS+"box-$1$2"+FS+"flex-$1$2")+e;case 5443:return IS+e+FS+"flex-item-"+GS(e,/flex-|-self/g,"")+(qS(e,/flex-|baseline/)?"":FS+"grid-row-"+GS(e,/flex-|-self/g,""))+e;case 4675:return IS+e+FS+"flex-line-pack"+GS(e,/align-content|flex-|-self/g,"")+e;case 5548:return IS+e+FS+GS(e,"shrink","negative")+e;case 5292:return IS+e+FS+GS(e,"basis","preferred-size")+e;case 6060:return IS+"box-"+GS(e,"-grow","")+IS+e+FS+GS(e,"grow","positive")+e;case 4554:return IS+GS(e,/([^-])(transform)/g,"$1"+IS+"$2")+e;case 6187:return GS(GS(GS(e,/(zoom-|grab)/,IS+"$1"),/(image-set)/,IS+"$1"),e,"")+e;case 5495:case 3959:return GS(e,/(image-set\([^]*)/,IS+"$1$`$1");case 4968:return GS(GS(e,/(.+:)(flex-)?(.*)/,IS+"box-pack:$3"+FS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+IS+e+e;case 4200:if(!qS(e,/flex-|baseline/))return FS+"grid-column-align"+ZS(e,t)+e;break;case 2592:case 3360:return FS+GS(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,qS(e.props,/grid-\w+-end/)})?~KS(e+(n=n[t].value),"span",0)?e:FS+GS(e,"-start","")+e+FS+"grid-row-span:"+(~KS(n,"span",0)?qS(n,/\d+/):+qS(n,/\d+/)-+qS(e,/\d+/))+";":FS+GS(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return qS(e.props,/grid-\w+-start/)})?e:FS+GS(GS(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return GS(e,/(.+)-inline(.+)/,IS+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(XS(e)-1-t>6)switch(QS(e,t+1)){case 109:if(45!==QS(e,t+4))break;case 102:return GS(e,/(.+:)(.+)-([^]+)/,"$1"+IS+"$2-$3$1"+LS+(108==QS(e,t+3)?"$3":"$2-$3"))+e;case 115:return~KS(e,"stretch",0)?Nk(GS(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return GS(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,a,i,s){return FS+n+":"+r+s+(o?FS+n+"-span:"+(a?i:+i-+r)+s:"")+e});case 4949:if(121===QS(e,t+6))return GS(e,":",":"+IS)+e;break;case 6444:switch(QS(e,45===QS(e,14)?18:11)){case 120:return GS(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+IS+(45===QS(e,14)?"inline-":"")+"box$3$1"+IS+"$2$3$1"+FS+"$2box$3")+e;case 100:return GS(e,":",":"+FS)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return GS(e,"scroll-","scroll-snap-")+e}return e}function jk(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Pk(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case HS:return e.return=e.return||e.value;case zS:return"";case VS:return e.return=e.value+"{"+jk(e.children,r)+"}";case $S:if(!XS(e.value=e.props.join(",")))return""}return XS(n=jk(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ok(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case HS:return void(e.return=Nk(e.value,e.length,n));case VS:return jk([uk(e,{value:GS(e.value,"@","@"+IS)})],r);case $S:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(qS(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ck(uk(e,{props:[GS(t,/:(read-\w+)/,":-moz-$1")]})),ck(uk(e,{props:[t]})),WS(e,{props:tk(n,r)});break;case"::placeholder":ck(uk(e,{props:[GS(t,/:(plac\w+)/,":"+IS+"input-$1")]})),ck(uk(e,{props:[GS(t,/:(plac\w+)/,":-moz-$1")]})),ck(uk(e,{props:[GS(t,/:(plac\w+)/,FS+"input-$1")]})),ck(uk(e,{props:[t]})),WS(e,{props:tk(n,r)})}return""})}}var Mk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Tk="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Dk="active",Ak="data-styled-version",Fk="6.1.19",Lk="/*!sc*/\n",Ik="undefined"!=typeof window&&"undefined"!=typeof document,zk=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),$k=Object.freeze([]),Hk=Object.freeze({});var Vk=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Bk=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Uk=/(^-|-$)/g;function Wk(e){return e.replace(Bk,"-").replace(Uk,"")}var Yk=/(a)(d)/gi,qk=function(e){return String.fromCharCode(e+(e>25?39:97))};function Gk(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=qk(t%52)+n;return(qk(t%52)+n).replace(Yk,"$1-$2")}var Kk,Qk=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Zk=function(e){return Qk(5381,e)};function Xk(e){return Gk(Zk(e)>>>0)}function Jk(e){return"string"==typeof e&&!0}var e_="function"==typeof Symbol&&Symbol.for,t_=e_?Symbol.for("react.memo"):60115,n_=e_?Symbol.for("react.forward_ref"):60112,r_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i_=((Kk={})[n_]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Kk[t_]=a_,Kk);function s_(e){return("type"in(t=e)&&t.type.$$typeof)===t_?a_:"$$typeof"in e?i_[e.$$typeof]:r_;var t}var l_=Object.defineProperty,u_=Object.getOwnPropertyNames,c_=Object.getOwnPropertySymbols,d_=Object.getOwnPropertyDescriptor,f_=Object.getPrototypeOf,p_=Object.prototype;function h_(e,t,n){if("string"!=typeof t){if(p_){var r=f_(t);r&&r!==p_&&h_(e,r,n)}var o=u_(t);c_&&(o=o.concat(c_(t)));for(var a=s_(e),i=s_(t),s=0;s<o.length;++s){var l=o[s];if(!(l in o_||n&&n[l]||i&&l in i||a&&l in a)){var u=d_(t,l);try{l_(e,l,u)}catch(e){}}}}return e}function m_(e){return"function"==typeof e}function g_(e){return"object"==typeof e&&"styledComponentId"in e}function y_(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function v_(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function b_(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function w_(e,t,n){if(void 0===n&&(n=!1),!n&&!b_(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=w_(e[r],t[r]);else if(b_(t))for(var r in t)e[r]=w_(e[r],t[r]);return e}function x_(e,t){Object.defineProperty(e,"toString",{value:t})}function C_(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var S_=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw C_(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),s=(a=0,t.length);a<s;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(Lk);return t},e}(),k_=new Map,__=new Map,E_=1,R_=function(e){if(k_.has(e))return k_.get(e);for(;__.has(E_);)E_++;var t=E_++;return k_.set(e,t),__.set(t,e),t},N_=function(e,t){E_=t+1,k_.set(e,t),__.set(t,e)},j_="style[".concat(Tk,"][").concat(Ak,'="').concat(Fk,'"]'),P_=new RegExp("^".concat(Tk,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),O_=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(t,r)},M_=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Lk),o=[],a=0,i=r.length;a<i;a++){var s=r[a].trim();if(s){var l=s.match(P_);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(N_(c,u),O_(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},T_=function(e){for(var t=document.querySelectorAll(j_),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Tk)!==Dk&&(M_(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var D_=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Tk,"]")));return t[t.length-1]}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(Tk,Dk),r.setAttribute(Ak,Fk);var i="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},A_=function(){function e(e){this.element=D_(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw C_(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),F_=function(){function e(e){this.element=D_(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),L_=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),I_=Ik,z_={isServer:!Ik,useCSSOMInjection:!zk},$_=function(){function e(e,t,n){void 0===e&&(e=Hk),void 0===t&&(t={});var r=this;this.options=Cl(Cl({},z_),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ik&&I_&&(I_=!1,T_(this)),x_(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return __.get(e)}(n);if(void 0===o)return"continue";var a=e.names.get(o),i=t.getGroup(n);if(void 0===a||!a.size||0===i.length)return"continue";var s="".concat(Tk,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==a&&a.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(i).concat(s,'{content:"').concat(l,'"}').concat(Lk)},a=0;a<n;a++)o(a);return r}(r)})}return e.registerId=function(e){return R_(e)},e.prototype.rehydrate=function(){!this.server&&Ik&&T_(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Cl(Cl({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new L_(n):t?new A_(n):new F_(n)}(this.options),new S_(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(R_(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(R_(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(R_(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),H_=/&/g,V_=/^\s*\/\/.*$/gm;function B_(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=B_(e.children,t)),e})}var U_=new $_,W_=function(){var e,t,n,r=Hk,o=r.options,a=void 0===o?Hk:o,i=r.plugins,s=void 0===i?$k:i,l=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},u=s.slice();u.push(function(e){e.type===$S&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(H_,t).replace(n,l))}),a.prefix&&u.push(Ok),u.push(Pk);var c=function(r,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),e=s,t=o,n=new RegExp("\\".concat(t,"\\b"),"g");var l=r.replace(V_,""),c=Sk(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=B_(c,a.namespace));var d,f=[];return jk(c,function(e){var t=JS(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(u.concat((d=function(e){return f.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),f};return c.hash=s.length?s.reduce(function(e,t){return t.name||C_(15),Qk(e,t.name)},5381).toString():"",c}(),Y_=D.createContext({shouldForwardProp:void 0,styleSheet:U_,stylis:W_});function q_(){return T.useContext(Y_)}Y_.Consumer,D.createContext(void 0);var G_=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=W_);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,x_(this,function(){throw C_(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=W_),this.name+e.hash},e}(),K_=function(e){return e>="A"&&e<="Z"};function Q_(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;K_(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Z_=function(e){return null==e||!1===e||""===e},X_=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Z_(a)&&(Array.isArray(a)&&a.isCss||m_(a)?r.push("".concat(Q_(o),":"),a,";"):b_(a)?r.push.apply(r,kl(kl(["".concat(o," {")],X_(a),!1),["}"],!1)):r.push("".concat(Q_(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Mk||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function J_(e,t,n,r){return Z_(e)?[]:g_(e)?[".".concat(e.styledComponentId)]:m_(e)?!m_(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:J_(e(t),t,n,r):e instanceof G_?n?(e.inject(n,r),[e.getName(r)]):[e]:b_(e)?X_(e):Array.isArray(e)?Array.prototype.concat.apply($k,e.map(function(e){return J_(e,t,n,r)})):[e.toString()];var o}var eE=Zk(Fk),tE=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(m_(n)&&!g_(n))return!1}return!0}(e),this.componentId=t,this.baseHash=Qk(eE,t),this.baseStyle=n,$_.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=y_(r,this.staticRulesId);else{var o=v_(J_(this.rules,e,t,n)),a=Gk(Qk(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,a)){var i=n(o,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,i)}r=y_(r,a),this.staticRulesId=a}else{for(var s=Qk(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=v_(J_(c,e,t,n));s=Qk(s,d+u),l+=d}}if(l){var f=Gk(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=y_(r,f)}}return r},e}(),nE=D.createContext(void 0);nE.Consumer;var rE={};function oE(e,t,n){var r=g_(e),o=e,a=!Jk(e),i=t.attrs,s=void 0===i?$k:i,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Wk(e);rE[n]=(rE[n]||0)+1;var r="".concat(n,"-").concat(Xk(Fk+n+rE[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return Jk(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,f=t.displayName&&t.componentId?"".concat(Wk(t.displayName),"-").concat(t.componentId):t.componentId||u,p=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var y=new tE(n,f,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,a=e.defaultProps,i=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=D.useContext(nE),c=q_(),d=e.shouldForwardProp||c.shouldForwardProp,f=function(e,t,n){return void 0===n&&(n=Hk),e.theme!==n.theme&&e.theme||t||n.theme}(t,u,a)||Hk,p=function(e,t,n){for(var r,o=Cl(Cl({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var i=m_(r=e[a])?r(o):r;for(var s in i)o[s]="className"===s?y_(o[s],i[s]):"style"===s?Cl(Cl({},o[s]),i[s]):i[s]}return t.className&&(o.className=y_(o.className,t.className)),o}(r,t,f),h=p.as||l,m={};for(var g in p)void 0===p[g]||"$"===g[0]||"as"===g||"theme"===g&&p.theme===f||("forwardedAs"===g?m.as=p.forwardedAs:d&&!d(g,h)||(m[g]=p[g]));var y=function(e,t){var n=q_();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,p),v=y_(i,s);return y&&(v+=" "+y),p.className&&(v+=" "+p.className),m[Jk(h)&&!Vk.has(h)?"class":"className"]=v,n&&(m.ref=n),T.createElement(h,m)}(b,e,t)}v.displayName=d;var b=D.forwardRef(v);return b.attrs=p,b.componentStyle=y,b.displayName=d,b.shouldForwardProp=h,b.foldedComponentIds=r?y_(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=f,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)w_(e,o[r],!0);return e}({},o.defaultProps,e):e}}),x_(b,function(){return".".concat(b.styledComponentId)}),a&&h_(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function aE(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var iE=function(e){return Object.assign(e,{isCss:!0})};function sE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(m_(e)||b_(e))return iE(J_(aE($k,kl([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?J_(r):iE(J_(aE(r,t)))}function lE(e,t,n){if(void 0===n&&(n=Hk),!t)throw C_(1,t);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,sE.apply(void 0,kl([r],o,!1)))};return r.attrs=function(r){return lE(e,t,Cl(Cl({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return lE(e,t,Cl(Cl({},n),r))},r}var uE=function(e){return lE(oE,e)},cE=uE;function dE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=v_(sE.apply(void 0,kl([e],t,!1))),o=Xk(r);return new G_(o,r)}Vk.forEach(function(e){cE[e]=uE(e)});const fE={"aria-busy":!0,role:"progressbar"},pE=cE.div`
141
+ r.version="2.30.1",o(Kn),r.fn=ua,r.min=Jn,r.max=er,r.now=tr,r.utc=h,r.unix=ca,r.months=ya,r.isDate=d,r.locale=mn,r.invalid=v,r.duration=Nr,r.isMoment=S,r.weekdays=ba,r.parseZone=da,r.localeData=vn,r.isDuration=sr,r.monthsShort=va,r.weekdaysMin=xa,r.defineLocale=gn,r.updateLocale=yn,r.locales=bn,r.weekdaysShort=wa,r.normalizeUnits=ne,r.relativeTimeRounding=oi,r.relativeTimeThreshold=ai,r.calendarFormat=Hr,r.prototype=ua,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}(Kw)),Kw.exports),Zw=n(Qw),Xw="Dialog",[Jw,ex]=qo(Xw),[tx,nx]=Jw(Xw),rx=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=T.useRef(null),l=T.useRef(null),[u,c]=Zo({prop:r,defaultProp:o??!1,onChange:a,caller:Xw});return m.jsx(tx,{scope:t,triggerRef:s,contentRef:l,contentId:Aa(),titleId:Aa(),descriptionId:Aa(),open:u,onOpenChange:c,onOpenToggle:T.useCallback(()=>c(e=>!e),[c]),modal:i,children:n})};rx.displayName=Xw;var ox="DialogTrigger";T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=nx(ox,n),a=Yo(t,o.triggerRef);return m.jsx(aa.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":kx(o.open),...r,ref:a,onClick:Bo(e.onClick,o.onOpenToggle)})}).displayName=ox;var ax="DialogPortal",[ix,sx]=Jw(ax,{forceMount:void 0}),lx=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=nx(ax,t);return m.jsx(ix,{scope:t,forceMount:n,children:T.Children.map(r,e=>m.jsx(Qs,{present:n||a.open,children:m.jsx(Ks,{asChild:!0,container:o,children:e})}))})};lx.displayName=ax;var ux="DialogOverlay",cx=T.forwardRef((e,t)=>{const n=sx(ux,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=nx(ux,e.__scopeDialog);return a.modal?m.jsx(Qs,{present:r||a.open,children:m.jsx(fx,{...o,ref:t})}):null});cx.displayName=ux;var dx=ea("DialogOverlay.RemoveScroll"),fx=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=nx(ux,n);return m.jsx(cu,{as:dx,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(aa.div,{"data-state":kx(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),px="DialogContent",hx=T.forwardRef((e,t)=>{const n=sx(px,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=nx(px,e.__scopeDialog);return m.jsx(Qs,{present:r||a.open,children:a.modal?m.jsx(mx,{...o,ref:t}):m.jsx(gx,{...o,ref:t})})});hx.displayName=px;var mx=T.forwardRef((e,t)=>{const n=nx(px,e.__scopeDialog),r=T.useRef(null),o=Yo(t,n.contentRef,r);return T.useEffect(()=>{const e=r.current;if(e)return Cl(e)},[]),m.jsx(yx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bo(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Bo(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Bo(e.onFocusOutside,e=>e.preventDefault())})}),gx=T.forwardRef((e,t)=>{const n=nx(px,e.__scopeDialog),r=T.useRef(!1),o=T.useRef(!1);return m.jsx(yx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),yx=T.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=nx(px,n),l=T.useRef(null),u=Yo(t,l);return xa(),m.jsxs(m.Fragment,{children:[m.jsx(Ea,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(ga,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":kx(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Nx,{titleId:s.titleId}),m.jsx(jx,{contentRef:l,descriptionId:s.descriptionId})]})]})}),vx="DialogTitle",bx=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=nx(vx,n);return m.jsx(aa.h2,{id:o.titleId,...r,ref:t})});bx.displayName=vx;var wx="DialogDescription",xx=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=nx(wx,n);return m.jsx(aa.p,{id:o.descriptionId,...r,ref:t})});xx.displayName=wx;var Cx="DialogClose",Sx=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=nx(Cx,n);return m.jsx(aa.button,{type:"button",...r,ref:t,onClick:Bo(e.onClick,()=>o.onOpenChange(!1))})});function kx(e){return e?"open":"closed"}Sx.displayName=Cx;var _x="DialogTitleWarning",[Ex,Rx]=function(e,t){const n=T.createContext(t),r=e=>{const{children:t,...r}=e,o=T.useMemo(()=>r,Object.values(r));return m.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=T.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(_x,{contentName:px,titleName:vx,docsSlug:"dialog"}),Nx=({titleId:e})=>{const t=Rx(_x),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return T.useEffect(()=>{if(e){document.getElementById(e)||console.error(n)}},[n,e]),null},jx=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Rx("DialogDescriptionWarning").contentName}}.`;return T.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){document.getElementById(t)||console.warn(n)}},[n,e,t]),null},Px=rx,Ox=lx,Mx=cx,Tx=hx,Dx=bx,Ax=xx,Fx=Sx;const Lx=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Ix=Rr,zx=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return Ix(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=Lx(t)||Lx(r);return o[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n})?[...e,n,r]:e},[]);return Ix(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},$x=Px,Hx=Fx,Vx=Ox,Bx=T.forwardRef(({className:e,...t},n)=>m.jsx(Mx,{className:Ao("fixed inset-0 z-50 bg-[#1E1E1E]/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Bx.displayName=Mx.displayName;const Ux=zx("fixed z-50 gap-4 bg-white p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 dark:bg-neutral-950",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Wx=T.forwardRef(({side:e="right",className:t,children:n,...r},o)=>m.jsxs(Vx,{children:[m.jsx(Bx,{}),m.jsx(Tx,{ref:o,className:Ao(Ux({side:e}),t),...r,children:n})]}));Wx.displayName=Tx.displayName;T.forwardRef(({className:e,...t},n)=>m.jsx(Dx,{ref:n,className:Ao("text-lg font-semibold text-neutral-950 dark:text-neutral-50",e),...t})).displayName=Dx.displayName;function Yx({children:e,isOpen:t,onClose:n,title:r,className:o}){const[a,i]=T.useState(!1);return m.jsx($x,{open:t,onOpenChange:n,children:m.jsxs(Wx,{className:Ao("p-[30px] rounded-l-xl lg:max-w-full space-y-6 overflow-auto",o,a?"w-full rounded-l-none":null),children:[m.jsxs("div",{className:"flex items-center justify-between border-b pb-2",children:[m.jsx("h1",{className:"text-gray-900 font-semibold text-xl",children:r}),m.jsxs("div",{className:"flex items-center gap-5",children:[m.jsx("button",{className:"w-9 h-9 flex items-center justify-center rounded-md hover:ring-2 ring-inset ring-dark",onClick:()=>{i(!a)},children:$y.expand}),m.jsx(Hx,{asChild:!0,className:"w-9 h-9 rounded-md flex items-center justify-center bg-danger_light",children:m.jsxs("button",{children:[" ",D.cloneElement($y.close2,{fill:"#F1416C"})]})})]})]}),e]})})}function qx({children:e,className:t}){return m.jsx("div",{className:Ao("border rounded-xl py-[30px] border-gray-200 ",t),children:e})}function Gx(){return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex justify-between",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx(Vo,{className:"h-5 w-[500px] rounded-md"}),m.jsx(Vo,{className:"h-5 w-[500px] rounded-md"})]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx(Vo,{className:"h-9 w-[140px] rounded-md"}),m.jsx(Vo,{className:"h-9 w-[140px] rounded-md"})]})]}),m.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[m.jsxs(qx,{className:"p-4 flex flex-col gap-3",children:[m.jsx(Vo,{className:"flex-grow w-full rounded-md"}),m.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[m.jsx(Vo,{className:"h-[79px] rounded-md"}),m.jsx(Vo,{className:"h-[79px] rounded-md"}),m.jsx(Vo,{className:"h-[79px] rounded-md"})]})]}),m.jsxs("div",{className:"space-y-8 col-span-2",children:[m.jsx(Vo,{className:"h-9 w-full rounded-md"}),m.jsx(Vo,{className:"h-4 w-[326px] rounded-md"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(Vo,{className:"h-3.5 w-[150px] rounded-md"}),m.jsx(Vo,{className:"h-10 w-full rounded-md"})]}),m.jsx(Vo,{className:"h-9 w-[500px] rounded-md"}),m.jsxs("div",{className:"flex gap-3",children:[m.jsx(Vo,{className:"h-12 w-[115px] rounded-md"}),m.jsx(Vo,{className:"h-12 w-[150px] rounded-md"}),m.jsx(Vo,{className:"h-12 w-[171px] rounded-md"})]}),m.jsx(Vo,{className:"h-3.5 w-[337px] rounded-md"})]})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx(Vo,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(Vo,{className:"h-3.5 w-[140px] rounded-md"})]}),m.jsx("div",{className:"grid grid-cols-4 gap-3",children:[1,2,3,4].map((e,t)=>m.jsxs("div",{className:"border rounded-xl border-gray-200 p-4 gap-4 flex flex-col",children:[m.jsx(Vo,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(Vo,{className:"h-10 w-[200px] rounded-md"})]},t))}),m.jsx("div",{className:"space-y-6",children:[1,2,3,4].map((e,t)=>m.jsxs("div",{className:" gap-4 flex flex-col",children:[m.jsx(Vo,{className:"h-3.5 w-[140px] rounded-md"}),m.jsx(Vo,{className:"h-[163px] w-[896px] rounded-md"})]},t))})]})}T.forwardRef(({className:e,...t},n)=>m.jsx(Ax,{ref:n,className:Ao("text-sm text-neutral-500 dark:text-neutral-400",e),...t})).displayName=Ax.displayName;var Kx="https://unpkg.com/@simpoobusiness/sdk/dist/assets/placeholder-image94ba15ea00cc66fe.svg";function Qx({images:e}){return m.jsxs(qx,{className:"p-5 flex flex-col gap-2.5",children:[m.jsx("div",{className:"relative flex-grow",children:m.jsx("img",{src:e?.[0]??Kx,sizes:"100%",alt:"item image",draggable:!1,className:"rounded-xl object-cover w-full h-full"})}),m.jsx("div",{className:"flex gap-4 overflow-auto",children:e.filter((e,t)=>0!==t).map((e,t)=>m.jsx("div",{className:"w-[89px] h-[79px] relative shrink-0",children:m.jsx("img",{src:e??Kx,alt:"item image",draggable:!1,className:"rounded-xl object-cover h-full w-full"})},t))})]})}var Zx="horizontal",Xx=["horizontal","vertical"],Jx=T.forwardRef((e,t)=>{const{decorative:n,orientation:r=Zx,...o}=e,a=function(e){return Xx.includes(e)}(r)?r:Zx,i=n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"};return m.jsx(aa.div,{"data-orientation":a,...i,...o,ref:t})});Jx.displayName="Separator";var eC=Jx;const tC=T.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>m.jsx(eC,{ref:o,decorative:n,orientation:t,className:Ao("shrink-0 bg-gray-300 dark:bg-neutral-800","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",e),...r}));function nC({data:e,printLabel:t}){const n=[{tag:"reorder level",value:`${e?.reorder_level} ${e?.unit_resource?.name}`},{tag:"packing groups",value:`${e?.item_group?.length} group(s)`},{tag:"variations",value:`${e?.variation?.length} variable(s)`},{tag:"extras",value:`${e?.extras?.length} extras`}];return m.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[m.jsx(Qx,{images:e?.images?.map(e=>e.image)}),m.jsxs("div",{className:"col-span-2 flex flex-col gap-9",children:[m.jsxs("div",{className:"flex gap-4 bg-primary_light p-2.5 rounded-md",children:[m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Cost price:"," ",m.jsx("span",{className:"text-dark font-bold text-[15px]",children:Uy(Number(e?.cost_price))})]}),m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Selling price:"," ",e?.duplicate_prices?.map((t,n)=>m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-dark font-bold text-[15px] px-2",children:Uy(Number(t.selling_price))},n),n<e?.duplicate_prices?.length-1&&"-"]}))]})]}),m.jsxs("div",{className:"flex gap-2.5",children:[m.jsxs("p",{className:"text-gray-800 text-sm font-medium",children:["In stock:"," ",m.jsxs("span",{className:"text-dark font-bold text-[15px]",children:[Wy(Number(e?.quantity))," ",e?.item_unit]})]}),"|",m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Total sold:"," ",m.jsxs("span",{className:"text-dark font-bold text-[15px]",children:[Wy(e?.total_sold)," ",e?.item_unit]})]})]}),m.jsxs("div",{className:"space-y-2.5",children:[m.jsx("h2",{className:"text-gray-800 text-sm font-bold",children:"Description"}),m.jsx("p",{className:"text-gray-800 font-normal text-sm",children:e?.description??"No description..."})]}),m.jsx("div",{className:"flex gap-5 items-center",children:n.map((e,t)=>m.jsxs("div",{className:"flex gap-5 items-center",children:[m.jsxs("div",{className:"flex flex-col gap-2.5",children:[m.jsx("p",{className:"text-dark font-medium text-sm first-letter:uppercase",children:e.tag}),m.jsx("p",{className:"text-primary",children:e.value})]}),t<n.length-1&&m.jsx(tC,{className:"bg-[#7E8299] h-[30px] w-[1px]"})]},t))}),m.jsxs("div",{className:"flex gap-2.5 items-center",children:[m.jsxs("p",{className:"text-gray-700 text-sm font-medium flex gap-2",children:["Category:"," ",e?.category?.map((e,t)=>m.jsxs("span",{className:"text-dark font-normal text-[15px]",children:[e.name," "]},t))]}),m.jsx(tC,{className:"bg-[#7E8299] h-[14px] w-[1px]"}),m.jsxs("p",{className:"text-gray-700 text-sm font-medium",children:["Collection:"," ",e?.item_tags?.map((e,t)=>m.jsx("span",{className:"text-dark font-normal text-[15px]",children:e.name},t))]})]})]})]})}tC.displayName=eC.displayName;var rC=.999,oC=/[\\\/_+.#"@\[\(\{&]/,aC=/[\\\/_+.#"@\[\(\{&]/g,iC=/[\s-]/,sC=/[\s-]/g;function lC(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?1:.99;var s=`${o},${a}`;if(void 0!==i[s])return i[s];for(var l,u,c,d,f=r.charAt(a),p=n.indexOf(f,o),h=0;p>=0;)(l=lC(e,t,n,r,p+1,a+1,i))>h&&(p===o?l*=1:oC.test(e.charAt(p-1))?(l*=.8,(c=e.slice(o,p-1).match(aC))&&o>0&&(l*=Math.pow(rC,c.length))):iC.test(e.charAt(p-1))?(l*=.9,(d=e.slice(o,p-1).match(sC))&&o>0&&(l*=Math.pow(rC,d.length))):(l*=.17,o>0&&(l*=Math.pow(rC,p-o))),e.charAt(p)!==t.charAt(a)&&(l*=.9999)),(l<.1&&n.charAt(p-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(p-1)!==r.charAt(a))&&(.1*(u=lC(e,t,n,r,p+1,a+2,i))>l&&(l=.1*u)),l>h&&(h=l),p=n.indexOf(f,p+1);return i[s]=h,h}function uC(e){return e.toLowerCase().replace(sC," ")}function cC(e,t,n){return lC(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,uC(e),uC(t),0,0,{})}var dC='[cmdk-group=""]',fC='[cmdk-group-items=""]',pC='[cmdk-item=""]',hC=`${pC}:not([aria-disabled="true"])`,mC="cmdk-item-select",gC="data-value",yC=(e,t,n)=>cC(e,t,n),vC=T.createContext(void 0),bC=()=>T.useContext(vC),wC=T.createContext(void 0),xC=()=>T.useContext(wC),CC=T.createContext(void 0),SC=T.forwardRef((e,t)=>{let n=LC(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=LC(()=>new Set),o=LC(()=>new Map),a=LC(()=>new Map),i=LC(()=>new Set),s=AC(e),{label:l,children:u,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:g=!0,...y}=e,v=Aa(),b=Aa(),w=Aa(),x=T.useRef(null),C=$C();FC(()=>{if(void 0!==c){let e=c.trim();n.current.value=e,S.emit()}},[c]),FC(()=>{C(6,j)},[]);let S=T.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)N(),E(),C(1,R);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(o=document.getElementById(v))||o.focus()}if(C(7,()=>{var e;n.current.selectedItemId=null==(e=P())?void 0:e.id,S.emit()}),r||C(5,j),void 0!==(null==(a=s.current)?void 0:a.value)){let e=null!=t?t:"";return void(null==(l=(i=s.current).onValueChange)||l.call(i,e))}}S.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),k=T.useMemo(()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,_(t,r)),C(2,()=>{E(),S.emit()}))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),C(3,()=>{N(),E(),n.current.value||R(),S.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=P();C(4,()=>{N(),(null==t?void 0:t.getAttribute("id"))===e&&R(),S.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:v,inputId:w,labelId:b,listInnerRef:x}),[]);function _(e,t){var r,o;let a=null!=(o=null==(r=s.current)?void 0:r.filter)?o:yC;return e?a(e,n.current.search,t):0}function E(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=o.current.get(n),a=0;r.forEach(t=>{let n=e.get(t);a=Math.max(n,a)}),t.push([n,a])});let r=x.current;O().sort((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)}).forEach(e=>{let t=e.closest(fC);t?t.appendChild(e.parentElement===t?e:e.closest(`${fC} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${fC} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=x.current)?void 0:t.querySelector(`${dC}[${gC}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function R(){let e=O().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(gC);S.setState("value",t||void 0)}function N(){var e,t,i,l;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let u=0;for(let o of r.current){let r=_(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(l=null==(i=a.current.get(o))?void 0:i.keywords)?l:[]);n.current.filtered.items.set(o,r),r>0&&u++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=u}function j(){var e,t,n;let r=P();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(dC))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function P(){var e;return null==(e=x.current)?void 0:e.querySelector(`${pC}[aria-selected="true"]`)}function O(){var e;return Array.from((null==(e=x.current)?void 0:e.querySelectorAll(hC))||[])}function M(e){let t=O()[e];t&&S.setState("value",t.getAttribute(gC))}function D(e){var t;let n=P(),r=O(),o=r.findIndex(e=>e===n),a=r[o+e];null!=(t=s.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&S.setState("value",a.getAttribute(gC))}function A(e){let t,n=P(),r=null==n?void 0:n.closest(dC);for(;r&&!t;)r=e>0?TC(r,dC):DC(r,dC),t=null==r?void 0:r.querySelector(hC);t?S.setState("value",t.getAttribute(gC)):D(e)}let F=()=>M(O().length-1),L=e=>{e.preventDefault(),e.metaKey?F():e.altKey?A(1):D(1)},I=e=>{e.preventDefault(),e.metaKey?M(0):e.altKey?A(-1):D(-1)};return T.createElement(aa.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=y.onKeyDown)||t.call(y,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!n)switch(e.key){case"n":case"j":g&&e.ctrlKey&&L(e);break;case"ArrowDown":L(e);break;case"p":case"k":g&&e.ctrlKey&&I(e);break;case"ArrowUp":I(e);break;case"Home":e.preventDefault(),M(0);break;case"End":e.preventDefault(),F();break;case"Enter":{e.preventDefault();let t=P();if(t){let e=new Event(mC);t.dispatchEvent(e)}}}}},T.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:VC},l),HC(e,e=>T.createElement(wC.Provider,{value:S},T.createElement(vC.Provider,{value:k},e))))}),kC=T.forwardRef((e,t)=>{var n,r;let o=Aa(),a=T.useRef(null),i=T.useContext(CC),s=bC(),l=AC(e),u=null!=(r=null==(n=l.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;FC(()=>{if(!u)return s.item(o,null==i?void 0:i.id)},[u]);let c=zC(o,a,[e.value,e.children,a],e.keywords),d=xC(),f=IC(e=>e.value&&e.value===c.current),p=IC(e=>!(!u&&!1!==s.filter())||(!e.search||e.filtered.items.get(o)>0));function h(){var e,t;m(),null==(t=(e=l.current).onSelect)||t.call(e,c.current)}function m(){d.setState("value",c.current,!0)}if(T.useEffect(()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(mC,h),()=>t.removeEventListener(mC,h)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:y,onSelect:v,forceMount:b,keywords:w,...x}=e;return T.createElement(aa.div,{ref:Wo(a,t),...x,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||s.getDisablePointerSelection()?void 0:m,onClick:g?void 0:h},e.children)}),_C=T.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=Aa(),s=T.useRef(null),l=T.useRef(null),u=Aa(),c=bC(),d=IC(e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(i)));FC(()=>c.group(i),[]),zC(i,s,[e.value,e.heading,l]);let f=T.useMemo(()=>({id:i,forceMount:o}),[o]);return T.createElement(aa.div,{ref:Wo(s,t),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&T.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),HC(e,e=>T.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},T.createElement(CC.Provider,{value:f},e))))}),EC=T.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=T.useRef(null),a=IC(e=>!e.search);return n||a?T.createElement(aa.div,{ref:Wo(o,t),...r,"cmdk-separator":"",role:"separator"}):null}),RC=T.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=xC(),i=IC(e=>e.search),s=IC(e=>e.selectedItemId),l=bC();return T.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),T.createElement(aa.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),NC=T.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=T.useRef(null),i=T.useRef(null),s=IC(e=>e.selectedItemId),l=bC();return T.useEffect(()=>{if(i.current&&a.current){let e,t=i.current,n=a.current,r=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}},[]),T.createElement(aa.div,{ref:Wo(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},HC(e,e=>T.createElement("div",{ref:Wo(i,l.listInnerRef),"cmdk-list-sizer":""},e)))}),jC=T.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return T.createElement(Px,{open:n,onOpenChange:r},T.createElement(Ox,{container:i},T.createElement(Mx,{"cmdk-overlay":"",className:o}),T.createElement(Tx,{"aria-label":e.label,"cmdk-dialog":"",className:a},T.createElement(SC,{ref:t,...s}))))}),PC=T.forwardRef((e,t)=>IC(e=>0===e.filtered.count)?T.createElement(aa.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),OC=T.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return T.createElement(aa.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},HC(e,e=>T.createElement("div",{"aria-hidden":!0},e)))}),MC=Object.assign(SC,{List:NC,Item:kC,Input:RC,Group:_C,Separator:EC,Dialog:jC,Empty:PC,Loading:OC});function TC(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function DC(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function AC(e){let t=T.useRef(e);return FC(()=>{t.current=e}),t}var FC="undefined"==typeof window?T.useEffect:T.useLayoutEffect;function LC(e){let t=T.useRef();return void 0===t.current&&(t.current=e()),t}function IC(e){let t=xC(),n=()=>e(t.snapshot());return T.useSyncExternalStore(t.subscribe,n,n)}function zC(e,t,n,r=[]){let o=T.useRef(),a=bC();return FC(()=>{var i;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=r.map(e=>e.trim());a.value(e,s,l),null==(i=t.current)||i.setAttribute(gC,s),o.current=s}),o}var $C=()=>{let[e,t]=T.useState(),n=LC(()=>new Map);return FC(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function HC({asChild:e,children:t},n){return e&&T.isValidElement(t)?T.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var VC={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const BC=Px,UC=Ox,WC=T.forwardRef(({className:e,...t},n)=>m.jsx(Mx,{ref:n,className:Ao("fixed inset-0 z-50 bg-[#1E1E1E]/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));WC.displayName=Mx.displayName;const YC=T.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(UC,{children:[m.jsx(WC,{}),m.jsxs(Tx,{ref:r,className:Ao("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg dark:border-neutral-800 dark:bg-neutral-950",e),...n,children:[t,m.jsxs(Fx,{className:"hidden absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400",children:[m.jsx(Sd,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));YC.displayName=Tx.displayName;const qC=T.forwardRef(({className:e,...t},n)=>m.jsx(Dx,{ref:n,className:Ao("text-lg font-semibold leading-none tracking-tight",e),...t}));qC.displayName=Dx.displayName;const GC=T.forwardRef(({className:e,...t},n)=>m.jsx(Ax,{ref:n,className:Ao("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));GC.displayName=Ax.displayName;const KC=T.forwardRef(({className:e,...t},n)=>m.jsx(MC,{ref:n,className:Ao("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50",e),...t}));KC.displayName=MC.displayName;const QC=T.forwardRef(({className:e,...t},n)=>m.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m.jsx(Cd,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m.jsx(MC.Input,{ref:n,className:Ao("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",e),...t})]}));QC.displayName=MC.Input.displayName;const ZC=T.forwardRef(({className:e,...t},n)=>m.jsx(MC.List,{ref:n,className:Ao("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ZC.displayName=MC.List.displayName;const XC=T.forwardRef((e,t)=>m.jsx(MC.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));XC.displayName=MC.Empty.displayName;const JC=T.forwardRef(({className:e,...t},n)=>m.jsx(MC.Group,{ref:n,className:Ao("overflow-hidden p-1 text-neutral-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 dark:text-neutral-50 dark:[&_[cmdk-group-heading]]:text-neutral-400",e),...t}));JC.displayName=MC.Group.displayName;T.forwardRef(({className:e,...t},n)=>m.jsx(MC.Separator,{ref:n,className:Ao("-mx-1 h-px bg-neutral-200 dark:bg-neutral-800",e),...t})).displayName=MC.Separator.displayName;const eS=T.forwardRef(({className:e,...t},n)=>m.jsx(MC.Item,{ref:n,className:Ao("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-primary_light data-[selected=true]:text-primary data-[disabled=true]:opacity-50 dark:data-[selected='true']:bg-primary_light dark:data-[selected=true]:text-primary",e),...t}));eS.displayName=MC.Item.displayName;var tS="Popover",[nS,rS]=qo(tS,[js]),oS=js(),[aS,iS]=nS(tS),sS=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=oS(t),l=T.useRef(null),[u,c]=T.useState(!1),[d,f]=Zo({prop:r,defaultProp:o??!1,onChange:a,caller:tS});return m.jsx(Ws,{...s,children:m.jsx(aS,{scope:t,contentId:Aa(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:T.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:T.useCallback(()=>c(!0),[]),onCustomAnchorRemove:T.useCallback(()=>c(!1),[]),modal:i,children:n})})};sS.displayName=tS;var lS="PopoverAnchor";T.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=iS(lS,n),a=oS(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return T.useEffect(()=>(i(),()=>s()),[i,s]),m.jsx(Ys,{...a,...r,ref:t})}).displayName=lS;var uS="PopoverTrigger",cS=T.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=iS(uS,n),a=oS(n),i=Yo(t,o.triggerRef),s=m.jsx(aa.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":SS(o.open),...r,ref:i,onClick:Bo(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:m.jsx(Ys,{asChild:!0,...a,children:s})});cS.displayName=uS;var dS="PopoverPortal",[fS,pS]=nS(dS,{forceMount:void 0}),hS=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=iS(dS,t);return m.jsx(fS,{scope:t,forceMount:n,children:m.jsx(Qs,{present:n||a.open,children:m.jsx(Ks,{asChild:!0,container:o,children:r})})})};hS.displayName=dS;var mS="PopoverContent",gS=T.forwardRef((e,t)=>{const n=pS(mS,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=iS(mS,e.__scopePopover);return m.jsx(Qs,{present:r||a.open,children:a.modal?m.jsx(vS,{...o,ref:t}):m.jsx(bS,{...o,ref:t})})});gS.displayName=mS;var yS=ea("PopoverContent.RemoveScroll"),vS=T.forwardRef((e,t)=>{const n=iS(mS,e.__scopePopover),r=T.useRef(null),o=Yo(t,r),a=T.useRef(!1);return T.useEffect(()=>{const e=r.current;if(e)return Cl(e)},[]),m.jsx(cu,{as:yS,allowPinchZoom:!0,children:m.jsx(wS,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bo(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Bo(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:Bo(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),bS=T.forwardRef((e,t)=>{const n=iS(mS,e.__scopePopover),r=T.useRef(!1),o=T.useRef(!1);return m.jsx(wS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=n.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),wS=T.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=iS(mS,n),p=oS(n);return xa(),m.jsx(Ea,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(ga,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:m.jsx(qs,{"data-state":SS(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),xS="PopoverClose",CS=T.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=iS(xS,n);return m.jsx(aa.button,{type:"button",...r,ref:t,onClick:Bo(e.onClick,()=>o.onOpenChange(!1))})});CS.displayName=xS;function SS(e){return e?"open":"closed"}T.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=oS(n);return m.jsx(Gs,{...o,...r,ref:t})}).displayName="PopoverArrow";var kS=hS,_S=gS;const ES=sS,RS=cS,NS=T.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>m.jsx(kS,{children:m.jsx(_S,{ref:o,align:t,sideOffset:n,className:Ao("z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r})}));NS.displayName=_S.displayName;const jS=zx("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300",{variants:{variant:{default:"bg-neutral-900 text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",destructive:"bg-red-500 text-neutral-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",outline:"border border-neutral-200 bg-white hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",secondary:"bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",ghost:"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",link:"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),PS=T.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?ta:"button";return m.jsx(i,{className:Ao(jS({variant:t,size:n,className:e})),ref:a,...o})});PS.displayName="Button";const OS=({label:e,options:t=[],className:n,placeholder:r,value:o="",onValueChange:a,required:i,error:s,showSearch:l=!0,showOutline:u=!0,icon:c,info:d,optional:f,labelClass:p,actionLabel:h,actionLabelAction:g,actionLabelInfo:y,searchPlaceholder:v,disabled:b,triggerClass:w,loading:x,showError:C,onChangeSearch:S,searching:k,infoAlignment:_,align:E="start",valueClass:R})=>{const[N,j]=T.useState(""),[P,O]=T.useState(!1),[M,D]=T.useState(0),A=T.useRef(null);T.useEffect(()=>{const e=()=>{A.current&&D(A?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);return m.jsx(m.Fragment,{children:x?m.jsx(Vo,{className:"w-full h-[48px]"}):m.jsxs("div",{className:Ao("flex flex-col gap-2.5",n),children:[m.jsxs("div",{className:Ao("flex justify-between gap-2 flex-wrap",e?null:"hidden"),children:[e&&m.jsxs("label",{className:Ao("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",p),children:[m.jsx("span",{className:"first-letter:inherit",children:e})," ",i?m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(fv,{fieldName:e,align:_,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),h&&m.jsxs("button",{onClick:g,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[h,y&&m.jsx(fv,{fieldName:h,children:m.jsx("p",{className:"font-normal first-letter:uppercase text-left",children:y})})]})]}),m.jsxs(ES,{modal:!0,open:P,onOpenChange:O,children:[m.jsx(RS,{asChild:!0,children:m.jsxs(PS,{ref:A,variant:"outline",role:"combobox","aria-expanded":P,className:Ao(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${(s||C)&&"!border-danger"}`,w),disabled:b,children:[m.jsx("span",{className:Ao("flex gap-2 first-letter:uppercase capitalize text-[#5E6278] justify-start truncate",o?"text-dark":null,R),children:o?(e=>{const n=t?.find(t=>t.value===e);return n?.label})(o):r??"Select..."}),m.jsx(wd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(NS,{style:{width:M},className:"min-w-[280px] p-0 bg-white rounded-xl border-gray-200",align:E,children:m.jsxs(KC,{className:"w-full",children:[l&&m.jsx(QC,{onChangeCapture:S,className:"placeholder:text-xs",placeholder:v??"Search..."}),k?m.jsx("div",{className:"flex flex-col gap-2 p-2",children:[1,2,3].map((e,t)=>m.jsx(Vo,{className:"h-9 rounded-md"},t))}):m.jsx(XC,{children:"No result found."}),m.jsx(JC,{children:m.jsx(ZC,{className:"",children:t?.map(e=>m.jsxs(eS,{value:"string"==typeof e.label?e.label:e?.searchId,className:`first-letter:uppercase capitalize mb-1 hover:bg-primary_light w-full rounded-md hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o===e.value&&"bg-primary_light text-primary"}`,onSelect:()=>{a&&a(e.value),O(!1)},children:[m.jsx(gd,{className:Ao("mr-2 h-4 w-4",o===e.value?"opacity-100":"opacity-0")}),e.label]},`${"string"==typeof e.label?e.label:e?.searchId}${e.value}`))})})]})})]}),s&&m.jsx("p",{className:"text-danger text-xs font-normal",children:s})]})})};var MS="https://unpkg.com/@simpoobusiness/sdk/dist/assets/image-placeholdere1821db1b147e2aa.png";function TS({data:e}){const[t,n]=T.useState(e?.total_selling_price||0),r=[{label:"Stock Quantity",value:Wy(Number(e?.quantity)),desc:null},{label:"Total Cost",value:Uy(Number(e?.total_cost_price)),desc:null},{label:"Total Selling Price",value:Uy(t),desc:m.jsx(OS,{options:e?.prices?.map(e=>({label:e.priceGroup.name,value:e.selling_price.toString()})),onValueChange:e=>n(Number(e)),value:t?.toString(),triggerClass:"h-8",showSearch:!1,placeholder:"Select price"})},{label:"Profit to be made",value:Uy(t-e?.total_cost_price),desc:null}],o=[{tag:"Barcode",value:e?.barcode.map(e=>e.barcode)},{tag:"SKU",value:e?.sku},{tag:"System code",value:e?.itemcode.toString()}],a=["S/N","Batch number","Quantity","Expiry date","Unit cost"],i=[{tag:"Extras",headers:["S/N","image","extra name","quantity inside ","selling price"],body:e?.extras?.map((e,t)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:t+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:MS,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:e.extra.name}),m.jsxs("td",{children:[e.quantity," ",e.extra.item_unit]}),m.jsx("td",{children:Uy(Number(e.selling_price))})]},t))||[]},{tag:"Raw materials",headers:["S/N","image","material name","quantity inside ","selling price"],body:e?.material?.map((e,t)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:t+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:MS,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:e.raw_material?.name}),m.jsxs("td",{children:[e.quantity," ",e.raw_material?.item_unit]}),m.jsx("td",{children:Uy(Number(e.selling_price))})]},t))},{tag:"Packing groups",headers:["S/N","image","group name","quantity inside ","selling price","Group code","print label"],body:e?.item_group?.map((t,n)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:n+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:MS,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:t.group_name}),m.jsxs("td",{children:[t.quantity," ",e.item_unit]}),m.jsx("td",{children:Uy(Number(t.selling_price))}),m.jsx("td",{children:t.barcode}),m.jsx("td",{children:m.jsx("button",{className:"w-6 h-6 items-center flex justify-center",children:$y.printer_blue})})]},n))},{tag:"Variations",headers:["S/N","image","variation","quantity ","selling price","code","print label"],body:e?.variation?.map((t,n)=>m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:n+1}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:t.image??MS,className:"object-cover w-full h-full"})})}),m.jsx("td",{children:t.variation_values.map((e,n)=>m.jsxs("span",{className:"pr-2",children:[e.attribute_value.value_name," ",t?.variation_values?.length-1>n&&"-"]},n))}),m.jsxs("td",{children:[t.quantity,e?.item_unit]}),m.jsx("td",{children:Uy(Number(t.locationprices?.[0]?.selling_price))}),m.jsx("td",{children:t.barcode}),m.jsx("td",{children:m.jsx("button",{className:"w-6 h-6 items-center flex justify-center",children:$y.printer_blue})})]},n))}];return m.jsxs("div",{className:"space-y-6",children:[m.jsx("div",{className:"grid grid-cols-4 gap-2.5",children:r.map((n,o)=>m.jsxs("div",{className:"border rounded-xl border-gray-200 p-4 gap-4 flex flex-col",children:[m.jsx("p",{className:"text-dark text-sm font-medium",children:n.label}),m.jsxs("p",{title:n.value,className:Ao("text-dark font-bold text-3xl truncate",o===r.length-1&&Number(t)-Number(e?.cost_price)<0?"text-danger":null),children:[n.value,0===o&&m.jsx("span",{className:"font-normal text-sm",children:e.item_unit})]}),n.desc]},o))}),m.jsx("div",{className:"grid grid-cols-12",children:m.jsxs("div",{className:"col-span-10 space-y-6",children:[m.jsxs("div",{className:"space-y-3",children:[m.jsx("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:"Item codes:"}),m.jsx("div",{className:"flex gap-5",children:o.map((e,t)=>m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:Ao("flex flex-col gap-2.5"),children:[m.jsx("p",{className:"text-dark text-sm font-medium",children:e.tag}),m.jsx("p",{className:"text-gray-500 text-sm font-normal flex flex-col gap-2",children:Array.isArray(e.value)?e.value?.map((e,t)=>m.jsx("span",{children:e},t)):e.value})]},t),t<o.length-1&&m.jsx("div",{children:m.jsx(tC,{orientation:"vertical",className:"bg-[#7E8299]"})},t)]}))})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:"Suppliers:"}),m.jsx("div",{className:"flex gap-5 flex-col",children:e?.suppliers?.map((e,t)=>m.jsxs("div",{className:"bg-gray-100 rounded-xl p-[15px] space-y-[18px]",children:[m.jsxs("div",{className:"flex gap-3",children:[m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:m.jsx("img",{alt:"item image",src:MS,className:"object-cover w-full h-full"})}),m.jsxs("div",{className:"space-y-1 flex-grow border-b border-dashed border-gray-300 pb-1",children:[m.jsx("h1",{className:"text-dark font-semibold text-sm capitalize",children:e.name}),m.jsx("p",{className:"text-gray-700 font-medium text-[13px] capitalize"})]})]}),m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-y-3",children:[m.jsx("thead",{children:m.jsx("tr",{children:a.map((e,t)=>m.jsx("th",{className:"text-left text-dark",children:e},t))})}),m.jsx("tbody",{children:m.jsxs("tr",{className:"text-dark text-sm",children:[m.jsx("td",{children:"1"}),m.jsx("td",{children:m.jsx("div",{className:"w-9 h-9 shrink-0 relative",children:e.supplier_batch_number})}),m.jsx("td",{children:e.supplier_quantity}),m.jsx("td",{children:Zw(e.supplier_expired_date).format("MMMM DD, YYYY")}),m.jsx("td",{children:Uy(Number(e.supplier_price))})]})})]})]},t))})]}),i.map((e,t)=>m.jsxs("div",{className:"space-y-3",children:[m.jsxs("p",{className:"border-b border-gray-300 pb-2.5 text-gray-800 font-semibold ",children:[e.tag,": ",e.body?.length]}),e.body?.length>0?m.jsx("div",{className:"bg-gray-100 rounded-xl p-[15px] space-y-[18px]",children:m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-y-3",children:[m.jsx("thead",{children:m.jsx("tr",{children:e.headers.map((e,t)=>m.jsx("th",{className:"text-left text-dark first-letter:uppercase",children:e},t))})}),m.jsx("tbody",{children:e.body})]})}):null]},t))]})})]})}const DS=[{label:"All",count:900},{label:"Active",count:10},{label:"Inactive",count:0}];function AS({tabs:e=DS,loading:t}){const[n,r]=T.useState(0);return m.jsxs("div",{className:"flex flex-col",children:[m.jsx("div",{className:"flex gap-[30px]",children:e.map((e,o)=>m.jsxs("button",{className:"flex items-center gap-2.5 group relative pb-2",onClick:()=>((e,t)=>{e.link||r(t),e.action&&e.action()})(e,o),children:[m.jsx("p",{className:Ao("group-hover:text-gray-900 duration-200 text-gray-800 font-normal text-sm first-letter:uppercase",o===n?"text-gray-900 font-semibold":null),children:e.label}),t?m.jsx(Vo,{className:"h-[26px] rounded w-8"}):m.jsxs(m.Fragment,{children:[" ",e.count>=0?m.jsx("span",{className:Ao("rounded px-[7px] h-[26px] flex items-center text-xs font-semibold duration-200 group-hover:bg-primary_light group-hover:text-primary bg-gray-200 text-gray-500",o===n?"bg-primary_light text-primary":null),children:e.count}):null]}),o===n?m.jsx("div",{className:"h-[5px] rounded bg-primary absolute left-0 right-0 -bottom-[5px]"}):null]},o))}),m.jsx("div",{className:" h-[5px] rounded bg-gray-300"})]})}function FS({isOpen:e,onClose:t,itemUUID:n}){const{data:r,isFetching:o}=Uw(["single_item",n],`/outbound/items/get?item_uuid=${n}`,{enabled:e}),a=r?.data,i=[{tag:"Created",value:Zw(a?.created_date).format("MMMM DD, YYYY")},{tag:"Last edited",value:Zw(a?.last_update_date).format("MMMM DD, YYYY")},{tag:"Expiry",value:m.jsxs("p",{className:"",children:[" ",m.jsxs("span",{className:"text-danger",children:[a?.expired," Expired,"]})," ",m.jsxs("span",{className:"text-warning",children:[a?.expiring," Expiring"]})]})}],[s,l]=T.useState(1),u=[{label:"Item overview",action:()=>l(1)}];return T.useEffect(()=>{!e&&l(1)},[e]),m.jsx(Yx,{isOpen:e,onClose:t,title:"Item View",className:"w-[1176px]",children:o?m.jsx(Gx,{}):m.jsxs("div",{className:"space-y-7",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsxs("h1",{className:"text-dark text-xl font-semibold flex items-center gap-2",children:[a?.name,m.jsx("span",{className:"bg-primary_light text-primary text-xs rounded px-[7px] h-5 flex items-center capitalize",children:a?.item_type?.name})]}),m.jsx("div",{className:"flex gap-2",children:i.map((e,t)=>m.jsxs("p",{className:"text-sm font-medium text-gray-700 flex items-center gap-2",children:[m.jsxs("span",{className:"text-dark",children:[e.tag,":"]})," ",e.value," ",t<2&&"|"]},t))})]}),m.jsx("div",{className:"flex gap-3"})]}),m.jsx(nC,{data:a}),m.jsx(AS,{tabs:u}),1===s?m.jsx(TS,{data:a}):null]})})}function LS({children:e,isOpen:t,onClose:n,title:r,className:o}){return m.jsx(BC,{open:t,onOpenChange:n,children:m.jsxs(YC,{className:Ao("p-0 gap-4 max-h-[90vh] overflow-auto",o),children:[m.jsx(qC,{className:"sr-only",children:"Modal Component"}),m.jsx(GC,{className:"sr-only",children:"This is a modal component"}),r?m.jsxs("div",{className:"sticky top-0 bg-inherit flex flex-col gap-4 pt-5 z-10",children:[m.jsxs("div",{className:"flex justify-between items-center px-5",children:[m.jsx("h1",{className:"text-dark font-medium text-lg",children:r}),m.jsx("button",{className:"w-6 h-6",onClick:n,children:D.cloneElement($y.close2,{fill:"black"})})]}),m.jsx(tC,{})]}):null,e]})})}var IS="-ms-",zS="-moz-",$S="-webkit-",HS="comm",VS="rule",BS="decl",US="@keyframes",WS=Math.abs,YS=String.fromCharCode,qS=Object.assign;function GS(e){return e.trim()}function KS(e,t){return(e=t.exec(e))?e[0]:e}function QS(e,t,n){return e.replace(t,n)}function ZS(e,t,n){return e.indexOf(t,n)}function XS(e,t){return 0|e.charCodeAt(t)}function JS(e,t,n){return e.slice(t,n)}function ek(e){return e.length}function tk(e){return e.length}function nk(e,t){return t.push(e),e}function rk(e,t){return e.filter(function(e){return!KS(e,t)})}var ok=1,ak=1,ik=0,sk=0,lk=0,uk="";function ck(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:ok,column:ak,length:i,return:"",siblings:s}}function dk(e,t){return qS(ck("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function fk(e){for(;e.root;)e=dk(e.root,{children:[e]});nk(e,e.siblings)}function pk(){return lk=sk>0?XS(uk,--sk):0,ak--,10===lk&&(ak=1,ok--),lk}function hk(){return lk=sk<ik?XS(uk,sk++):0,ak++,10===lk&&(ak=1,ok++),lk}function mk(){return XS(uk,sk)}function gk(){return sk}function yk(e,t){return JS(uk,e,t)}function vk(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bk(e){return GS(yk(sk-1,Ck(91===e?e+2:40===e?e+1:e)))}function wk(e){for(;(lk=mk())&&lk<33;)hk();return vk(e)>2||vk(lk)>3?"":" "}function xk(e,t){for(;--t&&hk()&&!(lk<48||lk>102||lk>57&&lk<65||lk>70&&lk<97););return yk(e,gk()+(t<6&&32==mk()&&32==hk()))}function Ck(e){for(;hk();)switch(lk){case e:return sk;case 34:case 39:34!==e&&39!==e&&Ck(lk);break;case 40:41===e&&Ck(e);break;case 92:hk()}return sk}function Sk(e,t){for(;hk()&&e+lk!==57&&(e+lk!==84||47!==mk()););return"/*"+yk(t,sk-1)+"*"+YS(47===e?e:hk())}function kk(e){for(;!vk(mk());)hk();return yk(e,sk)}function _k(e){return function(e){return uk="",e}(Ek("",null,null,null,[""],e=function(e){return ok=ak=1,ik=ek(uk=e),sk=0,[]}(e),0,[0],e))}function Ek(e,t,n,r,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,x=a,C=r,S=b;g;)switch(h=v,v=hk()){case 40:if(108!=h&&58==XS(S,d-1)){-1!=ZS(S+=QS(bk(v),"&","&\f"),"&\f",WS(u?s[u-1]:0))&&(y=-1);break}case 34:case 39:case 91:S+=bk(v);break;case 9:case 10:case 13:case 32:S+=wk(h);break;case 92:S+=xk(gk()-1,7);continue;case 47:switch(mk()){case 42:case 47:nk(Nk(Sk(hk(),gk()),t,n,l),l);break;default:S+="/"}break;case 123*m:s[u++]=ek(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(S=QS(S,/\f/g,"")),p>0&&ek(S)-d&&nk(p>32?jk(S+";",r,n,d-1,l):jk(QS(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(nk(C=Rk(S,t,n,u,c,o,s,b,w=[],x=[],d,a),a),123===v)if(0===c)Ek(S,t,C,C,w,a,d,s,x);else switch(99===f&&110===XS(S,3)?100:f){case 100:case 108:case 109:case 115:Ek(e,C,C,r&&nk(Rk(e,C,C,0,0,o,s,b,o,w=[],d,x),x),o,x,d,s,r?w:x);break;default:Ek(S,C,C,C,[""],x,0,s,x)}}u=c=p=0,m=y=1,b=S="",d=i;break;case 58:d=1+ek(S),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==pk())continue;switch(S+=YS(v),v*m){case 38:y=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(ek(S)-1)*y,y=1;break;case 64:45===mk()&&(S+=bk(hk())),f=mk(),c=d=ek(b=S+=kk(gk())),v++;break;case 45:45===h&&2==ek(S)&&(m=0)}}return a}function Rk(e,t,n,r,o,a,i,s,l,u,c,d){for(var f=o-1,p=0===o?a:[""],h=tk(p),m=0,g=0,y=0;m<r;++m)for(var v=0,b=JS(e,f+1,f=WS(g=i[m])),w=e;v<h;++v)(w=GS(g>0?p[v]+" "+b:QS(b,/&\f/g,p[v])))&&(l[y++]=w);return ck(e,t,n,0===o?VS:s,l,u,c,d)}function Nk(e,t,n,r){return ck(e,t,n,HS,YS(lk),JS(e,2,-2),0,r)}function jk(e,t,n,r,o){return ck(e,t,n,BS,JS(e,0,r),JS(e,r+1,-1),r,o)}function Pk(e,t,n){switch(function(e,t){return 45^XS(e,0)?(((t<<2^XS(e,0))<<2^XS(e,1))<<2^XS(e,2))<<2^XS(e,3):0}(e,t)){case 5103:return $S+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $S+e+e;case 4789:return zS+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $S+e+zS+e+IS+e+e;case 5936:switch(XS(e,t+11)){case 114:return $S+e+IS+QS(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $S+e+IS+QS(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $S+e+IS+QS(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return $S+e+IS+e+e;case 6165:return $S+e+IS+"flex-"+e+e;case 5187:return $S+e+QS(e,/(\w+).+(:[^]+)/,$S+"box-$1$2"+IS+"flex-$1$2")+e;case 5443:return $S+e+IS+"flex-item-"+QS(e,/flex-|-self/g,"")+(KS(e,/flex-|baseline/)?"":IS+"grid-row-"+QS(e,/flex-|-self/g,""))+e;case 4675:return $S+e+IS+"flex-line-pack"+QS(e,/align-content|flex-|-self/g,"")+e;case 5548:return $S+e+IS+QS(e,"shrink","negative")+e;case 5292:return $S+e+IS+QS(e,"basis","preferred-size")+e;case 6060:return $S+"box-"+QS(e,"-grow","")+$S+e+IS+QS(e,"grow","positive")+e;case 4554:return $S+QS(e,/([^-])(transform)/g,"$1"+$S+"$2")+e;case 6187:return QS(QS(QS(e,/(zoom-|grab)/,$S+"$1"),/(image-set)/,$S+"$1"),e,"")+e;case 5495:case 3959:return QS(e,/(image-set\([^]*)/,$S+"$1$`$1");case 4968:return QS(QS(e,/(.+:)(flex-)?(.*)/,$S+"box-pack:$3"+IS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$S+e+e;case 4200:if(!KS(e,/flex-|baseline/))return IS+"grid-column-align"+JS(e,t)+e;break;case 2592:case 3360:return IS+QS(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,KS(e.props,/grid-\w+-end/)})?~ZS(e+(n=n[t].value),"span",0)?e:IS+QS(e,"-start","")+e+IS+"grid-row-span:"+(~ZS(n,"span",0)?KS(n,/\d+/):+KS(n,/\d+/)-+KS(e,/\d+/))+";":IS+QS(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return KS(e.props,/grid-\w+-start/)})?e:IS+QS(QS(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return QS(e,/(.+)-inline(.+)/,$S+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ek(e)-1-t>6)switch(XS(e,t+1)){case 109:if(45!==XS(e,t+4))break;case 102:return QS(e,/(.+:)(.+)-([^]+)/,"$1"+$S+"$2-$3$1"+zS+(108==XS(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ZS(e,"stretch",0)?Pk(QS(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return QS(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,a,i,s){return IS+n+":"+r+s+(o?IS+n+"-span:"+(a?i:+i-+r)+s:"")+e});case 4949:if(121===XS(e,t+6))return QS(e,":",":"+$S)+e;break;case 6444:switch(XS(e,45===XS(e,14)?18:11)){case 120:return QS(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+$S+(45===XS(e,14)?"inline-":"")+"box$3$1"+$S+"$2$3$1"+IS+"$2box$3")+e;case 100:return QS(e,":",":"+IS)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return QS(e,"scroll-","scroll-snap-")+e}return e}function Ok(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Mk(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case BS:return e.return=e.return||e.value;case HS:return"";case US:return e.return=e.value+"{"+Ok(e.children,r)+"}";case VS:if(!ek(e.value=e.props.join(",")))return""}return ek(n=Ok(e.children,r))?e.return=e.value+"{"+n+"}":""}function Tk(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case BS:return void(e.return=Pk(e.value,e.length,n));case US:return Ok([dk(e,{value:QS(e.value,"@","@"+$S)})],r);case VS:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(KS(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":fk(dk(e,{props:[QS(t,/:(read-\w+)/,":-moz-$1")]})),fk(dk(e,{props:[t]})),qS(e,{props:rk(n,r)});break;case"::placeholder":fk(dk(e,{props:[QS(t,/:(plac\w+)/,":"+$S+"input-$1")]})),fk(dk(e,{props:[QS(t,/:(plac\w+)/,":-moz-$1")]})),fk(dk(e,{props:[QS(t,/:(plac\w+)/,IS+"input-$1")]})),fk(dk(e,{props:[t]})),qS(e,{props:rk(n,r)})}return""})}}var Dk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ak="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Fk="active",Lk="data-styled-version",Ik="6.1.19",zk="/*!sc*/\n",$k="undefined"!=typeof window&&"undefined"!=typeof document,Hk=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),Vk=Object.freeze([]),Bk=Object.freeze({});var Uk=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Wk=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Yk=/(^-|-$)/g;function qk(e){return e.replace(Wk,"-").replace(Yk,"")}var Gk=/(a)(d)/gi,Kk=function(e){return String.fromCharCode(e+(e>25?39:97))};function Qk(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Kk(t%52)+n;return(Kk(t%52)+n).replace(Gk,"$1-$2")}var Zk,Xk=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Jk=function(e){return Xk(5381,e)};function e_(e){return Qk(Jk(e)>>>0)}function t_(e){return"string"==typeof e&&!0}var n_="function"==typeof Symbol&&Symbol.for,r_=n_?Symbol.for("react.memo"):60115,o_=n_?Symbol.for("react.forward_ref"):60112,a_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l_=((Zk={})[o_]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zk[r_]=s_,Zk);function u_(e){return("type"in(t=e)&&t.type.$$typeof)===r_?s_:"$$typeof"in e?l_[e.$$typeof]:a_;var t}var c_=Object.defineProperty,d_=Object.getOwnPropertyNames,f_=Object.getOwnPropertySymbols,p_=Object.getOwnPropertyDescriptor,h_=Object.getPrototypeOf,m_=Object.prototype;function g_(e,t,n){if("string"!=typeof t){if(m_){var r=h_(t);r&&r!==m_&&g_(e,r,n)}var o=d_(t);f_&&(o=o.concat(f_(t)));for(var a=u_(e),i=u_(t),s=0;s<o.length;++s){var l=o[s];if(!(l in i_||n&&n[l]||i&&l in i||a&&l in a)){var u=p_(t,l);try{c_(e,l,u)}catch(e){}}}}return e}function y_(e){return"function"==typeof e}function v_(e){return"object"==typeof e&&"styledComponentId"in e}function b_(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function w_(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function x_(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function C_(e,t,n){if(void 0===n&&(n=!1),!n&&!x_(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=C_(e[r],t[r]);else if(x_(t))for(var r in t)e[r]=C_(e[r],t[r]);return e}function S_(e,t){Object.defineProperty(e,"toString",{value:t})}function k_(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var __=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw k_(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),s=(a=0,t.length);a<s;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(zk);return t},e}(),E_=new Map,R_=new Map,N_=1,j_=function(e){if(E_.has(e))return E_.get(e);for(;R_.has(N_);)N_++;var t=N_++;return E_.set(e,t),R_.set(t,e),t},P_=function(e,t){N_=t+1,E_.set(e,t),R_.set(t,e)},O_="style[".concat(Ak,"][").concat(Lk,'="').concat(Ik,'"]'),M_=new RegExp("^".concat(Ak,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),T_=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(t,r)},D_=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(zk),o=[],a=0,i=r.length;a<i;a++){var s=r[a].trim();if(s){var l=s.match(M_);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(P_(c,u),T_(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},A_=function(e){for(var t=document.querySelectorAll(O_),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ak)!==Fk&&(D_(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var F_=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ak,"]")));return t[t.length-1]}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(Ak,Fk),r.setAttribute(Lk,Ik);var i="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},L_=function(){function e(e){this.element=F_(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw k_(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),I_=function(){function e(e){this.element=F_(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),z_=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),$_=$k,H_={isServer:!$k,useCSSOMInjection:!Hk},V_=function(){function e(e,t,n){void 0===e&&(e=Bk),void 0===t&&(t={});var r=this;this.options=Sl(Sl({},H_),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&$k&&$_&&($_=!1,A_(this)),S_(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return R_.get(e)}(n);if(void 0===o)return"continue";var a=e.names.get(o),i=t.getGroup(n);if(void 0===a||!a.size||0===i.length)return"continue";var s="".concat(Ak,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==a&&a.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(i).concat(s,'{content:"').concat(l,'"}').concat(zk)},a=0;a<n;a++)o(a);return r}(r)})}return e.registerId=function(e){return j_(e)},e.prototype.rehydrate=function(){!this.server&&$k&&A_(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Sl(Sl({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new z_(n):t?new L_(n):new I_(n)}(this.options),new __(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(j_(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(j_(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(j_(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),B_=/&/g,U_=/^\s*\/\/.*$/gm;function W_(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=W_(e.children,t)),e})}var Y_=new V_,q_=function(){var e,t,n,r=Bk,o=r.options,a=void 0===o?Bk:o,i=r.plugins,s=void 0===i?Vk:i,l=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},u=s.slice();u.push(function(e){e.type===VS&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(B_,t).replace(n,l))}),a.prefix&&u.push(Tk),u.push(Mk);var c=function(r,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),e=s,t=o,n=new RegExp("\\".concat(t,"\\b"),"g");var l=r.replace(U_,""),c=_k(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=W_(c,a.namespace));var d,f=[];return Ok(c,function(e){var t=tk(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}(u.concat((d=function(e){return f.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),f};return c.hash=s.length?s.reduce(function(e,t){return t.name||k_(15),Xk(e,t.name)},5381).toString():"",c}(),G_=D.createContext({shouldForwardProp:void 0,styleSheet:Y_,stylis:q_});function K_(){return T.useContext(G_)}G_.Consumer,D.createContext(void 0);var Q_=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=q_);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,S_(this,function(){throw k_(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=q_),this.name+e.hash},e}(),Z_=function(e){return e>="A"&&e<="Z"};function X_(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Z_(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var J_=function(e){return null==e||!1===e||""===e},eE=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!J_(a)&&(Array.isArray(a)&&a.isCss||y_(a)?r.push("".concat(X_(o),":"),a,";"):x_(a)?r.push.apply(r,_l(_l(["".concat(o," {")],eE(a),!1),["}"],!1)):r.push("".concat(X_(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Dk||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function tE(e,t,n,r){return J_(e)?[]:v_(e)?[".".concat(e.styledComponentId)]:y_(e)?!y_(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:tE(e(t),t,n,r):e instanceof Q_?n?(e.inject(n,r),[e.getName(r)]):[e]:x_(e)?eE(e):Array.isArray(e)?Array.prototype.concat.apply(Vk,e.map(function(e){return tE(e,t,n,r)})):[e.toString()];var o}var nE=Jk(Ik),rE=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y_(n)&&!v_(n))return!1}return!0}(e),this.componentId=t,this.baseHash=Xk(nE,t),this.baseStyle=n,V_.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=b_(r,this.staticRulesId);else{var o=w_(tE(this.rules,e,t,n)),a=Qk(Xk(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,a)){var i=n(o,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,i)}r=b_(r,a),this.staticRulesId=a}else{for(var s=Xk(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=w_(tE(c,e,t,n));s=Xk(s,d+u),l+=d}}if(l){var f=Qk(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=b_(r,f)}}return r},e}(),oE=D.createContext(void 0);oE.Consumer;var aE={};function iE(e,t,n){var r=v_(e),o=e,a=!t_(e),i=t.attrs,s=void 0===i?Vk:i,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":qk(e);aE[n]=(aE[n]||0)+1;var r="".concat(n,"-").concat(e_(Ik+n+aE[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return t_(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,f=t.displayName&&t.componentId?"".concat(qk(t.displayName),"-").concat(t.componentId):t.componentId||u,p=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var y=new rE(n,f,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,a=e.defaultProps,i=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=D.useContext(oE),c=K_(),d=e.shouldForwardProp||c.shouldForwardProp,f=function(e,t,n){return void 0===n&&(n=Bk),e.theme!==n.theme&&e.theme||t||n.theme}(t,u,a)||Bk,p=function(e,t,n){for(var r,o=Sl(Sl({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var i=y_(r=e[a])?r(o):r;for(var s in i)o[s]="className"===s?b_(o[s],i[s]):"style"===s?Sl(Sl({},o[s]),i[s]):i[s]}return t.className&&(o.className=b_(o.className,t.className)),o}(r,t,f),h=p.as||l,m={};for(var g in p)void 0===p[g]||"$"===g[0]||"as"===g||"theme"===g&&p.theme===f||("forwardedAs"===g?m.as=p.forwardedAs:d&&!d(g,h)||(m[g]=p[g]));var y=function(e,t){var n=K_();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,p),v=b_(i,s);return y&&(v+=" "+y),p.className&&(v+=" "+p.className),m[t_(h)&&!Uk.has(h)?"class":"className"]=v,n&&(m.ref=n),T.createElement(h,m)}(b,e,t)}v.displayName=d;var b=D.forwardRef(v);return b.attrs=p,b.componentStyle=y,b.displayName=d,b.shouldForwardProp=h,b.foldedComponentIds=r?b_(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=f,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)C_(e,o[r],!0);return e}({},o.defaultProps,e):e}}),S_(b,function(){return".".concat(b.styledComponentId)}),a&&g_(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function sE(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var lE=function(e){return Object.assign(e,{isCss:!0})};function uE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(y_(e)||x_(e))return lE(tE(sE(Vk,_l([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?tE(r):lE(tE(sE(r,t)))}function cE(e,t,n){if(void 0===n&&(n=Bk),!t)throw k_(1,t);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,uE.apply(void 0,_l([r],o,!1)))};return r.attrs=function(r){return cE(e,t,Sl(Sl({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return cE(e,t,Sl(Sl({},n),r))},r}var dE=function(e){return cE(iE,e)},fE=dE;function pE(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=w_(uE.apply(void 0,_l([e],t,!1))),o=e_(r);return new Q_(o,r)}Uk.forEach(function(e){fE[e]=dE(e)});const hE={"aria-busy":!0,role:"progressbar"},mE=fE.div`
142
142
  display: ${e=>e.$visible?"flex":"none"};
143
- `,hE=242.776657104492,mE=dE`
143
+ `,gE=242.776657104492,yE=pE`
144
144
  12.5% {
145
- stroke-dasharray: ${33.98873199462888}px, ${hE}px;
145
+ stroke-dasharray: ${33.98873199462888}px, ${gE}px;
146
146
  stroke-dashoffset: -${26.70543228149412}px;
147
147
  }
148
148
  43.75% {
149
- stroke-dasharray: ${84.97182998657219}px, ${hE}px;
149
+ stroke-dasharray: ${84.97182998657219}px, ${gE}px;
150
150
  stroke-dashoffset: -${84.97182998657219}px;
151
151
  }
152
152
  100% {
153
- stroke-dasharray: ${2.42776657104492}px, ${hE}px;
153
+ stroke-dasharray: ${2.42776657104492}px, ${gE}px;
154
154
  stroke-dashoffset: -${240.34889053344708}px;
155
155
  }
156
- `;cE.path`
157
- stroke-dasharray: ${2.42776657104492}px, ${hE};
156
+ `;fE.path`
157
+ stroke-dasharray: ${2.42776657104492}px, ${gE};
158
158
  stroke-dashoffset: 0;
159
- animation: ${mE} ${1.6}s linear infinite;
160
- `;const gE=dE`
159
+ animation: ${yE} ${1.6}s linear infinite;
160
+ `;const vE=pE`
161
161
  to {
162
162
  transform: rotate(360deg);
163
163
  }
164
- `;cE.svg`
165
- animation: ${gE} 0.75s steps(12, end) infinite;
164
+ `;fE.svg`
165
+ animation: ${vE} 0.75s steps(12, end) infinite;
166
166
  animation-duration: 0.75s;
167
- `,cE.polyline`
167
+ `,fE.polyline`
168
168
  stroke-width: ${e=>e.width}px;
169
169
  stroke-linecap: round;
170
170
 
@@ -211,14 +211,14 @@ to {
211
211
  &:nth-child(12n + 11) {
212
212
  stroke-opacity: 0.92;
213
213
  }
214
- `;const yE=({height:e=80,width:t=80,radius:n=9,color:r="#4fa94d",ariaLabel:o="three-dots-loading",wrapperStyle:a,wrapperClass:i,visible:s=!0})=>m.jsx(pE,{style:a,$visible:s,className:i,"data-testid":"three-dots-loading","aria-label":o,...fE,children:m.jsxs("svg",{width:t,height:e,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:r,"data-testid":"three-dots-svg",children:[m.jsxs("circle",{cx:"15",cy:"15",r:Number(n)+6,children:[m.jsx("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),m.jsx("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]}),m.jsxs("circle",{cx:"60",cy:"15",r:n,attributeName:"fill-opacity",from:"1",to:"0.3",children:[m.jsx("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),m.jsx("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]}),m.jsxs("circle",{cx:"105",cy:"15",r:Number(n)+6,children:[m.jsx("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),m.jsx("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]})]})}),vE=dE`
214
+ `;const bE=({height:e=80,width:t=80,radius:n=9,color:r="#4fa94d",ariaLabel:o="three-dots-loading",wrapperStyle:a,wrapperClass:i,visible:s=!0})=>m.jsx(mE,{style:a,$visible:s,className:i,"data-testid":"three-dots-loading","aria-label":o,...hE,children:m.jsxs("svg",{width:t,height:e,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:r,"data-testid":"three-dots-svg",children:[m.jsxs("circle",{cx:"15",cy:"15",r:Number(n)+6,children:[m.jsx("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),m.jsx("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]}),m.jsxs("circle",{cx:"60",cy:"15",r:n,attributeName:"fill-opacity",from:"1",to:"0.3",children:[m.jsx("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),m.jsx("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]}),m.jsxs("circle",{cx:"105",cy:"15",r:Number(n)+6,children:[m.jsx("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),m.jsx("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]})]})}),wE=pE`
215
215
  to {
216
216
  stroke-dashoffset: 136;
217
217
  }
218
- `;function bE({label:e,left_addon:t,right_addon:n,className:r,disabled:o,loading:a,mode:i="contained",onClick:s,type:l,loaderColor:u="#fff",...c}){return m.jsx("button",{onClick:s,className:Do(("contained"===i?"bg-primary hover:bg-button h-[38px] px-3 text-white":"text-primary hover:text-button bg-transparent")+" flex gap-[5px] transition ease-in items-center justify-center font-semibold cursor-pointer text-[13px] rounded-md disabled:opacity-70 disabled:cursor-not-allowed",r),disabled:o??a,type:l,...c,children:a?m.jsx(yE,{visible:!0,height:"40",width:"40",color:u,radius:"9",ariaLabel:"three-dots-loading"}):m.jsxs(m.Fragment,{children:[t,m.jsx("span",{className:"first-letter:uppercase",children:e}),n]})})}function wE({isOpen:e,onClose:t,uuids:n,single:r=!1}){const o=bn(),{mutate:a,isPending:i}=Uw();return m.jsxs(AS,{isOpen:e,onClose:t,className:"w-[440px] py-5",children:[m.jsxs("div",{className:"px-5 flex gap-4",children:[m.jsx("span",{className:"shrink-0 w-10 h-10 flex items-center justify-center rounded-[10px] bg-red_light",children:D.cloneElement(zy.error,{fill:"#DF1C41"})}),m.jsxs("div",{className:"space-y-1",children:[m.jsxs("h1",{className:"text-[#0A0D14] font-semibold capitalize",children:["delete ",r?"item":"items"]}),m.jsxs("p",{className:"text-[#525866] text-sm font-normal",children:["Are you sure you want to delete"," ",r?"this item":"these items","? Some sales data will be lost if you delete ",r?"this item":"these items","."]})]})]}),m.jsx(eC,{}),m.jsxs("div",{className:"grid grid-cols-2 gap-2.5 px-5",children:[m.jsx(bE,{label:"Dismiss",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t,disabled:i}),m.jsx(bE,{label:"Delete",className:"bg-danger hover:bg-danger/90",onClick:()=>{a({url:"/outbound/items/delete",payload:{item_uuids:n}},{onSuccess:()=>{o.invalidateQueries({queryKey:["items"]}),o.invalidateQueries({queryKey:["items-tab"]}),t()}})},loading:i})]})]})}cE.polygon`
218
+ `;function xE({label:e,left_addon:t,right_addon:n,className:r,disabled:o,loading:a,mode:i="contained",onClick:s,type:l,loaderColor:u="#fff",...c}){return m.jsx("button",{onClick:s,className:Ao(("contained"===i?"bg-primary hover:bg-button h-[38px] px-3 text-white":"text-primary hover:text-button bg-transparent")+" flex gap-[5px] transition ease-in items-center justify-center font-semibold cursor-pointer text-[13px] rounded-md disabled:opacity-70 disabled:cursor-not-allowed",r),disabled:o??a,type:l,...c,children:a?m.jsx(bE,{visible:!0,height:"40",width:"40",color:u,radius:"9",ariaLabel:"three-dots-loading"}):m.jsxs(m.Fragment,{children:[t,m.jsx("span",{className:"first-letter:uppercase",children:e}),n]})})}function CE({isOpen:e,onClose:t,uuids:n,single:r=!1}){const o=wn(),{mutate:a,isPending:i}=Ww();return m.jsxs(LS,{isOpen:e,onClose:t,className:"w-[440px] py-5",children:[m.jsxs("div",{className:"px-5 flex gap-4",children:[m.jsx("span",{className:"shrink-0 w-10 h-10 flex items-center justify-center rounded-[10px] bg-red_light",children:D.cloneElement($y.error,{fill:"#DF1C41"})}),m.jsxs("div",{className:"space-y-1",children:[m.jsxs("h1",{className:"text-[#0A0D14] font-semibold capitalize",children:["delete ",r?"item":"items"]}),m.jsxs("p",{className:"text-[#525866] text-sm font-normal",children:["Are you sure you want to delete"," ",r?"this item":"these items","? Some sales data will be lost if you delete ",r?"this item":"these items","."]})]})]}),m.jsx(tC,{}),m.jsxs("div",{className:"grid grid-cols-2 gap-2.5 px-5",children:[m.jsx(xE,{label:"Dismiss",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t,disabled:i}),m.jsx(xE,{label:"Delete",className:"bg-danger hover:bg-danger/90",onClick:()=>{a({url:"/outbound/items/delete",payload:{item_uuids:n}},{onSuccess:()=>{o.invalidateQueries({queryKey:["items"]}),o.invalidateQueries({queryKey:["items-tab"]}),t()}})},loading:i})]})]})}function SE(e,[t,n]){return Math.min(n,Math.max(t,e))}fE.polygon`
219
219
  stroke-dasharray: 17;
220
- animation: ${vE} 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;
221
- `,cE.svg`
220
+ animation: ${wE} 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;
221
+ `,fE.svg`
222
222
  transform-origin: 50% 65%;
223
- `;const xE=[{accessorKey:"item_description",header:"item description",cell:({row:e})=>{const t=e.original;return m.jsxs("div",{className:"flex items-center gap-5",children:[m.jsx("div",{className:"w-[50px] h-[50px] rounded-2xl relative bg-gray-100",children:m.jsx("img",{src:t.item_image,alt:"item image",className:"rounded-2xl object-cover w-full h-full",draggable:!1})}),m.jsxs("div",{className:"space-y-1 max-w-[265px]",children:[m.jsx(SE,{title:t.item_description,item_uuid:t.uuid,item_type_id:t.item_type_id,data:t.fullData}),m.jsxs("p",{className:"text-dark text-xs font-normal flex items-center gap-1",children:[m.jsx("span",{className:"uppercase whitespace-nowrap",children:t.sku}),t.barcode?.length>0?m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"|"}),t.barcode?.[0]?.barcode,t.barcode?.length>1?m.jsxs("span",{className:"rounded bg-[#9747FF1A] px-[5px] flex items-center text-[#7239EA] font-semibold text-[11px] h-[18px]",children:["+",t.barcode?.length-1]}):null]}):null,t.expired?m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"|"}),"Expired",m.jsx("span",{className:"rounded bg-danger_light px-[5px] flex items-center text-danger font-semibold text-[11px] h-[18px]",children:t.expired})]}):null,t.expiring?m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"|"}),"Expiring",m.jsx("span",{className:"rounded bg-warning-light px-[5px] flex items-center text-warning font-semibold text-[11px] h-[18px]",children:t.expiring})]}):null]})]})]})}},{accessorKey:"quantity",header:()=>m.jsx("p",{children:"quantity"}),cell:({row:e})=>{const t=e.original;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:Do("flex items-center",t.quantity<=0?"text-danger":Number(t.reorder_level)==t.quantity?"text-orange":null),children:m.jsx("p",{children:Uy(t.quantity)+t.unit})}),t.all_quantity===t.quantity?null:m.jsx("p",{className:"text-gray-700",children:Intl.NumberFormat().format(t.all_quantity??0)+t.unit})]})}},{accessorKey:"type",cell:({row:e})=>{const t=e.original;return m.jsx("p",{className:"capitalize",children:t.type})}},{accessorKey:"selling_price",header:"Selling Price (₦)",cell:({row:e})=>{const t=e.original;return m.jsx("p",{children:By(t.selling_price??0)})}},{accessorKey:"categories",header:"categories/Tags",cell:({row:e})=>{const t=e.original;return m.jsxs(m.Fragment,{children:[" ",m.jsxs("div",{className:"flex items-center gap-2 capitalize",children:[t.categories&&t.categories?.length>0?t.categories?.[0]?.name:"...",t.categories.length>1?m.jsx(dv,{align:"center",fieldName:"Categories",trigger:m.jsxs("button",{className:"rounded bg-[#9747FF1A] px-[5px] flex items-center text-[#7239EA] font-semibold text-[11px] h-[18px]",children:["+",t.categories.length-1]}),children:m.jsx("ul",{className:"list-disc pl-4",children:t.categories.map((e,t)=>m.jsx("li",{children:e.name},t))})}):null]}),m.jsxs("div",{className:"text-gray-700 flex items-center gap-2 capitalize",children:[t.tags?.[0],t.tags?.length>1?m.jsx(dv,{align:"center",fieldName:"Tags",trigger:m.jsxs("button",{className:"rounded bg-[#9747FF1A] px-[5px] flex items-center text-[#7239EA] font-semibold text-[11px] h-[18px] border-primary",children:["+",t.tags.length-1]}),children:m.jsx("ul",{className:"list-disc pl-4",children:t.tags.map((e,t)=>m.jsx("li",{children:e},t))})}):null]})]})}},{accessorKey:"status",cell:({row:e})=>{const t=e.getValue("status");return m.jsx(fv,{status:t})}},{id:"actions",header:"actions",cell:({row:e})=>{const t=e.original;return m.jsx(CE,{item_uuid:t.uuid,item_type_id:t.item_type_id,data:t.fullData})}}],CE=({item_uuid:e,item_type_id:t,data:n})=>{const[r,o]=T.useState(null),a=()=>{o(null)},[i,s]=T.useState(!1),[l,u]=T.useState(!1),[c,d]=T.useState(!1),[f,p]=T.useState(!1),[h,g]=T.useState(!1),[y,v]=T.useState(!1),[b,w]=T.useState(!1),x=[{label:"view",icon:zy.eye_outline,action:()=>s(!0)},{label:"delete",icon:zy.trash,action:()=>p(!0)}];return m.jsxs(m.Fragment,{children:[m.jsxs(Sd,{children:[m.jsx(kd,{asChild:!0,children:m.jsxs("button",{className:"bg-gray-100 rounded-md h-[30px] w-[90px] flex items-center justify-between p-2.5 font-semibold text-[10px] text-gray-500 hover:border duration-200",children:["Action"," ",m.jsx("svg",{width:"11",height:"6",viewBox:"0 0 11 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.50855 5.49304C5.42081 5.49355 5.33383 5.47673 5.25261 5.44356C5.17138 5.41038 5.09751 5.3615 5.03521 5.29971L1.03521 1.29971C0.972726 1.23773 0.92313 1.164 0.889284 1.08276C0.855438 1.00152 0.838013 0.914383 0.838013 0.826375C0.838013 0.738367 0.855438 0.65123 0.889284 0.56999C0.92313 0.488751 0.972726 0.415017 1.03521 0.353041C1.16012 0.228874 1.32909 0.15918 1.50521 0.15918C1.68134 0.15918 1.8503 0.228874 1.97521 0.353041L5.50855 3.88637L9.03521 0.353041C9.16012 0.228874 9.32909 0.15918 9.50521 0.15918C9.68134 0.15918 9.8503 0.228874 9.97521 0.353041C10.0377 0.415017 10.0873 0.488751 10.1211 0.56999C10.155 0.65123 10.1724 0.738367 10.1724 0.826375C10.1724 0.914383 10.155 1.00152 10.1211 1.08276C10.0873 1.164 10.0377 1.23773 9.97521 1.29971L5.97521 5.29971C5.85104 5.42287 5.68344 5.4923 5.50855 5.49304Z",fill:"#202125"})})]})}),m.jsx(_d,{align:"end",className:"flex flex-col gap-2.5 rounded-xl border-gray-200",children:x.map((e,t)=>m.jsxs(Ed,{className:`capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-gray-700 text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${t===x.length-1&&"text-danger focus:text-danger"}`,onMouseOver:()=>(e=>{o(e)})(t),onMouseOut:a,onClick:e.action,children:[D.cloneElement(e.icon,{fill:r===t?"#1868DB":"#5E6278"})," ",e.label]},t))})]}),m.jsx(DS,{isOpen:i,onClose:()=>s(!1),itemUUID:e}),m.jsx(wE,{isOpen:f,onClose:()=>p(!1),uuids:[e],single:!0})]})},SE=({title:e,item_uuid:t,item_type_id:n,data:r})=>{const[o,a]=T.useState(!1),[i,s]=T.useState(!1),[l,u]=T.useState(!1);return m.jsxs(m.Fragment,{children:[m.jsx("button",{className:Do("text-primary font-bold text-sm first-letter:uppercase truncate max-w-[265px] cursor-pointer",r.expired?"text-danger":""),title:e,onClick:()=>a(!0),children:e}),m.jsx(DS,{isOpen:o,onClose:()=>a(!1),itemUUID:t})]})};var kE,_E={};function EE(){if(kE)return _E;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}kE=1,Object.defineProperty(_E,"__esModule",{value:!0}),_E.Collapse=void 0;var t,n=(t=f())&&t.__esModule?t:{default:t};function r(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,o=s(t);if(n){var a=s(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}(this,r)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t=a(s);function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),l(i(n=t.call(this,e)),"timeout",void 0),l(i(n),"container",void 0),l(i(n),"content",void 0),l(i(n),"onResize",function(){if(clearTimeout(n.timeout),n.container&&n.content){var e=n.props,t=e.isOpened,r=e.checkTimeout,o=Math.floor(n.container.clientHeight),a=Math.floor(n.content.clientHeight),i=t&&Math.abs(a-o)<=1,s=!t&&Math.abs(o)<=1;i||s?n.onRest({isFullyOpened:i,isFullyClosed:s,isOpened:t,containerHeight:o,contentHeight:a}):(n.onWork({isFullyOpened:i,isFullyClosed:s,isOpened:t,containerHeight:o,contentHeight:a}),n.timeout=setTimeout(function(){return n.onResize()},r))}}),l(i(n),"onRest",function(e){var t=e.isFullyOpened,r=e.isFullyClosed,o=e.isOpened,a=e.containerHeight,i=e.contentHeight;if(n.container&&n.content){var s=o&&n.container.style.height==="".concat(i,"px"),l=!o&&"0px"===n.container.style.height;if(s||l){n.container.style.overflow=o?"initial":"hidden",n.container.style.height=o?"auto":"0px";var u=n.props.onRest;u&&u({isFullyOpened:t,isFullyClosed:r,isOpened:o,containerHeight:a,contentHeight:i})}}}),l(i(n),"onWork",function(e){var t=e.isFullyOpened,r=e.isFullyClosed,o=e.isOpened,a=e.containerHeight,i=e.contentHeight;if(n.container&&n.content){var s=o&&n.container.style.height==="".concat(i,"px"),l=!o&&"0px"===n.container.style.height;if(!s&&!l){n.container.style.overflow="hidden",n.container.style.height=o?"".concat(i,"px"):"0px";var u=n.props.onWork;u&&u({isFullyOpened:t,isFullyClosed:r,isOpened:o,containerHeight:a,contentHeight:i})}}}),l(i(n),"onRefContainer",function(e){n.container=e}),l(i(n),"onRefContent",function(e){n.content=e}),e.initialStyle?n.initialStyle=e.initialStyle:n.initialStyle=e.isOpened?{height:"auto",overflow:"initial"}:{height:"0px",overflow:"hidden"},n}return r(s,[{key:"componentDidMount",value:function(){this.onResize()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.theme,r=t.isOpened;return t.children!==e.children||r!==e.isOpened||Object.keys(n).some(function(t){return n[t]!==e.theme[t]})}},{key:"getSnapshotBeforeUpdate",value:function(){if(!this.container||!this.content)return null;if("auto"===this.container.style.height){var e=this.content.clientHeight;this.container.style.height="".concat(e,"px")}return null}},{key:"componentDidUpdate",value:function(){this.onResize()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this.props,t=e.theme,r=e.children,o=e.isOpened;return n.default.createElement("div",{ref:this.onRefContainer,className:t.collapse,style:this.initialStyle,"aria-hidden":!o},n.default.createElement("div",{ref:this.onRefContent,className:t.content},r))}}]),s}(n.default.Component);return _E.Collapse=u,l(u,"defaultProps",{theme:{collapse:"ReactCollapse--collapse",content:"ReactCollapse--content"},initialStyle:void 0,onRest:void 0,onWork:void 0,checkTimeout:50}),_E}var RE,NE,jE,PE={};function OE(){if(RE)return PE;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}RE=1,Object.defineProperty(PE,"__esModule",{value:!0}),PE.UnmountClosed=void 0;var t,n=(t=f())&&t.__esModule?t:{default:t},r=EE(),o=["isOpened"],a=["isOpened"];function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,o=m(t);if(n){var a=m(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,r)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t=p(s);function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),g(h(n=t.call(this,e)),"onWork",function(e){var t=e.isOpened,r=u(e,o);n.setState({isResting:!1,isOpened:t});var a=n.props.onWork;a&&a(l({isOpened:t},r))}),g(h(n),"onRest",function(e){var t=e.isOpened,r=u(e,a);n.setState({isResting:!0,isOpened:t,isInitialRender:!1});var o=n.props.onRest;o&&o(l({isOpened:t},r))}),g(h(n),"getInitialStyle",function(){var e=n.state,t=e.isOpened;return e.isInitialRender&&t?{height:"auto",overflow:"initial"}:{height:"0px",overflow:"hidden"}}),n.state={isResting:!0,isOpened:e.isOpened,isInitialRender:!0},n}return c(s,[{key:"componentDidUpdate",value:function(e){var t=this.props.isOpened;e.isOpened!==t&&this.setState({isResting:!1,isOpened:t,isInitialRender:!1})}},{key:"render",value:function(){var e=this.state,t=e.isResting,o=e.isOpened;return t&&!o?null:n.default.createElement(r.Collapse,i({},this.props,{initialStyle:this.getInitialStyle(),onWork:this.onWork,onRest:this.onRest}))}}]),s}(n.default.PureComponent);return PE.UnmountClosed=y,g(y,"defaultProps",{onWork:void 0,onRest:void 0}),PE}var ME=function(){if(jE)return NE;jE=1;var e=EE().Collapse,t=OE().UnmountClosed;return NE=t,t.Collapse=e,t.UnmountClosed=t,NE}();function TE({loading:e,data:t,meta:n}){const r=t?.otherscount?.map(e=>{const n=e.name;return{type:n,value:t?.result_array?.[n]?.total_selling_price??0}}),o=[{type:t?.result_array?.Retail?.pricegroup??t?.default,value:t?.result_array?.Retail?.total_selling_price??0},...r||[]],a=t?.otherscount?.map(e=>{const n=e.name;return{type:n,value:t?.result_array?.[n]?.total_profit??0}}),i=[{type:t?.result_array?.Retail?.pricegroup??t?.default,value:t?.result_array?.Retail?.total_profit??0},...a||[]],[s,l]=T.useState({type:o?.[0].type,value:o?.[0].value}),[u,c]=T.useState({type:i?.[0].type,value:i?.[0].value});D.useEffect(()=>{l({type:o?.[0].type,value:o?.[0].value}),c({type:i?.[0].type,value:i?.[0].value})},[e]);const d=[{label:"Total No. of Unique Item",count:Intl.NumberFormat().format(n?.total??0),desc:`With ${t?.unit_count??0} unit(s)`,icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#EFF5FF] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:zy.cube})},{label:"Total Cost Price",count:By(t?.result_array?.Retail?.total_cost??0),desc:"Takes into Account FIFO & LIFO ",icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#F9DFDD] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:D.cloneElement(zy.price_tag,{fill:"#ED7400"})})},{label:"Total Selling Price",count:By(s.value),desc:m.jsxs("p",{className:"flex gap-2 items-center flex-wrap",children:["Showing ",s.type," price"," ",m.jsxs(Sd,{children:[m.jsx(kd,{asChild:!0,children:m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-[#F9F9F9]",children:["change",m.jsx("span",{className:"rotate-90",children:zy.arrow})]})}),m.jsx(_d,{align:"start",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5 w-[210px]",children:o.map((e,t)=>m.jsx(Ed,{className:Do("capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] \n \n ",e.type===s.type?"bg-primary_light text-primary":null),onClick:()=>l(t=>({...t,value:e.value,type:e.type})),children:e.type},t))})]})]}),icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#D8CDF4] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:D.cloneElement(zy.price_tag,{fill:"#9747FF"})})},{label:"Profit to be made",count:By(u.value),desc:m.jsxs("p",{className:"flex gap-2 items-center flex-wrap",children:["Showing ",u.type," price"," ",m.jsxs(Sd,{children:[m.jsx(kd,{asChild:!0,children:m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-[#F9F9F9]",children:["change",m.jsx("span",{className:"rotate-90",children:zy.arrow})]})}),m.jsx(_d,{align:"start",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5 w-[210px]",children:i.map((e,t)=>m.jsx(Ed,{className:Do("capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] \n \n ",e.type===u.type?"bg-primary_light text-primary":null),onClick:()=>c(t=>({...t,value:e.value,type:e.type})),children:e.type},t))})]})]}),icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#C6E3D2] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:D.cloneElement(zy.price_tag,{fill:"#378C5A"})})}],[f,p]=T.useState(!1);return m.jsxs(Yx,{className:"bg-[#F6F8FA] p-2.5 flex flex-col",children:[m.jsxs("div",{className:"flex justify-between",children:[m.jsx("h1",{className:"capitalize text-dark font-semibold text-lg",children:"Items overview"}),m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-white",onClick:()=>p(!f),children:[f?"Close":"Open"," ",m.jsx("span",{className:"rotate-90",children:zy.arrow})]})]}),m.jsx(ME.Collapse,{isOpened:f,children:m.jsx("div",{className:"flex flex-wrap gap-2.5 mt-3",children:d.map((t,n)=>m.jsxs("div",{className:Do("border rounded-xl border-[#E4E7EC] p-4 flex flex-col relative bg-right-bottom bg-no-repeat flex-auto",0===n?"bg-[#E4EEFA] bg-[url('/assets/images/ecstacy1.svg')]":1===n?"bg-[#FAEAE9] bg-[url('/assets/images/ecstacy2.svg')]":2===n?"bg-[#EEE9FA] bg-[url('/assets/images/ecstacy3.svg')]":3===n?"bg-[#EBF5EF] bg-[url('/assets/images/ecstacy4.svg')]":null),children:[m.jsxs("div",{className:"flex justify-between gap-1",children:[m.jsx("h1",{className:"text-dark text-sm font-medium",children:t.label}),m.jsx("div",{className:"shrink-0",children:t.icon})]}),m.jsxs("div",{className:"flex flex-col gap-1",children:[e?m.jsx(Ho,{className:"w-28 h-6 rounded"}):m.jsx("h1",{className:Do("text-dark font-bold text-[29px] truncate",n===d.length-1&&u.value<0?"text-danger":null),title:t.count,children:t.count}),m.jsx("div",{className:"text-gray-700 text-sm font-medium ",children:t.desc})]})]},n))})})]})}function DE({placeholder:e,className:t,inputClass:n,...r}){return m.jsxs("div",{className:Do("h-12 border border-gray-300 rounded-md w-[320px] flex",t),children:[m.jsx("span",{className:"bg-gray-200 w-[38px] flex items-center justify-center shrink-0 rounded-l-[6px] ",children:zy.magnifier}),m.jsx("input",{type:"search",placeholder:e,className:"w-full px-3 text-dark text-sm font-medium bg-transparent outline-none rounded-r-[6px]",...r})]})}function AE(e,t){return e===t}function FE(e,t,n){var r=AE,o=T.useRef(e),a=T.useState({})[1],i=function(e,t,n,r){var o=this,a=T.useRef(null),i=T.useRef(0),s=T.useRef(0),l=T.useRef(null),u=T.useRef([]),c=T.useRef(),d=T.useRef(),f=T.useRef(e),p=T.useRef(!0);f.current=e;var h="undefined"!=typeof window,m=!t&&0!==t&&h;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,y=!("trailing"in n)||!!n.trailing,v="maxWait"in n,b="debounceOnServer"in n&&!!n.debounceOnServer,w=v?Math.max(+n.maxWait||0,t):null;T.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var x=T.useMemo(function(){var e=function(e){var t=u.current,n=c.current;return u.current=c.current=null,i.current=e,s.current=s.current||e,d.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(e):setTimeout(e,t)},x=function(e){if(!p.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||v&&e-i.current>=w},C=function(t){return l.current=null,y&&u.current?e(t):(u.current=c.current=null,d.current)},S=function e(){var r=Date.now();if(g&&s.current===i.current&&k(),x(r))return C(r);if(p.current){var o=t-(r-a.current),l=v?Math.min(o,w-(r-i.current)):o;n(e,l)}},k=function(){r&&r({})},_=function(){if(h||b){var r=Date.now(),s=x(r);if(u.current=[].slice.call(arguments),c.current=o,a.current=r,s){if(!l.current&&p.current)return i.current=a.current,n(S,t),g?e(a.current):d.current;if(v)return n(S,t),e(a.current)}return l.current||n(S,t),d.current}};return _.cancel=function(){l.current&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),i.current=0,u.current=a.current=c.current=l.current=null},_.isPending=function(){return!!l.current},_.flush=function(){return l.current?C(Date.now()):d.current},_},[g,v,t,w,y,m,h,b,r]);return x}(T.useCallback(function(e){o.current=e,a({})},[a]),t,n,a),s=T.useRef(e);return r(s.current,e)||(i(e),s.current=e),[o.current,i]}function LE({placeholder:e,searchPlaceholder:t,options:n=[],showMultiSelectValues:r=!0,values:o,onChange:a,className:i,showCheckMark:s=!0,label:l,labelClass:u,required:c,info:d,optional:f,actionLabel:p,actionLabelAction:h,actionLabelInfo:g,removeSelectedValue:y,removeTag:v,loading:b,showCount:w,error:x}){const[C,S]=T.useState(!1),[k,_]=T.useState(0),E=T.useRef(null);T.useEffect(()=>{const e=()=>{E.current&&_(E?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[E]);const R=e=>{const t=o?.includes(e)?o?.filter(t=>t!==e):[...o||[],e];a&&a(t)};T.useEffect(()=>{y&&R(y)},[y]);const[N,j]=T.useState(null),P=e=>{j(t=>t===e?null:e)},O=e=>{for(let t of n){if(t.value===e)return t.label;if(t.subOptions){const n=t.subOptions.find(t=>t.value===e);if(n)return n.label}}return null};return m.jsx("div",{ref:E,children:b?m.jsx(Ho,{className:"w-full h-[48px]"}):m.jsxs("div",{className:Do("flex flex-col gap-2.5",i),children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[l&&m.jsxs("label",{className:Do("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",u),children:[l," ",c?m.jsx("span",{className:"text-[#E12D39]",children:l&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(dv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),p&&m.jsxs("button",{onClick:h,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[p,g&&m.jsx(dv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:g})})]})]}),m.jsxs(kS,{modal:!0,open:C,onOpenChange:S,children:[m.jsx(_S,{asChild:!0,children:m.jsxs(NS,{variant:"outline",role:"combobox","aria-expanded":C,className:Do(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${x&&"!border-danger"}`,r?"h-auto py-3":null,i),children:[m.jsx("div",{className:"flex gap-2 text-[#5E6278] justify-start first-letter:uppercase flex-wrap",children:o?.length&&r?o.map((e,t)=>m.jsxs("div",{onClick:()=>{v||R(e),P(e)},className:"px-2 py-1 text-black flex items-center justify-between rounded gap-2 border bg-slate-200 text-xs font-medium",children:[m.jsx("span",{className:"flex justify-start text-start flex-wrap gap-2 whitespace-normal",children:O(e)}),m.jsx("span",{className:"",children:m.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.44001 4.49978L7.83334 2.12644C7.96064 1.99737 8.03146 1.82301 8.03021 1.64173C8.02896 1.46044 7.95575 1.28708 7.82667 1.15978C7.6976 1.03247 7.52324 0.961657 7.34196 0.962907C7.16067 0.964157 6.98731 1.03737 6.86001 1.16644L4.50001 3.55978L2.14001 1.21311C2.0151 1.08894 1.84613 1.01925 1.67001 1.01925C1.49388 1.01925 1.32492 1.08894 1.20001 1.21311C1.13752 1.27509 1.08793 1.34882 1.05408 1.43006C1.02023 1.5113 1.00281 1.59844 1.00281 1.68644C1.00281 1.77445 1.02023 1.86159 1.05408 1.94283C1.08793 2.02407 1.13752 2.0978 1.20001 2.15978L3.56001 4.49978L1.16667 6.87311C1.03937 7.00218 0.968554 7.17654 0.969804 7.35782C0.971054 7.53911 1.04427 7.71247 1.17334 7.83978C1.30241 7.96708 1.47677 8.0379 1.65805 8.03665C1.83934 8.0354 2.0127 7.96218 2.14001 7.83311L4.50001 5.43978L6.86001 7.78644C6.98492 7.91061 7.15388 7.98031 7.33001 7.98031C7.50613 7.98031 7.6751 7.91061 7.80001 7.78644C7.86249 7.72447 7.91209 7.65073 7.94594 7.56949C7.97978 7.48826 7.99721 7.40112 7.99721 7.31311C7.99721 7.2251 7.97978 7.13797 7.94594 7.05673C7.91209 6.97549 7.86249 6.90175 7.80001 6.83978L5.44001 4.49978Z",fill:"black"})})})]},t)):!r&&w&&o.length>0?`${o.length} ${l} selected`:e??"Select..."}),m.jsx(bd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(ES,{align:"start",style:{width:k},className:"w-[480px] p-0 bg-white rounded-xl border-gray-200",children:m.jsxs(GC,{children:[m.jsx(KC,{className:"placeholder:text-xs",placeholder:t??"Search..."}),m.jsx(ZC,{children:"No result found."}),m.jsx(XC,{children:m.jsx(QC,{className:"",children:n?.map((e,t)=>m.jsxs("div",{children:[m.jsxs(JC,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{R(e.value),e?.subOptions&&e?.subOptions?.length>0&&P(e.value)},children:[s&&m.jsx(md,{className:Do("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),m.jsxs("p",{className:"flex justify-between w-full",children:[e.label,e?.subOptions&&e?.subOptions?.length>0&&m.jsx(gd,{className:"ml-2 h-5 w-5 font-bold shrink-0 opacity-50"})]})]}),N===e.value&&e?.subOptions&&e?.subOptions?.map((e,t)=>m.jsxs(JC,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer pl-6 ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{R(e.value)},children:[s&&m.jsx(md,{className:Do("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),e.label]},t))]},t))})})]})})]}),x&&m.jsx("p",{className:"text-danger text-xs font-normal",children:x})]})})}function IE(e,[t,n]){return Math.min(n,Math.max(t,e))}var zE="ScrollArea",[$E,HE]=Yo(zE),[VE,BE]=$E(zE),UE=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,l]=T.useState(null),[u,c]=T.useState(null),[d,f]=T.useState(null),[p,h]=T.useState(null),[g,y]=T.useState(null),[v,b]=T.useState(0),[w,x]=T.useState(0),[C,S]=T.useState(!1),[k,_]=T.useState(!1),E=Wo(t,e=>l(e)),R=la(o);return m.jsx(VE,{scope:n,type:r,dir:R,scrollHideDelay:a,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:C,onScrollbarXEnabledChange:S,scrollbarY:g,onScrollbarYChange:y,scrollbarYEnabled:k,onScrollbarYEnabledChange:_,onCornerWidthChange:b,onCornerHeightChange:x,children:m.jsx(oa.div,{dir:R,...i,ref:E,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});UE.displayName=zE;var WE="ScrollAreaViewport",YE=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,i=BE(WE,n),s=Wo(t,T.useRef(null),i.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),m.jsx(oa.div,{"data-radix-scroll-area-viewport":"",...a,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:m.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});YE.displayName=WE;var qE="ScrollAreaScrollbar",GE=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=BE(qE,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s="horizontal"===e.orientation;return T.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),"hover"===o.type?m.jsx(KE,{...r,ref:t,forceMount:n}):"scroll"===o.type?m.jsx(QE,{...r,ref:t,forceMount:n}):"auto"===o.type?m.jsx(ZE,{...r,ref:t,forceMount:n}):"always"===o.type?m.jsx(XE,{...r,ref:t}):null});GE.displayName=qE;var KE=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=BE(qE,e.__scopeScrollArea),[a,i]=T.useState(!1);return T.useEffect(()=>{const e=o.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),i(!0)},r=()=>{t=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[o.scrollArea,o.scrollHideDelay]),m.jsx(Ks,{present:n||a,children:m.jsx(ZE,{"data-state":a?"visible":"hidden",...r,ref:t})})}),QE=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=BE(qE,e.__scopeScrollArea),a="horizontal"===e.orientation,i=yR(()=>l("SCROLL_END"),100),[s,l]=(u="hidden",c={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},T.useReducer((e,t)=>c[e][t]??e,u));var u,c;return T.useEffect(()=>{if("idle"===s){const e=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,o.scrollHideDelay,l]),T.useEffect(()=>{const e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),i()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,l,i]),m.jsx(Ks,{present:n||"hidden"!==s,children:m.jsx(XE,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:Vo(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Vo(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),ZE=T.forwardRef((e,t)=>{const n=BE(qE,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=T.useState(!1),s="horizontal"===e.orientation,l=yR(()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}},10);return vR(n.viewport,l),vR(n.content,l),m.jsx(Ks,{present:r||a,children:m.jsx(XE,{"data-state":a?"visible":"hidden",...o,ref:t})})}),XE=T.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=BE(qE,e.__scopeScrollArea),a=T.useRef(null),i=T.useRef(0),[s,l]=T.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=dR(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function d(e,t){return function(e,t,n,r="ltr"){const o=fR(n),a=o/2,i=t||a,s=o-i,l=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport,d="ltr"===r?[0,c]:[-1*c,0];return hR([l,u],d)(e)}(e,i.current,s,t)}return"horizontal"===n?m.jsx(JE,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=pR(o.viewport.scrollLeft,s,o.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=d(e,o.dir))}}):"vertical"===n?m.jsx(eR,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=pR(o.viewport.scrollTop,s);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=d(e))}}):null}),JE=T.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=BE(qE,e.__scopeScrollArea),[i,s]=T.useState(),l=T.useRef(null),u=Wo(t,l,a.onScrollbarXChange);return T.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),m.jsx(rR,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":fR(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),mR(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:cR(i.paddingLeft),paddingEnd:cR(i.paddingRight)}})}})}),eR=T.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=BE(qE,e.__scopeScrollArea),[i,s]=T.useState(),l=T.useRef(null),u=Wo(t,l,a.onScrollbarYChange);return T.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),m.jsx(rR,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":fR(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),mR(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:cR(i.paddingTop),paddingEnd:cR(i.paddingBottom)}})}})}),[tR,nR]=$E(qE),rR=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,p=BE(qE,n),[h,g]=T.useState(null),y=Wo(t,e=>g(e)),v=T.useRef(null),b=T.useRef(""),w=p.viewport,x=r.content-r.viewport,C=ua(c),S=ua(l),k=yR(d,10);function _(e){if(v.current){const t=e.clientX-v.current.left,n=e.clientY-v.current.top;u({x:t,y:n})}}return T.useEffect(()=>{const e=e=>{const t=e.target,n=h?.contains(t);n&&C(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[w,h,x,C]),T.useEffect(S,[r,S]),vR(h,k),vR(p.content,k),m.jsx(tR,{scope:n,scrollbar:h,hasThumb:o,onThumbChange:ua(a),onThumbPointerUp:ua(i),onThumbPositionChange:S,onThumbPointerDown:ua(s),children:m.jsx(oa.div,{...f,ref:y,style:{position:"absolute",...f.style},onPointerDown:Vo(e.onPointerDown,e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),v.current=h.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),_(e)}}),onPointerMove:Vo(e.onPointerMove,_),onPointerUp:Vo(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,p.viewport&&(p.viewport.style.scrollBehavior=""),v.current=null})})})}),oR="ScrollAreaThumb",aR=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=nR(oR,e.__scopeScrollArea);return m.jsx(Ks,{present:n||o.hasThumb,children:m.jsx(iR,{ref:t,...r})})}),iR=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=BE(oR,n),i=nR(oR,n),{onThumbPositionChange:s}=i,l=Wo(t,e=>i.onThumbChange(e)),u=T.useRef(void 0),c=yR(()=>{u.current&&(u.current(),u.current=void 0)},100);return T.useEffect(()=>{const e=a.viewport;if(e){const t=()=>{if(c(),!u.current){const t=gR(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,c,s]),m.jsx(oa.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Vo(e.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})}),onPointerUp:Vo(e.onPointerUp,i.onThumbPointerUp)})});aR.displayName=oR;var sR="ScrollAreaCorner",lR=T.forwardRef((e,t)=>{const n=BE(sR,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?m.jsx(uR,{...e,ref:t}):null});lR.displayName=sR;var uR=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=BE(sR,n),[a,i]=T.useState(0),[s,l]=T.useState(0),u=Boolean(a&&s);return vR(o.scrollbarX,()=>{const e=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(e),l(e)}),vR(o.scrollbarY,()=>{const e=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(e),i(e)}),u?m.jsx(oa.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}}):null});function cR(e){return e?parseInt(e,10):0}function dR(e,t){const n=e/t;return isNaN(n)?0:n}function fR(e){const t=dR(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function pR(e,t,n="ltr"){const r=fR(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,l=IE(e,"ltr"===n?[0,i]:[-1*i,0]);return hR([0,i],[0,s])(l)}function hR(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function mR(e,t){return e>0&&e<t}var gR=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function yR(e,t){const n=ua(e),r=T.useRef(0);return T.useEffect(()=>()=>window.clearTimeout(r.current),[]),T.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function vR(e,t){const n=ua(t);Go(()=>{let t=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var bR=UE,wR=YE,xR=lR;const CR=T.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(bR,{ref:r,className:Do("relative overflow-hidden",e),...n,children:[m.jsx(wR,{className:"h-full w-full rounded-[inherit]",children:t}),m.jsx(SR,{}),m.jsx(xR,{})]}));CR.displayName=bR.displayName;const SR=T.forwardRef(({className:e,orientation:t="vertical",...n},r)=>m.jsx(GE,{ref:r,orientation:t,className:Do("flex touch-none select-none transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:m.jsx(aR,{className:"relative flex-1 rounded-full bg-neutral-200 dark:bg-neutral-800"})}));function kR({placeholder:e,searchPlaceholder:t,options:n=[],showMultiSelectValues:r=!0,values:o,onChange:a,className:i,showCheckMark:s=!0,label:l,labelClass:u,required:c,info:d,optional:f,actionLabel:p,actionLabelAction:h,actionLabelInfo:g,removeSelectedValue:y,removeTag:v,loading:b,showCount:w,error:x,showError:C,onChangeSearch:S,searching:k,contentStyle:_,disabled:E}){const[R,N]=T.useState(!1),[j,P]=T.useState(0),O=T.useRef(null);T.useEffect(()=>{const e=()=>{O.current&&P(O?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const M=o?.filter(e=>""!==e),D=e=>{const t=M?.includes(e)?M?.filter(t=>t!==e):[...M||[],e];a&&a(t)};return T.useEffect(()=>{y&&D(y)},[y]),m.jsx(m.Fragment,{children:b?m.jsx(Ho,{className:"w-full h-[48px]"}):m.jsxs("div",{className:Do("flex flex-col gap-2.5",i),children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[l&&m.jsxs("label",{className:Do("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",u),children:[l," ",c?m.jsx("span",{className:"text-[#E12D39]",children:l&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(dv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),p&&m.jsxs("button",{onClick:h,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[p,g&&m.jsx(dv,{fieldName:p,children:m.jsx("p",{className:"font-normal first-letter:uppercase text-left",children:g})})]})]}),m.jsxs(kS,{modal:!0,open:R,onOpenChange:N,children:[m.jsx(_S,{disabled:E,asChild:!0,children:m.jsxs(NS,{ref:O,variant:"outline",role:"combobox","aria-expanded":R,className:Do(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${(x||C)&&"!border-danger"}`,r?"h-auto py-3":null,i),children:[m.jsx("div",{className:"flex gap-2 text-[#5E6278] justify-start first-letter:uppercase flex-wrap",children:M?.length>0&&r?M?.map((e,t)=>m.jsxs("div",{onClick:()=>{!v&&D(e)},className:"px-2 py-1 text-black flex items-center justify-between rounded gap-2 border bg-slate-200 text-xs font-medium",children:[n?.[0].searchId?n?.find(t=>t.value===e)?.searchId:n?.find(t=>t.value===e)?.label,m.jsx("span",{className:"",children:m.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.44001 4.49978L7.83334 2.12644C7.96064 1.99737 8.03146 1.82301 8.03021 1.64173C8.02896 1.46044 7.95575 1.28708 7.82667 1.15978C7.6976 1.03247 7.52324 0.961657 7.34196 0.962907C7.16067 0.964157 6.98731 1.03737 6.86001 1.16644L4.50001 3.55978L2.14001 1.21311C2.0151 1.08894 1.84613 1.01925 1.67001 1.01925C1.49388 1.01925 1.32492 1.08894 1.20001 1.21311C1.13752 1.27509 1.08793 1.34882 1.05408 1.43006C1.02023 1.5113 1.00281 1.59844 1.00281 1.68644C1.00281 1.77445 1.02023 1.86159 1.05408 1.94283C1.08793 2.02407 1.13752 2.0978 1.20001 2.15978L3.56001 4.49978L1.16667 6.87311C1.03937 7.00218 0.968554 7.17654 0.969804 7.35782C0.971054 7.53911 1.04427 7.71247 1.17334 7.83978C1.30241 7.96708 1.47677 8.0379 1.65805 8.03665C1.83934 8.0354 2.0127 7.96218 2.14001 7.83311L4.50001 5.43978L6.86001 7.78644C6.98492 7.91061 7.15388 7.98031 7.33001 7.98031C7.50613 7.98031 7.6751 7.91061 7.80001 7.78644C7.86249 7.72447 7.91209 7.65073 7.94594 7.56949C7.97978 7.48826 7.99721 7.40112 7.99721 7.31311C7.99721 7.2251 7.97978 7.13797 7.94594 7.05673C7.91209 6.97549 7.86249 6.90175 7.80001 6.83978L5.44001 4.49978Z",fill:"black"})})})]},t)):!r&&w&&o.length>0?`${M.length} ${l} selected`:e??"Select..."}),m.jsx(bd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(ES,{align:"start",style:{width:j},className:Do("w-[480px] p-0 bg-white rounded-xl border-gray-200",_),children:m.jsx(CR,{children:m.jsxs(GC,{children:[m.jsx(KC,{onChangeCapture:S,className:"placeholder:text-xs",placeholder:t??"Search..."}),k?m.jsx("div",{className:"flex flex-col gap-2 p-2",children:[1,2,3].map((e,t)=>m.jsx(Ho,{className:"h-9 rounded-md"},t))}):m.jsx(ZC,{children:"No result found."}),m.jsx(XC,{children:m.jsx(QC,{className:"",children:n?.map(e=>m.jsxs(JC,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{D(e.value)},children:[s&&m.jsx(md,{className:Do("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),e.label]},e.value))})})]})})})]})]})})}SR.displayName=GE.displayName;var _R=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});T.forwardRef((e,t)=>m.jsx(oa.span,{...e,ref:t,style:{..._R,...e.style}})).displayName="VisuallyHidden";var ER=[" ","Enter","ArrowUp","ArrowDown"],RR=[" ","Enter"],NR="Select",[jR,PR,OR]=ia(NR),[MR,TR]=Yo(NR,[OR,Ns]),DR=Ns(),[AR,FR]=MR(NR),[LR,IR]=MR(NR),zR=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:f,required:p,form:h}=e,g=DR(t),[y,v]=T.useState(null),[b,w]=T.useState(null),[x,C]=T.useState(!1),S=la(u),[k,_]=Qo({prop:r,defaultProp:o??!1,onChange:a,caller:NR}),[E,R]=Qo({prop:i,defaultProp:s,onChange:l,caller:NR}),N=T.useRef(null),j=!y||(h||!!y.closest("form")),[P,O]=T.useState(new Set),M=Array.from(P).map(e=>e.props.value).join(";");return m.jsx(Us,{...g,children:m.jsxs(AR,{required:p,scope:t,trigger:y,onTriggerChange:v,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:x,onValueNodeHasChildrenChange:C,contentId:Da(),value:E,onValueChange:R,open:k,onOpenChange:_,dir:S,triggerPointerDownPosRef:N,disabled:f,children:[m.jsx(jR.Provider,{scope:t,children:m.jsx(LR,{scope:e.__scopeSelect,onNativeOptionAdd:T.useCallback(e=>{O(t=>new Set(t).add(e))},[]),onNativeOptionRemove:T.useCallback(e=>{O(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),j?m.jsxs(_N,{"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:E,onChange:e=>R(e.target.value),disabled:f,form:h,children:[void 0===E?m.jsx("option",{value:""}):null,Array.from(P)]},M):null]})})};zR.displayName=NR;var $R="SelectTrigger",HR=T.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=DR(n),i=FR($R,n),s=i.disabled||r,l=Wo(t,i.onTriggerChange),u=PR(n),c=T.useRef("touch"),[d,f,p]=RN(e=>{const t=u().filter(e=>!e.disabled),n=t.find(e=>e.value===i.value),r=NN(t,e,n);void 0!==r&&i.onValueChange(r.value)}),h=e=>{s||(i.onOpenChange(!0),p()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return m.jsx(Ws,{asChild:!0,...a,children:m.jsx(oa.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":EN(i.value)?"":void 0,...o,ref:l,onClick:Vo(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==c.current&&h(e)}),onPointerDown:Vo(o.onPointerDown,e=>{c.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(h(e),e.preventDefault())}),onKeyDown:Vo(o.onKeyDown,e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),t&&" "===e.key||ER.includes(e.key)&&(h(),e.preventDefault())})})})});HR.displayName=$R;var VR="SelectValue",BR=T.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=FR(VR,n),{onValueNodeHasChildrenChange:u}=l,c=void 0!==a,d=Wo(t,l.onValueNodeChange);return Go(()=>{u(c)},[u,c]),m.jsx(oa.span,{...s,ref:d,style:{pointerEvents:"none"},children:EN(l.value)?m.jsx(m.Fragment,{children:i}):a})});BR.displayName=VR;var UR=T.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return m.jsx(oa.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});UR.displayName="SelectIcon";var WR=e=>m.jsx(Gs,{asChild:!0,...e});WR.displayName="SelectPortal";var YR="SelectContent",qR=T.forwardRef((e,t)=>{const n=FR(YR,e.__scopeSelect),[r,o]=T.useState();if(Go(()=>{o(new DocumentFragment)},[]),!n.open){const t=r;return t?Zo.createPortal(m.jsx(KR,{scope:e.__scopeSelect,children:m.jsx(jR.Slot,{scope:e.__scopeSelect,children:m.jsx("div",{children:e.children})})}),t):null}return m.jsx(XR,{...e,ref:t})});qR.displayName=YR;var GR=10,[KR,QR]=MR(YR),ZR=Jo("SelectContent.RemoveScroll"),XR=T.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:g,avoidCollisions:y,...v}=e,b=FR(YR,n),[w,x]=T.useState(null),[C,S]=T.useState(null),k=Wo(t,e=>x(e)),[_,E]=T.useState(null),[R,N]=T.useState(null),j=PR(n),[P,O]=T.useState(!1),M=T.useRef(!1);T.useEffect(()=>{if(w)return xl(w)},[w]),wa();const D=T.useCallback(e=>{const[t,...n]=j().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&C&&(C.scrollTop=0),n===r&&C&&(C.scrollTop=C.scrollHeight),n?.focus(),document.activeElement!==o)return}},[j,C]),A=T.useCallback(()=>D([_,w]),[D,_,w]);T.useEffect(()=>{P&&A()},[P,A]);const{onOpenChange:F,triggerPointerDownPosRef:L}=b;T.useEffect(()=>{if(w){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():w.contains(n.target)||F(!1),document.removeEventListener("pointermove",t),L.current=null};return null!==L.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[w,F,L]),T.useEffect(()=>{const e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[F]);const[I,z]=RN(e=>{const t=j().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=NN(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),$=T.useCallback((e,t,n)=>{const r=!M.current&&!n;(void 0!==b.value&&b.value===t||r)&&(E(e),r&&(M.current=!0))},[b.value]),H=T.useCallback(()=>w?.focus(),[w]),V=T.useCallback((e,t,n)=>{const r=!M.current&&!n;(void 0!==b.value&&b.value===t||r)&&N(e)},[b.value]),B="popper"===r?eN:JR,U=B===eN?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:g,avoidCollisions:y}:{};return m.jsx(KR,{scope:n,content:w,viewport:C,onViewportChange:S,itemRefCallback:$,selectedItem:_,onItemLeave:H,itemTextRefCallback:V,focusSelectedItem:A,selectedItemText:R,position:r,isPositioned:P,searchRef:I,children:m.jsx(uu,{as:ZR,allowPinchZoom:!0,children:m.jsx(_a,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Vo(o,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:m.jsx(ma,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:m.jsx(B,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...v,...U,onPlaced:()=>O(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Vo(v.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=j().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>D(t)),e.preventDefault()}})})})})})})});XR.displayName="SelectContentImpl";var JR=T.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=FR(YR,n),i=QR(YR,n),[s,l]=T.useState(null),[u,c]=T.useState(null),d=Wo(t,e=>c(e)),f=PR(n),p=T.useRef(!1),h=T.useRef(!0),{viewport:g,selectedItem:y,selectedItemText:v,focusSelectedItem:b}=i,w=T.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&g&&y&&v){const e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==a.dir){const r=o.left-t.left,a=n.left-r,i=e.left-a,l=e.width+i,u=Math.max(l,t.width),c=window.innerWidth-GR,d=IE(a,[GR,Math.max(GR,c-u)]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-o.right,a=window.innerWidth-n.right-r,i=window.innerWidth-e.right-a,l=e.width+i,u=Math.max(l,t.width),c=window.innerWidth-GR,d=IE(a,[GR,Math.max(GR,c-u)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=f(),l=window.innerHeight-2*GR,c=g.scrollHeight,d=window.getComputedStyle(u),h=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=h+m+c+parseInt(d.paddingBottom,10)+b,x=Math.min(5*y.offsetHeight,w),C=window.getComputedStyle(g),S=parseInt(C.paddingTop,10),k=parseInt(C.paddingBottom,10),_=e.top+e.height/2-GR,E=l-_,R=y.offsetHeight/2,N=h+m+(y.offsetTop+R),j=w-N;if(N<=_){const e=i.length>0&&y===i[i.length-1].ref.current;s.style.bottom="0px";const t=u.clientHeight-g.offsetTop-g.offsetHeight,n=N+Math.max(E,R+(e?k:0)+t+b);s.style.height=n+"px"}else{const e=i.length>0&&y===i[0].ref.current;s.style.top="0px";const t=Math.max(_,h+g.offsetTop+(e?S:0)+R)+j;s.style.height=t+"px",g.scrollTop=N-_+g.offsetTop}s.style.margin=`${GR}px 0`,s.style.minHeight=x+"px",s.style.maxHeight=l+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,u,g,y,v,a.dir,r]);Go(()=>w(),[w]);const[x,C]=T.useState();Go(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const S=T.useCallback(e=>{e&&!0===h.current&&(w(),b?.(),h.current=!1)},[w,b]);return m.jsx(tN,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:m.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x},children:m.jsx(oa.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});JR.displayName="SelectItemAlignedPosition";var eN=T.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=GR,...a}=e,i=DR(n);return m.jsx(Ys,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});eN.displayName="SelectPopperPosition";var[tN,nN]=MR(YR,{}),rN="SelectViewport",oN=T.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=QR(rN,n),i=nN(rN,n),s=Wo(t,a.onViewportChange),l=T.useRef(0);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),m.jsx(jR.Slot,{scope:n,children:m.jsx(oa.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Vo(o.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(r?.current&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*GR,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop})})})]})});oN.displayName=rN;var aN="SelectGroup",[iN,sN]=MR(aN);T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Da();return m.jsx(iN,{scope:n,id:o,children:m.jsx(oa.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=aN;var lN="SelectLabel",uN=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=sN(lN,n);return m.jsx(oa.div,{id:o.id,...r,ref:t})});uN.displayName=lN;var cN="SelectItem",[dN,fN]=MR(cN),pN=T.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=FR(cN,n),l=QR(cN,n),u=s.value===r,[c,d]=T.useState(a??""),[f,p]=T.useState(!1),h=Wo(t,e=>l.itemRefCallback?.(e,r,o)),g=Da(),y=T.useRef("touch"),v=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.jsx(dN,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:T.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:m.jsx(jR.ItemSlot,{scope:n,value:r,disabled:o,textValue:c,children:m.jsx(oa.div,{role:"option","aria-labelledby":g,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:h,onFocus:Vo(i.onFocus,()=>p(!0)),onBlur:Vo(i.onBlur,()=>p(!1)),onClick:Vo(i.onClick,()=>{"mouse"!==y.current&&v()}),onPointerUp:Vo(i.onPointerUp,()=>{"mouse"===y.current&&v()}),onPointerDown:Vo(i.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:Vo(i.onPointerMove,e=>{y.current=e.pointerType,o?l.onItemLeave?.():"mouse"===y.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Vo(i.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:Vo(i.onKeyDown,e=>{""!==l.searchRef?.current&&" "===e.key||(RR.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});pN.displayName=cN;var hN="SelectItemText",mN=T.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=FR(hN,n),s=QR(hN,n),l=fN(hN,n),u=IR(hN,n),[c,d]=T.useState(null),f=Wo(t,e=>d(e),l.onItemTextChange,e=>s.itemTextRefCallback?.(e,l.value,l.disabled)),p=c?.textContent,h=T.useMemo(()=>m.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:y}=u;return Go(()=>(g(h),()=>y(h)),[g,y,h]),m.jsxs(m.Fragment,{children:[m.jsx(oa.span,{id:l.textId,...a,ref:f}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Zo.createPortal(a.children,i.valueNode):null]})});mN.displayName=hN;var gN="SelectItemIndicator",yN=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return fN(gN,n).isSelected?m.jsx(oa.span,{"aria-hidden":!0,...r,ref:t}):null});yN.displayName=gN;var vN="SelectScrollUpButton",bN=T.forwardRef((e,t)=>{const n=QR(vN,e.__scopeSelect),r=nN(vN,e.__scopeSelect),[o,a]=T.useState(!1),i=Wo(t,r.onScrollButtonChange);return Go(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?m.jsx(CN,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});bN.displayName=vN;var wN="SelectScrollDownButton",xN=T.forwardRef((e,t)=>{const n=QR(wN,e.__scopeSelect),r=nN(wN,e.__scopeSelect),[o,a]=T.useState(!1),i=Wo(t,r.onScrollButtonChange);return Go(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?m.jsx(CN,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});xN.displayName=wN;var CN=T.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=QR("SelectScrollButton",n),i=T.useRef(null),s=PR(n),l=T.useCallback(()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)},[]);return T.useEffect(()=>()=>l(),[l]),Go(()=>{const e=s().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[s]),m.jsx(oa.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Vo(o.onPointerDown,()=>{null===i.current&&(i.current=window.setInterval(r,50))}),onPointerMove:Vo(o.onPointerMove,()=>{a.onItemLeave?.(),null===i.current&&(i.current=window.setInterval(r,50))}),onPointerLeave:Vo(o.onPointerLeave,()=>{l()})})}),SN=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return m.jsx(oa.div,{"aria-hidden":!0,...r,ref:t})});SN.displayName="SelectSeparator";var kN="SelectArrow";T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=DR(n),a=FR(kN,n),i=QR(kN,n);return a.open&&"popper"===i.position?m.jsx(qs,{...o,...r,ref:t}):null}).displayName=kN;var _N=T.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=T.useRef(null),a=Wo(r,o),i=function(e){const t=T.useRef({value:e,previous:e});return T.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return T.useEffect(()=>{const e=o.current;if(!e)return;const n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value").set;if(i!==t&&r){const n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[i,t]),m.jsx(oa.select,{...n,style:{..._R,...n.style},ref:a,defaultValue:t})});function EN(e){return""===e||void 0===e}function RN(e){const t=ua(e),n=T.useRef(""),r=T.useRef(0),o=T.useCallback(e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),a=T.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return T.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function NN(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const u=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}_N.displayName="SelectBubbleInput";var jN=HR,PN=UR,ON=WR,MN=qR,TN=oN,DN=uN,AN=pN,FN=mN,LN=yN,IN=bN,zN=xN,$N=SN;const HN=zR,VN=BR,BN=T.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(jN,{ref:r,className:Do("flex h-10 w-full items-center hover:border-[#BFD7FE] justify-between rounded-md border focus:border-primary border-neutral-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-neutral-500 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 ",e),...n,children:[t,m.jsx(PN,{asChild:!0,children:m.jsx(gd,{className:"h-4 w-4 opacity-50"})})]}));BN.displayName=jN.displayName;const UN=T.forwardRef(({className:e,...t},n)=>m.jsx(IN,{ref:n,className:Do("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(vd,{className:"h-4 w-4"})}));UN.displayName=IN.displayName;const WN=T.forwardRef(({className:e,...t},n)=>m.jsx(zN,{ref:n,className:Do("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(gd,{className:"h-4 w-4"})}));WN.displayName=zN.displayName;const YN=T.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>m.jsx(ON,{children:m.jsxs(MN,{ref:o,className:Do("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white text-neutral-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[m.jsx(UN,{}),m.jsx(TN,{className:Do("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),m.jsx(WN,{})]})}));YN.displayName=MN.displayName;T.forwardRef(({className:e,...t},n)=>m.jsx(DN,{ref:n,className:Do("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})).displayName=DN.displayName;const qN=T.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(AN,{ref:r,className:Do("relative flex w-full select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-primary/20 cursor-pointer focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(LN,{children:m.jsx(md,{className:"h-4 w-4"})})}),m.jsx(FN,{children:t})]}));qN.displayName=AN.displayName;function GN({label:e,addonLabel:t,type:n,placeholder:r,selectPlaceholder:o,error:a,success:i,value:s,defaultValue:l,name:u,id:c,formik:d,onChange:f,inputRef:p,onBlur:h,required:g,disabled:y,loading:v,showError:b,selectOptions:w,disableSearch:x,searchSelectPlaceholder:C,showSelectSearch:S,onSelectValueChange:k,selectValue:_,showOutline:E=!0,cols:R,rows:N,labelClass:j,addonLabelClass:P,optional:O,info:M,addonInfo:D,icon:A,actionIcon:F,actionLabel:L,actionLabelInfo:I,actionLabelAction:z,className:$,textAreaOnChange:H,addOn:V,infoAlignment:B,addonInfoAlignment:U,inputContainerClass:W,showNegative:Y,showPositive:q,...G}){const[K,Q]=T.useState(n),[Z,X]=T.useState(!1),[J,ee]=T.useState(""),te=((e,t)=>{const n=e?.filter(e=>"string"==typeof e.label?e.label?.toLowerCase().includes(t.toLowerCase()):e.value?.toLowerCase().includes(t.toLowerCase())||e?.searchId?.toLowerCase().includes(t.toLowerCase()));return t?n:e})(w??[],J);return m.jsx(m.Fragment,{children:v?m.jsx(Ho,{className:"w-full h-[48px]"}):m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:`flex flex-col ${e&&"gap-2.5"} relative `,children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[t&&m.jsxs("label",{className:Do("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",P),children:[t," ",g?m.jsx("span",{className:"text-[#E12D39]",children:t&&"*"}):O?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,D&&m.jsx(dv,{fieldName:t,align:U,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:D})})]}),e&&m.jsxs("label",{className:Do("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",j),children:[e," ",g?m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}):O?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,M&&m.jsx(dv,{fieldName:e,align:B,children:m.jsx("p",{className:"font-normal first-letter:uppercase w-full whitespace-pre-wrap",children:M})})]}),L&&m.jsxs("button",{onClick:z,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-bold",children:[F,L,I&&m.jsx(dv,{fieldName:e,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:I})})]})]}),m.jsxs("div",{className:Do(`border overflow-hidden rounded-md text-sm border-[#E1E3EA] hover:border-primary_light font-normal text-grey-950 flex gap-2 items-center bg-white px-3 ${"text-area"!==n&&"h-[48px]"} ${(a||b)&&"!border-danger"} ${i&&"!border-success"} ${Z&&E&&"!border-primary"}\n ${A&&"px-2"}\n ${V&&"px-0"}\n `,y?"cursor-not-allowed bg-gray-200":null,w?"px-0":null,W),children:[V&&m.jsx("span",{className:"bg-gray-200 text-[13px] font-semibold text-gray-700 h-full min-w-[38px] flex items-center justify-center shrink-0 rounded-l-[6px] px-2 ",children:V}),A,w&&m.jsxs(HN,{onValueChange:k,defaultValue:_,value:_,children:[m.jsx(BN,{disabled:x,className:" min-w-max w-max h-full border-0 border-r rounded-none hover:border-neutral-200 focus:border-neutral-200 bg-[#F9F9F9] hover:border-b-neutral-200 disabled:opacity-100 ",children:m.jsx(VN,{className:" text-sm text-[#5E6278] placeholder:font-medium outline-none",placeholder:o})}),m.jsxs(YN,{className:"bg-white w-full relative",children:[S&&m.jsx("input",{value:J,onChange:e=>{ee(e.target.value.toString())},placeholder:C??"Search...",className:"h-10 border mb-2 text-sm px-4 outline-none w-full border-neutral-200 rounded bg-white sticky top-0 z-20"}),te?.map((e,t)=>m.jsx(qN,{className:"text-sm",value:e.value,children:e.label},e.value))]})]}),"text-area"===n?m.jsx("textarea",{cols:R,rows:N,onFocus:()=>X(!0),onBlur:e=>{X(!1)},placeholder:r,className:Do(`placeholder:text-[#7E8299] hover:border-primary_light py-2 h-full placeholder:font-medium outline-none w-full rounded ${y?"bg-[#EEEFF2] cursor-not-allowed":null} ${Z&&E&&"!border-primary"} transition-all ease-in-out`,$),...G,value:s,name:u,onChange:H}):m.jsx("input",{onInput:e=>{const t=e.target;"number"===n&&(t.value=t.value.replace(/[^0-9.]/g,""),t.value=t.value.replace(/^\.|(\..*)\./g,"$1"),t.value.length>1&&t.value.startsWith("0")&&"."!==t.value[1]&&(t.value=t.value.replace(/^0+/,"")),""!==t.value&&"0"!==t.value||(t.value="0"))},type:"number"===K?"text":K,placeholder:r,className:Do("placeholder:text-[#7E8299] h-full placeholder:font-medium outline-none w-full rounded disabled:cursor-not-allowed",w&&"number"===n?"pr-2":null,A||V?"pr-0":null,w&&"number"===n&&t&&"text-right pr-2",$,q&&"0"!==s?.toString().trim()?"text-green-600 font-semibold":"",Y&&s?.toString().trim().startsWith("-")?"text-red-600 font-semibold":""),onFocus:()=>X(!0),onBlur:e=>{d&&h&&d&&h(e),X(!1)},value:s||"",defaultValue:l,onChange:f,id:c,name:u,required:g,disabled:y,ref:p,...G}),"password"===n&&m.jsx("span",{className:"cursor-pointer",onClick:()=>{Q(e=>"password"===e?"text":"password")},children:"password"===K?zy.eyeslash:zy.eye})]}),a&&m.jsx("p",{className:"text-danger text-xs font-normal",children:a})]})})})}function KN({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=Uw(),o=bn(),{apiKey:a}=En(),{data:i}=Bw(["categories",a],"/outbound/inventory_metas/categories",{enabled:!!a}),{data:s}=Bw(["itemunits",a],"/outbound/inventory_metas/units",{enabled:!!a}),{data:l}=Bw(["itemtags",a],"/outbound/inventory_metas/tags",{enabled:!!a}),{data:u}=Bw(["itemtypes",a],"/outbound/inventory_metas/types",{enabled:!!a}),c=i?.data?.data?.map(e=>({label:e.name,value:e.uuid,subOptions:e.subCategories.map(e=>({label:e.name,value:e.uuid}))}))||[],d=s?.data?.data?.map(e=>({label:e.name,value:e.uuid}))||[],f=l?.data?.data?.map(e=>({label:e.name,value:e.uuid})),p=u?.data?.data?.filter(e=>"products"===e.name||"services"===e.name).map(e=>({label:e.name,value:e.uuid}))||[],[h,g]=T.useState(""),[y,v]=D.useState([]),[b,w]=T.useState(p?.[0]?.value||"");T.useEffect(()=>{const e=p.find(e=>e?.value===b)?.label||"";g(e)},[b]);const[x,C]=T.useState([]),[S,k]=T.useState([{name:"",itemunit_id:d?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:""}]),_=(e,t,n)=>{const r=[...S];r[n]={...r[n],[e]:t},k(r)},E={itemtype_id:b,itemcategory_id:y,tags:x,items:S},R=["Item name","Item unit",..."services"!==h?["Quantity","Barcode"]:[],"Cost price (₦)","Selling price (₦)"];return m.jsxs(AS,{isOpen:e,onClose:t,title:"Quick create multiple items",className:"max-w-[1024px]",children:[m.jsxs("div",{className:"px-5 space-y-7 pb-5",children:[m.jsxs("div",{className:"grid grid-cols-3 gap-5 bg-gray-100 rounded-xl p-4",children:[m.jsx(jS,{label:"Item type",options:p,placeholder:"select item type",value:b,onValueChange:e=>w(e),required:!0,info:"Select the type of item you're creating (e.g., product, service, variations, kits ). This classification helps determine how the item is managed, displayed, or fulfilled."}),m.jsx(LE,{placeholder:"select categories",label:"Category",options:c,values:y,onChange:e=>v(e),showMultiSelectValues:!1,showCount:!0,info:"Select the category that best describes this item(s) (e.g., electronics, clothing, food). Categorizing items helps in organizing inventory and simplifies product management."}),m.jsx(kR,{label:"Item tag",placeholder:"Select item tags",info:"Enter relevant keywords or labels for this item(s). Tags help in categorizing and making the item easier to find through search filters.",labelClass:"text-dark text-sm",options:f,values:x,onChange:C,showSearch:!0,showCount:!0,showMultiSelectValues:!1})]}),m.jsxs("div",{className:"space-y-2 overflow-auto",children:[m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-4",children:[m.jsx("thead",{children:m.jsx("tr",{children:R.map((e,t)=>m.jsx("th",{className:"text-dark text-sm font-medium text-left",children:e},t))})}),m.jsx("tbody",{className:"text-dark text-[15px] ",children:S.map((e,t)=>m.jsxs("tr",{children:[m.jsx("td",{className:"",children:m.jsx(GN,{type:"text",placeholder:"Enter item name",value:e.name,onChange:e=>_("name",e.target.value,t)})}),m.jsx("td",{children:m.jsx(jS,{options:d,placeholder:"select item unit",value:e.itemunit_id,onValueChange:e=>_("itemunit_id",e,t)})}),"services"!==h?m.jsxs(m.Fragment,{children:[m.jsx("td",{className:"",children:m.jsx(GN,{type:"number",placeholder:"0",value:e.quantity,onChange:e=>_("quantity",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(GN,{type:"number",placeholder:"Enter barcode",value:e.barcode,onChange:e=>_("barcode",e.target.value,t)})})]}):null,m.jsx("td",{className:"",children:m.jsx(GN,{type:"number",placeholder:"0.00",value:e.cost_price,onChange:e=>_("cost_price",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(GN,{type:"number",placeholder:"0.00",value:e.selling_price,onChange:e=>_("selling_price",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx("button",{onClick:()=>(e=>{const t=S.filter((t,n)=>n!==e);k(t)})(t),disabled:1===S.length,className:"disabled:cursor-not-allowed disabled:opacity-70",children:zy.trash2})})]},t))})]}),m.jsx(bE,{mode:"text",label:"Add more",left_addon:zy.plus_squared2,onClick:()=>{k(e=>[...e,{name:"",itemunit_id:d?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:""}])},className:"font-medium text-sm ml-4"})]})]}),m.jsxs("div",{className:"flex justify-between items-center px-5 sticky bottom-0 bg-white py-5 border-t ",children:[m.jsxs("button",{className:"text-primary text-sm font-medium flex items-center gap-1",children:[zy.question," Need help?"]}),m.jsxs("div",{className:"flex justify-end gap-2.5",children:[m.jsx(bE,{label:"Cancel",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t}),m.jsx(bE,{label:"Create Items",onClick:()=>{n({url:"/outbound/items/create_multiple",payload:E},{onSuccess:()=>{o.invalidateQueries({queryKey:["items"]}),t&&t()}})},loading:r})]})]})]})}T.forwardRef(({className:e,...t},n)=>m.jsx($N,{ref:n,className:Do("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t})).displayName=$N.displayName;const QN="https://unpkg.com/@simpoobusiness/sdk/dist/simpoo-sdk.css";let ZN={};function XN(e){ZN=e}const JN={inventory:()=>{const[e,t]=D.useState(),{currentPage:n,perview:r}=ne(e=>e.app),[o,a]=T.useState("all"),[i,s]=T.useState(!1),[l,u]=T.useState("all"),[c,d]=T.useState(""),[f]=FE(c,1e3),{apiKey:p}=En(),{data:h,isFetching:g}=Bw(["items",r.toString(),n?.toString(),o,f,p],f?`/outbound/items/search?page=${n}&paginate=${r}&param=${f}&for=${o}&filter=all`:`/outbound/items?page=${n}&paginate=${r}&status=${o}`,{enabled:!!p}),y=h?.data?.[0]||[],v=y?.data?.map(e=>({item_description:e?.name,all_quantity:+e?.all_quantity,quantity:+e?.quantity,type:e?.item_type?.name,selling_price:+e?.selling_price,categories:e?.category||[],tags:e?.item_tags?.map(e=>e.name)||[],status:e?.status?"published":"draft",sku:e?.sku,item_image:e.images?.length>0?e.images?.[0].image:Gx,barcode:e?.barcode,expired:e?.expired,expiring:e?.expiring,unit:e?.item_unit,uuid:e?.uuid,item_type_id:e?.item_type?.uuid,reorder_level:e?.reorder_level,fullData:e}))||[],{data:b,isFetching:w}=Bw(["items-tab"],"/outbound/items/count",{enabled:!!p}),x=b?.data,C=[{label:"all",count:x?.all||0,action:()=>a("all")},{label:"published",count:x?.published||0,action:()=>a("published")},{label:"out of stock",count:x?.out_of_stock||0,action:()=>a("out_of_stock")},{label:"draft",count:x?.draft||0,action:()=>a("draft")},{label:"expiring",count:x?.expiring||0,action:()=>a("expiring")},{label:"expired",count:x?.expired||0,action:()=>a("expired")}],[S,k]=T.useState(!1);return m.jsxs(Yx,{className:"px-4 py-6 flex flex-col gap-8",children:[m.jsx(TS,{tabs:C,loading:g}),m.jsxs("div",{className:" flex items-center justify-between flex-wrap gap-4",children:[m.jsxs("div",{className:"flex items-center gap-2.5",children:[m.jsx(DE,{placeholder:"Search Item name, barcode or sku",value:c,onChange:e=>d(e.target.value)}),g?m.jsx(Ho,{className:"w-20 h-6"}):m.jsxs("p",{className:"text-dark text-sm font-medium",children:[y?.meta?.total??0," ",m.jsx("span",{className:"text-gray-700",children:"Items"})]})]}),m.jsx("div",{className:"flex gap-4",children:m.jsx(bE,{label:"Create New",left_addon:zy.plus_squared,className:"!font-medium !text-sm !h-12",onClick:()=>k(!0)})})]}),m.jsx(TE,{loading:g,data:h?.data?.[1],meta:y?.meta}),m.jsx(Vy,{loading:g,columns:xE,data:v,emptyData:0===v.length,emptyProps:{header:"No item yet",subText:"Add new item to start managing your inventory."},tHeadClass:"whitespace-nowrap",tbCellClass:"text-dark font-semibold",meta:y?.meta}),S?m.jsx(KN,{isOpen:S,onClose:()=>k(!1)}):null]})}};function ej(e,t){!function(){if(!document.querySelector(`link[href="${QN}"]`)){const e=document.createElement("link");e.rel="stylesheet",e.href=QN,document.head.appendChild(e)}}();const n=JN[e];if(!n)return void console.error(`SimpooSDK: Widget "${e}" not found.`);const r=document.querySelector(t);if(!r)throw new Error(`Container "${t}" not found!`);M.createRoot(r).render(m.jsx(Rn,{apiKey:ZN.apiKey||"",children:m.jsx(n,{})}))}"undefined"!=typeof window&&(window.SimpooSDK={init:XN,renderWidget:ej}),e.init=XN,e.renderWidget=ej});
223
+ `;var kE=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});T.forwardRef((e,t)=>m.jsx(aa.span,{...e,ref:t,style:{...kE,...e.style}})).displayName="VisuallyHidden";var _E=[" ","Enter","ArrowUp","ArrowDown"],EE=[" ","Enter"],RE="Select",[NE,jE,PE]=sa(RE),[OE,ME]=qo(RE,[PE,js]),TE=js(),[DE,AE]=OE(RE),[FE,LE]=OE(RE),IE=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:f,required:p,form:h}=e,g=TE(t),[y,v]=T.useState(null),[b,w]=T.useState(null),[x,C]=T.useState(!1),S=ua(u),[k,_]=Zo({prop:r,defaultProp:o??!1,onChange:a,caller:RE}),[E,R]=Zo({prop:i,defaultProp:s,onChange:l,caller:RE}),N=T.useRef(null),j=!y||(h||!!y.closest("form")),[P,O]=T.useState(new Set),M=Array.from(P).map(e=>e.props.value).join(";");return m.jsx(Ws,{...g,children:m.jsxs(DE,{required:p,scope:t,trigger:y,onTriggerChange:v,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:x,onValueNodeHasChildrenChange:C,contentId:Aa(),value:E,onValueChange:R,open:k,onOpenChange:_,dir:S,triggerPointerDownPosRef:N,disabled:f,children:[m.jsx(NE.Provider,{scope:t,children:m.jsx(FE,{scope:e.__scopeSelect,onNativeOptionAdd:T.useCallback(e=>{O(t=>new Set(t).add(e))},[]),onNativeOptionRemove:T.useCallback(e=>{O(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),j?m.jsxs(kR,{"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:E,onChange:e=>R(e.target.value),disabled:f,form:h,children:[void 0===E?m.jsx("option",{value:""}):null,Array.from(P)]},M):null]})})};IE.displayName=RE;var zE="SelectTrigger",$E=T.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=TE(n),i=AE(zE,n),s=i.disabled||r,l=Yo(t,i.onTriggerChange),u=jE(n),c=T.useRef("touch"),[d,f,p]=ER(e=>{const t=u().filter(e=>!e.disabled),n=t.find(e=>e.value===i.value),r=RR(t,e,n);void 0!==r&&i.onValueChange(r.value)}),h=e=>{s||(i.onOpenChange(!0),p()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return m.jsx(Ys,{asChild:!0,...a,children:m.jsx(aa.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":_R(i.value)?"":void 0,...o,ref:l,onClick:Bo(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==c.current&&h(e)}),onPointerDown:Bo(o.onPointerDown,e=>{c.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(h(e),e.preventDefault())}),onKeyDown:Bo(o.onKeyDown,e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),t&&" "===e.key||_E.includes(e.key)&&(h(),e.preventDefault())})})})});$E.displayName=zE;var HE="SelectValue",VE=T.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=AE(HE,n),{onValueNodeHasChildrenChange:u}=l,c=void 0!==a,d=Yo(t,l.onValueNodeChange);return Ko(()=>{u(c)},[u,c]),m.jsx(aa.span,{...s,ref:d,style:{pointerEvents:"none"},children:_R(l.value)?m.jsx(m.Fragment,{children:i}):a})});VE.displayName=HE;var BE=T.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return m.jsx(aa.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});BE.displayName="SelectIcon";var UE=e=>m.jsx(Ks,{asChild:!0,...e});UE.displayName="SelectPortal";var WE="SelectContent",YE=T.forwardRef((e,t)=>{const n=AE(WE,e.__scopeSelect),[r,o]=T.useState();if(Ko(()=>{o(new DocumentFragment)},[]),!n.open){const t=r;return t?Xo.createPortal(m.jsx(GE,{scope:e.__scopeSelect,children:m.jsx(NE.Slot,{scope:e.__scopeSelect,children:m.jsx("div",{children:e.children})})}),t):null}return m.jsx(ZE,{...e,ref:t})});YE.displayName=WE;var qE=10,[GE,KE]=OE(WE),QE=ea("SelectContent.RemoveScroll"),ZE=T.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:g,avoidCollisions:y,...v}=e,b=AE(WE,n),[w,x]=T.useState(null),[C,S]=T.useState(null),k=Yo(t,e=>x(e)),[_,E]=T.useState(null),[R,N]=T.useState(null),j=jE(n),[P,O]=T.useState(!1),M=T.useRef(!1);T.useEffect(()=>{if(w)return Cl(w)},[w]),xa();const D=T.useCallback(e=>{const[t,...n]=j().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&C&&(C.scrollTop=0),n===r&&C&&(C.scrollTop=C.scrollHeight),n?.focus(),document.activeElement!==o)return}},[j,C]),A=T.useCallback(()=>D([_,w]),[D,_,w]);T.useEffect(()=>{P&&A()},[P,A]);const{onOpenChange:F,triggerPointerDownPosRef:L}=b;T.useEffect(()=>{if(w){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():w.contains(n.target)||F(!1),document.removeEventListener("pointermove",t),L.current=null};return null!==L.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[w,F,L]),T.useEffect(()=>{const e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[F]);const[I,z]=ER(e=>{const t=j().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=RR(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),$=T.useCallback((e,t,n)=>{const r=!M.current&&!n;(void 0!==b.value&&b.value===t||r)&&(E(e),r&&(M.current=!0))},[b.value]),H=T.useCallback(()=>w?.focus(),[w]),V=T.useCallback((e,t,n)=>{const r=!M.current&&!n;(void 0!==b.value&&b.value===t||r)&&N(e)},[b.value]),B="popper"===r?JE:XE,U=B===JE?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:g,avoidCollisions:y}:{};return m.jsx(GE,{scope:n,content:w,viewport:C,onViewportChange:S,itemRefCallback:$,selectedItem:_,onItemLeave:H,itemTextRefCallback:V,focusSelectedItem:A,selectedItemText:R,position:r,isPositioned:P,searchRef:I,children:m.jsx(cu,{as:QE,allowPinchZoom:!0,children:m.jsx(Ea,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Bo(o,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:m.jsx(ga,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:m.jsx(B,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...v,...U,onPlaced:()=>O(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Bo(v.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=j().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>D(t)),e.preventDefault()}})})})})})})});ZE.displayName="SelectContentImpl";var XE=T.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=AE(WE,n),i=KE(WE,n),[s,l]=T.useState(null),[u,c]=T.useState(null),d=Yo(t,e=>c(e)),f=jE(n),p=T.useRef(!1),h=T.useRef(!0),{viewport:g,selectedItem:y,selectedItemText:v,focusSelectedItem:b}=i,w=T.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&g&&y&&v){const e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==a.dir){const r=o.left-t.left,a=n.left-r,i=e.left-a,l=e.width+i,u=Math.max(l,t.width),c=window.innerWidth-qE,d=SE(a,[qE,Math.max(qE,c-u)]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-o.right,a=window.innerWidth-n.right-r,i=window.innerWidth-e.right-a,l=e.width+i,u=Math.max(l,t.width),c=window.innerWidth-qE,d=SE(a,[qE,Math.max(qE,c-u)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=f(),l=window.innerHeight-2*qE,c=g.scrollHeight,d=window.getComputedStyle(u),h=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=h+m+c+parseInt(d.paddingBottom,10)+b,x=Math.min(5*y.offsetHeight,w),C=window.getComputedStyle(g),S=parseInt(C.paddingTop,10),k=parseInt(C.paddingBottom,10),_=e.top+e.height/2-qE,E=l-_,R=y.offsetHeight/2,N=h+m+(y.offsetTop+R),j=w-N;if(N<=_){const e=i.length>0&&y===i[i.length-1].ref.current;s.style.bottom="0px";const t=u.clientHeight-g.offsetTop-g.offsetHeight,n=N+Math.max(E,R+(e?k:0)+t+b);s.style.height=n+"px"}else{const e=i.length>0&&y===i[0].ref.current;s.style.top="0px";const t=Math.max(_,h+g.offsetTop+(e?S:0)+R)+j;s.style.height=t+"px",g.scrollTop=N-_+g.offsetTop}s.style.margin=`${qE}px 0`,s.style.minHeight=x+"px",s.style.maxHeight=l+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,u,g,y,v,a.dir,r]);Ko(()=>w(),[w]);const[x,C]=T.useState();Ko(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const S=T.useCallback(e=>{e&&!0===h.current&&(w(),b?.(),h.current=!1)},[w,b]);return m.jsx(eR,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:m.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x},children:m.jsx(aa.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});XE.displayName="SelectItemAlignedPosition";var JE=T.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=qE,...a}=e,i=TE(n);return m.jsx(qs,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});JE.displayName="SelectPopperPosition";var[eR,tR]=OE(WE,{}),nR="SelectViewport",rR=T.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=KE(nR,n),i=tR(nR,n),s=Yo(t,a.onViewportChange),l=T.useRef(0);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),m.jsx(NE.Slot,{scope:n,children:m.jsx(aa.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Bo(o.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(r?.current&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*qE,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop})})})]})});rR.displayName=nR;var oR="SelectGroup",[aR,iR]=OE(oR);T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Aa();return m.jsx(aR,{scope:n,id:o,children:m.jsx(aa.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=oR;var sR="SelectLabel",lR=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=iR(sR,n);return m.jsx(aa.div,{id:o.id,...r,ref:t})});lR.displayName=sR;var uR="SelectItem",[cR,dR]=OE(uR),fR=T.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=AE(uR,n),l=KE(uR,n),u=s.value===r,[c,d]=T.useState(a??""),[f,p]=T.useState(!1),h=Yo(t,e=>l.itemRefCallback?.(e,r,o)),g=Aa(),y=T.useRef("touch"),v=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.jsx(cR,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:T.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:m.jsx(NE.ItemSlot,{scope:n,value:r,disabled:o,textValue:c,children:m.jsx(aa.div,{role:"option","aria-labelledby":g,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:h,onFocus:Bo(i.onFocus,()=>p(!0)),onBlur:Bo(i.onBlur,()=>p(!1)),onClick:Bo(i.onClick,()=>{"mouse"!==y.current&&v()}),onPointerUp:Bo(i.onPointerUp,()=>{"mouse"===y.current&&v()}),onPointerDown:Bo(i.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:Bo(i.onPointerMove,e=>{y.current=e.pointerType,o?l.onItemLeave?.():"mouse"===y.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Bo(i.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:Bo(i.onKeyDown,e=>{""!==l.searchRef?.current&&" "===e.key||(EE.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});fR.displayName=uR;var pR="SelectItemText",hR=T.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=AE(pR,n),s=KE(pR,n),l=dR(pR,n),u=LE(pR,n),[c,d]=T.useState(null),f=Yo(t,e=>d(e),l.onItemTextChange,e=>s.itemTextRefCallback?.(e,l.value,l.disabled)),p=c?.textContent,h=T.useMemo(()=>m.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:y}=u;return Ko(()=>(g(h),()=>y(h)),[g,y,h]),m.jsxs(m.Fragment,{children:[m.jsx(aa.span,{id:l.textId,...a,ref:f}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Xo.createPortal(a.children,i.valueNode):null]})});hR.displayName=pR;var mR="SelectItemIndicator",gR=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return dR(mR,n).isSelected?m.jsx(aa.span,{"aria-hidden":!0,...r,ref:t}):null});gR.displayName=mR;var yR="SelectScrollUpButton",vR=T.forwardRef((e,t)=>{const n=KE(yR,e.__scopeSelect),r=tR(yR,e.__scopeSelect),[o,a]=T.useState(!1),i=Yo(t,r.onScrollButtonChange);return Ko(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?m.jsx(xR,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});vR.displayName=yR;var bR="SelectScrollDownButton",wR=T.forwardRef((e,t)=>{const n=KE(bR,e.__scopeSelect),r=tR(bR,e.__scopeSelect),[o,a]=T.useState(!1),i=Yo(t,r.onScrollButtonChange);return Ko(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?m.jsx(xR,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});wR.displayName=bR;var xR=T.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=KE("SelectScrollButton",n),i=T.useRef(null),s=jE(n),l=T.useCallback(()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)},[]);return T.useEffect(()=>()=>l(),[l]),Ko(()=>{const e=s().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[s]),m.jsx(aa.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Bo(o.onPointerDown,()=>{null===i.current&&(i.current=window.setInterval(r,50))}),onPointerMove:Bo(o.onPointerMove,()=>{a.onItemLeave?.(),null===i.current&&(i.current=window.setInterval(r,50))}),onPointerLeave:Bo(o.onPointerLeave,()=>{l()})})}),CR=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return m.jsx(aa.div,{"aria-hidden":!0,...r,ref:t})});CR.displayName="SelectSeparator";var SR="SelectArrow";T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=TE(n),a=AE(SR,n),i=KE(SR,n);return a.open&&"popper"===i.position?m.jsx(Gs,{...o,...r,ref:t}):null}).displayName=SR;var kR=T.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=T.useRef(null),a=Yo(r,o),i=function(e){const t=T.useRef({value:e,previous:e});return T.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return T.useEffect(()=>{const e=o.current;if(!e)return;const n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value").set;if(i!==t&&r){const n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[i,t]),m.jsx(aa.select,{...n,style:{...kE,...n.style},ref:a,defaultValue:t})});function _R(e){return""===e||void 0===e}function ER(e){const t=ca(e),n=T.useRef(""),r=T.useRef(0),o=T.useCallback(e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),a=T.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return T.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function RR(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const u=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}kR.displayName="SelectBubbleInput";var NR=$E,jR=BE,PR=UE,OR=YE,MR=rR,TR=lR,DR=fR,AR=hR,FR=gR,LR=vR,IR=wR,zR=CR;const $R=IE,HR=VE,VR=T.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(NR,{ref:r,className:Ao("flex h-10 w-full items-center hover:border-[#BFD7FE] justify-between rounded-md border focus:border-primary border-neutral-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-neutral-500 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 ",e),...n,children:[t,m.jsx(jR,{asChild:!0,children:m.jsx(yd,{className:"h-4 w-4 opacity-50"})})]}));VR.displayName=NR.displayName;const BR=T.forwardRef(({className:e,...t},n)=>m.jsx(LR,{ref:n,className:Ao("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(bd,{className:"h-4 w-4"})}));BR.displayName=LR.displayName;const UR=T.forwardRef(({className:e,...t},n)=>m.jsx(IR,{ref:n,className:Ao("flex cursor-default items-center justify-center py-1",e),...t,children:m.jsx(yd,{className:"h-4 w-4"})}));UR.displayName=IR.displayName;const WR=T.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>m.jsx(PR,{children:m.jsxs(OR,{ref:o,className:Ao("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white text-neutral-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[m.jsx(BR,{}),m.jsx(MR,{className:Ao("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),m.jsx(UR,{})]})}));WR.displayName=OR.displayName;T.forwardRef(({className:e,...t},n)=>m.jsx(TR,{ref:n,className:Ao("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})).displayName=TR.displayName;const YR=T.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(DR,{ref:r,className:Ao("relative flex w-full select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-primary/20 cursor-pointer focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(FR,{children:m.jsx(gd,{className:"h-4 w-4"})})}),m.jsx(AR,{children:t})]}));YR.displayName=DR.displayName;function qR({label:e,addonLabel:t,type:n,placeholder:r,selectPlaceholder:o,error:a,success:i,value:s,defaultValue:l,name:u,id:c,formik:d,onChange:f,inputRef:p,onBlur:h,required:g,disabled:y,loading:v,showError:b,selectOptions:w,disableSearch:x,searchSelectPlaceholder:C,showSelectSearch:S,onSelectValueChange:k,selectValue:_,showOutline:E=!0,cols:R,rows:N,labelClass:j,addonLabelClass:P,optional:O,info:M,addonInfo:D,icon:A,actionIcon:F,actionLabel:L,actionLabelInfo:I,actionLabelAction:z,className:$,textAreaOnChange:H,addOn:V,infoAlignment:B,addonInfoAlignment:U,inputContainerClass:W,showNegative:Y,showPositive:q,...G}){const[K,Q]=T.useState(n),[Z,X]=T.useState(!1),[J,ee]=T.useState(""),te=((e,t)=>{const n=e?.filter(e=>"string"==typeof e.label?e.label?.toLowerCase().includes(t.toLowerCase()):e.value?.toLowerCase().includes(t.toLowerCase())||e?.searchId?.toLowerCase().includes(t.toLowerCase()));return t?n:e})(w??[],J);return m.jsx(m.Fragment,{children:v?m.jsx(Vo,{className:"w-full h-[48px]"}):m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:`flex flex-col ${e&&"gap-2.5"} relative `,children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[t&&m.jsxs("label",{className:Ao("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",P),children:[t," ",g?m.jsx("span",{className:"text-[#E12D39]",children:t&&"*"}):O?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,D&&m.jsx(fv,{fieldName:t,align:U,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:D})})]}),e&&m.jsxs("label",{className:Ao("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",j),children:[e," ",g?m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}):O?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,M&&m.jsx(fv,{fieldName:e,align:B,children:m.jsx("p",{className:"font-normal first-letter:uppercase w-full whitespace-pre-wrap",children:M})})]}),L&&m.jsxs("button",{onClick:z,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-bold",children:[F,L,I&&m.jsx(fv,{fieldName:e,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:I})})]})]}),m.jsxs("div",{className:Ao(`border overflow-hidden rounded-md text-sm border-[#E1E3EA] hover:border-primary_light font-normal text-grey-950 flex gap-2 items-center bg-white px-3 ${"text-area"!==n&&"h-[48px]"} ${(a||b)&&"!border-danger"} ${i&&"!border-success"} ${Z&&E&&"!border-primary"}\n ${A&&"px-2"}\n ${V&&"px-0"}\n `,y?"cursor-not-allowed bg-gray-200":null,w?"px-0":null,W),children:[V&&m.jsx("span",{className:"bg-gray-200 text-[13px] font-semibold text-gray-700 h-full min-w-[38px] flex items-center justify-center shrink-0 rounded-l-[6px] px-2 ",children:V}),A,w&&m.jsxs($R,{onValueChange:k,defaultValue:_,value:_,children:[m.jsx(VR,{disabled:x,className:" min-w-max w-max h-full border-0 border-r rounded-none hover:border-neutral-200 focus:border-neutral-200 bg-[#F9F9F9] hover:border-b-neutral-200 disabled:opacity-100 ",children:m.jsx(HR,{className:" text-sm text-[#5E6278] placeholder:font-medium outline-none",placeholder:o})}),m.jsxs(WR,{className:"bg-white w-full relative",children:[S&&m.jsx("input",{value:J,onChange:e=>{ee(e.target.value.toString())},placeholder:C??"Search...",className:"h-10 border mb-2 text-sm px-4 outline-none w-full border-neutral-200 rounded bg-white sticky top-0 z-20"}),te?.map((e,t)=>m.jsx(YR,{className:"text-sm",value:e.value,children:e.label},e.value))]})]}),"text-area"===n?m.jsx("textarea",{cols:R,rows:N,onFocus:()=>X(!0),onBlur:e=>{X(!1)},placeholder:r,className:Ao(`placeholder:text-[#7E8299] hover:border-primary_light py-2 h-full placeholder:font-medium outline-none w-full rounded ${y?"bg-[#EEEFF2] cursor-not-allowed":null} ${Z&&E&&"!border-primary"} transition-all ease-in-out`,$),...G,value:s,name:u,onChange:H}):m.jsx("input",{onInput:e=>{const t=e.target;"number"===n&&(t.value=t.value.replace(/[^0-9.]/g,""),t.value=t.value.replace(/^\.|(\..*)\./g,"$1"),t.value.length>1&&t.value.startsWith("0")&&"."!==t.value[1]&&(t.value=t.value.replace(/^0+/,"")),""!==t.value&&"0"!==t.value||(t.value="0"))},type:"number"===K?"text":K,placeholder:r,className:Ao("placeholder:text-[#7E8299] h-full placeholder:font-medium outline-none w-full rounded disabled:cursor-not-allowed",w&&"number"===n?"pr-2":null,A||V?"pr-0":null,w&&"number"===n&&t&&"text-right pr-2",$,q&&"0"!==s?.toString().trim()?"text-green-600 font-semibold":"",Y&&s?.toString().trim().startsWith("-")?"text-red-600 font-semibold":""),onFocus:()=>X(!0),onBlur:e=>{d&&h&&d&&h(e),X(!1)},value:s||"",defaultValue:l,onChange:f,id:c,name:u,required:g,disabled:y,ref:p,...G}),"password"===n&&m.jsx("span",{className:"cursor-pointer",onClick:()=>{Q(e=>"password"===e?"text":"password")},children:"password"===K?$y.eyeslash:$y.eye})]}),a&&m.jsx("p",{className:"text-danger text-xs font-normal",children:a})]})})})}function GR({value:e,label:t,placeholder:n,uuid:r,name:o,displayValue:a,valueType:i}){const{mutate:s,isPending:l}=Ww(),u=J(),[c,d]=T.useState({item_uuid:r,[o]:e}),f=wn();return m.jsxs(ES,{children:[m.jsx(RS,{className:"flex items-center",children:m.jsx("button",{className:"hover:text-primary duration-150 underline disabled:no-underline disabled:hover:text-inherit",children:a})}),m.jsxs(NS,{align:"center",className:"shadow-[0_1px_2px_0px_#E4E5E73D,_0_12px_24px_0_#868C981F] space-y-2 bg-white rounded-xl p-3 w-[280px] relative before:absolute before:w-3 before:h-1.5 before:bg-white before:left-1/2 before:-translate-x-1/2 before:rotate-45 data-[side=bottom]:before:top-0 data-[side=top]:before:bottom-0",children:[m.jsx(qR,{type:i,value:c[o],label:t,placeholder:n,onChange:e=>{d(t=>({...t,[o]:e.target.value}))}}),m.jsxs("div",{className:"flex justify-end gap-2.5",children:[m.jsx(CS,{children:m.jsx(xE,{label:"Dismiss",className:"bg-gray-300 text-dark text-sm hover:bg-gray-300/90 font-medium",disabled:l})}),m.jsx(xE,{label:"Update",className:"text-sm font-medium",onClick:()=>{s({url:"/outbound/items/update_basic",payload:c},{onSuccess:()=>{f.invalidateQueries({queryKey:["items"]}),u(wt())}})},loading:l})]})]})]})}T.forwardRef(({className:e,...t},n)=>m.jsx(zR,{ref:n,className:Ao("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t})).displayName=zR.displayName;const KR=[{accessorKey:"item_description",header:"item description",cell:({row:e})=>{const t=e.original;return m.jsxs("div",{className:"flex items-center gap-5",children:[m.jsx("div",{className:"w-[50px] h-[50px] rounded-2xl relative bg-gray-100",children:m.jsx("img",{src:t.item_image,alt:"item image",className:"rounded-2xl object-cover w-full h-full",draggable:!1})}),m.jsxs("div",{className:"space-y-1 max-w-[265px]",children:[m.jsx(ZR,{title:t.item_description,item_uuid:t.uuid,item_type_id:t.item_type_id,data:t.fullData}),m.jsxs("p",{className:"text-dark text-xs font-normal flex items-center gap-1",children:[m.jsx("span",{className:"uppercase whitespace-nowrap",children:t.sku}),t.barcode?.length>0?m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"|"}),t.barcode?.[0]?.barcode,t.barcode?.length>1?m.jsxs("span",{className:"rounded bg-[#9747FF1A] px-[5px] flex items-center text-[#7239EA] font-semibold text-[11px] h-[18px]",children:["+",t.barcode?.length-1]}):null]}):null,t.expired?m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"|"}),"Expired",m.jsx("span",{className:"rounded bg-danger_light px-[5px] flex items-center text-danger font-semibold text-[11px] h-[18px]",children:t.expired})]}):null,t.expiring?m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"|"}),"Expiring",m.jsx("span",{className:"rounded bg-warning-light px-[5px] flex items-center text-warning font-semibold text-[11px] h-[18px]",children:t.expiring})]}):null]})]})]})}},{accessorKey:"quantity",header:()=>m.jsx("p",{children:"quantity"}),cell:({row:e})=>{const t=e.original;return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:Ao("flex items-center",t.quantity<=0?"text-danger":Number(t.reorder_level)==t.quantity?"text-orange":null),children:m.jsx(GR,{label:"Edit item quantity",placeholder:"Enter quantity",uuid:t.uuid,name:"item_quantity",displayValue:Wy(t.quantity)+t.unit,value:t.quantity,valueType:"number"})}),t.all_quantity===t.quantity?null:m.jsx("p",{className:"text-gray-700",children:Intl.NumberFormat().format(t.all_quantity??0)+t.unit})]})}},{accessorKey:"type",cell:({row:e})=>{const t=e.original;return m.jsx("p",{className:"capitalize",children:t.type})}},{accessorKey:"selling_price",header:"Selling Price (₦)",cell:({row:e})=>{const t=e.original;return m.jsx(GR,{label:"Edit selling price (₦)",placeholder:"Enter selling price",uuid:t.uuid,name:"selling_price",displayValue:Uy(t.selling_price??0),value:t.selling_price??0,valueType:"number"})}},{accessorKey:"categories",header:"categories/Tags",cell:({row:e})=>{const t=e.original;return m.jsxs(m.Fragment,{children:[" ",m.jsxs("div",{className:"flex items-center gap-2 capitalize",children:[t.categories&&t.categories?.length>0?t.categories?.[0]?.name:"...",t.categories.length>1?m.jsx(fv,{align:"center",fieldName:"Categories",trigger:m.jsxs("button",{className:"rounded bg-[#9747FF1A] px-[5px] flex items-center text-[#7239EA] font-semibold text-[11px] h-[18px]",children:["+",t.categories.length-1]}),children:m.jsx("ul",{className:"list-disc pl-4",children:t.categories.map((e,t)=>m.jsx("li",{children:e.name},t))})}):null]}),m.jsxs("div",{className:"text-gray-700 flex items-center gap-2 capitalize",children:[t.tags?.[0],t.tags?.length>1?m.jsx(fv,{align:"center",fieldName:"Tags",trigger:m.jsxs("button",{className:"rounded bg-[#9747FF1A] px-[5px] flex items-center text-[#7239EA] font-semibold text-[11px] h-[18px] border-primary",children:["+",t.tags.length-1]}),children:m.jsx("ul",{className:"list-disc pl-4",children:t.tags.map((e,t)=>m.jsx("li",{children:e},t))})}):null]})]})}},{accessorKey:"status",cell:({row:e})=>{const t=e.getValue("status");return m.jsx(pv,{status:t})}},{id:"actions",header:"actions",cell:({row:e})=>{const t=e.original;return m.jsx(QR,{item_uuid:t.uuid,item_type_id:t.item_type_id,data:t.fullData})}}],QR=({item_uuid:e,item_type_id:t,data:n})=>{const[r,o]=T.useState(null),a=()=>{o(null)},[i,s]=T.useState(!1),[l,u]=T.useState(!1),[c,d]=T.useState(!1),[f,p]=T.useState(!1),[h,g]=T.useState(!1),[y,v]=T.useState(!1),[b,w]=T.useState(!1),x=[{label:"view",icon:$y.eye_outline,action:()=>s(!0)},{label:"delete",icon:$y.trash,action:()=>p(!0)}];return m.jsxs(m.Fragment,{children:[m.jsxs(kd,{children:[m.jsx(_d,{asChild:!0,children:m.jsxs("button",{className:"bg-gray-100 rounded-md h-[30px] w-[90px] flex items-center justify-between p-2.5 font-semibold text-[10px] text-gray-500 hover:border duration-200",children:["Action"," ",m.jsx("svg",{width:"11",height:"6",viewBox:"0 0 11 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.50855 5.49304C5.42081 5.49355 5.33383 5.47673 5.25261 5.44356C5.17138 5.41038 5.09751 5.3615 5.03521 5.29971L1.03521 1.29971C0.972726 1.23773 0.92313 1.164 0.889284 1.08276C0.855438 1.00152 0.838013 0.914383 0.838013 0.826375C0.838013 0.738367 0.855438 0.65123 0.889284 0.56999C0.92313 0.488751 0.972726 0.415017 1.03521 0.353041C1.16012 0.228874 1.32909 0.15918 1.50521 0.15918C1.68134 0.15918 1.8503 0.228874 1.97521 0.353041L5.50855 3.88637L9.03521 0.353041C9.16012 0.228874 9.32909 0.15918 9.50521 0.15918C9.68134 0.15918 9.8503 0.228874 9.97521 0.353041C10.0377 0.415017 10.0873 0.488751 10.1211 0.56999C10.155 0.65123 10.1724 0.738367 10.1724 0.826375C10.1724 0.914383 10.155 1.00152 10.1211 1.08276C10.0873 1.164 10.0377 1.23773 9.97521 1.29971L5.97521 5.29971C5.85104 5.42287 5.68344 5.4923 5.50855 5.49304Z",fill:"#202125"})})]})}),m.jsx(Ed,{align:"end",className:"flex flex-col gap-2.5 rounded-xl border-gray-200",children:x.map((e,t)=>m.jsxs(Rd,{className:`capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-gray-700 text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${t===x.length-1&&"text-danger focus:text-danger"}`,onMouseOver:()=>(e=>{o(e)})(t),onMouseOut:a,onClick:e.action,children:[D.cloneElement(e.icon,{fill:r===t?"#1868DB":"#5E6278"})," ",e.label]},t))})]}),m.jsx(FS,{isOpen:i,onClose:()=>s(!1),itemUUID:e}),m.jsx(CE,{isOpen:f,onClose:()=>p(!1),uuids:[e],single:!0})]})},ZR=({title:e,item_uuid:t,item_type_id:n,data:r})=>{const[o,a]=T.useState(!1),[i,s]=T.useState(!1),[l,u]=T.useState(!1);return m.jsxs(m.Fragment,{children:[m.jsx("button",{className:Ao("text-primary font-bold text-sm first-letter:uppercase truncate max-w-[265px] cursor-pointer",r.expired?"text-danger":""),title:e,onClick:()=>a(!0),children:e}),m.jsx(FS,{isOpen:o,onClose:()=>a(!1),itemUUID:t})]})};var XR,JR={};function eN(){if(XR)return JR;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}XR=1,Object.defineProperty(JR,"__esModule",{value:!0}),JR.Collapse=void 0;var t,n=(t=f())&&t.__esModule?t:{default:t};function r(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,o=s(t);if(n){var a=s(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}(this,r)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t=a(s);function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),l(i(n=t.call(this,e)),"timeout",void 0),l(i(n),"container",void 0),l(i(n),"content",void 0),l(i(n),"onResize",function(){if(clearTimeout(n.timeout),n.container&&n.content){var e=n.props,t=e.isOpened,r=e.checkTimeout,o=Math.floor(n.container.clientHeight),a=Math.floor(n.content.clientHeight),i=t&&Math.abs(a-o)<=1,s=!t&&Math.abs(o)<=1;i||s?n.onRest({isFullyOpened:i,isFullyClosed:s,isOpened:t,containerHeight:o,contentHeight:a}):(n.onWork({isFullyOpened:i,isFullyClosed:s,isOpened:t,containerHeight:o,contentHeight:a}),n.timeout=setTimeout(function(){return n.onResize()},r))}}),l(i(n),"onRest",function(e){var t=e.isFullyOpened,r=e.isFullyClosed,o=e.isOpened,a=e.containerHeight,i=e.contentHeight;if(n.container&&n.content){var s=o&&n.container.style.height==="".concat(i,"px"),l=!o&&"0px"===n.container.style.height;if(s||l){n.container.style.overflow=o?"initial":"hidden",n.container.style.height=o?"auto":"0px";var u=n.props.onRest;u&&u({isFullyOpened:t,isFullyClosed:r,isOpened:o,containerHeight:a,contentHeight:i})}}}),l(i(n),"onWork",function(e){var t=e.isFullyOpened,r=e.isFullyClosed,o=e.isOpened,a=e.containerHeight,i=e.contentHeight;if(n.container&&n.content){var s=o&&n.container.style.height==="".concat(i,"px"),l=!o&&"0px"===n.container.style.height;if(!s&&!l){n.container.style.overflow="hidden",n.container.style.height=o?"".concat(i,"px"):"0px";var u=n.props.onWork;u&&u({isFullyOpened:t,isFullyClosed:r,isOpened:o,containerHeight:a,contentHeight:i})}}}),l(i(n),"onRefContainer",function(e){n.container=e}),l(i(n),"onRefContent",function(e){n.content=e}),e.initialStyle?n.initialStyle=e.initialStyle:n.initialStyle=e.isOpened?{height:"auto",overflow:"initial"}:{height:"0px",overflow:"hidden"},n}return r(s,[{key:"componentDidMount",value:function(){this.onResize()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.theme,r=t.isOpened;return t.children!==e.children||r!==e.isOpened||Object.keys(n).some(function(t){return n[t]!==e.theme[t]})}},{key:"getSnapshotBeforeUpdate",value:function(){if(!this.container||!this.content)return null;if("auto"===this.container.style.height){var e=this.content.clientHeight;this.container.style.height="".concat(e,"px")}return null}},{key:"componentDidUpdate",value:function(){this.onResize()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this.props,t=e.theme,r=e.children,o=e.isOpened;return n.default.createElement("div",{ref:this.onRefContainer,className:t.collapse,style:this.initialStyle,"aria-hidden":!o},n.default.createElement("div",{ref:this.onRefContent,className:t.content},r))}}]),s}(n.default.Component);return JR.Collapse=u,l(u,"defaultProps",{theme:{collapse:"ReactCollapse--collapse",content:"ReactCollapse--content"},initialStyle:void 0,onRest:void 0,onWork:void 0,checkTimeout:50}),JR}var tN,nN,rN,oN={};function aN(){if(tN)return oN;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}tN=1,Object.defineProperty(oN,"__esModule",{value:!0}),oN.UnmountClosed=void 0;var t,n=(t=f())&&t.__esModule?t:{default:t},r=eN(),o=["isOpened"],a=["isOpened"];function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,o=m(t);if(n){var a=m(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,r)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t=p(s);function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),g(h(n=t.call(this,e)),"onWork",function(e){var t=e.isOpened,r=u(e,o);n.setState({isResting:!1,isOpened:t});var a=n.props.onWork;a&&a(l({isOpened:t},r))}),g(h(n),"onRest",function(e){var t=e.isOpened,r=u(e,a);n.setState({isResting:!0,isOpened:t,isInitialRender:!1});var o=n.props.onRest;o&&o(l({isOpened:t},r))}),g(h(n),"getInitialStyle",function(){var e=n.state,t=e.isOpened;return e.isInitialRender&&t?{height:"auto",overflow:"initial"}:{height:"0px",overflow:"hidden"}}),n.state={isResting:!0,isOpened:e.isOpened,isInitialRender:!0},n}return c(s,[{key:"componentDidUpdate",value:function(e){var t=this.props.isOpened;e.isOpened!==t&&this.setState({isResting:!1,isOpened:t,isInitialRender:!1})}},{key:"render",value:function(){var e=this.state,t=e.isResting,o=e.isOpened;return t&&!o?null:n.default.createElement(r.Collapse,i({},this.props,{initialStyle:this.getInitialStyle(),onWork:this.onWork,onRest:this.onRest}))}}]),s}(n.default.PureComponent);return oN.UnmountClosed=y,g(y,"defaultProps",{onWork:void 0,onRest:void 0}),oN}var iN=function(){if(rN)return nN;rN=1;var e=eN().Collapse,t=aN().UnmountClosed;return nN=t,t.Collapse=e,t.UnmountClosed=t,nN}();function sN({loading:e,data:t,meta:n}){const r=t?.otherscount?.map(e=>{const n=e.name;return{type:n,value:t?.result_array?.[n]?.total_selling_price??0}}),o=[{type:t?.result_array?.Retail?.pricegroup??t?.default,value:t?.result_array?.Retail?.total_selling_price??0},...r||[]],a=t?.otherscount?.map(e=>{const n=e.name;return{type:n,value:t?.result_array?.[n]?.total_profit??0}}),i=[{type:t?.result_array?.Retail?.pricegroup??t?.default,value:t?.result_array?.Retail?.total_profit??0},...a||[]],[s,l]=T.useState({type:o?.[0].type,value:o?.[0].value}),[u,c]=T.useState({type:i?.[0].type,value:i?.[0].value});D.useEffect(()=>{l({type:o?.[0].type,value:o?.[0].value}),c({type:i?.[0].type,value:i?.[0].value})},[e]);const d=[{label:"Total No. of Unique Item",count:Intl.NumberFormat().format(n?.total??0),desc:`With ${t?.unit_count??0} unit(s)`,icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#EFF5FF] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:$y.cube})},{label:"Total Cost Price",count:Uy(t?.result_array?.Retail?.total_cost??0),desc:"Takes into Account FIFO & LIFO ",icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#F9DFDD] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:D.cloneElement($y.price_tag,{fill:"#ED7400"})})},{label:"Total Selling Price",count:Uy(s.value),desc:m.jsxs("p",{className:"flex gap-2 items-center flex-wrap",children:["Showing ",s.type," price"," ",m.jsxs(kd,{children:[m.jsx(_d,{asChild:!0,children:m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-[#F9F9F9]",children:["change",m.jsx("span",{className:"rotate-90",children:$y.arrow})]})}),m.jsx(Ed,{align:"start",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5 w-[210px]",children:o.map((e,t)=>m.jsx(Rd,{className:Ao("capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] \n \n ",e.type===s.type?"bg-primary_light text-primary":null),onClick:()=>l(t=>({...t,value:e.value,type:e.type})),children:e.type},t))})]})]}),icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#D8CDF4] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:D.cloneElement($y.price_tag,{fill:"#9747FF"})})},{label:"Profit to be made",count:Uy(u.value),desc:m.jsxs("p",{className:"flex gap-2 items-center flex-wrap",children:["Showing ",u.type," price"," ",m.jsxs(kd,{children:[m.jsx(_d,{asChild:!0,children:m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-[#F9F9F9]",children:["change",m.jsx("span",{className:"rotate-90",children:$y.arrow})]})}),m.jsx(Ed,{align:"start",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5 w-[210px]",children:i.map((e,t)=>m.jsx(Rd,{className:Ao("capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] \n \n ",e.type===u.type?"bg-primary_light text-primary":null),onClick:()=>c(t=>({...t,value:e.value,type:e.type})),children:e.type},t))})]})]}),icon:m.jsx("div",{className:"shrink-0 rounded-lg bg-[#C6E3D2] w-12 h-12 flex items-center justify-center border border-[#EDEEF1]",children:D.cloneElement($y.price_tag,{fill:"#378C5A"})})}],[f,p]=T.useState(!1);return m.jsxs(qx,{className:"bg-[#F6F8FA] p-2.5 flex flex-col",children:[m.jsxs("div",{className:"flex justify-between",children:[m.jsx("h1",{className:"capitalize text-dark font-semibold text-lg",children:"Items overview"}),m.jsxs("button",{className:"rounded-lg h-8 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 capitalize bg-white",onClick:()=>p(!f),children:[f?"Close":"Open"," ",m.jsx("span",{className:"rotate-90",children:$y.arrow})]})]}),m.jsx(iN.Collapse,{isOpened:f,children:m.jsx("div",{className:"flex flex-wrap gap-2.5 mt-3",children:d.map((t,n)=>m.jsxs("div",{className:Ao("border rounded-xl border-[#E4E7EC] p-4 flex flex-col relative bg-right-bottom bg-no-repeat flex-auto",0===n?"bg-[#E4EEFA] bg-[url('/assets/images/ecstacy1.svg')]":1===n?"bg-[#FAEAE9] bg-[url('/assets/images/ecstacy2.svg')]":2===n?"bg-[#EEE9FA] bg-[url('/assets/images/ecstacy3.svg')]":3===n?"bg-[#EBF5EF] bg-[url('/assets/images/ecstacy4.svg')]":null),children:[m.jsxs("div",{className:"flex justify-between gap-1",children:[m.jsx("h1",{className:"text-dark text-sm font-medium",children:t.label}),m.jsx("div",{className:"shrink-0",children:t.icon})]}),m.jsxs("div",{className:"flex flex-col gap-1",children:[e?m.jsx(Vo,{className:"w-28 h-6 rounded"}):m.jsx("h1",{className:Ao("text-dark font-bold text-[29px] truncate",n===d.length-1&&u.value<0?"text-danger":null),title:t.count,children:t.count}),m.jsx("div",{className:"text-gray-700 text-sm font-medium ",children:t.desc})]})]},n))})})]})}function lN({placeholder:e,className:t,inputClass:n,...r}){return m.jsxs("div",{className:Ao("h-12 border border-gray-300 rounded-md w-[320px] flex",t),children:[m.jsx("span",{className:"bg-gray-200 w-[38px] flex items-center justify-center shrink-0 rounded-l-[6px] ",children:$y.magnifier}),m.jsx("input",{type:"search",placeholder:e,className:"w-full px-3 text-dark text-sm font-medium bg-transparent outline-none rounded-r-[6px]",...r})]})}function uN(e,t){return e===t}function cN(e,t,n){var r=uN,o=T.useRef(e),a=T.useState({})[1],i=function(e,t,n,r){var o=this,a=T.useRef(null),i=T.useRef(0),s=T.useRef(0),l=T.useRef(null),u=T.useRef([]),c=T.useRef(),d=T.useRef(),f=T.useRef(e),p=T.useRef(!0);f.current=e;var h="undefined"!=typeof window,m=!t&&0!==t&&h;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,y=!("trailing"in n)||!!n.trailing,v="maxWait"in n,b="debounceOnServer"in n&&!!n.debounceOnServer,w=v?Math.max(+n.maxWait||0,t):null;T.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var x=T.useMemo(function(){var e=function(e){var t=u.current,n=c.current;return u.current=c.current=null,i.current=e,s.current=s.current||e,d.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(e):setTimeout(e,t)},x=function(e){if(!p.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||v&&e-i.current>=w},C=function(t){return l.current=null,y&&u.current?e(t):(u.current=c.current=null,d.current)},S=function e(){var r=Date.now();if(g&&s.current===i.current&&k(),x(r))return C(r);if(p.current){var o=t-(r-a.current),l=v?Math.min(o,w-(r-i.current)):o;n(e,l)}},k=function(){r&&r({})},_=function(){if(h||b){var r=Date.now(),s=x(r);if(u.current=[].slice.call(arguments),c.current=o,a.current=r,s){if(!l.current&&p.current)return i.current=a.current,n(S,t),g?e(a.current):d.current;if(v)return n(S,t),e(a.current)}return l.current||n(S,t),d.current}};return _.cancel=function(){l.current&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),i.current=0,u.current=a.current=c.current=l.current=null},_.isPending=function(){return!!l.current},_.flush=function(){return l.current?C(Date.now()):d.current},_},[g,v,t,w,y,m,h,b,r]);return x}(T.useCallback(function(e){o.current=e,a({})},[a]),t,n,a),s=T.useRef(e);return r(s.current,e)||(i(e),s.current=e),[o.current,i]}function dN({placeholder:e,searchPlaceholder:t,options:n=[],showMultiSelectValues:r=!0,values:o,onChange:a,className:i,showCheckMark:s=!0,label:l,labelClass:u,required:c,info:d,optional:f,actionLabel:p,actionLabelAction:h,actionLabelInfo:g,removeSelectedValue:y,removeTag:v,loading:b,showCount:w,error:x}){const[C,S]=T.useState(!1),[k,_]=T.useState(0),E=T.useRef(null);T.useEffect(()=>{const e=()=>{E.current&&_(E?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[E]);const R=e=>{const t=o?.includes(e)?o?.filter(t=>t!==e):[...o||[],e];a&&a(t)};T.useEffect(()=>{y&&R(y)},[y]);const[N,j]=T.useState(null),P=e=>{j(t=>t===e?null:e)},O=e=>{for(let t of n){if(t.value===e)return t.label;if(t.subOptions){const n=t.subOptions.find(t=>t.value===e);if(n)return n.label}}return null};return m.jsx("div",{ref:E,children:b?m.jsx(Vo,{className:"w-full h-[48px]"}):m.jsxs("div",{className:Ao("flex flex-col gap-2.5",i),children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[l&&m.jsxs("label",{className:Ao("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",u),children:[l," ",c?m.jsx("span",{className:"text-[#E12D39]",children:l&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(fv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),p&&m.jsxs("button",{onClick:h,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[p,g&&m.jsx(fv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:g})})]})]}),m.jsxs(ES,{modal:!0,open:C,onOpenChange:S,children:[m.jsx(RS,{asChild:!0,children:m.jsxs(PS,{variant:"outline",role:"combobox","aria-expanded":C,className:Ao(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${x&&"!border-danger"}`,r?"h-auto py-3":null,i),children:[m.jsx("div",{className:"flex gap-2 text-[#5E6278] justify-start first-letter:uppercase flex-wrap",children:o?.length&&r?o.map((e,t)=>m.jsxs("div",{onClick:()=>{v||R(e),P(e)},className:"px-2 py-1 text-black flex items-center justify-between rounded gap-2 border bg-slate-200 text-xs font-medium",children:[m.jsx("span",{className:"flex justify-start text-start flex-wrap gap-2 whitespace-normal",children:O(e)}),m.jsx("span",{className:"",children:m.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.44001 4.49978L7.83334 2.12644C7.96064 1.99737 8.03146 1.82301 8.03021 1.64173C8.02896 1.46044 7.95575 1.28708 7.82667 1.15978C7.6976 1.03247 7.52324 0.961657 7.34196 0.962907C7.16067 0.964157 6.98731 1.03737 6.86001 1.16644L4.50001 3.55978L2.14001 1.21311C2.0151 1.08894 1.84613 1.01925 1.67001 1.01925C1.49388 1.01925 1.32492 1.08894 1.20001 1.21311C1.13752 1.27509 1.08793 1.34882 1.05408 1.43006C1.02023 1.5113 1.00281 1.59844 1.00281 1.68644C1.00281 1.77445 1.02023 1.86159 1.05408 1.94283C1.08793 2.02407 1.13752 2.0978 1.20001 2.15978L3.56001 4.49978L1.16667 6.87311C1.03937 7.00218 0.968554 7.17654 0.969804 7.35782C0.971054 7.53911 1.04427 7.71247 1.17334 7.83978C1.30241 7.96708 1.47677 8.0379 1.65805 8.03665C1.83934 8.0354 2.0127 7.96218 2.14001 7.83311L4.50001 5.43978L6.86001 7.78644C6.98492 7.91061 7.15388 7.98031 7.33001 7.98031C7.50613 7.98031 7.6751 7.91061 7.80001 7.78644C7.86249 7.72447 7.91209 7.65073 7.94594 7.56949C7.97978 7.48826 7.99721 7.40112 7.99721 7.31311C7.99721 7.2251 7.97978 7.13797 7.94594 7.05673C7.91209 6.97549 7.86249 6.90175 7.80001 6.83978L5.44001 4.49978Z",fill:"black"})})})]},t)):!r&&w&&o.length>0?`${o.length} ${l} selected`:e??"Select..."}),m.jsx(wd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(NS,{align:"start",style:{width:k},className:"w-[480px] p-0 bg-white rounded-xl border-gray-200",children:m.jsxs(KC,{children:[m.jsx(QC,{className:"placeholder:text-xs",placeholder:t??"Search..."}),m.jsx(XC,{children:"No result found."}),m.jsx(JC,{children:m.jsx(ZC,{className:"",children:n?.map((e,t)=>m.jsxs("div",{children:[m.jsxs(eS,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{R(e.value),e?.subOptions&&e?.subOptions?.length>0&&P(e.value)},children:[s&&m.jsx(gd,{className:Ao("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),m.jsxs("p",{className:"flex justify-between w-full",children:[e.label,e?.subOptions&&e?.subOptions?.length>0&&m.jsx(yd,{className:"ml-2 h-5 w-5 font-bold shrink-0 opacity-50"})]})]}),N===e.value&&e?.subOptions&&e?.subOptions?.map((e,t)=>m.jsxs(eS,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer pl-6 ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{R(e.value)},children:[s&&m.jsx(gd,{className:Ao("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),e.label]},t))]},t))})})]})})]}),x&&m.jsx("p",{className:"text-danger text-xs font-normal",children:x})]})})}var fN="ScrollArea",[pN,hN]=qo(fN),[mN,gN]=pN(fN),yN=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,l]=T.useState(null),[u,c]=T.useState(null),[d,f]=T.useState(null),[p,h]=T.useState(null),[g,y]=T.useState(null),[v,b]=T.useState(0),[w,x]=T.useState(0),[C,S]=T.useState(!1),[k,_]=T.useState(!1),E=Yo(t,e=>l(e)),R=ua(o);return m.jsx(mN,{scope:n,type:r,dir:R,scrollHideDelay:a,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:C,onScrollbarXEnabledChange:S,scrollbarY:g,onScrollbarYChange:y,scrollbarYEnabled:k,onScrollbarYEnabledChange:_,onCornerWidthChange:b,onCornerHeightChange:x,children:m.jsx(aa.div,{dir:R,...i,ref:E,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});yN.displayName=fN;var vN="ScrollAreaViewport",bN=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,i=gN(vN,n),s=Yo(t,T.useRef(null),i.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),m.jsx(aa.div,{"data-radix-scroll-area-viewport":"",...a,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:m.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});bN.displayName=vN;var wN="ScrollAreaScrollbar",xN=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=gN(wN,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s="horizontal"===e.orientation;return T.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),"hover"===o.type?m.jsx(CN,{...r,ref:t,forceMount:n}):"scroll"===o.type?m.jsx(SN,{...r,ref:t,forceMount:n}):"auto"===o.type?m.jsx(kN,{...r,ref:t,forceMount:n}):"always"===o.type?m.jsx(_N,{...r,ref:t}):null});xN.displayName=wN;var CN=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=gN(wN,e.__scopeScrollArea),[a,i]=T.useState(!1);return T.useEffect(()=>{const e=o.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),i(!0)},r=()=>{t=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[o.scrollArea,o.scrollHideDelay]),m.jsx(Qs,{present:n||a,children:m.jsx(kN,{"data-state":a?"visible":"hidden",...r,ref:t})})}),SN=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=gN(wN,e.__scopeScrollArea),a="horizontal"===e.orientation,i=UN(()=>l("SCROLL_END"),100),[s,l]=(u="hidden",c={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},T.useReducer((e,t)=>c[e][t]??e,u));var u,c;return T.useEffect(()=>{if("idle"===s){const e=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,o.scrollHideDelay,l]),T.useEffect(()=>{const e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),i()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,l,i]),m.jsx(Qs,{present:n||"hidden"!==s,children:m.jsx(_N,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:Bo(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Bo(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),kN=T.forwardRef((e,t)=>{const n=gN(wN,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=T.useState(!1),s="horizontal"===e.orientation,l=UN(()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}},10);return WN(n.viewport,l),WN(n.content,l),m.jsx(Qs,{present:r||a,children:m.jsx(_N,{"data-state":a?"visible":"hidden",...o,ref:t})})}),_N=T.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=gN(wN,e.__scopeScrollArea),a=T.useRef(null),i=T.useRef(0),[s,l]=T.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=IN(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function d(e,t){return function(e,t,n,r="ltr"){const o=zN(n),a=o/2,i=t||a,s=o-i,l=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport,d="ltr"===r?[0,c]:[-1*c,0];return HN([l,u],d)(e)}(e,i.current,s,t)}return"horizontal"===n?m.jsx(EN,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=$N(o.viewport.scrollLeft,s,o.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=d(e,o.dir))}}):"vertical"===n?m.jsx(RN,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=$N(o.viewport.scrollTop,s);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=d(e))}}):null}),EN=T.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=gN(wN,e.__scopeScrollArea),[i,s]=T.useState(),l=T.useRef(null),u=Yo(t,l,a.onScrollbarXChange);return T.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),m.jsx(PN,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":zN(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),VN(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:LN(i.paddingLeft),paddingEnd:LN(i.paddingRight)}})}})}),RN=T.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=gN(wN,e.__scopeScrollArea),[i,s]=T.useState(),l=T.useRef(null),u=Yo(t,l,a.onScrollbarYChange);return T.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),m.jsx(PN,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":zN(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),VN(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:LN(i.paddingTop),paddingEnd:LN(i.paddingBottom)}})}})}),[NN,jN]=pN(wN),PN=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,p=gN(wN,n),[h,g]=T.useState(null),y=Yo(t,e=>g(e)),v=T.useRef(null),b=T.useRef(""),w=p.viewport,x=r.content-r.viewport,C=ca(c),S=ca(l),k=UN(d,10);function _(e){if(v.current){const t=e.clientX-v.current.left,n=e.clientY-v.current.top;u({x:t,y:n})}}return T.useEffect(()=>{const e=e=>{const t=e.target,n=h?.contains(t);n&&C(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[w,h,x,C]),T.useEffect(S,[r,S]),WN(h,k),WN(p.content,k),m.jsx(NN,{scope:n,scrollbar:h,hasThumb:o,onThumbChange:ca(a),onThumbPointerUp:ca(i),onThumbPositionChange:S,onThumbPointerDown:ca(s),children:m.jsx(aa.div,{...f,ref:y,style:{position:"absolute",...f.style},onPointerDown:Bo(e.onPointerDown,e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),v.current=h.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),_(e)}}),onPointerMove:Bo(e.onPointerMove,_),onPointerUp:Bo(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,p.viewport&&(p.viewport.style.scrollBehavior=""),v.current=null})})})}),ON="ScrollAreaThumb",MN=T.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=jN(ON,e.__scopeScrollArea);return m.jsx(Qs,{present:n||o.hasThumb,children:m.jsx(TN,{ref:t,...r})})}),TN=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=gN(ON,n),i=jN(ON,n),{onThumbPositionChange:s}=i,l=Yo(t,e=>i.onThumbChange(e)),u=T.useRef(void 0),c=UN(()=>{u.current&&(u.current(),u.current=void 0)},100);return T.useEffect(()=>{const e=a.viewport;if(e){const t=()=>{if(c(),!u.current){const t=BN(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,c,s]),m.jsx(aa.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Bo(e.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})}),onPointerUp:Bo(e.onPointerUp,i.onThumbPointerUp)})});MN.displayName=ON;var DN="ScrollAreaCorner",AN=T.forwardRef((e,t)=>{const n=gN(DN,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?m.jsx(FN,{...e,ref:t}):null});AN.displayName=DN;var FN=T.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=gN(DN,n),[a,i]=T.useState(0),[s,l]=T.useState(0),u=Boolean(a&&s);return WN(o.scrollbarX,()=>{const e=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(e),l(e)}),WN(o.scrollbarY,()=>{const e=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(e),i(e)}),u?m.jsx(aa.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}}):null});function LN(e){return e?parseInt(e,10):0}function IN(e,t){const n=e/t;return isNaN(n)?0:n}function zN(e){const t=IN(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function $N(e,t,n="ltr"){const r=zN(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,l=SE(e,"ltr"===n?[0,i]:[-1*i,0]);return HN([0,i],[0,s])(l)}function HN(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function VN(e,t){return e>0&&e<t}var BN=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function UN(e,t){const n=ca(e),r=T.useRef(0);return T.useEffect(()=>()=>window.clearTimeout(r.current),[]),T.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function WN(e,t){const n=ca(t);Ko(()=>{let t=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var YN=yN,qN=bN,GN=AN;const KN=T.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(YN,{ref:r,className:Ao("relative overflow-hidden",e),...n,children:[m.jsx(qN,{className:"h-full w-full rounded-[inherit]",children:t}),m.jsx(QN,{}),m.jsx(GN,{})]}));KN.displayName=YN.displayName;const QN=T.forwardRef(({className:e,orientation:t="vertical",...n},r)=>m.jsx(xN,{ref:r,orientation:t,className:Ao("flex touch-none select-none transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:m.jsx(MN,{className:"relative flex-1 rounded-full bg-neutral-200 dark:bg-neutral-800"})}));function ZN({placeholder:e,searchPlaceholder:t,options:n=[],showMultiSelectValues:r=!0,values:o,onChange:a,className:i,showCheckMark:s=!0,label:l,labelClass:u,required:c,info:d,optional:f,actionLabel:p,actionLabelAction:h,actionLabelInfo:g,removeSelectedValue:y,removeTag:v,loading:b,showCount:w,error:x,showError:C,onChangeSearch:S,searching:k,contentStyle:_,disabled:E}){const[R,N]=T.useState(!1),[j,P]=T.useState(0),O=T.useRef(null);T.useEffect(()=>{const e=()=>{O.current&&P(O?.current?.offsetWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const M=o?.filter(e=>""!==e),D=e=>{const t=M?.includes(e)?M?.filter(t=>t!==e):[...M||[],e];a&&a(t)};return T.useEffect(()=>{y&&D(y)},[y]),m.jsx(m.Fragment,{children:b?m.jsx(Vo,{className:"w-full h-[48px]"}):m.jsxs("div",{className:Ao("flex flex-col gap-2.5",i),children:[m.jsxs("div",{className:"flex justify-between gap-2 flex-wrap",children:[l&&m.jsxs("label",{className:Ao("text-black flex items-center gap-1 first-letter:uppercase text-sm font-medium",u),children:[l," ",c?m.jsx("span",{className:"text-[#E12D39]",children:l&&"*"}):f?m.jsx("span",{className:"text-[#B5B5B5] font-normal",children:"(optional)"}):null,d&&m.jsx(fv,{fieldName:l,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:d})})]}),p&&m.jsxs("button",{onClick:h,className:"text-primary flex items-center gap-1 first-letter:uppercase text-sm font-medium",children:[p,g&&m.jsx(fv,{fieldName:p,children:m.jsx("p",{className:"font-normal first-letter:uppercase text-left",children:g})})]})]}),m.jsxs(ES,{modal:!0,open:R,onOpenChange:N,children:[m.jsx(RS,{disabled:E,asChild:!0,children:m.jsxs(PS,{ref:O,variant:"outline",role:"combobox","aria-expanded":R,className:Ao(`w-full h-[48px] justify-between border focus:border-primary border-neutral-200 bg-white hover:bg-white hover:border-[#BFD7FE] ${(x||C)&&"!border-danger"}`,r?"h-auto py-3":null,i),children:[m.jsx("div",{className:"flex gap-2 text-[#5E6278] justify-start first-letter:uppercase flex-wrap",children:M?.length>0&&r?M?.map((e,t)=>m.jsxs("div",{onClick:()=>{!v&&D(e)},className:"px-2 py-1 text-black flex items-center justify-between rounded gap-2 border bg-slate-200 text-xs font-medium",children:[n?.[0].searchId?n?.find(t=>t.value===e)?.searchId:n?.find(t=>t.value===e)?.label,m.jsx("span",{className:"",children:m.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M5.44001 4.49978L7.83334 2.12644C7.96064 1.99737 8.03146 1.82301 8.03021 1.64173C8.02896 1.46044 7.95575 1.28708 7.82667 1.15978C7.6976 1.03247 7.52324 0.961657 7.34196 0.962907C7.16067 0.964157 6.98731 1.03737 6.86001 1.16644L4.50001 3.55978L2.14001 1.21311C2.0151 1.08894 1.84613 1.01925 1.67001 1.01925C1.49388 1.01925 1.32492 1.08894 1.20001 1.21311C1.13752 1.27509 1.08793 1.34882 1.05408 1.43006C1.02023 1.5113 1.00281 1.59844 1.00281 1.68644C1.00281 1.77445 1.02023 1.86159 1.05408 1.94283C1.08793 2.02407 1.13752 2.0978 1.20001 2.15978L3.56001 4.49978L1.16667 6.87311C1.03937 7.00218 0.968554 7.17654 0.969804 7.35782C0.971054 7.53911 1.04427 7.71247 1.17334 7.83978C1.30241 7.96708 1.47677 8.0379 1.65805 8.03665C1.83934 8.0354 2.0127 7.96218 2.14001 7.83311L4.50001 5.43978L6.86001 7.78644C6.98492 7.91061 7.15388 7.98031 7.33001 7.98031C7.50613 7.98031 7.6751 7.91061 7.80001 7.78644C7.86249 7.72447 7.91209 7.65073 7.94594 7.56949C7.97978 7.48826 7.99721 7.40112 7.99721 7.31311C7.99721 7.2251 7.97978 7.13797 7.94594 7.05673C7.91209 6.97549 7.86249 6.90175 7.80001 6.83978L5.44001 4.49978Z",fill:"black"})})})]},t)):!r&&w&&o.length>0?`${M.length} ${l} selected`:e??"Select..."}),m.jsx(wd,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(NS,{align:"start",style:{width:j},className:Ao("w-[480px] p-0 bg-white rounded-xl border-gray-200",_),children:m.jsx(KN,{children:m.jsxs(KC,{children:[m.jsx(QC,{onChangeCapture:S,className:"placeholder:text-xs",placeholder:t??"Search..."}),k?m.jsx("div",{className:"flex flex-col gap-2 p-2",children:[1,2,3].map((e,t)=>m.jsx(Vo,{className:"h-9 rounded-md"},t))}):m.jsx(XC,{children:"No result found."}),m.jsx(JC,{children:m.jsx(ZC,{className:"",children:n?.map(e=>m.jsxs(eS,{value:"string"==typeof e.label?e.label:e.searchId,className:`first-letter:uppercase mb-1 focus:bg-primary_light w-full rounded-md focus:text-primary hover:text-primary font-semibold text-gray-700 text-sm cursor-pointer ${o?.includes(e.value)&&"bg-primary_light text-primary"}`,onSelect:()=>{D(e.value)},children:[s&&m.jsx(gd,{className:Ao("mr-2 h-4 w-4",o?.includes(e.value)?"opacity-100":"opacity-0")}),e.label]},e.value))})})]})})})]})]})})}function XN({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=Ww(),o=wn(),{apiKey:a}=Rn(),{data:i}=Uw(["categories",a],"/outbound/inventory_metas/categories",{enabled:!!a}),{data:s}=Uw(["itemunits",a],"/outbound/inventory_metas/units",{enabled:!!a}),{data:l}=Uw(["itemtags",a],"/outbound/inventory_metas/tags",{enabled:!!a}),{data:u}=Uw(["itemtypes",a],"/outbound/inventory_metas/types",{enabled:!!a}),c=i?.data?.data?.map(e=>({label:e.name,value:e.uuid,subOptions:e.subCategories.map(e=>({label:e.name,value:e.uuid}))}))||[],d=s?.data?.data?.map(e=>({label:e.name,value:e.uuid}))||[],f=l?.data?.data?.map(e=>({label:e.name,value:e.uuid})),p=u?.data?.data?.filter(e=>"products"===e.name||"services"===e.name).map(e=>({label:e.name,value:e.uuid}))||[],[h,g]=T.useState(""),[y,v]=D.useState([]),[b,w]=T.useState(p?.[0]?.value||"");T.useEffect(()=>{const e=p.find(e=>e?.value===b)?.label||"";g(e)},[b]);const[x,C]=T.useState([]),[S,k]=T.useState([{name:"",itemunit_id:d?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:""}]),_=(e,t,n)=>{const r=[...S];r[n]={...r[n],[e]:t},k(r)},E={itemtype_id:b,itemcategory_id:y,tags:x,items:S},R=["Item name","Item unit",..."services"!==h?["Quantity","Barcode"]:[],"Cost price (₦)","Selling price (₦)"];return m.jsxs(LS,{isOpen:e,onClose:t,title:"Quick create multiple items",className:"max-w-[1024px]",children:[m.jsxs("div",{className:"px-5 space-y-7 pb-5",children:[m.jsxs("div",{className:"grid grid-cols-3 gap-5 bg-gray-100 rounded-xl p-4",children:[m.jsx(OS,{label:"Item type",options:p,placeholder:"select item type",value:b,onValueChange:e=>w(e),required:!0,info:"Select the type of item you're creating (e.g., product, service, variations, kits ). This classification helps determine how the item is managed, displayed, or fulfilled."}),m.jsx(dN,{placeholder:"select categories",label:"Category",options:c,values:y,onChange:e=>v(e),showMultiSelectValues:!1,showCount:!0,info:"Select the category that best describes this item(s) (e.g., electronics, clothing, food). Categorizing items helps in organizing inventory and simplifies product management."}),m.jsx(ZN,{label:"Item tag",placeholder:"Select item tags",info:"Enter relevant keywords or labels for this item(s). Tags help in categorizing and making the item easier to find through search filters.",labelClass:"text-dark text-sm",options:f,values:x,onChange:C,showSearch:!0,showCount:!0,showMultiSelectValues:!1})]}),m.jsxs("div",{className:"space-y-2 overflow-auto",children:[m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-4",children:[m.jsx("thead",{children:m.jsx("tr",{children:R.map((e,t)=>m.jsx("th",{className:"text-dark text-sm font-medium text-left",children:e},t))})}),m.jsx("tbody",{className:"text-dark text-[15px] ",children:S.map((e,t)=>m.jsxs("tr",{children:[m.jsx("td",{className:"",children:m.jsx(qR,{type:"text",placeholder:"Enter item name",value:e.name,onChange:e=>_("name",e.target.value,t)})}),m.jsx("td",{children:m.jsx(OS,{options:d,placeholder:"select item unit",value:e.itemunit_id,onValueChange:e=>_("itemunit_id",e,t)})}),"services"!==h?m.jsxs(m.Fragment,{children:[m.jsx("td",{className:"",children:m.jsx(qR,{type:"number",placeholder:"0",value:e.quantity,onChange:e=>_("quantity",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(qR,{type:"number",placeholder:"Enter barcode",value:e.barcode,onChange:e=>_("barcode",e.target.value,t)})})]}):null,m.jsx("td",{className:"",children:m.jsx(qR,{type:"number",placeholder:"0.00",value:e.cost_price,onChange:e=>_("cost_price",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(qR,{type:"number",placeholder:"0.00",value:e.selling_price,onChange:e=>_("selling_price",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx("button",{onClick:()=>(e=>{const t=S.filter((t,n)=>n!==e);k(t)})(t),disabled:1===S.length,className:"disabled:cursor-not-allowed disabled:opacity-70",children:$y.trash2})})]},t))})]}),m.jsx(xE,{mode:"text",label:"Add more",left_addon:$y.plus_squared2,onClick:()=>{k(e=>[...e,{name:"",itemunit_id:d?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:""}])},className:"font-medium text-sm ml-4"})]})]}),m.jsxs("div",{className:"flex justify-between items-center px-5 sticky bottom-0 bg-white py-5 border-t ",children:[m.jsxs("button",{className:"text-primary text-sm font-medium flex items-center gap-1",children:[$y.question," Need help?"]}),m.jsxs("div",{className:"flex justify-end gap-2.5",children:[m.jsx(xE,{label:"Cancel",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t}),m.jsx(xE,{label:"Create Items",onClick:()=>{n({url:"/outbound/items/create_multiple",payload:E},{onSuccess:()=>{o.invalidateQueries({queryKey:["items"]}),t&&t()}})},loading:r})]})]})]})}QN.displayName=xN.displayName;const JN="https://unpkg.com/@simpoobusiness/sdk/dist/simpoo-sdk.css";let ej={};function tj(e){ej=e}const nj={inventory:()=>{const[e,t]=D.useState(),{currentPage:n,perview:r}=ne(e=>e.app),[o,a]=T.useState("all"),[i,s]=T.useState(!1),[l,u]=T.useState("all"),[c,d]=T.useState(""),[f]=cN(c,1e3),{apiKey:p}=Rn(),{data:h,isFetching:g}=Uw(["items",r.toString(),n?.toString(),o,f,p],f?`/outbound/items/search?page=${n}&paginate=${r}&param=${f}&for=${o}&filter=all`:`/outbound/items?page=${n}&paginate=${r}&status=${o}`,{enabled:!!p}),y=h?.data?.[0]||[],v=y?.data?.map(e=>({item_description:e?.name,all_quantity:+e?.all_quantity,quantity:+e?.quantity,type:e?.item_type?.name,selling_price:+e?.selling_price,categories:e?.category||[],tags:e?.item_tags?.map(e=>e.name)||[],status:e?.status?"published":"draft",sku:e?.sku,item_image:e.images?.length>0?e.images?.[0].image:Kx,barcode:e?.barcode,expired:e?.expired,expiring:e?.expiring,unit:e?.item_unit,uuid:e?.uuid,item_type_id:e?.item_type?.uuid,reorder_level:e?.reorder_level,fullData:e}))||[],{data:b,isFetching:w}=Uw(["items-tab"],"/outbound/items/count",{enabled:!!p}),x=b?.data,C=[{label:"all",count:x?.all||0,action:()=>a("all")},{label:"published",count:x?.published||0,action:()=>a("published")},{label:"out of stock",count:x?.out_of_stock||0,action:()=>a("out_of_stock")},{label:"draft",count:x?.draft||0,action:()=>a("draft")},{label:"expiring",count:x?.expiring||0,action:()=>a("expiring")},{label:"expired",count:x?.expired||0,action:()=>a("expired")}],[S,k]=T.useState(!1);return m.jsxs(qx,{className:"px-4 py-6 flex flex-col gap-8",children:[m.jsx(AS,{tabs:C,loading:g}),m.jsxs("div",{className:" flex items-center justify-between flex-wrap gap-4",children:[m.jsxs("div",{className:"flex items-center gap-2.5",children:[m.jsx(lN,{placeholder:"Search Item name, barcode or sku",value:c,onChange:e=>d(e.target.value)}),g?m.jsx(Vo,{className:"w-20 h-6"}):m.jsxs("p",{className:"text-dark text-sm font-medium",children:[y?.meta?.total??0," ",m.jsx("span",{className:"text-gray-700",children:"Items"})]})]}),m.jsx("div",{className:"flex gap-4",children:m.jsx(xE,{label:"Create New",left_addon:$y.plus_squared,className:"!font-medium !text-sm !h-12",onClick:()=>k(!0)})})]}),m.jsx(sN,{loading:g,data:h?.data?.[1],meta:y?.meta}),m.jsx(By,{loading:g,columns:KR,data:v,emptyData:0===v.length,emptyProps:{header:"No item yet",subText:"Add new item to start managing your inventory."},tHeadClass:"whitespace-nowrap",tbCellClass:"text-dark font-semibold",meta:y?.meta}),S?m.jsx(XN,{isOpen:S,onClose:()=>k(!1)}):null]})}};function rj(e,t){!function(){if(!document.querySelector(`link[href="${JN}"]`)){const e=document.createElement("link");e.rel="stylesheet",e.href=JN,document.head.appendChild(e)}}();const n=nj[e];if(!n)return void console.error(`SimpooSDK: Widget "${e}" not found.`);const r=document.querySelector(t);if(!r)throw new Error(`Container "${t}" not found!`);M.createRoot(r).render(m.jsx(Nn,{apiKey:ej.apiKey||"",children:m.jsx(n,{})}))}"undefined"!=typeof window&&(window.SimpooSDK={init:tj,renderWidget:rj}),e.init=tj,e.renderWidget=rj});
224
224
  //# sourceMappingURL=simpoo-sdk.js.map