2 lines
360 KiB
JavaScript
2 lines
360 KiB
JavaScript
/*! For license information please see shop.bundle.js.LICENSE.txt */
|
||
(()=>{var e={146:(e,t,n)=>{"use strict";var r=n(363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var l=s(t),g=s(n),h=0;h<i.length;++h){var v=i[h];if(!(a[v]||r&&r[v]||g&&g[v]||l&&l[v])){var b=p(n,v);try{c(t,v,b)}catch(e){}}}}return t}},311:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},678:function(e,t,n){var r,o;r=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e<t:e<t&&t<n},"<=":function(e,t,n){return void 0===n?e<=t:e<=t&&t<=n},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,n){if(n<0){var r=String(e).substr(t);return r.substr(0,r.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,(function(e,t){return e.concat(t)}),[])},var:function(e,t){var n=void 0===t?null:t,r=this;if(void 0===e||""===e||null===e)return r;for(var o=String(e).split("."),a=0;a<o.length;a++){if(null==r)return n;if(void 0===(r=r[o[a]]))return n}return r},missing:function(){for(var t=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var o=n[r],a=e.apply({var:o},this);null!==a&&""!==a||t.push(o)}return t},missing_some:function(t,n){var r=e.apply({missing:n},this);return n.length-r.length>=t?[]:r}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,a,i,l,s,c=e.get_operator(n),u=n[c];if(Array.isArray(u)||(u=[u]),"if"===c||"?:"==c){for(o=0;o<u.length-1;o+=2)if(e.truthy(e.apply(u[o],r)))return e.apply(u[o+1],r);return u.length===o+1?e.apply(u[o],r):null}if("and"===c){for(o=0;o<u.length;o+=1)if(a=e.apply(u[o],r),!e.truthy(a))return a;return a}if("or"===c){for(o=0;o<u.length;o+=1)if(a=e.apply(u[o],r),e.truthy(a))return a;return a}if("filter"===c)return l=e.apply(u[0],r),i=u[1],Array.isArray(l)?l.filter((function(t){return e.truthy(e.apply(i,t))})):[];if("map"===c)return l=e.apply(u[0],r),i=u[1],Array.isArray(l)?l.map((function(t){return e.apply(i,t)})):[];if("reduce"===c)return l=e.apply(u[0],r),i=u[1],s=void 0!==u[2]?e.apply(u[2],r):null,Array.isArray(l)?l.reduce((function(t,n){return e.apply(i,{current:n,accumulator:t})}),s):s;if("all"===c){if(l=e.apply(u[0],r),i=u[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(!e.truthy(e.apply(i,l[o])))return!1;return!0}if("none"===c){if(l=e.apply(u[0],r),i=u[1],!Array.isArray(l)||!l.length)return!0;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(i,l[o])))return!1;return!0}if("some"===c){if(l=e.apply(u[0],r),i=u[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(i,l[o])))return!0;return!1}if(u=u.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(c)&&"function"==typeof t[c])return t[c].apply(r,u);if(c.indexOf(".")>0){var d=String(c).split("."),p=t;for(o=0;o<d.length;o++){if(!p.hasOwnProperty(d[o]))throw new Error("Unrecognized operation "+c+" (failed at "+d.slice(0,o+1).join(".")+")");p=p[d[o]]}return p.apply(r,u)}throw new Error("Unrecognized operation "+c)},e.uses_data=function(t){var n=[];if(e.is_logic(t)){var r=e.get_operator(t),o=t[r];Array.isArray(o)||(o=[o]),"var"===r?n.push(o[0]):o.forEach((function(t){n.push.apply(n,e.uses_data(t))}))}return function(e){for(var t=[],n=0,r=e.length;n<r;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n)},e.add_operation=function(e,n){t[e]=n},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,n){if(n===t)return!0;if("@"===n)return!0;if("number"===n)return"number"==typeof t;if("string"===n)return"string"==typeof t;if("array"===n)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(n)){if(e.is_logic(t)){var r=e.get_operator(n),o=e.get_operator(t);if("@"===r||r===o)return e.rule_like(e.get_values(t,!1),e.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(t)){if(n.length!==t.length)return!1;for(var a=0;a<n.length;a+=1)if(!e.rule_like(t[a],n[a]))return!1;return!0}return!1}return!1},e},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},551:(e,t,n)=>{"use strict";var r=n(540),o=n(982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var i=new Set,l={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[: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]*$/,f={},m={};function g(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){h[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];h[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){h[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){h[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){h[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){h[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){h[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){h[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){h[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=h.hasOwnProperty(t)?h[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);h[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);h[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);h[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){h[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),h.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){h[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var M,B=Object.assign;function F(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var j=!1;function z(e,t){if(!e||j)return"";j=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function $(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case C:return"Profiler";case k:return"StrictMode";case D:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return U(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=V(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 q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(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}}function Q(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function J(e,t){X(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(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=""+H(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 re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(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 fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function he(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ve=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,ke=null;function Ce(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function _e(e){Se?ke?ke.push(e):ke=[e]:Se=e}function Oe(){if(Se){var e=Se,t=ke;if(ke=Se=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ne(e,t){return e(t)}function De(){}var Ie=!1;function Pe(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Ne(e,t,n)}finally{Ie=!1,(null!==Se||null!==ke)&&(De(),Oe())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Te=!1;if(u)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ue){Te=!1}function Le(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Me=!1,Be=null,Fe=!1,je=null,ze={onError:function(e){Me=!0,Be=e}};function $e(e,t,n,r,o,a,i,l,s){Me=!1,Be=null,Le.apply(ze,arguments)}function Ue(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 We(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 He(e){if(Ue(e)!==e)throw Error(a(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return He(o),e;if(i===r)return He(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null,it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2,ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=dt(l):0!=(a&=i)&&(r=dt(a))}else 0!=(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Et,xt,St,kt,Ct,_t=!1,Ot=[],Nt=null,Dt=null,It=null,Pt=new Map,Rt=new Map,Tt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Dt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(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=wo(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Bt(e){var t=yo(e.target);if(null!==t){var n=Ue(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Ct(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function jt(e,t,n){Ft(e)&&n.delete(t)}function zt(){_t=!1,null!==Nt&&Ft(Nt)&&(Nt=null),null!==Dt&&Ft(Dt)&&(Dt=null),null!==It&&Ft(It)&&(It=null),Pt.forEach(jt),Rt.forEach(jt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Ut(e){function t(t){return $t(t,e)}if(0<Ot.length){$t(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&$t(Nt,e),null!==Dt&&$t(Dt,e),null!==It&&$t(It,e),Pt.forEach(t),Rt.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Bt(n),null===n.blockedOn&&Tt.shift()}var Wt=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var o=yt,a=Wt.transition;Wt.transition=null;try{yt=1,qt(e,t,n,r)}finally{yt=o,Wt.transition=a}}function Gt(e,t,n,r){var o=yt,a=Wt.transition;Wt.transition=null;try{yt=4,qt(e,t,n,r)}finally{yt=o,Wt.transition=a}}function qt(e,t,n,r){if(Ht){var o=Qt(e,t,n,r);if(null===o)Hr(e,t,r,Kt,n),Lt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,o),!0;case"dragenter":return Dt=Mt(Dt,e,t,n,r,o),!0;case"mouseover":return It=Mt(It,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Pt.set(a,Mt(Pt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Rt.set(a,Mt(Rt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==o;){var a=wo(o);if(null!==a&&Et(a),null===(a=Qt(e,t,n,r))&&Hr(e,t,r,Kt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Kt=null;function Qt(e,t,n,r){if(Kt=null,null!==(e=yo(e=Ee(r))))if(null===(t=Ue(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(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 Kt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.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 Zt=o.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function on(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)?nn:rn,this.isPropagationStopped=rn,this}return B(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=B({},cn,{view:0,detail:0}),pn=on(dn),fn=B({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,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!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=on(fn),gn=on(B({},fn,{dataTransfer:0})),hn=on(B({},dn,{relatedTarget:0})),vn=on(B({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=B({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),wn=on(B({},cn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return kn}var _n=B({},dn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(_n),Nn=on(B({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dn=on(B({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=on(B({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=B({},fn,{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}),Rn=on(Pn),Tn=[9,13,27,32],An=u&&"CompositionEvent"in window,Ln=null;u&&"documentMode"in document&&(Ln=document.documentMode);var Mn=u&&"TextEvent"in window&&!Ln,Bn=u&&(!An||Ln&&8<Ln&&11>=Ln),Fn=String.fromCharCode(32),jn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1,Wn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Vn(e,t,n,r){_e(r),0<(t=Gr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,qn=null;function Kn(e){Fr(e,0)}function Qn(e){if(q(Eo(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(u){var Jn;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),qn=Gn=null)}function nr(e){if("value"===e.propertyName&&Qn(qn)){var t=[];Vn(t,qn,e,Ee(e)),Pe(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(qn)}function ar(e,t){if("click"===e)return Qn(t)}function ir(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(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(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(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=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function fr(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)}function mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var i=ur(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,hr=null,vr=null,br=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==hr||hr!==K(r)||(r="selectionStart"in(r=hr)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=Gr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},Sr={},kr={};function Cr(e){if(Sr[e])return Sr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Sr[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var _r=Cr("animationend"),Or=Cr("animationiteration"),Nr=Cr("animationstart"),Dr=Cr("transitionend"),Ir=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Ir.set(e,t),s(t,[e])}for(var Tr=0;Tr<Pr.length;Tr++){var Ar=Pr[Tr];Rr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Rr(_r,"onAnimationEnd"),Rr(Or,"onAnimationIteration"),Rr(Nr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Dr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="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(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Br(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,c){if($e.apply(this,arguments),Me){if(!Me)throw Error(a(198));var u=Be;Me=!1,Be=null,Fe||(Fe=!0,je=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(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 l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Br(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Br(o,l,c),a=s}}}if(Fe)throw e=je,Fe=!1,je=null,e}function jr(e,t){var n=t[ho];void 0===n&&(n=t[ho]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[$r]){e[$r]=!0,i.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,zr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Yt(t)){case 1:var o=Vt;break;case 4:o=Gt;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!Te||"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 Hr(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=yo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Pe((function(){var r=a,o=Ee(n),i=[];e:{var l=Ir.get(e);if(void 0!==l){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=On;break;case"focusin":c="focus",s=hn;break;case"focusout":c="blur",s=hn;break;case"beforeblur":case"afterblur":s=hn;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":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Dn;break;case _r:case Or:case Nr:s=vn;break;case Dr:s=In;break;case"scroll":s=pn;break;case"wheel":s=Rn;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Nn}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==l?l+"Capture":null:l;u=[];for(var f,m=r;null!==m;){var g=(f=m).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==p&&null!=(g=Re(m,p))&&u.push(Vr(m,g,f))),d)break;m=m.return}0<u.length&&(l=new s(l,c,null,n,o),i.push({event:l,listeners:u}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!yo(c)&&!c[go])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?yo(c):null)&&(c!==(d=Ue(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=mn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Nn,g="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:Eo(s),f=null==c?l:Eo(c),(l=new u(g,m+"leave",s,n,o)).target=d,l.relatedTarget=f,g=null,yo(o)===r&&((u=new u(p,m+"enter",c,n,o)).target=f,u.relatedTarget=d,g=u),d=g,s&&c)e:{for(p=c,m=0,f=u=s;f;f=qr(f))m++;for(f=0,g=p;g;g=qr(g))f++;for(;0<m-f;)u=qr(u),m--;for(;0<f-m;)p=qr(p),f--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=qr(u),p=qr(p)}u=null}else u=null;null!==s&&Kr(i,l,s,u,!1),null!==c&&null!==d&&Kr(i,d,c,u,!0)}if("select"===(s=(l=r?Eo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var h=Yn;else if(Hn(l))if(Xn)h=ir;else{h=or;var v=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(h=ar);switch(h&&(h=h(e,r))?Vn(i,h,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ee(l,"number",l.value)),v=r?Eo(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(hr=v,vr=r,br=null);break;case"focusout":br=vr=hr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(i,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(i,n,o)}var b;if(An)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Un?zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Bn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==y?"onCompositionEnd"===y&&Un&&(b=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,Un=!0)),0<(v=Gr(r,y)).length&&(y=new wn(y,e,null,n,o),i.push({event:y,listeners:v}),(b||null!==(b=$n(n)))&&(y.data=b))),(b=Mn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(jn=!0,Fn);case"textInput":return(e=t.data)===Fn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!An&&zn(e,t)?(e=en(),Zt=Jt=Xt=null,Un=!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 Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Gr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b)}Fr(i,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Re(e,n))&&r.unshift(Vr(e,a,o)),null!=(a=Re(e,t))&&r.push(Vr(e,a,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Re(n,a))&&i.unshift(Vr(n,s,l)):o||null!=(s=Re(n,a))&&i.push(Vr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(a(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ut(t)}function co(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)break;if("/$"===t)return null}}return e}function uo(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}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,mo="__reactProps$"+po,go="__reactContainer$"+po,ho="__reactEvents$"+po,vo="__reactListeners$"+po,bo="__reactHandles$"+po;function yo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[fo]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function xo(e){return e[mo]||null}var So=[],ko=-1;function Co(e){return{current:e}}function _o(e){0>ko||(e.current=So[ko],So[ko]=null,ko--)}function Oo(e,t){ko++,So[ko]=e.current,e.current=t}var No={},Do=Co(No),Io=Co(!1),Po=No;function Ro(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function To(e){return null!=e.childContextTypes}function Ao(){_o(Io),_o(Do)}function Lo(e,t,n){if(Do.current!==No)throw Error(a(168));Oo(Do,t),Oo(Io,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,W(e)||"Unknown",o));return B({},n,r)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,Po=Do.current,Oo(Do,e),Oo(Io,Io.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Mo(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,_o(Io),_o(Do),Oo(Do,e)):_o(Io),Oo(Io,n)}var jo=null,zo=!1,$o=!1;function Uo(e){null===jo?jo=[e]:jo.push(e)}function Wo(){if(!$o&&null!==jo){$o=!0;var e=0,t=yt;try{var n=jo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}jo=null,zo=!1}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),qe(Ze,Wo),t}finally{yt=t,$o=!1}}return null}var Ho=[],Vo=0,Go=null,qo=0,Ko=[],Qo=0,Yo=null,Xo=1,Jo="";function Zo(e,t){Ho[Vo++]=qo,Ho[Vo++]=Go,Go=e,qo=t}function ea(e,t,n){Ko[Qo++]=Xo,Ko[Qo++]=Jo,Ko[Qo++]=Yo,Yo=e;var r=Xo;e=Jo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Xo=1<<32-it(t)+o|n<<o|r,Jo=a+e}else Xo=1<<a|n<<o|r,Jo=e}function ta(e){null!==e.return&&(Zo(e,1),ea(e,1,0))}function na(e){for(;e===Go;)Go=Ho[--Vo],Ho[Vo]=null,qo=Ho[--Vo],Ho[Vo]=null;for(;e===Yo;)Yo=Ko[--Qo],Ko[Qo]=null,Jo=Ko[--Qo],Ko[Qo]=null,Xo=Ko[--Qo],Ko[Qo]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return!(!(1&e.mode)||128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var n=t;if(!sa(e,t)){if(ca(e))throw Error(a(418));t=co(n.nextSibling);var r=ra;t&&sa(e,t)?la(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function pa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw fa(),Error(a(418));for(;t;)la(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=co(e.nextSibling)}function ma(){oa=ra=null,aa=!1}function ga(e){null===ia?ia=[e]:ia.push(e)}var ha=w.ReactCurrentBatchConfig;function va(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ba(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ya(e){return(0,e._init)(e._payload)}function wa(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 r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Tc(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|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Bc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===R&&ya(a)===t.type)?((r=o(t,n.props)).ref=va(e,t,n),r.return=e,r):((r=Ac(n.type,n.key,n.props,null,e.mode,r)).ref=va(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Lc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Bc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=va(e,null,t),n.return=e,n;case x:return(t=Fc(t,e.mode,n)).return=e,t;case R:return p(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Lc(t,e.mode,n,null)).return=e,t;ba(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case R:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||L(n))return null!==o?null:d(e,t,n,r,null);ba(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||L(r))return d(t,e=e.get(n)||null,r,o,null);ba(t,r)}return null}function g(o,a,l,s){for(var c=null,u=null,d=a,g=a=0,h=null;null!==d&&g<l.length;g++){d.index>g?(h=d,d=null):h=d.sibling;var v=f(o,d,l[g],s);if(null===v){null===d&&(d=h);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,g),null===u?c=v:u.sibling=v,u=v,d=h}if(g===l.length)return n(o,d),aa&&Zo(o,g),c;if(null===d){for(;g<l.length;g++)null!==(d=p(o,l[g],s))&&(a=i(d,a,g),null===u?c=d:u.sibling=d,u=d);return aa&&Zo(o,g),c}for(d=r(o,d);g<l.length;g++)null!==(h=m(d,o,g,l[g],s))&&(e&&null!==h.alternate&&d.delete(null===h.key?g:h.key),a=i(h,a,g),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach((function(e){return t(o,e)})),aa&&Zo(o,g),c}function h(o,l,s,c){var u=L(s);if("function"!=typeof u)throw Error(a(150));if(null==(s=u.call(s)))throw Error(a(151));for(var d=u=null,g=l,h=l=0,v=null,b=s.next();null!==g&&!b.done;h++,b=s.next()){g.index>h?(v=g,g=null):v=g.sibling;var y=f(o,g,b.value,c);if(null===y){null===g&&(g=v);break}e&&g&&null===y.alternate&&t(o,g),l=i(y,l,h),null===d?u=y:d.sibling=y,d=y,g=v}if(b.done)return n(o,g),aa&&Zo(o,h),u;if(null===g){for(;!b.done;h++,b=s.next())null!==(b=p(o,b.value,c))&&(l=i(b,l,h),null===d?u=b:d.sibling=b,d=b);return aa&&Zo(o,h),u}for(g=r(o,g);!b.done;h++,b=s.next())null!==(b=m(g,o,h,b.value,c))&&(e&&null!==b.alternate&&g.delete(null===b.key?h:b.key),l=i(b,l,h),null===d?u=b:d.sibling=b,d=b);return e&&g.forEach((function(e){return t(o,e)})),aa&&Zo(o,h),u}return function e(r,a,i,s){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case E:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===S){if(7===u.tag){n(r,u.sibling),(a=o(u,i.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===R&&ya(c)===u.type){n(r,u.sibling),(a=o(u,i.props)).ref=va(r,u,i),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===S?((a=Lc(i.props.children,r.mode,s,i.key)).return=r,r=a):((s=Ac(i.type,i.key,i.props,null,r.mode,s)).ref=va(r,a,i),s.return=r,r=s)}return l(r);case x:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fc(i,r.mode,s)).return=r,r=a}return l(r);case R:return e(r,a,(u=i._init)(i._payload),s)}if(te(i))return g(r,a,i,s);if(L(i))return h(r,a,i,s);ba(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Bc(i,r.mode,s)).return=r,r=a),l(r)):n(r,a)}}var Ea=wa(!0),xa=wa(!1),Sa=Co(null),ka=null,Ca=null,_a=null;function Oa(){_a=Ca=ka=null}function Na(e){var t=Sa.current;_o(Sa),e._currentValue=t}function Da(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 Ia(e,t){ka=e,_a=Ca=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Pa(e){var t=e._currentValue;if(_a!==e)if(e={context:e,memoizedValue:t,next:null},null===Ca){if(null===ka)throw Error(a(308));Ca=e,ka.dependencies={lanes:0,firstContext:e}}else Ca=Ca.next=e;return t}var Ra=null;function Ta(e){null===Ra?Ra=[e]:Ra.push(e)}function Aa(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ta(t)):(n.next=o.next,o.next=n),t.interleaved=n,La(e,r)}function La(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ma=!1;function Ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ja(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ns){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,La(e,n)}return null===(o=r.interleaved)?(t.next=t,Ta(r)):(t.next=o.next,o.next=t),r.interleaved=t,La(e,n)}function $a(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ua(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={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,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,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wa(e,t,n,r){var o=e.updateQueue;Ma=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&(l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s)}if(null!==a){var d=o.baseState;for(i=0,u=c=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,g=l;switch(p=t,f=n,g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(f,d,p):m))break e;d=B({},d,p);break e;case 2:Ma=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=d):u=u.next=f,i|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Ms|=i,e.lanes=i,e.memoizedState=d}}function Ha(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Va={},Ga=Co(Va),qa=Co(Va),Ka=Co(Va);function Qa(e){if(e===Va)throw Error(a(174));return e}function Ya(e,t){switch(Oo(Ka,t),Oo(qa,e),Oo(Ga,Va),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(Ga),Oo(Ga,t)}function Xa(){_o(Ga),_o(qa),_o(Ka)}function Ja(e){Qa(Ka.current);var t=Qa(Ga.current),n=se(t,e.type);t!==n&&(Oo(qa,e),Oo(Ga,n))}function Za(e){qa.current===e&&(_o(Ga),_o(qa))}var ei=Co(0);function ti(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))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}var ni=[];function ri(){for(var e=0;e<ni.length;e++)ni[e]._workInProgressVersionPrimary=null;ni.length=0}var oi=w.ReactCurrentDispatcher,ai=w.ReactCurrentBatchConfig,ii=0,li=null,si=null,ci=null,ui=!1,di=!1,pi=0,fi=0;function mi(){throw Error(a(321))}function gi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function hi(e,t,n,r,o,i){if(ii=i,li=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oi.current=null===e||null===e.memoizedState?Zi:el,e=n(r,o),di){i=0;do{if(di=!1,pi=0,25<=i)throw Error(a(301));i+=1,ci=si=null,t.updateQueue=null,oi.current=tl,e=n(r,o)}while(di)}if(oi.current=Ji,t=null!==si&&null!==si.next,ii=0,ci=si=li=null,ui=!1,t)throw Error(a(300));return e}function vi(){var e=0!==pi;return pi=0,e}function bi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ci?li.memoizedState=ci=e:ci=ci.next=e,ci}function yi(){if(null===si){var e=li.alternate;e=null!==e?e.memoizedState:null}else e=si.next;var t=null===ci?li.memoizedState:ci.next;if(null!==t)ci=t,si=e;else{if(null===e)throw Error(a(310));e={memoizedState:(si=e).memoizedState,baseState:si.baseState,baseQueue:si.baseQueue,queue:si.queue,next:null},null===ci?li.memoizedState=ci=e:ci=ci.next=e}return ci}function wi(e,t){return"function"==typeof t?t(e):t}function Ei(e){var t=yi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=si,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=l=null,c=null,u=i;do{var d=u.lane;if((ii&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=p,l=r):c=c.next=p,li.lanes|=d,Ms|=d}u=u.next}while(null!==u&&u!==i);null===c?l=r:c.next=s,lr(r,t.memoizedState)||(yl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,li.lanes|=i,Ms|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xi(e){var t=yi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);lr(i,t.memoizedState)||(yl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Si(){}function ki(e,t){var n=li,r=yi(),o=t(),i=!lr(r.memoizedState,o);if(i&&(r.memoizedState=o,yl=!0),r=r.queue,Mi(Oi.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ci&&1&ci.memoizedState.tag){if(n.flags|=2048,Pi(9,_i.bind(null,n,r,o,t),void 0,null),null===Ds)throw Error(a(349));30&ii||Ci(n,t,o)}return o}function Ci(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function _i(e,t,n,r){t.value=n,t.getSnapshot=r,Ni(t)&&Di(e)}function Oi(e,t,n){return n((function(){Ni(t)&&Di(e)}))}function Ni(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Di(e){var t=La(e,1);null!==t&&nc(t,e,1,-1)}function Ii(e){var t=bi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:e},t.queue=e,e=e.dispatch=Ki.bind(null,li,e),[t.memoizedState,e]}function Pi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ri(){return yi().memoizedState}function Ti(e,t,n,r){var o=bi();li.flags|=e,o.memoizedState=Pi(1|t,n,void 0,void 0===r?null:r)}function Ai(e,t,n,r){var o=yi();r=void 0===r?null:r;var a=void 0;if(null!==si){var i=si.memoizedState;if(a=i.destroy,null!==r&&gi(r,i.deps))return void(o.memoizedState=Pi(t,n,a,r))}li.flags|=e,o.memoizedState=Pi(1|t,n,a,r)}function Li(e,t){return Ti(8390656,8,e,t)}function Mi(e,t){return Ai(2048,8,e,t)}function Bi(e,t){return Ai(4,2,e,t)}function Fi(e,t){return Ai(4,4,e,t)}function ji(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function zi(e,t,n){return n=null!=n?n.concat([e]):null,Ai(4,4,ji.bind(null,t,e),n)}function $i(){}function Ui(e,t){var n=yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&gi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wi(e,t){var n=yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&gi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hi(e,t,n){return 21&ii?(lr(n,t)||(n=gt(),li.lanes|=n,Ms|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n)}function Vi(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ai.transition;ai.transition={};try{e(!1),t()}finally{yt=n,ai.transition=r}}function Gi(){return yi().memoizedState}function qi(e,t,n){var r=tc(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qi(e)?Yi(t,n):null!==(n=Aa(e,t,n,r))&&(nc(n,e,r,ec()),Xi(n,t,r))}function Ki(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qi(e))Yi(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,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,Ta(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Aa(e,t,o,r))&&(nc(n,e,r,o=ec()),Xi(n,t,r))}}function Qi(e){var t=e.alternate;return e===li||null!==t&&t===li}function Yi(e,t){di=ui=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xi(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Ji={readContext:Pa,useCallback:mi,useContext:mi,useEffect:mi,useImperativeHandle:mi,useInsertionEffect:mi,useLayoutEffect:mi,useMemo:mi,useReducer:mi,useRef:mi,useState:mi,useDebugValue:mi,useDeferredValue:mi,useTransition:mi,useMutableSource:mi,useSyncExternalStore:mi,useId:mi,unstable_isNewReconciler:!1},Zi={readContext:Pa,useCallback:function(e,t){return bi().memoizedState=[e,void 0===t?null:t],e},useContext:Pa,useEffect:Li,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ti(4194308,4,ji.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ti(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ti(4,2,e,t)},useMemo:function(e,t){var n=bi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qi.bind(null,li,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bi().memoizedState=e},useState:Ii,useDebugValue:$i,useDeferredValue:function(e){return bi().memoizedState=e},useTransition:function(){var e=Ii(!1),t=e[0];return e=Vi.bind(null,e[1]),bi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=li,o=bi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Ds)throw Error(a(349));30&ii||Ci(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Li(Oi.bind(null,r,i,e),[e]),r.flags|=2048,Pi(9,_i.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=bi(),t=Ds.identifierPrefix;if(aa){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-it(Xo)-1)).toString(32)+n),0<(n=pi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Pa,useCallback:Ui,useContext:Pa,useEffect:Mi,useImperativeHandle:zi,useInsertionEffect:Bi,useLayoutEffect:Fi,useMemo:Wi,useReducer:Ei,useRef:Ri,useState:function(){return Ei(wi)},useDebugValue:$i,useDeferredValue:function(e){return Hi(yi(),si.memoizedState,e)},useTransition:function(){return[Ei(wi)[0],yi().memoizedState]},useMutableSource:Si,useSyncExternalStore:ki,useId:Gi,unstable_isNewReconciler:!1},tl={readContext:Pa,useCallback:Ui,useContext:Pa,useEffect:Mi,useImperativeHandle:zi,useInsertionEffect:Bi,useLayoutEffect:Fi,useMemo:Wi,useReducer:xi,useRef:Ri,useState:function(){return xi(wi)},useDebugValue:$i,useDeferredValue:function(e){var t=yi();return null===si?t.memoizedState=e:Hi(t,si.memoizedState,e)},useTransition:function(){return[xi(wi)[0],yi().memoizedState]},useMutableSource:Si,useSyncExternalStore:ki,useId:Gi,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=ja(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=za(e,a,o))&&(nc(t,e,o,r),$a(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=ja(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=za(e,a,o))&&(nc(t,e,o,r),$a(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=ja(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=za(e,o,r))&&(nc(t,e,r,n),$a(t,e,r))}};function al(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,a))}function il(e,t,n){var r=!1,o=No,a=t.contextType;return"object"==typeof a&&null!==a?a=Pa(a):(o=To(t)?Po:Do.current,a=(r=null!=(r=t.contextTypes))?Ro(e,o):No),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ll(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&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ba(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Pa(a):(a=To(t)?Po:Do.current,o.context=Ro(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(rl(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Wa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cl(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function fl(e,t,n){(n=ja(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,Vs=r),dl(0,t)},n}function ml(e,t,n){(n=ja(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;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)||(o.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function hl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ja(-1,1)).tag=2,za(n,t,1))),n.lanes|=1),e)}var bl=w.ReactCurrentOwner,yl=!1;function wl(e,t,n,r){t.child=null===e?xa(t,null,n,r):Ea(t,e.child,n,r)}function El(e,t,n,r,o){n=n.render;var a=t.ref;return Ia(t,o),r=hi(e,t,n,r,a,o),n=vi(),null===e||yl?(aa&&n&&ta(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function xl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Rc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ac(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Sl(e,t,a,r,o))}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Hl(e,t,o)}return t.flags|=1,(e=Tc(a,r)).ref=t.ref,e.return=t,t.child=e}function Sl(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=a,!(e.lanes&o))return t.lanes=e.lanes,Hl(e,t,o);131072&e.flags&&(yl=!0)}}return _l(e,t,n,r,o)}function kl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(Ts,Rs),Rs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Oo(Ts,Rs),Rs|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(Ts,Rs),Rs|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Oo(Ts,Rs),Rs|=r;return wl(e,t,o,n),t.child}function Cl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,n,r,o){var a=To(n)?Po:Do.current;return a=Ro(t,a),Ia(t,o),n=hi(e,t,n,r,a,o),r=vi(),null===e||yl?(aa&&r&&ta(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function Ol(e,t,n,r,o){if(To(n)){var a=!0;Bo(t)}else a=!1;if(Ia(t,o),null===t.stateNode)Wl(e,t),il(t,n,r),sl(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;c="object"==typeof c&&null!==c?Pa(c):Ro(t,c=To(n)?Po:Do.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&ll(t,i,r,c),Ma=!1;var p=t.memoizedState;i.state=p,Wa(t,r,i,o),s=t.memoizedState,l!==r||p!==s||Io.current||Ma?("function"==typeof u&&(rl(t,n,u,r),s=t.memoizedState),(l=Ma||al(t,n,l,r,p,s,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Fa(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:nl(t.type,l),i.props=c,d=t.pendingProps,p=i.context,s="object"==typeof(s=n.contextType)&&null!==s?Pa(s):Ro(t,s=To(n)?Po:Do.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||p!==s)&&ll(t,i,r,s),Ma=!1,p=t.memoizedState,i.state=p,Wa(t,r,i,o);var m=t.memoizedState;l!==d||p!==m||Io.current||Ma?("function"==typeof f&&(rl(t,n,f,r),m=t.memoizedState),(c=Ma||al(t,n,c,r,p,m,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Nl(e,t,n,r,a,o)}function Nl(e,t,n,r,o,a){Cl(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Fo(t,n,!1),Hl(e,t,a);r=t.stateNode,bl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ea(t,e.child,null,a),t.child=Ea(t,null,l,a)):wl(e,t,l,a),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Dl(e){var t=e.stateNode;t.pendingContext?Lo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lo(0,t.context,!1),Ya(e,t.containerInfo)}function Il(e,t,n,r,o){return ma(),ga(o),t.flags|=256,wl(e,t,n,r),t.child}var Pl,Rl,Tl,Al,Ll={dehydrated:null,treeContext:null,retryLane:0};function Ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bl(e,t,n){var r,o=t.pendingProps,i=ei.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Oo(ei,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},1&o||null===l?l=Mc(s,o,0,null):(l.childLanes=0,l.pendingProps=s),e=Lc(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ml(n),t.memoizedState=Ll,e):Fl(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,jl(e,t,l,r=ul(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Mc({mode:"visible",children:r.children},o,0,null),(i=Lc(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Ea(t,e.child,null,l),t.child.memoizedState=Ml(l),t.memoizedState=Ll,i);if(!(1&t.mode))return jl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,jl(e,t,l,r=ul(i=Error(a(419)),r,void 0))}if(s=!!(l&e.childLanes),yl||s){if(null!==(r=Ds)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|l)?0:o)&&o!==i.retryLane&&(i.retryLane=o,La(e,o),nc(r,e,o,-1))}return gc(),jl(e,t,l,r=ul(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Ko[Qo++]=Xo,Ko[Qo++]=Jo,Ko[Qo++]=Yo,Xo=e.id,Jo=e.overflow,Yo=t),(t=Fl(t,r.children)).flags|=4096,t)}(e,t,s,o,r,i,n);if(l){l=o.fallback,s=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 1&s||t.child===i?(o=Tc(i,c)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==r?l=Tc(r,l):(l=Lc(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Ml(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Ll,o}return e=(l=e.child).sibling,o=Tc(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fl(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function jl(e,t,n,r){return null!==r&&ga(r),Ea(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Da(e.return,t,n)}function $l(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 Ul(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(wl(e,t,r.children,n),2&(r=ei.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&&zl(e,n,t);else if(19===e.tag)zl(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}if(Oo(ei,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ti(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$l(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===ti(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$l(t,!0,n,null,a);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Wl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ms|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Tc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vl(e,t){if(!aa)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 Gl(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|=14680064&o.subtreeFlags,r|=14680064&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 ql(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gl(t),null;case 1:case 17:return To(t.type)&&Ao(),Gl(t),null;case 3:return r=t.stateNode,Xa(),_o(Io),_o(Do),ri(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ia&&(ic(ia),ia=null))),Rl(e,t),Gl(t),null;case 5:Za(t);var o=Qa(Ka.current);if(n=t.type,null!==e&&null!=t.stateNode)Tl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Gl(t),null}if(e=Qa(Ga.current),pa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fo]=t,r[mo]=i,e=!!(1&t.mode),n){case"dialog":jr("cancel",r),jr("close",r);break;case"iframe":case"object":case"embed":jr("load",r);break;case"video":case"audio":for(o=0;o<Lr.length;o++)jr(Lr[o],r);break;case"source":jr("error",r);break;case"img":case"image":case"link":jr("error",r),jr("load",r);break;case"details":jr("toggle",r);break;case"input":Y(r,i),jr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},jr("invalid",r);break;case"textarea":oe(r,i),jr("invalid",r)}for(var s in be(n,i),o=null,i)if(i.hasOwnProperty(s)){var c=i[s];"children"===s?"string"==typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c]):l.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&jr("scroll",r)}switch(n){case"input":G(r),Z(r,i,!0);break;case"textarea":G(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[fo]=t,e[mo]=r,Pl(e,t,!1,!1),t.stateNode=e;e:{switch(s=ye(n,r),n){case"dialog":jr("cancel",e),jr("close",e),o=r;break;case"iframe":case"object":case"embed":jr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Lr.length;o++)jr(Lr[o],e);o=r;break;case"source":jr("error",e),o=r;break;case"img":case"image":case"link":jr("error",e),jr("load",e),o=r;break;case"details":jr("toggle",e),o=r;break;case"input":Y(e,r),o=Q(e,r),jr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=B({},r,{value:void 0}),jr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),jr("invalid",e)}for(i in be(n,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?he(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(l.hasOwnProperty(i)?null!=u&&"onScroll"===i&&jr("scroll",e):null!=u&&y(e,i,u,s))}switch(n){case"input":G(e),Z(e,r,!1);break;case"textarea":G(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gl(t),null;case 6:if(e&&null!=t.stateNode)Al(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=Qa(Ka.current),Qa(Ga.current),pa(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return Gl(t),null;case 13:if(_o(ei),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&1&t.mode&&!(128&t.flags))fa(),ma(),t.flags|=98560,i=!1;else if(i=pa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[fo]=t}else ma(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gl(t),i=!1}else null!==ia&&(ic(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ei.current?0===As&&(As=3):gc())),null!==t.updateQueue&&(t.flags|=4),Gl(t),null);case 4:return Xa(),Rl(e,t),null===e&&Ur(t.stateNode.containerInfo),Gl(t),null;case 10:return Na(t.type._context),Gl(t),null;case 19:if(_o(ei),null===(i=t.memoizedState))return Gl(t),null;if(r=!!(128&t.flags),null===(s=i.rendering))if(r)Vl(i,!1);else{if(0!==As||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ti(e))){for(t.flags|=128,Vl(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oo(ei,1&ei.current|2),t.child}e=e.sibling}null!==i.tail&&Xe()>Us&&(t.flags|=128,r=!0,Vl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ti(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!aa)return Gl(t),null}else 2*Xe()-i.renderingStartTime>Us&&1073741824!==n&&(t.flags|=128,r=!0,Vl(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xe(),t.sibling=null,n=ei.current,Oo(ei,r?1&n|2:1&n),t):(Gl(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Rs)&&(Gl(t),6&t.subtreeFlags&&(t.flags|=8192)):Gl(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Kl(e,t){switch(na(t),t.tag){case 1:return To(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xa(),_o(Io),_o(Do),ri(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Za(t),null;case 13:if(_o(ei),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(ei),null;case 4:return Xa(),null;case 10:return Na(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Pl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rl=function(){},Tl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qa(Ga.current);var a,i=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),i=[];break;case"select":o=B({},o,{value:void 0}),r=B({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(u in be(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jr("scroll",e),i||s===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Al=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ql=!1,Yl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Jl=null;function Zl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){kc(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){kc(e,t,n)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&es(t,n,a)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fo],delete t[mo],delete t[ho],delete t[vo],delete t[bo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function is(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||is(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(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 ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function cs(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&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var us=null,ds=!1;function ps(e,t,n){for(n=n.child;null!==n;)fs(e,t,n),n=n.sibling}function fs(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Yl||Zl(n,t);case 6:var r=us,o=ds;us=null,ps(e,t,n),ds=o,null!==(us=r)&&(ds?(e=us,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):us.removeChild(n.stateNode));break;case 18:null!==us&&(ds?(e=us,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Ut(e)):so(us,n.stateNode));break;case 4:r=us,o=ds,us=n.stateNode.containerInfo,ds=!0,ps(e,t,n),us=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Yl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&es(n,t,i),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Yl&&(Zl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){kc(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,ps(e,t,n),Yl=r):ps(e,t,n);break;default:ps(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Nc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:us=s.stateNode,ds=!1;break e;case 3:case 4:us=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===us)throw Error(a(160));fs(i,l,o),us=null,ds=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){kc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)hs(t,e),t=t.sibling}function hs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),vs(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(t){kc(e,e.return,t)}try{ns(5,e,e.return)}catch(t){kc(e,e.return,t)}}break;case 1:gs(t,e),vs(e),512&r&&null!==n&&Zl(n,n.return);break;case 5:if(gs(t,e),vs(e),512&r&&null!==n&&Zl(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){kc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===i.type&&null!=i.name&&X(o,i),ye(s,l);var u=ye(s,i);for(l=0;l<c.length;l+=2){var d=c[l],p=c[l+1];"style"===d?he(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):y(o,d,p,u)}switch(s){case"input":J(o,i);break;case"textarea":ae(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(o,!!i.multiple,m,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[mo]=i}catch(t){kc(e,e.return,t)}}break;case 6:if(gs(t,e),vs(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){kc(e,e.return,t)}}break;case 3:if(gs(t,e),vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(t){kc(e,e.return,t)}break;case 4:default:gs(t,e),vs(e);break;case 13:gs(t,e),vs(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||($s=Xe())),4&r&&ms(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Yl=(u=Yl)||d,gs(t,e),Yl=u):gs(t,e),vs(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Jl=e,d=e.child;null!==d;){for(p=Jl=d;null!==Jl;){switch(m=(f=Jl).child,f.tag){case 0:case 11:case 14:case 15:ns(4,f,f.return);break;case 1:Zl(f,f.return);var g=f.stateNode;if("function"==typeof g.componentWillUnmount){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){kc(r,n,e)}}break;case 5:Zl(f,f.return);break;case 22:if(null!==f.memoizedState){Es(p);continue}}null!==m?(m.return=f,Jl=m):Es(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=p.stateNode,l=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=ge("display",l))}catch(t){kc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){kc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gs(t,e),vs(e),4&r&&ms(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(is(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),cs(e,ls(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;ss(e,ls(e),i);break;default:throw Error(a(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Jl=e,ys(e,t,n)}function ys(e,t,n){for(var r=!!(1&e.mode);null!==Jl;){var o=Jl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Ql;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Yl;l=Ql;var c=Yl;if(Ql=i,(Yl=s)&&!c)for(Jl=o;null!==Jl;)s=(i=Jl).child,22===i.tag&&null!==i.memoizedState?xs(o):null!==s?(s.return=i,Jl=s):xs(o);for(;null!==a;)Jl=a,ys(a,t,n),a=a.sibling;Jl=o,Ql=l,Yl=c}ws(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Jl=a):ws(e)}}function ws(e){for(;null!==Jl;){var t=Jl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Yl||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Yl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ha(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ha(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ut(p)}}}break;default:throw Error(a(163))}Yl||512&t.flags&&os(t)}catch(e){kc(t,t.return,e)}}if(t===e){Jl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jl=n;break}Jl=t.return}}function Es(e){for(;null!==Jl;){var t=Jl;if(t===e){Jl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jl=n;break}Jl=t.return}}function xs(e){for(;null!==Jl;){var t=Jl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){kc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){kc(t,o,e)}}var a=t.return;try{os(t)}catch(e){kc(t,a,e)}break;case 5:var i=t.return;try{os(t)}catch(e){kc(t,i,e)}}}catch(e){kc(t,t.return,e)}if(t===e){Jl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jl=l;break}Jl=t.return}}var Ss,ks=Math.ceil,Cs=w.ReactCurrentDispatcher,_s=w.ReactCurrentOwner,Os=w.ReactCurrentBatchConfig,Ns=0,Ds=null,Is=null,Ps=0,Rs=0,Ts=Co(0),As=0,Ls=null,Ms=0,Bs=0,Fs=0,js=null,zs=null,$s=0,Us=1/0,Ws=null,Hs=!1,Vs=null,Gs=null,qs=!1,Ks=null,Qs=0,Ys=0,Xs=null,Js=-1,Zs=0;function ec(){return 6&Ns?Xe():-1!==Js?Js:Js=Xe()}function tc(e){return 1&e.mode?2&Ns&&0!==Ps?Ps&-Ps:null!==ha.transition?(0===Zs&&(Zs=gt()),Zs):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function nc(e,t,n,r){if(50<Ys)throw Ys=0,Xs=null,Error(a(185));vt(e,n,r),2&Ns&&e===Ds||(e===Ds&&(!(2&Ns)&&(Bs|=n),4===As&&lc(e,Ps)),rc(e,r),1===n&&0===Ns&&!(1&t.mode)&&(Us=Xe()+500,zo&&Wo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),l=1<<i,s=o[i];-1===s?l&n&&!(l&r)||(o[i]=ft(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=pt(e,e===Ds?Ps:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){zo=!0,Uo(e)}(sc.bind(null,e)):Uo(sc.bind(null,e)),io((function(){!(6&Ns)&&Wo()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Dc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Js=-1,Zs=0,6&Ns)throw Error(a(327));var n=e.callbackNode;if(xc()&&e.callbackNode!==n)return null;var r=pt(e,e===Ds?Ps:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=hc(e,r);else{t=r;var o=Ns;Ns|=2;var i=mc();for(Ds===e&&Ps===t||(Ws=null,Us=Xe()+500,pc(e,t));;)try{bc();break}catch(t){fc(e,t)}Oa(),Cs.current=i,Ns=o,null!==Is?t=0:(Ds=null,Ps=0,t=As)}if(0!==t){if(2===t&&0!==(o=mt(e))&&(r=o,t=ac(e,o)),1===t)throw n=Ls,pc(e,0),lc(e,r),rc(e,Xe()),n;if(6===t)lc(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!lr(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}(o)||(t=hc(e,r),2===t&&(i=mt(e),0!==i&&(r=i,t=ac(e,i))),1!==t)))throw n=Ls,pc(e,0),lc(e,r),rc(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Ec(e,zs,Ws);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=$s+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Ec.bind(null,e,zs,Ws),t);break}Ec(e,zs,Ws);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-it(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ks(r/1960))-r)){e.timeoutHandle=ro(Ec.bind(null,e,zs,Ws),r);break}Ec(e,zs,Ws);break;default:throw Error(a(329))}}}return rc(e,Xe()),e.callbackNode===n?oc.bind(null,e):null}function ac(e,t){var n=js;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=hc(e,t))&&(t=zs,zs=n,null!==t&&ic(t)),e}function ic(e){null===zs?zs=e:zs.push.apply(zs,e)}function lc(e,t){for(t&=~Fs,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function sc(e){if(6&Ns)throw Error(a(327));xc();var t=pt(e,0);if(!(1&t))return rc(e,Xe()),null;var n=hc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Ls,pc(e,0),lc(e,t),rc(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ec(e,zs,Ws),rc(e,Xe()),null}function cc(e,t){var n=Ns;Ns|=1;try{return e(t)}finally{0===(Ns=n)&&(Us=Xe()+500,zo&&Wo())}}function uc(e){null!==Ks&&0===Ks.tag&&!(6&Ns)&&xc();var t=Ns;Ns|=1;var n=Os.transition,r=yt;try{if(Os.transition=null,yt=1,e)return e()}finally{yt=r,Os.transition=n,!(6&(Ns=t))&&Wo()}}function dc(){Rs=Ts.current,_o(Ts)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ao();break;case 3:Xa(),_o(Io),_o(Do),ri();break;case 5:Za(r);break;case 4:Xa();break;case 13:case 19:_o(ei);break;case 10:Na(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Ds=e,Is=e=Tc(e.current,null),Ps=Rs=t,As=0,Ls=null,Fs=Bs=Ms=0,zs=js=null,null!==Ra){for(t=0;t<Ra.length;t++)if(null!==(r=(n=Ra[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ra=null}return e}function fc(e,t){for(;;){var n=Is;try{if(Oa(),oi.current=Ji,ui){for(var r=li.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ui=!1}if(ii=0,ci=si=li=null,di=!1,pi=0,_s.current=null,null===n||null===n.return){As=1,Ls=t,Is=null;break}e:{var i=e,l=n.return,s=n,c=t;if(t=Ps,s.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=s,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=hl(l);if(null!==m){m.flags&=-257,vl(m,l,s,0,t),1&m.mode&&gl(i,u,t),c=u;var g=(t=m).updateQueue;if(null===g){var h=new Set;h.add(c),t.updateQueue=h}else g.add(c);break e}if(!(1&t)){gl(i,u,t),gc();break e}c=Error(a(426))}else if(aa&&1&s.mode){var v=hl(l);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vl(v,l,s,0,t),ga(cl(c,s));break e}}i=c=cl(c,s),4!==As&&(As=2),null===js?js=[i]:js.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ua(i,fl(0,c,t));break e;case 1:s=c;var b=i.type,y=i.stateNode;if(!(128&i.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Gs&&Gs.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Ua(i,ml(i,s,t));break e}}i=i.return}while(null!==i)}wc(n)}catch(e){t=e,Is===n&&null!==n&&(Is=n=n.return);continue}break}}function mc(){var e=Cs.current;return Cs.current=Ji,null===e?Ji:e}function gc(){0!==As&&3!==As&&2!==As||(As=4),null===Ds||!(268435455&Ms)&&!(268435455&Bs)||lc(Ds,Ps)}function hc(e,t){var n=Ns;Ns|=2;var r=mc();for(Ds===e&&Ps===t||(Ws=null,pc(e,t));;)try{vc();break}catch(t){fc(e,t)}if(Oa(),Ns=n,Cs.current=r,null!==Is)throw Error(a(261));return Ds=null,Ps=0,As}function vc(){for(;null!==Is;)yc(Is)}function bc(){for(;null!==Is&&!Qe();)yc(Is)}function yc(e){var t=Ss(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?wc(e):Is=t,_s.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Kl(n,t)))return n.flags&=32767,void(Is=n);if(null===e)return As=6,void(Is=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=ql(n,t,Rs)))return void(Is=n);if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===As&&(As=5)}function Ec(e,t,n){var r=yt,o=Os.transition;try{Os.transition=null,yt=1,function(e,t,n,r){do{xc()}while(null!==Ks);if(6&Ns)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Ds&&(Is=Ds=null,Ps=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||qs||(qs=!0,Dc(tt,(function(){return xc(),null}))),i=!!(15990&n.flags),15990&n.subtreeFlags||i){i=Os.transition,Os.transition=null;var l=yt;yt=1;var s=Ns;Ns|=4,_s.current=null,function(e,t){if(eo=Ht,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==n||0!==o&&3!==p.nodeType||(s=l+o),p!==i||0!==r&&3!==p.nodeType||(c=l+r),3===p.nodeType&&(l+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===e)break t;if(f===n&&++u===o&&(s=l),f===i&&++d===r&&(c=l),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Jl=t;null!==Jl;)if(e=(t=Jl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Jl=e;else for(;null!==Jl;){t=Jl;try{var g=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var h=g.memoizedProps,v=g.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?h:nl(t.type,h),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(e){kc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Jl=e;break}Jl=t.return}g=ts,ts=!1}(e,n),hs(n,e),mr(to),Ht=!!eo,to=eo=null,e.current=n,bs(n,e,o),Ye(),Ns=s,yt=l,Os.transition=i}else e.current=n;if(qs&&(qs=!1,Ks=e,Qs=o),0===(i=e.pendingLanes)&&(Gs=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rc(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Hs)throw Hs=!1,e=Vs,Vs=null,e;!!(1&Qs)&&0!==e.tag&&xc(),1&(i=e.pendingLanes)?e===Xs?Ys++:(Ys=0,Xs=e):Ys=0,Wo()}(e,t,n,r)}finally{Os.transition=o,yt=r}return null}function xc(){if(null!==Ks){var e=wt(Qs),t=Os.transition,n=yt;try{if(Os.transition=null,yt=16>e?16:e,null===Ks)var r=!1;else{if(e=Ks,Ks=null,Qs=0,6&Ns)throw Error(a(331));var o=Ns;for(Ns|=4,Jl=e.current;null!==Jl;){var i=Jl,l=i.child;if(16&Jl.flags){var s=i.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Jl=u;null!==Jl;){var d=Jl;switch(d.tag){case 0:case 11:case 15:ns(8,d,i)}var p=d.child;if(null!==p)p.return=d,Jl=p;else for(;null!==Jl;){var f=(d=Jl).sibling,m=d.return;if(as(d),d===u){Jl=null;break}if(null!==f){f.return=m,Jl=f;break}Jl=m}}}var g=i.alternate;if(null!==g){var h=g.child;if(null!==h){g.child=null;do{var v=h.sibling;h.sibling=null,h=v}while(null!==h)}}Jl=i}}if(2064&i.subtreeFlags&&null!==l)l.return=i,Jl=l;else e:for(;null!==Jl;){if(2048&(i=Jl).flags)switch(i.tag){case 0:case 11:case 15:ns(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Jl=b;break e}Jl=i.return}}var y=e.current;for(Jl=y;null!==Jl;){var w=(l=Jl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Jl=w;else e:for(l=y;null!==Jl;){if(2048&(s=Jl).flags)try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){kc(s,s.return,e)}if(s===l){Jl=null;break e}var E=s.sibling;if(null!==E){E.return=s.return,Jl=E;break e}Jl=s.return}}if(Ns=o,Wo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,Os.transition=t}}return!1}function Sc(e,t,n){e=za(e,t=fl(0,t=cl(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function kc(e,t,n){if(3===e.tag)Sc(e,e,n);else for(;null!==t;){if(3===t.tag){Sc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){t=za(t,e=ml(t,e=cl(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Ds===e&&(Ps&n)===n&&(4===As||3===As&&(130023424&Ps)===Ps&&500>Xe()-$s?pc(e,0):Fs|=n),rc(e,t)}function _c(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=ec();null!==(e=La(e,t))&&(vt(e,t,n),rc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_c(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),_c(e,n)}function Dc(e,t){return qe(e,t)}function Ic(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pc(e,t,n,r){return new Ic(e,t,n,r)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tc(e,t){var n=e.alternate;return null===n?((n=Pc(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=14680064&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}function Ac(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Rc(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Lc(n.children,o,i,t);case k:l=8,o|=8;break;case C:return(e=Pc(12,n,t,2|o)).elementType=C,e.lanes=i,e;case D:return(e=Pc(13,n,t,o)).elementType=D,e.lanes=i,e;case I:return(e=Pc(19,n,t,o)).elementType=I,e.lanes=i,e;case T:return Mc(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:l=10;break e;case O:l=9;break e;case N:l=11;break e;case P:l=14;break e;case R:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Pc(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Lc(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Bc(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zc(e,t,n,r,o,a,i,l,s){return e=new jc(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Pc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ba(a),e}function $c(e){if(!e)return No;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(To(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(To(n))return Mo(e,n,t)}return t}function Uc(e,t,n,r,o,a,i,l,s){return(e=zc(n,r,!0,e,0,a,0,l,s)).context=$c(null),n=e.current,(a=ja(r=ec(),o=tc(n))).callback=null!=t?t:null,za(n,a,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function Wc(e,t,n,r){var o=t.current,a=ec(),i=tc(o);return n=$c(n),null===t.context?t.context=n:t.pendingContext=n,(t=ja(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=za(o,t,i))&&(nc(e,o,i,a),$a(e,o,i)),i}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}Ss=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)yl=!0;else{if(!(e.lanes&n||128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:Dl(t),ma();break;case 5:Ja(t);break;case 1:To(t.type)&&Bo(t);break;case 4:Ya(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(Sa,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(ei,1&ei.current),t.flags|=128,null):n&t.child.childLanes?Bl(e,t,n):(Oo(ei,1&ei.current),null!==(e=Hl(e,t,n))?e.sibling:null);Oo(ei,1&ei.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Ul(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(ei,ei.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Hl(e,t,n)}(e,t,n);yl=!!(131072&e.flags)}else yl=!1,aa&&1048576&t.flags&&ea(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var o=Ro(t,Do.current);Ia(t,n),o=hi(null,t,r,e,o,n);var i=vi();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,To(r)?(i=!0,Bo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ba(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,sl(t,r,e,n),t=Nl(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Rc(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===P)return 14}return 2}(r),e=nl(r,e),o){case 0:t=_l(null,t,r,e,n);break e;case 1:t=Ol(null,t,r,e,n);break e;case 11:t=El(null,t,r,e,n);break e;case 14:t=xl(null,t,r,nl(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,_l(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ol(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(Dl(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Fa(e,t),Wa(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Il(e,t,r,n,o=cl(Error(a(423)),t));break e}if(r!==o){t=Il(e,t,r,n,o=cl(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ma(),r===o){t=Hl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return Ja(t),null===e&&ua(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==i&&no(r,i)&&(t.flags|=32),Cl(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Bl(e,t,n);case 4:return Ya(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ea(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,El(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Oo(Sa,r._currentValue),r._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===o.children&&!Io.current){t=Hl(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var c=s.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=ja(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),Da(i.return,n,t),s.lanes|=n;break}c=c.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(a(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Da(l,n,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ia(t,n),r=r(o=Pa(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),xl(e,t,r,o=nl(r.type,o),n);case 15:return Sl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Wl(e,t),t.tag=1,To(r)?(e=!0,Bo(t)):e=!1,Ia(t,n),il(t,r,o),sl(t,r,o,n),Nl(null,t,r,!0,e,n);case 19:return Ul(e,t,n);case 22:return kl(e,t,n)}throw Error(a(156,t.tag))};var qc="function"==typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Zc(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=Hc(i);l.call(e)}}Wc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Hc(i);a.call(e)}}var i=Uc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=i,e[go]=i.current,Ur(8===e.nodeType?e.parentNode:e),uc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Hc(s);l.call(e)}}var s=zc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=s,e[go]=s.current,Ur(8===e.nodeType?e.parentNode:e),uc((function(){Wc(t,s,n,r)})),s}(n,t,e,o,r);return Hc(i)}Qc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Wc(e,t,null,null)},Qc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Wc(null,e,null,null)})),t[go]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&0!==t&&t<Tt[n].priority;n++);Tt.splice(n,0,e),0===n&&Bt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rc(t,Xe()),!(6&Ns)&&(Us=Xe()+500,Wo()))}break;case 13:uc((function(){var t=La(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Gc(e,1)}},xt=function(e){if(13===e.tag){var t=La(e,134217728);null!==t&&nc(t,e,134217728,ec()),Gc(e,134217728)}},St=function(e){if(13===e.tag){var t=tc(e),n=La(e,t);null!==n&&nc(n,e,t,ec()),Gc(e,t)}},kt=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},xe=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(a(90));q(r),J(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=cc,De=uc;var eu={usingClientEntryPoint:!1,Events:[wo,Eo,xo,_e,Oe,cc]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),at=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(e))throw Error(a(299));var n=!1,r="",o=qc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zc(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Ur(8===e.nodeType?e.parentNode:e),new Kc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(a(200));return Zc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=qc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Uc(t,null,e,1,null!=n?n:null,o,0,i,l),e[go]=t.current,Ur(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(a(200));return Zc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(a(40));return!!e._reactRootContainer&&(uc((function(){Zc(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},338:(e,t,n)=>{"use strict";var r=n(961);t.H=r.createRoot,r.hydrateRoot},961:(e,t,n)=>{"use strict";!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)}}(),e.exports=n(551)},799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case l:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case h:case g:case s:return e;default:return t}}case o:return t}}}function x(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||E(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},363:(e,t,n)=>{"use strict";e.exports=n(799)},989:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case s:case u:case m:case f:case l:return e;default:return t}}case r:return t}}}(e)===s}},737:(e,t,n)=>{"use strict";e.exports=n(989)},20:(e,t,n)=>{"use strict";var r=n(540),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:l.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,h={};function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var w=y.prototype=new b;w.constructor=y,g(w,v.prototype),w.isPureReactComponent=!0;var E=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)x.call(t,o)&&!k.hasOwnProperty(o)&&(a[o]=t[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:S.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function D(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===a?"."+N(s,0):a,E(i)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),D(i,t,o,"",(function(e){return e}))):null!=i&&(_(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(O,"$&/")+"/")+e)),t.push(i)),1;if(s=0,a=""===a?".":a+":",E(e))for(var c=0;c<e.length;c++){var u=a+N(l=e[c],c);s+=D(l,t,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=D(l=l.value,t,o,u=a+N(l,c++),i);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,n){if(null==e)return e;var r=[],o=0;return D(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},T={transition:null},A={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:T,ReactCurrentOwner:S};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=i,t.PureComponent=y,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.act=L,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)x.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},540:(e,t,n)=>{"use strict";e.exports=n(287)},848:(e,t,n)=>{"use strict";e.exports=n(20)},463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>a(s,n))c<o&&0>a(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,p=null,f=3,m=!1,g=!1,h=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function E(e){if(h=!1,w(e),!g)if(null!==r(c))g=!0,T(x);else{var t=r(u);null!==t&&A(E,t.startTime-e)}}function x(e,n){g=!1,h&&(h=!1,b(_),_=-1),m=!0;var a=f;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!D());){var i=p.callback;if("function"==typeof i){p.callback=null,f=p.priorityLevel;var l=i(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?p.callback=l:p===r(c)&&o(c),w(n)}else o(c);p=r(c)}if(null!==p)var s=!0;else{var d=r(u);null!==d&&A(E,d.startTime-n),s=!1}return s}finally{p=null,f=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,C=null,_=-1,O=5,N=-1;function D(){return!(t.unstable_now()-N<O)}function I(){if(null!==C){var e=t.unstable_now();N=e;var n=!0;try{n=C(!0,e)}finally{n?S():(k=!1,C=null)}}else k=!1}if("function"==typeof y)S=function(){y(I)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,R=P.port2;P.port1.onmessage=I,S=function(){R.postMessage(null)}}else S=function(){v(I,0)};function T(e){C=e,k||(k=!0,S())}function A(e,n){_=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,T(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(h?(b(_),_=-1):h=!0,A(E,a-i))):(e.sortIndex=l,n(c,e),g||m||(g=!0,T(x))),e},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},982:(e,t,n)=>{"use strict";e.exports=n(463)},63:(e,t,n)=>{"use strict";var r=n(540),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},940:(e,t,n)=>{"use strict";var r=n(540),o=n(888),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,l=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return l=t}return l=e}if(t=l,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,l=n)}var i,l,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var f=i(e,d[0],d[1]);return s((function(){p.hasValue=!0,p.value=f}),[f]),u(f),f}},888:(e,t,n)=>{"use strict";e.exports=n(63)},242:(e,t,n)=>{"use strict";e.exports=n(940)},771:e=>{"use strict";e.exports=function(){}},656:(e,t,n)=>{"use strict";var r=n(540),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},763:(e,t,n)=>{"use strict";var r=n(540),o=n(257),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,l=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return l=t}return l=e}if(t=l,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,l=n)}var i,l,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var f=i(e,d[0],d[1]);return s((function(){p.hasValue=!0,p.value=f}),[f]),u(f),f}},257:(e,t,n)=>{"use strict";e.exports=n(656)},79:(e,t,n)=>{"use strict";e.exports=n(763)},942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(540),t=n(338),r=n(961);function o(e){return o="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},o(e)}function a(e,t,n){return(t=function(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(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?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(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 c="function"==typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},d={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function p(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(s(1));return n(p)(e,t)}if("function"!=typeof e)throw new Error(s(2));var o=e,a=t,i=[],l=i,u=!1;function f(){l===i&&(l=i.slice())}function m(){if(u)throw new Error(s(3));return a}function g(e){if("function"!=typeof e)throw new Error(s(4));if(u)throw new Error(s(5));var t=!0;return f(),l.push(e),function(){if(t){if(u)throw new Error(s(6));t=!1,f();var n=l.indexOf(e);l.splice(n,1),i=null}}}function h(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(u)throw new Error(s(9));try{u=!0,a=o(a,e)}finally{u=!1}for(var t=i=l,n=0;n<t.length;n++)(0,t[n])();return e}return h({type:d.INIT}),(r={dispatch:h,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(s(10));o=e,h({type:d.REPLACE})}})[c]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(s(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[c]=function(){return this},e},r}function f(e,t){return function(){return t(e.apply(this,arguments))}}function m(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw new Error(s(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=f(o,t))}return n}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var h=n(888),v=n(242);let b=function(e){e()};const y=()=>b,w=Symbol.for("react-redux-context"),E="undefined"!=typeof globalThis?globalThis:{};function x(){var t;if(!e.createContext)return{};const n=null!=(t=E[w])?t:E[w]=new Map;let r=n.get(e.createContext);return r||(r=e.createContext(null),n.set(e.createContext,r)),r}const S=x();let k=null;function C(){return C=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},C.apply(null,arguments)}function _(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var O=n(146),N=n.n(O),D=n(737);const I=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function P(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let l,s,c,u,d,p=!1;return function(f,m){return p?function(p,f){const m=!a(f,s),g=!o(p,l,f,s);return l=p,s=f,m&&g?(c=e(l,s),t.dependsOnOwnProps&&(u=t(r,s)),d=n(c,u,s),d):m?(e.dependsOnOwnProps&&(c=e(l,s)),t.dependsOnOwnProps&&(u=t(r,s)),d=n(c,u,s),d):g?function(){const t=e(l,s),r=!i(t,c);return c=t,r&&(d=n(c,u,s)),d}():d}(f,m):(l=f,s=m,c=e(l,s),u=t(r,s),d=n(c,u,s),p=!0,d)}}function R(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function T(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=T(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=T(o),o=r(t,n)),o},r}}function L(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function M(e,t,n){return C({},n,e,t)}const B={notify(){},get:()=>[]};function F(e,t){let n,r=B,o=0,a=!1;function i(){c.onStateChange&&c.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){const e=y();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=B)}const c={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,l())},tryUnsubscribe:function(){a&&(a=!1,s())},getListeners:()=>r};return c}const j="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function z(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function $(e,t){if(z(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!z(e[n[r]],t[n[r]]))return!1;return!0}const U=["reactReduxForwardedRef"];let W=()=>{throw new Error("uSES not initialized!")};const H=[null,null];function V(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function G(e,t){return e===t}const q=function(t,n,r,{pure:o,areStatesEqual:a=G,areOwnPropsEqual:i=$,areStatePropsEqual:l=$,areMergedPropsEqual:s=$,forwardRef:c=!1,context:u=S}={}){const d=u,p=function(e){return e?"function"==typeof e?A(e):L(e,"mapStateToProps"):R((()=>({})))}(t),f=function(e){return e&&"object"==typeof e?R((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?A(e):L(e,"mapDispatchToProps"):R((e=>({dispatch:e})))}(n),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){const l=e(t,n,i);return a?r(l,o)||(o=l):(a=!0,o=l),o}}}(e):L(e,"mergeProps"):()=>M}(r),g=Boolean(t);return t=>{const n=t.displayName||t.name||"Component",r=`Connect(${n})`,o={shouldHandleStateChanges:g,displayName:r,wrappedComponentName:n,WrappedComponent:t,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:m,areStatesEqual:a,areStatePropsEqual:l,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(n){const[r,a,i]=e.useMemo((()=>{const{reactReduxForwardedRef:e}=n,t=_(n,U);return[n.context,e,t]}),[n]),l=e.useMemo((()=>r&&r.Consumer&&(0,D.isContextConsumer)(e.createElement(r.Consumer,null))?r:d),[r,d]),s=e.useContext(l),c=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),u=Boolean(s)&&Boolean(s.store),p=c?n.store:s.store,f=u?s.getServerState:p.getState,m=e.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,a=_(t,I);return P(n(e,a),r(e,a),o(e,a),e,a)}(p.dispatch,o)),[p]),[h,v]=e.useMemo((()=>{if(!g)return H;const e=F(p,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,s]),b=e.useMemo((()=>c?s:C({},s,{subscription:h})),[c,s,h]),y=e.useRef(),w=e.useRef(i),E=e.useRef(),x=e.useRef(!1),S=(e.useRef(!1),e.useRef(!1)),k=e.useRef();j((()=>(S.current=!0,()=>{S.current=!1})),[]);const O=e.useMemo((()=>()=>E.current&&i===w.current?E.current:m(p.getState(),i)),[p,i]),N=e.useMemo((()=>e=>h?function(e,t,n,r,o,a,i,l,s,c,u){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!l.current)return;const e=t.getState();let n,f;try{n=r(e,o.current)}catch(e){f=e,p=e}f||(p=null),n===a.current?i.current||c():(a.current=n,s.current=n,i.current=!0,u())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(g,p,h,m,w,y,x,S,E,v,e):()=>{}),[h]);var R,T;let A;R=V,T=[w,y,x,i,E,v],j((()=>R(...T)),undefined);try{A=W(N,O,f?()=>m(f(),i):O)}catch(e){throw k.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),e}j((()=>{k.current=void 0,E.current=void 0,y.current=A}));const L=e.useMemo((()=>e.createElement(t,C({},A,{ref:a}))),[a,t,A]);return e.useMemo((()=>g?e.createElement(l.Provider,{value:b},L):L),[l,L,b])}const h=e.memo(u);if(h.WrappedComponent=t,h.displayName=u.displayName=r,c){const n=e.forwardRef((function(t,n){return e.createElement(h,C({},t,{reactReduxForwardedRef:n}))}));return n.displayName=r,n.WrappedComponent=t,N()(n,t)}return N()(h,t)}},K=function({store:t,context:n,children:r,serverState:o,stabilityCheck:a="once",noopCheck:i="once"}){const l=e.useMemo((()=>{const e=F(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:a,noopCheck:i}}),[t,o,a,i]),s=e.useMemo((()=>t.getState()),[t]);j((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,s]);const c=n||S;return e.createElement(c.Provider,{value:l},r)};var Q;function Y(t,n){var r=(0,e.useState)((function(){return{inputs:n,result:t()}}))[0],o=(0,e.useRef)(!0),a=(0,e.useRef)(r),i=o.current||Boolean(n&&a.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,a.current.inputs))?a.current:{inputs:n,result:t()};return(0,e.useEffect)((function(){o.current=!1,a.current=i}),[i]),i.result}k=v.useSyncExternalStoreWithSelector,(e=>{W=e})(h.useSyncExternalStore),Q=r.unstable_batchedUpdates,b=Q;var X=Y,J=function(e,t){return Y((function(){return e}),t)},Z=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},ee=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},te=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},ne={top:0,right:0,bottom:0,left:0},re=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?ne:n,o=e.border,a=void 0===o?ne:o,i=e.padding,l=void 0===i?ne:i,s=Z(ee(t,r)),c=Z(te(t,a)),u=Z(te(c,l));return{marginBox:s,borderBox:Z(t),paddingBox:c,contentBox:u,margin:r,border:a,padding:l}},oe=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(){throw new Error("Invariant failed")}(),n},ae=function(e,t){var n,r,o=e.borderBox,a=e.border,i=e.margin,l=e.padding,s=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return re({borderBox:s,border:a,margin:i,padding:l})},ie=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ae(e,t)},le=function(e,t){var n={top:oe(t.marginTop),right:oe(t.marginRight),bottom:oe(t.marginBottom),left:oe(t.marginLeft)},r={top:oe(t.paddingTop),right:oe(t.paddingRight),bottom:oe(t.paddingBottom),left:oe(t.paddingLeft)},o={top:oe(t.borderTopWidth),right:oe(t.borderRightWidth),bottom:oe(t.borderBottomWidth),left:oe(t.borderLeftWidth)};return re({borderBox:e,margin:n,padding:r,border:o})},se=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return le(t,n)},ce=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ue(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||ce(r)&&ce(o)))return!1;var r,o;return!0}function de(e,t){void 0===t&&(t=ue);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}const pe=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function fe(e,t){}function me(){}function ge(e,t,n){const r=t.map((t=>{const r=(o=n,a=t.options,{...o,...a});var o,a;return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((e=>{e()}))}}fe.bind(null,"warn"),fe.bind(null,"error");const he=!0,ve="Invariant failed";class be extends Error{}function ye(e,t){if(!e)throw new be(he?ve:`${ve}: ${t||""}`)}be.prototype.toString=function(){return this.message};class we extends e.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=me,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof be&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=ge(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof be))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Ee=e=>e+1,xe=(e,t)=>{const n=e.droppableId===t.droppableId,r=Ee(e.index),o=Ee(t.index);return n?`\n You have moved the item from position ${r}\n to position ${o}\n `:`\n You have moved the item from position ${r}\n in list ${e.droppableId}\n to list ${t.droppableId}\n in position ${o}\n `},Se=(e,t,n)=>t.droppableId===n.droppableId?`\n The item ${e}\n has been combined with ${n.draggableId}`:`\n The item ${e}\n in list ${t.droppableId}\n has been combined with ${n.draggableId}\n in list ${n.droppableId}\n `,ke=e=>`\n The item has returned to its starting position\n of ${Ee(e.index)}\n`,Ce={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:e=>`\n You have lifted an item in position ${Ee(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return xe(e.source,t);const n=e.combine;return n?Se(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return`\n Movement cancelled.\n ${ke(e.source)}\n `;const t=e.destination,n=e.combine;return t?`\n You have dropped the item.\n ${xe(e.source,t)}\n `:n?`\n You have dropped the item.\n ${Se(e.draggableId,e.source,n)}\n `:`\n The item has been dropped while not over a drop area.\n ${ke(e.source)}\n `}};var _e=Ce;const Oe={x:0,y:0},Ne=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),De=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Ie=(e,t)=>e.x===t.x&&e.y===t.y,Pe=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),Re=(e,t,n=0)=>"x"===e?{x:t,y:n}:{x:n,y:t},Te=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),Ae=(e,t)=>Math.min(...t.map((t=>Te(e,t)))),Le=e=>t=>({x:e(t.x),y:e(t.y)}),Me=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),Be=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Fe=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const n=Z({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n})(t.pageMarginBox,e):Z(e);var je=({page:e,withPlaceholder:t,axis:n,frame:r})=>{const o=((e,t)=>t?Me(e,t.scroll.diff.displacement):e)(e.marginBox,r),a=((e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e)(o,n,t);return{page:e,withPlaceholder:t,active:Fe(a,r)}},ze=(e,t)=>{e.frame||ye(!1);const n=e.frame,r=De(t,n.scroll.initial),o=Pe(r),a={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}},i=je({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return{...e,frame:a,subject:i}};const $e=de((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),Ue=de((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),We=de((e=>Object.values(e))),He=de((e=>Object.values(e)));var Ve=de(((e,t)=>{const n=He(t).filter((t=>e===t.descriptor.droppableId)).sort(((e,t)=>e.descriptor.index-t.descriptor.index));return n}));function Ge(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function qe(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ke=de(((e,t)=>t.filter((t=>t.descriptor.id!==e.descriptor.id)))),Qe=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const Ye={point:Oe,value:0},Xe={invisible:{},visible:{},all:[]};var Je={displaced:Xe,displacedBy:Ye,at:null},Ze=(e,t)=>n=>e<=n&&n<=t,et=e=>{const t=Ze(e.top,e.bottom),n=Ze(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const o=t(r.top)||t(r.bottom),a=n(r.left)||n(r.right);if(o&&a)return!0;const i=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!i||!l)||(i&&a||l&&o)}},tt=e=>{const t=Ze(e.top,e.bottom),n=Ze(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)};const nt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},rt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ot=({target:e,destination:t,viewport:n,withDroppableDisplacement:r,isVisibleThroughFrameFn:o})=>{const a=r?((e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:Oe;return Me(e,n)})(e,t):e;return((e,t,n)=>!!t.subject.active&&n(t.subject.active)(e))(a,t,o)&&((e,t,n)=>n(t)(e))(a,n,o)},at=e=>ot({...e,isVisibleThroughFrameFn:et}),it=e=>ot({...e,isVisibleThroughFrameFn:tt}),lt=(e,t,n)=>{if("boolean"==typeof n)return n;if(!t)return!0;const{invisible:r,visible:o}=t;if(r[e])return!1;const a=o[e];return!a||a.shouldAnimate};function st({afterDragging:e,destination:t,displacedBy:n,viewport:r,forceShouldAnimate:o,last:a}){return e.reduce((function(e,i){const l=function(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Z(ee(n,r))}(i,n),s=i.descriptor.id;if(e.all.push(s),!at({target:l,destination:t,viewport:r,withDroppableDisplacement:!0}))return e.invisible[i.descriptor.id]=!0,e;const c={draggableId:s,shouldAnimate:lt(s,a,o)};return e.visible[s]=c,e}),{all:[],visible:{},invisible:{}})}function ct({insideDestination:e,inHomeList:t,displacedBy:n,destination:r}){const o=function(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(e,{inHomeList:t});return{displaced:Xe,displacedBy:n,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:o}}}}function ut({draggable:e,insideDestination:t,destination:n,viewport:r,displacedBy:o,last:a,index:i,forceShouldAnimate:l}){const s=Qe(e,n);if(null==i)return ct({insideDestination:t,inHomeList:s,displacedBy:o,destination:n});const c=t.find((e=>e.descriptor.index===i));if(!c)return ct({insideDestination:t,inHomeList:s,displacedBy:o,destination:n});const u=Ke(e,t),d=t.indexOf(c);return{displaced:st({afterDragging:u.slice(d),destination:n,displacedBy:o,last:a,viewport:r.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:i}}}}function dt(e,t){return Boolean(t.effected[e])}const pt=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,ft=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,mt=({axis:e,moveRelativeTo:t,isMoving:n})=>Re(e.line,t.marginBox[e.end]+pt(e,n),ft(e,t.marginBox,n)),gt=({axis:e,moveRelativeTo:t,isMoving:n})=>Re(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,n),ft(e,t.marginBox,n));var ht=(e,t)=>{const n=e.frame;return n?Ne(t,n.scroll.diff.displacement):t},vt=e=>{const t=(({impact:e,draggable:t,droppable:n,draggables:r,afterCritical:o})=>{const a=t.page.borderBox.center,i=e.at;return n&&i?"REORDER"===i.type?(({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o})=>{const a=Ve(r.descriptor.id,n),i=t.page,l=r.axis;if(!a.length)return(({axis:e,moveInto:t,isMoving:n})=>Re(e.line,t.contentBox[e.start]+pt(e,n),ft(e,t.contentBox,n)))({axis:l,moveInto:r.page,isMoving:i});const{displaced:s,displacedBy:c}=e,u=s.all[0];if(u){const e=n[u];if(dt(u,o))return gt({axis:l,moveRelativeTo:e.page,isMoving:i});const t=ae(e.page,c.point);return gt({axis:l,moveRelativeTo:t,isMoving:i})}const d=a[a.length-1];if(d.descriptor.id===t.descriptor.id)return i.borderBox.center;if(dt(d.descriptor.id,o)){const e=ae(d.page,Pe(o.displacedBy.point));return mt({axis:l,moveRelativeTo:e,isMoving:i})}return mt({axis:l,moveRelativeTo:d.page,isMoving:i})})({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:o}):(({afterCritical:e,impact:t,draggables:n})=>{const r=qe(t);r||ye(!1);const o=r.draggableId,a=n[o].page.borderBox.center,i=(({displaced:e,afterCritical:t,combineWith:n,displacedBy:r})=>{const o=Boolean(e.visible[n]||e.invisible[n]);return dt(n,t)?o?Oe:Pe(r.point):o?r.point:Oe})({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return Ne(a,i)})({impact:e,draggables:r,afterCritical:o}):a})(e),n=e.droppable;return n?ht(n,t):t},bt=(e,t)=>{const n=De(t,e.scroll.initial),r=Pe(n);return{frame:Z({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function yt(e,t){return e.map((e=>t[e]))}var wt=({pageBorderBoxCenter:e,draggable:t,viewport:n})=>{const r=((e,t)=>Ne(e.scroll.diff.displacement,t))(n,e),o=De(r,t.page.borderBox.center);return Ne(t.client.borderBox.center,o)},Et=({draggable:e,destination:t,newPageBorderBoxCenter:n,viewport:r,withDroppableDisplacement:o,onlyOnMainAxis:a=!1})=>{const i=De(n,e.page.borderBox.center),l={target:Me(e.page.borderBox,i),destination:t,withDroppableDisplacement:o,viewport:r};return a?(e=>{return ot({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const n=Ze(e.top,e.bottom),r=Ze(e.left,e.right);return e=>t===nt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)})});var t})(l):it(l)},xt=({isMovingForward:e,draggable:t,destination:n,draggables:r,previousImpact:o,viewport:a,previousPageBorderBoxCenter:i,previousClientSelection:l,afterCritical:s})=>{if(!n.isEnabled)return null;const c=Ve(n.descriptor.id,r),u=Qe(t,n),d=(({isMovingForward:e,draggable:t,destination:n,insideDestination:r,previousImpact:o})=>{if(!n.isCombineEnabled)return null;if(!Ge(o))return null;function a(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return{...o,at:t}}const i=o.displaced.all,l=i.length?i[0]:null;if(e)return l?a(l):null;const s=Ke(t,r);if(!l)return s.length?a(s[s.length-1].descriptor.id):null;const c=s.findIndex((e=>e.descriptor.id===l));-1===c&&ye(!1);const u=c-1;return u<0?null:a(s[u].descriptor.id)})({isMovingForward:e,draggable:t,destination:n,insideDestination:c,previousImpact:o})||(({isMovingForward:e,isInHomeList:t,draggable:n,draggables:r,destination:o,insideDestination:a,previousImpact:i,viewport:l,afterCritical:s})=>{const c=i.at;if(c||ye(!1),"REORDER"===c.type){const r=(({isMovingForward:e,isInHomeList:t,insideDestination:n,location:r})=>{if(!n.length)return null;const o=r.index,a=e?o+1:o-1,i=n[0].descriptor.index,l=n[n.length-1].descriptor.index;return a<i||a>(t?l:l+1)?null:a})({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:a});return null==r?null:ut({draggable:n,insideDestination:a,destination:o,viewport:l,last:i.displaced,displacedBy:i.displacedBy,index:r})}const u=(({isMovingForward:e,destination:t,draggables:n,combine:r,afterCritical:o})=>{if(!t.isCombineEnabled)return null;const a=r.draggableId,i=n[a].descriptor.index;return dt(a,o)?e?i:i-1:e?i+1:i})({isMovingForward:e,destination:o,displaced:i.displaced,draggables:r,combine:c.combine,afterCritical:s});return null==u?null:ut({draggable:n,insideDestination:a,destination:o,viewport:l,last:i.displaced,displacedBy:i.displacedBy,index:u})})({isMovingForward:e,isInHomeList:u,draggable:t,draggables:r,destination:n,insideDestination:c,previousImpact:o,viewport:a,afterCritical:s});if(!d)return null;const p=vt({impact:d,draggable:t,droppable:n,draggables:r,afterCritical:s});if(Et({draggable:t,destination:n,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:wt({pageBorderBoxCenter:p,draggable:t,viewport:a}),impact:d,scrollJumpRequest:null};const f=De(p,i),m=(({impact:e,viewport:t,destination:n,draggables:r,maxScrollChange:o})=>{const a=bt(t,Ne(t.scroll.current,o)),i=n.frame?ze(n,Ne(n.frame.scroll.current,o)):n,l=e.displaced,s=st({afterDragging:yt(l.all,r),destination:n,displacedBy:e.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),c=st({afterDragging:yt(l.all,r),destination:i,displacedBy:e.displacedBy,viewport:t.frame,last:l,forceShouldAnimate:!1}),u={},d={},p=[l,s,c];return l.all.forEach((e=>{const t=function(e,t){for(let n=0;n<t.length;n++){const r=t[n].visible[e];if(r)return r}return null}(e,p);t?d[e]=t:u[e]=!0})),{...e,displaced:{all:l.all,invisible:u,visible:d}}})({impact:d,viewport:a,destination:n,draggables:r,maxScrollChange:f});return{clientSelection:l,impact:m,scrollJumpRequest:f}};const St=e=>{const t=e.subject.active;return t||ye(!1),t},kt=(e,t)=>{const n=e.page.borderBox.center;return dt(e.descriptor.id,t)?De(n,t.displacedBy.point):n},Ct=(e,t)=>{const n=e.page.borderBox;return dt(e.descriptor.id,t)?Me(n,Pe(t.displacedBy.point)):n};var _t=de((function(e,t){const n=t[e.line];return{value:n,point:Re(e.line,n)}}));const Ot=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Nt=(e,t,n)=>{const r=e.frame;Qe(t,e)&&ye(!1),e.subject.withPlaceholder&&ye(!1);const o=_t(e.axis,t.displaceBy).point,a=((e,t,n)=>{const r=e.axis;if("virtual"===e.descriptor.mode)return Re(r.line,t[r.line]);const o=e.subject.page.contentBox[r.size],a=Ve(e.descriptor.id,n).reduce(((e,t)=>e+t.client.marginBox[r.size]),0)+t[r.line]-o;return a<=0?null:Re(r.line,a)})(e,o,n),i={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const t=je({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame});return{...e,subject:t}}const l=a?Ne(r.scroll.max,a):r.scroll.max,s=Ot(r,l),c=je({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:s});return{...e,subject:c,frame:s}};var Dt=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},It=({state:e,type:t})=>{const n=((e,t)=>{const n=Dt(e);return n?t[n]:null})(e.impact,e.dimensions.droppables),r=Boolean(n),o=e.dimensions.droppables[e.critical.droppable.id],a=n||o,i=a.axis.direction,l="vertical"===i&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===i&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(l&&!r)return null;const s="MOVE_DOWN"===t||"MOVE_RIGHT"===t,c=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:d,droppables:p}=e.dimensions;return l?xt({isMovingForward:s,previousPageBorderBoxCenter:u,draggable:c,destination:a,draggables:d,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):(({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:n,isOver:r,draggables:o,droppables:a,viewport:i,afterCritical:l})=>{const s=(({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:r,viewport:o})=>{const a=n.subject.active;if(!a)return null;const i=n.axis,l=Ze(a[i.start],a[i.end]),s=We(r).filter((e=>e!==n)).filter((e=>e.isEnabled)).filter((e=>Boolean(e.subject.active))).filter((e=>et(o.frame)(St(e)))).filter((t=>{const n=St(t);return e?a[i.crossAxisEnd]<n[i.crossAxisEnd]:n[i.crossAxisStart]<a[i.crossAxisStart]})).filter((e=>{const t=St(e),n=Ze(t[i.start],t[i.end]);return l(t[i.start])||l(t[i.end])||n(a[i.start])||n(a[i.end])})).sort(((t,n)=>{const r=St(t)[i.crossAxisStart],o=St(n)[i.crossAxisStart];return e?r-o:o-r})).filter(((e,t,n)=>St(e)[i.crossAxisStart]===St(n[0])[i.crossAxisStart]));if(!s.length)return null;if(1===s.length)return s[0];const c=s.filter((e=>Ze(St(e)[i.start],St(e)[i.end])(t[i.line])));return 1===c.length?c[0]:c.length>1?c.sort(((e,t)=>St(e)[i.start]-St(t)[i.start]))[0]:s.sort(((e,n)=>{const r=Ae(t,Be(St(e))),o=Ae(t,Be(St(n)));return r!==o?r-o:St(e)[i.start]-St(n)[i.start]}))[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:a,viewport:i});if(!s)return null;const c=Ve(s.descriptor.id,o),u=(({pageBorderBoxCenter:e,viewport:t,destination:n,insideDestination:r,afterCritical:o})=>{const a=r.filter((e=>it({target:Ct(e,o),destination:n,viewport:t.frame,withDroppableDisplacement:!0}))).sort(((t,r)=>{const a=Te(e,ht(n,kt(t,o))),i=Te(e,ht(n,kt(r,o)));return a<i?-1:i<a?1:t.descriptor.index-r.descriptor.index}));return a[0]||null})({pageBorderBoxCenter:t,viewport:i,destination:s,insideDestination:c,afterCritical:l}),d=(({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:n,draggable:r,draggables:o,destination:a,viewport:i,afterCritical:l})=>{if(!t){if(n.length)return null;const e={displaced:Xe,displacedBy:Ye,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},t=vt({impact:e,draggable:r,droppable:a,draggables:o,afterCritical:l}),s=Qe(r,a)?a:Nt(a,r,o);return Et({draggable:r,destination:s,newPageBorderBoxCenter:t,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const s=Boolean(e[a.axis.line]<=t.page.borderBox.center[a.axis.line]),c=(()=>{const e=t.descriptor.index;return t.descriptor.id===r.descriptor.id||s?e:e+1})(),u=_t(a.axis,r.displaceBy);return ut({draggable:r,insideDestination:n,destination:a,viewport:i,displacedBy:u,last:Xe,index:c})})({previousPageBorderBoxCenter:t,destination:s,draggable:n,draggables:o,moveRelativeTo:u,insideDestination:c,viewport:i,afterCritical:l});if(!d)return null;const p=vt({impact:d,draggable:n,droppable:s,draggables:o,afterCritical:l});return{clientSelection:wt({pageBorderBoxCenter:p,draggable:n,viewport:i}),impact:d,scrollJumpRequest:null}})({isMovingForward:s,previousPageBorderBoxCenter:u,draggable:c,isOver:a,draggables:d,droppables:p,viewport:e.viewport,afterCritical:e.afterCritical})};function Pt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Rt(e){const t=Ze(e.top,e.bottom),n=Ze(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}const Tt=(e,t)=>Z(Me(e,t));function At({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var Lt=({pageOffset:e,draggable:t,draggables:n,droppables:r,previousImpact:o,viewport:a,afterCritical:i})=>{const l=Tt(t.page.borderBox,e),s=function({pageBorderBox:e,draggable:t,droppables:n}){const r=We(n).filter((t=>{if(!t.isEnabled)return!1;const n=t.subject.active;if(!n)return!1;if(o=n,!((r=e).left<o.right&&r.right>o.left&&r.top<o.bottom&&r.bottom>o.top))return!1;var r,o;if(Rt(n)(e.center))return!0;const a=t.axis,i=n.center[a.crossAxisLine],l=e[a.crossAxisStart],s=e[a.crossAxisEnd],c=Ze(n[a.crossAxisStart],n[a.crossAxisEnd]),u=c(l),d=c(s);return!u&&!d||(u?l<i:s>i)}));return r.length?1===r.length?r[0].descriptor.id:function({pageBorderBox:e,draggable:t,candidates:n}){const r=t.page.borderBox.center,o=n.map((t=>{const n=t.axis,o=Re(t.axis.line,e.center[n.line],t.page.borderBox.center[n.crossAxisLine]);return{id:t.descriptor.id,distance:Te(r,o)}})).sort(((e,t)=>t.distance-e.distance));return o[0]?o[0].id:null}({pageBorderBox:e,draggable:t,candidates:r}):null}({pageBorderBox:l,draggable:t,droppables:r});if(!s)return Je;const c=r[s],u=Ve(c.descriptor.id,n),d=((e,t)=>{const n=e.frame;return n?Tt(t,n.scroll.diff.value):t})(c,l);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:n,destination:r,insideDestination:o,afterCritical:a})=>{if(!r.isCombineEnabled)return null;const i=r.axis,l=_t(r.axis,e.displaceBy),s=l.value,c=t[i.start],u=t[i.end],d=Ke(e,o).find((e=>{const t=e.descriptor.id,r=e.page.borderBox,o=r[i.size]/4,l=dt(t,a),d=At({displaced:n.displaced,id:t});return l?d?u>r[i.start]+o&&u<r[i.end]-o:c>r[i.start]-s+o&&c<r[i.end]-s-o:d?u>r[i.start]+s+o&&u<r[i.end]+s-o:c>r[i.start]+o&&c<r[i.end]-o}));return d?{displacedBy:l,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:r.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:d,draggable:t,previousImpact:o,destination:c,insideDestination:u,afterCritical:i})||(({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:n,insideDestination:r,last:o,viewport:a,afterCritical:i})=>{const l=n.axis,s=_t(n.axis,t.displaceBy),c=s.value,u=e[l.start],d=e[l.end],p=function({draggable:e,closest:t,inHomeList:n}){return t?n&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:Ke(t,r).find((e=>{const t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=dt(t,i),a=At({displaced:o,id:t});return r?a?d<=n:u<n-c:a?d<=n+c:u<n}))||null,inHomeList:Qe(t,n)});return ut({draggable:t,insideDestination:r,destination:n,viewport:a,last:o,displacedBy:s,index:p})})({pageBorderBoxWithDroppableScroll:d,draggable:t,destination:c,insideDestination:u,last:o.displaced,viewport:a,afterCritical:i})},Mt=(e,t)=>({...e,[t.descriptor.id]:t});var Bt=({state:e,clientSelection:t,dimensions:n,viewport:r,impact:o,scrollJumpRequest:a})=>{const i=r||e.viewport,l=n||e.dimensions,s=t||e.current.client.selection,c=De(s,e.initial.client.selection),u={offset:c,selection:s,borderBoxCenter:Ne(e.initial.client.borderBoxCenter,c)},d={selection:Ne(u.selection,i.scroll.current),borderBoxCenter:Ne(u.borderBoxCenter,i.scroll.current),offset:Ne(u.offset,i.scroll.diff.value)},p={client:u,page:d};if("COLLECTING"===e.phase)return{...e,dimensions:l,viewport:i,current:p};const f=l.draggables[e.critical.draggable.id],m=o||Lt({pageOffset:d.offset,draggable:f,draggables:l.draggables,droppables:l.droppables,previousImpact:e.impact,viewport:i,afterCritical:e.afterCritical}),g=(({draggable:e,draggables:t,droppables:n,previousImpact:r,impact:o})=>{const a=(({previousImpact:e,impact:t,droppables:n})=>{const r=Dt(e),o=Dt(t);if(!r)return n;if(r===o)return n;const a=n[r];if(!a.subject.withPlaceholder)return n;const i=(e=>{const t=e.subject.withPlaceholder;t||ye(!1);const n=e.frame;if(!n){const t=je({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const r=t.oldFrameMaxScroll;r||ye(!1);const o=Ot(n,r),a=je({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:a,frame:o}})(a);return Mt(n,i)})({previousImpact:r,impact:o,droppables:n}),i=Dt(o);if(!i)return a;const l=n[i];if(Qe(e,l))return a;if(l.subject.withPlaceholder)return a;const s=Nt(l,e,t);return Mt(a,s)})({draggable:f,impact:m,previousImpact:e.impact,draggables:l.draggables,droppables:l.droppables});return{...e,current:p,dimensions:{draggables:l.draggables,droppables:g},impact:m,viewport:i,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null}},Ft=({impact:e,viewport:t,draggables:n,destination:r,forceShouldAnimate:o})=>{const a=e.displaced,i=function(e,t){return e.map((e=>t[e]))}(a.all,n),l=st({afterDragging:i,destination:r,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:a});return{...e,displaced:l}},jt=({impact:e,draggable:t,droppable:n,draggables:r,viewport:o,afterCritical:a})=>{const i=vt({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:a});return wt({pageBorderBoxCenter:i,draggable:t,viewport:o})},zt=({state:e,dimensions:t,viewport:n})=>{"SNAP"!==e.movementMode&&ye(!1);const r=e.impact,o=n||e.viewport,a=t||e.dimensions,{draggables:i,droppables:l}=a,s=i[e.critical.draggable.id],c=Dt(r);c||ye(!1);const u=l[c],d=Ft({impact:r,viewport:o,destination:u,draggables:i}),p=jt({impact:d,draggable:s,droppable:u,draggables:i,viewport:o,afterCritical:e.afterCritical});return Bt({impact:d,clientSelection:p,state:e,dimensions:a,viewport:o})},$t=({draggable:e,home:t,draggables:n,viewport:r})=>{const o=_t(t.axis,e.displaceBy),a=Ve(t.descriptor.id,n),i=a.indexOf(e);-1===i&&ye(!1);const l=a.slice(i+1),s=l.reduce(((e,t)=>(e[t.descriptor.id]=!0,e)),{}),c={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:s};var u;return{impact:{displaced:st({afterDragging:l,destination:t,displacedBy:o,last:null,viewport:r.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=e.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:c}};const Ut=e=>"SNAP"===e.movementMode,Wt=(e,t,n)=>{const r=((e,t)=>({draggables:e.draggables,droppables:Mt(e.droppables,t)}))(e.dimensions,t);return!Ut(e)||n?Bt({state:e,dimensions:r}):zt({state:e,dimensions:r})};function Ht(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const Vt={phase:"IDLE",completed:null,shouldFlush:!1};var Gt=(e=Vt,t)=>{if("FLUSH"===t.type)return{...Vt,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ye(!1);const{critical:n,clientSelection:r,viewport:o,dimensions:a,movementMode:i}=t.payload,l=a.draggables[n.draggable.id],s=a.droppables[n.droppable.id],c={selection:r,borderBoxCenter:l.client.borderBox.center,offset:Oe},u={client:c,page:{selection:Ne(c.selection,o.scroll.initial),borderBoxCenter:Ne(c.selection,o.scroll.initial),offset:Ne(c.selection,o.scroll.diff.value)}},d=We(a.droppables).every((e=>!e.isFixedOnPage)),{impact:p,afterCritical:f}=$t({draggable:l,home:s,draggables:a.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:i,dimensions:a,initial:u,current:u,isWindowScrollAllowed:d,impact:p,afterCritical:f,onLiftImpact:p,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ye(!1),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ye(!1),(({state:e,published:t})=>{const n=t.modified.map((t=>{const n=e.dimensions.droppables[t.droppableId];return ze(n,t.scroll)})),r={...e.dimensions.droppables,...$e(n)},o=Ue((({additions:e,updatedDroppables:t,viewport:n})=>{const r=n.scroll.diff.value;return e.map((e=>{const o=e.descriptor.droppableId,a=(e=>{const t=e.frame;return t||ye(!1),t})(t[o]),i=a.scroll.diff.value,l=(({draggable:e,offset:t,initialWindowScroll:n})=>{const r=ae(e.client,t),o=ie(r,n);return{...e,placeholder:{...e.placeholder,client:r},client:r,page:o}})({draggable:e,offset:Ne(r,i),initialWindowScroll:n.scroll.initial});return l}))})({additions:t.additions,updatedDroppables:r,viewport:e.viewport})),a={...e.dimensions.draggables,...o};t.removals.forEach((e=>{delete a[e]}));const i={droppables:r,draggables:a},l=Dt(e.impact),s=l?i.droppables[l]:null,c=i.draggables[e.critical.draggable.id],u=i.droppables[e.critical.droppable.id],{impact:d,afterCritical:p}=$t({draggable:c,home:u,draggables:a,viewport:e.viewport}),f=s&&s.isCombineEnabled?e.impact:d,m=Lt({pageOffset:e.current.page.offset,draggable:i.draggables[e.critical.draggable.id],draggables:i.draggables,droppables:i.droppables,previousImpact:f,viewport:e.viewport,afterCritical:p}),g={...e,phase:"DRAGGING",impact:m,onLiftImpact:d,dimensions:i,afterCritical:p,forceShouldAnimate:!1};return"COLLECTING"===e.phase?g:{...g,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Pt(e)||ye(!1);const{client:n}=t.payload;return Ie(n,e.current.client.selection)?e:Bt({state:e,clientSelection:n,impact:Ut(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Ht(e);if("COLLECTING"===e.phase)return Ht(e);Pt(e)||ye(!1);const{id:n,newScroll:r}=t.payload,o=e.dimensions.droppables[n];if(!o)return e;const a=ze(o,r);return Wt(e,a,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Pt(e)||ye(!1);const{id:n,isEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||ye(!1),o.isEnabled===r&&ye(!1);const a={...o,isEnabled:r};return Wt(e,a,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Pt(e)||ye(!1);const{id:n,isCombineEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||ye(!1),o.isCombineEnabled===r&&ye(!1);const a={...o,isCombineEnabled:r};return Wt(e,a,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Pt(e)||ye(!1),e.isWindowScrollAllowed||ye(!1);const n=t.payload.newScroll;if(Ie(e.viewport.scroll.current,n))return Ht(e);const r=bt(e.viewport,n);return Ut(e)?zt({state:e,viewport:r}):Bt({state:e,viewport:r})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Pt(e))return e;const n=t.payload.maxScroll;if(Ie(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ye(!1);const n=It({state:e,type:t.type});return n?Bt({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const n=t.payload.reason;return"COLLECTING"!==e.phase&&ye(!1),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if("DROP_ANIMATE"===t.type){const{completed:n,dropDuration:r,newHomeClientOffset:o}=t.payload;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ye(!1),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:o,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){const{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};const qt=e=>({type:"LIFT",payload:e}),Kt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),Qt=()=>({type:"COLLECTION_STARTING",payload:null}),Yt=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),Xt=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Jt=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Zt=e=>({type:"MOVE",payload:e}),en=()=>({type:"MOVE_UP",payload:null}),tn=()=>({type:"MOVE_DOWN",payload:null}),nn=()=>({type:"MOVE_RIGHT",payload:null}),rn=()=>({type:"MOVE_LEFT",payload:null}),on=()=>({type:"FLUSH",payload:null}),an=e=>({type:"DROP_COMPLETE",payload:e}),ln=e=>({type:"DROP",payload:e}),sn="cubic-bezier(.2,1,.1,1)",cn=0,un=.7,dn=.75,pn={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},fn=`${pn.outOfTheWay}s cubic-bezier(0.2, 0, 0, 1)`,mn={fluid:`opacity ${fn}`,snap:`transform ${fn}, opacity ${fn}`,drop:e=>{const t=`${e}s ${sn}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${fn}`,placeholder:`height ${fn}, width ${fn}, margin ${fn}`},gn=e=>Ie(e,Oe)?void 0:`translate(${e.x}px, ${e.y}px)`,hn=gn,vn=(e,t)=>{const n=gn(e);if(n)return t?`${n} scale(${dn})`:n},{minDropTime:bn,maxDropTime:yn}=pn,wn=yn-bn;var En=({getState:e,dispatch:t})=>n=>r=>{if("DROP"!==r.type)return void n(r);const o=e(),a=r.payload.reason;if("COLLECTING"===o.phase)return void t((i={reason:a},{type:"DROP_PENDING",payload:i}));var i;if("IDLE"===o.phase)return;"DROP_PENDING"===o.phase&&o.isWaiting&&ye(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ye(!1);const l=o.critical,s=o.dimensions,c=s.draggables[o.critical.draggable.id],{impact:u,didDropInsideDroppable:d}=(({draggables:e,reason:t,lastImpact:n,home:r,viewport:o,onLiftImpact:a})=>n.at&&"DROP"===t?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:Xe},didDropInsideDroppable:!0}:{impact:Ft({draggables:e,impact:a,destination:r,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1})({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),p=d?Ge(u):null,f=d?qe(u):null,m={index:l.draggable.index,droppableId:l.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:p,combine:f},h=(({impact:e,draggable:t,dimensions:n,viewport:r,afterCritical:o})=>{const{draggables:a,droppables:i}=n,l=Dt(e),s=l?i[l]:null,c=i[t.descriptor.droppableId],u=jt({impact:e,draggable:t,draggables:a,afterCritical:o,droppable:s||c,viewport:r});return De(u,t.client.borderBox.center)})({impact:u,draggable:c,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),v={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:u};if(Ie(o.current.client.offset,h)&&!Boolean(g.combine))return void t(an({completed:v}));const b=(({current:e,destination:t,reason:n})=>{const r=Te(e,t);if(r<=0)return bn;if(r>=1500)return yn;const o=bn+wn*(r/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))})({current:o.current.client.offset,destination:h,reason:a});t((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:h,dropDuration:b,completed:v}))},xn=()=>({x:window.pageXOffset,y:window.pageYOffset});var Sn=e=>{const t=function({onWindowScroll:e}){const t=pe((function(){e(xn())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let r=me;function o(){return r!==me}return{start:function(){o()&&ye(!1),r=ge(window,[n])},stop:function(){o()||ye(!1),t.cancel(),r(),r=me},isActive:o}}({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>n=>{t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&(e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(n)&&t.stop(),e(n)}};const kn=(e,t)=>{t()},Cn=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function _n(e,t,n,r){if(!e)return void n(r(t));const o=(e=>{let t=!1,n=!1;const r=setTimeout((()=>{n=!0})),o=o=>{t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=()=>t,o})(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}var On=(e,t)=>{const n=((e,t)=>{const n=(()=>{const e=[];return{add:t=>{const n=setTimeout((()=>(t=>{const n=e.findIndex((e=>e.timerId===t));-1===n&&ye(!1);const[r]=e.splice(n,1);r.callback()})(n))),r={timerId:n,callback:t};e.push(r)},flush:()=>{if(!e.length)return;const t=[...e];e.length=0,t.forEach((e=>{clearTimeout(e.timerId),e.callback()}))}}})();let r=null;const o=n=>{r||ye(!1),r=null,kn(0,(()=>_n(e().onDragEnd,n,t,_e.onDragEnd)))};return{beforeCapture:(t,n)=>{r&&ye(!1),kn(0,(()=>{const r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:(t,n)=>{r&&ye(!1),kn(0,(()=>{const r=e().onBeforeDragStart;r&&r(Cn(t,n))}))},start:(o,a)=>{r&&ye(!1);const i=Cn(o,a);r={mode:a,lastCritical:o,lastLocation:i.source,lastCombine:null},n.add((()=>{kn(0,(()=>_n(e().onDragStart,i,t,_e.onDragStart)))}))},update:(o,a)=>{const i=Ge(a),l=qe(a);r||ye(!1);const s=!((e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r})(o,r.lastCritical);s&&(r.lastCritical=o);const c=(d=i,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));var u,d;c&&(r.lastLocation=i);const p=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(r.lastCombine,l);if(p&&(r.lastCombine=l),!s&&!c&&!p)return;const f={...Cn(o,r.mode),combine:l,destination:i};n.add((()=>{kn(0,(()=>_n(e().onDragUpdate,f,t,_e.onDragUpdate)))}))},flush:()=>{r||ye(!1),n.flush()},drop:o,abort:()=>{if(!r)return;const e={...Cn(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};o(e)}}})(e,t);return e=>t=>r=>{if("BEFORE_INITIAL_CAPTURE"===r.type)return void n.beforeCapture(r.payload.draggableId,r.payload.movementMode);if("INITIAL_PUBLISH"===r.type){const e=r.payload.critical;return n.beforeStart(e,r.payload.movementMode),t(r),void n.start(e,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){const e=r.payload.completed.result;return n.flush(),t(r),void n.drop(e)}if(t(r),"FLUSH"===r.type)return void n.abort();const o=e.getState();"DRAGGING"===o.phase&&n.update(o.critical,o.impact)}},Nn=e=>t=>n=>{if("DROP_ANIMATION_FINISHED"!==n.type)return void t(n);const r=e.getState();"DROP_ANIMATING"!==r.phase&&ye(!1),e.dispatch(an({completed:r.completed}))},Dn=e=>{let t=null,n=null;return r=>o=>{if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"!==o.type)return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((()=>{n=null,t=ge(window,[a])}))}},In=e=>t=>n=>{if(t(n),"PUBLISH_WHILE_DRAGGING"!==n.type)return;const r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(ln({reason:r.reason})))};const Pn=g;var Rn=({dimensionMarshal:e,focusMarshal:t,styleMarshal:n,getResponders:r,announce:o,autoScroller:a})=>{return p(Gt,Pn(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(s(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return r=g.apply(void 0,a)(n.dispatch),l(l({},n),{},{dispatch:r})}}}((i=n,()=>e=>t=>{"INITIAL_PUBLISH"===t.type&&i.dragging(),"DROP_ANIMATE"===t.type&&i.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||i.resting(),e(t)}),(e=>()=>t=>n=>{"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)})(e),(e=>({getState:t,dispatch:n})=>r=>o=>{if("LIFT"!==o.type)return void r(o);const{id:a,clientSelection:i,movementMode:l}=o.payload,s=t();"DROP_ANIMATING"===s.phase&&n(an({completed:s.completed})),"IDLE"!==t().phase&&ye(!1),n(on()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});const c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},{critical:u,dimensions:d,viewport:p}=e.startPublishing(c);n({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:d,clientSelection:i,movementMode:l,viewport:p}})})(e),En,Nn,Dn,In,(e=>t=>n=>r=>{if((e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);const o=t.getState();return"DRAGGING"!==o.phase&&ye(!1),void e.start(o)}n(r),e.scroll(t.getState())})(a),Sn,(e=>{let t=!1;return()=>n=>r=>{if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;const n=r.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),On(r,o))));var i},Tn=({scrollHeight:e,scrollWidth:t,height:n,width:r})=>{const o=De({x:t,y:e},{x:r,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},An=()=>{const e=document.documentElement;return e||ye(!1),e},Ln=()=>{const e=An();return Tn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Mn(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Bn=(e,t)=>{let n=null;const r=function({registry:e,callbacks:t}){let n={additions:{},removals:{},modified:{}},r=null;const o=()=>{r||(t.collectionStarting(),r=requestAnimationFrame((()=>{r=null;const{additions:o,removals:a,modified:i}=n,l=Object.keys(o).map((t=>e.draggable.getById(t).getDimension(Oe))).sort(((e,t)=>e.descriptor.index-t.descriptor.index)),s=Object.keys(i).map((t=>({droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()}))),c={additions:l,removals:Object.keys(a),modified:s};n={additions:{},removals:{},modified:{}},t.publish(c)})))};return{add:e=>{const t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],o()},remove:e=>{const t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],o()},stop:()=>{r&&(cancelAnimationFrame(r),r=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=t=>{n||ye(!1);const o=n.critical.draggable;"ADDITION"===t.type&&Mn(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Mn(e,o,t.value)&&r.remove(t.value)},a={updateDroppableIsEnabled:(r,o)=>{e.droppable.exists(r)||ye(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:(r,o)=>{n&&(e.droppable.exists(r)||ye(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:(t,r)=>{n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:(r,o)=>{n&&(e.droppable.exists(r)||ye(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:t=>{n&&ye(!1);const r=e.draggable.getById(t.draggableId),a=e.droppable.getById(r.descriptor.droppableId),i={draggable:r.descriptor,droppable:a.descriptor},l=e.subscribe(o);return n={critical:i,unsubscribe:l},(({critical:e,scrollOptions:t,registry:n})=>{const r=(()=>{const e=xn(),t=Ln(),n=e.y,r=e.x,o=An(),a=o.clientWidth,i=o.clientHeight;return{frame:Z({top:n,left:r,right:r+a,bottom:n+i}),scroll:{initial:e,current:e,max:t,diff:{value:Oe,displacement:Oe}}}})(),o=r.scroll.current,a=e.droppable,i=n.droppable.getAllByType(a.type).map((e=>e.callbacks.getDimensionAndWatchScroll(o,t))),l=n.draggable.getAllByType(e.draggable.type).map((e=>e.getDimension(o)));return{dimensions:{draggables:Ue(l),droppables:$e(i)},critical:e,viewport:r}})({critical:i,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!n)return;r.stop();const t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((e=>e.callbacks.dragStopped())),n.unsubscribe(),n=null}};return a},Fn=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason,jn=e=>{window.scrollBy(e.x,e.y)};const zn=de((e=>We(e).filter((e=>!!e.isEnabled&&!!e.frame))));const $n={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Un=({startOfRange:e,endOfRange:t,current:n})=>{const r=t-e;return 0===r?0:(n-e)/r},Wn=({distanceToEdge:e,thresholds:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:o})=>{const a=((e,t,n=()=>$n)=>{const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const o=1-Un({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=r.maxPixelScroll*r.ease(o);return Math.ceil(a)})(e,t,o);return 0===a?0:r?Math.max(((e,t,n)=>{const r=n(),o=r.durationDampening.accelerateAt,a=r.durationDampening.stopDampeningAt,i=t,l=a,s=Date.now()-i;if(s>=a)return e;if(s<o)return 1;const c=Un({startOfRange:o,endOfRange:l,current:s}),u=e*r.ease(c);return Math.ceil(u)})(a,n,o),1):a},Hn=({container:e,distanceToEdges:t,dragStartTime:n,axis:r,shouldUseTimeDampening:o,getAutoScrollerOptions:a})=>{const i=((e,t,n=()=>$n)=>{const r=n();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}})(e,r,a);return t[r.end]<t[r.start]?Wn({distanceToEdge:t[r.end],thresholds:i,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:a}):-1*Wn({distanceToEdge:t[r.start],thresholds:i,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:a})};const Vn=Le((e=>0===e?0:e));var Gn=({dragStartTime:e,container:t,subject:n,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:a})=>{const i={top:r.y-t.top,right:t.right-r.x,bottom:t.bottom-r.y,left:r.x-t.left},l=Hn({container:t,distanceToEdges:i,dragStartTime:e,axis:nt,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),s=Hn({container:t,distanceToEdges:i,dragStartTime:e,axis:rt,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),c=Vn({x:s,y:l});if(Ie(c,Oe))return null;const u=(({container:e,subject:t,proposedScroll:n})=>{const r=t.height>e.height,o=t.width>e.width;return o||r?o&&r?null:{x:o?0:n.x,y:r?0:n.y}:n})({container:t,subject:n,proposedScroll:c});return u?Ie(u,Oe)?null:u:null};const qn=Le((e=>0===e?0:e>0?1:-1)),Kn=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return({current:t,max:n,change:r})=>{const o=Ne(t,r),a={x:e(o.x,n.x),y:e(o.y,n.y)};return Ie(a,Oe)?null:a}})(),Qn=({max:e,current:t,change:n})=>{const r={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=qn(n),a=Kn({max:r,current:t,change:o});return!a||0!==o.x&&0===a.x||0!==o.y&&0===a.y},Yn=(e,t)=>Qn({current:e.scroll.current,max:e.scroll.max,change:t}),Xn=(e,t)=>{const n=e.frame;return!!n&&Qn({current:n.scroll.current,max:n.scroll.max,change:t})};var Jn=({state:e,dragStartTime:t,shouldUseTimeDampening:n,scrollWindow:r,scrollDroppable:o,getAutoScrollerOptions:a})=>{const i=e.current.page.borderBoxCenter,l=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const o=(({viewport:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:a})=>{const i=Gn({dragStartTime:r,container:e.frame,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return i&&Yn(e,i)?i:null})({dragStartTime:t,viewport:e.viewport,subject:l,center:i,shouldUseTimeDampening:n,getAutoScrollerOptions:a});if(o)return void r(o)}const s=(({center:e,destination:t,droppables:n})=>{if(t){const e=n[t];return e.frame?e:null}const r=((e,t)=>{const n=zn(t).find((t=>(t.frame||ye(!1),Rt(t.frame.pageMarginBox)(e))))||null;return n})(e,n);return r})({center:i,destination:Dt(e.impact),droppables:e.dimensions.droppables});if(!s)return;const c=(({droppable:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:a})=>{const i=e.frame;if(!i)return null;const l=Gn({dragStartTime:r,container:i.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return l&&Xn(e,l)?l:null})({dragStartTime:t,droppable:s,subject:l,center:i,shouldUseTimeDampening:n,getAutoScrollerOptions:a});c&&o(s.descriptor.id,c)},Zn=({move:e,scrollDroppable:t,scrollWindow:n})=>r=>{const o=r.scrollJumpRequest;if(!o)return;const a=Dt(r.impact);a||ye(!1);const i=((e,n)=>{if(!Xn(e,n))return n;const r=((e,t)=>{const n=e.frame;return n&&Xn(e,t)?Kn({current:n.scroll.current,max:n.scroll.max,change:t}):null})(e,n);if(!r)return t(e.descriptor.id,n),null;const o=De(n,r);return t(e.descriptor.id,o),De(n,o)})(r.dimensions.droppables[a],o);if(!i)return;const l=r.viewport,s=((e,t,r)=>{if(!e)return r;if(!Yn(t,r))return r;const o=((e,t)=>{if(!Yn(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return Kn({current:r,max:n,change:t})})(t,r);if(!o)return n(r),null;const a=De(r,o);return n(a),De(r,a)})(r.isWindowScrollAllowed,l,i);s&&((t,n)=>{const r=Ne(t.current.client.selection,n);e({client:r})})(r,s)},er=({scrollDroppable:e,scrollWindow:t,move:n,getAutoScrollerOptions:r})=>{const o=(({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:n=()=>$n})=>{const r=pe(e),o=pe(t);let a=null;const i=e=>{a||ye(!1);const{shouldUseTimeDampening:t,dragStartTime:i}=a;Jn({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:i,shouldUseTimeDampening:t,getAutoScrollerOptions:n})};return{start:e=>{a&&ye(!1);const t=Date.now();let r=!1;const o=()=>{r=!0};Jn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o,getAutoScrollerOptions:n}),a={dragStartTime:t,shouldUseTimeDampening:r},r&&i(e)},stop:()=>{a&&(r.cancel(),o.cancel(),a=null)},scroll:i}})({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:r}),a=Zn({move:n,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{r().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}};const tr="data-rfd",nr=(()=>{const e=`${tr}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),rr=(()=>{const e=`${tr}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),or=(()=>{const e=`${tr}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),ar={contextId:`${tr}-scroll-container-context-id`},ir=(e,t)=>e.map((e=>{const n=e.styles[t];return n?`${e.selector} { ${n} }`:""})).join(" ");var lr=e=>{const t=(e=>t=>`[${t}="${e}"]`)(e),n=(()=>{const e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(nr.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),r=[(()=>{const e=`\n transition: ${mn.outOfTheWay};\n `;return{selector:t(rr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),n,{selector:t(or.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:ir(r,"always"),resting:ir(r,"resting"),dragging:ir(r,"dragging"),dropAnimating:ir(r,"dropAnimating"),userCancel:ir(r,"userCancel")}},sr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;const cr=()=>{const e=document.querySelector("head");return e||ye(!1),e},ur=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function dr(e,t){return Array.from(e.querySelectorAll(t))}var pr=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function fr(e){return e instanceof pr(e).HTMLElement}function mr(){const e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((t=>t(e)))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:(t,n)=>{const r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const o=t.descriptor.id,a=r(o);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[o],e.droppables[t.descriptor.droppableId]&&n({type:"REMOVAL",value:t}))},getById:function(e){const t=r(e);return t||ye(!1),t},findById:r,exists:e=>Boolean(r(e)),getAllByType:t=>Object.values(e.draggables).filter((e=>e.descriptor.type===t))},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{const n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=o(e);return t||ye(!1),t},findById:o,exists:e=>Boolean(o(e)),getAllByType:t=>Object.values(e.droppables).filter((e=>e.descriptor.type===t))},subscribe:function(e){return t.push(e),function(){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var gr=e.createContext(null),hr=()=>{const e=document.body;return e||ye(!1),e},vr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};const br=e=>`rfd-announcement-${e}`,yr={separator:"::"};var wr=function(t,n=yr){const r=e.useId();return X((()=>`${t}${n.separator}${r}`),[n.separator,t,r])},Er=e.createContext(null);function xr(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t})),n}function Sr(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const kr=9,Cr=13,_r=33,Or=34,Nr=35,Dr=36,Ir={[Cr]:!0,[kr]:!0};var Pr=e=>{Ir[e.keyCode]&&e.preventDefault()},Rr=(()=>{const e="visibilitychange";return"undefined"==typeof document?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find((e=>`on${e}`in document))||e})();const Tr={type:"IDLE"};function Ar(){}const Lr={[Or]:!0,[_r]:!0,[Dr]:!0,[Nr]:!0};const Mr={type:"IDLE"},Br=["input","button","textarea","select","option","optgroup","video","audio"];function Fr(e,t){if(null==t)return!1;if(Br.includes(t.tagName.toLowerCase()))return!0;const n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Fr(e,t.parentElement)}function jr(e,t){const n=t.target;return!!fr(n)&&Fr(e,n)}var zr=e=>Z(e.getBoundingClientRect()).center;const $r=(()=>{const e="matches";return"undefined"==typeof document?e:[e,"msMatchesSelector","webkitMatchesSelector"].find((e=>e in Element.prototype))||e})();function Ur(e,t){return null==e?null:e[$r](t)?e:Ur(e.parentElement,t)}function Wr(e,t){return e.closest?e.closest(t):Ur(e,t)}function Hr(e){e.preventDefault()}function Vr({expected:e,phase:t,isLockActive:n,shouldWarn:r}){return!!n()&&e===t}function Gr({lockAPI:e,store:t,registry:n,draggableId:r}){if(e.isClaimed())return!1;const o=n.draggable.findById(r);return!!o&&!!o.options.isEnabled&&!!Fn(t.getState(),r)}const qr=[function(t){const n=(0,e.useRef)(Tr),r=(0,e.useRef)(me),o=X((()=>({eventName:"mousedown",fn:function(e){if(e.defaultPrevented)return;if(0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;const n=t.findClosestDraggableId(e);if(!n)return;const o=t.tryGetLock(n,l,{sourceEvent:e});if(!o)return;e.preventDefault();const a={x:e.clientX,y:e.clientY};r.current(),u(o,a)}})),[t]),a=X((()=>({eventName:"webkitmouseforcewillbegin",fn:e=>{if(e.defaultPrevented)return;const n=t.findClosestDraggableId(e);if(!n)return;const r=t.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||t.canGetLock(n)&&e.preventDefault())}})),[t]),i=J((function(){r.current=ge(window,[a,o],{passive:!1,capture:!0})}),[a,o]),l=J((()=>{"IDLE"!==n.current.type&&(n.current=Tr,r.current(),i())}),[i]),s=J((()=>{const e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=J((function(){const e=function({cancel:e,completed:t,getPhase:n,setPhase:r}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:o,clientY:a}=e;if(0!==t)return;const i={x:o,y:a},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(i);if("PENDING"!==l.type&&ye(!1),s=l.point,c=i,!(Math.abs(c.x-s.x)>=5||Math.abs(c.y-s.y)>=5))return;var s,c;e.preventDefault();const u=l.actions.fluidLift(i);r({type:"DRAGGING",actions:u})}},{eventName:"mouseup",fn:r=>{const o=n();"DRAGGING"===o.type?(r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===n().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{if("PENDING"!==n().type)return 27===t.keyCode?(t.preventDefault(),void e()):void Pr(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===n().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{const r=n();"IDLE"===r.type&&ye(!1),r.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:Rr,fn:e}]}({cancel:s,completed:l,getPhase:()=>n.current,setPhase:e=>{n.current=e}});r.current=ge(window,e,{capture:!0,passive:!1})}),[s,l]),u=J((function(e,t){"IDLE"!==n.current.type&&ye(!1),n.current={type:"PENDING",point:t,actions:e},c()}),[c]);sr((function(){return i(),function(){r.current()}}),[i])},function(t){const n=(0,e.useRef)(Ar),r=X((()=>({eventName:"keydown",fn:function(e){if(e.defaultPrevented)return;if(32!==e.keyCode)return;const r=t.findClosestDraggableId(e);if(!r)return;const a=t.tryGetLock(r,s,{sourceEvent:e});if(!a)return;e.preventDefault();let i=!0;const l=a.snapLift();function s(){i||ye(!1),i=!1,n.current(),o()}n.current(),n.current=ge(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:r=>27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Lr[r.keyCode]?r.preventDefault():Pr(r))},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Rr,fn:n}]}(l,s),{capture:!0,passive:!1})}})),[t]),o=J((function(){n.current=ge(window,[r],{passive:!1,capture:!0})}),[r]);sr((function(){return o(),function(){n.current()}}),[o])},function(t){const n=(0,e.useRef)(Mr),r=(0,e.useRef)(me),o=J((function(){return n.current}),[]),a=J((function(e){n.current=e}),[]),i=X((()=>({eventName:"touchstart",fn:function(e){if(e.defaultPrevented)return;const n=t.findClosestDraggableId(e);if(!n)return;const o=t.tryGetLock(n,s,{sourceEvent:e});if(!o)return;const a=e.touches[0],{clientX:i,clientY:l}=a,c={x:i,y:l};r.current(),p(o,c)}})),[t]),l=J((function(){r.current=ge(window,[i],{capture:!0,passive:!1})}),[i]),s=J((()=>{const e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(Mr),r.current(),l())}),[l,a]),c=J((()=>{const e=n.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),u=J((function(){const e={capture:!0,passive:!1},t={cancel:c,completed:s,getPhase:o},n=ge(window,function({cancel:e,completed:t,getPhase:n}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const r=n();if("DRAGGING"!==r.type)return void e();r.hasMoved=!0;const{clientX:o,clientY:a}=t.touches[0],i={x:o,y:a};t.preventDefault(),r.actions.move(i)}},{eventName:"touchend",fn:r=>{const o=n();"DRAGGING"===o.type?(r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"touchcancel",fn:t=>{"DRAGGING"===n().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:t=>{const r=n();"IDLE"===r.type&&ye(!1);const o=t.touches[0];if(!o)return;if(!(o.force>=.15))return;const a=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return a?r.hasMoved?void t.preventDefault():void e():void t.preventDefault();a&&e()}},{eventName:Rr,fn:e}]}(t),e),a=ge(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:n=>{"DRAGGING"===t().type?(27===n.keyCode&&n.preventDefault(),e()):e()}},{eventName:Rr,fn:e}]}(t),e);r.current=function(){n(),a()}}),[c,o,s]),d=J((function(){const e=o();"PENDING"!==e.type&&ye(!1);const t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,a]),p=J((function(e,t){"IDLE"!==o().type&&ye(!1);const n=setTimeout(d,120);a({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,a,d]);sr((function(){return l(),function(){r.current();const e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(Mr))}}),[o,l,a]),sr((function(){return ge(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])}),[])}];function Kr({contextId:t,store:n,registry:r,customSensors:o,enableDefaultSensors:a}){const i=[...a?qr:[],...o||[]],l=(0,e.useState)((()=>function(){let e=null;function t(){e||ye(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ye(!1);const n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()))[0],s=J((function(e,t){Sr(e)&&!Sr(t)&&l.tryAbandon()}),[l]);sr((function(){let e=n.getState();return n.subscribe((()=>{const t=n.getState();s(e,t),e=t}))}),[l,n,s]),sr((()=>l.tryAbandon),[l.tryAbandon]);const c=J((e=>Gr({lockAPI:l,registry:r,store:n,draggableId:e})),[l,r,n]),u=J(((e,o,a)=>function({lockAPI:e,contextId:t,store:n,registry:r,draggableId:o,forceSensorStop:a,sourceEvent:i}){if(!Gr({lockAPI:e,store:n,registry:r,draggableId:o}))return null;const l=r.draggable.getById(o),s=function(e,t){const n=`[${rr.contextId}="${e}"]`,r=dr(document,n).find((e=>e.getAttribute(rr.id)===t));return r&&fr(r)?r:null}(t,l.descriptor.id);if(!s)return null;if(i&&!l.options.canDragInteractiveElements&&jr(s,i))return null;const c=e.claim(a||me);let u="PRE_DRAG";function d(){return l.options.shouldRespectForcePress}function p(){return e.isActive(c)}const f=function(e,t){Vr({expected:e,phase:u,isLockActive:p,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function m(t){function r(){e.release(),u="COMPLETED"}function o(e,o={shouldBlockNextClick:!1}){if(t.cleanup(),o.shouldBlockNextClick){const e=ge(window,[{eventName:"click",fn:Hr,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}r(),n.dispatch(ln({reason:e}))}return"PRE_DRAG"!==u&&(r(),ye(!1)),n.dispatch(qt(t.liftActionArgs)),u="DRAGGING",{isActive:()=>Vr({expected:"DRAGGING",phase:u,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:d,drop:e=>o("DROP",e),cancel:e=>o("CANCEL",e),...t.actions}}const g={isActive:()=>Vr({expected:"PRE_DRAG",phase:u,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:d,fluidLift:function(e){const t=pe((e=>{f((()=>Zt({client:e})))}));return{...m({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>f(en),moveRight:()=>f(nn),moveDown:()=>f(tn),moveLeft:()=>f(rn)};return m({liftActionArgs:{id:o,clientSelection:zr(s),movementMode:"SNAP"},cleanup:me,actions:e})},abort:function(){Vr({expected:"PRE_DRAG",phase:u,isLockActive:p,shouldWarn:!0})&&e.release()}};return g}({lockAPI:l,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o||null,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})),[t,l,r,n]),d=J((e=>function(e,t){const n=function(e,t){const n=t.target;if(!((r=n)instanceof pr(r).Element))return null;var r;const o=function(e){return`[${nr.contextId}="${e}"]`}(e),a=Wr(n,o);return a&&fr(a)?a:null}(e,t);return n?n.getAttribute(nr.draggableId):null}(t,e)),[t]),p=J((e=>{const t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),f=J((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(on()))}),[l,n]),m=J((()=>l.isClaimed()),[l]),g=X((()=>({canGetLock:c,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:f,isLockClaimed:m})),[c,u,d,p,f,m]);for(let e=0;e<i.length;e++)i[e](g)}const Qr=t=>({onBeforeCapture:n=>{const o=()=>{t.onBeforeCapture&&t.onBeforeCapture(n)};e.version.startsWith("16")||e.version.startsWith("17")?o():(0,r.flushSync)(o)},onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}),Yr=e=>({...$n,...e.autoScrollerOptions,durationDampening:{...$n.durationDampening,...e.autoScrollerOptions}});function Xr(e){return e.current||ye(!1),e.current}function Jr(t){const{contextId:n,setCallbacks:r,sensors:o,nonce:a,dragHandleUsageInstructions:i}=t,l=(0,e.useRef)(null),s=xr(t),c=J((()=>Qr(s.current)),[s]),u=J((()=>Yr(s.current)),[s]),d=function(t){const n=X((()=>br(t)),[t]),r=(0,e.useRef)(null);return(0,e.useEffect)((function(){const e=document.createElement("div");return r.current=e,e.id=n,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),C(e.style,vr),hr().appendChild(e),function(){setTimeout((function(){const t=hr();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[n]),J((e=>{const t=r.current;t&&(t.textContent=e)}),[])}(n),p=function({contextId:t,text:n}){const r=wr("hidden-text",{separator:"-"}),o=X((()=>function({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}({contextId:t,uniqueId:r})),[r,t]);return(0,e.useEffect)((function(){const e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",hr().appendChild(e),function(){const t=hr();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:n,text:i}),f=function(t,n){const r=X((()=>lr(t)),[t]),o=(0,e.useRef)(null),a=(0,e.useRef)(null),i=J(de((e=>{const t=a.current;t||ye(!1),t.textContent=e})),[]),l=J((e=>{const t=o.current;t||ye(!1),t.textContent=e}),[]);sr((()=>{(o.current||a.current)&&ye(!1);const e=ur(n),s=ur(n);return o.current=e,a.current=s,e.setAttribute(`${tr}-always`,t),s.setAttribute(`${tr}-dynamic`,t),cr().appendChild(e),cr().appendChild(s),l(r.always),i(r.resting),()=>{const e=e=>{const t=e.current;t||ye(!1),cr().removeChild(t),e.current=null};e(o),e(a)}}),[n,l,i,r.always,r.resting,t]);const s=J((()=>i(r.dragging)),[i,r.dragging]),c=J((e=>{i("DROP"!==e?r.userCancel:r.dropAnimating)}),[i,r.dropAnimating,r.userCancel]),u=J((()=>{a.current&&i(r.resting)}),[i,r.resting]);return X((()=>({dragging:s,dropping:c,resting:u})),[s,c,u])}(n,a),g=J((e=>{Xr(l).dispatch(e)}),[]),h=X((()=>m({publishWhileDragging:Kt,updateDroppableScroll:Yt,updateDroppableIsEnabled:Xt,updateDroppableIsCombineEnabled:Jt,collectionStarting:Qt},g)),[g]),v=function(){const t=X(mr,[]);return(0,e.useEffect)((()=>function(){e.version.startsWith("16")||e.version.startsWith("17")?requestAnimationFrame(t.clean):t.clean()}),[t]),t}(),b=X((()=>Bn(v,h)),[v,h]),y=X((()=>er({scrollWindow:jn,scrollDroppable:b.scrollDroppable,getAutoScrollerOptions:u,...m({move:Zt},g)})),[b.scrollDroppable,g,u]),w=function(t){const n=(0,e.useRef)({}),r=(0,e.useRef)(null),o=(0,e.useRef)(null),a=(0,e.useRef)(!1),i=J((function(e,t){const r={id:e,focus:t};return n.current[e]=r,function(){const t=n.current;t[e]!==r&&delete t[e]}}),[]),l=J((function(e){const n=function(e,t){const n=`[${nr.contextId}="${e}"]`,r=dr(document,n);if(!r.length)return null;const o=r.find((e=>e.getAttribute(nr.draggableId)===t));return o&&fr(o)?o:null}(t,e);n&&n!==document.activeElement&&n.focus()}),[t]),s=J((function(e,t){r.current===e&&(r.current=t)}),[]),c=J((function(){o.current||a.current&&(o.current=requestAnimationFrame((()=>{o.current=null;const e=r.current;e&&l(e)})))}),[l]),u=J((function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(nr.draggableId)===e&&(r.current=e)}),[]);return sr((()=>(a.current=!0,function(){a.current=!1;const e=o.current;e&&cancelAnimationFrame(e)})),[]),X((()=>({register:i,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:s})),[i,u,c,s])}(n),E=X((()=>Rn({announce:d,autoScroller:y,dimensionMarshal:b,focusMarshal:w,getResponders:c,styleMarshal:f})),[d,y,b,w,c,f]);l.current=E;const x=J((()=>{const e=Xr(l);"IDLE"!==e.getState().phase&&e.dispatch(on())}),[]),S=J((()=>{const e=Xr(l).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging}),[]);r(X((()=>({isDragging:S,tryAbort:x})),[S,x]));const k=J((e=>Fn(Xr(l).getState(),e)),[]),_=J((()=>Pt(Xr(l).getState())),[]),O=X((()=>({marshal:b,focus:w,contextId:n,canLift:k,isMovementAllowed:_,dragHandleUsageInstructionsId:p,registry:v})),[n,b,p,w,k,_,v]);return Kr({contextId:n,store:E,registry:v,customSensors:o||null,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,e.useEffect)((()=>x),[x]),e.createElement(Er.Provider,{value:O},e.createElement(K,{context:gr,store:E},t.children))}var Zr=function(){return e.useId()};function eo(t){const n=Zr(),r=t.dragHandleUsageInstructions||_e.dragHandleUsageInstructions;return e.createElement(we,null,(o=>e.createElement(Jr,{nonce:t.nonce,contextId:n,setCallbacks:o,dragHandleUsageInstructions:r,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd,autoScrollerOptions:t.autoScrollerOptions},t.children)))}const to=5e3,no=4500,ro=(e,t)=>t?mn.drop(t.duration):e?mn.snap:mn.fluid,oo=(e,t)=>{if(e)return t?cn:un};var ao=e.createContext(null);function io(t){const n=(0,e.useContext)(t);return n||ye(!1),n}function lo(e){e.preventDefault()}var so=(e,t)=>e===t,co=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};function uo(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const po={mapped:{type:"SECONDARY",offset:Oe,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:uo(null)}},fo=q((()=>{const e=function(){const e=de(((e,t)=>({x:e,y:t}))),t=de(((e,t,n=null,r=null,o=null)=>({isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}))),n=de(((e,n,r,o,a=null,i=null,l=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:i,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,a,i,null)}})));return(r,o)=>{if(Sr(r)){if(r.critical.draggable.id!==o.draggableId)return null;const t=r.current.client.offset,i=r.dimensions.draggables[o.draggableId],l=Dt(r.impact),s=(a=r.impact).at&&"COMBINE"===a.at.type?a.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(t.x,t.y),r.movementMode,i,o.isClone,l,s,c)}var a;if("DROP_ANIMATING"===r.phase){const e=r.completed;if(e.result.draggableId!==o.draggableId)return null;const n=o.isClone,a=r.dimensions.draggables[o.draggableId],i=e.result,l=i.mode,s=co(i),c=(e=>e.combine?e.combine.draggableId:null)(i),u={duration:r.dropDuration,curve:sn,moveTo:r.newHomeClientOffset,opacity:c?cn:null,scale:c?dn:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:a,dropping:u,draggingOver:s,combineWith:c,mode:l,forceShouldAnimate:null,snapshot:t(l,n,s,c,u)}}}return null}}(),t=function(){const e=de(((e,t)=>({x:e,y:t}))),t=de(uo),n=de(((e,n=null,r)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}))),r=e=>e?n(Oe,e,!0):null,o=(t,o,a,i)=>{const l=a.displaced.visible[t],s=Boolean(i.inVirtualList&&i.effected[t]),c=qe(a),u=c&&c.draggableId===t?o:null;if(!l){if(!s)return r(u);if(a.displaced.invisible[t])return null;const o=Pe(i.displacedBy.point),l=e(o.x,o.y);return n(l,u,!0)}if(s)return r(u);const d=a.displacedBy.point,p=e(d.x,d.y);return n(p,u,l.shouldAnimate)};return(e,t)=>{if(Sr(e))return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return(n,r)=>e(n,r)||t(n,r)||po}),{dropAnimationFinished:()=>({type:"DROP_ANIMATION_FINISHED",payload:null})},null,{context:gr,areStatePropsEqual:so})((t=>{const n=(0,e.useRef)(null),o=J(((e=null)=>{n.current=e}),[]),a=J((()=>n.current),[]),{contextId:i,dragHandleUsageInstructionsId:l,registry:s}=io(Er),{type:c,droppableId:u}=io(ao),d=X((()=>({id:t.draggableId,index:t.index,type:c,droppableId:u})),[t.draggableId,t.index,c,u]),{children:p,draggableId:f,isEnabled:m,shouldRespectForcePress:g,canDragInteractiveElements:h,isClone:v,mapped:b,dropAnimationFinished:y}=t;v||function(t){const n=wr("draggable"),{descriptor:r,registry:o,getDraggableRef:a,canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:s}=t,c=X((()=>({canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:s})),[i,s,l]),u=J((e=>{const t=a();return t||ye(!1),function(e,t,n=Oe){const r=window.getComputedStyle(t),o=t.getBoundingClientRect(),a=le(o,r),i=ie(a,n);return{descriptor:e,placeholder:{client:a,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:i}}(r,t,e)}),[r,a]),d=X((()=>({uniqueId:n,descriptor:r,options:c,getDimension:u})),[r,u,c,n]),p=(0,e.useRef)(d),f=(0,e.useRef)(!0);sr((()=>(o.draggable.register(p.current),()=>o.draggable.unregister(p.current))),[o.draggable]),sr((()=>{if(f.current)return void(f.current=!1);const e=p.current;p.current=d,o.draggable.update(d,e)}),[d,o.draggable])}(X((()=>({descriptor:d,registry:s,getDraggableRef:a,canDragInteractiveElements:h,shouldRespectForcePress:g,isEnabled:m})),[d,s,a,h,g,m]));const w=X((()=>m?{tabIndex:0,role:"button","aria-describedby":l,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:lo}:null),[i,l,f,m]),E=J((t=>{"DRAGGING"===b.type&&b.dropping&&"transform"===t.propertyName&&(e.version.startsWith("16")||e.version.startsWith("17")?y():(0,r.flushSync)(y))}),[y,b]),x=X((()=>{const e=function(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:n,combineWith:r,dropping:o}=e,a=Boolean(r),i=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),l=Boolean(o),s=l?vn(n,a):hn(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:ro(i,o),transform:s,opacity:oo(a,l),zIndex:l?no:to,pointerEvents:"none"}}(e):{transform:hn((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}(b),t="DRAGGING"===b.type&&b.dropping?E:void 0;return{innerRef:o,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":f,style:e,onTransitionEnd:t},dragHandleProps:w}}),[i,w,f,b,E,o]),S=X((()=>({draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}})),[d.droppableId,d.id,d.index,d.type]);return e.createElement(e.Fragment,null,p(x,b.snapshot,S))}));var mo=fo;function go(t){return io(ao).isUsingCloneFor!==t.draggableId||t.isClone?e.createElement(mo,t):null}function ho(t){const n="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,r=Boolean(t.disableInteractiveElementBlocking),o=Boolean(t.shouldRespectForcePress);return e.createElement(go,C({},t,{isClone:!1,isEnabled:n,canDragInteractiveElements:r,shouldRespectForcePress:o}))}const vo=e=>t=>e===t,bo=vo("scroll"),yo=vo("auto"),wo=(vo("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),Eo=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return wo(n,bo)||wo(n,yo)})(e)?e:Eo(e.parentElement);var xo=e=>({x:e.scrollLeft,y:e.scrollTop});const So=e=>!!e&&("fixed"===window.getComputedStyle(e).position||So(e.parentElement));const ko={passive:!1},Co={passive:!0};var _o=e=>e.shouldPublishImmediately?ko:Co;const Oo=e=>e&&e.env.closestScrollable||null;function No(t){const n=(0,e.useRef)(null),r=io(Er),o=wr("droppable"),{registry:a,marshal:i}=r,l=xr(t),s=X((()=>({id:t.droppableId,type:t.type,mode:t.mode})),[t.droppableId,t.mode,t.type]),c=(0,e.useRef)(s),u=X((()=>de(((e,t)=>{n.current||ye(!1);const r={x:e,y:t};i.updateDroppableScroll(s.id,r)}))),[s.id,i]),d=J((()=>{const e=n.current;return e&&e.env.closestScrollable?xo(e.env.closestScrollable):Oe}),[]),p=J((()=>{const e=d();u(e.x,e.y)}),[d,u]),f=X((()=>pe(p)),[p]),m=J((()=>{const e=n.current,t=Oo(e);e&&t||ye(!1),e.scrollOptions.shouldPublishImmediately?p():f()}),[f,p]),g=J(((e,t)=>{n.current&&ye(!1);const o=l.current,a=o.getDroppableRef();a||ye(!1);const i=(e=>({closestScrollable:Eo(e),isFixedOnPage:So(e)}))(a),c={ref:a,descriptor:s,env:i,scrollOptions:t};n.current=c;const u=(({ref:e,descriptor:t,env:n,windowScroll:r,direction:o,isDropDisabled:a,isCombineEnabled:i,shouldClipSubject:l})=>{const s=n.closestScrollable,c=((e,t)=>{const n=se(e);if(!t)return n;if(e!==t)return n;const r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,a=r+t.scrollHeight,i=o+t.scrollWidth,l=ee({top:r,right:i,bottom:a,left:o},n.border);return re({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})})(e,s),u=ie(c,r),d=(()=>{if(!s)return null;const e=se(s),t={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:e,page:ie(e,r),scroll:xo(s),scrollSize:t,shouldClipSubject:l}})(),p=(({descriptor:e,isEnabled:t,isCombineEnabled:n,isFixedOnPage:r,direction:o,client:a,page:i,closest:l})=>{const s=(()=>{if(!l)return null;const{scrollSize:e,client:t}=l,n=Tn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Oe,displacement:Oe}}}})(),c="vertical"===o?nt:rt;return{descriptor:e,isCombineEnabled:n,isFixedOnPage:r,axis:c,isEnabled:t,client:a,page:i,frame:s,subject:je({page:i,withPlaceholder:null,axis:c,frame:s})}})({descriptor:t,isEnabled:!a,isCombineEnabled:i,isFixedOnPage:n.isFixedOnPage,direction:o,client:c,page:u,closest:d});return p})({ref:a,descriptor:s,env:i,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=i.closestScrollable;return d&&(d.setAttribute(ar.contextId,r.contextId),d.addEventListener("scroll",m,_o(c.scrollOptions))),u}),[r.contextId,s,m,l]),h=J((()=>{const e=n.current,t=Oo(e);return e&&t||ye(!1),xo(t)}),[]),v=J((()=>{const e=n.current;e||ye(!1);const t=Oo(e);n.current=null,t&&(f.cancel(),t.removeAttribute(ar.contextId),t.removeEventListener("scroll",m,_o(e.scrollOptions)))}),[m,f]),b=J((e=>{const t=n.current;t||ye(!1);const r=Oo(t);r||ye(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=X((()=>({getDimensionAndWatchScroll:g,getScrollWhileDragging:h,dragStopped:v,scroll:b})),[v,g,h,b]),w=X((()=>({uniqueId:o,descriptor:s,callbacks:y})),[y,s,o]);sr((()=>(c.current=w.descriptor,a.droppable.register(w),()=>{n.current&&v(),a.droppable.unregister(w)})),[y,s,v,w,i,a.droppable]),sr((()=>{n.current&&i.updateDroppableIsEnabled(c.current.id,!t.isDropDisabled)}),[t.isDropDisabled,i]),sr((()=>{n.current&&i.updateDroppableIsCombineEnabled(c.current.id,t.isCombineEnabled)}),[t.isCombineEnabled,i])}function Do(){}const Io={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};var Po=e.memo((t=>{const n=(0,e.useRef)(null),r=J((()=>{n.current&&(clearTimeout(n.current),n.current=null)}),[]),{animate:o,onTransitionEnd:a,onClose:i,contextId:l}=t,[s,c]=(0,e.useState)("open"===t.animate);(0,e.useEffect)((()=>s?"open"!==o?(r(),c(!1),Do):n.current?Do:(n.current=setTimeout((()=>{n.current=null,c(!1)})),r):Do),[o,s,r]);const u=J((e=>{"height"===e.propertyName&&(a(),"close"===o&&i())}),[o,i,a]),d=(({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>{const r=(({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>e||"close"===n?Io:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin})({isAnimatingOpenOnMount:e,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:r.width,height:r.height,marginTop:r.margin.top,marginRight:r.margin.right,marginBottom:r.margin.bottom,marginLeft:r.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?mn.placeholder:null}})({isAnimatingOpenOnMount:s,animate:t.animate,placeholder:t.placeholder});return e.createElement(t.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":l,onTransitionEnd:u,ref:t.innerRef})}));class Ro extends e.PureComponent{constructor(...e){super(...e),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}const To={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ye(!1),document.body}},Ao=e=>{let t,n={...e};for(t in To)void 0===e[t]&&(n={...n,[t]:To[t]});return n},Lo=(e,t)=>e===t.droppable.type,Mo=(e,t)=>t.draggables[e.draggable.id];var Bo=q((()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=de((e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}))),r=de(((r,o,a,i,l,s)=>{const c=l.descriptor.id;if(l.descriptor.droppableId===r){const e=s?{render:s,dragging:n(l.descriptor)}:null,t={isDraggingOver:a,draggingOverWith:a?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!o)return t;if(!i)return e;const u={isDraggingOver:a,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}}));return(n,o)=>{const a=Ao(o),i=a.droppableId,l=a.type,s=!a.isDropDisabled,c=a.renderClone;if(Sr(n)){const e=n.critical;if(!Lo(l,e))return t;const o=Mo(e,n.dimensions),a=Dt(n.impact)===i;return r(i,s,a,a,o,c)}if("DROP_ANIMATING"===n.phase){const e=n.completed;if(!Lo(l,e.critical))return t;const o=Mo(e.critical,n.dimensions);return r(i,s,co(e.result)===i,Dt(e.impact)===i,o,c)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){const r=n.completed;if(!Lo(l,r.critical))return t;const o=Dt(r.impact)===i,a=Boolean(r.impact.at&&"COMBINE"===r.impact.at.type),s=r.critical.droppable.id===i;return o?a?e:t:s?e:t}return t}}),{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},((e,t,n)=>({...Ao(n),...e,...t})),{context:gr,areStatePropsEqual:so})((t=>{const n=(0,e.useContext)(Er);n||ye(!1);const{contextId:o,isMovementAllowed:a}=n,i=(0,e.useRef)(null),l=(0,e.useRef)(null),{children:s,droppableId:c,type:u,mode:d,direction:p,ignoreContainerClipping:f,isDropDisabled:m,isCombineEnabled:g,snapshot:h,useClone:v,updateViewportMaxScroll:b,getContainerForClone:y}=t,w=J((()=>i.current),[]),E=J(((e=null)=>{i.current=e}),[]),x=(J((()=>l.current),[]),J(((e=null)=>{l.current=e}),[])),S=J((()=>{a()&&b({maxScroll:Ln()})}),[a,b]);No({droppableId:c,type:u,mode:d,direction:p,isDropDisabled:m,isCombineEnabled:g,ignoreContainerClipping:f,getDroppableRef:w});const k=X((()=>e.createElement(Ro,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},(({onClose:t,data:n,animate:r})=>e.createElement(Po,{placeholder:n,onClose:t,innerRef:x,animate:r,contextId:o,onTransitionEnd:S})))),[o,S,t.placeholder,t.shouldAnimatePlaceholder,x]),C=X((()=>({innerRef:E,placeholder:k,droppableProps:{"data-rfd-droppable-id":c,"data-rfd-droppable-context-id":o}})),[o,c,k,E]),_=v?v.dragging.draggableId:null,O=X((()=>({droppableId:c,type:u,isUsingCloneFor:_})),[c,_,u]);return e.createElement(ao.Provider,{value:O},s(C,h),function(){if(!v)return null;const{dragging:t,render:n}=v,o=e.createElement(go,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},((e,r)=>n(e,r,t)));return r.createPortal(o,y())}())})),Fo=n(79);const jo=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},i=t=e(r,o,a);return a},{useDebugValue:zo}=e,{useSyncExternalStoreWithSelector:$o}=Fo,Uo=e=>e,Wo=(e,t)=>{const n=(e=>e?jo(e):jo)(e),r=(e,r=t)=>function(e,t=Uo,n){const r=$o(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return zo(r),r}(n,e,r);return Object.assign(r,n),r},Ho=window.shop_data,Vo=window.DOMAIN,Go=window.API_RFQ,qo=Array.from(Ho.columns.catalog.categories.map((e=>e.itemIds)).flat()),Ko=function(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const i={opacity:t.isDragging?.7:1,backgroundColor:r||o?"#eae7f7":"initial"};return!a&&null==t.draggingOver&&(!t.isDragging||t.isDragging&&t.isDropAnimating)&&(e.transform="none"),t.isDropAnimating?(n&&(i.transitionDuration="0.001s"),{...e,...i}):{...e,...i}},Qo=(e,t)=>{const n=t.isDraggingOver;return{...e,backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"}};function Yo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";try{t=Math.abs(t),t=isNaN(t)?2:t;const o=e<0?"-":"";let a=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),i=a.length>3?a.length%3:0;return o+(i?a.substring(0,i)+r:"")+a.substring(i).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-a).toFixed(t).slice(2):"")}catch(t){return e}}const Xo=(e,t)=>{const n=t-e;return Array.from({length:n},((t,n)=>e+n))},Jo=(e,t)=>e.length===t.length&&e.every(((e,n)=>e.id===t[n].id)),Zo=(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n]));function ea(e,t){return!e&&!t||!(!e!=!t)&&Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&(Object.getPrototypeOf(e)!==Object.getPrototypeOf([])||!!Object.keys(e).length==!!Object.keys(t).length)}var ta=n(678);function na(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var ra=n(556),oa=n.n(ra);function aa(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}function ia(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}const la=2**31-1;function sa(e,t,n){const r=n-Date.now();e.current=r<=la?setTimeout(t,r):setTimeout((()=>sa(e,t,n)),la)}function ca(){const t=aa(),n=(0,e.useRef)();return ia((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=la?n.current=setTimeout(r,o):sa(n,r,Date.now()+o))},clear:e,handleRef:n}}),[])}var ua=n(771),da=n.n(ua);function pa(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function fa(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function ma(t,n,r){var o=(0,e.useRef)(void 0!==t),a=(0,e.useState)(n),i=a[0],l=a[1],s=void 0!==t,c=o.current;return o.current=s,!s&&c&&i!==n&&l(n),[s?t:i,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r&&r.apply(void 0,[e].concat(n)),l(e)}),[r])]}n(311);const ga=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,ha=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=ga(e),r=ga(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var va=n(942),ba=n.n(va);function ya(){return(0,e.useState)(null)}var wa=Object.prototype.hasOwnProperty;function Ea(e,t,n){for(n of e.keys())if(xa(n,t))return n}function xa(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&xa(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=Ea(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=Ea(t,o)))return!1;if(!xa(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(wa.call(e,n)&&++r&&!wa.call(t,n))return!1;if(!(n in t)||!xa(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function Sa(e){return e.split("-")[0]}function ka(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ca(e){return e instanceof ka(e).Element||e instanceof Element}function _a(e){return e instanceof ka(e).HTMLElement||e instanceof HTMLElement}function Oa(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ka(e).ShadowRoot||e instanceof ShadowRoot)}var Na=Math.max,Da=Math.min,Ia=Math.round;function Pa(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ra(){return!/^((?!chrome|android).)*safari/i.test(Pa())}function Ta(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&_a(e)&&(o=e.offsetWidth>0&&Ia(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ia(r.height)/e.offsetHeight||1);var i=(Ca(e)?ka(e):window).visualViewport,l=!Ra()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Aa(e){var t=Ta(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function La(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Oa(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ma(e){return e?(e.nodeName||"").toLowerCase():null}function Ba(e){return ka(e).getComputedStyle(e)}function Fa(e){return["table","td","th"].indexOf(Ma(e))>=0}function ja(e){return((Ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function za(e){return"html"===Ma(e)?e:e.assignedSlot||e.parentNode||(Oa(e)?e.host:null)||ja(e)}function $a(e){return _a(e)&&"fixed"!==Ba(e).position?e.offsetParent:null}function Ua(e){for(var t=ka(e),n=$a(e);n&&Fa(n)&&"static"===Ba(n).position;)n=$a(n);return n&&("html"===Ma(n)||"body"===Ma(n)&&"static"===Ba(n).position)?t:n||function(e){var t=/firefox/i.test(Pa());if(/Trident/i.test(Pa())&&_a(e)&&"fixed"===Ba(e).position)return null;var n=za(e);for(Oa(n)&&(n=n.host);_a(n)&&["html","body"].indexOf(Ma(n))<0;){var r=Ba(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Wa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ha(e,t,n){return Na(e,Da(t,n))}function Va(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ga(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var qa="top",Ka="bottom",Qa="right",Ya="left",Xa="auto",Ja=[qa,Ka,Qa,Ya],Za="start",ei="end",ti="viewport",ni="popper",ri=Ja.reduce((function(e,t){return e.concat([t+"-"+Za,t+"-"+ei])}),[]),oi=[].concat(Ja,[Xa]).reduce((function(e,t){return e.concat([t,t+"-"+Za,t+"-"+ei])}),[]),ai=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const ii={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Sa(n.placement),s=Wa(l),c=[Ya,Qa].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return Va("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ga(e,Ja))}(o.padding,n),d=Aa(a),p="y"===s?qa:Ya,f="y"===s?Ka:Qa,m=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],g=i[s]-n.rects.reference[s],h=Ua(a),v=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,b=m/2-g/2,y=u[p],w=v-d[c]-u[f],E=v/2-d[c]/2+b,x=Ha(y,E,w),S=s;n.modifiersData[r]=((t={})[S]=x,t.centerOffset=x-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&La(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function li(e){return e.split("-")[1]}var si={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ci(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,g=void 0===m?0:m,h="function"==typeof u?u({x:f,y:g}):{x:f,y:g};f=h.x,g=h.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=Ya,w=qa,E=window;if(c){var x=Ua(n),S="clientHeight",k="clientWidth";x===ka(n)&&"static"!==Ba(x=ja(n)).position&&"absolute"===l&&(S="scrollHeight",k="scrollWidth"),(o===qa||(o===Ya||o===Qa)&&a===ei)&&(w=Ka,g-=(d&&x===E&&E.visualViewport?E.visualViewport.height:x[S])-r.height,g*=s?1:-1),o!==Ya&&(o!==qa&&o!==Ka||a!==ei)||(y=Qa,f-=(d&&x===E&&E.visualViewport?E.visualViewport.width:x[k])-r.width,f*=s?1:-1)}var C,_=Object.assign({position:l},c&&si),O=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ia(n*o)/o||0,y:Ia(r*o)/o||0}}({x:f,y:g},ka(n)):{x:f,y:g};return f=O.x,g=O.y,s?Object.assign({},_,((C={})[w]=b?"0":"",C[y]=v?"0":"",C.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",C)):Object.assign({},_,((t={})[w]=b?g+"px":"",t[y]=v?f+"px":"",t.transform="",t))}const ui={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:Sa(t.placement),variation:li(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ci(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ci(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var di={passive:!0};const pi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=ka(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,di)})),l&&s.addEventListener("resize",n.update,di),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,di)})),l&&s.removeEventListener("resize",n.update,di)}},data:{}};var fi={left:"right",right:"left",bottom:"top",top:"bottom"};function mi(e){return e.replace(/left|right|bottom|top/g,(function(e){return fi[e]}))}var gi={start:"end",end:"start"};function hi(e){return e.replace(/start|end/g,(function(e){return gi[e]}))}function vi(e){var t=ka(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function bi(e){return Ta(ja(e)).left+vi(e).scrollLeft}function yi(e){var t=Ba(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function wi(e){return["html","body","#document"].indexOf(Ma(e))>=0?e.ownerDocument.body:_a(e)&&yi(e)?e:wi(za(e))}function Ei(e,t){var n;void 0===t&&(t=[]);var r=wi(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=ka(r),i=o?[a].concat(a.visualViewport||[],yi(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Ei(za(i)))}function xi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Si(e,t,n){return t===ti?xi(function(e,t){var n=ka(e),r=ja(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=Ra();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+bi(e),y:s}}(e,n)):Ca(t)?function(e,t){var n=Ta(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):xi(function(e){var t,n=ja(e),r=vi(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Na(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Na(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+bi(e),s=-r.scrollTop;return"rtl"===Ba(o||n).direction&&(l+=Na(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(ja(e)))}function ki(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Sa(o):null,i=o?li(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case qa:t={x:l,y:n.y-r.height};break;case Ka:t={x:l,y:n.y+n.height};break;case Qa:t={x:n.x+n.width,y:s};break;case Ya:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?Wa(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Za:t[c]=t[c]-(n[u]/2-r[u]/2);break;case ei:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Ci(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?ti:c,d=n.elementContext,p=void 0===d?ni:d,f=n.altBoundary,m=void 0!==f&&f,g=n.padding,h=void 0===g?0:g,v=Va("number"!=typeof h?h:Ga(h,Ja)),b=p===ni?"reference":ni,y=e.rects.popper,w=e.elements[m?b:p],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Ei(za(e)),n=["absolute","fixed"].indexOf(Ba(e).position)>=0&&_a(e)?Ua(e):e;return Ca(n)?t.filter((function(e){return Ca(e)&&La(e,n)&&"body"!==Ma(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Si(e,n,r);return t.top=Na(o.top,t.top),t.right=Da(o.right,t.right),t.bottom=Da(o.bottom,t.bottom),t.left=Na(o.left,t.left),t}),Si(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(Ca(w)?w:w.contextElement||ja(e.elements.popper),s,u,i),x=Ta(e.elements.reference),S=ki({reference:x,element:y,strategy:"absolute",placement:o}),k=xi(Object.assign({},y,S)),C=p===ni?k:x,_={top:E.top-C.top+v.top,bottom:C.bottom-E.bottom+v.bottom,left:E.left-C.left+v.left,right:C.right-E.right+v.right},O=e.modifiersData.offset;if(p===ni&&O){var N=O[o];Object.keys(_).forEach((function(e){var t=[Qa,Ka].indexOf(e)>=0?1:-1,n=[qa,Ka].indexOf(e)>=0?"y":"x";_[e]+=N[n]*t}))}return _}const _i={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,g=n.allowedAutoPlacements,h=t.options.placement,v=Sa(h),b=s||(v!==h&&m?function(e){if(Sa(e)===Xa)return[];var t=mi(e);return[hi(e),t,hi(t)]}(h):[mi(h)]),y=[h].concat(b).reduce((function(e,n){return e.concat(Sa(n)===Xa?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?oi:s,u=li(r),d=u?l?ri:ri.filter((function(e){return li(e)===u})):Ja,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Ci(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Sa(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,E=t.rects.popper,x=new Map,S=!0,k=y[0],C=0;C<y.length;C++){var _=y[C],O=Sa(_),N=li(_)===Za,D=[qa,Ka].indexOf(O)>=0,I=D?"width":"height",P=Ci(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=D?N?Qa:Ya:N?Ka:qa;w[I]>E[I]&&(R=mi(R));var T=mi(R),A=[];if(a&&A.push(P[O]<=0),l&&A.push(P[R]<=0,P[T]<=0),A.every((function(e){return e}))){k=_,S=!1;break}x.set(_,A)}if(S)for(var L=function(e){var t=y.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},M=m?3:1;M>0&&"break"!==L(M);M--);t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Oi(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ni(e){return[qa,Qa,Ka,Ya].some((function(t){return e[t]>=0}))}const Di={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Ci(t,{elementContext:"reference"}),l=Ci(t,{altBoundary:!0}),s=Oi(i,r),c=Oi(l,o,a),u=Ni(s),d=Ni(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},Ii={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=oi.reduce((function(e,n){return e[n]=function(e,t,n){var r=Sa(e),o=[Ya,qa].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Ya,Qa].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},Pi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ki({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Ri={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,m=n.tetherOffset,g=void 0===m?0:m,h=Ci(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=Sa(t.placement),b=li(t.placement),y=!b,w=Wa(v),E="x"===w?"y":"x",x=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,C="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,_="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(x){if(a){var D,I="y"===w?qa:Ya,P="y"===w?Ka:Qa,R="y"===w?"height":"width",T=x[w],A=T+h[I],L=T-h[P],M=f?-k[R]/2:0,B=b===Za?S[R]:k[R],F=b===Za?-k[R]:-S[R],j=t.elements.arrow,z=f&&j?Aa(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=$[I],W=$[P],H=Ha(0,S[R],z[R]),V=y?S[R]/2-M-H-U-_.mainAxis:B-H-U-_.mainAxis,G=y?-S[R]/2+M+H+W+_.mainAxis:F+H+W+_.mainAxis,q=t.elements.arrow&&Ua(t.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Q=null!=(D=null==O?void 0:O[w])?D:0,Y=T+G-Q,X=Ha(f?Da(A,T+V-Q-K):A,T,f?Na(L,Y):L);x[w]=X,N[w]=X-T}if(l){var J,Z="x"===w?qa:Ya,ee="x"===w?Ka:Qa,te=x[E],ne="y"===E?"height":"width",re=te+h[Z],oe=te-h[ee],ae=-1!==[qa,Ya].indexOf(v),ie=null!=(J=null==O?void 0:O[E])?J:0,le=ae?re:te-S[ne]-k[ne]-ie+_.altAxis,se=ae?te+S[ne]+k[ne]-ie-_.altAxis:oe,ce=f&&ae?function(e,t,n){var r=Ha(e,t,n);return r>n?n:r}(le,te,se):Ha(f?le:re,te,f?se:oe);x[E]=ce,N[E]=ce-te}t.modifiersData[r]=N}},requiresIfExists:["offset"]};function Ti(e,t,n){void 0===n&&(n=!1);var r,o,a=_a(t),i=_a(t)&&function(e){var t=e.getBoundingClientRect(),n=Ia(t.width)/e.offsetWidth||1,r=Ia(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=ja(t),s=Ta(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Ma(t)||yi(l))&&(c=(r=t)!==ka(r)&&_a(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:vi(r)),_a(t)?((u=Ta(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=bi(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Ai(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Li(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Mi={placement:"bottom",modifiers:[],strategy:"absolute"};function Bi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}const Fi=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Mi:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mi,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],l=!1,s={state:o,setOptions:function(n){var l="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},a,o.options,l),o.scrollParents={reference:Ca(e)?Ei(e):e.contextElement?Ei(e.contextElement):[],popper:Ei(t)};var u,d,p=function(e){var t=Ai(e);return ai.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((u=[].concat(r,o.options.modifiers),d=u.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=p.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var l=a({state:o,name:t,instance:s,options:r});i.push(l||function(){})}})),s.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(Bi(t,n)){o.rects={reference:Ti(t,Ua(n),"fixed"===o.options.strategy),popper:Aa(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var a=o.orderedModifiers[r],i=a.fn,c=a.options,u=void 0===c?{}:c,d=a.name;"function"==typeof i&&(o=i({state:o,options:u,name:d,instance:s})||o)}else o.reset=!1,r=-1}}},update:Li((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){c(),l=!0}};if(!Bi(e,t))return s;function c(){i.forEach((function(e){return e()})),i=[]}return s.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}({defaultModifiers:[Di,Pi,ui,pi,Ii,_i,Ri,ii]}),ji=["enabled","placement","strategy","modifiers"],zi={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},$i={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},Ui=[],Wi=function(t,n,r={}){let{enabled:o=!0,placement:a="bottom",strategy:i="absolute",modifiers:l=Ui}=r,s=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(r,ji);const c=(0,e.useRef)(l),u=(0,e.useRef)(),d=(0,e.useCallback)((()=>{var e;null==(e=u.current)||e.update()}),[]),p=(0,e.useCallback)((()=>{var e;null==(e=u.current)||e.forceUpdate()}),[]),[f,m]=function(t){const n=aa();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:a,update:d,forceUpdate:p,attributes:{},styles:{popper:{},arrow:{}}})),g=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),m({state:e,styles:t,attributes:n,update:d,forceUpdate:p,placement:e.placement})}})),[d,p,m]),h=(0,e.useMemo)((()=>(xa(c.current,l)||(c.current=l),c.current)),[l]);return(0,e.useEffect)((()=>{u.current&&o&&u.current.setOptions({placement:a,strategy:i,modifiers:[...h,g,zi]})}),[i,a,g,o,h]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return u.current=Fi(t,n,Object.assign({},s,{placement:a,strategy:i,modifiers:[...h,$i,g]})),()=>{null!=u.current&&(u.current.destroy(),u.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),f},Hi=!("undefined"==typeof window||!window.document||!window.document.createElement);var Vi=!1,Gi=!1;try{var qi={get passive(){return Vi=!0},get once(){return Gi=Vi=!0}};Hi&&(window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,!0))}catch(e){}const Ki=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Gi){var o=r.once,a=r.capture,i=n;!Gi&&o&&(i=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=i),e.addEventListener(t,i,Vi?r:a)}e.addEventListener(t,n,r)},Qi=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)},Yi=function(e,t,n,r){return Ki(e,t,n,r),function(){Qi(e,t,n,r)}};function Xi(e){return e&&e.ownerDocument||document}const Ji=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function Zi(t){const n=Ji(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const el=()=>{},tl=e=>e&&("current"in e?e.current:e),nl={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function rl(e){return"Escape"===e.code||27===e.keyCode}const ol=()=>{},al=function(t,n,{disabled:r,clickTrigger:o}={}){const a=n||ol;!function(t,n=el,{disabled:r,clickTrigger:o="click"}={}){const a=(0,e.useRef)(!1),i=(0,e.useRef)(!1),l=(0,e.useCallback)((e=>{const n=tl(t);var r;da()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!n||!!((r=e).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(e)||!!na(n,e.target)||i.current,i.current=!1}),[t]),s=Zi((e=>{const n=tl(t);n&&na(n,e.target)&&(i.current=!0)})),c=Zi((e=>{a.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const a=Xi(tl(t)),i=a.defaultView||window;let u=null!=(e=i.event)?e:null==(n=i.parent)?void 0:n.event,d=null;nl[o]&&(d=Yi(a,nl[o],s,!0));const p=Yi(a,o,l,!0),f=Yi(a,o,(e=>{e!==u?c(e):u=void 0}));let m=[];return"ontouchstart"in a.documentElement&&(m=[].slice.call(a.body.children).map((e=>Yi(e,"mousemove",el)))),()=>{null==d||d(),p(),f(),m.forEach((e=>e()))}}),[t,r,o,l,s,c])}(t,a,{disabled:r,clickTrigger:o});const i=Zi((e=>{rl(e)&&a(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=Xi(tl(t));let n=(e.defaultView||window).event;const o=Yi(e,"keyup",(e=>{e!==n?i(e):n=void 0}));return()=>{o()}}),[t,r,i])},il=(0,e.createContext)(Hi?window:void 0);function ll(){return(0,e.useContext)(il)}il.Provider;const sl=(e,t)=>Hi?null==e?(t||Xi()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function cl(t,n){const r=ll(),[o,a]=(0,e.useState)((()=>sl(t,null==r?void 0:r.document)));if(!o){const e=sl(t);e&&a(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=sl(t);e!==o&&a(e)}),[t,o]),o}function ul(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const dl=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,pl="undefined"!=typeof document||dl?e.useLayoutEffect:e.useEffect,fl=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:a}){const i=(0,e.useRef)(null),l=(0,e.useRef)(n),s=Zi(r);(0,e.useEffect)((()=>{n?l.current=!0:s(i.current)}),[n,s]);const c=ha(i,t.ref),u=(0,e.cloneElement)(t,{ref:c});return n?u:a||!l.current&&o?null:u},ml=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];var gl=n(848);const hl=["component"],vl=e.forwardRef(((t,n)=>{let{component:r}=t;const o=function(t){let{onEnter:n,onEntering:r,onEntered:o,onExit:a,onExiting:i,onExited:l,addEndListener:s,children:c}=t,u=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(t,ml);const{major:d}=function(){const t=e.version.split(".");return{major:+t[0],minor:+t[1],patch:+t[2]}}(),p=d>=19?c.props.ref:c.ref,f=(0,e.useRef)(null),m=ha(f,"function"==typeof c?null:p),g=e=>t=>{e&&f.current&&e(f.current,t)},h=(0,e.useCallback)(g(n),[n]),v=(0,e.useCallback)(g(r),[r]),b=(0,e.useCallback)(g(o),[o]),y=(0,e.useCallback)(g(a),[a]),w=(0,e.useCallback)(g(i),[i]),E=(0,e.useCallback)(g(l),[l]),x=(0,e.useCallback)(g(s),[s]);return Object.assign({},u,{nodeRef:f},n&&{onEnter:h},r&&{onEntering:v},o&&{onEntered:b},a&&{onExit:y},i&&{onExiting:w},l&&{onExited:E},s&&{addEndListener:x},{children:"function"==typeof c?(e,t)=>c(e,Object.assign({},t,{ref:m})):(0,e.cloneElement)(c,{ref:m})})}(function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(t,hl));return(0,gl.jsx)(r,Object.assign({ref:n},o))}));function bl({children:t,in:n,onExited:r,onEntered:o,transition:a}){const[i,l]=(0,e.useState)(!n);n&&i&&l(!1);const s=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),a=Zi(n);return pl((()=>{if(!r.current)return;let e=!1;return a({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,a]),pl((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(a(e)).then((()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(l(!0),null==r||r(e.element)))}),(t=>{throw e.in||l(!0),t}))}}),c=ha(s,t.ref);return i&&!n?null:(0,e.cloneElement)(t,{ref:c})}function yl(e,t,n){return e?(0,gl.jsx)(vl,Object.assign({},n,{component:e})):t?(0,gl.jsx)(bl,Object.assign({},n,{transition:t})):(0,gl.jsx)(fl,Object.assign({},n))}const wl=e.forwardRef(((t,n)=>{const{flip:o,offset:a,placement:i,containerPadding:l,popperConfig:s={},transition:c,runTransition:u}=t,[d,p]=ya(),[f,m]=ya(),g=ha(p,n),h=cl(t.container),v=cl(t.target),[b,y]=(0,e.useState)(!t.show),w=Wi(v,d,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:a,containerPadding:i,arrowElement:l,popperConfig:s={}}){var c,u,d,p,f;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(s.modifiers);return Object.assign({},s,{placement:n,enabled:e,strategy:a?"fixed":s.strategy,modifiers:ul(Object.assign({},m,{eventListeners:{enabled:t,options:null==(c=m.eventListeners)?void 0:c.options},preventOverflow:Object.assign({},m.preventOverflow,{options:i?Object.assign({padding:i},null==(u=m.preventOverflow)?void 0:u.options):null==(d=m.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:o},null==(p=m.offset)?void 0:p.options)},arrow:Object.assign({},m.arrow,{enabled:!!l,options:Object.assign({},null==(f=m.arrow)?void 0:f.options,{element:l})}),flip:Object.assign({enabled:!!r},m.flip)}))})}({placement:i,enableEvents:!!t.show,containerPadding:l||5,flip:o,offset:a,arrowElement:f,popperConfig:s}));t.show&&b&&y(!1);const E=t.show||!b;if(al(d,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!E)return null;const{onExit:x,onExiting:S,onEnter:k,onEntering:C,onEntered:_}=t;let O=t.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:g}),{popper:w,placement:i,show:!!t.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:m})});return O=yl(c,u,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:O,onExit:x,onExiting:S,onExited:(...e)=>{y(!0),t.onExited&&t.onExited(...e)},onEnter:k,onEntering:C,onEntered:_}),h?r.createPortal(O,h):null}));wl.displayName="Overlay";const El=wl;function xl(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const Sl=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:kl,Provider:Cl}=Sl;function _l(t,n){const{prefixes:r}=(0,e.useContext)(Sl);return t||r[n]||n}function Ol(){const{dir:t}=(0,e.useContext)(Sl);return"rtl"===t}const Nl=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=_l(t,"popover-header"),(0,gl.jsx)(n,{ref:o,className:ba()(e,t),...r}))));Nl.displayName="PopoverHeader";const Dl=Nl,Il=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=_l(t,"popover-body"),(0,gl.jsx)(n,{ref:o,className:ba()(e,t),...r}))));Il.displayName="PopoverBody";const Pl=Il;function Rl(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function Tl(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const Al=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:a,arrowProps:i,hasDoneInitialMeasure:l,popper:s,show:c,...u},d)=>{const p=_l(e,"popover"),f=Ol(),[m]=(null==t?void 0:t.split("-"))||[],g=Rl(m,f);let h=r;return c&&!l&&(h={...r,...Tl(null==s?void 0:s.strategy)}),(0,gl.jsxs)("div",{ref:d,role:"tooltip",style:h,"x-placement":m,className:ba()(n,p,m&&`bs-popover-${g}`),...u,children:[(0,gl.jsx)("div",{className:"popover-arrow",...i}),a?(0,gl.jsx)(Pl,{children:o}):o]})})),Ll=Object.assign(Al,{Header:Dl,Body:Pl,POPPER_OFFSET:[0,8]}),Ml=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:a,hasDoneInitialMeasure:i,popper:l,show:s,...c},u)=>{e=_l(e,"tooltip");const d=Ol(),[p]=(null==t?void 0:t.split("-"))||[],f=Rl(p,d);let m=r;return s&&!i&&(m={...r,...Tl(null==l?void 0:l.strategy)}),(0,gl.jsxs)("div",{ref:u,style:m,role:"tooltip","x-placement":p,className:ba()(n,e,`bs-tooltip-${f}`),...c,children:[(0,gl.jsx)("div",{className:"tooltip-arrow",...a}),(0,gl.jsx)("div",{className:`${e}-inner`,children:o})]})}));Ml.displayName="Tooltip";const Bl=Object.assign(Ml,{TOOLTIP_OFFSET:[0,6]});function Fl(e,t){return Fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fl(e,t)}const jl=e.createContext(null);var zl="unmounted",$l="exited",Ul="entering",Wl="entered",Hl="exiting",Vl=function(t){var n,o;function a(e,n){var r;r=t.call(this,e,n)||this;var o,a=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=$l,r.appearStatus=Ul):o=Wl:o=e.unmountOnExit||e.mountOnEnter?zl:$l,r.state={status:o},r.nextCallback=null,r}o=t,(n=a).prototype=Object.create(o.prototype),n.prototype.constructor=n,Fl(n,o),a.getDerivedStateFromProps=function(e,t){return e.in&&t.status===zl?{status:$l}:null};var i=a.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ul&&n!==Wl&&(t=Ul):n!==Ul&&n!==Wl||(t=Hl)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ul){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$l&&this.setState({status:zl})},i.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,a=this.props.nodeRef?[o]:[r.findDOMNode(this),o],i=a[0],l=a[1],s=this.getTimeouts(),c=o?s.appear:s.enter;e||n?(this.props.onEnter(i,l),this.safeSetState({status:Ul},(function(){t.props.onEntering(i,l),t.onTransitionEnd(c,(function(){t.safeSetState({status:Wl},(function(){t.props.onEntered(i,l)}))}))}))):this.safeSetState({status:Wl},(function(){t.props.onEntered(i)}))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:r.findDOMNode(this);t?(this.props.onExit(o),this.safeSetState({status:Hl},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:$l},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:$l},(function(){e.props.onExited(o)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=a[0],l=a[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===zl)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,_(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(jl.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},a}(e.Component);function Gl(){}Vl.contextType=jl,Vl.propTypes={},Vl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gl,onEntering:Gl,onEntered:Gl,onExit:Gl,onExiting:Gl,onExited:Gl},Vl.UNMOUNTED=zl,Vl.EXITED=$l,Vl.ENTERING=Ul,Vl.ENTERED=Wl,Vl.EXITING=Hl;const ql=Vl;var Kl=/([A-Z])/g,Ql=/^ms-/;function Yl(e){return function(e){return e.replace(Kl,"-$1").toLowerCase()}(e).replace(Ql,"-ms-")}var Xl=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Jl=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Yl(t))||function(e,t){return function(e){var t=Xi(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(Yl(t));Object.keys(t).forEach((function(o){var a=t[o];a||0===a?function(e){return!(!e||!Xl.test(e))}(o)?r+=o+"("+a+") ":n+=Yl(o)+": "+a+";":e.style.removeProperty(Yl(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function Zl(e,t,n,r){var o,a;null==n&&(a=-1===(o=Jl(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*a||0);var i=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),a=Yi(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),a()}}(e,n,r),l=Yi(e,"transitionend",t);return function(){i(),l()}}function es(e,t){const n=Jl(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function ts(e,t){const n=es(e,"transitionDuration"),r=es(e,"transitionDelay"),o=Zl(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function ns(e){e.offsetHeight}function rs(e){return e&&"setState"in e?r.findDOMNode(e):null!=e?e:null}const os=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:a,onExited:i,addEndListener:l,children:s,childRef:c,...u},d)=>{const p=(0,e.useRef)(null),f=ha(p,c),m=e=>{f(rs(e))},g=e=>t=>{e&&p.current&&e(p.current,t)},h=(0,e.useCallback)(g(t),[t]),v=(0,e.useCallback)(g(n),[n]),b=(0,e.useCallback)(g(r),[r]),y=(0,e.useCallback)(g(o),[o]),w=(0,e.useCallback)(g(a),[a]),E=(0,e.useCallback)(g(i),[i]),x=(0,e.useCallback)(g(l),[l]);return(0,gl.jsx)(ql,{ref:d,...u,onEnter:h,onEntered:b,onEntering:v,onExit:y,onExited:E,onExiting:w,addEndListener:x,nodeRef:p,children:"function"==typeof s?(e,t)=>s(e,{...t,ref:m}):e.cloneElement(s,{ref:m})})})),as={[Ul]:"show",[Wl]:"show"},is=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:o,...a},i)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},s=(0,e.useCallback)(((e,t)=>{ns(e),null==o||o(e,t)}),[o]);return(0,gl.jsx)(os,{ref:i,addEndListener:ts,...l,onEnter:s,childRef:n.ref,children:(o,a)=>e.cloneElement(n,{...a,className:ba()("fade",t,n.props.className,as[o],r[o])})})}));is.displayName="Fade";const ls=is,ss=e.forwardRef((({children:t,transition:n=ls,popperConfig:r={},rootClose:o=!1,placement:a="top",show:i=!1,...l},s)=>{const c=(0,e.useRef)({}),[u,d]=(0,e.useState)(null),[p,f]=function(t){const n=(0,e.useRef)(null),r=_l(void 0,"popover"),o=_l(void 0,"tooltip"),a=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(xl(n.current,r))return Ll.POPPER_OFFSET;if(xl(n.current,o))return Bl.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[a]]}(l.offset),m=ha(s,p),g=!0===n?ls:n||void 0,h=Zi((e=>{d(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return pl((()=>{u&&l.target&&(null==c.current.scheduleUpdate||c.current.scheduleUpdate())}),[u,l.target]),(0,e.useEffect)((()=>{i||d(null)}),[i]),(0,gl.jsx)(El,{...l,ref:m,popperConfig:{...r,modifiers:f.concat(r.modifiers||[]),onFirstUpdate:h},transition:g,rootClose:o,placement:a,show:i,children:(o,{arrowProps:a,popper:i,show:l})=>{var s;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(rs(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(rs(e)))}(o,a);const d=null==i?void 0:i.placement,p=Object.assign(c.current,{state:null==i?void 0:i.state,scheduleUpdate:null==i?void 0:i.update,placement:d,outOfBoundaries:(null==i||null==(s=i.state)||null==(s=s.modifiersData.hide)?void 0:s.isReferenceHidden)||!1,strategy:r.strategy}),f=!!u;return"function"==typeof t?t({...o,placement:d,show:l,...!n&&l&&{className:"show"},popper:p,arrowProps:a,hasDoneInitialMeasure:f}):e.cloneElement(t,{...o,placement:d,arrowProps:a,popper:p,hasDoneInitialMeasure:f,className:ba()(t.props.className,!n&&l&&"show"),style:{...t.props.style,...o.style}})}})}));ss.displayName="Overlay";const cs=ss;function us(e,t,n){const[r]=t,o=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];a&&a===o||na(o,a)||e(...t)}oa().oneOf(["click","hover","focus"]);const ds=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:a,defaultShow:i=!1,onToggle:l,delay:s,placement:c,flip:u=c&&-1!==c.indexOf("auto"),...d})=>{const p=(0,e.useRef)(null),f=ha(p,r.ref),m=ca(),g=(0,e.useRef)(""),[h,v]=ma(a,i,l),b=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(s),{onFocus:y,onBlur:w,onClick:E}="function"!=typeof r?e.Children.only(r).props:{},x=(0,e.useCallback)((()=>{m.clear(),g.current="show",b.show?m.set((()=>{"show"===g.current&&v(!0)}),b.show):v(!0)}),[b.show,v,m]),S=(0,e.useCallback)((()=>{m.clear(),g.current="hide",b.hide?m.set((()=>{"hide"===g.current&&v(!1)}),b.hide):v(!1)}),[b.hide,v,m]),k=(0,e.useCallback)(((...e)=>{x(),null==y||y(...e)}),[x,y]),C=(0,e.useCallback)(((...e)=>{S(),null==w||w(...e)}),[S,w]),_=(0,e.useCallback)(((...e)=>{v(!h),null==E||E(...e)}),[E,v,h]),O=(0,e.useCallback)(((...e)=>{us(x,e,"fromElement")}),[x]),N=(0,e.useCallback)(((...e)=>{us(S,e,"toElement")}),[S]),D=null==t?[]:[].concat(t),I={ref:e=>{f(rs(e))}};return-1!==D.indexOf("click")&&(I.onClick=_),-1!==D.indexOf("focus")&&(I.onFocus=k,I.onBlur=C),-1!==D.indexOf("hover")&&(I.onMouseOver=O,I.onMouseOut=N),(0,gl.jsxs)(gl.Fragment,{children:["function"==typeof r?r(I):(0,e.cloneElement)(r,I),(0,gl.jsx)(cs,{...d,show:h,onHide:S,flip:u,placement:c,popperConfig:o,target:p.current,children:n})]})};function ps(){return ps=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},ps.apply(null,arguments)}function fs(t){let{id:n,tip:r}=t;return e.createElement(ds,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:t=>e.createElement(Bl,ps({id:n},t),r),rootClose:!0},e.createElement("img",{src:"/images/shop/icon-reminder.svg",className:"options-icon"}))}const ms=e=>{const t=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/(0|1[0-9]|2[0-9]|3[0-2]|[0-9])$/;return e=>t.test(e)},gs=e=>{const t=/(^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(\/(\d{1,2}|1[0-1]\d|12[0-8]))(%.+)?\s*$)/;return e=>t.test(e)},hs={ipv4:ms,ipv6:gs,ipv4or6:e=>{const t=ms(),n=gs();return e=>t(e)||n(e)},frequency:e=>{const t={mhz:1e6,khz:1e3,hz:10,ghz:1e9};return n=>{const r=n.split(/(\s+)/),o=parseFloat(r[0]);if(3!==r.length||isNaN(o))return!1;const a=t[r[2].toLowerCase()];if(!a)return!1;const i=a*o;return i>=(e.min||10*t.mhz)&&i<=(e.max||1*t.ghz)}}};class vs extends e.Component{constructor(e){super(e),this.state={text:e.outvar in e.data?e.data[e.outvar]:e.fallback?e.fallback:"",valid:!0},this.handleChange=this.handleChange.bind(this),this.props.target.construct(this.props.outvar,this.state.text)}handleChange(e){let t=e.target.value;this.setState({text:t,valid:!this.props.validator||this.props.validator(t)}),this.props.target.update(this.props.outvar,t)}static getDerivedStateFromProps(e,t){return t.text!==e.data[e.outvar]?{text:e.data[e.outvar]}:null}render(){let t=this.props.id+this.props.outvar;return e.createElement("div",{className:"shop-line",key:this.props.id},e.createElement("label",{htmlFor:t,className:"form-label"},this.props.icon&&e.createElement("img",{src:`/images${this.props.icon}`,className:"options-icon"}),this.props.title,this.props.tip&&e.createElement(fs,{id:this.props.id+"tooltip",tip:this.props.tip}),":"),e.createElement("input",{type:"text",className:"form-control form-control-sm "+(this.state.valid?"":"options-invalid"),id:t,onChange:this.handleChange,value:this.state.text}))}}class bs extends e.Component{constructor(e){super(e),this.state={variant:e.outvar in e.data?e.data[e.outvar]:e.variants[e.fallback?e.fallback:0]},this.handleClick=this.handleClick.bind(this),this.props.target.construct(this.props.outvar,this.state.variant)}handleClick(e){this.setState({...this.state,variant:e}),this.props.target.update(this.props.outvar,e)}static getDerivedStateFromProps(e,t){return t.variant!==e.data[e.outvar]?{variant:e.data[e.outvar]}:null}render(){let t=this.props.id+this.props.outvar;return e.createElement("div",{className:"shop-radio",key:this.props.id},e.createElement("div",{style:{display:"inline"},className:"shop-radio-label"},this.props.icon&&e.createElement("img",{src:`/images${this.props.icon}`,className:"options-icon"}),this.props.title),this.props.tip&&e.createElement(fs,{id:this.props.id+"tooltip",tip:this.props.tip}),e.createElement("div",{className:"d-block"},this.props.variants.map(((n,r)=>e.createElement("div",{className:`form-check shop-radio-variant ${this.props.classes}`,key:t+n},e.createElement("input",{className:"form-check-input",type:"radio",name:t,id:t+n,checked:this.state.variant===n,onClick:()=>this.handleClick(n),onChange:()=>this.handleClick(n)}),e.createElement("label",{className:"form-check-label",htmlFor:t+n},n))))))}}class ys extends e.Component{constructor(e){super(e),this.state={checked:e.outvar in e.data?!!e.data[e.outvar]:!!e.fallback},this.handleClick=this.handleClick.bind(this),this.props.target.construct(this.props.outvar,this.state.checked)}handleClick(){let e=!this.state.checked;this.setState({checked:e}),this.props.target.update(this.props.outvar,e)}static getDerivedStateFromProps(e,t){return t.checked!==e.data[e.outvar]?{checked:e.data[e.outvar]}:null}render(){let t=this.props.id+this.props.outvar;return e.createElement("div",{className:"shop-switch",key:this.props.id},e.createElement("div",{className:"form-check form-switch",key:t},e.createElement("input",{className:"form-check-input",type:"checkbox",role:"switch",id:t,checked:this.state.checked,onClick:this.handleClick,onChange:this.handleClick}),e.createElement("label",{className:"form-check-label",htmlFor:t,style:{display:"inline"}},this.props.icon&&e.createElement("img",{src:`/images${this.props.icon}`,className:"options-icon"}),this.props.title,this.props.tip&&e.createElement(fs,{id:this.props.id+"tooltip",tip:this.props.tip}))))}}class ws extends e.Component{constructor(e){super(e),this.state={text:e.outvar in e.data?e.data[e.outvar].text:e.fallback?e.fallback.text:"",checked:e.outvar in e.data?e.data[e.outvar].checked:!!e.fallback&&e.fallback.checked,valid:!0},this.handleText=this.handleText.bind(this),this.handleCheck=this.handleCheck.bind(this),this.props.target.construct(this.props.outvar,this.state)}handleText(e){let t={...this.state,text:e.target.value,valid:!this.props.validator||this.props.validator(e.target.value)};this.setState(t),this.props.target.update(this.props.outvar,t)}handleCheck(){let e={...this.state,checked:!this.state.checked};this.setState(e),this.props.target.update(this.props.outvar,e)}static getDerivedStateFromProps(e,t){return t.checked!==e.data[e.outvar].checked||t.text!==e.data[e.outvar].text?{checked:e.data[e.outvar].checked,text:e.data[e.outvar].text,valid:!this.props.validator||this.props.validator(e.data[e.outvar].text)}:null}render(){let t=this.props.id+this.props.outvar;return e.createElement("div",{className:"shop-switch-line",key:this.props.id},e.createElement("div",{className:"form-check form-switch",key:t},e.createElement("input",{className:"form-check-input",type:"checkbox",role:"switch",id:t+"switch",checked:this.state.checked,onClick:this.handleCheck,onChange:this.handleCheck}),e.createElement("label",{className:"form-check-label",htmlFor:t+"switch"},this.props.icon&&e.createElement("img",{src:`/images${this.props.icon}`,className:"options-icon"}),this.props.title,this.props.tip&&e.createElement(fs,{id:this.props.id+"tooltip",tip:this.props.tip}))),e.createElement("input",{type:"text",className:"form-control form-control-sm "+(this.state.valid?"":"options-invalid"),id:t+"line",onChange:this.handleText,value:this.state.text,disabled:!this.state.checked}))}}(0,ta.add_operation)("lower",(e=>e&&e.toLowerCase(e))),(0,ta.add_operation)("upper",(e=>e&&e.toUpperCase(e))),(0,ta.add_operation)("capitalize",(e=>e&&e.capitalizeFirstLetter(e)));const Es={Radio:function(t,n,r,o){let{title:a,variants:i,outvar:l,fallback:s,icon:c,tip:u,classes:d}=o;return e.createElement(bs,{target:t,title:a,variants:i,outvar:l,icon:c,tip:u,key:n,fallback:s,classes:d,id:n,data:r})},Switch:function(t,n,r,o){let{title:a,fallback:i,outvar:l,icon:s,tip:c,classes:u}=o;return e.createElement(ys,{target:t,title:a,fallback:i,outvar:l,icon:s,tip:c,key:n,id:n,data:r,classes:u})},Line:function(t,n,r,o){let{title:a,fallback:i,outvar:l,icon:s,tip:c,classes:u,validator:d}=o;return e.createElement(vs,{target:t,title:a,fallback:i,outvar:l,icon:s,tip:c,key:n,id:n,data:r,classes:u,validator:d&&hs[d.name](d.params)})},SwitchLine:function(t,n,r,o){let{title:a,fallback:i,outvar:l,icon:s,tip:c,classes:u,validator:d}=o;return e.createElement(ws,{target:t,title:a,fallback:i,outvar:l,icon:s,tip:c,key:n,id:n,data:r,classes:u,validator:d&&hs[d.name](d.params)})},Label:function(t,n,r,o){let{content:a}=o;const i=(0,ta.apply)(a,r).flat().join("");return e.createElement("div",{id:n+"label",key:n+"label",className:"options-label"},i)},Default:function(t,n){return e.createElement("div",{key:t+n,style:{background:"red"}},"UNIMPLEMENTED")}},xs=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase();function Ss(e){return{crate_mode:e.crate_mode}}function ks(e,t){let n=xs(e),r={};return"array"===n?e.map(((e,n)=>{Object.assign(r,ks(e,t))})):"object"===n&&("string"!==xs(e.type)||"object"!==xs(e.args)&&"array"!==xs(e.items)?Object.assign(r,ks((0,ta.apply)(e,t),t)):e.type in Es?r[e.args.outvar]=t[e.args.outvar]:"Group"===e.type&&Object.assign(r,ks((0,ta.apply)(e.items,t),t))),r}const Cs={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let _s;const Os=new Uint8Array(16);function Ns(){if(!_s&&(_s="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _s(Os)}const Ds=[];for(let e=0;e<256;++e)Ds.push((e+256).toString(16).slice(1));const Is=function(e,t,n){if(Cs.randomUUID&&!t&&!e)return Cs.randomUUID();const r=(e=e||{}).random||(e.rng||Ns)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return Ds[e[t+0]]+Ds[e[t+1]]+Ds[e[t+2]]+Ds[e[t+3]]+"-"+Ds[e[t+4]]+Ds[e[t+5]]+"-"+Ds[e[t+6]]+Ds[e[t+7]]+"-"+Ds[e[t+8]]+Ds[e[t+9]]+"-"+Ds[e[t+10]]+Ds[e[t+11]]+Ds[e[t+12]]+Ds[e[t+13]]+Ds[e[t+14]]+Ds[e[t+15]]}(r)},Ps={eem:e=>e.options_data&&!1!==e.options_data.ext_pwr&&!1!==e.options_data.mono_eem?!0===e.options_data.ext_pwr?0:!0===e.options_data.mono_eem||"1 EEM"===e.options_data.n_eem?1:"3 EEM"===e.options_data.n_eem?3:e.consumes&&e.consumes.eem||0:e.consumes&&e.consumes.eem||0,clk:e=>e.options_data&&(!0===e.options_data.ext_clk||e.options_data.ext_clk&&!0===e.options_data.ext_clk.checked)?0:e.consumes&&e.consumes.clk||0,idc:e=>e.consumes&&e.consumes.idc||0,tec:e=>e.options_data&&!1===e.options_data.tec?0:e.consumes&&e.consumes.tec,hp:e=>e.consumes&&e.consumes.hp||0};function Rs(e){return(t,n)=>{let r=0;for(let o=n+1;o<t.length&&(r+=Ps[e](t[o]),!t[o].resources||!t[o].resources.find(((t,n)=>t.name===e)));o++);return r}}const Ts={eem:Rs("eem"),clk:Rs("clk"),idc:Rs("idc"),hp:Rs("hp"),tec:Rs("tec")};function As(e){return Math.trunc(e/4)}const Ls={reminder:{priority:1,icon:"/images/shop/icon-reminder.svg",color:"#0d3547"},warning:{priority:2,icon:"/images/shop/icon-warning.svg",color:"#c75e5e"}},Ms=(e,t)=>e.find((e=>e.name===t)),Bs=e=>(t,n,r)=>{const o=Ms(r,e);return o.occupied>o.max},Fs=e=>(t,n,r)=>Ps[e](t[n])>0&&!((e,t,n)=>e.slice(0,t).find((e=>e.resources&&Ms(e.resources,n))))(t,n,e),js={eem_resource:{level:"warning",trigger:Bs("eem"),message:"Insufficient EEM connectors"},no_eem_source:{level:"warning",trigger:Fs("eem"),message:"This card needs a card that provides a EEM connector (e.g. Kasli) at its left."},idc_resource:{level:"warning",trigger:Bs("idc"),message:"Insufficient IDC connectors."},no_idc_source:{level:"warning",trigger:Fs("idc"),message:"Should be after a Zotino or a HD68-IDC or with another IDC adapter."},clk_resource:{level:"warning",trigger:Bs("clk"),message:"Insufficient clock connectors."},no_clk_source:{level:"warning",trigger:Fs("clk"),message:"This card needs either a card that provides a clock source (e.g. Kasli or Clocker) at its left or use an external clock source."},eem_wiring_constraint:{level:"reminder",trigger:(e,t,n)=>{const r=((e,t,n)=>e.slice(t+1).findIndex((e=>e.resources&&Ms(e.resources,n)))+t+1)(e,t,"eem");return r-t==1},message:"Due to wiring constraints, the carrier can only connect to EEM cards immediately at its right, without crossing another carrier."},default:{level:"warning",trigger:(e,t,n)=>!0,message:"This item has unimplemented warning"}};function zs(e){let t={priority:0,icon:null};for(const n of e)Ls[n.level].priority>t.priority&&(t=Ls[n.level]);return t}function $s(e){const t=Ls[e];return{icon:t.icon,color:t.color}}const Us={overfit:{message:"You have reached the maximum number of slots allowed for this crate. Consider removing cards.",level:"warning",trigger:(e,t)=>{const n=cc.getState().crateParams(e.crate_mode).hp;return t>n&&n>0}},underfit_rack:{message:"The selected cards fit in a 42hp desktop crate, consider switching to it for a more compact system",level:"reminder",trigger:(e,t)=>{const n=cc.getState().crate_modes.desktop.hp;return e.crate_mode===cc.getState().crate_modes.rack.id&&t<n}}};function Ws(e){const t=Ts.hp(e.items,-1);let n=[];return Object.entries(Us).forEach(((r,o)=>{let[a,i]=r;i.trigger(e,t)&&n.push({...i,id:a,trigger:void 0})})),[n,t]}function Hs(e){const t=cc.getState().crate_options,n=cc.getState().order_options,r=cc.getState().order_options_data;return JSON.stringify({crates:Array.from(e.map(((e,n)=>({items:Array.from(e.items.map(((e,t)=>({pn:e.name_number,options:e.options_data&&e.options?ks(e.options,e.options_data):null})))),type:e.crate_mode,options:ks(t,e.options_data)})))),options:ks(n,r)},null,2)}const Vs={OK:0,Empty:1,Invalid:2};function Gs(e){return e&&""!==e.trim()?e&&!e.match(/^\w+([\+\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)?Vs.Invalid:Vs.OK:Vs.Empty}function qs(t){let{options:n,data:r,target:o,id:a}=t,i=xs(n);return"array"===i?Array.from(n.map(((e,t)=>qs({options:e,data:r,target:o,id:a+t})))):"object"===i?"string"!==xs(n.type)||"object"!==xs(n.args)&&"array"!==xs(n.items)?qs({options:(0,ta.apply)(n,r),data:r,target:o,id:a}):n.type in Es?Es[n.type](o,a+n.type,r,n.args):"Group"===n.type?e.createElement("div",{className:"border rounded options-group",key:a+"group"},qs({options:(0,ta.apply)(n.items,r),data:r,target:o,id:a})):Es.Default(n.type,a+"missing"):void 0}function Ks(e){let{options:t,data:n}=e,r=xs(t);return"array"===r?Array.from(t.map(((e,t)=>Ks({options:e,data:n})))).filter(((e,t)=>!!e)).flat():"object"===r?"string"===xs(t.title)?t:Ks({options:(0,ta.apply)(t,n),data:n}):null}function Qs(t){let{address:n}=t;const r=`${n}@${Vo}`;return e.createElement("a",{href:"mailto:"+r},r)}const Ys={OK:e.createElement(e.Fragment,null,"We've received your request and will be in contact soon."),ERROR:e.createElement(e.Fragment,null,"We cannot receive your request. Try using the export by coping the configuration and send it to us at ",e.createElement(Qs,{address:"sales"}))},Xs=e=>{let t={};return Object.entries(e).forEach(((e,n)=>{let[r,o]=e;t[o.name_number]=r})),t},Js=(e,t)=>({cards:Ho.items,groups:Ho.columns.catalog,cards_list:qo,currency:Ho.currency,pn_to_cards:Xs(Ho.items),getCardDescription:e=>t().cards[t().cards_list[e]],getCardDescriptionByPn:e=>t().cards[t().pn_to_cards[e]],cardIndexById:e=>t().cards_list.findIndex((t=>e===t))}),Zs=(e,t)=>({notificationCrateId:null,notificationCardIndex:null,notificationTimer:null,_showNotification:(t,n)=>e((e=>({notificationCrateId:t,notificationCardIndex:n,notificationTimer:setTimeout((()=>{e.hideNotification()}),5e3)}))),showNotification:(e,n)=>{t().hideNotification(),setTimeout((()=>t()._showNotification(e,n)),100)},hideNotification:()=>e((e=>({notificationCrateId:null,notificationCardIndex:null,notificationTimer:e.notificationTimer&&clearTimeout(e.notificationTimer)||null})))}),ec=(e,t)=>({search_index:Array.from(Object.values(Ho.items).map(((e,t)=>[(e.name+" "+e.name_number+" "+e.name_codename).toLowerCase(),e.id]))),search_bar_value:"",listed_cards:[],updateSearchBar:n=>e((e=>({search_bar_value:n,listed_cards:n.length>0?Array.from(t().search_index.filter(((e,t)=>e[0].includes(n.toLowerCase()))).map(((e,n)=>{let[r,o]=e;return t().cards_list.findIndex((e=>e===o))}))):[]})))}),tc=(e,t)=>({crate_modes:Ho.crateModes,modes_order:Ho.crateModeOrder,crateParams:e=>t().crate_modes[e]}),nc=(e,t)=>({crate_options:Ho.crateOptions.options,crate_prices:Ho.crateOptions.prices,fillExtCrateData:t=>e((e=>({crates:e.crates.map(((e,n)=>{if(t===e.id){const t=e.options_data||{};return{...e,options_data:{...t,ext_data:Ss(e)}}}return e}))}))),_updateCrateOption:(t,n)=>e((e=>({crates:e.crates.map(((e,r)=>{if(t===e.id){const t=e.options_data||{};return{...e,options_data:{...t,...n}}}return e}))}))),updateCrateOptions:(e,n)=>{t().fillExtCrateData(e),t().fillOrderExtData(),t()._updateCrateOption(e,n),t()._updateTotalOrderPrice()}}),rc=(e,t)=>({order_options:Ho.orderOptions.options,order_prices:Ho.orderOptions.prices,shipping_summary:Ho.orderOptions.shippingSummary,order_options_data:{},fillOrderExtData:()=>e((e=>{return{order_options_data:{...e.order_options_data,ext_data:(t=e.crates,n=e.modes_order,{has_crate:t.filter((e=>n.includes(e.crate_mode))).length>=1})}};var t,n})),_updateOrderOptions:t=>e((e=>({order_options_data:{...e.order_options_data,...t}}))),updateOrderOptions:e=>{t()._updateOrderOptions(e),t()._updateTotalOrderPrice(),t().fillOrderExtData()}}),oc=(e,t)=>({isTouch:window.isTouchEnabled(),isMobile:window.deviceIsMobile(),sideMenuIsOpen:!1,showCardAddedFeedback:!1,showNoDestination:!1,timerAdded:null,_switchSideMenu:()=>e((e=>({sideMenuIsOpen:!e.sideMenuIsOpen}))),switchSideMenu:()=>{t().sideMenuIsOpen||t().hideNotification(),t()._switchSideMenu()},cardAdded:()=>e((e=>({showCardAddedFeedback:!0,showNoDestination:!1,timerAdded:(e.timerAdded?clearTimeout(e.timerAdded):null)||e.isMobile&&setTimeout((()=>{t()._endCardAdded()}),2e3)}))),noDestinationWarning:()=>e((e=>({showCardAddedFeedback:!0,showNoDestination:!0,timerAdded:(e.timerAdded?clearTimeout(e.timerAdded):null)||setTimeout((()=>{t()._endCardAdded()}),2e3)}))),_endCardAdded:()=>e((e=>({showCardAddedFeedback:!1,timerAdded:e.timerAdded?clearTimeout(e.timerAdded):null})))}),ac=(e,t)=>({importShouldOpen:!1,importValue:{value:"",error:Vs.OK},openImport:()=>e((e=>({importShouldOpen:!0}))),closeImport:()=>e((e=>({importShouldOpen:!1}))),_loadDescription:()=>e((e=>{const t=function(e){const t=JSON.parse(e),n=t.crates,r=cc.getState().getCardDescriptionByPn,o=Array.from(n.map(((e,t)=>({id:"no_crate"===e.type?"spare":"crate"+t,name:"no_crate"===e.type?"Spare cards":void 0,options_data:e.options,crate_mode:e.type,items:Array.from(e.items.map(((e,t)=>({...r(e.pn),id:Is(),options_data:e.options||{}})))),warnings:[],occupiedHP:0}))));return{order_options_data:t.options,crates:o}}(e.importValue.value);return{importShouldOpen:!1,crates:t.crates,order_options_data:t.order_options_data}})),loadDescription:()=>{t()._loadDescription(),t().fillOrderExtData(),t().crates.forEach(((e,n)=>{t().fillExtData(e.id),t().fillWarnings(e.id),t().fillExtCrateData(e.id)})),t()._updateTotalOrderPrice(),t().showNotification(t().active_crate,null)},updateImportDescription:t=>e((e=>{return{importValue:{value:t,error:(n=t,n&&""!==n.trim()?n&&!function(e){let t,n;try{const r=JSON.parse(e);t=r.crates,n=r.options}catch(e){return!1}if(!n)return!1;const r=cc.getState().crate_modes,o=cc.getState().modes_order,a=cc.getState().pn_to_cards;try{for(const e of t){if(!(e.type&&e.items&&e.options&&e.type in r))return!1;for(const t of e.items)if(!(t.pn in a)||void 0===t.options)return!1}}catch(e){return!1}return 1===t.filter((e=>!o.includes(e.type))).length&&"no_crate"===t[t.length-1].type}(n)?Vs.Invalid:Vs.OK:Vs.Empty)}};var n}))}),ic=(e,t)=>({isProcessing:!1,shouldShowRFQFeedback:!1,processingResult:{status:Vs.OK,message:""},API_RFQ:Go,email:{value:"",error:null},note:{value:"",error:Vs.OK},description:"",shouldShowDescription:!1,updateEmail:t=>e((e=>({email:{value:t,error:Gs(t)}}))),updateNote:t=>e((e=>{return{note:{value:t,error:(n=t,n&&""!==n.trim()?Vs.OK:Vs.Empty)}};var n})),resetEmailValidation:()=>e((e=>({email:{value:e.email.value,error:Vs.OK}}))),_revalidateForm:()=>e((e=>({email:{value:e.email.value,error:Gs(e.email.value)},note:{value:e.note.value,error:Gs(e.note.value)}}))),updateDescription:()=>e((e=>({description:Hs(e.crates)}))),showDescription:()=>e((e=>({description:Hs(e.crates),shouldShowDescription:!0}))),closeDescription:()=>e((e=>({shouldShowDescription:!1}))),_submitForm:()=>e((e=>({isProcessing:!0}))),finishSubmitForm:t=>e((e=>({isProcessing:!1,shouldShowRFQFeedback:!0,processingResult:t}))),submitDisabled:()=>t().email.error!==Vs.OK,submitForm:()=>{t().updateDescription(),t()._revalidateForm(),t()._submitForm(),t().submitDisabled()||fetch(t().API_RFQ,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t().email.value,note:t().note.value,configuration:t().description})}).then((e=>{if(200!==e.status)throw Error("Response status is not OK: "+e.status+".\n"+e);t().finishSubmitForm({status:Vs.OK,message:Ys.OK})}),(e=>{console.error("Request rejected, reason:",e),t().finishSubmitForm({status:Vs.Invalid,message:Ys.ERROR})})).catch((e=>{console.error("Request failed, reason:",e),t().finishSubmitForm({status:Vs.Invalid,message:Ys.ERROR})}))},closeRFQFeedback:()=>e((e=>({shouldShowRFQFeedback:!1})))}),lc=(e,t)=>({highlighted:{crate:"",card:0},highlightedTimer:null,highlightCard:(n,r)=>e((e=>({highlighted:{crate:n,card:r},highlightedTimer:(e.highlightedTimer?clearTimeout(e.highlightedTimer):null)||e.isTouch&&setTimeout((()=>{t().highlightReset()}),2e3)}))),highlightReset:()=>e((e=>({highlighted:{crate:"",card:0},highlightedTimer:e.highlightedTimer?clearTimeout(e.highlightedTimer):null})))}),sc=(e,t)=>({crates:Ho.columns.crates,active_crate:"crate0",_defaultCrates:Array.from(Ho.columns.crates),total_order_price:0,_newCrate:t=>e((e=>({crates:e.crates.toSpliced(-1,0,{...e._defaultCrates[0],id:t||"crate"+e.crates.length}),active_crate:t||"crate"+e.crates.length}))),_delCrate:t=>e((e=>({crates:e.crates.filter((n=>n.id!==t||!e.modes_order.includes(n.crate_mode))),active_crate:e.active_crate===t?null:e.active_crate}))),_setCrateMode:(t,n)=>e((e=>({crates:e.crates.map(((e,r)=>e.id===t?{...e,crate_mode:n}:e))}))),setActiveCrate:t=>e((e=>({active_crate:t}))),_addCardFromCatalog:(t,n,r)=>e((e=>{const o=("array"===xs(n)?n:[n]).map(((t,n)=>e.cards_list[t])),a=t||e.active_crate;return a?{crates:e.crates.map(((t,n)=>a===t.id?(r=null!=r?r:t.items.length,{...t,items:t.items.toSpliced(r,0,...o.map(((t,n)=>({...e.cards[t],id:Is()}))))}):t))}:{}})),_moveCard:(t,n,r,o)=>e((e=>{const a=e.crates.find(((e,n)=>t===e.id)).items[n];return{crates:e.crates.map(((e,i)=>{if(r===t&&r===e.id){let t=Array.from(e.items),r=t.splice(n,1)[0];return t.splice(o,0,r).filter(((e,t)=>!!e)),{...e,items:t}}return r===e.id?{...e,items:e.items.toSpliced(o,0,a)}:t===e.id?{...e,items:e.items.toSpliced(o,1)}:e}))}})),_deleteCard:(t,n)=>e((e=>({crates:e.crates.map(((e,r)=>t===e.id?{...e,items:e.items.toSpliced(n,1)}:e))}))),_clearCrate:t=>e((e=>({crates:e.crates.map(((e,n)=>t===e.id?{...e,items:[]}:e))}))),clearAll:()=>e((e=>({crates:e._defaultCrates}))),_updateOptions:(t,n,r)=>e((e=>({crates:e.crates.map(((e,o)=>{if(t===e.id){let t=Array.from(e.items);return t[n]={...t[n],options_data:{...t[n].options_data,...r}},{...e,items:t}}return e}))}))),fillWarnings:n=>e((e=>({crates:e.crates.map(((e,r)=>{if(n===e.id){let n=Array.from(e.items);const r=!!t().crateParams(e.crate_mode).warnings_disabled;n=function(e,t){return e.map(((n,r)=>(n.counted_resources=t?[]:function(e,t){if(!e[t].resources)return null;let n=[];return e[t].resources.forEach(((r,o)=>{Ts[r.name]&&n.push({name:r.name,occupied:Ts[r.name](e,t),max:r.max})})),n}(e,r),n)))}(n,r),n=function(e,t){return e.map(((n,r)=>n.warnings?(n.show_warnings=t?[]:n.warnings.map(((t,o)=>js[t]?js[t].trigger(e,r,n.counted_resources)?{trigger:void 0,name:t,...js[t]}:null:js.default)).filter(((e,t)=>!!e)),n):n))}(n,r);const[o,a]=Ws(e);return{...e,items:n,warnings:o,occupiedHP:a}}return e}))}))),fillExtData:t=>e((e=>({crates:e.crates.map(((e,n)=>{if(t===e.id){let t=Array.from(e.items);return t=t.map(((e,n)=>e.options?(e.options_data||(e.options_data={}),e.options_data.ext_data=function(e,t){return{has_other_dio:e.filter(((e,n)=>t!==n&&e.name&&e.name.endsWith("-TTL"))).length>0,has_dds:e.filter(((e,t)=>!("DDS"!==e.name||"4410"!==e.name_number||e.options_data&&e.options_data.mono_eem))).length>0,has_sampler:e.filter(((e,t)=>!("Sampler"!==e.name||e.options_data&&e.options_data.mono_eem))).length>0,has_thermostat:e.filter(((e,n)=>t!==n&&e.name_number&&"8451"===e.name_number)).length>0}}(t,n),e):e)),{...e,items:Array.from(t)}}return e}))}))),_updateTotalOrderPrice:()=>e((e=>{let n=0;t().crates.forEach(((e,r)=>{n+=t().crate_modes[e.crate_mode].price;const o=Ks({options:t().crate_prices,data:e.options_data||{}});n+=o?o.reduce(((e,t)=>e+t.price),0):0,e.items.forEach(((e,t)=>{n+=e.price}))}));const r=Ks({options:t().order_prices,data:t().order_options_data||{}});return n+=r?r.reduce(((e,t)=>e+t.price),0):0,{total_order_price:n}})),newCrate:()=>{const e="crate"+t().crates.length;t()._newCrate(e),t().fillExtData(e),t().fillExtCrateData(e),t().fillOrderExtData(),t().fillWarnings(e),t()._updateTotalOrderPrice()},setCrateMode:(e,n)=>{t()._setCrateMode(e,n),t().fillExtData(e),t().fillExtCrateData(e),t().fillOrderExtData(),t().fillWarnings(e),t().setActiveCrate(e),t()._updateTotalOrderPrice()},delCrate:e=>{t()._delCrate(e),t().fillOrderExtData(),t()._updateTotalOrderPrice()},addCardFromCatalog:(e,n,r,o)=>{const a=e||t().active_crate;if(!a)return console.warn("No destination"),t().noDestinationWarning(),{};t().showNotification(a,r),t()._addCardFromCatalog(a,n,r),t().fillExtData(a),t().fillWarnings(a),t().setActiveCrate(a),t()._updateTotalOrderPrice(),o||t().cardAdded()},moveCard:(e,n,r,o)=>{t()._moveCard(e,n,r,o),t().fillExtData(r),t().fillWarnings(r),t().setActiveCrate(r),t()._updateTotalOrderPrice(),e!==r&&(t().fillExtData(e),t().fillWarnings(e))},deleteCard:(e,n)=>{t()._deleteCard(e,n),t().fillExtData(e),t().fillWarnings(e),t()._updateTotalOrderPrice(),e===t().highlighted.crate&&n===t().highlighted.card&&t().highlightReset()},clearCrate:e=>{t()._clearCrate(e),t().fillWarnings(e),t()._updateTotalOrderPrice()},updateOptions:(e,n,r)=>{t()._updateOptions(e,n,r),t().fillExtData(e),t().fillWarnings(e)},initExtData:()=>{t().fillOrderExtData(),t().crates.forEach(((e,n)=>{t().fillExtData(e.id),t().fillExtCrateData(e.id)})),t()._updateTotalOrderPrice()}}),cc=(uc=function(){return{...Zs(...arguments),...Js(...arguments),...ec(...arguments),...tc(...arguments),...sc(...arguments),...ic(...arguments),...oc(...arguments),...lc(...arguments),...ac(...arguments),...nc(...arguments),...rc(...arguments)}})?Wo(uc,undefined):Wo;var uc,dc;function pc(t){let{aside:n,main:r}=t;const o=cc((e=>e.sideMenuIsOpen)),a=cc((e=>e.switchSideMenu)),i=cc((e=>e.showCardAddedFeedback)),l=cc((e=>e.showNoDestination));return e.createElement("div",{className:"layout"},e.createElement("aside",{className:"aside "+(o?"menu-opened":"")},n),o?e.createElement("section",{className:"main",onClick:a},r):e.createElement("section",{className:"main"},r),i?l?e.createElement("div",{className:"feedback-add-failure"},"No cards added: all crates are closed"):e.createElement("div",{className:"feedback-add-success"},"✓ added"):null)}function fc(){return fc=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},fc.apply(null,arguments)}function mc(t){let{datasheet_file:n,datasheet_name:r}=t;return n&&r&&e.createElement("div",{className:"ds"},e.createElement("span",{className:"doc-icon"}),e.createElement("a",{href:n,target:"_blank",rel:"noopener noreferrer"},r))}function gc(t){let{specs:n}=t;return n&&n.length>0&&e.createElement("ul",null,n.map(((t,n)=>e.createElement("li",{key:n},t))))}function hc(t){let{onAdd:n}=t;return e.createElement("button",{onClick:n},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))}function vc(t){let{card_index:n}=t;const r=cc((e=>e.getCardDescription)),o=cc((e=>e.currency)),a=cc((e=>e.addCardFromCatalog)),i=r(n);return e.createElement("section",{className:"productItem"},e.createElement("div",{className:"content"},e.createElement("h3",{style:{marginBottom:i.name_codename?"5px":"20px"}},i.name_number," ",i.name),i.name_codename?e.createElement("p",null,i.name_codename):null,e.createElement("div",{className:"price"},`${o} ${Yo(i.price)}`),e.createElement(gc,{specs:i.specs}),e.createElement(mc,{datasheet_file:i.datasheet_file,datasheet_name:i.datasheet_name})),e.createElement("div",{className:"content"},e.createElement(hc,{onAdd:()=>a(null,n,null)}),e.createElement(ho,{draggableId:i.id+n,index:n},((t,n)=>e.createElement(e.Fragment,null,e.createElement("img",fc({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:Ko(t.draggableProps.style,n,!0),src:i.image})),n.isDragging&&e.createElement("img",{className:"simclone",src:i.image}))))))}function bc(){const t=cc((e=>e.groups)),n=cc((e=>e.cards)),r=t.categories.map((e=>({name:e.name,items:e.itemIds.map((e=>n[e]))})));let o=-1;const a=r.map(((t,n)=>e.createElement("div",{className:"accordion-item",key:`${t.name}`},e.createElement("h2",{className:"accordion-header"},e.createElement("button",{className:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":`#collapse${n}`,"aria-expanded":"true","aria-controls":`collapse${n}`},t.name)),e.createElement("div",{id:`collapse${n}`,className:"accordion-collapse collapse","aria-labelledby":"headingOne","data-bs-parent":"#accordion_categories"},e.createElement("div",{className:"accordion-body"},t.items.map((t=>(o++,e.createElement(vc,{card_index:o,key:t.id})))))))));return e.createElement("div",{className:"accordion accordion-flush",id:"accordion_categories"},a)}function yc(){const t=cc((e=>e.search_bar_value)),n=cc((e=>e.updateSearchBar));return e.createElement("div",{className:"search-catalog form-outline"},e.createElement("input",{type:"search",id:"search_bar",className:"search-catalog-input form-control",placeholder:"Search",value:t,onChange:e=>n(e.target.value),"aria-label":"Search"}))}function wc(){const t=cc((e=>e.listed_cards));return e.createElement(e.Fragment,null,t.map(((t,n)=>e.createElement(vc,{card_index:t,key:"searched_"+t}))))}function Ec(){return e.createElement("div",{className:"gradient-bottom"})}function xc(){return xc=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},xc.apply(null,arguments)}function Sc(){const t=cc((e=>e.groups)),n=(cc((e=>e.cards)),cc((e=>e.switchSideMenu))),r=cc((e=>e.isMobile)),o=cc((e=>e.listed_cards.length>0&&e.search_bar_value.length>0)),a=cc((e=>0===e.listed_cards.length&&e.search_bar_value.length>0));return e.createElement(Bo,{droppableId:t.id,isDropDisabled:!1},(t=>e.createElement("div",xc({className:"catalog-container",ref:t.innerRef},t.droppableProps),e.createElement("div",{className:"catalog-bar"},e.createElement(yc,null),r?e.createElement("div",{className:"mobileCloseMenu"},e.createElement("button",{onClick:n},e.createElement("img",{src:"/images/shop/icon-close-white.svg",alt:"add"}))):null),o&&e.createElement(wc,null)||a&&e.createElement("p",{className:"no-results"},"No results")||e.createElement(bc,null),t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder),e.createElement(Ec,null))))}function kc(t){let{crate_index:n}=t;const r=cc((e=>e.currency)),o=cc((e=>e.crateParams)),a=cc((e=>e.clearCrate)),i=cc((e=>e.delCrate)),l=cc((e=>e.crates[n].crate_mode)),s=cc((e=>e.crates[n].id)),c=cc((e=>e.crates[n].name)),u=cc((e=>e.modes_order)).includes(l);let d=o(l);return e.createElement("tr",{key:"summary_crate_"+s},e.createElement("td",{className:"item-card-name"},c||d.name+" #"+n),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex"},u&&`${r} ${Yo(d.price)}`,e.createElement("button",{onClick:()=>a(s)},e.createElement("img",{src:"/images/shop/icon-clear.svg",alt:"empty crate"})),u?e.createElement("button",{onClick:()=>i(s)},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove crate"})):e.createElement("span",{className:"span-with-margin"}))))}function Cc(){return Cc=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},Cc.apply(null,arguments)}function _c(t){let{crate_index:n,card_index:r}=t;const o=cc((e=>e.crates[n].items[r].show_warnings),Zo),a=zs(o);return e.createElement(ds,{placement:"bottom",trigger:["click","hover","focus"],overlay:t=>{let{arrowProps:n,hasDoneInitialMeasure:i,show:l,style:s,...c}=t;return e.createElement("div",Cc({className:"k-popup-warning",style:{...s,backgroundColor:a.color}},c),o.map(((t,n)=>e.createElement("p",{className:"rule warning",key:`warnmsg_${r}_${t.name}`},e.createElement("i",null,t.message)))))},rootClose:!0},e.createElement("img",{className:"alert-warning p-0",src:a.icon}))}function Oc(t){let{crate_index:n,card_index:r}=t;const o=zs(cc((e=>e.crates[n].items[r].show_warnings),Zo));return o.priority===Ls.warning.priority?e.createElement("img",{className:"alert-warning align-self-start d-block",src:o.icon}):e.createElement("span",{className:"alert-warning align-self-start d-block"})}function Nc(t){const n=e.useRef(null),r=e.useRef(t);return e.useLayoutEffect((()=>{r.current=t})),e.useEffect((()=>{const e=e=>{const t=n.current;t&&!t.contains(e.target)&&r.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[]),n}function Dc(){return Dc=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},Dc.apply(null,arguments)}function Ic(t){let{id:n,tip:r,content:o,sideMenuIsOpen:a,show:i,onHide:l}=t;return e.createElement(ds,{placement:"top",trigger:["click","hover"],style:{display:"inline"},show:i,overlay:t=>e.createElement(Bl,Dc({id:n},t),r),rootClose:!a,onToggle:l,popperConfig:{strategy:"fixed"}},o)}function Pc(t){let{options:n,data:r,target:o,id:a,big:i,first:l,last:s,options_class:c,sideMenuIsOpen:u,displayNotification:d,onHideNotification:p}=t;const[f,m]=(0,e.useState)(!1),g=Nc((e=>{"mousedown"===e.type&&m(!1)}));let h=`overlayVariant border rounded ${i?"overlay-bigcard":"overlay-smallcard"} ${!i&&l?"overlay-first":""} ${i||!s||l?"":"overlay-last"} ${c||""}`;return e.createElement("div",{ref:g},e.createElement(Ic,{id:"processed_options_notification"+a,tip:"Customization options available",sideMenuIsOpen:u,show:d,onHide:p,content:e.createElement("img",{className:"alert-info",src:f?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",onClick:e=>{m(!f)}})}),e.createElement("div",{style:{display:f?"flex":"none"},className:h},e.createElement(qs,{options:n,data:r,key:"processed_options_"+a,id:"processed_options_"+a,target:o})))}function Rc(t){let{id:n,options:r,data:o}=t;const[a,i]=(0,e.useState)(!1),[l,s]=(0,e.useState)({x:0,y:0}),[c,u]=(0,e.useState)({w:0,h:0});let d=ks(r,o);const p=()=>{i(!1),document.removeEventListener("scroll",g,!0)},f=Nc(p),m=()=>{let e=document.getElementById(n+"img");if(!e)return void document.removeEventListener("scroll",g,!0);let t=e.getBoundingClientRect(),r=(t.left+t.right)/2,o=(t.top+t.bottom)/2;r+c.w>window.innerWidth?s({x:r-c.w-20,y:o-c.h/2}):s({x:r-c.w/2,y:o-c.h-20})},g=e=>{e.target!==document.getElementById(n)&&p()};return(0,e.useEffect)((()=>{if(a){let e=document.getElementById(n),t=e.offsetWidth,r=e.offsetHeight;u({w:t,h:r}),m()}}),[a]),(0,e.useEffect)((()=>{a&&m()}),[a,c]),e.createElement("div",{ref:f},e.createElement("img",{className:"alert-info d-block",src:a?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",id:n+"img",onClick:e=>{i(!a),a||document.addEventListener("scroll",g,!0)}}),e.createElement("div",{style:{display:a?"flex":"none",top:l.y,left:l.x},className:"overlayVariant card border rounded",id:n},e.createElement("div",{className:"card-body"},Array.from(Object.entries(d).filter(((e,t)=>{let[n,r]=e;return"ext_data"!==n})).map(((t,r)=>{let[o,a]=t;return e.createElement("p",{className:"card-text",key:n+o},e.createElement("i",null,o),": ",(e=>{let t=xs(e);if("string"===t)return e;if("object"===t){if(!1===e.checked)return"off";if(!0===e.checked&&e.text)return e.text}return JSON.stringify(e)})(a))}))))))}function Tc(t){let{crate_index:n,card_index:r,first:o,last:a}=t;const i=cc((e=>e.crates[n].id)),l=cc((e=>e.crates[n].items[r].options)),s=cc((e=>e.crates[n].items[r].options_data)),c=cc((e=>e.crates[n].items[r].size)),u=cc((e=>e.crates[n].items[r].id)),d=cc((e=>e.crates[n].items[r].options_class)),p=cc((e=>e.sideMenuIsOpen)),f=(cc((e=>e.notificationTimer)),cc((e=>e.hideNotification))),m=cc((e=>e.notificationCrateId===i&&(e.notificationCardIndex===r||e.crates[n].items.length+(e.notificationCardIndex||-1)===r))),g=cc((e=>e.updateOptions));return e.createElement(Pc,{options:l,data:s,options_class:d,key:"popover"+i+u,id:"popover"+i+u,big:"big"===c,first:o,last:a,sideMenuIsOpen:p,onHideNotification:f,displayNotification:m,target:{construct:(e,t)=>{s[e]=t},update:(e,t)=>{e in s&&(s[e]=t),g(i,r,{[e]:t})}}})}function Ac(t){let{crate_index:n,card_index:r}=t;const o=cc((e=>e.crates[n].items[r].id)),a=cc((e=>e.crates[n].items[r].options)),i=cc((e=>e.crates[n].items[r].options_data));return e.createElement(Rc,{id:o+"options",options:a,data:i})}function Lc(t){let{crate_index:n,card_index:r}=t;const o=cc((e=>e.currency)),a=cc((e=>e.deleteCard)),i=cc((e=>e.highlightCard)),l=cc((e=>e.highlightReset)),s=cc((e=>e.crates[n].id===e.highlighted.crate&&r===e.highlighted.card)),c=cc((e=>e.crates[n].id)),u=cc((e=>e.crates[n].items[r]),((e,t)=>e.id===t.id)),d=cc((e=>e.crates[n].items[r].show_warnings),ea),p=cc((e=>e.crates[n].items[r].options_data),ea),f=cc((e=>!!e.crateParams(e.crates[n].crate_mode).warnings_disabled)),m=!f&&u&&u.options&&u.options.length>0,g=!f&&p&&Object.keys(p).length>0,h=!f&&d&&d.length>0;return e.createElement("tr",{key:"summary_crate_"+c+"_"+r,className:"hoverable "+(s?"selected":""),onClick:()=>i(c,r),onMouseEnter:()=>i(c,r),onMouseLeave:()=>l()},e.createElement("td",{className:"item-card-name tabbed"},e.createElement("div",null,`${u.name_number} ${u.name} ${u.name_codename}`)),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex align-content-center"},`${o} ${Yo(u.price)}`,e.createElement("button",{onClick:()=>a(c,r)},e.createElement("img",{src:"/images/shop/icon-remove.svg",className:"d-block"})),e.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline-flex align-content-center align-self-center justify-content-evenly"},h?e.createElement(Oc,{crate_index:n,card_index:r}):e.createElement("span",{style:{display:"inline-block",minWidth:"20px"}}," "),m&&g?e.createElement(Ac,{crate_index:n,card_index:r}):e.createElement("span",{style:{display:"inline-block",width:"20px"}}," ")))))}function Mc(t){let{crate_index:n}=t;const r=cc((e=>e.currency)),o=cc((e=>e.crates[n].id)),a=cc((e=>e.crate_prices)),i=cc((e=>e.updateCrateOptions));return Ks({options:a,data:cc((e=>e.crates[n].options_data||{}))}).map(((t,n)=>e.createElement("tr",{key:"summary_crate_"+o+"option_"+t.id},e.createElement("td",{className:"item-card-name tabbed"},e.createElement("div",null,t.title)),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex align-content-center"},`${r} ${Yo(t.price)}`,e.createElement("button",{onClick:()=>i(o,t.disable_patch)},e.createElement("img",{src:"/images/shop/icon-remove.svg",className:"d-block"})),e.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline"}))))))}function Bc(t){let{crate_index:n}=t;const r=cc((e=>e.crates[n].id)),o=cc((e=>e.crates[n].items.length));return e.createElement("tbody",{key:"summary_crate_body"+r},e.createElement(kc,{crate_index:n}),Xo(0,o).map(((t,o)=>e.createElement(Lc,{crate_index:n,card_index:t,key:"summary_crate_"+r+"_"+t}))),e.createElement(Mc,{crate_index:n}))}function Fc(){const t=cc((e=>e.currency)),n=cc((e=>e.order_prices)),r=cc((e=>e.updateOrderOptions)),o=Ks({options:n,data:cc((e=>e.order_options_data))});return e.createElement("tbody",{key:"summary_order_body"},o.map(((n,o)=>e.createElement("tr",{key:"summary_orderoption_"+n.id},e.createElement("td",{className:"item-card-name"},e.createElement("div",null,n.title)),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex align-content-center"},`${t} ${Yo(n.price)}`,e.createElement("button",{onClick:()=>r(n.disable_patch)},e.createElement("img",{src:"/images/shop/icon-remove.svg",className:"d-block"})),e.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline"})))))))}function jc(){const t=qs({options:cc((e=>e.shipping_summary)),data:cc((e=>e.order_options_data)),id:"shipping_options",target:null});return e.createElement("tbody",{key:"summary_shipping_order_body"},t.map(((t,n)=>e.createElement("tr",{key:"summary_shipping_order_option_"+n,id:"summary_shipping_order_option_"+n},e.createElement("td",{className:"item-card-name",key:"summary_shipping_order_key_option_"+n,id:"summary_shipping_order_key_option_"+n},t)))))}function zc(){const t=cc((e=>e.crates.length));return e.createElement(e.Fragment,null,Xo(0,t).map(((t,n)=>e.createElement(Bc,{crate_index:t,key:"summary_crate_body_"+t}))),e.createElement(Fc,null),e.createElement(jc,null))}function $c(){const t=cc((e=>e.currency)),n=cc((e=>e.total_order_price));return e.createElement("div",null,t," ",Yo(n),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"icon remove"})))}function Uc(){return e.createElement("div",{className:"summary-price"},e.createElement("table",null,e.createElement(zc,null),e.createElement("tfoot",null,e.createElement("tr",null,e.createElement("td",{className:"item-card-name"},"Price estimate"),e.createElement("td",{className:"price"},e.createElement($c,null),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," "))))))}function Wc(e){if((!dc&&0!==dc||e)&&Hi){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),dc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return dc}function Hc(e){void 0===e&&(e=Xi());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}const Vc="data-rr-ui-modal-open",Gc=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(Jl(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(Vc,""),Jl(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(Vc),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},qc=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let Kc;const Qc=(0,e.forwardRef)(((t,n)=>{let{show:o=!1,role:a="dialog",className:i,style:l,children:s,backdrop:c=!0,keyboard:u=!0,onBackdropClick:d,onEscapeKeyDown:p,transition:f,runTransition:m,backdropTransition:g,runBackdropTransition:h,autoFocus:v=!0,enforceFocus:b=!0,restoreFocus:y=!0,restoreFocusOptions:w,renderDialog:E,renderBackdrop:x=e=>(0,gl.jsx)("div",Object.assign({},e)),manager:S,container:k,onShow:C,onHide:_=()=>{},onExit:O,onExited:N,onExiting:D,onEnter:I,onEntering:P,onEntered:R}=t,T=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(t,qc);const A=ll(),L=cl(k),M=function(t){const n=ll(),r=t||function(e){return Kc||(Kc=new Gc({ownerDocument:null==e?void 0:e.document})),Kc}(n),o=(0,e.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,e.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,e.useCallback)((e=>{o.current.backdrop=e}),[])})}(S),B=aa(),F=function(t){const n=(0,e.useRef)(null);return(0,e.useEffect)((()=>{n.current=t})),n.current}(o),[j,z]=(0,e.useState)(!o),$=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,(()=>M),[M]),Hi&&!F&&o&&($.current=Hc(null==A?void 0:A.document)),o&&j&&z(!1);const U=Zi((()=>{if(M.add(),K.current=Yi(document,"keydown",G),q.current=Yi(document,"focus",(()=>setTimeout(H)),!0),C&&C(),v){var e,t;const n=Hc(null!=(e=null==(t=M.dialog)?void 0:t.ownerDocument)?e:null==A?void 0:A.document);M.dialog&&n&&!na(M.dialog,n)&&($.current=n,M.dialog.focus())}})),W=Zi((()=>{var e;M.remove(),null==K.current||K.current(),null==q.current||q.current(),y&&(null==(e=$.current)||null==e.focus||e.focus(w),$.current=null)}));(0,e.useEffect)((()=>{o&&L&&U()}),[o,L,U]),(0,e.useEffect)((()=>{j&&W()}),[j,W]),ia((()=>{W()}));const H=Zi((()=>{if(!b||!B()||!M.isTopModal())return;const e=Hc(null==A?void 0:A.document);M.dialog&&e&&!na(M.dialog,e)&&M.dialog.focus()})),V=Zi((e=>{e.target===e.currentTarget&&(null==d||d(e),!0===c&&_())})),G=Zi((e=>{u&&rl(e)&&M.isTopModal()&&(null==p||p(e),e.defaultPrevented||_())})),q=(0,e.useRef)(),K=(0,e.useRef)();if(!L)return null;const Q=Object.assign({role:a,ref:M.setDialogRef,"aria-modal":"dialog"===a||void 0},T,{style:l,className:i,tabIndex:-1});let Y=E?E(Q):(0,gl.jsx)("div",Object.assign({},Q,{children:e.cloneElement(s,{role:"document"})}));Y=yl(f,m,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!o,onExit:O,onExiting:D,onExited:(...e)=>{z(!0),null==N||N(...e)},onEnter:I,onEntering:P,onEntered:R,children:Y});let X=null;return c&&(X=x({ref:M.setBackdropRef,onClick:V}),X=yl(g,h,{in:!!o,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:X})),(0,gl.jsx)(gl.Fragment,{children:r.createPortal((0,gl.jsxs)(gl.Fragment,{children:[X,Y]}),L)})}));Qc.displayName="Modal";const Yc=Object.assign(Qc,{Manager:Gc});var Xc=Function.prototype.bind.call(Function.prototype.call,[].slice);function Jc(e,t){return Xc(e.querySelectorAll(t))}function Zc(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const eu=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",tu=".sticky-top",nu=".navbar-toggler";class ru extends Gc{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,Jl(t,{[e]:`${parseFloat(Jl(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],Jl(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):xl(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Jc(t,eu).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),Jc(t,tu).forEach((t=>this.adjustAndStore(a,t,-e.scrollBarWidth))),Jc(t,nu).forEach((t=>this.adjustAndStore(a,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Zc(n.className,r):n.setAttribute("class",Zc(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Jc(t,eu).forEach((e=>this.restore(o,e))),Jc(t,tu).forEach((e=>this.restore(a,e))),Jc(t,nu).forEach((e=>this.restore(a,e)))}}let ou;const au=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=_l(t,"modal-body"),(0,gl.jsx)(n,{ref:o,className:ba()(e,t),...r}))));au.displayName="ModalBody";const iu=au,lu=e.createContext({onHide(){}}),su=e.forwardRef((({bsPrefix:e,className:t,contentClassName:n,centered:r,size:o,fullscreen:a,children:i,scrollable:l,...s},c)=>{const u=`${e=_l(e,"modal")}-dialog`,d="string"==typeof a?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return(0,gl.jsx)("div",{...s,ref:c,className:ba()(u,t,o&&`${e}-${o}`,r&&`${u}-centered`,l&&`${u}-scrollable`,a&&d),children:(0,gl.jsx)("div",{className:ba()(`${e}-content`,n),children:i})})}));su.displayName="ModalDialog";const cu=su,uu=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=_l(t,"modal-footer"),(0,gl.jsx)(n,{ref:o,className:ba()(e,t),...r}))));uu.displayName="ModalFooter";const du=uu,pu={"aria-label":oa().string,onClick:oa().func,variant:oa().oneOf(["white"])},fu=e.forwardRef((({className:e,variant:t,"aria-label":n="Close",...r},o)=>(0,gl.jsx)("button",{ref:o,type:"button",className:ba()("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r})));fu.displayName="CloseButton",fu.propTypes=pu;const mu=fu,gu=e.forwardRef((({closeLabel:t="Close",closeVariant:n,closeButton:r=!1,onHide:o,children:a,...i},l)=>{const s=(0,e.useContext)(lu),c=Zi((()=>{null==s||s.onHide(),null==o||o()}));return(0,gl.jsxs)("div",{ref:l,...i,children:[a,r&&(0,gl.jsx)(mu,{"aria-label":t,variant:n,onClick:c})]})})),hu=gu,vu=e.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},a)=>(e=_l(e,"modal-header"),(0,gl.jsx)(hu,{ref:a,...o,className:ba()(t,e),closeLabel:n,closeButton:r}))));vu.displayName="ModalHeader";const bu=vu,yu=e.forwardRef(((e,t)=>(0,gl.jsx)("div",{...e,ref:t,className:ba()(e.className,"h4")})));const wu=e.forwardRef((({className:e,bsPrefix:t,as:n=yu,...r},o)=>(t=_l(t,"modal-title"),(0,gl.jsx)(n,{ref:o,className:ba()(e,t),...r}))));wu.displayName="ModalTitle";const Eu=wu;function xu(e){return(0,gl.jsx)(ls,{...e,timeout:null})}function Su(e){return(0,gl.jsx)(ls,{...e,timeout:null})}const ku=e.forwardRef((({bsPrefix:t,className:n,style:r,dialogClassName:o,contentClassName:a,children:i,dialogAs:l=cu,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":u,"aria-label":d,show:p=!1,animation:f=!0,backdrop:m=!0,keyboard:g=!0,onEscapeKeyDown:h,onShow:v,onHide:b,container:y,autoFocus:w=!0,enforceFocus:E=!0,restoreFocus:x=!0,restoreFocusOptions:S,onEntered:k,onExit:C,onExiting:_,onEnter:O,onEntering:N,onExited:D,backdropClassName:I,manager:P,...R},T)=>{const[A,L]=(0,e.useState)({}),[M,B]=(0,e.useState)(!1),F=(0,e.useRef)(!1),j=(0,e.useRef)(!1),z=(0,e.useRef)(null),[$,U]=ya(),W=ha(T,U),H=Zi(b),V=Ol();t=_l(t,"modal");const G=(0,e.useMemo)((()=>({onHide:H})),[H]);function q(){return P||function(e){return ou||(ou=new ru(e)),ou}({isRTL:V})}function K(e){if(!Hi)return;const t=q().getScrollbarWidth()>0,n=e.scrollHeight>Xi(e).documentElement.clientHeight;L({paddingRight:t&&!n?Wc():void 0,paddingLeft:!t&&n?Wc():void 0})}const Q=Zi((()=>{$&&K($.dialog)}));ia((()=>{Qi(window,"resize",Q),null==z.current||z.current()}));const Y=()=>{F.current=!0},X=e=>{F.current&&$&&e.target===$.dialog&&(j.current=!0),F.current=!1},J=()=>{B(!0),z.current=Zl($.dialog,(()=>{B(!1)}))},Z=e=>{"static"!==m?j.current||e.target!==e.currentTarget?j.current=!1:null==b||b():(e=>{e.target===e.currentTarget&&J()})(e)},ee=(0,e.useCallback)((e=>(0,gl.jsx)("div",{...e,className:ba()(`${t}-backdrop`,I,!f&&"show")})),[f,I,t]),te={...r,...A};return te.display="block",(0,gl.jsx)(lu.Provider,{value:G,children:(0,gl.jsx)(Yc,{show:p,ref:W,backdrop:m,container:y,keyboard:!0,autoFocus:w,enforceFocus:E,restoreFocus:x,restoreFocusOptions:S,onEscapeKeyDown:e=>{g?null==h||h(e):(e.preventDefault(),"static"===m&&J())},onShow:v,onHide:b,onEnter:(e,t)=>{e&&K(e),null==O||O(e,t)},onEntering:(e,t)=>{null==N||N(e,t),Ki(window,"resize",Q)},onEntered:k,onExit:e=>{null==z.current||z.current(),null==C||C(e)},onExiting:_,onExited:e=>{e&&(e.style.display=""),null==D||D(e),Qi(window,"resize",Q)},manager:q(),transition:f?xu:void 0,backdropTransition:f?Su:void 0,renderBackdrop:ee,renderDialog:e=>(0,gl.jsx)("div",{role:"dialog",...e,style:te,className:ba()(n,t,M&&`${t}-static`,!f&&"show"),onClick:m?Z:void 0,onMouseUp:X,"data-bs-theme":s,"aria-label":d,"aria-labelledby":c,"aria-describedby":u,children:(0,gl.jsx)(l,{...R,onMouseDown:Y,className:o,contentClassName:a,children:i})})})})}));ku.displayName="Modal";const Cu=Object.assign(ku,{Body:iu,Header:bu,Title:Eu,Footer:du,Dialog:cu,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),_u={[Vs.OK]:{style:"btn-outline-success",content:"✓ copied"},[Vs.Empty]:{style:"btn-outline-primary",content:"Copy"},[Vs.Invalid]:{style:"btn-outline-danger",content:"Error"}};function Ou(){const t=cc((e=>e.shouldShowDescription)),n=cc((e=>e.description)),r=cc((e=>e.closeDescription)),o=cc((e=>e.showDescription)),[a,i]=(0,e.useState)(Vs.Empty),l=Nc((e=>{"mousedown"===e.type&&r()}));return e.createElement(e.Fragment,null,e.createElement("input",{className:"btn btn-outline-primary w-100 m-0 mb-2 mb-sm-0 me-sm-2",style:{cursor:"pointer",fontWeight:"700"},defaultValue:"Show JSON",onClick:o,readOnly:!0}),e.createElement(Cu,{show:t,animation:!0,className:"rfqFeedback",centered:!0},e.createElement(Cu.Body,{ref:l},e.createElement("textarea",{value:n,className:"form-control w-100",rows:10,readOnly:!0,placeholder:"There should be description of the crate"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},window.isSecureContext&&e.createElement("a",{type:"button",onClick:()=>{(e=>{try{navigator.clipboard.writeText(e).then((e=>{i(Vs.OK),setTimeout((()=>{i(Vs.Empty)}),1500)}),(e=>{i(Vs.Invalid),setTimeout((()=>{i(Vs.Empty)}),3e3),console.warn("Copy to clipboard rejected: ",e)}))}catch(e){i(Vs.Invalid),setTimeout((()=>{i(Vs.Empty)}),3e3),console.warn("Copy to clipboard error: ",e)}})(n)},className:"btn btn-sm m-0 mb-1 mt-2 mb-sm-0 me-sm-2 "+_u[a].style},_u[a].content),e.createElement("a",{type:"button",onClick:r,className:"btn btn-sm btn-outline-primary m-0 mb-1 mt-2 mb-sm-0 me-sm-2"},"Close")))))}function Nu(){const t=cc((e=>e.order_options)),n=cc((e=>e.updateOrderOptions)),r=cc((e=>e.order_options_data||{})),o=qs({options:t,data:r,id:"order_options",target:{construct:(e,t)=>{r[e]=t,n({[e]:t})},update:(e,t)=>{e in r&&(r[e]=t),n({[e]:t})}}});return e.createElement("div",{className:"order-bar"},o)}function Du(){const t=cc((e=>e.email)),n=cc((e=>e.note)),r=cc((e=>e.isProcessing)),o=cc((e=>e.updateEmail)),a=cc((e=>e.updateNote)),i=cc((e=>e.submitForm)),l=cc((e=>e.submitDisabled)),s=cc((e=>e.resetEmailValidation));return e.createElement("div",{className:"summary-form"},e.createElement(Nu,null),e.createElement("form",{onSubmit:i,noValidate:!0},e.createElement("input",{className:t.error>0?"errorField":"",type:"email",placeholder:"Email",onFocus:s,onChange:e=>o(e.target.value),onBlur:e=>o(e.target.value),value:t.value}),t.error===Vs.Empty?e.createElement("div",{className:"error"},e.createElement("small",null,"Required")):null,t.error===Vs.Invalid?e.createElement("div",{className:"error"},e.createElement("small",null,"Your email is incomplete")):null,e.createElement("textarea",{onChange:e=>a(e.target.value),defaultValue:n.value,rows:"5",placeholder:"Additional notes"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},e.createElement(Ou,null),e.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2 order-form-submit",type:"button",disabled:l(),onClick:i,value:r?"Processing ...":"Request quote"}))))}const Iu=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)},Pu={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Ru(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=Pu[e];return n+parseInt(Jl(t,r[0]),10)+parseInt(Jl(t,r[1]),10)}const Tu={[$l]:"collapse",[Hl]:"collapsing",[Ul]:"collapsing",[Wl]:"collapse show"},Au=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:a,className:i,children:l,dimension:s="height",in:c=!1,timeout:u=300,mountOnEnter:d=!1,unmountOnExit:p=!1,appear:f=!1,getDimensionValue:m=Ru,...g},h)=>{const v="function"==typeof s?s():s,b=(0,e.useMemo)((()=>Iu((e=>{e.style[v]="0"}),t)),[v,t]),y=(0,e.useMemo)((()=>Iu((e=>{const t=`scroll${v[0].toUpperCase()}${v.slice(1)}`;e.style[v]=`${e[t]}px`}),n)),[v,n]),w=(0,e.useMemo)((()=>Iu((e=>{e.style[v]=null}),r)),[v,r]),E=(0,e.useMemo)((()=>Iu((e=>{e.style[v]=`${m(v,e)}px`,ns(e)}),o)),[o,m,v]),x=(0,e.useMemo)((()=>Iu((e=>{e.style[v]=null}),a)),[v,a]);return(0,gl.jsx)(os,{ref:h,addEndListener:ts,...g,"aria-expanded":g.role?c:null,onEnter:b,onEntering:y,onEntered:w,onExit:E,onExiting:x,childRef:l.ref,in:c,timeout:u,mountOnEnter:d,unmountOnExit:p,appear:f,children:(t,n)=>e.cloneElement(l,{...n,className:ba()(i,l.props.className,Tu[t],"width"===v&&"collapse-horizontal")})})})),Lu=Au;function Mu(e,t){return Array.isArray(e)?e.includes(t):e===t}const Bu=e.createContext({});Bu.displayName="AccordionContext";const Fu=Bu,ju=e.forwardRef((({as:t="div",bsPrefix:n,className:r,children:o,eventKey:a,...i},l)=>{const{activeEventKey:s}=(0,e.useContext)(Fu);return n=_l(n,"accordion-collapse"),(0,gl.jsx)(Lu,{ref:l,in:Mu(s,a),...i,className:ba()(r,n),children:(0,gl.jsx)(t,{children:e.Children.only(o)})})}));ju.displayName="AccordionCollapse";const zu=ju,$u=e.createContext({eventKey:""});$u.displayName="AccordionItemContext";const Uu=$u,Wu=e.forwardRef((({as:t="div",bsPrefix:n,className:r,onEnter:o,onEntering:a,onEntered:i,onExit:l,onExiting:s,onExited:c,...u},d)=>{n=_l(n,"accordion-body");const{eventKey:p}=(0,e.useContext)(Uu);return(0,gl.jsx)(zu,{eventKey:p,onEnter:o,onEntering:a,onEntered:i,onExit:l,onExiting:s,onExited:c,children:(0,gl.jsx)(t,{ref:d,...u,className:ba()(r,n)})})}));Wu.displayName="AccordionBody";const Hu=Wu,Vu=e.forwardRef((({as:t="button",bsPrefix:n,className:r,onClick:o,...a},i)=>{n=_l(n,"accordion-button");const{eventKey:l}=(0,e.useContext)(Uu),s=function(t,n){const{activeEventKey:r,onSelect:o,alwaysOpen:a}=(0,e.useContext)(Fu);return e=>{let i=t===r?null:t;a&&(i=Array.isArray(r)?r.includes(t)?r.filter((e=>e!==t)):[...r,t]:[t]),null==o||o(i,e),null==n||n(e)}}(l,o),{activeEventKey:c}=(0,e.useContext)(Fu);return"button"===t&&(a.type="button"),(0,gl.jsx)(t,{ref:i,onClick:s,...a,"aria-expanded":Array.isArray(c)?c.includes(l):l===c,className:ba()(r,n,!Mu(c,l)&&"collapsed")})}));Vu.displayName="AccordionButton";const Gu=Vu,qu=e.forwardRef((({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...a},i)=>(t=_l(t,"accordion-header"),(0,gl.jsx)(e,{ref:i,...a,className:ba()(n,t),children:(0,gl.jsx)(Gu,{onClick:o,children:r})}))));qu.displayName="AccordionHeader";const Ku=qu,Qu=e.forwardRef((({as:t="div",bsPrefix:n,className:r,eventKey:o,...a},i)=>{n=_l(n,"accordion-item");const l=(0,e.useMemo)((()=>({eventKey:o})),[o]);return(0,gl.jsx)(Uu.Provider,{value:l,children:(0,gl.jsx)(t,{ref:i,...a,className:ba()(r,n)})})}));Qu.displayName="AccordionItem";const Yu=Qu,Xu=e.forwardRef(((t,n)=>{const{as:r="div",activeKey:o,bsPrefix:a,className:i,onSelect:l,flush:s,alwaysOpen:c,...u}=function(e,t){return Object.keys(t).reduce((function(n,r){var o,a=n,i=a[pa(r)],l=a[r],s=_(a,[pa(r),r].map(fa)),c=t[r],u=ma(l,i,e[c]),d=u[0],p=u[1];return C({},s,((o={})[r]=d,o[c]=p,o))}),e)}(t,{activeKey:"onSelect"}),d=_l(a,"accordion"),p=(0,e.useMemo)((()=>({activeEventKey:o,onSelect:l,alwaysOpen:c})),[o,l,c]);return(0,gl.jsx)(Fu.Provider,{value:p,children:(0,gl.jsx)(r,{ref:n,...u,className:ba()(i,d,s&&`${d}-flush`)})})}));Xu.displayName="Accordion";const Ju=Object.assign(Xu,{Button:Gu,Collapse:zu,Item:Yu,Header:Ku,Body:Hu});function Zu(){return Zu=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},Zu.apply(null,arguments)}const ed=(e,t)=>({width:`${Math.min(100*e/t,100)}%`});function td(t){let{occupied:n,max:r}=t;return e.createElement("div",{className:"nbr-connectors",key:Is()},e.createElement("div",{style:{...ed(n,r)}}))}const nd={eem:td,clk:function(t){let{occupied:n,max:r}=t;return e.createElement("div",{className:"nbr-clocks",key:Is()},e.createElement("div",{style:{...ed(n,r)}}))},idc:td,tec:td},rd={eem:function(t){let{occupied:n,max:r}=t;return e.createElement("p",{key:Is()},`${n}/${r} EEM connectors used`)},clk:function(t){let{occupied:n,max:r}=t;return e.createElement("p",{key:Is()},`${n}/${r} clock connectors used`)},idc:function(t){let{occupied:n,max:r}=t;return e.createElement("p",{key:Is()},`${n}/${r} IDC connectors used`)},tec:function(t){let{occupied:n,max:r}=t;return e.createElement("p",{key:Is()},`${n}/${r} TEC connectors used`)}};function od(e){let{resources:t,library:n}=e;if(!t)return null;let r=[];return t.forEach(((e,t)=>{n[e.name]&&r.push(n[e.name](e))})),r}function ad(t){let{crate_index:n,card_index:r}=t;const o=cc((e=>e.crates[n].items[r].counted_resources),Zo);return e.createElement(ds,{placement:"top",trigger:["click","hover","focus"],overlay:t=>{let{arrowProps:n,hasDoneInitialMeasure:r,show:a,...i}=t;return e.createElement("div",Zu({className:"k-popup-connectors"},i),e.createElement(od,{resources:o,library:rd}))},rootClose:!0},e.createElement("div",{className:"progress-container"},e.createElement(od,{resources:o,library:nd})))}function id(){return id=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},id.apply(null,arguments)}function ld(t){let{card_index:n,crate_index:r,first:o,last:a}=t;const i=cc((e=>e.crates[r].items[n]),((e,t)=>e.id===t.id)),l=cc((e=>e.crates[r].items[n].show_warnings),ea),s=cc((e=>e.crates[r].items[n].counted_resources),ea),c=cc((e=>e.crates[r].id===e.highlighted.crate&&n===e.highlighted.card)),u=cc((e=>!!e.crateParams(e.crates[r].crate_mode).warnings_disabled)),d=cc((e=>e.crates[r].id)),p=cc((e=>e.highlightCard)),f=cc((e=>e.highlightReset)),m=cc((e=>e.deleteCard)),g=!u&&i&&i.options&&i.options.length>0,h=!u&&l&&l.length>0,v=!u&&s&&s.length>0;return e.createElement(ho,{draggableId:i.id,index:n},((t,l)=>e.createElement("div",id({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:{...Ko(t.draggableProps.style,l,!0,!!c,!1,!0)},onMouseEnter:()=>p(d,n),onMouseLeave:f}),e.createElement("div",{className:"progress-container warning d-flex justify-content-evenly"},h&&e.createElement(_c,{crate_index:r,card_index:n}),g&&e.createElement(Tc,{crate_index:r,card_index:n,first:o,last:a})),e.createElement("h6",null,i.name_number),e.createElement("div",{onMouseEnter:()=>p(d,n),onClick:()=>p(d,n)},e.createElement("img",{className:"item-cart",src:i.image})),e.createElement("div",{style:{display:c?"flex":"none"},className:"overlayRemove",onClick:()=>m(d,n)},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.createElement("p",null,"Remove")),v&&e.createElement(ad,{crate_index:r,card_index:n}))))}function sd(t){let{isDraggingOver:n,nToDraw:r}=t;const o=[];for(let t=r;t>0;t--)o.push(e.createElement("div",{key:t,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.createElement(e.Fragment,null,o)}function cd(){return cd=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},cd.apply(null,arguments)}function ud(t){let{crate_index:n}=t;const r=cc((e=>e.crates[n]),((e,t)=>Jo(e.items,t.items)&&e.occupiedHP===t.occupiedHP&&e.crate_mode===t.crate_mode)),o=cc((e=>e.crateParams)),a=As(r.occupiedHP),i=As(o(r.crate_mode).hp),l=r.items.map(((t,o)=>e.createElement(ld,{card_index:o,crate_index:n,first:0===o,last:o===r.items.length-1&&a>=i,key:t.id})));return e.createElement(Bo,{droppableId:r.id,direction:"horizontal"},((t,n)=>e.createElement("div",cd({ref:t.innerRef},t.droppableProps,{style:Qo(t.droppableProps.style,n),className:"items-cart-list"}),l,t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder),e.createElement(sd,{nToDraw:i-a,isDraggingOver:n.isDraggingOver}))))}function dd(t){let{crate_index:n}=t;const r=cc((e=>e.modes_order)),o=cc((e=>e.crate_modes)),a=cc((e=>e.crates[n]),((e,t)=>e.id===t.id&&e.crate_mode===t.crate_mode)),i=cc((e=>e.setCrateMode));return e.createElement("div",{className:"crate-mode"},r.map(((t,n)=>e.createElement("a",{key:t,className:a.crate_mode===t?"active":"",onClick:()=>i(a.id,t),href:"#",role:"button"},o[t].name))))}function pd(t){let{crate_index:n}=t;const r=cc((e=>e.crates[n].warnings),Jo);return e.createElement("div",{className:"crate-info"},r.map(((t,n)=>e.createElement("p",{key:n,className:"rule",style:{color:$s(t.level).color}},e.createElement("img",{src:$s(t.level).icon})," ",e.createElement("i",null,t.message)))))}function fd(t){let{crate_index:n}=t;const r=cc((e=>e.crates[n].id)),o=cc((e=>e.crate_options)),a=cc((e=>e.updateCrateOptions)),i=cc((e=>e.crates[n].options_data||{})),l=qs({options:o,data:i,id:"crate_options"+r,target:{construct:(e,t)=>{i[e]=t},update:(e,t)=>{e in i&&(i[e]=t),a(r,{[e]:t})}}});return e.createElement("div",{className:"crate-bar"},l)}function md(t){let{crate_index:n}=t;const r=cc((e=>e.crates[n]),((e,t)=>e.length===t.length&&e.id===t.id)),o=cc((e=>e.modes_order)),a=cc((e=>e.delCrate));return e.createElement("div",{className:"crate"},o.includes(r.crate_mode)?e.createElement("div",{className:"crate-bar d-inline-flex justify-content-between"},e.createElement(dd,{crate_index:n}),e.createElement("div",{className:"delete-crate align-self-start align-content-start justify-content-end",onClick:()=>a(r.id)},"Delete crate ",e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove"}))):e.createElement(e.Fragment,null),e.createElement("div",{className:"crate-products"},e.createElement(ud,{crate_index:n}),e.createElement(pd,{crate_index:n}),e.createElement(fd,{crate_index:n})))}function gd(){const t=cc((e=>e.crates),((e,t)=>e.length===t.length)),n=cc((e=>e.active_crate)),r=cc((e=>e.newCrate)),o=cc((e=>e.setActiveCrate));return e.createElement(Ju,{id:"accordion_crates",flush:!0,activeKey:n,onSelect:e=>{o(null!==e?e:"")}},t.map(((t,n)=>e.createElement(Ju.Item,{eventKey:t.id,key:"accordion"+t.id,className:"accordion_crates_item"},e.createElement(Ju.Header,null,t.name?t.name:e.createElement(e.Fragment,null,"Crate #",`${n}`)," "),e.createElement(Ju.Body,null,e.createElement(md,{crate_index:n}))))),e.createElement(Ju.Item,{eventKey:"last",id:"accordion_crates_add"},e.createElement(Ju.Header,{onClick:r},"Add new crate")))}const hd=JSON.stringify({crates:[{items:[{pn:"1124",options:null},{pn:"2128",options:null},{pn:"2128",options:null},{pn:"2128",options:null}],type:"rack",options:{}},{items:[],type:"no_crate",options:{}}],options:{}});function vd(){const t=cc((e=>e.importShouldOpen)),n=cc((e=>e.importValue)),r=cc((e=>e.loadDescription)),o=cc((e=>e.updateImportDescription)),a=cc((e=>e.closeImport)),i=cc((e=>e.openImport)),l=Nc((e=>{"mousedown"===e.type&&a()}));return e.createElement(e.Fragment,null,e.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:i},"Import JSON"),e.createElement(Cu,{show:t,animation:!0,centered:!0,className:"rfqFeedback"},e.createElement(Cu.Body,{ref:l},e.createElement("div",{className:"form-group"},e.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.createElement("br",null),hd)),e.createElement("div",{className:"form-group w-100"},e.createElement("textarea",{onChange:e=>{o(e.target.value)},value:n.value,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),n.error!==Vs.OK?e.createElement("div",{className:"form-group"},e.createElement("p",{className:"text-danger"},n.error===Vs.Empty?"Empty input":"Invalid JSON")):null,e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.createElement("a",{type:"button",onClick:a,className:"btn btn-sm btn-outline-primary m-0 mb-2 mt-2 mb-sm-0 me-sm-2"},"Close"),e.createElement("a",{type:"button",onClick:r,className:"btn btn-sm btn-primary m-0 ms-sm-2 mt-2 "+(n.error?"disabled":"")},"Load configuration")))))}function bd(){const t=cc((e=>e.closeRFQFeedback)),n=cc((e=>e.shouldShowRFQFeedback)),r=cc((e=>e.processingResult)),o=Nc((e=>{"mousedown"===e.type&&t()}));return e.createElement(Cu,{show:n,animation:!0,centered:!0},e.createElement(Cu.Body,{ref:o,className:"rfqFeedback"},e.createElement("div",{className:"d-flex"},e.createElement("div",null,r.status===Vs.OK?e.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"}):e.createElement("img",{width:"30px",src:"/images/shop/icon-warning.svg",alt:"close"})),e.createElement("div",{style:{padding:"0 .5em"}},r.message))))}function yd(t){let{title:n,description:r}=t;const o=cc((e=>e.isMobile)),a=cc((e=>e.switchSideMenu));return e.createElement("section",{className:"panel"},e.createElement("h2",null,n),e.createElement("div",{className:"control justify-content-between"},r),e.createElement("div",null,e.createElement(vd,null)),e.createElement(bd,null),o?e.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.createElement("button",{onClick:a},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,e.createElement(gd,null),e.createElement("section",{className:"summary"},e.createElement(Uc,null),e.createElement(Du,null)))}function wd(){const t=cc((e=>e.addCardFromCatalog)),n=cc((e=>e.initExtData)),r=cc((e=>e.moveCard)),o=cc((e=>e.deleteCard)),a=cc((e=>e.cardIndexById));return(0,e.useEffect)((()=>{t(null,[a("eem_pwr_mod"),a("kasli")],-1,!0),n()}),[]),e.createElement(eo,{onDragEnd:(e,n)=>{if(!e.destination)return console.warn("No drop destination"),void console.log(e);"catalog"===e.source.droppableId?t(e.destination.droppableId,e.source.index,e.destination.index):"catalog"===e.destination.droppableId?o(e.source.droppableId,e.source.index):r(e.source.droppableId,e.source.index,e.destination.droppableId,e.destination.index)}},e.createElement(pc,{aside:e.createElement(Sc,null),main:e.createElement(yd,{title:"Order hardware",description:e.createElement("p",{className:"description"},"Drag and drop the cards you want into the crate below to see how the combination would look like. Configure the card settings by tapping on the top of the card; many of the options can be adjusted even after the card has been shipped. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at ",e.createElement(Qs,{address:"sales"}),". The price excludes shipping, is estimated, and must be confirmed by a quote.")})}))}(0,t.H)(document.querySelector("#root-shop")).render(e.createElement(wd,null))})()})(); |