forked from M-Labs/web2019
2 lines
347 KiB
JavaScript
2 lines
347 KiB
JavaScript
/*! For license information please see shop.bundle.js.LICENSE.txt */
|
||
(()=>{var e={184:(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];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},679:(e,t,n)=>{"use strict";var r=n(296),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 u(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 s=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var i=c(n);d&&(i=i.concat(d(n)));for(var l=u(t),h=u(n),g=0;g<i.length;++g){var v=i[g];if(!(a[v]||r&&r[v]||h&&h[v]||l&&l[v])){var b=f(n,v);try{s(t,v,b)}catch(e){}}}}return t}},103:(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,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=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 c:case d:case a:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case s:case f:case g:case h:case u:return e;default:return t}}case o:return t}}}function x(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||E(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===s},t.isContextProvider=function(e){return E(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===h},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)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===i||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===u||e.$$typeof===s||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},296:(e,t,n)=>{"use strict";e.exports=n(103)},143:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,l){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,a,i,l],c=0;(u=new Error(t.replace(/%s/g,(function(){return s[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},962: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,u,s=e.get_operator(n),c=n[s];if(Array.isArray(c)||(c=[c]),"if"===s||"?:"==s){for(o=0;o<c.length-1;o+=2)if(e.truthy(e.apply(c[o],r)))return e.apply(c[o+1],r);return c.length===o+1?e.apply(c[o],r):null}if("and"===s){for(o=0;o<c.length;o+=1)if(a=e.apply(c[o],r),!e.truthy(a))return a;return a}if("or"===s){for(o=0;o<c.length;o+=1)if(a=e.apply(c[o],r),e.truthy(a))return a;return a}if("filter"===s)return l=e.apply(c[0],r),i=c[1],Array.isArray(l)?l.filter((function(t){return e.truthy(e.apply(i,t))})):[];if("map"===s)return l=e.apply(c[0],r),i=c[1],Array.isArray(l)?l.map((function(t){return e.apply(i,t)})):[];if("reduce"===s)return l=e.apply(c[0],r),i=c[1],u=void 0!==c[2]?c[2]:null,Array.isArray(l)?l.reduce((function(t,n){return e.apply(i,{current:n,accumulator:t})}),u):u;if("all"===s){if(l=e.apply(c[0],r),i=c[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"===s){if(l=e.apply(c[0],r),i=c[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"===s){if(l=e.apply(c[0],r),i=c[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(c=c.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(s)&&"function"==typeof t[s])return t[s].apply(r,c);if(s.indexOf(".")>0){var d=String(s).split("."),f=t;for(o=0;o<d.length;o++){if(!f.hasOwnProperty(d[o]))throw new Error("Unrecognized operation "+s+" (failed at "+d.slice(0,o+1).join(".")+")");f=f[d[o]]}return f.apply(r,c)}throw new Error("Unrecognized operation "+s)},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)},703:(e,t,n)=>{"use strict";var r=n(414);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}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},448:(e,t,n)=>{"use strict";var r=n(294),o=n(840);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 u(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},m={};function h(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 g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new h(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){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new h(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=g.hasOwnProperty(t)?g[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(p,e)&&(f.test(e)?m[e]=!0:(p[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);g[t]=new h(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);g[t]=new h(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);g[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(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"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),I=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),_=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 M=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var L,B=Object.assign;function j(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var F=!1;function z(e,t){if(!e||F)return"";F=!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 u="\n"+o[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=i&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function U(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("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 W(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 k:return"Fragment";case x:return"Portal";case C:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function G(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 W(t);case 8:return t===S?"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 $(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 Q(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 Y(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 K(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 J(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function X(e,t){J(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&&Q(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 ue(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 se,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.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 ce(e,t)}))}:ce);function fe(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 pe={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 he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[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,ke=null,Se=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 Oe(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Ie(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function De(e,t){return e(t)}function Pe(){}var Ne=!1;function _e(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return De(e,t,n)}finally{Ne=!1,(null!==ke||null!==Se)&&(Pe(),Ie())}}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(c)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ce){Te=!1}function Ae(e,t,n,r,o,a,i,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Le=!1,Be=null,je=!1,Fe=null,ze={onError:function(e){Le=!0,Be=e}};function Ue(e,t,n,r,o,a,i,l,u){Le=!1,Be=null,Ae.apply(ze,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(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(We(e)!==e)throw Error(a(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(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,u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.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))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Qe=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Je=o.unstable_now,Xe=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)/ut|0)|0},lt=Math.log,ut=Math.LN2,st=64,ct=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 ft(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&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(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 pt(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 ht(){var e=st;return 0==(4194240&(st<<=1))&&(st=64),e}function gt(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?0!=(268435455&e)?16:536870912:4:1}var Et,xt,kt,St,Ct,Ot=!1,It=[],Dt=null,Pt=null,Nt=null,_t=new Map,Rt=new Map,Tt=[],Mt="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 At(e,t){switch(e){case"focusin":case"focusout":Dt=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":_t.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Lt(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=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void Ct(e.priority,(function(){kt(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 jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(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 Ft(e,t,n){jt(e)&&n.delete(t)}function zt(){Ot=!1,null!==Dt&&jt(Dt)&&(Dt=null),null!==Pt&&jt(Pt)&&(Pt=null),null!==Nt&&jt(Nt)&&(Nt=null),_t.forEach(Ft),Rt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Wt(e){function t(t){return Ut(t,e)}if(0<It.length){Ut(It[0],e);for(var n=1;n<It.length;n++){var r=It[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Dt&&Ut(Dt,e),null!==Pt&&Ut(Pt,e),null!==Nt&&Ut(Nt,e),_t.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 Gt=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var o=yt,a=Gt.transition;Gt.transition=null;try{yt=1,qt(e,t,n,r)}finally{yt=o,Gt.transition=a}}function $t(e,t,n,r){var o=yt,a=Gt.transition;Gt.transition=null;try{yt=4,qt(e,t,n,r)}finally{yt=o,Gt.transition=a}}function qt(e,t,n,r){if(Ht){var o=Yt(e,t,n,r);if(null===o)Hr(e,t,r,Qt,n),At(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Dt=Lt(Dt,e,t,n,r,o),!0;case"dragenter":return Pt=Lt(Pt,e,t,n,r,o),!0;case"mouseover":return Nt=Lt(Nt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return _t.set(a,Lt(_t.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Rt.set(a,Lt(Rt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(At(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==o;){var a=wo(o);if(null!==a&&Et(a),null===(a=Yt(e,t,n,r))&&Hr(e,t,r,Qt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Qt=null;function Yt(e,t,n,r){if(Qt=null,null!==(e=yo(e=Ee(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ge(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 Qt=e,null}function Kt(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(Xe()){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 Jt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Jt?Jt.value:Jt.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,un,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(sn),dn=B({},sn,{view:0,detail:0}),fn=on(dn),pn=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!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=on(pn),hn=on(B({},pn,{dataTransfer:0})),gn=on(B({},dn,{relatedTarget:0})),vn=on(B({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=B({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),wn=on(B({},sn,{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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Cn(){return Sn}var On=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}}),In=on(On),Dn=on(B({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(B({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Nn=on(B({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=B({},pn,{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(_n),Tn=[9,13,27,32],Mn=c&&"CompositionEvent"in window,An=null;c&&"documentMode"in document&&(An=document.documentMode);var Ln=c&&"TextEvent"in window&&!An,Bn=c&&(!Mn||An&&8<An&&11>=An),jn=String.fromCharCode(32),Fn=!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 Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,Gn={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?!!Gn[e.type]:"textarea"===t}function Vn(e,t,n,r){Oe(r),0<(t=$r(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,qn=null;function Qn(e){jr(e,0)}function Yn(e){if(q(Eo(e)))return e}function Kn(e,t){if("change"===e)return t}var Jn=!1;if(c){var Xn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Jn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),qn=$n=null)}function nr(e){if("value"===e.propertyName&&Yn(qn)){var t=[];Vn(t,qn,e,Ee(e)),_e(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(qn)}function ar(e,t){if("click"===e)return Yn(t)}function ir(e,t){if("input"===e||"change"===e)return Yn(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 ur(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 sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(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=sr(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 fr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(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=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(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=cr(n,a);var i=cr(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 hr=c&&"documentMode"in document&&11>=document.documentMode,gr=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==gr||gr!==Q(r)||(r="selectionStart"in(r=gr)&&pr(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&&ur(br,r)||(br=r,0<(r=$r(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}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")},kr={},Sr={};function Cr(e){if(kr[e])return kr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}c&&(Sr=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 Or=Cr("animationend"),Ir=Cr("animationiteration"),Dr=Cr("animationstart"),Pr=Cr("transitionend"),Nr=new Map,_r="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){Nr.set(e,t),u(t,[e])}for(var Tr=0;Tr<_r.length;Tr++){var Mr=_r[Tr];Rr(Mr.toLowerCase(),"on"+(Mr[0].toUpperCase()+Mr.slice(1)))}Rr(Or,"onAnimationEnd"),Rr(Ir,"onAnimationIteration"),Rr(Dr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Pr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="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(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ar));function Br(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,u,s){if(Ue.apply(this,arguments),Le){if(!Le)throw Error(a(198));var c=Be;Le=!1,Be=null,je||(je=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=0!=(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],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==a&&o.isPropagationStopped())break e;Br(o,l,s),a=u}else for(i=0;i<r.length;i++){if(u=(l=r[i]).instance,s=l.currentTarget,l=l.listener,u!==a&&o.isPropagationStopped())break e;Br(o,l,s),a=u}}}if(je)throw e=Fe,je=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Gr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Gr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Ur]){e[Ur]=!0,i.forEach((function(t){"selectionchange"!==t&&(Lr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,zr("selectionchange",!1,t))}}function Gr(e,t,n,r){switch(Kt(t)){case 1:var o=Vt;break;case 4:o=$t;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(0==(1&t)&&0==(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 u=i.tag;if((3===u||4===u)&&((u=i.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=yo(l)))return;if(5===(u=i.tag)||6===u){r=a=i;continue e}l=l.parentNode}}r=r.return}_e((function(){var r=a,o=Ee(n),i=[];e:{var l=Nr.get(e);if(void 0!==l){var u=cn,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=In;break;case"focusin":s="focus",u=gn;break;case"focusout":s="blur",u=gn;break;case"beforeblur":case"afterblur":u=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Pn;break;case Or:case Ir:case Dr:u=vn;break;case Pr:u=Nn;break;case"scroll":u=fn;break;case"wheel":u=Rn;break;case"copy":case"cut":case"paste":u=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Dn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&null!=(h=Re(m,f))&&c.push(Vr(m,h,p))),d)break;m=m.return}0<c.length&&(l=new u(l,s,null,n,o),i.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(s=n.relatedTarget||n.fromElement)||!yo(s)&&!s[ho])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?yo(s):null)&&(s!==(d=We(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=mn,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Dn,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==u?l:Eo(u),p=null==s?l:Eo(s),(l=new c(h,m+"leave",u,n,o)).target=d,l.relatedTarget=p,h=null,yo(o)===r&&((c=new c(f,m+"enter",s,n,o)).target=p,c.relatedTarget=d,h=c),d=h,u&&s)e:{for(f=s,m=0,p=c=u;p;p=qr(p))m++;for(p=0,h=f;h;h=qr(h))p++;for(;0<m-p;)c=qr(c),m--;for(;0<p-m;)f=qr(f),p--;for(;m--;){if(c===f||null!==f&&c===f.alternate)break e;c=qr(c),f=qr(f)}c=null}else c=null;null!==u&&Qr(i,l,u,c,!1),null!==s&&null!==d&&Qr(i,d,s,c,!0)}if("select"===(u=(l=r?Eo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var g=Kn;else if(Hn(l))if(Jn)g=ir;else{g=or;var v=rr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ar);switch(g&&(g=g(e,r))?Vn(i,g,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)&&(gr=v,vr=r,br=null);break;case"focusout":br=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(i,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":wr(i,n,o)}var b;if(Mn)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 Wn?zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Bn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Wn&&(b=en()):(Xt="value"in(Jt=o)?Jt.value:Jt.textContent,Wn=!0)),0<(v=$r(r,y)).length&&(y=new wn(y,e,null,n,o),i.push({event:y,listeners:v}),(b||null!==(b=Un(n)))&&(y.data=b))),(b=Ln?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,jn);case"textInput":return(e=t.data)===jn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Mn&&zn(e,t)?(e=en(),Zt=Xt=Jt=null,Wn=!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=$r(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b)}jr(i,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(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 Qr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Re(n,a))&&i.unshift(Vr(n,u,l)):o||null!=(u=Re(n,a))&&i.push(Vr(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Yr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Kr,"")}function Xr(e,t,n){if(t=Jr(t),Jr(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 uo(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 Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(t)}function so(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 co(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 fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,mo="__reactProps$"+fo,ho="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ho]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[ho])||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 ko=[],So=-1;function Co(e){return{current:e}}function Oo(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function Io(e,t){So++,ko[So]=e.current,e.current=t}var Do={},Po=Co(Do),No=Co(!1),_o=Do;function Ro(e,t){var n=e.type.contextTypes;if(!n)return Do;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 Mo(){Oo(No),Oo(Po)}function Ao(e,t,n){if(Po.current!==Do)throw Error(a(168));Io(Po,t),Io(No,n)}function Lo(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,G(e)||"Unknown",o));return B({},n,r)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Do,_o=Po.current,Io(Po,e),Io(No,No.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Lo(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,Oo(No),Oo(Po),Io(Po,e)):Oo(No),Io(No,n)}var Fo=null,zo=!1,Uo=!1;function Wo(e){null===Fo?Fo=[e]:Fo.push(e)}function Go(){if(!Uo&&null!==Fo){Uo=!0;var e=0,t=yt;try{var n=Fo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,zo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),qe(Ze,Go),t}finally{yt=t,Uo=!1}}return null}var Ho=[],Vo=0,$o=null,qo=0,Qo=[],Yo=0,Ko=null,Jo=1,Xo="";function Zo(e,t){Ho[Vo++]=qo,Ho[Vo++]=$o,$o=e,qo=t}function ea(e,t,n){Qo[Yo++]=Jo,Qo[Yo++]=Xo,Qo[Yo++]=Ko,Ko=e;var r=Jo;e=Xo;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,Jo=1<<32-it(t)+o|n<<o|r,Xo=a+e}else Jo=1<<a|n<<o|r,Xo=e}function ta(e){null!==e.return&&(Zo(e,1),ea(e,1,0))}function na(e){for(;e===$o;)$o=Ho[--Vo],Ho[Vo]=null,qo=Ho[--Vo],Ho[Vo]=null;for(;e===Ko;)Ko=Qo[--Yo],Qo[Yo]=null,Xo=Qo[--Yo],Qo[Yo]=null,Jo=Qo[--Yo],Qo[Yo]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=Rs(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 ua(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=so(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!==Ko?{id:Jo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Rs(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function sa(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ca(e){if(aa){var t=oa;if(t){var n=t;if(!ua(e,t)){if(sa(e))throw Error(a(418));t=so(n.nextSibling);var r=ra;t&&ua(e,t)?la(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(sa(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 fa(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(sa(e))throw pa(),Error(a(418));for(;t;)la(e,t),t=so(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=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?so(e.stateNode.nextSibling):null;return!0}function pa(){for(var e=oa;e;)e=so(e.nextSibling)}function ma(){oa=ra=null,aa=!1}function ha(e){null===ia?ia=[e]:ia.push(e)}var ga=w.ReactCurrentBatchConfig;function va(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}var ba=Co(null),ya=null,wa=null,Ea=null;function xa(){Ea=wa=ya=null}function ka(e){var t=ba.current;Oo(ba),e._currentValue=t}function Sa(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 Ca(e,t){ya=e,Ea=wa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Oa(e){var t=e._currentValue;if(Ea!==e)if(e={context:e,memoizedValue:t,next:null},null===wa){if(null===ya)throw Error(a(308));wa=e,ya.dependencies={lanes:0,firstContext:e}}else wa=wa.next=e;return t}var Ia=null;function Da(e){null===Ia?Ia=[e]:Ia.push(e)}function Pa(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Da(t)):(n.next=o.next,o.next=n),t.interleaved=n,Na(e,r)}function Na(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 _a=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ta(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 Ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Aa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Pu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Na(e,n)}return null===(o=r.interleaved)?(t.next=t,Da(r)):(t.next=o.next,o.next=t),r.interleaved=t,Na(e,n)}function La(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ba(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 ja(e,t,n,r){var o=e.updateQueue;_a=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===i?a=s:i.next=s,i=u;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u)}if(null!==a){var d=o.baseState;for(i=0,c=s=u=null,l=a;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(f=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=h.payload)?m.call(p,d,f):m))break e;d=B({},d,f);break e;case 2:_a=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=p,u=d):c=c.next=p,i|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(u=d),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Bu|=i,e.lanes=i,e.memoizedState=d}}function Fa(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 za=(new r.Component).refs;function Ua(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 Wa={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ts(),o=ns(e),a=Ma(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Aa(e,a,o))&&(rs(t,e,o,r),La(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ts(),o=ns(e),a=Ma(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Aa(e,a,o))&&(rs(t,e,o,r),La(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ts(),r=ns(e),o=Ma(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Aa(e,o,r))&&(rs(t,e,r,n),La(t,e,r))}};function Ga(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(o,a))}function Ha(e,t,n){var r=!1,o=Do,a=t.contextType;return"object"==typeof a&&null!==a?a=Oa(a):(o=To(t)?_o:Po.current,a=(r=null!=(r=t.contextTypes))?Ro(e,o):Do),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wa,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Va(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&&Wa.enqueueReplaceState(t,t.state,null)}function $a(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=za,Ra(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Oa(a):(a=To(t)?_o:Po.current,o.context=Ro(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ua(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&&Wa.enqueueReplaceState(o,o.state,null),ja(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function qa(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;t===za&&(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 Qa(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 Ka(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=Ms(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 u(e,t,n,r){return null===t||6!==t.tag?((t=js(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===k?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=qa(e,t,n),r.return=e,r):((r=As(n.type,n.key,n.props,null,e.mode,r)).ref=qa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fs(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=Ls(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=js(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=As(t.type,t.key,t.props,null,e.mode,n)).ref=qa(e,null,t),n.return=e,n;case x:return(t=Fs(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(te(t)||A(t))return(t=Ls(t,e.mode,n,null)).return=e,t;Qa(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?s(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case R:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||A(n))return null!==o?null:d(e,t,n,r,null);Qa(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(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)||A(r))return d(t,e=e.get(n)||null,r,o,null);Qa(t,r)}return null}function h(o,a,l,u){for(var s=null,c=null,d=a,h=a=0,g=null;null!==d&&h<l.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var v=p(o,d,l[h],u);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,h),null===c?s=v:c.sibling=v,c=v,d=g}if(h===l.length)return n(o,d),aa&&Zo(o,h),s;if(null===d){for(;h<l.length;h++)null!==(d=f(o,l[h],u))&&(a=i(d,a,h),null===c?s=d:c.sibling=d,c=d);return aa&&Zo(o,h),s}for(d=r(o,d);h<l.length;h++)null!==(g=m(d,o,h,l[h],u))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),a=i(g,a,h),null===c?s=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(o,e)})),aa&&Zo(o,h),s}function g(o,l,u,s){var c=A(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var d=c=null,h=l,g=l=0,v=null,b=u.next();null!==h&&!b.done;g++,b=u.next()){h.index>g?(v=h,h=null):v=h.sibling;var y=p(o,h,b.value,s);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(o,h),l=i(y,l,g),null===d?c=y:d.sibling=y,d=y,h=v}if(b.done)return n(o,h),aa&&Zo(o,g),c;if(null===h){for(;!b.done;g++,b=u.next())null!==(b=f(o,b.value,s))&&(l=i(b,l,g),null===d?c=b:d.sibling=b,d=b);return aa&&Zo(o,g),c}for(h=r(o,h);!b.done;g++,b=u.next())null!==(b=m(h,o,g,b.value,s))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),l=i(b,l,g),null===d?c=b:d.sibling=b,d=b);return e&&h.forEach((function(e){return t(o,e)})),aa&&Zo(o,g),c}return function e(r,a,i,u){if("object"==typeof i&&null!==i&&i.type===k&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case E:e:{for(var s=i.key,c=a;null!==c;){if(c.key===s){if((s=i.type)===k){if(7===c.tag){n(r,c.sibling),(a=o(c,i.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===R&&Ya(s)===c.type){n(r,c.sibling),(a=o(c,i.props)).ref=qa(r,c,i),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===k?((a=Ls(i.props.children,r.mode,u,i.key)).return=r,r=a):((u=As(i.type,i.key,i.props,null,r.mode,u)).ref=qa(r,a,i),u.return=r,r=u)}return l(r);case x:e:{for(c=i.key;null!==a;){if(a.key===c){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=Fs(i,r.mode,u)).return=r,r=a}return l(r);case R:return e(r,a,(c=i._init)(i._payload),u)}if(te(i))return h(r,a,i,u);if(A(i))return g(r,a,i,u);Qa(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=js(i,r.mode,u)).return=r,r=a),l(r)):n(r,a)}}var Ja=Ka(!0),Xa=Ka(!1),Za={},ei=Co(Za),ti=Co(Za),ni=Co(Za);function ri(e){if(e===Za)throw Error(a(174));return e}function oi(e,t){switch(Io(ni,t),Io(ti,e),Io(ei,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(ei),Io(ei,t)}function ai(){Oo(ei),Oo(ti),Oo(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=ue(t,e.type);t!==n&&(Io(ti,e),Io(ei,n))}function li(e){ti.current===e&&(Oo(ei),Oo(ti))}var ui=Co(0);function si(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(0!=(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 ci=[];function di(){for(var e=0;e<ci.length;e++)ci[e]._workInProgressVersionPrimary=null;ci.length=0}var fi=w.ReactCurrentDispatcher,pi=w.ReactCurrentBatchConfig,mi=0,hi=null,gi=null,vi=null,bi=!1,yi=!1,wi=0,Ei=0;function xi(){throw Error(a(321))}function ki(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 Si(e,t,n,r,o,i){if(mi=i,hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fi.current=null===e||null===e.memoizedState?ll:ul,e=n(r,o),yi){i=0;do{if(yi=!1,wi=0,25<=i)throw Error(a(301));i+=1,vi=gi=null,t.updateQueue=null,fi.current=sl,e=n(r,o)}while(yi)}if(fi.current=il,t=null!==gi&&null!==gi.next,mi=0,vi=gi=hi=null,bi=!1,t)throw Error(a(300));return e}function Ci(){var e=0!==wi;return wi=0,e}function Oi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vi?hi.memoizedState=vi=e:vi=vi.next=e,vi}function Ii(){if(null===gi){var e=hi.alternate;e=null!==e?e.memoizedState:null}else e=gi.next;var t=null===vi?hi.memoizedState:vi.next;if(null!==t)vi=t,gi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(gi=e).memoizedState,baseState:gi.baseState,baseQueue:gi.baseQueue,queue:gi.queue,next:null},null===vi?hi.memoizedState=vi=e:vi=vi.next=e}return vi}function Di(e,t){return"function"==typeof t?t(e):t}function Pi(e){var t=Ii(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=gi,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 u=l=null,s=null,c=i;do{var d=c.lane;if((mi&d)===d)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=f,l=r):s=s.next=f,hi.lanes|=d,Bu|=d}c=c.next}while(null!==c&&c!==i);null===s?l=r:s.next=u,lr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,hi.lanes|=i,Bu|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ni(e){var t=Ii(),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)||(wl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function _i(){}function Ri(e,t){var n=hi,r=Ii(),o=t(),i=!lr(r.memoizedState,o);if(i&&(r.memoizedState=o,wl=!0),r=r.queue,Hi(Ai.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==vi&&1&vi.memoizedState.tag){if(n.flags|=2048,Fi(9,Mi.bind(null,n,r,o,t),void 0,null),null===Nu)throw Error(a(349));0!=(30&mi)||Ti(n,t,o)}return o}function Ti(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Mi(e,t,n,r){t.value=n,t.getSnapshot=r,Li(t)&&Bi(e)}function Ai(e,t,n){return n((function(){Li(t)&&Bi(e)}))}function Li(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Bi(e){var t=Na(e,1);null!==t&&rs(t,e,1,-1)}function ji(e){var t=Oi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,hi,e),[t.memoizedState,e]}function Fi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.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 zi(){return Ii().memoizedState}function Ui(e,t,n,r){var o=Oi();hi.flags|=e,o.memoizedState=Fi(1|t,n,void 0,void 0===r?null:r)}function Wi(e,t,n,r){var o=Ii();r=void 0===r?null:r;var a=void 0;if(null!==gi){var i=gi.memoizedState;if(a=i.destroy,null!==r&&ki(r,i.deps))return void(o.memoizedState=Fi(t,n,a,r))}hi.flags|=e,o.memoizedState=Fi(1|t,n,a,r)}function Gi(e,t){return Ui(8390656,8,e,t)}function Hi(e,t){return Wi(2048,8,e,t)}function Vi(e,t){return Wi(4,2,e,t)}function $i(e,t){return Wi(4,4,e,t)}function qi(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 Qi(e,t,n){return n=null!=n?n.concat([e]):null,Wi(4,4,qi.bind(null,t,e),n)}function Yi(){}function Ki(e,t){var n=Ii();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ki(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ji(e,t){var n=Ii();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ki(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 0==(21&mi)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lr(n,t)||(n=ht(),hi.lanes|=n,Bu|=n,e.baseState=!0),t)}function Zi(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=pi.transition;pi.transition={};try{e(!1),t()}finally{yt=n,pi.transition=r}}function el(){return Ii().memoizedState}function tl(e,t,n){var r=ns(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e)?ol(t,n):null!==(n=Pa(e,t,n,r))&&(rs(n,e,r,ts()),al(n,t,r))}function nl(e,t,n){var r=ns(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(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 u=t.interleaved;return null===u?(o.next=o,Da(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Pa(e,t,o,r))&&(rs(n,e,r,o=ts()),al(n,t,r))}}function rl(e){var t=e.alternate;return e===hi||null!==t&&t===hi}function ol(e,t){yi=bi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function al(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var il={readContext:Oa,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useInsertionEffect:xi,useLayoutEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useMutableSource:xi,useSyncExternalStore:xi,useId:xi,unstable_isNewReconciler:!1},ll={readContext:Oa,useCallback:function(e,t){return Oi().memoizedState=[e,void 0===t?null:t],e},useContext:Oa,useEffect:Gi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ui(4194308,4,qi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=Oi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oi();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=tl.bind(null,hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oi().memoizedState=e},useState:ji,useDebugValue:Yi,useDeferredValue:function(e){return Oi().memoizedState=e},useTransition:function(){var e=ji(!1),t=e[0];return e=Zi.bind(null,e[1]),Oi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hi,o=Oi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Nu)throw Error(a(349));0!=(30&mi)||Ti(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Gi(Ai.bind(null,r,i,e),[e]),r.flags|=2048,Fi(9,Mi.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Oi(),t=Nu.identifierPrefix;if(aa){var n=Xo;t=":"+t+"R"+(n=(Jo&~(1<<32-it(Jo)-1)).toString(32)+n),0<(n=wi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ei++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ul={readContext:Oa,useCallback:Ki,useContext:Oa,useEffect:Hi,useImperativeHandle:Qi,useInsertionEffect:Vi,useLayoutEffect:$i,useMemo:Ji,useReducer:Pi,useRef:zi,useState:function(){return Pi(Di)},useDebugValue:Yi,useDeferredValue:function(e){return Xi(Ii(),gi.memoizedState,e)},useTransition:function(){return[Pi(Di)[0],Ii().memoizedState]},useMutableSource:_i,useSyncExternalStore:Ri,useId:el,unstable_isNewReconciler:!1},sl={readContext:Oa,useCallback:Ki,useContext:Oa,useEffect:Hi,useImperativeHandle:Qi,useInsertionEffect:Vi,useLayoutEffect:$i,useMemo:Ji,useReducer:Ni,useRef:zi,useState:function(){return Ni(Di)},useDebugValue:Yi,useDeferredValue:function(e){var t=Ii();return null===gi?t.memoizedState=e:Xi(t,gi.memoizedState,e)},useTransition:function(){return[Ni(Di)[0],Ii().memoizedState]},useMutableSource:_i,useSyncExternalStore:Ri,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=U(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 dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function ml(e,t,n){(n=Ma(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vu||(Vu=!0,$u=r),fl(0,t)},n}function hl(e,t,n){(n=Ma(-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(){fl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===qu?qu=new Set([this]):qu.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=Os.bind(null,e,t,n),t.then(e,e))}function vl(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 bl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ma(-1,1)).tag=2,Aa(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var yl=w.ReactCurrentOwner,wl=!1;function El(e,t,n,r){t.child=null===e?Xa(t,null,n,r):Ja(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var a=t.ref;return Ca(t,o),r=Si(e,t,n,r,a,o),n=Ci(),null===e||wl?(aa&&n&&ta(t),t.flags|=1,El(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function kl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Ts(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=As(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,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(i,r)&&e.ref===t.ref)return Vl(e,t,o)}return t.flags|=1,(e=Ms(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(ur(a,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Vl(e,t,o);0!=(131072&e.flags)&&(wl=!0)}}return Il(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Io(Mu,Tu),Tu|=n;else{if(0==(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,Io(Mu,Tu),Tu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Io(Mu,Tu),Tu|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Io(Mu,Tu),Tu|=r;return El(e,t,o,n),t.child}function Ol(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Il(e,t,n,r,o){var a=To(n)?_o:Po.current;return a=Ro(t,a),Ca(t,o),n=Si(e,t,n,r,a,o),r=Ci(),null===e||wl?(aa&&r&&ta(t),t.flags|=1,El(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function Dl(e,t,n,r,o){if(To(n)){var a=!0;Bo(t)}else a=!1;if(Ca(t,o),null===t.stateNode)Hl(e,t),Ha(t,n,r),$a(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,s=n.contextType;s="object"==typeof s&&null!==s?Oa(s):Ro(t,s=To(n)?_o:Po.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||u!==s)&&Va(t,i,r,s),_a=!1;var f=t.memoizedState;i.state=f,ja(t,r,i,o),u=t.memoizedState,l!==r||f!==u||No.current||_a?("function"==typeof c&&(Ua(t,n,c,r),u=t.memoizedState),(l=_a||Ga(t,n,l,r,f,u,s))?(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=u),i.props=r,i.state=u,i.context=s,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ta(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:va(t.type,l),i.props=s,d=t.pendingProps,f=i.context,u="object"==typeof(u=n.contextType)&&null!==u?Oa(u):Ro(t,u=To(n)?_o:Po.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||f!==u)&&Va(t,i,r,u),_a=!1,f=t.memoizedState,i.state=f,ja(t,r,i,o);var m=t.memoizedState;l!==d||f!==m||No.current||_a?("function"==typeof p&&(Ua(t,n,p,r),m=t.memoizedState),(s=_a||Ga(t,n,s,r,f,m,u)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=u,r=s):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Pl(e,t,n,r,a,o)}function Pl(e,t,n,r,o,a){Ol(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&jo(t,n,!1),Vl(e,t,a);r=t.stateNode,yl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ja(t,e.child,null,a),t.child=Ja(t,null,l,a)):El(e,t,l,a),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Nl(e){var t=e.stateNode;t.pendingContext?Ao(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ao(0,t.context,!1),oi(e,t.containerInfo)}function _l(e,t,n,r,o){return ma(),ha(o),t.flags|=256,El(e,t,n,r),t.child}var Rl,Tl,Ml,Al,Ll={dehydrated:null,treeContext:null,retryLane:0};function Bl(e){return{baseLanes:e,cachePool:null,transitions:null}}function jl(e,t,n){var r,o=t.pendingProps,i=ui.current,l=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Io(ui,1&i),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,l?(o=t.mode,l=t.child,u={mode:"hidden",children:u},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Bs(u,o,0,null),e=Ls(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Bl(n),t.memoizedState=Ll,e):Fl(t,u));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,zl(e,t,l,r=dl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Bs({mode:"visible",children:r.children},o,0,null),(i=Ls(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Ja(t,e.child,null,l),t.child.memoizedState=Bl(l),t.memoizedState=Ll,i);if(0==(1&t.mode))return zl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var u=r.dgst;return r=u,zl(e,t,l,r=dl(i=Error(a(419)),r,void 0))}if(u=0!=(l&e.childLanes),wl||u){if(null!==(r=Nu)){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=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Na(e,o),rs(r,e,o,-1))}return gs(),zl(e,t,l,r=dl(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ds.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=so(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Qo[Yo++]=Jo,Qo[Yo++]=Xo,Qo[Yo++]=Ko,Jo=e.id,Xo=e.overflow,Ko=t),(t=Fl(t,r.children)).flags|=4096,t)}(e,t,u,o,r,i,n);if(l){l=o.fallback,u=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&u)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Ms(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?l=Ms(r,l):(l=Ls(l,u,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,u=null===(u=e.child.memoizedState)?Bl(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Ll,o}return e=(l=e.child).sibling,o=Ms(l,{mode:"visible",children:o.children}),0==(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=Bs({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&ha(r),Ja(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ul(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Sa(e.return,t,n)}function Wl(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 Gl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(El(e,t,r.children,n),0!=(2&(r=ui.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ul(e,n,t);else if(19===e.tag)Ul(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(Io(ui,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===si(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Wl(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===si(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Wl(t,!0,n,null,a);break;case"together":Wl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ms(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ms(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $l(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 ql(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 ql(t),null;case 1:case 17:return To(t.type)&&Mo(),ql(t),null;case 3:return r=t.stateNode,ai(),Oo(No),Oo(Po),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ia&&(ls(ia),ia=null))),Tl(e,t),ql(t),null;case 5:li(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Ml(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 ql(t),null}if(e=ri(ei.current),fa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[po]=t,r[mo]=i,e=0!=(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<Ar.length;o++)Fr(Ar[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":K(r,i),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Fr("invalid",r);break;case"textarea":oe(r,i),Fr("invalid",r)}for(var u in be(n,i),o=null,i)if(i.hasOwnProperty(u)){var s=i[u];"children"===u?"string"==typeof s?r.textContent!==s&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&Fr("scroll",r)}switch(n){case"input":$(r),Z(r,i,!0);break;case"textarea":$(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{u=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=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[po]=t,e[mo]=r,Rl(e,t,!1,!1),t.stateNode=e;e:{switch(u=ye(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ar.length;o++)Fr(Ar[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":K(e,r),o=Y(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=B({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(i in be(n,o),s=o)if(s.hasOwnProperty(i)){var c=s[i];"style"===i?ge(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===i?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(l.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Fr("scroll",e):null!=c&&y(e,i,c,u))}switch(n){case"input":$(e),Z(e,r,!1);break;case"textarea":$(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 ql(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=ri(ni.current),ri(ei.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Xr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return ql(t),null;case 13:if(Oo(ui),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!=(1&t.mode)&&0==(128&t.flags))pa(),ma(),t.flags|=98560,i=!1;else if(i=fa(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[po]=t}else ma(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),i=!1}else null!==ia&&(ls(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ui.current)?0===Au&&(Au=3):gs())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return ai(),Tl(e,t),null===e&&Wr(t.stateNode.containerInfo),ql(t),null;case 10:return ka(t.type._context),ql(t),null;case 19:if(Oo(ui),null===(i=t.memoizedState))return ql(t),null;if(r=0!=(128&t.flags),null===(u=i.rendering))if(r)$l(i,!1);else{if(0!==Au||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=si(e))){for(t.flags|=128,$l(i,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(u=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=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,e=u.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Io(ui,1&ui.current|2),t.child}e=e.sibling}null!==i.tail&&Je()>Gu&&(t.flags|=128,r=!0,$l(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=si(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$l(i,!0),null===i.tail&&"hidden"===i.tailMode&&!u.alternate&&!aa)return ql(t),null}else 2*Je()-i.renderingStartTime>Gu&&1073741824!==n&&(t.flags|=128,r=!0,$l(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=i.last)?n.sibling=u:t.child=u,i.last=u)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Je(),t.sibling=null,n=ui.current,Io(ui,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return fs(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Tu)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Yl(e,t){switch(na(t),t.tag){case 1:return To(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Oo(No),Oo(Po),di(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return li(t),null;case 13:if(Oo(ui),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 Oo(ui),null;case 4:return ai(),null;case 10:return ka(t.type._context),null;case 22:case 23:return fs(),null;default:return null}}Rl=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}},Tl=function(){},Ml=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var a,i=null;switch(n){case"input":o=Y(e,o),r=Y(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(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(a in u)!u.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&u[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Fr("scroll",e),i||u===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Al=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kl=!1,Jl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cs(e,t,n)}else n.current=null}function tu(e,t,n){try{n()}catch(n){Cs(e,t,n)}}var nu=!1;function ru(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&&tu(t,n,a)}o=o.next}while(o!==r)}}function ou(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 au(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 iu(e){var t=e.alternate;null!==t&&(e.alternate=null,iu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[mo],delete t[go],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 lu(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||lu(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 su(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(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}function cu(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(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}var du=null,fu=!1;function pu(e,t,n){for(n=n.child;null!==n;)mu(e,t,n),n=n.sibling}function mu(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Jl||eu(n,t);case 6:var r=du,o=fu;du=null,pu(e,t,n),fu=o,null!==(du=r)&&(fu?(e=du,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):du.removeChild(n.stateNode));break;case 18:null!==du&&(fu?(e=du,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),Wt(e)):uo(du,n.stateNode));break;case 4:r=du,o=fu,du=n.stateNode.containerInfo,fu=!0,pu(e,t,n),du=r,fu=o;break;case 0:case 11:case 14:case 15:if(!Jl&&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&&(0!=(2&a)||0!=(4&a))&&tu(n,t,i),o=o.next}while(o!==r)}pu(e,t,n);break;case 1:if(!Jl&&(eu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cs(n,t,e)}pu(e,t,n);break;case 21:pu(e,t,n);break;case 22:1&n.mode?(Jl=(r=Jl)||null!==n.memoizedState,pu(e,t,n),Jl=r):pu(e,t,n);break;default:pu(e,t,n)}}function hu(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=Ps.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gu(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,u=l;e:for(;null!==u;){switch(u.tag){case 5:du=u.stateNode,fu=!1;break e;case 3:case 4:du=u.stateNode.containerInfo,fu=!0;break e}u=u.return}if(null===du)throw Error(a(160));mu(i,l,o),du=null,fu=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Cs(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vu(t,e),t=t.sibling}function vu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gu(t,e),bu(e),4&r){try{ru(3,e,e.return),ou(3,e)}catch(t){Cs(e,e.return,t)}try{ru(5,e,e.return)}catch(t){Cs(e,e.return,t)}}break;case 1:gu(t,e),bu(e),512&r&&null!==n&&eu(n,n.return);break;case 5:if(gu(t,e),bu(e),512&r&&null!==n&&eu(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Cs(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===i.type&&null!=i.name&&J(o,i),ye(u,l);var c=ye(u,i);for(l=0;l<s.length;l+=2){var d=s[l],f=s[l+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,c)}switch(u){case"input":X(o,i);break;case"textarea":ae(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(o,!!i.multiple,m,!1):p!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[mo]=i}catch(t){Cs(e,e.return,t)}}break;case 6:if(gu(t,e),bu(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Cs(e,e.return,t)}}break;case 3:if(gu(t,e),bu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Cs(e,e.return,t)}break;case 4:default:gu(t,e),bu(e);break;case 13:gu(t,e),bu(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Wu=Je())),4&r&&hu(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Jl=(c=Jl)||d,gu(t,e),Jl=c):gu(t,e),bu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(m=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:ru(4,p,p.return);break;case 1:eu(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Cs(r,n,e)}}break;case 5:eu(p,p.return);break;case 22:if(null!==p.memoizedState){xu(f);continue}}null!==m?(m.return=p,Zl=m):xu(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(u=f.stateNode,l=null!=(s=f.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,u.style.display=he("display",l))}catch(t){Cs(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Cs(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gu(t,e),bu(e),4&r&&hu(e);case 21:}}function bu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(lu(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&&(fe(o,""),r.flags&=-33),cu(e,uu(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;su(e,uu(e),i);break;default:throw Error(a(161))}}catch(t){Cs(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yu(e,t,n){Zl=e,wu(e,t,n)}function wu(e,t,n){for(var r=0!=(1&e.mode);null!==Zl;){var o=Zl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Kl;if(!i){var l=o.alternate,u=null!==l&&null!==l.memoizedState||Jl;l=Kl;var s=Jl;if(Kl=i,(Jl=u)&&!s)for(Zl=o;null!==Zl;)u=(i=Zl).child,22===i.tag&&null!==i.memoizedState?ku(o):null!==u?(u.return=i,Zl=u):ku(o);for(;null!==a;)Zl=a,wu(a,t,n),a=a.sibling;Zl=o,Kl=l,Jl=s}Eu(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Zl=a):Eu(e)}}function Eu(e){for(;null!==Zl;){var t=Zl;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Jl||ou(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Jl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:va(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Fa(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}Fa(t,l,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.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 c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(a(163))}Jl||512&t.flags&&au(t)}catch(e){Cs(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function xu(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function ku(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ou(4,t)}catch(e){Cs(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cs(t,o,e)}}var a=t.return;try{au(t)}catch(e){Cs(t,a,e)}break;case 5:var i=t.return;try{au(t)}catch(e){Cs(t,i,e)}}}catch(e){Cs(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var Su,Cu=Math.ceil,Ou=w.ReactCurrentDispatcher,Iu=w.ReactCurrentOwner,Du=w.ReactCurrentBatchConfig,Pu=0,Nu=null,_u=null,Ru=0,Tu=0,Mu=Co(0),Au=0,Lu=null,Bu=0,ju=0,Fu=0,zu=null,Uu=null,Wu=0,Gu=1/0,Hu=null,Vu=!1,$u=null,qu=null,Qu=!1,Yu=null,Ku=0,Ju=0,Xu=null,Zu=-1,es=0;function ts(){return 0!=(6&Pu)?Je():-1!==Zu?Zu:Zu=Je()}function ns(e){return 0==(1&e.mode)?1:0!=(2&Pu)&&0!==Ru?Ru&-Ru:null!==ga.transition?(0===es&&(es=ht()),es):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function rs(e,t,n,r){if(50<Ju)throw Ju=0,Xu=null,Error(a(185));vt(e,n,r),0!=(2&Pu)&&e===Nu||(e===Nu&&(0==(2&Pu)&&(ju|=n),4===Au&&us(e,Ru)),os(e,r),1===n&&0===Pu&&0==(1&t.mode)&&(Gu=Je()+500,zo&&Go()))}function os(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,u=o[i];-1===u?0!=(l&n)&&0==(l&r)||(o[i]=pt(l,t)):u<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=ft(e,e===Nu?Ru:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){zo=!0,Wo(e)}(ss.bind(null,e)):Wo(ss.bind(null,e)),io((function(){0==(6&Pu)&&Go()})),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=Ns(n,as.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function as(e,t){if(Zu=-1,es=0,0!=(6&Pu))throw Error(a(327));var n=e.callbackNode;if(ks()&&e.callbackNode!==n)return null;var r=ft(e,e===Nu?Ru:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=vs(e,r);else{t=r;var o=Pu;Pu|=2;var i=hs();for(Nu===e&&Ru===t||(Hu=null,Gu=Je()+500,ps(e,t));;)try{ys();break}catch(t){ms(e,t)}xa(),Ou.current=i,Pu=o,null!==_u?t=0:(Nu=null,Ru=0,t=Au)}if(0!==t){if(2===t&&0!==(o=mt(e))&&(r=o,t=is(e,o)),1===t)throw n=Lu,ps(e,0),us(e,r),os(e,Je()),n;if(6===t)us(e,r);else{if(o=e.current.alternate,0==(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)&&(2===(t=vs(e,r))&&0!==(i=mt(e))&&(r=i,t=is(e,i)),1===t))throw n=Lu,ps(e,0),us(e,r),os(e,Je()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:xs(e,Uu,Hu);break;case 3:if(us(e,r),(130023424&r)===r&&10<(t=Wu+500-Je())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ts(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xs.bind(null,e,Uu,Hu),t);break}xs(e,Uu,Hu);break;case 4:if(us(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=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cu(r/1960))-r)){e.timeoutHandle=ro(xs.bind(null,e,Uu,Hu),r);break}xs(e,Uu,Hu);break;default:throw Error(a(329))}}}return os(e,Je()),e.callbackNode===n?as.bind(null,e):null}function is(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(ps(e,t).flags|=256),2!==(e=vs(e,t))&&(t=Uu,Uu=n,null!==t&&ls(t)),e}function ls(e){null===Uu?Uu=e:Uu.push.apply(Uu,e)}function us(e,t){for(t&=~Fu,t&=~ju,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 ss(e){if(0!=(6&Pu))throw Error(a(327));ks();var t=ft(e,0);if(0==(1&t))return os(e,Je()),null;var n=vs(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=is(e,r))}if(1===n)throw n=Lu,ps(e,0),us(e,t),os(e,Je()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e,Uu,Hu),os(e,Je()),null}function cs(e,t){var n=Pu;Pu|=1;try{return e(t)}finally{0===(Pu=n)&&(Gu=Je()+500,zo&&Go())}}function ds(e){null!==Yu&&0===Yu.tag&&0==(6&Pu)&&ks();var t=Pu;Pu|=1;var n=Du.transition,r=yt;try{if(Du.transition=null,yt=1,e)return e()}finally{yt=r,Du.transition=n,0==(6&(Pu=t))&&Go()}}function fs(){Tu=Mu.current,Oo(Mu)}function ps(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==_u)for(n=_u.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mo();break;case 3:ai(),Oo(No),Oo(Po),di();break;case 5:li(r);break;case 4:ai();break;case 13:case 19:Oo(ui);break;case 10:ka(r.type._context);break;case 22:case 23:fs()}n=n.return}if(Nu=e,_u=e=Ms(e.current,null),Ru=Tu=t,Au=0,Lu=null,Fu=ju=Bu=0,Uu=zu=null,null!==Ia){for(t=0;t<Ia.length;t++)if(null!==(r=(n=Ia[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}Ia=null}return e}function ms(e,t){for(;;){var n=_u;try{if(xa(),fi.current=il,bi){for(var r=hi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}bi=!1}if(mi=0,vi=gi=hi=null,yi=!1,wi=0,Iu.current=null,null===n||null===n.return){Au=1,Lu=t,_u=null;break}e:{var i=e,l=n.return,u=n,s=t;if(t=Ru,u.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,d=u,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=vl(l);if(null!==m){m.flags&=-257,bl(m,l,u,0,t),1&m.mode&&gl(i,c,t),s=c;var h=(t=m).updateQueue;if(null===h){var g=new Set;g.add(s),t.updateQueue=g}else h.add(s);break e}if(0==(1&t)){gl(i,c,t),gs();break e}s=Error(a(426))}else if(aa&&1&u.mode){var v=vl(l);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),bl(v,l,u,0,t),ha(cl(s,u));break e}}i=s=cl(s,u),4!==Au&&(Au=2),null===zu?zu=[i]:zu.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ba(i,ml(0,s,t));break e;case 1:u=s;var b=i.type,y=i.stateNode;if(0==(128&i.flags)&&("function"==typeof b.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===qu||!qu.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Ba(i,hl(i,u,t));break e}}i=i.return}while(null!==i)}Es(n)}catch(e){t=e,_u===n&&null!==n&&(_u=n=n.return);continue}break}}function hs(){var e=Ou.current;return Ou.current=il,null===e?il:e}function gs(){0!==Au&&3!==Au&&2!==Au||(Au=4),null===Nu||0==(268435455&Bu)&&0==(268435455&ju)||us(Nu,Ru)}function vs(e,t){var n=Pu;Pu|=2;var r=hs();for(Nu===e&&Ru===t||(Hu=null,ps(e,t));;)try{bs();break}catch(t){ms(e,t)}if(xa(),Pu=n,Ou.current=r,null!==_u)throw Error(a(261));return Nu=null,Ru=0,Au}function bs(){for(;null!==_u;)ws(_u)}function ys(){for(;null!==_u&&!Ye();)ws(_u)}function ws(e){var t=Su(e.alternate,e,Tu);e.memoizedProps=e.pendingProps,null===t?Es(e):_u=t,Iu.current=null}function Es(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ql(n,t,Tu)))return void(_u=n)}else{if(null!==(n=Yl(n,t)))return n.flags&=32767,void(_u=n);if(null===e)return Au=6,void(_u=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(_u=t);_u=t=e}while(null!==t);0===Au&&(Au=5)}function xs(e,t,n){var r=yt,o=Du.transition;try{Du.transition=null,yt=1,function(e,t,n,r){do{ks()}while(null!==Yu);if(0!=(6&Pu))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===Nu&&(_u=Nu=null,Ru=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Qu||(Qu=!0,Ns(tt,(function(){return ks(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Du.transition,Du.transition=null;var l=yt;yt=1;var u=Pu;Pu|=4,Iu.current=null,function(e,t){if(eo=Ht,pr(e=fr())){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,u=-1,s=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||0!==o&&3!==f.nodeType||(u=l+o),f!==i||0!==r&&3!==f.nodeType||(s=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(u=l),p===i&&++d===r&&(s=l),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var h=t.alternate;if(0!=(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!==h){var g=h.memoizedProps,v=h.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:va(t.type,g),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){Cs(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}h=nu,nu=!1}(e,n),vu(n,e),mr(to),Ht=!!eo,to=eo=null,e.current=n,yu(n,e,o),Ke(),Pu=u,yt=l,Du.transition=i}else e.current=n;if(Qu&&(Qu=!1,Yu=e,Ku=o),0===(i=e.pendingLanes)&&(qu=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),os(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Vu)throw Vu=!1,e=$u,$u=null,e;0!=(1&Ku)&&0!==e.tag&&ks(),0!=(1&(i=e.pendingLanes))?e===Xu?Ju++:(Ju=0,Xu=e):Ju=0,Go()}(e,t,n,r)}finally{Du.transition=o,yt=r}return null}function ks(){if(null!==Yu){var e=wt(Ku),t=Du.transition,n=yt;try{if(Du.transition=null,yt=16>e?16:e,null===Yu)var r=!1;else{if(e=Yu,Yu=null,Ku=0,0!=(6&Pu))throw Error(a(331));var o=Pu;for(Pu|=4,Zl=e.current;null!==Zl;){var i=Zl,l=i.child;if(0!=(16&Zl.flags)){var u=i.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Zl=c;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:ru(8,d,i)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,m=d.return;if(iu(d),d===c){Zl=null;break}if(null!==p){p.return=m,Zl=p;break}Zl=m}}}var h=i.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Zl=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,Zl=l;else e:for(;null!==Zl;){if(0!=(2048&(i=Zl).flags))switch(i.tag){case 0:case 11:case 15:ru(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Zl=b;break e}Zl=i.return}}var y=e.current;for(Zl=y;null!==Zl;){var w=(l=Zl).child;if(0!=(2064&l.subtreeFlags)&&null!==w)w.return=l,Zl=w;else e:for(l=y;null!==Zl;){if(0!=(2048&(u=Zl).flags))try{switch(u.tag){case 0:case 11:case 15:ou(9,u)}}catch(e){Cs(u,u.return,e)}if(u===l){Zl=null;break e}var E=u.sibling;if(null!==E){E.return=u.return,Zl=E;break e}Zl=u.return}}if(Pu=o,Go(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,Du.transition=t}}return!1}function Ss(e,t,n){e=Aa(e,t=ml(0,t=cl(n,t),1),1),t=ts(),null!==e&&(vt(e,1,t),os(e,t))}function Cs(e,t,n){if(3===e.tag)Ss(e,e,n);else for(;null!==t;){if(3===t.tag){Ss(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qu||!qu.has(r))){t=Aa(t,e=hl(t,e=cl(n,e),1),1),e=ts(),null!==t&&(vt(t,1,e),os(t,e));break}}t=t.return}}function Os(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ts(),e.pingedLanes|=e.suspendedLanes&n,Nu===e&&(Ru&n)===n&&(4===Au||3===Au&&(130023424&Ru)===Ru&&500>Je()-Wu?ps(e,0):Fu|=n),os(e,t)}function Is(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=ts();null!==(e=Na(e,t))&&(vt(e,t,n),os(e,n))}function Ds(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Is(e,n)}function Ps(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),Is(e,n)}function Ns(e,t){return qe(e,t)}function _s(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 Rs(e,t,n,r){return new _s(e,t,n,r)}function Ts(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ms(e,t){var n=e.alternate;return null===n?((n=Rs(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 As(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Ts(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case k:return Ls(n.children,o,i,t);case S:l=8,o|=8;break;case C:return(e=Rs(12,n,t,2|o)).elementType=C,e.lanes=i,e;case P:return(e=Rs(13,n,t,o)).elementType=P,e.lanes=i,e;case N:return(e=Rs(19,n,t,o)).elementType=N,e.lanes=i,e;case T:return Bs(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case I:l=9;break e;case D:l=11;break e;case _:l=14;break e;case R:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Rs(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ls(e,t,n,r){return(e=Rs(7,e,r,t)).lanes=n,e}function Bs(e,t,n,r){return(e=Rs(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function js(e,t,n){return(e=Rs(6,e,null,t)).lanes=n,e}function Fs(e,t,n){return(t=Rs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zs(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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Us(e,t,n,r,o,a,i,l,u){return e=new zs(e,t,n,l,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Rs(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(a),e}function Ws(e){if(!e)return Do;e:{if(We(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 Lo(e,n,t)}return t}function Gs(e,t,n,r,o,a,i,l,u){return(e=Us(n,r,!0,e,0,a,0,l,u)).context=Ws(null),n=e.current,(a=Ma(r=ts(),o=ns(n))).callback=null!=t?t:null,Aa(n,a,o),e.current.lanes=o,vt(e,o,r),os(e,r),e}function Hs(e,t,n,r){var o=t.current,a=ts(),i=ns(o);return n=Ws(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ma(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Aa(o,t,i))&&(rs(e,o,i,a),La(e,o,i)),i}function Vs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $s(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qs(e,t){$s(e,t),(e=e.alternate)&&$s(e,t)}Su=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||No.current)wl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Nl(t),ma();break;case 5:ii(t);break;case 1:To(t.type)&&Bo(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Io(ba,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Io(ui,1&ui.current),t.flags|=128,null):0!=(n&t.child.childLanes)?jl(e,t,n):(Io(ui,1&ui.current),null!==(e=Vl(e,t,n))?e.sibling:null);Io(ui,1&ui.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Gl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Io(ui,ui.current),r)break;return null;case 22:case 23:return t.lanes=0,Cl(e,t,n)}return Vl(e,t,n)}(e,t,n);wl=0!=(131072&e.flags)}else wl=!1,aa&&0!=(1048576&t.flags)&&ea(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hl(e,t),e=t.pendingProps;var o=Ro(t,Po.current);Ca(t,n),o=Si(null,t,r,e,o,n);var i=Ci();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,Ra(t),o.updater=Wa,t.stateNode=o,o._reactInternals=t,$a(t,r,e,n),t=Pl(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),El(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ts(e)?1:0;if(null!=e){if((e=e.$$typeof)===D)return 11;if(e===_)return 14}return 2}(r),e=va(r,e),o){case 0:t=Il(null,t,r,e,n);break e;case 1:t=Dl(null,t,r,e,n);break e;case 11:t=xl(null,t,r,e,n);break e;case 14:t=kl(null,t,r,va(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Il(e,t,r,o=t.elementType===r?o:va(r,o),n);case 1:return r=t.type,o=t.pendingProps,Dl(e,t,r,o=t.elementType===r?o:va(r,o),n);case 3:e:{if(Nl(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ta(e,t),ja(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=_l(e,t,r,n,o=cl(Error(a(423)),t));break e}if(r!==o){t=_l(e,t,r,n,o=cl(Error(a(424)),t));break e}for(oa=so(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=Vl(e,t,n);break e}El(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&ca(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),Ol(e,t),El(e,t,l,n),t.child;case 6:return null===e&&ca(t),null;case 13:return jl(e,t,n);case 4:return oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ja(t,null,r,n):El(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xl(e,t,r,o=t.elementType===r?o:va(r,o),n);case 7:return El(e,t,t.pendingProps,n),t.child;case 8:case 12:return El(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,Io(ba,r._currentValue),r._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===o.children&&!No.current){t=Vl(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var u=i.dependencies;if(null!==u){l=i.child;for(var s=u.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=Ma(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Sa(i.return,n,t),u.lanes|=n;break}s=s.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!==(u=l.alternate)&&(u.lanes|=n),Sa(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}El(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ca(t,n),r=r(o=Oa(o)),t.flags|=1,El(e,t,r,n),t.child;case 14:return o=va(r=t.type,t.pendingProps),kl(e,t,r,o=va(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:va(r,o),Hl(e,t),t.tag=1,To(r)?(e=!0,Bo(t)):e=!1,Ca(t,n),Ha(t,r,o),$a(t,r,o,n),Pl(null,t,r,!0,e,n);case 19:return Gl(e,t,n);case 22:return Cl(e,t,n)}throw Error(a(156,t.tag))};var Qs="function"==typeof reportError?reportError:function(e){console.error(e)};function Ys(e){this._internalRoot=e}function Ks(e){this._internalRoot=e}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function ec(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=Vs(i);l.call(e)}}Hs(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=Vs(i);a.call(e)}}var i=Gs(t,r,e,0,null,!1,0,"",Zs);return e._reactRootContainer=i,e[ho]=i.current,Wr(8===e.nodeType?e.parentNode:e),ds(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Vs(u);l.call(e)}}var u=Us(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=u,e[ho]=u.current,Wr(8===e.nodeType?e.parentNode:e),ds((function(){Hs(t,u,n,r)})),u}(n,t,e,o,r);return Vs(i)}Ks.prototype.render=Ys.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Hs(e,t,null,null)},Ks.prototype.unmount=Ys.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ds((function(){Hs(null,e,null,null)})),t[ho]=null}},Ks.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();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),os(t,Je()),0==(6&Pu)&&(Gu=Je()+500,Go()))}break;case 13:ds((function(){var t=Na(e,1);if(null!==t){var n=ts();rs(t,e,1,n)}})),qs(e,1)}},xt=function(e){if(13===e.tag){var t=Na(e,134217728);null!==t&&rs(t,e,134217728,ts()),qs(e,134217728)}},kt=function(e){if(13===e.tag){var t=ns(e),n=Na(e,t);null!==n&&rs(n,e,t,ts()),qs(e,t)}},St=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(X(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),X(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},De=cs,Pe=ds;var tc={usingClientEntryPoint:!1,Events:[wo,Eo,xo,Oe,Ie,cs]},nc={findFiberByHostInstance:yo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.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:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),at=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Js(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(!Js(e))throw Error(a(299));var n=!1,r="",o=Qs;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Us(e,1,!1,null,0,n,0,r,o),e[ho]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Ys(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 ds(e)},t.hydrate=function(e,t,n){if(!Xs(t))throw Error(a(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Js(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=Qs;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Gs(t,null,e,1,null!=n?n:null,o,0,i,l),e[ho]=t.current,Wr(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 Ks(t)},t.render=function(e,t,n){if(!Xs(t))throw Error(a(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xs(e))throw Error(a(40));return!!e._reactRootContainer&&(ds((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[ho]=null}))})),!0)},t.unstable_batchedUpdates=cs,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xs(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(935);t.s=r.createRoot,r.hydrateRoot},935:(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(448)},921:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,a=60108,i=60114,l=60109,u=60110,s=60112,c=60113,d=60120,f=60115,p=60116;if("function"==typeof Symbol&&Symbol.for){var m=Symbol.for;n=m("react.element"),r=m("react.portal"),o=m("react.fragment"),a=m("react.strict_mode"),i=m("react.profiler"),l=m("react.provider"),u=m("react.context"),s=m("react.forward_ref"),c=m("react.suspense"),d=m("react.suspense_list"),f=m("react.memo"),p=m("react.lazy"),m("react.block"),m("react.server.block"),m("react.fundamental"),m("react.debug_trace_mode"),m("react.legacy_hidden")}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 c:case d:return e;default:switch(e=e&&e.$$typeof){case u:case s:case p:case f:case l:return e;default:return t}}case r:return t}}}(e)===u}},864:(e,t,n)=>{"use strict";e.exports=n(921)},251:(e,t,n)=>{"use strict";var r=n(294),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,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,a={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!u.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:s,ref:c,props:a,_owner:l.current}}t.Fragment=a,t.jsx=s,t.jsxs=s},408:(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"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,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,h(w,v.prototype),w.isPureReactComponent=!0;var E=Array.isArray,x=Object.prototype.hasOwnProperty,k={current:null},S={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)&&!S.hasOwnProperty(o)&&(a[o]=t[o]);var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===a[o]&&(a[o]=u[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:k.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var I=/\/+/g;function D(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 P(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return i=i(u=e),e=""===a?"."+D(u,0):a,E(i)?(o="",null!=e&&(o=e.replace(I,"$&/")+"/"),P(i,t,o,"",(function(e){return e}))):null!=i&&(O(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||u&&u.key===i.key?"":(""+i.key).replace(I,"$&/")+"/")+e)),t.push(i)),1;if(u=0,a=""===a?".":a+":",E(e))for(var s=0;s<e.length;s++){var c=a+D(l=e[s],s);u+=P(l,t,o,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=P(l=l.value,t,o,c=a+D(l,s++),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 u}function N(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function _(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},M={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:T,ReactCurrentOwner:k};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!O(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=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,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=h({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=k.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)x.call(t,s)&&!S.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_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:s,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:_}},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=function(){throw Error("act(...) is not supported in production builds of React.")},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.2.0"},294:(e,t,n)=>{"use strict";e.exports=n(408)},893:(e,t,n)=>{"use strict";e.exports=n(251)},53:(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,u=e[l],s=l+1,c=e[s];if(0>a(u,n))s<o&&0>a(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(s<o&&0>a(c,n)))break e;e[r]=c,e[s]=n,r=s}}}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,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],d=1,f=null,p=3,m=!1,h=!1,g=!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(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function E(e){if(g=!1,w(e),!h)if(null!==r(s))h=!0,T(x);else{var t=r(c);null!==t&&M(E,t.startTime-e)}}function x(e,n){h=!1,g&&(g=!1,b(O),O=-1),m=!0;var a=p;try{for(w(n),f=r(s);null!==f&&(!(f.expirationTime>n)||e&&!P());){var i=f.callback;if("function"==typeof i){f.callback=null,p=f.priorityLevel;var l=i(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(s)&&o(s),w(n)}else o(s);f=r(s)}if(null!==f)var u=!0;else{var d=r(c);null!==d&&M(E,d.startTime-n),u=!1}return u}finally{f=null,p=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,C=null,O=-1,I=5,D=-1;function P(){return!(t.unstable_now()-D<I)}function N(){if(null!==C){var e=t.unstable_now();D=e;var n=!0;try{n=C(!0,e)}finally{n?k():(S=!1,C=null)}}else S=!1}if("function"==typeof y)k=function(){y(N)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,R=_.port2;_.port1.onmessage=N,k=function(){R.postMessage(null)}}else k=function(){v(N,0)};function T(e){C=e,S||(S=!0,k())}function M(e,n){O=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(){h||m||(h=!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"):I=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=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=p;p=e;try{return t()}finally{p=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(c,e),null===r(s)&&e===r(c)&&(g?(b(O),O=-1):g=!0,M(E,a-i))):(e.sortIndex=l,n(s,e),h||m||(h=!0,T(x))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},840:(e,t,n)=>{"use strict";e.exports=n(53)},473:e=>{"use strict";e.exports=function(){}}},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(294),t=n(745),r=n(697),o=n.n(r);function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function u(e){return u="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},u(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(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 p="function"==typeof Symbol&&Symbol.observable||"@@observable",m=function(){return Math.random().toString(36).substring(7).split("").join(".")},h={INIT:"@@redux/INIT"+m(),REPLACE:"@@redux/REPLACE"+m(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+m()}};function g(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(f(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(f(1));return n(g)(e,t)}if("function"!=typeof e)throw new Error(f(2));var o=e,a=t,i=[],l=i,u=!1;function s(){l===i&&(l=i.slice())}function c(){if(u)throw new Error(f(3));return a}function d(e){if("function"!=typeof e)throw new Error(f(4));if(u)throw new Error(f(5));var t=!0;return s(),l.push(e),function(){if(t){if(u)throw new Error(f(6));t=!1,s();var n=l.indexOf(e);l.splice(n,1),i=null}}}function m(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(f(7));if(void 0===e.type)throw new Error(f(8));if(u)throw new Error(f(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 m({type:h.INIT}),(r={dispatch:m,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(f(10));o=e,m({type:h.REPLACE})}})[p]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(f(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[p]=function(){return this},e},r}function v(e,t){return function(){return t(e.apply(this,arguments))}}function b(e,t){if("function"==typeof e)return v(e,t);if("object"!=typeof e||null===e)throw new Error(f(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=v(o,t))}return n}function y(){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 w=e.createContext(null),E=function(e){e()},x=function(){return E},k={notify:function(){},get:function(){return[]}};function S(e,t){var n,r=k;function o(){i.onStateChange&&i.onStateChange()}function a(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=x(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var 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)}}}}())}var i={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=k)},getListeners:function(){return r}};return i}var C="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;const O=function(t){var n=t.store,r=t.context,o=t.children,a=(0,e.useMemo)((function(){var e=S(n);return{store:n,subscription:e}}),[n]),i=(0,e.useMemo)((function(){return n.getState()}),[n]);C((function(){var e=a.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==n.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,i]);var l=r||w;return e.createElement(l.Provider,{value:a},o)};function I(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var D=n(679),P=n.n(D),N=n(864),_=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],R=["reactReduxForwardedRef"],T=[],M=[null,null];function A(e,t){var n=e[1];return[t.payload,n+1]}function L(e,t,n){C((function(){return e.apply(void 0,t)}),n)}function B(e,t,n,r,o,a,i){e.current=r,t.current=o,n.current=!1,a.current&&(a.current=null,i())}function j(e,t,n,r,o,a,i,l,u,s){if(e){var c=!1,d=null,f=function(){if(!c){var e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,d=e}n||(d=null),e===a.current?i.current||u():(a.current=e,l.current=e,i.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=f,n.trySubscribe(),f(),function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var F=function(){return[null,0]};function z(t,n){void 0===n&&(n={});var r=n,o=r.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,i=r.methodName,u=void 0===i?"connectAdvanced":i,s=r.renderCountProp,c=void 0===s?void 0:s,d=r.shouldHandleStateChanges,f=void 0===d||d,p=r.storeKey,m=void 0===p?"store":p,h=(r.withRef,r.forwardRef),g=void 0!==h&&h,v=r.context,b=void 0===v?w:v,y=I(r,_),E=b;return function(n){var r=n.displayName||n.name||"Component",o=a(r),i=l({},y,{getDisplayName:a,methodName:u,renderCountProp:c,shouldHandleStateChanges:f,storeKey:m,displayName:o,wrappedComponentName:r,WrappedComponent:n}),s=y.pure,d=s?e.useMemo:function(e){return e()};function p(r){var o=(0,e.useMemo)((function(){var e=r.reactReduxForwardedRef,t=I(r,R);return[r.context,e,t]}),[r]),a=o[0],u=o[1],s=o[2],c=(0,e.useMemo)((function(){return a&&a.Consumer&&(0,N.isContextConsumer)(e.createElement(a.Consumer,null))?a:E}),[a,E]),p=(0,e.useContext)(c),m=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(p)&&Boolean(p.store);var h=m?r.store:p.store,g=(0,e.useMemo)((function(){return function(e){return t(e.dispatch,i)}(h)}),[h]),v=(0,e.useMemo)((function(){if(!f)return M;var e=S(h,m?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,m,p]),b=v[0],y=v[1],w=(0,e.useMemo)((function(){return m?p:l({},p,{subscription:b})}),[m,p,b]),x=(0,e.useReducer)(A,T,F),k=x[0][0],C=x[1];if(k&&k.error)throw k.error;var O=(0,e.useRef)(),D=(0,e.useRef)(s),P=(0,e.useRef)(),_=(0,e.useRef)(!1),z=d((function(){return P.current&&s===D.current?P.current:g(h.getState(),s)}),[h,k,s]);L(B,[D,O,_,s,z,P,y]),L(j,[f,h,b,g,D,O,_,P,y,C],[h,b,g]);var U=(0,e.useMemo)((function(){return e.createElement(n,l({},z,{ref:u}))}),[u,n,z]);return(0,e.useMemo)((function(){return f?e.createElement(c.Provider,{value:w},U):U}),[c,U,w])}var h=s?e.memo(p):p;if(h.WrappedComponent=n,h.displayName=p.displayName=o,g){var v=e.forwardRef((function(t,n){return e.createElement(h,l({},t,{reactReduxForwardedRef:n}))}));return v.displayName=o,v.WrappedComponent=n,P()(v,n)}return P()(h,n)}}function U(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function W(e,t){if(U(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(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!U(e[n[o]],t[n[o]]))return!1;return!0}function G(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function H(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function V(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=H(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=H(o),o=r(t,n)),o},r}}const $=[function(e){return"function"==typeof e?V(e):void 0},function(e){return e?void 0:G((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?G((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}],q=[function(e){return"function"==typeof e?V(e):void 0},function(e){return e?void 0:G((function(){return{}}))}];function Q(e,t,n){return l({},n,e,t)}const Y=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,a=n.areMergedPropsEqual,i=!1;return function(t,n,l){var u=e(t,n,l);return i?o&&a(u,r)||(r=u):(i=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return Q}}];var K=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function J(e,t,n,r){return function(o,a){return n(e(o,a),t(r,a),a)}}function X(e,t,n,r,o){var a,i,l,u,s,c=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;return function(o,m){return p?function(o,p){var m,h,g=!d(p,i),v=!c(o,a,p,i);return a=o,i=p,g&&v?(l=e(a,i),t.dependsOnOwnProps&&(u=t(r,i)),s=n(l,u,i)):g?(e.dependsOnOwnProps&&(l=e(a,i)),t.dependsOnOwnProps&&(u=t(r,i)),s=n(l,u,i)):v?(m=e(a,i),h=!f(m,l),l=m,h&&(s=n(l,u,i)),s):s}(o,m):(l=e(a=o,i=m),u=t(r,i),s=n(l,u,i),p=!0,s)}}function Z(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,a=I(t,K),i=n(e,a),l=r(e,a),u=o(e,a);return(a.pure?X:J)(i,l,u,e,a)}var ee=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function te(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function ne(e,t){return e===t}function re(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?z:n,o=t.mapStateToPropsFactories,a=void 0===o?q:o,i=t.mapDispatchToPropsFactories,u=void 0===i?$:i,s=t.mergePropsFactories,c=void 0===s?Y:s,d=t.selectorFactory,f=void 0===d?Z:d;return function(e,t,n,o){void 0===o&&(o={});var i=o,s=i.pure,d=void 0===s||s,p=i.areStatesEqual,m=void 0===p?ne:p,h=i.areOwnPropsEqual,g=void 0===h?W:h,v=i.areStatePropsEqual,b=void 0===v?W:v,y=i.areMergedPropsEqual,w=void 0===y?W:y,E=I(i,ee),x=te(e,a,"mapStateToProps"),k=te(t,u,"mapDispatchToProps"),S=te(n,c,"mergeProps");return r(f,l({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:k,initMergeProps:S,pure:d,areStatesEqual:m,areOwnPropsEqual:g,areStatePropsEqual:b,areMergedPropsEqual:w},E))}}const oe=re();var ae,ie=n(935);function le(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}ae=ie.unstable_batchedUpdates,E=ae;var ue=le,se=function(e,t){return le((function(){return e}),t)},ce=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}}},de=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},fe=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},pe={top:0,right:0,bottom:0,left:0},me=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?pe:n,o=e.border,a=void 0===o?pe:o,i=e.padding,l=void 0===i?pe:i,u=ce(de(t,r)),s=ce(fe(t,a)),c=ce(fe(s,l));return{marginBox:u,borderBox:ce(t),paddingBox:s,contentBox:c,margin:r,border:a,padding:l}},he=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){throw new Error("Invariant failed")}(),n},ge=function(e,t){var n,r,o=e.borderBox,a=e.border,i=e.margin,l=e.padding,u=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return me({borderBox:u,border:a,margin:i,padding:l})},ve=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ge(e,t)},be=function(e,t){var n={top:he(t.marginTop),right:he(t.marginRight),bottom:he(t.marginBottom),left:he(t.marginLeft)},r={top:he(t.paddingTop),right:he(t.paddingRight),bottom:he(t.paddingBottom),left:he(t.paddingLeft)},o={top:he(t.borderTopWidth),right:he(t.borderRightWidth),bottom:he(t.borderBottomWidth),left:he(t.borderLeftWidth)};return me({borderBox:e,margin:n,padding:r,border:o})},ye=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return be(t,n)},we=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ee(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||we(r)&&we(o)))return!1;var r,o;return!0}const xe=function(e,t){var n;void 0===t&&(t=Ee);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}},ke=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 Se(e,t){}function Ce(){}function Oe(e,t,n){var r=t.map((function(t){var r,o,a=(r=n,o=t.options,l({},r,{},o));return e.addEventListener(t.eventName,t.fn,a),function(){e.removeEventListener(t.eventName,t.fn,a)}}));return function(){r.forEach((function(e){e()}))}}Se.bind(null,"warn"),Se.bind(null,"error");var Ie=!0,De="Invariant failed";function Pe(e){this.message=e}function Ne(e,t){if(!e)throw new Pe(Ie?De:De+": "+(t||""))}Pe.prototype.toString=function(){return this.message};var _e=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=Ce,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof Pe&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}i(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=Oe(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof Pe))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(e.Component),Re=function(e){return e+1},Te=function(e,t){var n=e.droppableId===t.droppableId,r=Re(e.index),o=Re(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 "},Me=function(e,t,n){return 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 "},Ae=function(e){return"\n The item has returned to its starting position\n of "+Re(e.index)+"\n"},Le=function(e){return"\n You have lifted an item in position "+Re(e.source.index)+"\n"},Be=function(e){var t=e.destination;if(t)return Te(e.source,t);var n=e.combine;return n?Me(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},je=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Ae(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+Te(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+Me(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Ae(e.source)+"\n "},Fe={x:0,y:0},ze=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Ue=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},We=function(e,t){return e.x===t.x&&e.y===t.y},Ge=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},He=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Ve=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},$e=function(e,t){return Math.min.apply(Math,t.map((function(t){return Ve(e,t)})))},qe=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Qe=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Ye=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ke=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=ce({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):ce(e)},Je=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t){return t?Qe(e,t.scroll.diff.displacement):e}(t.marginBox,o),i=function(e,t,n){var r;return n&&n.increasedBy?l({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Ke(i,o)}},Xe=function(e,t){e.frame||Ne(!1);var n=e.frame,r=Ue(t,n.scroll.initial),o=Ge(r),a=l({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return l({},e,{frame:a,subject:Je({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a})})};function Ze(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function et(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function tt(e,t){if(e.find)return e.find(t);var n=et(e,t);return-1!==n?e[n]:void 0}function nt(e){return Array.prototype.slice.call(e)}var rt=xe((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),ot=xe((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),at=xe((function(e){return Ze(e)})),it=xe((function(e){return Ze(e)})),lt=xe((function(e,t){var n=it(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function ut(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function st(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var ct=xe((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),dt=function(e,t){return e.descriptor.droppableId===t.descriptor.id},ft={point:Fe,value:0},pt={invisible:{},visible:{},all:[]},mt={displaced:pt,displacedBy:ft,at:null},ht=function(e,t){return function(n){return e<=n&&n<=t}},gt=function(e){var t=ht(e.top,e.bottom),n=ht(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),a=n(r.left)||n(r.right);if(o&&a)return!0;var 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}},vt=function(e){var t=ht(e.top,e.bottom),n=ht(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},bt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},yt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},wt=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,a=e.isVisibleThroughFrameFn,i=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Fe;return Qe(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(i,n,a)&&function(e,t,n){return n(t)(e)}(i,r,a)},Et=function(e){return wt(l({},e,{isVisibleThroughFrameFn:gt}))},xt=function(e){return wt(l({},e,{isVisibleThroughFrameFn:vt}))},kt=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var a=o[e];return!a||a.shouldAnimate};function St(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,a=e.forceShouldAnimate,i=e.last;return t.reduce((function(e,t){var l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return ce(de(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),!Et({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var s={draggableId:u,shouldAnimate:kt(u,i,a)};return e.visible[u]=s,e}),{all:[],visible:{},invisible:{}})}function Ct(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,a=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:pt,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:a}}}}function Ot(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,a=e.displacedBy,i=e.last,l=e.index,u=e.forceShouldAnimate,s=dt(t,r);if(null==l)return Ct({insideDestination:n,inHomeList:s,displacedBy:a,destination:r});var c=tt(n,(function(e){return e.descriptor.index===l}));if(!c)return Ct({insideDestination:n,inHomeList:s,displacedBy:a,destination:r});var d=ct(t,n),f=n.indexOf(c);return{displaced:St({afterDragging:d.slice(f),destination:r,displacedBy:a,last:i,viewport:o.frame,forceShouldAnimate:u}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function It(e,t){return Boolean(t.effected[e])}var Dt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Pt=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Nt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return He(t.line,n.marginBox[t.end]+Dt(t,r),Pt(t,n.marginBox,r))},_t=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return He(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Pt(t,n.marginBox,r))},Rt=function(e,t){var n=e.frame;return n?ze(t,n.scroll.diff.displacement):t},Tt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,a=e.afterCritical,i=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,a=e.afterCritical,i=lt(o.descriptor.id,r),l=n.page,u=o.axis;if(!i.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return He(t.line,n.contentBox[t.start]+Dt(t,r),Pt(t,n.contentBox,r))}({axis:u,moveInto:o.page,isMoving:l});var s=t.displaced,c=t.displacedBy,d=s.all[0];if(d){var f=r[d];if(It(d,a))return _t({axis:u,moveRelativeTo:f.page,isMoving:l});var p=ge(f.page,c.point);return _t({axis:u,moveRelativeTo:p,isMoving:l})}var m=i[i.length-1];if(m.descriptor.id===n.descriptor.id)return l.borderBox.center;if(It(m.descriptor.id,a)){var h=ge(m.page,Ge(a.displacedBy.point));return Nt({axis:u,moveRelativeTo:h,isMoving:l})}return Nt({axis:u,moveRelativeTo:m.page,isMoving:l})}({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a}):function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=st(n);o||Ne(!1);var a=o.draggableId,i=r[a].page.borderBox.center,l=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,a=Boolean(t.visible[r]||t.invisible[r]);return It(r,n)?a?Fe:Ge(o.point):a?o.point:Fe}({displaced:n.displaced,afterCritical:t,combineWith:a,displacedBy:n.displacedBy});return ze(i,l)}({impact:t,draggables:o,afterCritical:a}):i}(e),n=e.droppable;return n?Rt(n,t):t},Mt=function(e,t){var n=Ue(t,e.scroll.initial),r=Ge(n);return{frame:ce({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 At(e,t){return e.map((function(e){return t[e]}))}var Lt=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return ze(e.scroll.diff.displacement,t)}(e.viewport,t),o=Ue(r,n.page.borderBox.center);return ze(n.client.borderBox.center,o)},Bt=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,i=e.onlyOnMainAxis,u=void 0!==i&&i,s=Ue(r,t.page.borderBox.center),c={target:Qe(t.page.borderBox,s),destination:n,withDroppableDisplacement:a,viewport:o};return u?function(e){return wt(l({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=ht(e.top,e.bottom),r=ht(e.left,e.right);return function(e){return t===bt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):xt(c)},jt=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,i=e.viewport,u=e.previousPageBorderBoxCenter,s=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var d=lt(r.descriptor.id,o),f=dt(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!ut(a))return null;function i(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return l({},a,{at:t})}var u=a.displaced.all,s=u.length?u[0]:null;if(t)return s?i(s):null;var c=ct(n,o);if(!s)return c.length?i(c[c.length-1].descriptor.id):null;var d=et(c,(function(e){return e.descriptor.id===s}));-1===d&&Ne(!1);var f=d-1;return f<0?null:i(c[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,a=e.destination,i=e.insideDestination,l=e.previousImpact,u=e.viewport,s=e.afterCritical,c=l.at;if(c||Ne(!1),"REORDER"===c.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var a=o.index,i=t?a+1:a-1,l=r[0].descriptor.index,u=r[r.length-1].descriptor.index;return i<l||i>(n?u:u+1)?null:i}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:i});return null==d?null:Ot({draggable:r,insideDestination:i,destination:a,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.draggables,r=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var a=r.draggableId,i=n[a].descriptor.index;return It(a,o)?t?i:i-1:t?i+1:i}({isMovingForward:t,destination:a,displaced:l.displaced,draggables:o,combine:c.combine,afterCritical:s});return null==f?null:Ot({draggable:r,insideDestination:i,destination:a,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:f})}({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:d,previousImpact:a,viewport:i,afterCritical:c});if(!p)return null;var m=Tt({impact:p,draggable:n,droppable:r,draggables:o,afterCritical:c});if(Bt({draggable:n,destination:r,newPageBorderBoxCenter:m,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Lt({pageBorderBoxCenter:m,draggable:n,viewport:i}),impact:p,scrollJumpRequest:null};var h=Ue(m,u),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,i=Mt(n,ze(n.scroll.current,a)),u=r.frame?Xe(r,ze(r.frame.scroll.current,a)):r,s=t.displaced,c=St({afterDragging:At(s.all,o),destination:r,displacedBy:t.displacedBy,viewport:i.frame,last:s,forceShouldAnimate:!1}),d=St({afterDragging:At(s.all,o),destination:u,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),f={},p={},m=[s,c,d];return s.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,m);t?p[e]=t:f[e]=!0})),l({},t,{displaced:{all:s.all,invisible:f,visible:p}})}({impact:p,viewport:i,destination:r,draggables:o,maxScrollChange:h});return{clientSelection:s,impact:g,scrollJumpRequest:h}},Ft=function(e){var t=e.subject.active;return t||Ne(!1),t},zt=function(e,t){var n=e.page.borderBox.center;return It(e.descriptor.id,t)?Ue(n,t.displacedBy.point):n},Ut=function(e,t){var n=e.page.borderBox;return It(e.descriptor.id,t)?Qe(n,Ge(t.displacedBy.point)):n},Wt=xe((function(e,t){var n=t[e.line];return{value:n,point:He(e.line,n)}})),Gt=function(e,t){return l({},e,{scroll:l({},e.scroll,{max:t})})},Ht=function(e,t,n){var r=e.frame;dt(t,e)&&Ne(!1),e.subject.withPlaceholder&&Ne(!1);var o=Wt(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return He(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],a=lt(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return a<=0?null:He(r.line,a)}(e,o,n),i={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return l({},e,{subject:Je({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame})});var u=a?ze(r.scroll.max,a):r.scroll.max,s=Gt(r,u);return l({},e,{subject:Je({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:s}),frame:s})},Vt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},$t=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Vt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),a=t.dimensions.droppables[t.critical.droppable.id],i=r||a,l=i.axis.direction,u="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(u&&!o)return null;var s="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,m=f.droppables;return u?jt({isMovingForward:s,previousPageBorderBoxCenter:d,draggable:c,destination:i,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,a=e.draggables,i=e.droppables,l=e.viewport,u=e.afterCritical,s=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,a=e.viewport,i=r.subject.active;if(!i)return null;var l=r.axis,u=ht(i[l.start],i[l.end]),s=at(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return gt(a.frame)(Ft(e))})).filter((function(e){var n=Ft(e);return t?i[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<i[l.crossAxisStart]})).filter((function(e){var t=Ft(e),n=ht(t[l.start],t[l.end]);return u(t[l.start])||u(t[l.end])||n(i[l.start])||n(i[l.end])})).sort((function(e,n){var r=Ft(e)[l.crossAxisStart],o=Ft(n)[l.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Ft(e)[l.crossAxisStart]===Ft(n[0])[l.crossAxisStart]}));if(!s.length)return null;if(1===s.length)return s[0];var c=s.filter((function(e){return ht(Ft(e)[l.start],Ft(e)[l.end])(n[l.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return Ft(e)[l.start]-Ft(t)[l.start]}))[0]:s.sort((function(e,t){var r=$e(n,Ye(Ft(e))),o=$e(n,Ye(Ft(t)));return r!==o?r-o:Ft(e)[l.start]-Ft(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:i,viewport:l});if(!s)return null;var c=lt(s.descriptor.id,a),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.afterCritical,a=e.insideDestination.filter((function(e){return xt({target:Ut(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var a=Ve(t,Rt(r,zt(e,o))),i=Ve(t,Rt(r,zt(n,o)));return a<i?-1:i<a?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:s,insideDestination:c,afterCritical:u}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,a=e.draggables,i=e.destination,l=e.viewport,u=e.afterCritical;if(!n){if(r.length)return null;var s={displaced:pt,displacedBy:ft,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},c=Tt({impact:s,draggable:o,droppable:i,draggables:a,afterCritical:u}),d=dt(o,i)?i:Ht(i,o,a);return Bt({draggable:o,destination:d,newPageBorderBoxCenter:c,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?s:null}var f,p=Boolean(t[i.axis.line]<=n.page.borderBox.center[i.axis.line]),m=(f=n.descriptor.index,n.descriptor.id===o.descriptor.id||p?f:f+1);return Ot({draggable:o,insideDestination:r,destination:i,viewport:l,displacedBy:Wt(i.axis,o.displaceBy),last:pt,index:m})}({previousPageBorderBoxCenter:n,destination:s,draggable:r,draggables:a,moveRelativeTo:d,insideDestination:c,viewport:l,afterCritical:u});if(!f)return null;var p=Tt({impact:f,draggable:r,droppable:s,draggables:a,afterCritical:u});return{clientSelection:Lt({pageBorderBoxCenter:p,draggable:r,viewport:l}),impact:f,scrollJumpRequest:null}}({isMovingForward:s,previousPageBorderBoxCenter:d,draggable:c,isOver:i,draggables:p,droppables:m,viewport:t.viewport,afterCritical:t.afterCritical})};function qt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Qt(e){var t=ht(e.top,e.bottom),n=ht(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}var Yt=function(e,t){return ce(Qe(e,t))};function Kt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Jt=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,a=e.previousImpact,i=e.viewport,l=e.afterCritical,u=Yt(n.page.borderBox,t),s=function(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=at(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Qt(o)(t.center))return!0;var a=e.axis,i=o.center[a.crossAxisLine],l=t[a.crossAxisStart],u=t[a.crossAxisEnd],s=ht(o[a.crossAxisStart],o[a.crossAxisEnd]),c=s(l),d=s(u);return!c&&!d||(c?l<i:u>i)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.candidates,r=e.draggable.page.borderBox.center,o=n.map((function(e){var n=e.axis,o=He(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Ve(r,o)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:u,draggable:n,droppables:o});if(!s)return mt;var c=o[s],d=lt(c.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Yt(t,n.scroll.diff.value):t}(c,u);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,a=e.insideDestination,i=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,u=Wt(o.axis,t.displaceBy),s=u.value,c=n[l.start],d=n[l.end],f=tt(ct(t,a),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,a=It(t,i),u=Kt({displaced:r.displaced,id:t});return a?u?d>n[l.start]+o&&d<n[l.end]-o:c>n[l.start]-s+o&&c<n[l.end]-s-o:u?d>n[l.start]+s+o&&d<n[l.end]+s-o:c>n[l.start]+o&&c<n[l.end]-o}));return f?{displacedBy:u,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:a,destination:c,insideDestination:d,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.last,i=e.viewport,l=e.afterCritical,u=r.axis,s=Wt(r.axis,n.displaceBy),c=s.value,d=t[u.start],f=t[u.end],p=function(e){var t=e.draggable,n=e.closest;return n?e.inHomeList&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:tt(ct(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[u.line],r=It(t,l),o=Kt({displaced:a,id:t});return r?o?f<=n:d<n-c:o?f<=n+c:d<n})),inHomeList:dt(n,r)});return Ot({draggable:n,insideDestination:o,destination:r,viewport:i,last:a,displacedBy:s,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:a.displaced,viewport:i,afterCritical:l})},Xt=function(e,t){var n;return l({},e,((n={})[t.descriptor.id]=t,n))},Zt=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,a=e.impact,i=e.scrollJumpRequest,u=o||t.viewport,s=r||t.dimensions,c=n||t.current.client.selection,d=Ue(c,t.initial.client.selection),f={offset:d,selection:c,borderBoxCenter:ze(t.initial.client.borderBoxCenter,d)},p={selection:ze(f.selection,u.scroll.current),borderBoxCenter:ze(f.borderBoxCenter,u.scroll.current),offset:ze(f.offset,u.scroll.diff.value)},m={client:f,page:p};if("COLLECTING"===t.phase)return l({phase:"COLLECTING"},t,{dimensions:s,viewport:u,current:m});var h=s.draggables[t.critical.draggable.id],g=a||Jt({pageOffset:p.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:u,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.impact,a=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Vt(t),a=Vt(n);if(!o)return r;if(o===a)return r;var i=r[o];if(!i.subject.withPlaceholder)return r;var u=function(e){var t=e.subject.withPlaceholder;t||Ne(!1);var n=e.frame;if(!n)return l({},e,{subject:Je({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||Ne(!1);var o=Gt(n,r);return l({},e,{subject:Je({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(i);return Xt(r,u)}({previousImpact:e.previousImpact,impact:o,droppables:r}),i=Vt(o);if(!i)return a;var u=r[i];if(dt(t,u))return a;if(u.subject.withPlaceholder)return a;var s=Ht(u,t,n);return Xt(a,s)}({draggable:h,impact:g,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return l({},t,{current:m,dimensions:{draggables:s.draggables,droppables:v},impact:g,viewport:u,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null})},en=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,a=e.forceShouldAnimate,i=t.displaced,u=function(e,t){return e.map((function(e){return t[e]}))}(i.all,r);return l({},t,{displaced:St({afterDragging:u,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:i})})},tn=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,a=e.viewport,i=e.afterCritical,l=Tt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i});return Lt({pageBorderBoxCenter:l,draggable:n,viewport:a})},nn=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&Ne(!1);var o=t.impact,a=r||t.viewport,i=n||t.dimensions,l=i.draggables,u=i.droppables,s=l[t.critical.draggable.id],c=Vt(o);c||Ne(!1);var d=u[c],f=en({impact:o,viewport:a,destination:d,draggables:l}),p=tn({impact:f,draggable:s,droppable:d,draggables:l,viewport:a,afterCritical:t.afterCritical});return Zt({impact:f,clientSelection:p,state:t,dimensions:i,viewport:a})},rn=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,a=Wt(n.axis,t.displaceBy),i=lt(n.descriptor.id,r),l=i.indexOf(t);-1===l&&Ne(!1);var u,s=i.slice(l+1),c=s.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:a,effected:c};return{impact:{displaced:St({afterDragging:s,destination:n,displacedBy:a,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:a,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:d}},on=function(e){return"SNAP"===e.movementMode},an=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Xt(e.droppables,t)}}(e.dimensions,t);return!on(e)||n?Zt({state:e,dimensions:r}):nn({state:e,dimensions:r})};function ln(e){return e.isDragging&&"SNAP"===e.movementMode?l({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var un={phase:"IDLE",completed:null,shouldFlush:!1},sn=function(e,t){if(void 0===e&&(e=un),"FLUSH"===t.type)return l({},un,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&Ne(!1);var n=t.payload,r=n.critical,o=n.clientSelection,a=n.viewport,i=n.dimensions,u=n.movementMode,s=i.draggables[r.draggable.id],c=i.droppables[r.droppable.id],d={selection:o,borderBoxCenter:s.client.borderBox.center,offset:Fe},f={client:d,page:{selection:ze(d.selection,a.scroll.initial),borderBoxCenter:ze(d.selection,a.scroll.initial),offset:ze(d.selection,a.scroll.diff.value)}},p=at(i.droppables).every((function(e){return!e.isFixedOnPage})),m=rn({draggable:s,home:c,draggables:i.draggables,viewport:a}),h=m.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:u,dimensions:i,initial:f,current:f,isWindowScrollAllowed:p,impact:h,afterCritical:m.afterCritical,onLiftImpact:h,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&Ne(!1),l({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Ne(!1),function(e){var t=e.state,n=e.published,r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Xe(n,e.scroll)})),o=l({},t.dimensions.droppables,{},rt(r)),a=ot(function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||Ne(!1),t}(n[t]),i=a.scroll.diff.value,u=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=ge(t.client,n),a=ve(o,r);return l({},t,{placeholder:l({},t.placeholder,{client:o}),client:o,page:a})}({draggable:e,offset:ze(o,i),initialWindowScroll:r.scroll.initial});return u}))}({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),i=l({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete i[e]}));var u={droppables:o,draggables:i},s=Vt(t.impact),c=s?u.droppables[s]:null,d=u.draggables[t.critical.draggable.id],f=u.droppables[t.critical.droppable.id],p=rn({draggable:d,home:f,draggables:i,viewport:t.viewport}),m=p.impact,h=p.afterCritical,g=c&&c.isCombineEnabled?t.impact:m,v=Jt({pageOffset:t.current.page.offset,draggable:u.draggables[t.critical.draggable.id],draggables:u.draggables,droppables:u.droppables,previousImpact:g,viewport:t.viewport,afterCritical:h}),b=l({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:m,dimensions:u,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?b:l({phase:"DROP_PENDING"},b,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||Ne(!1);var g=t.payload.client;return We(g,e.current.client.selection)?e:Zt({state:e,clientSelection:g,impact:on(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return ln(e);if("COLLECTING"===e.phase)return ln(e);qt(e)||Ne(!1);var v=t.payload,b=v.id,y=v.newScroll,w=e.dimensions.droppables[b];if(!w)return e;var E=Xe(w,y);return an(e,E,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||Ne(!1);var x=t.payload,k=x.id,S=x.isEnabled,C=e.dimensions.droppables[k];C||Ne(!1),C.isEnabled===S&&Ne(!1);var O=l({},C,{isEnabled:S});return an(e,O,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||Ne(!1);var I=t.payload,D=I.id,P=I.isCombineEnabled,N=e.dimensions.droppables[D];N||Ne(!1),N.isCombineEnabled===P&&Ne(!1);var _=l({},N,{isCombineEnabled:P});return an(e,_,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;qt(e)||Ne(!1),e.isWindowScrollAllowed||Ne(!1);var R=t.payload.newScroll;if(We(e.viewport.scroll.current,R))return ln(e);var T=Mt(e.viewport,R);return on(e)?nn({state:e,viewport:T}):Zt({state:e,viewport:T})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!qt(e))return e;var M=t.payload.maxScroll;if(We(M,e.viewport.scroll.max))return e;var A=l({},e.viewport,{scroll:l({},e.viewport.scroll,{max:M})});return l({phase:"DRAGGING"},e,{viewport:A})}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&&Ne(!1);var L=$t({state:e,type:t.type});return L?Zt({state:e,impact:L.impact,clientSelection:L.clientSelection,scrollJumpRequest:L.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var B=t.payload.reason;return"COLLECTING"!==e.phase&&Ne(!1),l({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:B})}if("DROP_ANIMATE"===t.type){var j=t.payload,F=j.completed,z=j.dropDuration,U=j.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&Ne(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:z,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},cn=function(e){return{type:"LIFT",payload:e}},dn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},fn=function(){return{type:"COLLECTION_STARTING",payload:null}},pn=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},mn=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},hn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},gn=function(e){return{type:"MOVE",payload:e}},vn=function(){return{type:"MOVE_UP",payload:null}},bn=function(){return{type:"MOVE_DOWN",payload:null}},yn=function(){return{type:"MOVE_RIGHT",payload:null}},wn=function(){return{type:"MOVE_LEFT",payload:null}},En=function(){return{type:"FLUSH",payload:null}},xn=function(e){return{type:"DROP_COMPLETE",payload:e}},kn=function(e){return{type:"DROP",payload:e}},Sn="cubic-bezier(.2,1,.1,1)",Cn=0,On=.7,In=.75,Dn="0.2s cubic-bezier(0.2, 0, 0, 1)",Pn={fluid:"opacity "+Dn,snap:"transform "+Dn+", opacity "+Dn,drop:function(e){var t=e+"s "+Sn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Dn,placeholder:"height "+Dn+", width "+Dn+", margin "+Dn},Nn=function(e){return We(e,Fe)?null:"translate("+e.x+"px, "+e.y+"px)"},_n=Nn,Rn=function(e,t){var n=Nn(e);return n?t?n+" scale("+In+")":n:null},Tn=.33,Mn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),a=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&Ne(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&Ne(!1);var i=o.critical,u=o.dimensions,s=u.draggables[o.critical.draggable.id],c=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,a=e.viewport,i=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:l({},r,{displaced:pt}),didDropInsideDroppable:!0}:{impact:en({draggables:t,impact:i,destination:o,viewport:a,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}),d=c.impact,f=c.didDropInsideDroppable,p=f?ut(d):null,m=f?st(d):null,h={index:i.draggable.index,droppableId:i.droppable.id},g={draggableId:s.descriptor.id,type:s.descriptor.type,source:h,reason:a,mode:o.movementMode,destination:p,combine:m},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,a=e.afterCritical,i=r.draggables,l=r.droppables,u=Vt(t),s=u?l[u]:null,c=l[n.descriptor.droppableId],d=tn({impact:t,draggable:n,draggables:i,afterCritical:a,droppable:s||c,viewport:o});return Ue(d,n.client.borderBox.center)}({impact:d,draggable:s,dimensions:u,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:d};if(!We(o.current.client.offset,v)||Boolean(g.combine)){var y=function(e){var t=e.reason,n=Ve(e.current,e.destination);if(n<=0)return Tn;if(n>=1500)return.55;var r=Tn+n/1500*.22000000000000003;return Number(("CANCEL"===t?.6*r:r).toFixed(2))}({current:o.current.client.offset,destination:v,reason:a});n({type:"DROP_ANIMATE",payload:{newHomeClientOffset:v,dropDuration:y,completed:b}})}else n(xn({completed:b}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},An=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Ln=function(e){var t=function(e){var t=e.onWindowScroll,n=ke((function(){t(An())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=Ce;function a(){return o!==Ce}return{start:function(){a()&&Ne(!1),o=Oe(window,[r])},stop:function(){a()||Ne(!1),n.cancel(),o(),o=Ce},isActive:a}}({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Bn=function(e,t){t()},jn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Fn=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},zn=function(e,t){var n=function(e,t){var n,r=(n=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=et(n,(function(t){return t.timerId===e}));-1===t&&Ne(!1),n.splice(t,1)[0].callback()}(t)})),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),o=null,a=function(n){o||Ne(!1),o=null,Bn(0,(function(){return Fn(e().onDragEnd,n,t,je)}))};return{beforeCapture:function(t,n){o&&Ne(!1),Bn(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){o&&Ne(!1),Bn(0,(function(){var r=e().onBeforeDragStart;r&&r(jn(t,n))}))},start:function(n,a){o&&Ne(!1);var i=jn(n,a);o={mode:a,lastCritical:n,lastLocation:i.source,lastCombine:null},r.add((function(){Bn(0,(function(){return Fn(e().onDragStart,i,t,Le)}))}))},update:function(n,a){var i=ut(a),u=st(a);o||Ne(!1);var s=!function(e,t){if(e===t)return!0;var 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}(n,o.lastCritical);s&&(o.lastCritical=n);var c,d,f=(d=i,!(null==(c=o.lastLocation)&&null==d||null!=c&&null!=d&&c.droppableId===d.droppableId&&c.index===d.index));f&&(o.lastLocation=i);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,u);if(p&&(o.lastCombine=u),s||f||p){var m=l({},jn(n,o.mode),{combine:u,destination:i});r.add((function(){Bn(0,(function(){return Fn(e().onDragUpdate,m,t,Be)}))}))}},flush:function(){o||Ne(!1),r.flush()},drop:a,abort:function(){if(o){var e=l({},jn(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});a(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var a=r.payload.completed.result;return n.flush(),t(r),void n.drop(a)}if(t(r),"FLUSH"!==r.type){var i=e.getState();"DRAGGING"===i.phase&&n.update(i.critical,i.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Un=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&Ne(!1),e.dispatch(xn({completed:r.completed}))}else t(n)}}},Wn=function(e){var t=null,n=null;return function(r){return function(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){var 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((function(){n=null,t=Oe(window,[a])}))}}}},Gn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(kn({reason:r.reason})))}}}},Hn=y,Vn=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,a=e.getResponders,i=e.announce,l=e.autoScroller;return g(sn,Hn(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(f(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return r=y.apply(void 0,a)(n.dispatch),d(d({},n),{},{dispatch:r})}}}((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var a=o.payload,i=a.id,l=a.clientSelection,u=a.movementMode,s=n();"DROP_ANIMATING"===s.phase&&r(xn({completed:s.completed})),"IDLE"!==n().phase&&Ne(!1),r(En()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:u}});var c={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},d=e.startPublishing(c),f=d.critical,p=d.dimensions,m=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:l,movementMode:u,viewport:m}})}else t(o)}}}}(n),Mn,Un,Wn,Gn,function(e){return function(t){return function(n){return function(r){if(function(e){return"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);var o=t.getState();return"DRAGGING"!==o.phase&&Ne(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),Ln,function(e){var t=!1;return function(){return function(n){return function(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;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),zn(a,i))))},$n=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,a=Ue({x:n,y:t},{x:o,y:r});return{x:Math.max(0,a.x),y:Math.max(0,a.y)}},qn=function(){var e=document.documentElement;return e||Ne(!1),e},Qn=function(){var e=qn();return $n({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Yn(e,t,n){return n.descriptor.id!==t.id&&n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var Kn,Jn,Xn=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,a=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null;var e=r,a=e.additions,i=e.removals,l=e.modified,u=Object.keys(a).map((function(e){return t.draggable.getById(e).getDimension(Fe)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),s=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:u,removals:Object.keys(i),modified:s};r={additions:{},removals:{},modified:{}},n.publish(c)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],a()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],a()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||Ne(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Yn(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Yn(e,o,t.value)&&r.remove(t.value)},a={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||Ne(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||Ne(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||Ne(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&Ne(!1);var 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},function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,o=function(){var e=An(),t=Qn(),n=e.y,r=e.x,o=qn(),a=o.clientWidth,i=o.clientHeight;return{frame:ce({top:n,left:r,right:r+a,bottom:n+i}),scroll:{initial:e,current:e,max:t,diff:{value:Fe,displacement:Fe}}}}(),a=o.scroll.current,i=t.droppable,l=r.droppable.getAllByType(i.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(a,n)})),u=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(a)}));return{dimensions:{draggables:ot(u),droppables:rt(l)},critical:t,viewport:o}}({critical:i,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return a},Zn=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},er=function(e){window.scrollBy(e.x,e.y)},tr=xe((function(e){return at(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),nr=function(e){return Math.pow(e,2)},rr=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},or=360,ar=1200,ir=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,a=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var n=rr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=28*nr(1-n);return Math.ceil(r)}(t,n);return 0===a?0:o?Math.max(function(e,t){var n=t,r=ar,o=Date.now()-n;if(o>=ar)return e;if(o<or)return 1;var a=rr({startOfRange:or,endOfRange:r,current:o}),i=e*nr(a);return Math.ceil(i)}(a,r),1):a},lr=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,a=e.shouldUseTimeDampening,i=function(e,t){return{startScrollingFrom:.25*e[t.size],maxScrollValueAt:.05*e[t.size]}}(t,o);return n[o.end]<n[o.start]?ir({distanceToEdge:n[o.end],thresholds:i,dragStartTime:r,shouldUseTimeDampening:a}):-1*ir({distanceToEdge:n[o.start],thresholds:i,dragStartTime:r,shouldUseTimeDampening:a})},ur=qe((function(e){return 0===e?0:e})),sr=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,a=e.shouldUseTimeDampening,i={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},l=lr({container:n,distanceToEdges:i,dragStartTime:t,axis:bt,shouldUseTimeDampening:a}),u=lr({container:n,distanceToEdges:i,dragStartTime:t,axis:yt,shouldUseTimeDampening:a}),s=ur({x:u,y:l});if(We(s,Fe))return null;var c=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,a=n.width>t.width;return a||o?a&&o?null:{x:a?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:s});return c?We(c,Fe)?null:c:null},cr=qe((function(e){return 0===e?0:e>0?1:-1})),dr=(Kn=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=ze(t,r),a={x:Kn(o.x,n.x),y:Kn(o.y,n.y)};return We(a,Fe)?null:a}),fr=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},a=cr(r),i=dr({max:o,current:n,change:a});return!i||0!==a.x&&0===i.x||0!==a.y&&0===i.y},pr=function(e,t){return fr({current:e.scroll.current,max:e.scroll.max,change:t})},mr=function(e,t){var n=e.frame;return!!n&&fr({current:n.scroll.current,max:n.scroll.max,change:t})},hr=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,a=e.scrollDroppable,i=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.shouldUseTimeDampening,a=sr({dragStartTime:e.dragStartTime,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return a&&pr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:i,shouldUseTimeDampening:r});if(u)return void o(u)}var s=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var a=function(e,t){var n=tt(tr(t),(function(t){return t.frame||Ne(!1),Qt(t.frame.pageMarginBox)(e)}));return n}(t,r);return a}({center:i,destination:Vt(t.impact),droppables:t.dimensions.droppables});if(s){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,a=e.shouldUseTimeDampening,i=t.frame;if(!i)return null;var l=sr({dragStartTime:o,container:i.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:a});return l&&mr(t,l)?l:null}({dragStartTime:n,droppable:s,subject:l,center:i,shouldUseTimeDampening:r});c&&a(s.descriptor.id,c)}},gr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var a=Vt(e.impact);a||Ne(!1);var i=function(e,t){if(!mr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&mr(e,t)?dr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Ue(t,r);return n(e.descriptor.id,o),Ue(t,o)}(e.dimensions.droppables[a],o);if(i){var l=e.viewport,u=function(e,t,n){if(!e)return n;if(!pr(t,n))return n;var o=function(e,t){if(!pr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return dr({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var a=Ue(n,o);return r(a),Ue(n,a)}(e.isWindowScrollAllowed,l,i);u&&function(e,n){var r=ze(e.current.client.selection,n);t({client:r})}(e,u)}}}},vr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollDroppable,n=ke(e.scrollWindow),r=ke(t),o=null,a=function(e){o||Ne(!1);var t=o,a=t.shouldUseTimeDampening,i=t.dragStartTime;hr({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:i,shouldUseTimeDampening:a})};return{start:function(e){o&&Ne(!1);var t=Date.now(),n=!1,r=function(){n=!0};hr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},n&&a(e)},stop:function(){o&&(n.cancel(),r.cancel(),o=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),a=gr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}},br="data-rbd",yr={base:Jn=br+"-drag-handle",draggableId:Jn+"-draggable-id",contextId:Jn+"-context-id"},wr=function(){var e=br+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Er=function(){var e=br+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),xr={contextId:br+"-scroll-container-context-id"},kr=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Sr=function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),a=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(yr.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),i=[(r="\n transition: "+Pn.outOfTheWay+";\n ",{selector:o(wr.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),a,{selector:o(Er.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:kr(i,"always"),resting:kr(i,"resting"),dragging:kr(i,"dragging"),dropAnimating:kr(i,"dropAnimating"),userCancel:kr(i,"userCancel")}},Cr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,Or=function(){var e=document.querySelector("head");return e||Ne(!1),e},Ir=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t},Dr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Pr(e){return e instanceof Dr(e).HTMLElement}function Nr(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,a=r(o);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||Ne(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Ze(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||Ne(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Ze(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var _r=e.createContext(null),Rr=function(){var e=document.body;return e||Ne(!1),e},Tr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Mr=function(e){return"rbd-announcement-"+e},Ar=0,Lr={separator:"::"};function Br(e,t){return void 0===t&&(t=Lr),ue((function(){return""+e+t.separator+Ar++}),[t.separator,e])}var jr=e.createContext(null);function Fr(t){var n=(0,e.useRef)(t);return(0,e.useEffect)((function(){n.current=t})),n}var zr,Ur,Wr=((zr={})[13]=!0,zr[9]=!0,zr),Gr=function(e){Wr[e.keyCode]&&e.preventDefault()},Hr=function(){var e="visibilitychange";return"undefined"==typeof document?e:tt([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),Vr={type:"IDLE"};function $r(){}var qr=((Ur={})[34]=!0,Ur[33]=!0,Ur[36]=!0,Ur[35]=!0,Ur);var Qr={type:"IDLE"},Yr={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Kr(e,t){if(null==t)return!1;if(Boolean(Yr[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Kr(e,t.parentElement)}function Jr(e,t){var n=t.target;return!!Pr(n)&&Kr(e,n)}var Xr=function(e){return ce(e.getBoundingClientRect()).center},Zr=function(){var e="matches";return"undefined"==typeof document?e:tt([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function eo(e,t){return null==e?null:e[Zr](t)?e:eo(e.parentElement,t)}function to(e,t){return e.closest?e.closest(t):eo(e,t)}function no(e){e.preventDefault()}function ro(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function oo(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var a=r.draggable.findById(o);return!!a&&!!a.options.isEnabled&&!!Zn(n.getState(),o)}var ao=[function(t){var n=(0,e.useRef)(Vr),r=(0,e.useRef)(Ce),o=ue((function(){return{eventName:"mousedown",fn:function(e){if(!e.defaultPrevented&&0===e.button&&!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)){var n=t.findClosestDraggableId(e);if(n){var o=t.tryGetLock(n,l,{sourceEvent:e});if(o){e.preventDefault();var a={x:e.clientX,y:e.clientY};r.current(),c(o,a)}}}}}}),[t]),a=ue((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var r=t.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||t.canGetLock(n)&&e.preventDefault())}}}}}),[t]),i=se((function(){r.current=Oe(window,[a,o],{passive:!1,capture:!0})}),[a,o]),l=se((function(){"IDLE"!==n.current.type&&(n.current=Vr,r.current(),i())}),[i]),u=se((function(){var e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),s=se((function(){var e=function(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,a=e.clientY;if(0===t){var i={x:n,y:a},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(i);if("PENDING"!==l.type&&Ne(!1),u=l.point,s=i,Math.abs(s.x-u.x)>=5||Math.abs(s.y-u.y)>=5){var u,s;e.preventDefault();var c=l.actions.fluidLift(i);o({type:"DRAGGING",actions:c})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Gr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&Ne(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Hr,fn:t}]}({cancel:u,completed:l,getPhase:function(){return n.current},setPhase:function(e){n.current=e}});r.current=Oe(window,e,{capture:!0,passive:!1})}),[u,l]),c=se((function(e,t){"IDLE"!==n.current.type&&Ne(!1),n.current={type:"PENDING",point:t,actions:e},s()}),[s]);Cr((function(){return i(),function(){r.current()}}),[i])},function(t){var n=(0,e.useRef)($r),r=ue((function(){return{eventName:"keydown",fn:function(e){if(!e.defaultPrevented&&32===e.keyCode){var r=t.findClosestDraggableId(e);if(r){var a=t.tryGetLock(r,u,{sourceEvent:e});if(a){e.preventDefault();var i=!0,l=a.snapLift();n.current(),n.current=Oe(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 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(qr[r.keyCode]?r.preventDefault():Gr(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:Hr,fn:n}]}(l,u),{capture:!0,passive:!1})}}}function u(){i||Ne(!1),i=!1,n.current(),o()}}}}),[t]),o=se((function(){n.current=Oe(window,[r],{passive:!1,capture:!0})}),[r]);Cr((function(){return o(),function(){n.current()}}),[o])},function(t){var n=(0,e.useRef)(Qr),r=(0,e.useRef)(Ce),o=se((function(){return n.current}),[]),a=se((function(e){n.current=e}),[]),i=ue((function(){return{eventName:"touchstart",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var o=t.tryGetLock(n,u,{sourceEvent:e});if(o){var a=e.touches[0],i={x:a.clientX,y:a.clientY};r.current(),f(o,i)}}}}}}),[t]),l=se((function(){r.current=Oe(window,[i],{capture:!0,passive:!1})}),[i]),u=se((function(){var e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(Qr),r.current(),l())}),[l,a]),s=se((function(){var e=n.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),c=se((function(){var e={capture:!0,passive:!1},t={cancel:s,completed:u,getPhase:o},n=Oe(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],a={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(a)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&Ne(!1);var o=e.touches[0];if(o&&o.force>=.15){var a=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return a?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();a&&t()}}},{eventName:Hr,fn:t}]}(t),e),a=Oe(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Hr,fn:t}]}(t),e);r.current=function(){n(),a()}}),[s,o,u]),d=se((function(){var e=o();"PENDING"!==e.type&&Ne(!1);var t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,a]),f=se((function(e,t){"IDLE"!==o().type&&Ne(!1);var n=setTimeout(d,120);a({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,o,a,d]);Cr((function(){return l(),function(){r.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(Qr))}}),[o,l,a]),Cr((function(){return Oe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function io(t){var n=t.contextId,r=t.store,o=t.registry,a=t.customSensors,i=t.enableDefaultSensors,u=[].concat(i?ao:[],a||[]),s=(0,e.useState)((function(){return function(){var e=null;function t(){e||Ne(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&Ne(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=se((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);Cr((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();c(e,t),e=t}))}),[s,r,c]),Cr((function(){return s.tryAbandon}),[s.tryAbandon]);for(var d=se((function(e){return oo({lockAPI:s,registry:o,store:r,draggableId:e})}),[s,o,r]),f=se((function(e,t,a){return function(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,i=e.forceSensorStop,u=e.sourceEvent;if(!oo({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var s=o.draggable.getById(a),c=function(e,t){var n="["+wr.contextId+'="'+e+'"]',r=tt(nt(document.querySelectorAll(n)),(function(e){return e.getAttribute(wr.id)===t}));return r&&Pr(r)?r:null}(n,s.descriptor.id);if(!c)return null;if(u&&!s.options.canDragInteractiveElements&&Jr(c,u))return null;var d=t.claim(i||Ce),f="PRE_DRAG";function p(){return s.options.shouldRespectForcePress}function m(){return t.isActive(d)}var h=function(e,t){ro({expected:e,phase:f,isLockActive:m,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var a=Oe(window,[{eventName:"click",fn:no,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(a)}n(),r.dispatch(kn({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&Ne(!1)),r.dispatch(cn(e.liftActionArgs)),f="DRAGGING",l({isActive:function(){return ro({expected:"DRAGGING",phase:f,isLockActive:m,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}var v={isActive:function(){return ro({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=ke((function(e){h((function(){return gn({client:e})}))}));return l({},g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return h(vn)},moveRight:function(){return h(yn)},moveDown:function(){return h(bn)},moveLeft:function(){return h(wn)}};return g({liftActionArgs:{id:a,clientSelection:Xr(c),movementMode:"SNAP"},cleanup:Ce,actions:e})},abort:function(){ro({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!0})&&t.release()}};return v}({lockAPI:s,registry:o,contextId:n,store:r,draggableId:e,forceSensorStop:t,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})}),[n,s,o,r]),p=se((function(e){return function(e,t){var n=function(e,t){var n,r=t.target;if(!((n=r)instanceof Dr(n).Element))return null;var o=function(e){return"["+yr.contextId+'="'+e+'"]'}(e),a=to(r,o);return a&&Pr(a)?a:null}(e,t);return n?n.getAttribute(yr.draggableId):null}(n,e)}),[n]),m=se((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=se((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(En()))}),[s,r]),g=se(s.isClaimed,[s]),v=ue((function(){return{canGetLock:d,tryGetLock:f,findClosestDraggableId:p,findOptionsForDraggable:m,tryReleaseLock:h,isLockClaimed:g}}),[d,f,p,m,h,g]),b=0;b<u.length;b++)u[b](v)}var lo=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function uo(e){return e.current||Ne(!1),e.current}function so(t){var n=t.contextId,r=t.setCallbacks,o=t.sensors,a=t.nonce,i=t.dragHandleUsageInstructions,u=(0,e.useRef)(null),s=Fr(t),c=se((function(){return lo(s.current)}),[s]),d=function(t){var n=ue((function(){return Mr(t)}),[t]),r=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=n,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),l(e.style,Tr),Rr().appendChild(e),function(){setTimeout((function(){var t=Rr();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[n]),se((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(n),f=function(t){var n=t.contextId,r=t.text,o=Br("hidden-text",{separator:"-"}),a=ue((function(){return"rbd-hidden-text-"+(e={contextId:n,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,n]);return(0,e.useEffect)((function(){var e=document.createElement("div");return e.id=a,e.textContent=r,e.style.display="none",Rr().appendChild(e),function(){var t=Rr();t.contains(e)&&t.removeChild(e)}}),[a,r]),a}({contextId:n,text:i}),p=function(t,n){var r=ue((function(){return Sr(t)}),[t]),o=(0,e.useRef)(null),a=(0,e.useRef)(null),i=se(xe((function(e){var t=a.current;t||Ne(!1),t.textContent=e})),[]),l=se((function(e){var t=o.current;t||Ne(!1),t.textContent=e}),[]);Cr((function(){(o.current||a.current)&&Ne(!1);var e=Ir(n),u=Ir(n);return o.current=e,a.current=u,e.setAttribute(br+"-always",t),u.setAttribute(br+"-dynamic",t),Or().appendChild(e),Or().appendChild(u),l(r.always),i(r.resting),function(){var e=function(e){var t=e.current;t||Ne(!1),Or().removeChild(t),e.current=null};e(o),e(a)}}),[n,l,i,r.always,r.resting,t]);var u=se((function(){return i(r.dragging)}),[i,r.dragging]),s=se((function(e){i("DROP"!==e?r.userCancel:r.dropAnimating)}),[i,r.dropAnimating,r.userCancel]),c=se((function(){a.current&&i(r.resting)}),[i,r.resting]);return ue((function(){return{dragging:u,dropping:s,resting:c}}),[u,s,c])}(n,a),m=se((function(e){uo(u).dispatch(e)}),[]),h=ue((function(){return b({publishWhileDragging:dn,updateDroppableScroll:pn,updateDroppableIsEnabled:mn,updateDroppableIsCombineEnabled:hn,collectionStarting:fn},m)}),[m]),g=function(){var t=ue(Nr,[]);return(0,e.useEffect)((function(){return function(){requestAnimationFrame(t.clean)}}),[t]),t}(),v=ue((function(){return Xn(g,h)}),[g,h]),y=ue((function(){return vr(l({scrollWindow:er,scrollDroppable:v.scrollDroppable},b({move:gn},m)))}),[v.scrollDroppable,m]),w=function(t){var n=(0,e.useRef)({}),r=(0,e.useRef)(null),o=(0,e.useRef)(null),a=(0,e.useRef)(!1),i=se((function(e,t){var r={id:e,focus:t};return n.current[e]=r,function(){var t=n.current;t[e]!==r&&delete t[e]}}),[]),l=se((function(e){var n=function(e,t){var n="["+yr.contextId+'="'+e+'"]',r=nt(document.querySelectorAll(n));if(!r.length)return null;var o=tt(r,(function(e){return e.getAttribute(yr.draggableId)===t}));return o&&Pr(o)?o:null}(t,e);n&&n!==document.activeElement&&n.focus()}),[t]),u=se((function(e,t){r.current===e&&(r.current=t)}),[]),s=se((function(){o.current||a.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=r.current;e&&l(e)})))}),[l]),c=se((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(yr.draggableId)===e&&(r.current=e)}),[]);return Cr((function(){return a.current=!0,function(){a.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),ue((function(){return{register:i,tryRecordFocus:c,tryRestoreFocusRecorded:s,tryShiftRecord:u}}),[i,c,s,u])}(n),E=ue((function(){return Vn({announce:d,autoScroller:y,dimensionMarshal:v,focusMarshal:w,getResponders:c,styleMarshal:p})}),[d,y,v,w,c,p]);u.current=E;var x=se((function(){var e=uo(u);"IDLE"!==e.getState().phase&&e.dispatch(En())}),[]),k=se((function(){var e=uo(u).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);r(ue((function(){return{isDragging:k,tryAbort:x}}),[k,x]));var S=se((function(e){return Zn(uo(u).getState(),e)}),[]),C=se((function(){return qt(uo(u).getState())}),[]),I=ue((function(){return{marshal:v,focus:w,contextId:n,canLift:S,isMovementAllowed:C,dragHandleUsageInstructionsId:f,registry:g}}),[n,v,f,w,S,C,g]);return io({contextId:n,store:E,registry:g,customSensors:o,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,e.useEffect)((function(){return x}),[x]),e.createElement(jr.Provider,{value:I},e.createElement(O,{context:_r,store:E},t.children))}var co=0;function fo(t){var n=ue((function(){return""+co++}),[]),r=t.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";return e.createElement(_e,null,(function(o){return e.createElement(so,{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},t.children)}))}var po=function(e){return function(t){return e===t}},mo=po("scroll"),ho=po("auto"),go=(po("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),vo=function e(t){return null==t||t===document.body||t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return go(n,mo)||go(n,ho)}(t)?t:e(t.parentElement)},bo=function(e){return{x:e.scrollLeft,y:e.scrollTop}},yo=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},wo={passive:!1},Eo={passive:!0},xo=function(e){return e.shouldPublishImmediately?wo:Eo};function ko(t){var n=(0,e.useContext)(t);return n||Ne(!1),n}var So=function(e){return e&&e.env.closestScrollable||null};function Co(){}var Oo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Io=e.memo((function(t){var n=(0,e.useRef)(null),r=se((function(){n.current&&(clearTimeout(n.current),n.current=null)}),[]),o=t.animate,a=t.onTransitionEnd,i=t.onClose,l=t.contextId,u=(0,e.useState)("open"===t.animate),s=u[0],c=u[1];(0,e.useEffect)((function(){return s?"open"!==o?(r(),c(!1),Co):n.current?Co:(n.current=setTimeout((function(){n.current=null,c(!1)})),r):Co}),[o,s,r]);var d=se((function(e){"height"===e.propertyName&&(a(),"close"===o&&i())}),[o,i,a]),f=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?Oo:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Pn.placeholder:null}}({isAnimatingOpenOnMount:s,animate:t.animate,placeholder:t.placeholder});return e.createElement(t.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":l,onTransitionEnd:d,ref:t.innerRef})})),Do=e.createContext(null),Po=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return i(t,e),t.getDerivedStateFromProps=function(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"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(e.PureComponent),No=5e3,_o=4500,Ro=function(e,t){return t?Pn.drop(t.duration):e?Pn.snap:Pn.fluid},To=function(e,t){return e?t?Cn:On:null};function Mo(e){e.preventDefault()}var Ao=function(e,t){return e===t},Lo=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Bo(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var jo={mapped:{type:"SECONDARY",offset:Fe,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Bo(null)}},Fo=oe((function(){var e,t,n,r=(e=xe((function(e,t){return{x:e,y:t}})),t=xe((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=xe((function(e,n,r,o,a,i,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:i,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,a,i,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var a=r.current.client.offset,i=r.dimensions.draggables[o.draggableId],l=Vt(r.impact),u=(c=r.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,s=r.forceShouldAnimate;return n(e(a.x,a.y),r.movementMode,i,o.isClone,l,u,s)}var c;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==o.draggableId)return null;var f=o.isClone,p=r.dimensions.draggables[o.draggableId],m=d.result,h=m.mode,g=Lo(m),v=function(e){return e.combine?e.combine.draggableId:null}(m),b={duration:r.dropDuration,curve:Sn,moveTo:r.newHomeClientOffset,opacity:v?Cn:null,scale:v?In:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:b,draggingOver:g,combineWith:v,mode:h,forceShouldAnimate:null,snapshot:t(h,f,g,v,b)}}}return null}),o=function(){var e=xe((function(e,t){return{x:e,y:t}})),t=xe(Bo),n=xe((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Fe,e,!0):null},o=function(t,o,a,i){var l=a.displaced.visible[t],u=Boolean(i.inVirtualList&&i.effected[t]),s=st(a),c=s&&s.draggableId===t?o:null;if(!l){if(!u)return r(c);if(a.displaced.invisible[t])return null;var d=Ge(i.displacedBy.point),f=e(d.x,d.y);return n(f,c,!0)}if(u)return r(c);var p=a.displacedBy.point,m=e(p.x,p.y);return n(m,c,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||jo}}),{dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:_r,pure:!0,areStatePropsEqual:Ao})((function(t){var n=(0,e.useRef)(null),r=se((function(e){n.current=e}),[]),o=se((function(){return n.current}),[]),a=ko(jr),i=a.contextId,l=a.dragHandleUsageInstructionsId,u=a.registry,s=ko(Do),c=s.type,d=s.droppableId,f=ue((function(){return{id:t.draggableId,index:t.index,type:c,droppableId:d}}),[t.draggableId,t.index,c,d]),p=t.children,m=t.draggableId,h=t.isEnabled,g=t.shouldRespectForcePress,v=t.canDragInteractiveElements,b=t.isClone,y=t.mapped,w=t.dropAnimationFinished;b||function(t){var n=Br("draggable"),r=t.descriptor,o=t.registry,a=t.getDraggableRef,i=t.canDragInteractiveElements,l=t.shouldRespectForcePress,u=t.isEnabled,s=ue((function(){return{canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:u}}),[i,u,l]),c=se((function(e){var t=a();return t||Ne(!1),function(e,t,n){void 0===n&&(n=Fe);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),a=be(o,r),i=ve(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=ue((function(){return{uniqueId:n,descriptor:r,options:s,getDimension:c}}),[r,c,s,n]),f=(0,e.useRef)(d),p=(0,e.useRef)(!0);Cr((function(){return o.draggable.register(f.current),function(){return o.draggable.unregister(f.current)}}),[o.draggable]),Cr((function(){if(p.current)p.current=!1;else{var e=f.current;f.current=d,o.draggable.update(d,e)}}),[d,o.draggable])}(ue((function(){return{descriptor:f,registry:u,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:h}}),[f,u,o,v,g,h]));var E=ue((function(){return h?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":i,draggable:!1,onDragStart:Mo}:null}),[i,l,m,h]),x=se((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&w()}),[w,y]),k=ue((function(){var e=function(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,a=Boolean(r),i=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(o),u=l?Rn(n,a):_n(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:u,opacity:To(a,l),zIndex:l?_o:No,pointerEvents:"none"}}(e):{transform:_n((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}(y),t="DRAGGING"===y.type&&y.dropping?x:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":i,"data-rbd-draggable-id":m,style:e,onTransitionEnd:t},dragHandleProps:E}}),[i,E,m,y,x,r]),S=ue((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return p(k,y.snapshot,S)}));function zo(t){return ko(Do).isUsingCloneFor!==t.draggableId||t.isClone?e.createElement(Fo,t):null}function Uo(t){var n="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,r=Boolean(t.disableInteractiveElementBlocking),o=Boolean(t.shouldRespectForcePress);return e.createElement(zo,l({},t,{isClone:!1,isEnabled:n,canDragInteractiveElements:r,shouldRespectForcePress:o}))}var Wo=function(e,t){return e===t.droppable.type},Go=function(e,t){return t.draggables[e.draggable.id]},Ho={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Ne(!1),document.body}},Vo=oe((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=l({},e,{shouldAnimatePlaceholder:!1}),n=xe((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=xe((function(r,o,a,i,l,u){var s=l.descriptor.id;if(l.descriptor.droppableId===r){var c=u?{render:u,dragging:n(l.descriptor)}:null,d={isDraggingOver:a,draggingOverWith:a?s:null,draggingFromThisWith:s,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:c}}if(!o)return t;if(!i)return e;var f={isDraggingOver:a,draggingOverWith:s,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(n,o){var a=o.droppableId,i=o.type,l=!o.isDropDisabled,u=o.renderClone;if(n.isDragging){var s=n.critical;if(!Wo(i,s))return t;var c=Go(s,n.dimensions),d=Vt(n.impact)===a;return r(a,l,d,d,c,u)}if("DROP_ANIMATING"===n.phase){var f=n.completed;if(!Wo(i,f.critical))return t;var p=Go(f.critical,n.dimensions);return r(a,l,Lo(f.result)===a,Vt(f.impact)===a,p,u)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var m=n.completed;if(!Wo(i,m.critical))return t;var h=Vt(m.impact)===a,g=Boolean(m.impact.at&&"COMBINE"===m.impact.at.type),v=m.critical.droppable.id===a;return h?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:_r,pure:!0,areStatePropsEqual:Ao})((function(t){var n=(0,e.useContext)(jr);n||Ne(!1);var r=n.contextId,o=n.isMovementAllowed,a=(0,e.useRef)(null),i=(0,e.useRef)(null),l=t.children,u=t.droppableId,s=t.type,c=t.mode,d=t.direction,f=t.ignoreContainerClipping,p=t.isDropDisabled,m=t.isCombineEnabled,h=t.snapshot,g=t.useClone,v=t.updateViewportMaxScroll,b=t.getContainerForClone,y=se((function(){return a.current}),[]),w=se((function(e){a.current=e}),[]),E=(se((function(){return i.current}),[]),se((function(e){i.current=e}),[])),x=se((function(){o()&&v({maxScroll:Qn()})}),[o,v]);!function(t){var n=(0,e.useRef)(null),r=ko(jr),o=Br("droppable"),a=r.registry,i=r.marshal,l=Fr(t),u=ue((function(){return{id:t.droppableId,type:t.type,mode:t.mode}}),[t.droppableId,t.mode,t.type]),s=(0,e.useRef)(u),c=ue((function(){return xe((function(e,t){n.current||Ne(!1);var r={x:e,y:t};i.updateDroppableScroll(u.id,r)}))}),[u.id,i]),d=se((function(){var e=n.current;return e&&e.env.closestScrollable?bo(e.env.closestScrollable):Fe}),[]),f=se((function(){var e=d();c(e.x,e.y)}),[d,c]),p=ue((function(){return ke(f)}),[f]),m=se((function(){var e=n.current,t=So(e);e&&t||Ne(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),h=se((function(e,t){n.current&&Ne(!1);var o=l.current,a=o.getDroppableRef();a||Ne(!1);var i=function(e){return{closestScrollable:vo(e),isFixedOnPage:yo(e)}}(a),s={ref:a,descriptor:u,env:i,scrollOptions:t};n.current=s;var c=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,a=e.direction,i=e.isDropDisabled,l=e.isCombineEnabled,u=e.shouldClipSubject,s=r.closestScrollable,c=function(e,t){var n=ye(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,a=r+t.scrollHeight,i=o+t.scrollWidth,l=de({top:r,right:i,bottom:a,left:o},n.border);return me({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})}(t,s),d=ve(c,o),f=function(){if(!s)return null;var e=ye(s),t={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:e,page:ve(e,o),scroll:bo(s),scrollSize:t,shouldClipSubject:u}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,a=e.direction,i=e.client,l=e.page,u=e.closest,s=function(){if(!u)return null;var e=u.scrollSize,t=u.client,n=$n({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:n,diff:{value:Fe,displacement:Fe}}}}(),c="vertical"===a?bt:yt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:n,client:i,page:l,frame:s,subject:Je({page:l,withPlaceholder:null,axis:c,frame:s})}}({descriptor:n,isEnabled:!i,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:a,client:c,page:d,closest:f});return p}({ref:a,descriptor:u,env:i,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=i.closestScrollable;return d&&(d.setAttribute(xr.contextId,r.contextId),d.addEventListener("scroll",m,xo(s.scrollOptions))),c}),[r.contextId,u,m,l]),g=se((function(){var e=n.current,t=So(e);return e&&t||Ne(!1),bo(t)}),[]),v=se((function(){var e=n.current;e||Ne(!1);var t=So(e);n.current=null,t&&(p.cancel(),t.removeAttribute(xr.contextId),t.removeEventListener("scroll",m,xo(e.scrollOptions)))}),[m,p]),b=se((function(e){var t=n.current;t||Ne(!1);var r=So(t);r||Ne(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=ue((function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:g,dragStopped:v,scroll:b}}),[v,h,g,b]),w=ue((function(){return{uniqueId:o,descriptor:u,callbacks:y}}),[y,u,o]);Cr((function(){return s.current=w.descriptor,a.droppable.register(w),function(){n.current&&v(),a.droppable.unregister(w)}}),[y,u,v,w,i,a.droppable]),Cr((function(){n.current&&i.updateDroppableIsEnabled(s.current.id,!t.isDropDisabled)}),[t.isDropDisabled,i]),Cr((function(){n.current&&i.updateDroppableIsCombineEnabled(s.current.id,t.isCombineEnabled)}),[t.isCombineEnabled,i])}({droppableId:u,type:s,mode:c,direction:d,isDropDisabled:p,isCombineEnabled:m,ignoreContainerClipping:f,getDroppableRef:y});var k=e.createElement(Po,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},(function(t){var n=t.onClose,o=t.data,a=t.animate;return e.createElement(Io,{placeholder:o,onClose:n,innerRef:E,animate:a,contextId:r,onTransitionEnd:x})})),S=ue((function(){return{innerRef:w,placeholder:k,droppableProps:{"data-rbd-droppable-id":u,"data-rbd-droppable-context-id":r}}}),[r,u,k,w]),C=g?g.dragging.draggableId:null,O=ue((function(){return{droppableId:u,type:s,isUsingCloneFor:C}}),[u,C,s]);return e.createElement(Do.Provider,{value:O},l(S,h),function(){if(!g)return null;var t=g.dragging,n=g.render,r=e.createElement(zo,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(e,r){return n(e,r,t)}));return ie.createPortal(r,b())}())}));Vo.defaultProps=Ho;const $o={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let qo;const Qo=new Uint8Array(16);function Yo(){if(!qo&&(qo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qo(Qo)}const Ko=[];for(let e=0;e<256;++e)Ko.push((e+256).toString(16).slice(1));const Jo=function(e,t,n){if($o.randomUUID&&!t&&!e)return $o.randomUUID();const r=(e=e||{}).random||(e.rng||Yo)();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 Ko[e[t+0]]+Ko[e[t+1]]+Ko[e[t+2]]+Ko[e[t+3]]+"-"+Ko[e[t+4]]+Ko[e[t+5]]+"-"+Ko[e[t+6]]+Ko[e[t+7]]+"-"+Ko[e[t+8]]+Ko[e[t+9]]+"-"+Ko[e[t+10]]+Ko[e[t+11]]+Ko[e[t+12]]+Ko[e[t+13]]+Ko[e[t+14]]+Ko[e[t+15]]}(r)};var Xo=n(962),Zo=n.n(Xo);function ea(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 ta(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function na(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}const ra=2**31-1;function oa(e,t,n){const r=n-Date.now();e.current=r<=ra?setTimeout(t,r):setTimeout((()=>oa(e,t,n)),ra)}function aa(){const t=na(),n=(0,e.useRef)();return function(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=ra?n.current=setTimeout(r,o):oa(n,r,Date.now()+o))},clear:e}}),[])}var ia=n(473),la=n.n(ia);n(143);const ua=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,sa=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=ua(e),r=ua(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var ca=n(184),da=n.n(ca);function fa(){return(0,e.useState)(null)}var pa=Object.prototype.hasOwnProperty;function ma(e,t,n){for(n of e.keys())if(ha(n,t))return n}function ha(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--&&ha(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=ma(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=ma(t,o)))return!1;if(!ha(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(pa.call(e,n)&&++r&&!pa.call(t,n))return!1;if(!(n in t)||!ha(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function ga(e){return e.split("-")[0]}function va(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ba(e){return e instanceof va(e).Element||e instanceof Element}function ya(e){return e instanceof va(e).HTMLElement||e instanceof HTMLElement}function wa(e){return"undefined"!=typeof ShadowRoot&&(e instanceof va(e).ShadowRoot||e instanceof ShadowRoot)}var Ea=Math.max,xa=Math.min,ka=Math.round;function Sa(){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 Ca(){return!/^((?!chrome|android).)*safari/i.test(Sa())}function Oa(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ya(e)&&(o=e.offsetWidth>0&&ka(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ka(r.height)/e.offsetHeight||1);var i=(ba(e)?va(e):window).visualViewport,l=!Ca()&&n,u=(r.left+(l&&i?i.offsetLeft:0))/o,s=(r.top+(l&&i?i.offsetTop:0))/a,c=r.width/o,d=r.height/a;return{width:c,height:d,top:s,right:u+c,bottom:s+d,left:u,x:u,y:s}}function Ia(e){var t=Oa(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 Da(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wa(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pa(e){return e?(e.nodeName||"").toLowerCase():null}function Na(e){return va(e).getComputedStyle(e)}function _a(e){return["table","td","th"].indexOf(Pa(e))>=0}function Ra(e){return((ba(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ta(e){return"html"===Pa(e)?e:e.assignedSlot||e.parentNode||(wa(e)?e.host:null)||Ra(e)}function Ma(e){return ya(e)&&"fixed"!==Na(e).position?e.offsetParent:null}function Aa(e){for(var t=va(e),n=Ma(e);n&&_a(n)&&"static"===Na(n).position;)n=Ma(n);return n&&("html"===Pa(n)||"body"===Pa(n)&&"static"===Na(n).position)?t:n||function(e){var t=/firefox/i.test(Sa());if(/Trident/i.test(Sa())&&ya(e)&&"fixed"===Na(e).position)return null;var n=Ta(e);for(wa(n)&&(n=n.host);ya(n)&&["html","body"].indexOf(Pa(n))<0;){var r=Na(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 La(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ba(e,t,n){return Ea(e,xa(t,n))}function ja(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fa(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var za="top",Ua="bottom",Wa="right",Ga="left",Ha="auto",Va=[za,Ua,Wa,Ga],$a="start",qa="end",Qa="viewport",Ya="popper",Ka=Va.reduce((function(e,t){return e.concat([t+"-"+$a,t+"-"+qa])}),[]),Ja=[].concat(Va,[Ha]).reduce((function(e,t){return e.concat([t,t+"-"+$a,t+"-"+qa])}),[]),Xa=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Za={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=ga(n.placement),u=La(l),s=[Ga,Wa].indexOf(l)>=0?"height":"width";if(a&&i){var c=function(e,t){return ja("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fa(e,Va))}(o.padding,n),d=Ia(a),f="y"===u?za:Ga,p="y"===u?Ua:Wa,m=n.rects.reference[s]+n.rects.reference[u]-i[u]-n.rects.popper[s],h=i[u]-n.rects.reference[u],g=Aa(a),v=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=c[f],w=v-d[s]-c[p],E=v/2-d[s]/2+b,x=Ba(y,E,w),k=u;n.modifiersData[r]=((t={})[k]=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)))&&Da(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var ti={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ni(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,u=e.gpuAcceleration,s=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,m=i.y,h=void 0===m?0:m,g="function"==typeof c?c({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=Ga,w=za,E=window;if(s){var x=Aa(n),k="clientHeight",S="clientWidth";x===va(n)&&"static"!==Na(x=Ra(n)).position&&"absolute"===l&&(k="scrollHeight",S="scrollWidth"),(o===za||(o===Ga||o===Wa)&&a===qa)&&(w=Ua,h-=(d&&x===E&&E.visualViewport?E.visualViewport.height:x[k])-r.height,h*=u?1:-1),o!==Ga&&(o!==za&&o!==Ua||a!==qa)||(y=Wa,p-=(d&&x===E&&E.visualViewport?E.visualViewport.width:x[S])-r.width,p*=u?1:-1)}var C,O=Object.assign({position:l},s&&ti),I=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ka(n*o)/o||0,y:ka(r*o)/o||0}}({x:p,y:h},va(n)):{x:p,y:h};return p=I.x,h=I.y,u?Object.assign({},O,((C={})[w]=b?"0":"",C[y]=v?"0":"",C.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",C)):Object.assign({},O,((t={})[w]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}const ri={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,u=void 0===l||l,s={placement:ga(t.placement),variation:ei(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,ni(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ni(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var oi={passive:!0};const ai={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,u=va(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&s.forEach((function(e){e.addEventListener("scroll",n.update,oi)})),l&&u.addEventListener("resize",n.update,oi),function(){a&&s.forEach((function(e){e.removeEventListener("scroll",n.update,oi)})),l&&u.removeEventListener("resize",n.update,oi)}},data:{}};var ii={left:"right",right:"left",bottom:"top",top:"bottom"};function li(e){return e.replace(/left|right|bottom|top/g,(function(e){return ii[e]}))}var ui={start:"end",end:"start"};function si(e){return e.replace(/start|end/g,(function(e){return ui[e]}))}function ci(e){var t=va(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function di(e){return Oa(Ra(e)).left+ci(e).scrollLeft}function fi(e){var t=Na(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function pi(e){return["html","body","#document"].indexOf(Pa(e))>=0?e.ownerDocument.body:ya(e)&&fi(e)?e:pi(Ta(e))}function mi(e,t){var n;void 0===t&&(t=[]);var r=pi(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=va(r),i=o?[a].concat(a.visualViewport||[],fi(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(mi(Ta(i)))}function hi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gi(e,t,n){return t===Qa?hi(function(e,t){var n=va(e),r=Ra(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;var s=Ca();(s||!s&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l+di(e),y:u}}(e,n)):ba(t)?function(e,t){var n=Oa(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):hi(function(e){var t,n=Ra(e),r=ci(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Ea(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ea(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+di(e),u=-r.scrollTop;return"rtl"===Na(o||n).direction&&(l+=Ea(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:u}}(Ra(e)))}function vi(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?ga(o):null,i=o?ei(o):null,l=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(a){case za:t={x:l,y:n.y-r.height};break;case Ua:t={x:l,y:n.y+n.height};break;case Wa:t={x:n.x+n.width,y:u};break;case Ga:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=a?La(a):null;if(null!=s){var c="y"===s?"height":"width";switch(i){case $a:t[s]=t[s]-(n[c]/2-r[c]/2);break;case qa:t[s]=t[s]+(n[c]/2-r[c]/2)}}return t}function bi(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,u=void 0===l?"clippingParents":l,s=n.rootBoundary,c=void 0===s?Qa:s,d=n.elementContext,f=void 0===d?Ya:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=ja("number"!=typeof g?g:Fa(g,Va)),b=f===Ya?"reference":Ya,y=e.rects.popper,w=e.elements[m?b:f],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=mi(Ta(e)),n=["absolute","fixed"].indexOf(Na(e).position)>=0&&ya(e)?Aa(e):e;return ba(n)?t.filter((function(e){return ba(e)&&Da(e,n)&&"body"!==Pa(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=gi(e,n,r);return t.top=Ea(o.top,t.top),t.right=xa(o.right,t.right),t.bottom=xa(o.bottom,t.bottom),t.left=Ea(o.left,t.left),t}),gi(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}(ba(w)?w:w.contextElement||Ra(e.elements.popper),u,c,i),x=Oa(e.elements.reference),k=vi({reference:x,element:y,strategy:"absolute",placement:o}),S=hi(Object.assign({},y,k)),C=f===Ya?S:x,O={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},I=e.modifiersData.offset;if(f===Ya&&I){var D=I[o];Object.keys(O).forEach((function(e){var t=[Wa,Ua].indexOf(e)>=0?1:-1,n=[za,Ua].indexOf(e)>=0?"y":"x";O[e]+=D[n]*t}))}return O}const yi={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,u=n.fallbackPlacements,s=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,v=ga(g),b=u||(v!==g&&m?function(e){if(ga(e)===Ha)return[];var t=li(e);return[si(e),t,si(t)]}(g):[li(g)]),y=[g].concat(b).reduce((function(e,n){return e.concat(ga(n)===Ha?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,u=n.allowedAutoPlacements,s=void 0===u?Ja:u,c=ei(r),d=c?l?Ka:Ka.filter((function(e){return ei(e)===c})):Va,f=d.filter((function(e){return s.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=bi(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[ga(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:s,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,E=t.rects.popper,x=new Map,k=!0,S=y[0],C=0;C<y.length;C++){var O=y[C],I=ga(O),D=ei(O)===$a,P=[za,Ua].indexOf(I)>=0,N=P?"width":"height",_=bi(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:s}),R=P?D?Wa:Ga:D?Ua:za;w[N]>E[N]&&(R=li(R));var T=li(R),M=[];if(a&&M.push(_[I]<=0),l&&M.push(_[R]<=0,_[T]<=0),M.every((function(e){return e}))){S=O,k=!1;break}x.set(O,M)}if(k)for(var A=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 S=t,"break"},L=m?3:1;L>0&&"break"!==A(L);L--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function wi(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 Ei(e){return[za,Wa,Ua,Ga].some((function(t){return e[t]>=0}))}const xi={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=Ja.reduce((function(e,n){return e[n]=function(e,t,n){var r=ga(e),o=[Ga,za].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,[Ga,Wa].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],u=l.x,s=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=i}},ki={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,u=n.boundary,s=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=bi(t,{boundary:u,rootBoundary:s,padding:d,altBoundary:c}),v=ga(t.placement),b=ei(t.placement),y=!b,w=La(v),E="x"===w?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(x){if(a){var P,N="y"===w?za:Ga,_="y"===w?Ua:Wa,R="y"===w?"height":"width",T=x[w],M=T+g[N],A=T-g[_],L=p?-S[R]/2:0,B=b===$a?k[R]:S[R],j=b===$a?-S[R]:-k[R],F=t.elements.arrow,z=p&&F?Ia(F):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=U[N],G=U[_],H=Ba(0,k[R],z[R]),V=y?k[R]/2-L-H-W-O.mainAxis:B-H-W-O.mainAxis,$=y?-k[R]/2+L+H+G+O.mainAxis:j+H+G+O.mainAxis,q=t.elements.arrow&&Aa(t.elements.arrow),Q=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Y=null!=(P=null==I?void 0:I[w])?P:0,K=T+$-Y,J=Ba(p?xa(M,T+V-Y-Q):M,T,p?Ea(A,K):A);x[w]=J,D[w]=J-T}if(l){var X,Z="x"===w?za:Ga,ee="x"===w?Ua:Wa,te=x[E],ne="y"===E?"height":"width",re=te+g[Z],oe=te-g[ee],ae=-1!==[za,Ga].indexOf(v),ie=null!=(X=null==I?void 0:I[E])?X:0,le=ae?re:te-k[ne]-S[ne]-ie+O.altAxis,ue=ae?te+k[ne]+S[ne]-ie-O.altAxis:oe,se=p&&ae?function(e,t,n){var r=Ba(e,t,n);return r>n?n:r}(le,te,ue):Ba(p?le:re,te,p?ue:oe);x[E]=se,D[E]=se-te}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function Si(e,t,n){void 0===n&&(n=!1);var r,o,a=ya(t),i=ya(t)&&function(e){var t=e.getBoundingClientRect(),n=ka(t.width)/e.offsetWidth||1,r=ka(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=Ra(t),u=Oa(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==Pa(t)||fi(l))&&(s=(r=t)!==va(r)&&ya(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:ci(r)),ya(t)?((c=Oa(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=di(l))),{x:u.left+s.scrollLeft-c.x,y:u.top+s.scrollTop-c.y,width:u.width,height:u.height}}function Ci(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}var Oi={placement:"bottom",modifiers:[],strategy:"absolute"};function Ii(){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 Di=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Oi:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Oi,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],s=!1,c={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:ba(e)?mi(e):e.contextElement?mi(e.contextElement):[],popper:mi(t)};var i,s,f=function(e){var t=Ci(e);return Xa.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),s=i.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(s).map((function(e){return s[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:c,options:r});u.push(a||function(){})}})),c.update()},forceUpdate:function(){if(!s){var e=l.elements,t=e.reference,n=e.popper;if(Ii(t,n)){l.rects={reference:Si(t,Aa(n),"fixed"===l.options.strategy),popper:Ia(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,u=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:u,name:d,instance:c})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),s=!0}};if(!Ii(e,t))return c;function d(){u.forEach((function(e){return e()})),u=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}({defaultModifiers:[{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=bi(t,{elementContext:"reference"}),l=bi(t,{altBoundary:!0}),u=wi(i,r),s=wi(l,o,a),c=Ei(u),d=Ei(s);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=vi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ri,ai,xi,yi,ki,Za]}),Pi=["enabled","placement","strategy","modifiers"],Ni={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)}}},Ri=[],Ti=function(t,n,r={}){let{enabled:o=!0,placement:a="bottom",strategy:i="absolute",modifiers:l=Ri}=r,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,Pi);const s=(0,e.useRef)(l),c=(0,e.useRef)(),d=(0,e.useCallback)((()=>{var e;null==(e=c.current)||e.update()}),[]),f=(0,e.useCallback)((()=>{var e;null==(e=c.current)||e.forceUpdate()}),[]),[p,m]=function(t){const n=na();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:a,update:d,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),h=(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:f,placement:e.placement})}})),[d,f,m]),g=(0,e.useMemo)((()=>(ha(s.current,l)||(s.current=l),s.current)),[l]);return(0,e.useEffect)((()=>{c.current&&o&&c.current.setOptions({placement:a,strategy:i,modifiers:[...g,h,Ni]})}),[i,a,h,o,g]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return c.current=Di(t,n,Object.assign({},u,{placement:a,strategy:i,modifiers:[...g,_i,h]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),p},Mi=!("undefined"==typeof window||!window.document||!window.document.createElement);var Ai=!1,Li=!1;try{var Bi={get passive(){return Ai=!0},get once(){return Li=Ai=!0}};Mi&&(window.addEventListener("test",Bi,Bi),window.removeEventListener("test",Bi,!0))}catch(e){}const ji=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Li){var o=r.once,a=r.capture,i=n;!Li&&o&&(i=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=i),e.addEventListener(t,i,Ai?r:a)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!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)}(e,t,n,r)}};function Fi(e){return e&&e.ownerDocument||document}const zi=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function Ui(t){const n=zi(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const Wi=()=>{},Gi=e=>e&&("current"in e?e.current:e),Hi={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"},Vi=()=>{},$i=function(t,n,{disabled:r,clickTrigger:o}={}){const a=n||Vi;!function(t,n=Wi,{disabled:r,clickTrigger:o="click"}={}){const a=(0,e.useRef)(!1),i=(0,e.useRef)(!1),l=(0,e.useCallback)((e=>{const n=Gi(t);var r;la()(!!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)||!!ta(n,e.target)||i.current,i.current=!1}),[t]),u=Ui((e=>{const n=Gi(t);n&&ta(n,e.target)&&(i.current=!0)})),s=Ui((e=>{a.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const a=Fi(Gi(t)),i=a.defaultView||window;let c=null!=(e=i.event)?e:null==(n=i.parent)?void 0:n.event,d=null;Hi[o]&&(d=ji(a,Hi[o],u,!0));const f=ji(a,o,l,!0),p=ji(a,o,(e=>{e!==c?s(e):c=void 0}));let m=[];return"ontouchstart"in a.documentElement&&(m=[].slice.call(a.body.children).map((e=>ji(e,"mousemove",Wi)))),()=>{null==d||d(),f(),p(),m.forEach((e=>e()))}}),[t,r,o,l,u,s])}(t,a,{disabled:r,clickTrigger:o});const i=Ui((e=>{(function(e){return"Escape"===e.code||27===e.keyCode})(e)&&a(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=Fi(Gi(t));let n=(e.defaultView||window).event;const o=ji(e,"keyup",(e=>{e!==n?i(e):n=void 0}));return()=>{o()}}),[t,r,i])},qi=(0,e.createContext)(Mi?window:void 0);qi.Provider;const Qi=(e,t)=>Mi?null==e?(t||Fi()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Yi(t,n){const r=(0,e.useContext)(qi),[o,a]=(0,e.useState)((()=>Qi(t,null==r?void 0:r.document)));if(!o){const e=Qi(t);e&&a(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=Qi(t);e!==o&&a(e)}),[t,o]),o}function Ki(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const Ji=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,Xi="undefined"!=typeof document||Ji?e.useLayoutEffect:e.useEffect,Zi=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:a}){const i=(0,e.useRef)(null),l=(0,e.useRef)(n),u=Ui(r);(0,e.useEffect)((()=>{n?l.current=!0:u(i.current)}),[n,u]);const s=sa(i,t.ref),c=(0,e.cloneElement)(t,{ref:s});return n?c:a||!l.current&&o?null:c};var el=n(893);function tl({children:t,in:n,onExited:r,onEntered:o,transition:a}){const[i,l]=(0,e.useState)(!n);n&&i&&l(!1);const u=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),a=Ui(n);return Xi((()=>{if(!r.current)return;let e=!1;return a({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,a]),Xi((()=>(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}))}}),s=sa(u,t.ref);return i&&!n?null:(0,e.cloneElement)(t,{ref:s})}const nl=e.forwardRef(((t,n)=>{const{flip:r,offset:o,placement:a,containerPadding:i,popperConfig:l={},transition:u,runTransition:s}=t,[c,d]=fa(),[f,p]=fa(),m=sa(d,n),h=Yi(t.container),g=Yi(t.target),[v,b]=(0,e.useState)(!t.show),y=Ti(g,c,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:a,containerPadding:i,arrowElement:l,popperConfig:u={}}){var s,c,d,f,p;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(u.modifiers);return Object.assign({},u,{placement:n,enabled:e,strategy:a?"fixed":u.strategy,modifiers:Ki(Object.assign({},m,{eventListeners:{enabled:t,options:null==(s=m.eventListeners)?void 0:s.options},preventOverflow:Object.assign({},m.preventOverflow,{options:i?Object.assign({padding:i},null==(c=m.preventOverflow)?void 0:c.options):null==(d=m.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:o},null==(f=m.offset)?void 0:f.options)},arrow:Object.assign({},m.arrow,{enabled:!!l,options:Object.assign({},null==(p=m.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},m.flip)}))})}({placement:a,enableEvents:!!t.show,containerPadding:i||5,flip:r,offset:o,arrowElement:f,popperConfig:l}));t.show&&v&&b(!1);const w=t.show||!v;if($i(c,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!w)return null;const{onExit:E,onExiting:x,onEnter:k,onEntering:S,onEntered:C}=t;let O=t.children(Object.assign({},y.attributes.popper,{style:y.styles.popper,ref:m}),{popper:y,placement:a,show:!!t.show,arrowProps:Object.assign({},y.attributes.arrow,{style:y.styles.arrow,ref:p})});return O=function(e,t,n){return e?(0,el.jsx)(e,Object.assign({},n)):t?(0,el.jsx)(tl,Object.assign({},n,{transition:t})):(0,el.jsx)(Zi,Object.assign({},n))}(u,s,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:O,onExit:E,onExiting:x,onExited:(...e)=>{b(!0),t.onExited&&t.onExited(...e)},onEnter:k,onEntering:S,onEntered:C}),h?ie.createPortal(O,h):null}));nl.displayName="Overlay";const rl=nl;function ol(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const al=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:il,Provider:ll}=al;function ul(t,n){const{prefixes:r}=(0,e.useContext)(al);return t||r[n]||n}function sl(){const{dir:t}=(0,e.useContext)(al);return"rtl"===t}const cl=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=ul(t,"popover-header"),(0,el.jsx)(n,{ref:o,className:da()(e,t),...r}))));cl.displayName="PopoverHeader";const dl=cl,fl=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=ul(t,"popover-body"),(0,el.jsx)(n,{ref:o,className:da()(e,t),...r}))));fl.displayName="PopoverBody";const pl=fl;function ml(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function hl(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const gl=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:a,arrowProps:i,hasDoneInitialMeasure:l,popper:u,show:s,...c},d)=>{const f=ul(e,"popover"),p=sl(),[m]=(null==t?void 0:t.split("-"))||[],h=ml(m,p);let g=r;return s&&!l&&(g={...r,...hl(null==u?void 0:u.strategy)}),(0,el.jsxs)("div",{ref:d,role:"tooltip",style:g,"x-placement":m,className:da()(n,f,m&&`bs-popover-${h}`),...c,children:[(0,el.jsx)("div",{className:"popover-arrow",...i}),a?(0,el.jsx)(pl,{children:o}):o]})})),vl=Object.assign(gl,{Header:dl,Body:pl,POPPER_OFFSET:[0,8]}),bl=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:a,hasDoneInitialMeasure:i,popper:l,show:u,...s},c)=>{e=ul(e,"tooltip");const d=sl(),[f]=(null==t?void 0:t.split("-"))||[],p=ml(f,d);let m=r;return u&&!i&&(m={...r,...hl(null==l?void 0:l.strategy)}),(0,el.jsxs)("div",{ref:c,style:m,role:"tooltip","x-placement":f,className:da()(n,e,`bs-tooltip-${p}`),...s,children:[(0,el.jsx)("div",{className:"tooltip-arrow",...a}),(0,el.jsx)("div",{className:`${e}-inner`,children:o})]})}));bl.displayName="Tooltip";const yl=Object.assign(bl,{TOOLTIP_OFFSET:[0,6]}),wl=e.createContext(null);var El="unmounted",xl="exited",kl="entering",Sl="entered",Cl="exiting",Ol=function(t){function n(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=xl,r.appearStatus=kl):o=Sl:o=e.unmountOnExit||e.mountOnEnter?El:xl,r.state={status:o},r.nextCallback=null,r}i(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===El?{status:xl}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==kl&&n!==Sl&&(t=kl):n!==kl&&n!==Sl||(t=Cl)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.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}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===kl){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ie.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xl&&this.setState({status:El})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ie.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;e||n?(this.props.onEnter(a,i),this.safeSetState({status:kl},(function(){t.props.onEntering(a,i),t.onTransitionEnd(u,(function(){t.safeSetState({status:Sl},(function(){t.props.onEntered(a,i)}))}))}))):this.safeSetState({status:Sl},(function(){t.props.onEntered(a)}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ie.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Cl},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:xl},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:xl},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.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},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ie.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===El)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,I(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(wl.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},n}(e.Component);function Il(){}Ol.contextType=wl,Ol.propTypes={},Ol.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Il,onEntering:Il,onEntered:Il,onExit:Il,onExiting:Il,onExited:Il},Ol.UNMOUNTED=El,Ol.EXITED=xl,Ol.ENTERING=kl,Ol.ENTERED=Sl,Ol.EXITING=Cl;const Dl=Ol;var Pl=/([A-Z])/g,Nl=/^ms-/;function _l(e){return function(e){return e.replace(Pl,"-$1").toLowerCase()}(e).replace(Nl,"-ms-")}var Rl=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Tl=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(_l(t))||function(e,t){return function(e){var t=Fi(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(_l(t));Object.keys(t).forEach((function(o){var a=t[o];a||0===a?function(e){return!(!e||!Rl.test(e))}(o)?r+=o+"("+a+") ":n+=_l(o)+": "+a+";":e.style.removeProperty(_l(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function Ml(e,t,n,r){var o,a;null==n&&(a=-1===(o=Tl(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=ji(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),a()}}(e,n,r),l=ji(e,"transitionend",t);return function(){i(),l()}}function Al(e,t){const n=Tl(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function Ll(e,t){const n=Al(e,"transitionDuration"),r=Al(e,"transitionDelay"),o=Ml(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Bl(e){return e&&"setState"in e?ie.findDOMNode(e):null!=e?e:null}const jl=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:a,onExited:i,addEndListener:l,children:u,childRef:s,...c},d)=>{const f=(0,e.useRef)(null),p=sa(f,s),m=e=>{p(Bl(e))},h=e=>t=>{e&&f.current&&e(f.current,t)},g=(0,e.useCallback)(h(t),[t]),v=(0,e.useCallback)(h(n),[n]),b=(0,e.useCallback)(h(r),[r]),y=(0,e.useCallback)(h(o),[o]),w=(0,e.useCallback)(h(a),[a]),E=(0,e.useCallback)(h(i),[i]),x=(0,e.useCallback)(h(l),[l]);return(0,el.jsx)(Dl,{ref:d,...c,onEnter:g,onEntered:b,onEntering:v,onExit:y,onExited:E,onExiting:w,addEndListener:x,nodeRef:f,children:"function"==typeof u?(e,t)=>u(e,{...t,ref:m}):e.cloneElement(u,{ref:m})})})),Fl={[kl]:"show",[Sl]:"show"},zl=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},u=(0,e.useCallback)(((e,t)=>{!function(e){e.offsetHeight}(e),null==o||o(e,t)}),[o]);return(0,el.jsx)(jl,{ref:i,addEndListener:Ll,...l,onEnter:u,childRef:n.ref,children:(o,a)=>e.cloneElement(n,{...a,className:da()("fade",t,n.props.className,Fl[o],r[o])})})}));zl.displayName="Fade";const Ul=zl,Wl=e.forwardRef((({children:t,transition:n=Ul,popperConfig:r={},rootClose:o=!1,placement:a="top",show:i=!1,...l},u)=>{const s=(0,e.useRef)({}),[c,d]=(0,e.useState)(null),[f,p]=function(t){const n=(0,e.useRef)(null),r=ul(void 0,"popover"),o=ul(void 0,"tooltip"),a=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(ol(n.current,r))return vl.POPPER_OFFSET;if(ol(n.current,o))return yl.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[a]]}(l.offset),m=sa(u,f),h=!0===n?Ul:n||void 0,g=Ui((e=>{d(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return Xi((()=>{c&&l.target&&(null==s.current.scheduleUpdate||s.current.scheduleUpdate())}),[c,l.target]),(0,e.useEffect)((()=>{i||d(null)}),[i]),(0,el.jsx)(rl,{...l,ref:m,popperConfig:{...r,modifiers:p.concat(r.modifiers||[]),onFirstUpdate:g},transition:h,rootClose:o,placement:a,show:i,children:(o,{arrowProps:a,popper:i,show:l})=>{var u,d;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(Bl(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(Bl(e)))}(o,a);const f=null==i?void 0:i.placement,p=Object.assign(s.current,{state:null==i?void 0:i.state,scheduleUpdate:null==i?void 0:i.update,placement:f,outOfBoundaries:(null==i||null==(u=i.state)||null==(d=u.modifiersData.hide)?void 0:d.isReferenceHidden)||!1,strategy:r.strategy}),m=!!c;return"function"==typeof t?t({...o,placement:f,show:l,...!n&&l&&{className:"show"},popper:p,arrowProps:a,hasDoneInitialMeasure:m}):e.cloneElement(t,{...o,placement:f,arrowProps:a,popper:p,hasDoneInitialMeasure:m,className:da()(t.props.className,!n&&l&&"show"),style:{...t.props.style,...o.style}})}})}));Wl.displayName="Overlay";const Gl=Wl;function Hl(e,t,n){const[r]=t,o=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];a&&a===o||ta(o,a)||e(...t)}o().oneOf(["click","hover","focus"]);const Vl=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:a,defaultShow:i=!1,onToggle:l,delay:u,placement:s,flip:c=s&&-1!==s.indexOf("auto"),...d})=>{const f=(0,e.useRef)(null),p=sa(f,r.ref),m=aa(),h=(0,e.useRef)(""),[g,v]=(_=a,R=i,T=l,M=(0,e.useRef)(void 0!==_),A=(0,e.useState)(R),L=A[0],B=A[1],j=void 0!==_,F=M.current,M.current=j,!j&&F&&L!==R&&B(R),[j?_:L,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];T&&T.apply(void 0,[e].concat(n)),B(e)}),[T])]),b=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(u),{onFocus:y,onBlur:w,onClick:E}="function"!=typeof r?e.Children.only(r).props:{},x=(0,e.useCallback)((()=>{m.clear(),h.current="show",b.show?m.set((()=>{"show"===h.current&&v(!0)}),b.show):v(!0)}),[b.show,v,m]),k=(0,e.useCallback)((()=>{m.clear(),h.current="hide",b.hide?m.set((()=>{"hide"===h.current&&v(!1)}),b.hide):v(!1)}),[b.hide,v,m]),S=(0,e.useCallback)(((...e)=>{x(),null==y||y(...e)}),[x,y]),C=(0,e.useCallback)(((...e)=>{k(),null==w||w(...e)}),[k,w]),O=(0,e.useCallback)(((...e)=>{v(!g),null==E||E(...e)}),[E,v,g]),I=(0,e.useCallback)(((...e)=>{Hl(x,e,"fromElement")}),[x]),D=(0,e.useCallback)(((...e)=>{Hl(k,e,"toElement")}),[k]),P=null==t?[]:[].concat(t),N={ref:e=>{p(Bl(e))}};var _,R,T,M,A,L,B,j,F;return-1!==P.indexOf("click")&&(N.onClick=O),-1!==P.indexOf("focus")&&(N.onFocus=S,N.onBlur=C),-1!==P.indexOf("hover")&&(N.onMouseOver=I,N.onMouseOut=D),(0,el.jsxs)(el.Fragment,{children:["function"==typeof r?r(N):(0,e.cloneElement)(r,N),(0,el.jsx)(Gl,{...d,show:g,onHide:k,flip:c,placement:s,popperConfig:o,target:f.current,children:n})]})};function $l(e){return $l="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},$l(e)}function ql(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ql(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ql(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ql(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yl(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 Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yl(Object(n),!0).forEach((function(t){var r,o,a;r=e,o=t,a=n[t],(o=eu(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eu(r.key),r)}}function Zl(e,t,n){return t&&Xl(e.prototype,t),n&&Xl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eu(e){var t=function(e,t){if("object"!==$l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==$l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===$l(t)?t:String(t)}function tu(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nu(e,t)}function nu(e,t){return nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nu(e,t)}function ru(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=au(e);if(t){var o=au(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ou(e)}(this,n)}}function ou(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function au(e){return au=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},au(e)}var iu=function(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()};function lu(t){var n=t.id,r=t.tip;return e.createElement(Vl,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:e.createElement(yl,{id:n},r)},e.createElement("img",{src:"/images/shop/icon-reminder.svg",className:"options-icon"}))}var uu=function(t){tu(r,t);var n=ru(r);function r(e){var t;return Jl(this,r),(t=n.call(this,e)).state={variant:e.outvar in e.data?e.data[e.outvar]:e.variants[e.fallback?e.fallback:0]},t.handleClick=t.handleClick.bind(ou(t)),t.props.target.construct(t.props.outvar,t.state.variant),t}return Zl(r,[{key:"handleClick",value:function(e){this.setState(Kl(Kl({},this.state),{},{variant:e})),this.props.target.update(this.props.outvar,e)}},{key:"render",value:function(){var t=this,n=this.props.id+this.props.outvar;return e.createElement("div",{className:"shop-radio",key:this.props.id},e.createElement("div",{style:{display:"inline"}},this.props.icon&&e.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title),this.props.tip&&e.createElement(lu,{id:this.props.id+"tooltip",tip:this.props.tip}),this.props.variants.map((function(r,o){return e.createElement("div",{className:"form-check",key:n+r},e.createElement("input",{className:"form-check-input",type:"radio",name:n,id:n+r,checked:t.state.variant===r,onClick:function(){return t.handleClick(r)},onChange:function(){return t.handleClick(r)}}),e.createElement("label",{className:"form-check-label",htmlFor:n+r},r))})))}}]),r}(e.Component),su=function(t){tu(r,t);var n=ru(r);function r(e){var t;return Jl(this,r),(t=n.call(this,e)).state={checked:e.outvar in e.data?!!e.data[e.outvar]:!!e.fallback},t.handleClick=t.handleClick.bind(ou(t)),t.props.target.construct(t.props.outvar,t.state.checked),t}return Zl(r,[{key:"handleClick",value:function(){var e=!this.state.checked;this.setState({checked:e}),this.props.target.update(this.props.outvar,e)}},{key:"render",value:function(){var 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".concat(this.props.icon),className:"options-icon"}),this.props.title),this.props.tip&&e.createElement(lu,{id:this.props.id+"tooltip",tip:this.props.tip})))}}]),r}(e.Component),cu=function(t){tu(r,t);var n=ru(r);function r(e){var t;return Jl(this,r),(t=n.call(this,e)).state={text:e.outvar in e.data?e.data[e.outvar]:e.fallback?e.fallback:""},t.handleClick=t.handleClick.bind(ou(t)),t.props.target.construct(t.props.outvar,t.state.text),t}return Zl(r,[{key:"handleClick",value:function(e){var t=e.target.value;this.setState({text:t}),this.props.target.update(this.props.outvar,t)}},{key:"render",value:function(){var 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".concat(this.props.icon),className:"options-icon"}),this.props.title,":"),this.props.tip&&e.createElement(lu,{id:this.props.id+"tooltip",tip:this.props.tip}),e.createElement("input",{type:"text",className:"form-control form-control-sm",id:t,onChange:this.handleClick,value:this.state.text}))}}]),r}(e.Component),du=function(t){tu(r,t);var n=ru(r);function r(e){var t;return Jl(this,r),(t=n.call(this,e)).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},t.handleText=t.handleText.bind(ou(t)),t.handleCheck=t.handleCheck.bind(ou(t)),t.props.target.construct(t.props.outvar,t.state),t}return Zl(r,[{key:"handleText",value:function(e){var t=Kl(Kl({},this.state),{},{text:e.target.value});this.setState(t),this.props.target.update(this.props.outvar,t)}},{key:"handleCheck",value:function(){var e=Kl(Kl({},this.state),{},{checked:!this.state.checked});this.setState(e),this.props.target.update(this.props.outvar,e)}},{key:"render",value:function(){var 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".concat(this.props.icon),className:"options-icon"}),this.props.title),this.props.tip&&e.createElement(lu,{id:this.props.id+"tooltip",tip:this.props.tip})),e.createElement("input",{type:"text",className:"form-control form-control-sm",id:t+"line",onChange:this.handleText,value:this.state.text,disabled:!this.state.checked}))}}]),r}(e.Component),fu={Radio:function(t,n,r,o){var a=o.title,i=o.variants,l=o.outvar,u=o.fallback,s=o.icon,c=o.tip;return e.createElement(uu,{target:t,title:a,variants:i,outvar:l,icon:s,tip:c,key:n,fallback:u,id:n,data:r})},Switch:function(t,n,r,o){var a=o.title,i=o.fallback,l=o.outvar,u=o.icon,s=o.tip;return e.createElement(su,{target:t,title:a,fallback:i,outvar:l,icon:u,tip:s,key:n,id:n,data:r})},Line:function(t,n,r,o){var a=o.title,i=o.fallback,l=o.outvar,u=o.icon,s=o.tip;return e.createElement(cu,{target:t,title:a,fallback:i,outvar:l,icon:u,tip:s,key:n,id:n,data:r})},SwitchLine:function(t,n,r,o){var a=o.title,i=o.fallback,l=o.outvar,u=o.icon,s=o.tip;return e.createElement(du,{target:t,title:a,fallback:i,outvar:l,icon:u,tip:s,key:n,id:n,data:r})},Default:function(t,n){return e.createElement("div",{key:t+n,style:{background:"red"}},"UNIMPLEMENTED")}};function pu(t){var n=t.options,r=t.data,o=t.target,a=t.id,i=iu(n);return"array"===i?Array.from(n.map((function(e,t){return pu({options:e,data:r,target:o,id:a+t})}))):"object"===i?"string"!==iu(n.type)||"object"!==iu(n.args)&&"array"!==iu(n.items)?pu({options:Zo().apply(n,r),data:r,target:o,id:a}):n.type in fu?fu[n.type](o,a+n.type,r,n.args):"Group"===n.type?e.createElement("div",{className:"border rounded",key:a+"group"},pu({options:Zo().apply(n.items,r),data:r,target:o,id:a})):fu.Default(n.type,a+"missing"):void 0}function mu(e,t){var n=iu(e),r={};return"array"===n?e.map((function(e,n){Object.assign(r,mu(e,t))})):"object"===n&&("string"!==iu(e.type)||"object"!==iu(e.args)&&"array"!==iu(e.items)?Object.assign(r,mu(Zo().apply(e,t),t)):e.type in fu?r[e.args.outvar]=t[e.args.outvar]:"Group"===e.type&&Object.assign(r,mu(Zo().apply(e.items,t),t))),r}function hu(t){var n=t.options,r=t.data,o=t.target,a=t.id,i=t.big,l=t.first,u=t.last,s=t.options_class,c=ql((0,e.useState)(!1),2),d=c[0],f=c[1],p=ea((function(e){"mousedown"===e.type&&f(!1)})),m="overlayVariant border rounded ".concat(i?"overlay-bigcard":"overlay-smallcard"," ").concat(!i&&l?"overlay-first":""," ").concat(!i&&u?"overlay-last":""," ").concat(s||"");return e.createElement("div",{ref:p},e.createElement("img",{className:"alert-info",src:d?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",onClick:function(e){f(!d)}}),e.createElement("div",{style:{display:d?"flex":"none"},className:m},e.createElement(pu,{options:n,data:r,key:"processed_options_"+a,id:"processed_options_"+a,target:o})))}function gu(t){var n=t.id,r=t.options,o=t.data,a=ql((0,e.useState)(!1),2),i=a[0],l=a[1],u=ql((0,e.useState)({x:0,y:0}),2),s=u[0],c=u[1],d=ql((0,e.useState)({w:0,h:0}),2),f=d[0],p=d[1],m=mu(r,o),h=function(){l(!1),document.removeEventListener("scroll",b,!0)},g=ea(h),v=function(){var e=document.getElementById(n+"img");if(e){var t=e.getBoundingClientRect(),r=(t.left+t.right)/2,o=(t.top+t.bottom)/2;r+f.w>window.innerWidth?c({x:r-f.w-20,y:o-f.h/2}):c({x:r-f.w/2,y:o-f.h-20})}else document.removeEventListener("scroll",b,!0)},b=function(e){e.target!==document.getElementById(n)&&h()};return(0,e.useEffect)((function(){if(i){var e=document.getElementById(n),t=e.offsetWidth,r=e.offsetHeight;p({w:t,h:r}),v()}}),[i]),(0,e.useEffect)((function(){i&&v()}),[i,f]),e.createElement("div",{ref:g},e.createElement("img",{className:"alert-info",src:i?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",id:n+"img",onClick:function(e){l(!i),i||document.addEventListener("scroll",b,!0)}}),e.createElement("div",{style:{display:i?"flex":"none",top:s.y,left:s.x},className:"overlayVariant card border rounded",id:n},e.createElement("div",{className:"card-body"},Array.from(Object.entries(m).filter((function(e,t){var n=ql(e,2),r=n[0];return n[1],"ext_data"!==r})).map((function(t,r){var o=ql(t,2),a=o[0],i=o[1];return e.createElement("p",{className:"card-text",key:n+a},e.createElement("i",null,a),": ",function(e){var t=iu(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)}(i))}))))))}var vu=["arrowProps","hasDoneInitialMeasure","show"],bu=["arrowProps","hasDoneInitialMeasure","show"];function yu(e){return yu="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},yu(e)}function wu(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eu.apply(this,arguments)}function xu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ku(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Au(r.key),r)}}function Su(e,t,n){return t&&ku(e.prototype,t),n&&ku(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cu(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ou(e,t)}function Ou(e,t){return Ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ou(e,t)}function Iu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pu(e);if(t){var o=Pu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Du(e)}(this,n)}}function Du(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pu(e){return Pu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pu(e)}function Nu(e,t){if(e){if("string"==typeof e)return _u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_u(e,t):void 0}}function _u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ru(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 Tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ru(Object(n),!0).forEach((function(t){Mu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ru(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mu(e,t,n){return(t=Au(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Au(e){var t=function(e,t){if("object"!==yu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==yu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===yu(t)?t:String(t)}var Lu=window.shop_data,Bu=Array.from(Lu.columns.backlog.categories.map((function(e){return e.itemIds})).flat()),ju=function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],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"),Tu(Tu({},e),i)):Tu(Tu({},e),i)},Fu=function(e,t){var n=t.isDraggingOver;return Tu(Tu({},e),{backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"})},zu=function(e){if(!e||!e.nbrCurrentSlot)return{};var t=100*e.nbrCurrentSlot/e.nbrSlotMax;return t>100&&(t=100),{width:"".concat(t,"%")}},Uu=function(e){if(!e||!e.nbrCurrentClock)return{};var t=100*e.nbrCurrentClock/e.nbrClockMax;return t>100&&(t=100),{width:"".concat(t,"%")}},Wu=function(e,t,n,r,o){var a,i=Array.from(n.items);return i.splice.apply(i,[o.index,0].concat(function(e){if(Array.isArray(e))return _u(e)}(a=r.map((function(t,n){return Tu(Tu({},e[t]),{},{id:Jo()})})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||Nu(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),i},Gu=function(e,t,n){var r,o,a=Array.from(e),i=(r=a.splice(t,1),o=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(r,o)||Nu(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return a.splice(n,0,i),a},Hu=function(e,t){var n=Array.from(e);return n.splice(t,1),n},Vu=function(e){return e.reduce((function(e,t){return e+(8===t.hp?2:1)}),0)};function $u(e){var 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;var o=e<0?"-":"",a=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),i=a.length>3?a.length%3:0;return o+(i?a.substr(0,i)+r:"")+a.substr(i).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-a).toFixed(t).slice(2):"")}catch(t){return e}}var qu=function(t){Cu(r,t);var n=Iu(r);function r(e){var t;xu(this,r),(t=n.call(this,e)).state={customconf:"",error:null},t.handleCustomConfig=t.handleCustomConfig.bind(Du(t)),t.handleClickLoad=t.handleClickLoad.bind(Du(t)),t.checkValidation=t.checkValidation.bind(Du(t));var o=Object.keys(e.items);return t.list_pn=o.map((function(t){return e.items[t].name_number})),t}return Su(r,[{key:"handleCustomConfig",value:function(e){var t=e.target.value;this.checkValidation(t)}},{key:"checkValidation",value:function(e){var t;try{t=JSON.parse(e)}catch(t){return this.setState(Tu(Tu({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}))}if(!t)return this.setState(Tu(Tu({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if(!(t.items&&t.type||"[object Array]"===Object.prototype.toString.call(t.items)&&"[object String]"===Object.prototype.toString.call(t.type)))return this.setState(Tu(Tu({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if("desktop"!==t.type&&"rack"!==t.type)return this.setState(Tu(Tu({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if(t.items.map((function(e){try{return JSON.parse(e)}catch(e){return null}})),t.items=t.items.filter((function(e){return e})),t.items.filter((function(e){return"[object Object]"!==Object.prototype.toString.call(e)||!e.pn||"[object String]"!==Object.prototype.toString.call(e.pn)})).length>0)return this.setState(Tu(Tu({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));t.items=t.items.map((function(e){return{pn:e.pn,options:e.options?e.options:null}}));var n=this,r=t.items.filter((function(e){return!1===n.list_pn.includes(e.pn)})).map((function(e){return e.pn}));if(r.length>0)return this.setState(Tu(Tu({},this.state),{},{customconf:e,customconf_ready:null,error:"".concat(r.join(", ")," unknown").concat(r.length>1?"s":""," pn number")}));this.setState(Tu(Tu({},this.state),{},{customconf:e,error:null,customconf_ready:t}))}},{key:"handleClickLoad",value:function(){this.checkValidation(this.state.customconf),this.props.onClickLoadCustomConf&&this.props.onClickLoadCustomConf(this.state.customconf_ready)}},{key:"render",value:function(){var t=this.props,n=t.aside,r=t.main,o=t.mobileSideMenuShouldOpen,a=t.isMobile,i=t.newCardJustAdded,l=t.onClickToggleMobileSideMenu,u=t.onClickCloseRFQFeedback,s=t.showRFQFeedback,c=t.RFQBodyType,d=t.RFQBodyOrder;return e.createElement("div",{className:"layout"},e.createElement("aside",{className:"aside "+(o?"menu-opened":"")},n),o?e.createElement("section",{className:"main",onClick:l},r):e.createElement("section",{className:"main"},r),a&&i?e.createElement("div",{className:"feedback-add-success"},"✓ added"):null,e.createElement("div",{className:"modal fade ".concat(s?"show":""),style:{display:s?"block":"none"},id:"exampleModal",tabIndex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},e.createElement("div",{className:"modal-dialog",role:"document"},e.createElement("div",{className:"modal-content"},e.createElement("div",{className:"modal-body rfqFeedback"},e.createElement("div",{className:"d-flex w-100"},"email"===c?e.createElement("div",{className:"d-flex"},e.createElement("div",null,e.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"})),e.createElement("div",{style:{padding:"0 .5em"}},"We've received your request and will be in contact soon.")):null,"show"===c?e.createElement("p",null,d):null,"import"===c?e.createElement("div",{className:"w-100"},e.createElement("form",{className:"w-100"},e.createElement("div",{className:"mb-3"},e.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.createElement("br",null),JSON.stringify({items:[{pn:"1124"},{pn:"2118"},{pn:"2118"},{pn:"2128"}],type:"desktop"}))),e.createElement("div",{className:"mb-3 w-100"},e.createElement("textarea",{onChange:this.handleCustomConfig,value:this.state.customconf,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),this.state.error?e.createElement("div",{className:"mb-3"},e.createElement("p",{className:"text-danger"},this.state.error)):null),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.createElement("a",{type:"button",onClick:u,className:"btn btn-sm btn-outline-primary m-0 mb-2 mb-sm-0 me-sm-2"},"Close"),e.createElement("a",{type:"button",onClick:this.handleClickLoad,className:"btn btn-sm btn-primary m-0 ms-sm-2 ".concat(this.state.error?"disabled":"")},"Load configuration"))):null,e.createElement("div",null,e.createElement("button",{onClick:u},e.createElement("img",{src:"/images/shop/icon-close.svg",alt:"close"})))))))),e.createElement("div",{onClick:u,className:"modal-backdrop fade ".concat(s?"show":""),style:{display:s?"initial":"none"}}))}}],[{key:"propTypes",get:function(){return{aside:o().any,main:o().any,mobileSideMenuShouldOpen:o().bool,isMobile:o().bool,newCardJustAdded:o().bool,onClickToggleMobileSideMenu:o().func,onClickCloseRFQFeedback:o().func,RFQBodyType:o().string,RFQBodyOrder:o().string,onClickLoadCustomConf:o().func,items:o().object}}},{key:"defaultProps",get:function(){return{mobileSideMenuShouldOpen:!1}}}]),r}(e.PureComponent),Qu=function(t){Cu(r,t);var n=Iu(r);function r(e){var t;return xu(this,r),(t=n.call(this,e)).handleOnClickAddItem=t.handleOnClickAddItem.bind(Du(t)),t}return Su(r,[{key:"handleOnClickAddItem",value:function(e,t,n){this.props.onClickAddItem&&this.props.onClickAddItem(e,t),n.preventDefault()}},{key:"render",value:function(){var t=this.props,n=t.id,r=t.index,o=t.name,a=t.name_codename,i=t.price,l=t.currency,u=t.image,s=t.specs,c=t.datasheet_file,d=t.datasheet_name,f=s&&s.length>0&&e.createElement("ul",null,s.map((function(t,n){return e.createElement("li",{key:n},t)}))),p=c&&d&&e.createElement("div",{className:"ds"},e.createElement("span",{className:"doc-icon"}),e.createElement("a",{href:c,target:"_blank",rel:"noopener noreferrer"},d));return e.createElement("section",{className:"productItem"},e.createElement("div",{className:"content"},e.createElement("h3",{style:{marginBottom:a?"5px":"20px"}},o),a?e.createElement("p",null,a):null,e.createElement("div",{className:"price"},"".concat(l," ").concat($u(i))),f,p),e.createElement("div",{className:"content"},e.createElement("button",{onClick:this.handleOnClickAddItem.bind(this,r,!0)},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"})),e.createElement(Uo,{draggableId:n,index:r},(function(t,n){return e.createElement(e.Fragment,null,e.createElement("img",Eu({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:ju(t.draggableProps.style,n,!0),src:u})),n.isDragging&&e.createElement("img",{className:"simclone",src:u}))}))))}}],[{key:"propTypes",get:function(){return{id:o().string.isRequired,index:o().number.isRequired,name:o().string.isRequired,name_codename:o().string,price:o().number.isRequired,currency:o().string.isRequired,image:o().string.isRequired,specs:o().array,datasheet_file:o().string,datasheet_name:o().string,onClickAddItem:o().func}}}]),r}(e.PureComponent),Yu=function(t){Cu(r,t);var n=Iu(r);function r(e){var t;return xu(this,r),(t=n.call(this,e)).handleOnMouseEnterRemoveItem=t.handleOnMouseEnterRemoveItem.bind(Du(t)),t.handleOnMouseLeaveRemoveItem=t.handleOnMouseLeaveRemoveItem.bind(Du(t)),t.handleOnClickRemoveItem=t.handleOnClickRemoveItem.bind(Du(t)),t.handleOnClickItem=t.handleOnClickItem.bind(Du(t)),t}return Su(r,[{key:"handleOnMouseEnterRemoveItem",value:function(e,t){this.props.onToggleOverlayRemove&&!this.props.isMobile&&this.props.onToggleOverlayRemove(e,!0),t.preventDefault()}},{key:"handleOnMouseLeaveRemoveItem",value:function(e,t){this.props.onToggleOverlayRemove&&!this.props.isMobile&&this.props.onToggleOverlayRemove(e,!1),t.preventDefault()}},{key:"handleOnClickItem",value:function(e,t){this.props.onClickItem&&this.props.isTouch&&this.props.onClickItem(e),t.preventDefault()}},{key:"handleOnClickRemoveItem",value:function(e,t){this.props.onClickRemoveItem&&this.props.onClickRemoveItem(e)}},{key:"render",value:function(){var t,n,r,o,a=this,i=this.props,l=i.hovered,u=i.model,s=i.data,c=i.index,d=i.first,f=i.last,p=i.ext_data,m=i.onCardUpdate;if(s&&s.warnings){var h=Object.keys(s.warnings);h&&h.length>0&&(t=s.warnings[h[0]])}if(s&&s.options&&(n=s.options,s.options_data||(s.options_data={}),(r=s.options_data).ext_data=p),s)switch(u.type){case"kasli":o=[e.createElement("p",{key:u.type+u.id+"EEM"},"".concat(s.nbrCurrentSlot,"/").concat(u.nbrSlotMax," EEM connectors used")),e.createElement("p",{key:u.type+u.id+"CLK"},"".concat(s.nbrCurrentClock,"/").concat(u.nbrClockMax," Clock connectors used"))];break;case"vhdcicarrier":o=e.createElement("p",null,"".concat(s.nbrCurrentSlot,"/").concat(u.nbrSlotMax," EEM connectors used"));break;case"zotino":case"hd68":o=e.createElement("p",null,"".concat(s.nbrCurrentSlot,"/").concat(u.nbrSlotMax," connectors used"));break;case"clocker":o=e.createElement("p",null,"".concat(s.nbrCurrentClock,"/").concat(u.nbrClockMax," Clock connectors used"))}return e.createElement(Uo,{draggableId:u.id,index:c},(function(i,p){return e.createElement("div",Eu({ref:i.innerRef},i.draggableProps,i.dragHandleProps,{style:Tu({},ju(i.draggableProps.style,p,!0,!!l,!!u.selected,!0)),onMouseEnter:a.handleOnMouseEnterRemoveItem.bind(a,c),onMouseLeave:a.handleOnMouseLeaveRemoveItem.bind(a,c)}),e.createElement("div",{className:"progress-container warning d-flex justify-content-evenly"},t&&e.createElement(Vl,{placement:"bottom",trigger:["click","hover","focus"],overlay:function(n){n.arrowProps,n.hasDoneInitialMeasure,n.show;var r=wu(n,vu);return e.createElement("div",Eu({className:"k-popup-warning"},r),e.createElement("p",{className:"rule warning"},e.createElement("i",null,t.message)))},rootClose:!0},e.createElement("img",{className:"alert-warning",src:"/images".concat(t.icon)})),n&&e.createElement(hu,{options:n,data:r,options_class:u.options_class,key:"popover"+c,id:"popover"+c,big:"big"===u.size,first:d,last:f,target:{construct:function(e,t){r[e]=t},update:function(e,t){e in r&&(r[e]=t),m()}}})),e.createElement("h6",null,u.name_number),e.createElement("div",{onMouseEnter:a.handleOnMouseEnterRemoveItem.bind(a,c),onClick:a.handleOnClickItem.bind(a,c)},e.createElement("img",{className:"item-cart",src:"/images".concat(u.image)})),e.createElement("div",{style:{display:u.showOverlayRemove?"flex":"none"},className:"overlayRemove",onClick:a.handleOnClickRemoveItem.bind(a,c)},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.createElement("p",null,"Remove")),o&&e.createElement(Vl,{placement:"top",trigger:["click","hover","focus"],overlay:function(t){t.arrowProps,t.hasDoneInitialMeasure,t.show;var n=wu(t,bu);return e.createElement("div",Eu({className:"k-popup-connectors"},n),o)},rootClose:!0},e.createElement("div",{className:"progress-container"},u.nbrSlotMax>0&&e.createElement("div",{className:"nbr-connectors"},e.createElement("div",{style:Tu({},zu(s))})),u.nbrClockMax>0&&e.createElement("div",{className:"nbr-clocks"},e.createElement("div",{style:Tu({},Uu(s))})))))}))}}],[{key:"propTypes",get:function(){return{isMobile:o().bool,isTouch:o().bool,hovered:o().bool,first:o().bool,last:o().bool,index:o().number.isRequired,model:o().object.isRequired,data:o().object,ext_data:o().object,onToggleOverlayRemove:o().func,onClickRemoveItem:o().func,onClickItem:o().func,onCardUpdate:o().func}}},{key:"defaultProps",get:function(){return{hovered:!1}}}]),r}(e.PureComponent),Ku=function(t){Cu(r,t);var n=Iu(r);function r(){return xu(this,r),n.apply(this,arguments)}return Su(r,[{key:"render",value:function(){for(var t=this.props,n=t.isDraggingOver,r=t.nbrSlots,o=t.items,a=[],i=r-Vu(o);i>0;i--)a.push(e.createElement("div",{key:i,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.createElement(e.Fragment,null,a)}}],[{key:"propTypes",get:function(){return{isDraggingOver:o().bool,nbrSlots:o().number.isRequired,items:o().array.isRequired}}}]),r}(e.PureComponent),Ju=function(t){Cu(r,t);var n=Iu(r);function r(){return xu(this,r),n.apply(this,arguments)}return Su(r,[{key:"render",value:function(){var t=this.props,n=t.isMobile,r=t.isTouch,o=t.nbrSlots,a=t.itemHovered,i=t.data,l=t.onToggleOverlayRemove,u=t.onClickRemoveItem,s=t.onClickItem,c=t.onCardUpdate,d=Vu(i.items),f=i.items.map((function(t,f){var p,m=function(e,t){return{has_other_dio:e.filter((function(e,n){return t!==n&&e.name&&e.name.endsWith("-TTL")})).length>0,has_dds:e.filter((function(e,t){return!("DDS"!==e.name||"4410"!==e.name_number||e.options_data&&e.options_data.mono_eem)})).length>0,has_sampler:e.filter((function(e,t){return!("Sampler"!==e.name||e.options_data&&e.options_data.mono_eem)})).length>0}}(i.itemsData,f);return i.itemsData&&f in i.itemsData&&(p=i.itemsData[f]),e.createElement(Yu,{isMobile:n,isTouch:r,hovered:t.id===a,key:t.id,id:t.id,index:f,first:0===f,last:f===i.items.length-1&&d>=o,data:p,ext_data:m,onToggleOverlayRemove:l,onClickRemoveItem:u,onCardUpdate:c,onClickItem:s,model:t})}));return e.createElement(Vo,{droppableId:i.id,direction:"horizontal"},(function(t,n){return e.createElement("div",Eu({ref:t.innerRef},t.droppableProps,{style:Fu(t.droppableProps.style,n),className:"items-cart-list"}),f,t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder),e.createElement(Ku,{nbrSlots:o,items:i.items,isDraggingOver:n.isDraggingOver}))}))}}],[{key:"propTypes",get:function(){return{isMobile:o().bool,isTouch:o().bool,nbrSlots:o().number,itemHovered:o().string,data:o().object.isRequired,onToggleOverlayRemove:o().func,onClickRemoveItem:o().func,onCardUpdate:o().func,onClickItem:o().func}}}]),r}(e.PureComponent),Xu=function(t){Cu(r,t);var n=Iu(r);function r(e){var t;return xu(this,r),(t=n.call(this,e)).handleOnClickMode=t.handleOnClickMode.bind(Du(t)),t}return Su(r,[{key:"handleOnClickMode",value:function(e,t){this.props.onClickMode&&this.props.onClickMode(e),t.preventDefault()}},{key:"render",value:function(){var t=this,n=this.props,r=n.mode,o=n.items;return e.createElement("div",{className:"crate-mode"},o.map((function(n){return e.createElement("a",{key:n.id,className:r==n.id?"active":"",onClick:t.handleOnClickMode.bind(t,n.id),href:"#",role:"button"},n.name)})))}}],[{key:"propTypes",get:function(){return{items:o().array.isRequired,mode:o().string.isRequired,onClickMode:o().func}}}]),r}(e.PureComponent),Zu=function(t){Cu(r,t);var n=Iu(r);function r(){return xu(this,r),n.apply(this,arguments)}return Su(r,[{key:"render",value:function(){var t=this.props,n=t.rules,r=t.cart;return e.createElement("div",{className:"crate"},e.createElement("div",{className:"crate-products"},r,n&&n.length>0&&e.createElement("div",{className:"crate-info"},n.map((function(t,n){return e.createElement("p",{key:n,className:"rule",style:{color:t.color?t.color:"inherit"}},e.createElement("img",{src:"/images".concat(t.icon)})," ",e.createElement("i",null,e.createElement("strong",null,t.name,":")," ",t.message))})))))}}],[{key:"propTypes",get:function(){return{rules:o().array,cart:o().element}}}]),r}(e.PureComponent),es=function(t){Cu(r,t);var n=Iu(r);function r(){return xu(this,r),n.apply(this,arguments)}return Su(r,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.description,o=t.crateMode,a=t.crate,i=t.summaryPrice,l=t.form,u=t.isMobile,s=t.onClickToggleMobileSideMenu,c=t.onClickOpenImport;return e.createElement("section",{className:"panel"},e.createElement("h2",null,n),e.createElement("div",{className:"control"},e.createElement("p",{className:"description"},r),o),e.createElement("div",null,e.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:c},"Import JSON")),u?e.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.createElement("button",{onClick:s},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,a,e.createElement("section",{className:"summary"},i,l))}}],[{key:"propTypes",get:function(){return{title:o().string,description:o().string,crateMode:o().element,crate:o().element,summaryPrice:o().element,form:o().element,isMobile:o().bool,onClickToggleMobileSideMenu:o().func,onClickOpenImport:o().func}}}]),r}(e.PureComponent),ts=function(t){Cu(r,t);var n=Iu(r);function r(e){var t;return xu(this,r),(t=n.call(this,e)).state={note:"",email:"",error:{note:null,email:null},empty:{note:null,email:null}},t.handleEmail=t.handleEmail.bind(Du(t)),t.handleNote=t.handleNote.bind(Du(t)),t.handleSubmit=t.handleSubmit.bind(Du(t)),t.resetEmptyError=t.resetEmptyError.bind(Du(t)),t.checkValidation=t.checkValidation.bind(Du(t)),t}return Su(r,[{key:"checkValidation",value:function(){var e=Tu({},this.state),t=this.validateEmail(this.state.email),n=t.isEmpty,r=t.isError;return e=Tu(Tu({},e),{},{error:Tu(Tu({},this.state.error),{},{email:r}),empty:Tu(Tu({},this.state.empty),{},{email:n})}),this.setState(e),!n&&!r}},{key:"validateEmail",value:function(e){var t=null,n=null;return this.props.t,e&&""!==e.trim()?e&&!e.match(/^\w+([\+\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)&&(n={message:"Your email is incomplete"}):t=!0,{isEmpty:t,isError:n}}},{key:"validateNote",value:function(e){var t=null;return e&&""!==e.trim()||(t=!0),{isEmpty:t}}},{key:"resetEmptyError",value:function(e){this.setState(Tu(Tu({},this.state),{},{error:Tu(Tu({},this.state.error),{},Mu({},e,null)),empty:Tu(Tu({},this.state.empty),{},Mu({},e,null))}))}},{key:"handleEmail",value:function(e){var t=e.target.value,n=this.validateEmail(t),r=n.isEmpty,o=n.isError;this.setState(Tu(Tu({},this.state),{},{email:t,error:Tu(Tu({},this.state.error),{},{email:o}),empty:Tu(Tu({},this.state.empty),{},{email:r})}))}},{key:"handleNote",value:function(e){var t=e.target.value;this.setState(Tu(Tu({},this.state),{},{note:t}))}},{key:"handleSubmit",value:function(e){if(e.preventDefault(),this.props.onClickSubmit){if(!this.checkValidation())return!1;this.props.onClickSubmit(this.state.note,this.state.email)}}},{key:"render",value:function(){var t=this.handleEmail,n=this.handleNote,r=this.resetEmptyError,o=this.handleSubmit,a=this.props.onClickShow,i=this.state,l=i.email,u=i.note,s=i.error,c=i.empty,d=this.props,f=d.isProcessing;return d.isProcessingComplete,e.createElement("div",{className:"summary-form"},e.createElement("form",{onSubmit:o,noValidate:!0},e.createElement("input",{className:"".concat(s&&s.email?"errorField":""),type:"email",placeholder:"Email",onFocus:function(){return r("email")},onChange:t,onBlur:t,value:l}),c&&c.email?e.createElement("div",{className:"error"},e.createElement("small",null,"Required")):null,s&&s.email?e.createElement("div",{className:"error"},e.createElement("small",null,"Your email is incomplete")):null,e.createElement("textarea",{onChange:n,defaultValue:u,rows:"5",placeholder:"Additional notes"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},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:a,readOnly:!0}),e.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2",type:"submit",value:"".concat(f?"Processing ...":"Request quote")}))))}}],[{key:"propTypes",get:function(){return{isProcessing:o().bool,isProcessingComplete:o().bool,onClickSubmit:o().func}}}]),r}(e.PureComponent),ns=function(t){Cu(r,t);var n=Iu(r);function r(e){var t;return xu(this,r),(t=n.call(this,e)).handleOnDeleteItem=t.handleOnDeleteItem.bind(Du(t)),t.handleOnDeleteAllItems=t.handleOnDeleteAllItems.bind(Du(t)),t.handleOnMouseEnterItem=t.handleOnMouseEnterItem.bind(Du(t)),t.handleOnMouseLeaveItem=t.handleOnMouseLeaveItem.bind(Du(t)),t.handleOnClickSelectItem=t.handleOnClickSelectItem.bind(Du(t)),t}return Su(r,[{key:"handleOnDeleteItem",value:function(e,t){this.props.onDeleteItem&&this.props.onDeleteItem(e),t.preventDefault()}},{key:"handleOnDeleteAllItems",value:function(e){this.props.onDeleteAllItems&&this.props.onDeleteAllItems(),e.preventDefault()}},{key:"handleOnMouseEnterItem",value:function(e,t){this.props.onMouseEnterItem&&this.props.onMouseEnterItem(e),t.preventDefault()}},{key:"handleOnMouseLeaveItem",value:function(e){this.props.onMouseLeaveItem&&this.props.onMouseLeaveItem(),e.preventDefault()}},{key:"handleOnClickSelectItem",value:function(e,t){return"IMG"!==t.target.tagName&&this.props.onClickSelectItem&&this.props.onClickSelectItem(e),t.preventDefault()}},{key:"render",value:function(){var t=this,n=this.props,r=n.currency,o=n.modes,a=n.currentMode,i=n.summary,l=n.itemsData,u=o.find((function(e){return e.id===a}));return e.createElement("div",{className:"summary-price"},e.createElement("table",null,e.createElement("thead",null,e.createElement("tr",null,e.createElement("td",{colSpan:"2",className:"summary-remove-all"},e.createElement("span",{className:"item-card-name"},"Remove all cards"),e.createElement("button",{onClick:this.handleOnDeleteAllItems},e.createElement("img",{src:"/images/shop/icon-remove.svg"})))),u&&e.createElement("tr",null,e.createElement("td",{className:"item-card-name"},u.name),e.createElement("td",{className:"price"},e.createElement("div",null,"".concat(r," ").concat($u(u.price)),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg"}))),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," ")))),e.createElement("tbody",null,i.map((function(n,o){var a,i,u,s;if(l[o]&&l[o].warnings){a=l[o];var c=Object.keys(a.warnings);c&&c.length>0&&(i=a.warnings[c[0]])}return u=l[o]&&l[o].options,s=l[o]&&l[o].options_data,e.createElement("tr",{key:n.id,className:"hoverable ".concat(n.selected?"selected":""),onClick:t.handleOnClickSelectItem.bind(t,o),onMouseEnter:t.handleOnMouseEnterItem.bind(t,n.id),onMouseLeave:t.handleOnMouseLeaveItem},e.createElement("td",{className:"item-card-name"},e.createElement("div",null,"".concat(n.name_number," ").concat(n.name," ").concat(n.name_codename))),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex align-content-center"},"".concat(r," ").concat($u(n.price)),e.createElement("button",{onClick:t.handleOnDeleteItem.bind(t,o)},e.createElement("img",{src:"/images/shop/icon-remove.svg"})),e.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline-flex align-content-center align-self-center justify-content-evenly"},i?e.createElement("img",{className:"alert-warning align-self-start",src:"/images/".concat(i.icon)}):e.createElement("span",{style:{display:"inline-block",width:"20px"}}," "),u&&s?e.createElement(gu,{id:n.id+"options",options:u,data:s}):e.createElement("span",{style:{display:"inline-block",width:"20px"}}," ")))))}))),e.createElement("tfoot",null,e.createElement("tr",null,e.createElement("td",{className:"item-card-name"},"Price estimate"),e.createElement("td",{className:"price"},e.createElement("div",null,i.length?"".concat(r," ").concat($u(i.reduce((function(e,t){return e+t.price}),0)+u.price)):"".concat(r," ").concat($u(u.price)),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"icon remove"}))),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," "))))))}}],[{key:"propTypes",get:function(){return{currency:o().string,modes:o().array,currentMode:o().string,summary:o().array,itemsData:o().array,onDeleteItem:o().func,onDeleteAllItems:o().func,onMouseEnterItem:o().func,onMouseLeaveItem:o().func,onClickSelectItem:o().func}}}]),r}(e.PureComponent),rs=function(t){Cu(r,t);var n=Iu(r);function r(){return xu(this,r),n.apply(this,arguments)}return Su(r,[{key:"render",value:function(){var t=this.props,n=t.currency,r=t.data,o=t.items,a=t.onClickAddItem,i=t.onClickToggleMobileSideMenu,l=t.isMobile,u=r.categories.map((function(e){return{name:e.name,items:e.itemIds.map((function(e){return o[e]}))}})),s=-1,c=u.map((function(t,r){return e.createElement("div",{className:"accordion-item",key:"".concat(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".concat(r),"aria-expanded":"true","aria-controls":"collapse".concat(r)},t.name)),e.createElement("div",{id:"collapse".concat(r),className:"accordion-collapse collapse","aria-labelledby":"headingOne","data-bs-parent":"#accordion_categories"},e.createElement("div",{className:"accordion-body"},t.items.map((function(t){return s++,e.createElement(Qu,{key:t.id,id:Jo(),index:s,name:"".concat(t.name_number," ").concat(t.name),name_codename:t.name_codename,price:t.price,currency:n,image:"/images/".concat(t.image),specs:t.specs,datasheet_file:t.datasheet_file,datasheet_name:t.datasheet_name,onClickAddItem:a})})))))}));return e.createElement(Vo,{droppableId:r.id,isDropDisabled:!0},(function(t){return e.createElement("div",Eu({className:"backlog-container",ref:t.innerRef},t.droppableProps),l?e.createElement("div",{className:"mobileCloseMenu"},e.createElement("button",{onClick:i},e.createElement("img",{src:"/images/shop/icon-close-white.svg",alt:"add"}))):null,e.createElement("div",{className:"accordion accordion-flush",id:"accordion_categories"},c),t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder))}))}}],[{key:"propTypes",get:function(){return{currency:o().string,data:o().object.isRequired,items:o().object,isMobile:o().bool,onClickAddItem:o().func,onClickToggleMobileSideMenu:o().func}}},{key:"defaultProps",get:function(){return{items:{}}}}]),r}(e.PureComponent),os=function(t){Cu(r,t);var n=Iu(r);function r(e){var t;return xu(this,r),(t=n.call(this,e)).state=t.props.data,t.handleCrateModeChange=t.handleCrateModeChange.bind(Du(t)),t.handleOnDragEnd=t.handleOnDragEnd.bind(Du(t)),t.handleDeleteItem=t.handleDeleteItem.bind(Du(t)),t.handleDeleteAllItems=t.handleDeleteAllItems.bind(Du(t)),t.handleMouseEnterItem=t.handleMouseEnterItem.bind(Du(t)),t.handleMouseLeaveItem=t.handleMouseLeaveItem.bind(Du(t)),t.handleClickAddItem=t.handleClickAddItem.bind(Du(t)),t.checkAlerts=t.checkAlerts.bind(Du(t)),t.handleClickSelectItem=t.handleClickSelectItem.bind(Du(t)),t.handleClickSubmit=t.handleClickSubmit.bind(Du(t)),t.handleToggleOverlayRemove=t.handleToggleOverlayRemove.bind(Du(t)),t.handleShowOverlayRemove=t.handleShowOverlayRemove.bind(Du(t)),t.handleClickToggleMobileSideMenu=t.handleClickToggleMobileSideMenu.bind(Du(t)),t.handleClickCloseRFQFeedback=t.handleClickCloseRFQFeedback.bind(Du(t)),t.handleClickShowOrder=t.handleClickShowOrder.bind(Du(t)),t.handleClickOpenImport=t.handleClickOpenImport.bind(Du(t)),t.handleLoadCustomConf=t.handleLoadCustomConf.bind(Du(t)),t.handleCardsUpdated=t.handleCardsUpdated.bind(Du(t)),t.timer=null,t.timer_remove=null,t}return Su(r,[{key:"componentDidMount",value:function(){var e={droppableId:"backlog",indexes:[Bu.findIndex((function(e){return"eem_pwr_mod"===e})),Bu.findIndex((function(e){return"kasli"===e}))]};this.handleOnDragEnd({source:e,destination:{droppableId:"cart",index:0}})}},{key:"componentDidUpdate",value:function(e,t){var n=this;t.columns.cart.items===this.state.columns.cart.items&&t.currentMode===this.state.currentMode||this.checkAlerts(this.state.columns.cart.items),this.state.newCardJustAdded&&(this.timer=setTimeout((function(){n.setState({newCardJustAdded:!1})}),2e3))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timer)}},{key:"handleCardsUpdated",value:function(){this.checkAlerts(this.state.columns.cart.items)}},{key:"handleCrateModeChange",value:function(e){this.setState({currentMode:e})}},{key:"handleDeleteItem",value:function(e){var t=Array.from(this.state.columns.cart.items),n=Array.from(this.state.columns.cart.itemsData);t.splice(e,1),n.splice(e,1),this.setState(Tu(Tu({},this.state),{},{columns:Tu(Tu({},this.state.columns),{},{cart:Tu(Tu({},this.state.columns.cart),{},{items:t,itemsData:n})})}))}},{key:"handleDeleteAllItems",value:function(){this.setState(Tu(Tu({},this.state),{},{columns:Tu(Tu({},this.state.columns),{},{cart:Tu(Tu({},this.state.columns.cart),{},{items:[],itemsData:[]})})}))}},{key:"handleMouseEnterItem",value:function(e){this.setState(Tu(Tu({},this.state),{},{currentItemHovered:e}))}},{key:"handleMouseLeaveItem",value:function(){this.setState(Tu(Tu({},this.state),{},{currentItemHovered:null}))}},{key:"handleClickAddItem",value:function(e,t){var n={droppableId:"backlog",index:e},r={droppableId:"cart",index:this.state.columns.cart.items.length};this.handleOnDragEnd({source:n,destination:r},t)}},{key:"handleClickSelectItem",value:function(e){var t=Array.from(this.state.columns.cart.items);this.setState(Tu(Tu({},this.state),{},{columns:Tu(Tu({},this.state.columns),{},{cart:Tu(Tu({},this.state.columns.cart),{},{items:t.map((function(t,n){return Tu(Tu({},t),{},{selected:n===e})}))})})}))}},{key:"handleToggleOverlayRemove",value:function(e,t){var n=Array.from(this.state.columns.cart.items);this.setState(Tu(Tu({},this.state),{},{columns:Tu(Tu({},this.state.columns),{},{cart:Tu(Tu({},this.state.columns.cart),{},{items:n.map((function(n,r){return Tu(Tu({},n),{},{showOverlayRemove:r===e&&t})}))})})}))}},{key:"handleShowOverlayRemove",value:function(e){var t=this;this.timer_remove&&clearTimeout(this.timer_remove),this.handleToggleOverlayRemove(e,!0),this.timer_remove=setTimeout((function(){t.handleToggleOverlayRemove(e,!1)}),2e3)}},{key:"handleClickShowOrder",value:function(){var e={items:[],type:this.state.currentMode},t=Array.from(this.state.columns.cart.items),n=Array.from(this.state.columns.cart.itemsData);for(var r in t){var o=t[r],a=n[r];e.items.push({pn:o.name_number,options:a.options_data&&a.options?mu(a.options,a.options_data):null})}this.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"show",RFQBodyOrder:JSON.stringify(e,null,2)})}},{key:"handleClickOpenImport",value:function(){this.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"import"})}},{key:"handleLoadCustomConf",value:function(e){if(e){var t=this.props.data.items,n=[],r=[];this.setState(Tu(Tu({},this.state),{},{columns:Tu(Tu({},this.state.columns),{},{cart:Tu(Tu({},this.state.columns.cart),{},{items:[]})})}),(function(){e.items.map((function(e){return Object.keys(t).map((function(o){e.pn&&e.pn===t[o].name_number&&(n.push(Object.assign(Tu({},t[o]),{id:Jo(),options_data:e.options?e.options:null})),r.push({options_data:e.options?e.options:null}))})),e})),this.setState(Tu(Tu({},this.state),{},{columns:Tu(Tu({},this.state.columns),{},{cart:Tu(Tu({},this.state.columns.cart),{},{items:n,itemsData:r})}),currentMode:e.type}))}))}}},{key:"handleClickSubmit",value:function(e,t){var n=this,r={items:[],type:this.state.currentMode},o=Array.from(this.state.columns.cart.items),a=Array.from(this.state.columns.cart.itemsData);for(var i in o){var l=o[i],u=a[i];r.items.push({pn:l.name_number,options:u.options_data&&u.options?mu(u.options,u.options_data):null})}var s=this.props.data;this.setState({isProcessing:!0}),fetch(s.API_RFQ,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,note:e,configuration:JSON.stringify(r)})}).then((function(e){if(200!==e.status)throw Error("Response status is not OK: "+e.status+".\n"+e);n.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"email",isProcessingComplete:!0})})).catch((function(e){console.error("Request failed, reason:",e),n.setState({isProcessing:!1},(function(){alert("We cannot receive your request. Try using the export by coping the configuration and send it to us at sales[at]m-labs.hk")}))}))}},{key:"handleOnDragEnd",value:function(e,t){var n=e.source,r=e.destination,o=[];if(n.indexes?n.indexes.forEach((function(e,t){o.push(Bu[e])})):n.index>=0&&o.push(Bu[n.index]),r)switch(n.droppableId){case"backlog":n.droppableId!==r.droppableId&&this.setState(Tu(Tu({},this.state),{},{newCardJustAdded:!!t,columns:Tu(Tu({},this.state.columns),{},Mu({},r.droppableId,Tu(Tu({},this.state.columns[r.droppableId]),{},{items:Wu(this.state.items,this.state.columns[n.droppableId],this.state.columns[r.droppableId],o,r)})))}));break;case r.droppableId:this.setState(Tu(Tu({},this.state),{},{newCardJustAdded:!1,columns:Tu(Tu({},this.state.columns),{},Mu({},r.droppableId,Tu(Tu({},this.state.columns[r.droppableId]),{},{items:Gu(this.state.columns[r.droppableId].items,n.index,r.index),itemsData:Gu(this.state.columns[r.droppableId].itemsData,n.index,r.index)})))}))}else"cart"===n.droppableId&&this.setState(Tu(Tu({},this.state),{},{newCardJustAdded:!1,columns:Tu(Tu({},this.state.columns),{},Mu({},n.droppableId,Tu(Tu({},this.state.columns[n.droppableId]),{},{items:Hu(this.state.columns[n.droppableId].items,n.index),itemsData:Hu(this.state.columns[n.droppableId].itemsData,n.index)})))}))}},{key:"handleClickToggleMobileSideMenu",value:function(){this.setState(Tu(Tu({},this.state),{},{mobileSideMenuShouldOpen:!this.state.mobileSideMenuShouldOpen}))}},{key:"handleClickCloseRFQFeedback",value:function(){this.setState({shouldShowRFQFeedback:!1})}},{key:"checkAlerts",value:function(e){var t=this;console.log("--- START CHECKING CRATE WARNING ---");var n=this.state,r=n.currentMode,o=n.crateModeSlots,a=n.crateRules,i=Array.from(e),l=[],u={};i.forEach((function(e,n){n in l||(l[n]=e),n in t.state.columns.cart.itemsData&&t.state.columns.cart.itemsData[n].options_data&&(i[n].options_data=t.state.columns.cart.itemsData[n].options_data),l[n].warnings={}}));var s=Vu(e);s>o[r]?u[a.maxSlot.type]=Tu({},a.maxSlot):21===o[r]&&s<=10&&(u[a.compactSlot.type]=Tu({},a.compactSlot));for(var c=i.reduce((function(e,t,n){return"kasli"!==t.type&&"vhdcicarrier"!==t.type||e.push(n),e}),[]),d=function(){var e,t,n,r=c[f];if(e=f!==c.length-1?i.slice(r+1,c[f+1]):i.slice(r+1),0==f){var o=i.slice(0,r).findIndex((function(e){return e.rules&&e.rules.resources}));-1!=o&&(o in l?("warnings"in l[o]||(l[o].warnings={}),l[o].warnings.resources=Tu({},i[o].rules.resources)):(l[o]=Tu({},i[o]),l[o].warnings={},l[o].warnings.resources=Tu({},i[o].rules.resources)))}if(t=e.filter((function(e){return"idc-bnc"!==e.type})).reduce((function(e,t){return e+((n=t).options_data&&!1!==n.options_data.ext_pwr&&!1!==n.options_data.mono_eem?!0===n.options_data.ext_pwr?0:!0===n.options_data.mono_eem||"1 EEM"===n.options_data.n_eem?1:"3 EEM"===n.options_data.n_eem?3:n.slotOccupied:n.slotOccupied);var n}),0),n=e.reduce((function(e,t){return"clocker"===t.type?e+(t.options_data&&!0===t.options_data.ext_clk?0:t.clockOccupied):e}),0),r in l?(l[r].nbrCurrentSlot=t,l[r].nbrCurrentClock=n,"warnings"in l[r]||(l[r].warnings={})):(l[r]=Tu({},i[r]),l[r].nbrCurrentSlot=t,l[r].nbrCurrentClock=n,l[r].warnings={}),t>i[r].nbrSlotMax&&(i[r].rules.maxSlot.message&&(u[i[r].rules.maxSlot.type]=Tu({},i[r].rules.maxSlot)),l[r].warnings.maxSlotWarning=Tu({},i[r].rules.maxSlotWarning)),n>i[r].nbrClockMax&&(u[i[r].rules.maxClock.type]=Tu({},i[r].rules.maxClock),l[r].warnings.maxClockWarning=Tu({},i[r].rules.maxClockWarning)),i.length>r+1){var a=i[r+1];"kasli"!==a.type&&"vhdcicarrier"!==a.type||(u[a.rules.follow.type]=Tu({},a.rules.follow))}},f=0;f<=c.length-1;f++)d();if(0===c.length){var p=i.slice(0).findIndex((function(e){return e.rules&&e.rules.resources}));-1!=p&&(p in l?("warnings"in l[p]||(l[p].warnings={}),l[p].warnings.resources=Tu({},i[p].rules.resources)):(l[p]=Tu({},i[p]),l[p].warnings={},l[p].warnings.resources=Tu({},i[p].rules.resources)))}for(var m=i.reduce((function(e,t,n){return"kasli"!==t.type&&"clocker"!==t.type||e.push(n),e}),[]),h=0;h<=m.length-1;h++){var g,v=m[h];g=(h!==m.length-1?i.slice(v+1,m[h+1]):i.slice(v+1)).reduce((function(e,t){return e+(t.options_data&&t.options_data.ext_clk&&t.options_data.ext_clk.checked?0:t.clockOccupied)}),0),v in l?l[v].nbrCurrentClock&&"clocker"!==l[v].type?l[v].nbrCurrentClock+=g:l[v].nbrCurrentClock=g:(l[v]=Tu({},i[v]),l[v].nbrCurrentClock=g,l[v].warnings={}),g>i[v].nbrClockMax&&(u[i[v].rules.maxClock.type]=Tu({},i[v].rules.maxClock),l[v].warnings.maxClockWarning=Tu({},i[v].rules.maxClockWarning))}i.find((function(e){return"urukul"===e.type}))&&this.state.items.urukul.rules.info&&(u[this.state.items.urukul.rules.info.type]=Tu({},this.state.items.urukul.rules.info));for(var b=i.reduce((function(e,t,n){return"idc-bnc"===t.type&&e.push(n),e}),[]),y=b.length-1;y>=0;y--){var w=b[y],E=!1;if(0==w)E=!0;else if(w>=1){var x=b[y]-1;"zotino"!==i[x].type&&"hd68"!==i[x].type&&"idc-bnc"!==i[x].type&&(E=!0)}E&&(l[w]=Tu({},i[w]),l[w].warnings={},l[w].warnings.wrong=Tu({},i[w].rules.wrong))}for(var k=i.reduce((function(e,t,n){return"zotino"!==t.type&&"hd68"!==t.type||e.push(n),e}),[]),S=function(){var e,t,n=k[C];e=C!==k.length-1?i.slice(n+1,k[C+1]):i.slice(n+1);var r=!1;if(t=e.reduce((function(e,t,n,o){return 0===n&&"idc-bnc"===t.type?e+1:"idc-bnc"===o[0].type&&n>0&&"idc-bnc"===o[n-1].type?("idc-bnc"!==t.type&&(r=!0),e+("idc-bnc"!==t.type||r?0:1)):e}),0),n in l?(l[n].nbrCurrentSlot=t,"warnings"in l[n]||(l[n].warnings={})):(l[n]=Tu({},i[n]),l[n].nbrCurrentSlot=t,l[n].warnings={}),t>0&&i[n].rules.maxSlot.message&&(u[i[n].rules.maxSlot.type]=Tu({},i[n].rules.maxSlot)),t>i[n].nbrSlotMax&&(l[n].warnings.maxSlotWarning=Tu({},i[n].rules.maxSlotWarning)),"hd68"===i[n].type){var o=!1;n<i.length-1?"idc-bnc"!==i[n+1].type&&(o=!0):n===i.length-1&&(o=!0),o&&(n in l||(l[n]=Tu({},i[n]),l[n].warnings={}),l[n].warnings.minAdapter=Tu({},i[n].rules.minAdapter))}},C=0;C<=k.length-1;C++)S();this.setState(Tu(Tu({},this.state),{},{columns:Tu(Tu({},this.state.columns),{},{cart:Tu(Tu({},this.state.columns.cart),{},{itemsData:l})}),rules:Tu({},u)}))}},{key:"render",value:function(){var t=this.state,n=t.currency,r=t.currentItemHovered,o=t.currentMode,a=t.crateModeSlots,i=t.crateModeItems,l=t.items,u=t.columns,s=t.rules,c=t.mobileSideMenuShouldOpen,d=t.newCardJustAdded,f=t.isProcessing,p=t.shouldShowRFQFeedback,m=t.RFQBodyType,h=t.RFQBodyOrder,g=t.isProcessingComplete,v=window.deviceIsMobile(),b=window.isTouchEnabled();return e.createElement(fo,{onDragEnd:this.handleOnDragEnd},e.createElement(qu,{showRFQFeedback:p,RFQBodyType:m,RFQBodyOrder:h,className:"shop",mobileSideMenuShouldOpen:c,isMobile:v,newCardJustAdded:d,onClickToggleMobileSideMenu:this.handleClickToggleMobileSideMenu,onClickCloseRFQFeedback:this.handleClickCloseRFQFeedback,onClickLoadCustomConf:this.handleLoadCustomConf,items:l,aside:e.createElement(rs,{currency:n,items:l,data:u.backlog,onClickAddItem:this.handleClickAddItem,onClickToggleMobileSideMenu:this.handleClickToggleMobileSideMenu,isMobile:v}),main:e.createElement(es,{onClickToggleMobileSideMenu:this.handleClickToggleMobileSideMenu,onClickOpenImport:this.handleClickOpenImport,isMobile:v,title:"Order hardware",description:" Drag and drop the cards you want into the crate below to see how the combination would look like. Setup card's configuration by tapping at the top of the card, most of the options can be modified after shipment. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at sales@m-****.hk. The price is estimated and must be confirmed by a quote.",crateMode:e.createElement(Xu,{items:i,mode:o,onClickMode:this.handleCrateModeChange}),crate:e.createElement(Zu,{cart:e.createElement(Ju,{nbrSlots:a[o],data:u.cart,isMobile:v,isTouch:b,itemHovered:r,onToggleOverlayRemove:this.handleToggleOverlayRemove,onClickRemoveItem:this.handleDeleteItem,onClickItem:this.handleShowOverlayRemove,onCardUpdate:this.handleCardsUpdated}),rules:Object.values(s).filter((function(e){return e}))}),summaryPrice:e.createElement(ns,{currency:n,currentMode:o,modes:i,summary:u.cart.items,itemsData:u.cart.itemsData,onMouseEnterItem:this.handleMouseEnterItem,onMouseLeaveItem:this.handleMouseLeaveItem,onDeleteItem:this.handleDeleteItem,onDeleteAllItems:this.handleDeleteAllItems,onClickSelectItem:this.handleClickSelectItem}),form:e.createElement(ts,{isProcessingComplete:g,processingComplete:this.handleProcessingComplete,isProcessing:f,onClickSubmit:this.handleClickSubmit,onClickShow:this.handleClickShowOrder})})}))}}],[{key:"propTypes",get:function(){return{data:o().object.isRequired}}}]),r}(e.PureComponent);(0,t.s)(document.querySelector("#root-shop")).render(e.createElement(os,{data:Lu}))})()})(); |