@pie-element/placement-ordering 13.0.0-next.42 → 13.1.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/module/element.js DELETED
@@ -1 +0,0 @@
1
- import{_dll_react_dom as e,_dll_react as t,_dll_prop_types as n,_dll_debug as r,_dll_mui__material_styles as o,_dll_pie_lib__render_ui as a,_dll_lodash as i,_dll_pie_lib__correct_answer_toggle as l}from"../../../@pie-lib/shared-module@^3.0.5/module/index.js";import{_dll_pie_lib__math_rendering as s}from"../../../@pie-lib/math-rendering-module@^4.0.5/module/index.js";import{_dll_pie_lib__drag as u}from"../../../@pie-lib/drag-module@^3.0.5/module/index.js";var c={exports:{}},d={},f=Symbol.for("react.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),k=Symbol.iterator;var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,L={};function N(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||C}function R(){}function _(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||C}N.prototype.isReactComponent={},N.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")},N.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},R.prototype=N.prototype;var P=_.prototype=new R;P.constructor=_,E(P,N.prototype),P.isPureReactComponent=!0;var O=Array.isArray,T=Object.prototype.hasOwnProperty,D={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!z.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:f,type:e,key:a,ref:i,props:o,_owner:D.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===f}var I=/\/+/g;function F(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 $(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case f:case p:i=!0}}if(i)return o=o(i=e),e=""===r?"."+F(i,0):r,O(o)?(n="",null!=e&&(n=e.replace(I,"$&/")+"/"),$(o,t,n,"",function(e){return e})):null!=o&&(M(o)&&(o=function(e,t){return{$$typeof:f,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(I,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",O(e))for(var l=0;l<e.length;l++){var s=r+F(a=e[l],l);i+=$(a,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=k&&e[k]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(a=e.next()).done;)i+=$(a=a.value,t,n,s=r+F(a,l++),o);else if("object"===a)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 i}function j(e,t,n){if(null==e)return e;var r=[],o=0;return $(e,r,"","",function(e){return t.call(n,e,o++)}),r}function U(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 V={current:null},B={transition:null},H={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:B,ReactCurrentOwner:D};function W(){throw Error("act(...) is not supported in production builds of React.")}d.Children={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!M(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},d.Component=N,d.Fragment=h,d.Profiler=m,d.PureComponent=_,d.StrictMode=g,d.Suspense=w,d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,d.act=W,d.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=E({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=D.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)T.call(t,s)&&!z.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:f,type:e.type,key:o,ref:a,props:r,_owner:i}},d.createContext=function(e){return(e={$$typeof:y,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:v,_context:e},e.Consumer=e},d.createElement=A,d.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},d.createRef=function(){return{current:null}},d.forwardRef=function(e){return{$$typeof:b,render:e}},d.isValidElement=M,d.lazy=function(e){return{$$typeof:S,_payload:{_status:-1,_result:e},_init:U}},d.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},d.startTransition=function(e){var t=B.transition;B.transition={};try{e()}finally{B.transition=t}},d.unstable_act=W,d.useCallback=function(e,t){return V.current.useCallback(e,t)},d.useContext=function(e){return V.current.useContext(e)},d.useDebugValue=function(){},d.useDeferredValue=function(e){return V.current.useDeferredValue(e)},d.useEffect=function(e,t){return V.current.useEffect(e,t)},d.useId=function(){return V.current.useId()},d.useImperativeHandle=function(e,t,n){return V.current.useImperativeHandle(e,t,n)},d.useInsertionEffect=function(e,t){return V.current.useInsertionEffect(e,t)},d.useLayoutEffect=function(e,t){return V.current.useLayoutEffect(e,t)},d.useMemo=function(e,t){return V.current.useMemo(e,t)},d.useReducer=function(e,t,n){return V.current.useReducer(e,t,n)},d.useRef=function(e){return V.current.useRef(e)},d.useState=function(e){return V.current.useState(e)},d.useSyncExternalStore=function(e,t,n){return V.current.useSyncExternalStore(e,t,n)},d.useTransition=function(){return V.current.useTransition()},d.version="18.3.1",c.exports=d;var K=c.exports;var Q,q=e;Q=q.createRoot,q.hydrateRoot;var Y={};Object.defineProperty(Y,"__esModule",{value:!0});class X extends CustomEvent{constructor(e,t,n){super(X.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e,hasModel:n}}),this.component=e,this.complete=t}}X.TYPE="model-set",Y.ModelSetEvent=X;class J extends CustomEvent{constructor(e,t){super(J.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e}}),this.component=e,this.complete=t}}J.TYPE="session-changed";var G=Y.SessionChangedEvent=J,Z={exports:{}},ee={},te={exports:{}},ne={};!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function n(e){return 0===e.length?null:e[0]}function r(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,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<a&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<a&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(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 a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],u=[],c=1,d=null,f=3,p=!1,h=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function w(e){if(g=!1,b(e),!h)if(null!==n(s))h=!0,T(x);else{var t=n(u);null!==t&&D(w,t.startTime-e)}}function x(t,o){h=!1,g&&(g=!1,v(E),E=-1),p=!0;var a=f;try{for(b(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!R());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var l=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),b(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var m=n(u);null!==m&&D(w,m.startTime-o),c=!1}return c}finally{d=null,f=a,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,C=null,E=-1,L=5,N=-1;function R(){return!(e.unstable_now()-N<L)}function _(){if(null!==C){var t=e.unstable_now();N=t;var n=!0;try{n=C(!0,t)}finally{n?S():(k=!1,C=null)}}else k=!1}if("function"==typeof y)S=function(){y(_)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,O=P.port2;P.port1.onmessage=_,S=function(){O.postMessage(null)}}else S=function(){m(_,0)};function T(e){C=e,k||(k=!0,S())}function D(t,n){E=m(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,T(x))},e.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"):L=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,r){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 r={id:c++,callback:o,priorityLevel:r,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(r.sortIndex=a,t(u,r),null===n(s)&&r===n(u)&&(g?(v(E),E=-1):g=!0,D(w,a-i))):(r.sortIndex=l,t(s,r),h||p||(h=!0,T(x))),r},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(ne),te.exports=ne;var re=t,oe=te.exports;function ae(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 ie=new Set,le={};function se(e,t){ue(e,t),ue(e+"Capture",t)}function ue(e,t){for(le[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var ce=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),de=Object.prototype.hasOwnProperty,fe=/^[: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]*$/,pe={},he={};function ge(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 me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new ge(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new ge(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new ge(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new ge(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){me[e]=new ge(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){me[e]=new ge(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){me[e]=new ge(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){me[e]=new ge(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){me[e]=new ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var ve=/[\-:]([a-z])/g;function ye(e){return e[1].toUpperCase()}function be(e,t,n,r){var o=me.hasOwnProperty(t)?me[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!!de.call(he,e)||!de.call(pe,e)&&(fe.test(e)?he[e]=!0:(pe[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(ve,ye);me[t]=new ge(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(ve,ye);me[t]=new ge(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(ve,ye);me[t]=new ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){me[e]=new ge(e,1,!1,e.toLowerCase(),null,!1,!1)}),me.xlinkHref=new ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){me[e]=new ge(e,1,!1,e.toLowerCase(),null,!0,!0)});var we=re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xe=Symbol.for("react.element"),Se=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),Ce=Symbol.for("react.strict_mode"),Ee=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),Ne=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),_e=Symbol.for("react.suspense"),Pe=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),De=Symbol.for("react.offscreen"),ze=Symbol.iterator;function Ae(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=ze&&e[ze]||e["@@iterator"])?e:null}var Me,Ie=Object.assign;function Fe(e){if(void 0===Me)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||""}return"\n"+Me+e}var $e=!1;function je(e,t){if(!e||$e)return"";$e=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{$e=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fe(e):""}function Ue(e){switch(e.tag){case 5:return Fe(e.type);case 16:return Fe("Lazy");case 13:return Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 2:case 15:return e=je(e.type,!1);case 11:return e=je(e.type.render,!1);case 1:return e=je(e.type,!0);default:return""}}function Ve(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 ke:return"Fragment";case Se:return"Portal";case Ee:return"Profiler";case Ce:return"StrictMode";case _e:return"Suspense";case Pe:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ne:return(e.displayName||"Context")+".Consumer";case Le:return(e._context.displayName||"Context")+".Provider";case Re:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Oe:return null!==(t=e.displayName||null)?t:Ve(e.type)||"Memo";case Te:t=e._payload,e=e._init;try{return Ve(e(t))}catch(e){}}return null}function Be(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 Ve(t);case 8:return t===Ce?"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 He(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function We(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ke(e){e._valueTracker||(e._valueTracker=function(e){var t=We(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 Qe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=We(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function qe(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 Ye(e,t){var n=t.checked;return Ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Xe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=He(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 Je(e,t){null!=(t=t.checked)&&be(e,"checked",t,!1)}function Ge(e,t){Je(e,t);var n=He(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")?et(e,t.type,n):t.hasOwnProperty("defaultValue")&&et(e,t.type,He(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ze(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 et(e,t,n){"number"===t&&qe(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tt=Array.isArray;function nt(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=""+He(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 rt(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(ae(91));return Ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ot(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(ae(92));if(tt(n)){if(1<n.length)throw Error(ae(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:He(n)}}function at(e,t){var n=He(t.value),r=He(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 it(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function lt(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 st(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?lt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ut,ct,dt=(ct=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ut=ut||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ut.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 ct(e,t)})}:ct);function ft(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 pt={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},ht=["Webkit","ms","Moz","O"];function gt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pt.hasOwnProperty(e)&&pt[e]?(""+t).trim():t+"px"}function mt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=gt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pt).forEach(function(e){ht.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pt[t]=pt[e]})});var vt=Ie({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 yt(e,t){if(t){if(vt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ae(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ae(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ae(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ae(62))}}function bt(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 wt=null;function xt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var St=null,kt=null,Ct=null;function Et(e){if(e=wa(e)){if("function"!=typeof St)throw Error(ae(280));var t=e.stateNode;t&&(t=Sa(t),St(e.stateNode,e.type,t))}}function Lt(e){kt?Ct?Ct.push(e):Ct=[e]:kt=e}function Nt(){if(kt){var e=kt,t=Ct;if(Ct=kt=null,Et(e),t)for(e=0;e<t.length;e++)Et(t[e])}}function Rt(e,t){return e(t)}function _t(){}var Pt=!1;function Ot(e,t,n){if(Pt)return e(t,n);Pt=!0;try{return Rt(e,t,n)}finally{Pt=!1,(null!==kt||null!==Ct)&&(_t(),Nt())}}function Tt(e,t){var n=e.stateNode;if(null===n)return null;var r=Sa(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(ae(231,t,typeof n));return n}var Dt=!1;if(ce)try{var zt={};Object.defineProperty(zt,"passive",{get:function(){Dt=!0}}),window.addEventListener("test",zt,zt),window.removeEventListener("test",zt,zt)}catch(ct){Dt=!1}function At(e,t,n,r,o,a,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Mt=!1,It=null,Ft=!1,$t=null,jt={onError:function(e){Mt=!0,It=e}};function Ut(e,t,n,r,o,a,i,l,s){Mt=!1,It=null,At.apply(jt,arguments)}function Vt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Bt(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 Ht(e){if(Vt(e)!==e)throw Error(ae(188))}function Wt(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Vt(e)))throw Error(ae(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ht(o),e;if(a===r)return Ht(o),t;a=a.sibling}throw Error(ae(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(ae(189))}}if(n.alternate!==r)throw Error(ae(190))}if(3!==n.tag)throw Error(ae(188));return n.stateNode.current===n?e:t}(e))?Kt(e):null}function Kt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Kt(e);if(null!==t)return t;e=e.sibling}return null}var Qt=oe.unstable_scheduleCallback,qt=oe.unstable_cancelCallback,Yt=oe.unstable_shouldYield,Xt=oe.unstable_requestPaint,Jt=oe.unstable_now,Gt=oe.unstable_getCurrentPriorityLevel,Zt=oe.unstable_ImmediatePriority,en=oe.unstable_UserBlockingPriority,tn=oe.unstable_NormalPriority,nn=oe.unstable_LowPriority,rn=oe.unstable_IdlePriority,on=null,an=null;var ln=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(sn(e)/un|0)|0},sn=Math.log,un=Math.LN2;var cn=64,dn=4194304;function fn(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 pn(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=fn(l):0!==(a&=i)&&(r=fn(a))}else 0!==(i=n&~o)?r=fn(i):0!==a&&(r=fn(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-ln(t)),r|=e[n],t&=~o;return r}function hn(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 gn(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mn(){var e=cn;return!(4194240&(cn<<=1))&&(cn=64),e}function vn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ln(t)]=n}function bn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ln(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var wn=0;function xn(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Sn,kn,Cn,En,Ln,Nn=!1,Rn=[],_n=null,Pn=null,On=null,Tn=new Map,Dn=new Map,zn=[],An="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 Mn(e,t){switch(e){case"focusin":case"focusout":_n=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":On=null;break;case"pointerover":case"pointerout":Tn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dn.delete(t.pointerId)}}function In(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=wa(t))&&kn(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Fn(e){var t=ba(e.target);if(null!==t){var n=Vt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Bt(n)))return e.blockedOn=t,void Ln(e.priority,function(){Cn(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 $n(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wa(n))&&kn(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);wt=r,n.target.dispatchEvent(r),wt=null,t.shift()}return!0}function jn(e,t,n){$n(e)&&n.delete(t)}function Un(){Nn=!1,null!==_n&&$n(_n)&&(_n=null),null!==Pn&&$n(Pn)&&(Pn=null),null!==On&&$n(On)&&(On=null),Tn.forEach(jn),Dn.forEach(jn)}function Vn(e,t){e.blockedOn===t&&(e.blockedOn=null,Nn||(Nn=!0,oe.unstable_scheduleCallback(oe.unstable_NormalPriority,Un)))}function Bn(e){function t(t){return Vn(t,e)}if(0<Rn.length){Vn(Rn[0],e);for(var n=1;n<Rn.length;n++){var r=Rn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_n&&Vn(_n,e),null!==Pn&&Vn(Pn,e),null!==On&&Vn(On,e),Tn.forEach(t),Dn.forEach(t),n=0;n<zn.length;n++)(r=zn[n]).blockedOn===e&&(r.blockedOn=null);for(;0<zn.length&&null===(n=zn[0]).blockedOn;)Fn(n),null===n.blockedOn&&zn.shift()}var Hn=we.ReactCurrentBatchConfig,Wn=!0;function Kn(e,t,n,r){var o=wn,a=Hn.transition;Hn.transition=null;try{wn=1,qn(e,t,n,r)}finally{wn=o,Hn.transition=a}}function Qn(e,t,n,r){var o=wn,a=Hn.transition;Hn.transition=null;try{wn=4,qn(e,t,n,r)}finally{wn=o,Hn.transition=a}}function qn(e,t,n,r){if(Wn){var o=Xn(e,t,n,r);if(null===o)Wo(e,t,r,Yn,n),Mn(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return _n=In(_n,e,t,n,r,o),!0;case"dragenter":return Pn=In(Pn,e,t,n,r,o),!0;case"mouseover":return On=In(On,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Tn.set(a,In(Tn.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Dn.set(a,In(Dn.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mn(e,r),4&t&&-1<An.indexOf(e)){for(;null!==o;){var a=wa(o);if(null!==a&&Sn(a),null===(a=Xn(e,t,n,r))&&Wo(e,t,r,Yn,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Wo(e,t,r,null,n)}}var Yn=null;function Xn(e,t,n,r){if(Yn=null,null!==(e=ba(e=xt(r))))if(null===(t=Vt(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Bt(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 Yn=e,null}function Jn(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(Gt()){case Zt:return 1;case en:return 4;case tn:case nn:return 16;case rn:return 536870912;default:return 16}default:return 16}}var Gn=null,Zn=null,er=null;function tr(){if(er)return er;var e,t,n=Zn,r=n.length,o="value"in Gn?Gn.value:Gn.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 er=o.slice(e,1<t?1-t:void 0)}function nr(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 rr(){return!0}function or(){return!1}function ar(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)?rr:or,this.isPropagationStopped=or,this}return Ie(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=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ir,lr,sr,ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=ar(ur),dr=Ie({},ur,{view:0,detail:0}),fr=ar(dr),pr=Ie({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Er,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!==sr&&(sr&&"mousemove"===e.type?(ir=e.screenX-sr.screenX,lr=e.screenY-sr.screenY):lr=ir=0,sr=e),ir)},movementY:function(e){return"movementY"in e?e.movementY:lr}}),hr=ar(pr),gr=ar(Ie({},pr,{dataTransfer:0})),mr=ar(Ie({},dr,{relatedTarget:0})),vr=ar(Ie({},ur,{animationName:0,elapsedTime:0,pseudoElement:0})),yr=Ie({},ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),br=ar(yr),wr=ar(Ie({},ur,{data:0})),xr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sr={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"},kr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kr[e])&&!!t[e]}function Er(){return Cr}var Lr=Ie({},dr,{key:function(e){if(e.key){var t=xr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Er,charCode:function(e){return"keypress"===e.type?nr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Nr=ar(Lr),Rr=ar(Ie({},pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),_r=ar(Ie({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Er})),Pr=ar(Ie({},ur,{propertyName:0,elapsedTime:0,pseudoElement:0})),Or=Ie({},pr,{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}),Tr=ar(Or),Dr=[9,13,27,32],zr=ce&&"CompositionEvent"in window,Ar=null;ce&&"documentMode"in document&&(Ar=document.documentMode);var Mr=ce&&"TextEvent"in window&&!Ar,Ir=ce&&(!zr||Ar&&8<Ar&&11>=Ar),Fr=String.fromCharCode(32),$r=!1;function jr(e,t){switch(e){case"keyup":return-1!==Dr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ur(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vr=!1;var Br={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 Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Br[e.type]:"textarea"===t}function Wr(e,t,n,r){Lt(r),0<(t=Qo(t,"onChange")).length&&(n=new cr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kr=null,Qr=null;function qr(e){$o(e,0)}function Yr(e){if(Qe(xa(e)))return e}function Xr(e,t){if("change"===e)return t}var Jr=!1;if(ce){var Gr;if(ce){var Zr="oninput"in document;if(!Zr){var eo=document.createElement("div");eo.setAttribute("oninput","return;"),Zr="function"==typeof eo.oninput}Gr=Zr}else Gr=!1;Jr=Gr&&(!document.documentMode||9<document.documentMode)}function to(){Kr&&(Kr.detachEvent("onpropertychange",no),Qr=Kr=null)}function no(e){if("value"===e.propertyName&&Yr(Qr)){var t=[];Wr(t,Qr,e,xt(e)),Ot(qr,t)}}function ro(e,t,n){"focusin"===e?(to(),Qr=n,(Kr=t).attachEvent("onpropertychange",no)):"focusout"===e&&to()}function oo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yr(Qr)}function ao(e,t){if("click"===e)return Yr(t)}function io(e,t){if("input"===e||"change"===e)return Yr(t)}var lo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function so(e,t){if(lo(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(!de.call(t,o)||!lo(e[o],t[o]))return!1}return!0}function uo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function co(e,t){var n,r=uo(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=uo(r)}}function fo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function po(){for(var e=window,t=qe();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=qe((e=t.contentWindow).document)}return t}function ho(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 go(e){var t=po(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fo(n.ownerDocument.documentElement,n)){if(null!==r&&ho(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=co(n,a);var i=co(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 mo=ce&&"documentMode"in document&&11>=document.documentMode,vo=null,yo=null,bo=null,wo=!1;function xo(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wo||null==vo||vo!==qe(r)||("selectionStart"in(r=vo)&&ho(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},bo&&so(bo,r)||(bo=r,0<(r=Qo(yo,"onSelect")).length&&(t=new cr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vo)))}function So(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ko={animationend:So("Animation","AnimationEnd"),animationiteration:So("Animation","AnimationIteration"),animationstart:So("Animation","AnimationStart"),transitionend:So("Transition","TransitionEnd")},Co={},Eo={};function Lo(e){if(Co[e])return Co[e];if(!ko[e])return e;var t,n=ko[e];for(t in n)if(n.hasOwnProperty(t)&&t in Eo)return Co[e]=n[t];return e}ce&&(Eo=document.createElement("div").style,"AnimationEvent"in window||(delete ko.animationend.animation,delete ko.animationiteration.animation,delete ko.animationstart.animation),"TransitionEvent"in window||delete ko.transitionend.transition);var No=Lo("animationend"),Ro=Lo("animationiteration"),_o=Lo("animationstart"),Po=Lo("transitionend"),Oo=new Map,To="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 Do(e,t){Oo.set(e,t),se(t,[e])}for(var zo=0;zo<To.length;zo++){var Ao=To[zo];Do(Ao.toLowerCase(),"on"+(Ao[0].toUpperCase()+Ao.slice(1)))}Do(No,"onAnimationEnd"),Do(Ro,"onAnimationIteration"),Do(_o,"onAnimationStart"),Do("dblclick","onDoubleClick"),Do("focusin","onFocus"),Do("focusout","onBlur"),Do(Po,"onTransitionEnd"),ue("onMouseEnter",["mouseout","mouseover"]),ue("onMouseLeave",["mouseout","mouseover"]),ue("onPointerEnter",["pointerout","pointerover"]),ue("onPointerLeave",["pointerout","pointerover"]),se("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),se("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),se("onBeforeInput",["compositionend","keypress","textInput","paste"]),se("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),se("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),se("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mo="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(" "),Io=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mo));function Fo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,s){if(Ut.apply(this,arguments),Mt){if(!Mt)throw Error(ae(198));var u=It;Mt=!1,It=null,Ft||(Ft=!0,$t=u)}}(r,t,void 0,e),e.currentTarget=null}function $o(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Fo(o,l,u),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Fo(o,l,u),a=s}}}if(Ft)throw e=$t,Ft=!1,$t=null,e}function jo(e,t){var n=t[ma];void 0===n&&(n=t[ma]=new Set);var r=e+"__bubble";n.has(r)||(Ho(t,e,2,!1),n.add(r))}function Uo(e,t,n){var r=0;t&&(r|=4),Ho(n,e,r,t)}var Vo="_reactListening"+Math.random().toString(36).slice(2);function Bo(e){if(!e[Vo]){e[Vo]=!0,ie.forEach(function(t){"selectionchange"!==t&&(Io.has(t)||Uo(t,!1,e),Uo(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vo]||(t[Vo]=!0,Uo("selectionchange",!1,t))}}function Ho(e,t,n,r){switch(Jn(t)){case 1:var o=Kn;break;case 4:o=Qn;break;default:o=qn}n=o.bind(null,t,n,e),o=void 0,!Dt||"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 Wo(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=ba(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Ot(function(){var r=a,o=xt(n),i=[];e:{var l=Oo.get(e);if(void 0!==l){var s=cr,u=e;switch(e){case"keypress":if(0===nr(n))break e;case"keydown":case"keyup":s=Nr;break;case"focusin":u="focus",s=mr;break;case"focusout":u="blur",s=mr;break;case"beforeblur":case"afterblur":s=mr;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=_r;break;case No:case Ro:case _o:s=vr;break;case Po:s=Pr;break;case"scroll":s=fr;break;case"wheel":s=Tr;break;case"copy":case"cut":case"paste":s=br;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Rr}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Tt(h,f))&&c.push(Ko(h,g,p)))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),i.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===wt||!(u=n.relatedTarget||n.fromElement)||!ba(u)&&!u[ga])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?ba(u):null)&&(u!==(d=Vt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=hr,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rr,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:xa(s),p=null==u?l:xa(u),(l=new c(g,h+"leave",s,n,o)).target=d,l.relatedTarget=p,g=null,ba(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,g=c),d=g,s&&u)e:{for(f=u,h=0,p=c=s;p;p=qo(p))h++;for(p=0,g=f;g;g=qo(g))p++;for(;0<h-p;)c=qo(c),h--;for(;0<p-h;)f=qo(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=qo(c),f=qo(f)}c=null}else c=null;null!==s&&Yo(i,l,s,c,!1),null!==u&&null!==d&&Yo(i,d,u,c,!0)}if("select"===(s=(l=r?xa(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Xr;else if(Hr(l))if(Jr)m=io;else{m=oo;var v=ro}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=ao);switch(m&&(m=m(e,r))?Wr(i,m,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&et(l,"number",l.value)),v=r?xa(r):window,e){case"focusin":(Hr(v)||"true"===v.contentEditable)&&(vo=v,yo=r,bo=null);break;case"focusout":bo=yo=vo=null;break;case"mousedown":wo=!0;break;case"contextmenu":case"mouseup":case"dragend":wo=!1,xo(i,n,o);break;case"selectionchange":if(mo)break;case"keydown":case"keyup":xo(i,n,o)}var y;if(zr)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vr?jr(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ir&&"ko"!==n.locale&&(Vr||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vr&&(y=tr()):(Zn="value"in(Gn=o)?Gn.value:Gn.textContent,Vr=!0)),0<(v=Qo(r,b)).length&&(b=new wr(b,e,null,n,o),i.push({event:b,listeners:v}),y?b.data=y:null!==(y=Ur(n))&&(b.data=y))),(y=Mr?function(e,t){switch(e){case"compositionend":return Ur(t);case"keypress":return 32!==t.which?null:($r=!0,Fr);case"textInput":return(e=t.data)===Fr&&$r?null:e;default:return null}}(e,n):function(e,t){if(Vr)return"compositionend"===e||!zr&&jr(e,t)?(e=tr(),er=Zn=Gn=null,Vr=!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 Ir&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Qo(r,"onBeforeInput")).length&&(o=new wr("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}$o(i,t)})}function Ko(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qo(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=Tt(e,n))&&r.unshift(Ko(e,a,o)),null!=(a=Tt(e,t))&&r.push(Ko(e,a,o))),e=e.return}return r}function qo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yo(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Tt(n,a))&&i.unshift(Ko(n,s,l)):o||null!=(s=Tt(n,a))&&i.push(Ko(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Xo=/\r\n?/g,Jo=/\u0000|\uFFFD/g;function Go(e){return("string"==typeof e?e:""+e).replace(Xo,"\n").replace(Jo,"")}function Zo(e,t,n){if(t=Go(t),Go(e)!==t&&n)throw Error(ae(425))}function ea(){}var ta=null,na=null;function ra(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 oa="function"==typeof setTimeout?setTimeout:void 0,aa="function"==typeof clearTimeout?clearTimeout:void 0,ia="function"==typeof Promise?Promise:void 0,la="function"==typeof queueMicrotask?queueMicrotask:void 0!==ia?function(e){return ia.resolve(null).then(e).catch(sa)}:oa;function sa(e){setTimeout(function(){throw e})}function ua(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 Bn(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bn(t)}function ca(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 da(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 fa=Math.random().toString(36).slice(2),pa="__reactFiber$"+fa,ha="__reactProps$"+fa,ga="__reactContainer$"+fa,ma="__reactEvents$"+fa,va="__reactListeners$"+fa,ya="__reactHandles$"+fa;function ba(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ga]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=da(e);null!==e;){if(n=e[pa])return n;e=da(e)}return t}n=(e=n).parentNode}return null}function wa(e){return!(e=e[pa]||e[ga])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ae(33))}function Sa(e){return e[ha]||null}var ka=[],Ca=-1;function Ea(e){return{current:e}}function La(e){0>Ca||(e.current=ka[Ca],ka[Ca]=null,Ca--)}function Na(e,t){Ca++,ka[Ca]=e.current,e.current=t}var Ra={},_a=Ea(Ra),Pa=Ea(!1),Oa=Ra;function Ta(e,t){var n=e.type.contextTypes;if(!n)return Ra;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 Da(e){return null!=(e=e.childContextTypes)}function za(){La(Pa),La(_a)}function Aa(e,t,n){if(_a.current!==Ra)throw Error(ae(168));Na(_a,t),Na(Pa,n)}function Ma(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(ae(108,Be(e)||"Unknown",o));return Ie({},n,r)}function Ia(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ra,Oa=_a.current,Na(_a,e),Na(Pa,Pa.current),!0}function Fa(e,t,n){var r=e.stateNode;if(!r)throw Error(ae(169));n?(e=Ma(e,t,Oa),r.__reactInternalMemoizedMergedChildContext=e,La(Pa),La(_a),Na(_a,e)):La(Pa),Na(Pa,n)}var $a=null,ja=!1,Ua=!1;function Va(e){null===$a?$a=[e]:$a.push(e)}function Ba(){if(!Ua&&null!==$a){Ua=!0;var e=0,t=wn;try{var n=$a;for(wn=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}$a=null,ja=!1}catch(t){throw null!==$a&&($a=$a.slice(e+1)),Qt(Zt,Ba),t}finally{wn=t,Ua=!1}}return null}var Ha=[],Wa=0,Ka=null,Qa=0,qa=[],Ya=0,Xa=null,Ja=1,Ga="";function Za(e,t){Ha[Wa++]=Qa,Ha[Wa++]=Ka,Ka=e,Qa=t}function ei(e,t,n){qa[Ya++]=Ja,qa[Ya++]=Ga,qa[Ya++]=Xa,Xa=e;var r=Ja;e=Ga;var o=32-ln(r)-1;r&=~(1<<o),n+=1;var a=32-ln(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Ja=1<<32-ln(t)+o|n<<o|r,Ga=a+e}else Ja=1<<a|n<<o|r,Ga=e}function ti(e){null!==e.return&&(Za(e,1),ei(e,1,0))}function ni(e){for(;e===Ka;)Ka=Ha[--Wa],Ha[Wa]=null,Qa=Ha[--Wa],Ha[Wa]=null;for(;e===Xa;)Xa=qa[--Ya],qa[Ya]=null,Ga=qa[--Ya],qa[Ya]=null,Ja=qa[--Ya],qa[Ya]=null}var ri=null,oi=null,ai=!1,ii=null;function li(e,t){var n=Oc(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 si(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,ri=e,oi=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xa?{id:Ja,overflow:Ga}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Oc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ai){var t=oi;if(t){var n=t;if(!si(e,t)){if(ui(e))throw Error(ae(418));t=ca(n.nextSibling);var r=ri;t&&si(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ai=!1,ri=e)}}else{if(ui(e))throw Error(ae(418));e.flags=-4097&e.flags|2,ai=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ai)return di(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ra(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(ae(418));for(;t;)li(e,t),t=ca(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(ae(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?ca(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=ca(e.nextSibling)}function hi(){oi=ri=null,ai=!1}function gi(e){null===ii?ii=[e]:ii.push(e)}var mi=we.ReactCurrentBatchConfig;function vi(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(ae(309));var r=n.stateNode}if(!r)throw Error(ae(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(ae(284));if(!n._owner)throw Error(ae(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(ae(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(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=Dc(e,t)).index=0,e.sibling=null,e}function a(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 i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ic(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===ke?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Te&&bi(a)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=zc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,a){return null===t||7!==t.tag?((t=Ac(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ic(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case xe:return(n=zc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case Se:return(t=Fc(t,e.mode,n)).return=e,t;case Te:return d(e,(0,t._init)(t._payload),n)}if(tt(t)||Ae(t))return(t=Ac(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case xe:return n.key===o?s(e,t,n,r):null;case Se:return n.key===o?u(e,t,n,r):null;case Te:return f(e,t,(o=n._init)(n._payload),r)}if(tt(n)||Ae(n))return null!==o?null:c(e,t,n,r,null);yi(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case xe:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Se:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Te:return p(e,t,n,(0,r._init)(r._payload),o)}if(tt(r)||Ae(r))return c(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function h(o,i,l,s){for(var u=null,c=null,h=i,g=i=0,m=null;null!==h&&g<l.length;g++){h.index>g?(m=h,h=null):m=h.sibling;var v=f(o,h,l[g],s);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&t(o,h),i=a(v,i,g),null===c?u=v:c.sibling=v,c=v,h=m}if(g===l.length)return n(o,h),ai&&Za(o,g),u;if(null===h){for(;g<l.length;g++)null!==(h=d(o,l[g],s))&&(i=a(h,i,g),null===c?u=h:c.sibling=h,c=h);return ai&&Za(o,g),u}for(h=r(o,h);g<l.length;g++)null!==(m=p(h,o,g,l[g],s))&&(e&&null!==m.alternate&&h.delete(null===m.key?g:m.key),i=a(m,i,g),null===c?u=m:c.sibling=m,c=m);return e&&h.forEach(function(e){return t(o,e)}),ai&&Za(o,g),u}function g(o,i,l,s){var u=Ae(l);if("function"!=typeof u)throw Error(ae(150));if(null==(l=u.call(l)))throw Error(ae(151));for(var c=u=null,h=i,g=i=0,m=null,v=l.next();null!==h&&!v.done;g++,v=l.next()){h.index>g?(m=h,h=null):m=h.sibling;var y=f(o,h,v.value,s);if(null===y){null===h&&(h=m);break}e&&h&&null===y.alternate&&t(o,h),i=a(y,i,g),null===c?u=y:c.sibling=y,c=y,h=m}if(v.done)return n(o,h),ai&&Za(o,g),u;if(null===h){for(;!v.done;g++,v=l.next())null!==(v=d(o,v.value,s))&&(i=a(v,i,g),null===c?u=v:c.sibling=v,c=v);return ai&&Za(o,g),u}for(h=r(o,h);!v.done;g++,v=l.next())null!==(v=p(h,o,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?u=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return t(o,e)}),ai&&Za(o,g),u}return function e(r,a,l,s){if("object"==typeof l&&null!==l&&l.type===ke&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case xe:e:{for(var u=l.key,c=a;null!==c;){if(c.key===u){if((u=l.type)===ke){if(7===c.tag){n(r,c.sibling),(a=o(c,l.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===Te&&bi(u)===c.type){n(r,c.sibling),(a=o(c,l.props)).ref=vi(r,c,l),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===ke?((a=Ac(l.props.children,r.mode,s,l.key)).return=r,r=a):((s=zc(l.type,l.key,l.props,null,r.mode,s)).ref=vi(r,a,l),s.return=r,r=s)}return i(r);case Se:e:{for(c=l.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===l.containerInfo&&a.stateNode.implementation===l.implementation){n(r,a.sibling),(a=o(a,l.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fc(l,r.mode,s)).return=r,r=a}return i(r);case Te:return e(r,a,(c=l._init)(l._payload),s)}if(tt(l))return h(r,a,l,s);if(Ae(l))return g(r,a,l,s);yi(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,l)).return=r,r=a):(n(r,a),(a=Ic(l,r.mode,s)).return=r,r=a),i(r)):n(r,a)}}var xi=wi(!0),Si=wi(!1),ki=Ea(null),Ci=null,Ei=null,Li=null;function Ni(){Li=Ei=Ci=null}function Ri(e){var t=ki.current;La(ki),e._currentValue=t}function _i(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 Pi(e,t){Ci=e,Li=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(Li!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===Ci)throw Error(ae(308));Ei=e,Ci.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Ti=null;function Di(e){null===Ti?Ti=[e]:Ti.push(e)}function zi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Di(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ai(e,r)}function Ai(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 Mi=!1;function Ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fi(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 $i(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ji(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ru){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ai(e,n)}return null===(o=r.interleaved)?(t.next=t,Di(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ai(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bn(e,n)}}function Vi(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 Bi(e,t,n,r){var o=e.updateQueue;Mi=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?a=u:i.next=u,i=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,c=u=s=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 h=e,g=l;switch(f=t,p=n,g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=g.payload)?h.call(p,d,f):h))break e;d=Ie({},d,f);break e;case 2:Mi=!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?(u=c=p,s=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&&(s=d),o.baseState=s,o.firstBaseUpdate=u,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);Mu|=i,e.lanes=i,e.memoizedState=d}}function Hi(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(ae(191,o));o.call(r)}}}var Wi={},Ki=Ea(Wi),Qi=Ea(Wi),qi=Ea(Wi);function Yi(e){if(e===Wi)throw Error(ae(174));return e}function Xi(e,t){switch(Na(qi,t),Na(Qi,e),Na(Ki,Wi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:st(null,"");break;default:t=st(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}La(Ki),Na(Ki,t)}function Ji(){La(Ki),La(Qi),La(qi)}function Gi(e){Yi(qi.current);var t=Yi(Ki.current),n=st(t,e.type);t!==n&&(Na(Qi,e),Na(Ki,n))}function Zi(e){Qi.current===e&&(La(Ki),La(Qi))}var el=Ea(0);function tl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nl=[];function rl(){for(var e=0;e<nl.length;e++)nl[e]._workInProgressVersionPrimary=null;nl.length=0}var ol=we.ReactCurrentDispatcher,al=we.ReactCurrentBatchConfig,il=0,ll=null,sl=null,ul=null,cl=!1,dl=!1,fl=0,pl=0;function hl(){throw Error(ae(321))}function gl(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lo(e[n],t[n]))return!1;return!0}function ml(e,t,n,r,o,a){if(il=a,ll=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ol.current=null===e||null===e.memoizedState?Zl:es,e=n(r,o),dl){a=0;do{if(dl=!1,fl=0,25<=a)throw Error(ae(301));a+=1,ul=sl=null,t.updateQueue=null,ol.current=ts,e=n(r,o)}while(dl)}if(ol.current=Gl,t=null!==sl&&null!==sl.next,il=0,ul=sl=ll=null,cl=!1,t)throw Error(ae(300));return e}function vl(){var e=0!==fl;return fl=0,e}function yl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ul?ll.memoizedState=ul=e:ul=ul.next=e,ul}function bl(){if(null===sl){var e=ll.alternate;e=null!==e?e.memoizedState:null}else e=sl.next;var t=null===ul?ll.memoizedState:ul.next;if(null!==t)ul=t,sl=e;else{if(null===e)throw Error(ae(310));e={memoizedState:(sl=e).memoizedState,baseState:sl.baseState,baseQueue:sl.baseQueue,queue:sl.queue,next:null},null===ul?ll.memoizedState=ul=e:ul=ul.next=e}return ul}function wl(e,t){return"function"==typeof t?t(e):t}function xl(e){var t=bl(),n=t.queue;if(null===n)throw Error(ae(311));n.lastRenderedReducer=e;var r=sl,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=i=null,s=null,u=a;do{var c=u.lane;if((il&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,ll.lanes|=c,Mu|=c}u=u.next}while(null!==u&&u!==a);null===s?i=r:s.next=l,lo(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ll.lanes|=a,Mu|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sl(e){var t=bl(),n=t.queue;if(null===n)throw Error(ae(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);lo(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function kl(){}function Cl(e,t){var n=ll,r=bl(),o=t(),a=!lo(r.memoizedState,o);if(a&&(r.memoizedState=o,bs=!0),r=r.queue,Ml(Nl.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ul&&1&ul.memoizedState.tag){if(n.flags|=2048,Ol(9,Ll.bind(null,n,r,o,t),void 0,null),null===_u)throw Error(ae(349));30&il||El(n,t,o)}return o}function El(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ll.updateQueue)?(t={lastEffect:null,stores:null},ll.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ll(e,t,n,r){t.value=n,t.getSnapshot=r,Rl(t)&&_l(e)}function Nl(e,t,n){return n(function(){Rl(t)&&_l(e)})}function Rl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lo(e,n)}catch(e){return!0}}function _l(e){var t=Ai(e,1);null!==t&&nc(t,e,1,-1)}function Pl(e){var t=yl();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:e},t.queue=e,e=e.dispatch=ql.bind(null,ll,e),[t.memoizedState,e]}function Ol(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ll.updateQueue)?(t={lastEffect:null,stores:null},ll.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 Tl(){return bl().memoizedState}function Dl(e,t,n,r){var o=yl();ll.flags|=e,o.memoizedState=Ol(1|t,n,void 0,void 0===r?null:r)}function zl(e,t,n,r){var o=bl();r=void 0===r?null:r;var a=void 0;if(null!==sl){var i=sl.memoizedState;if(a=i.destroy,null!==r&&gl(r,i.deps))return void(o.memoizedState=Ol(t,n,a,r))}ll.flags|=e,o.memoizedState=Ol(1|t,n,a,r)}function Al(e,t){return Dl(8390656,8,e,t)}function Ml(e,t){return zl(2048,8,e,t)}function Il(e,t){return zl(4,2,e,t)}function Fl(e,t){return zl(4,4,e,t)}function $l(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 jl(e,t,n){return n=null!=n?n.concat([e]):null,zl(4,4,$l.bind(null,t,e),n)}function Ul(){}function Vl(e,t){var n=bl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&gl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Bl(e,t){var n=bl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&gl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hl(e,t,n){return 21&il?(lo(n,t)||(n=mn(),ll.lanes|=n,Mu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Wl(e,t){var n=wn;wn=0!==n&&4>n?n:4,e(!0);var r=al.transition;al.transition={};try{e(!1),t()}finally{wn=n,al.transition=r}}function Kl(){return bl().memoizedState}function Ql(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yl(e))Xl(t,n);else if(null!==(n=zi(e,t,n,r))){nc(n,e,r,ec()),Jl(n,t,r)}}function ql(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yl(e))Xl(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,lo(l,i)){var s=t.interleaved;return null===s?(o.next=o,Di(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=zi(e,t,o,r))&&(nc(n,e,r,o=ec()),Jl(n,t,r))}}function Yl(e){var t=e.alternate;return e===ll||null!==t&&t===ll}function Xl(e,t){dl=cl=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jl(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bn(e,n)}}var Gl={readContext:Oi,useCallback:hl,useContext:hl,useEffect:hl,useImperativeHandle:hl,useInsertionEffect:hl,useLayoutEffect:hl,useMemo:hl,useReducer:hl,useRef:hl,useState:hl,useDebugValue:hl,useDeferredValue:hl,useTransition:hl,useMutableSource:hl,useSyncExternalStore:hl,useId:hl,unstable_isNewReconciler:!1},Zl={readContext:Oi,useCallback:function(e,t){return yl().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:Al,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Dl(4194308,4,$l.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dl(4,2,e,t)},useMemo:function(e,t){var n=yl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yl();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=Ql.bind(null,ll,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},yl().memoizedState=e},useState:Pl,useDebugValue:Ul,useDeferredValue:function(e){return yl().memoizedState=e},useTransition:function(){var e=Pl(!1),t=e[0];return e=Wl.bind(null,e[1]),yl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ll,o=yl();if(ai){if(void 0===n)throw Error(ae(407));n=n()}else{if(n=t(),null===_u)throw Error(ae(349));30&il||El(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Al(Nl.bind(null,r,a,e),[e]),r.flags|=2048,Ol(9,Ll.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=yl(),t=_u.identifierPrefix;if(ai){var n=Ga;t=":"+t+"R"+(n=(Ja&~(1<<32-ln(Ja)-1)).toString(32)+n),0<(n=fl++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pl++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Oi,useCallback:Vl,useContext:Oi,useEffect:Ml,useImperativeHandle:jl,useInsertionEffect:Il,useLayoutEffect:Fl,useMemo:Bl,useReducer:xl,useRef:Tl,useState:function(){return xl(wl)},useDebugValue:Ul,useDeferredValue:function(e){return Hl(bl(),sl.memoizedState,e)},useTransition:function(){return[xl(wl)[0],bl().memoizedState]},useMutableSource:kl,useSyncExternalStore:Cl,useId:Kl,unstable_isNewReconciler:!1},ts={readContext:Oi,useCallback:Vl,useContext:Oi,useEffect:Ml,useImperativeHandle:jl,useInsertionEffect:Il,useLayoutEffect:Fl,useMemo:Bl,useReducer:Sl,useRef:Tl,useState:function(){return Sl(wl)},useDebugValue:Ul,useDeferredValue:function(e){var t=bl();return null===sl?t.memoizedState=e:Hl(t,sl.memoizedState,e)},useTransition:function(){return[Sl(wl)[0],bl().memoizedState]},useMutableSource:kl,useSyncExternalStore:Cl,useId:Kl,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=Ie({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Ie({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&Vt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=$i(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=ji(e,a,o))&&(nc(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=$i(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=ji(e,a,o))&&(nc(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=$i(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ji(e,o,r))&&(nc(t,e,r,n),Ui(t,e,r))}};function as(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!so(n,r)||!so(o,a))}function is(e,t,n){var r=!1,o=Ra,a=t.contextType;return"object"==typeof a&&null!==a?a=Oi(a):(o=Da(t)?Oa:_a.current,a=(r=null!=(r=t.contextTypes))?Ta(e,o):Ra),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ls(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&&os.enqueueReplaceState(t,t.state,null)}function ss(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ii(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Oi(a):(a=Da(t)?Oa:_a.current,o.context=Ta(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(rs(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&&os.enqueueReplaceState(o,o.state,null),Bi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=Ue(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 cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=$i(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hu||(Hu=!0,Wu=r),ds(0,t)},n}function hs(e,t,n){(n=$i(-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(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Ku?Ku=new Set([this]):Ku.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;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=Ec.bind(null,e,t,n),t.then(e,e))}function ms(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 vs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=$i(-1,1)).tag=2,ji(n,t,1))),n.lanes|=1),e)}var ys=we.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?Si(t,null,n,r):xi(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var a=t.ref;return Pi(t,o),r=ml(e,t,n,r,a,o),n=vl(),null===e||bs?(ai&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ss(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Tc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ks(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:so)(i,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Dc(a,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(so(a,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);131072&e.flags&&(bs=!0)}}return Ls(e,t,n,r,o)}function Cs(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Na(Du,Tu),Tu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Na(Du,Tu),Tu|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Na(Du,Tu),Tu|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Na(Du,Tu),Tu|=r;return ws(e,t,o,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ls(e,t,n,r,o){var a=Da(n)?Oa:_a.current;return a=Ta(t,a),Pi(t,o),n=ml(e,t,n,r,a,o),r=vl(),null===e||bs?(ai&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ns(e,t,n,r,o){if(Da(n)){var a=!0;Ia(t)}else a=!1;if(Pi(t,o),null===t.stateNode)Bs(e,t),is(t,n,r),ss(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;"object"==typeof u&&null!==u?u=Oi(u):u=Ta(t,u=Da(n)?Oa:_a.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||s!==u)&&ls(t,i,r,u),Mi=!1;var f=t.memoizedState;i.state=f,Bi(t,r,i,o),s=t.memoizedState,l!==r||f!==s||Pa.current||Mi?("function"==typeof c&&(rs(t,n,c,r),s=t.memoizedState),(l=Mi||as(t,n,l,r,f,s,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Fi(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ns(t.type,l),i.props=u,d=t.pendingProps,f=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Oi(s):s=Ta(t,s=Da(n)?Oa:_a.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!==s)&&ls(t,i,r,s),Mi=!1,f=t.memoizedState,i.state=f,Bi(t,r,i,o);var h=t.memoizedState;l!==d||f!==h||Pa.current||Mi?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=Mi||as(t,n,u,r,f,h,s)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"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=h),i.props=r,i.state=h,i.context=s,r=u):("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 Rs(e,t,n,r,a,o)}function Rs(e,t,n,r,o,a){Es(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Fa(t,n,!1),Hs(e,t,a);r=t.stateNode,ys.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=xi(t,e.child,null,a),t.child=xi(t,null,l,a)):ws(e,t,l,a),t.memoizedState=r.state,o&&Fa(t,n,!0),t.child}function _s(e){var t=e.stateNode;t.pendingContext?Aa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Aa(0,t.context,!1),Xi(e,t.containerInfo)}function Ps(e,t,n,r,o){return hi(),gi(o),t.flags|=256,ws(e,t,n,r),t.child}var Os,Ts,Ds,zs,As={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Is(e,t,n){var r,o=t.pendingProps,a=el.current,i=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Na(el,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,i?(o=t.mode,i=t.child,l={mode:"hidden",children:l},1&o||null===i?i=Mc(l,o,0,null):(i.childLanes=0,i.pendingProps=l),e=Ac(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ms(n),t.memoizedState=As,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,$s(e,t,i,r=cs(Error(ae(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Mc({mode:"visible",children:r.children},o,0,null),(a=Ac(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&xi(t,e.child,null,i),t.child.memoizedState=Ms(i),t.memoizedState=As,a);if(!(1&t.mode))return $s(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,$s(e,t,i,r=cs(a=Error(ae(419)),r,void 0))}if(l=0!==(i&e.childLanes),bs||l){if(null!==(r=_u)){switch(i&-i){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|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ai(e,o),nc(r,e,o,-1))}return gc(),$s(e,t,i,r=cs(Error(ae(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Nc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=ca(o.nextSibling),ri=t,ai=!0,ii=null,null!==e&&(qa[Ya++]=Ja,qa[Ya++]=Ga,qa[Ya++]=Xa,Ja=e.id,Ga=e.overflow,Xa=t),t=Fs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(i){i=o.fallback,l=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Dc(a,s)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?i=Dc(r,i):(i=Ac(i,l,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=As,o}return e=(i=e.child).sibling,o=Dc(i,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fs(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function $s(e,t,n,r){return null!==r&&gi(r),xi(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function js(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_i(e.return,t,n)}function Us(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 Vs(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(ws(e,t,r.children,n),2&(r=el.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&js(e,n,t);else if(19===e.tag)js(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(Na(el,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===tl(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Us(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===tl(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Us(t,!0,n,null,a);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Mu|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ae(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!ai)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 Ks(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 Qs(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Da(t.type)&&za(),Ks(t),null;case 3:return r=t.stateNode,Ji(),La(Pa),La(_a),rl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ii&&(ic(ii),ii=null))),Ts(e,t),Ks(t),null;case 5:Zi(t);var o=Yi(qi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(ae(166));return Ks(t),null}if(e=Yi(Ki.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[pa]=t,r[ha]=a,e=!!(1&t.mode),n){case"dialog":jo("cancel",r),jo("close",r);break;case"iframe":case"object":case"embed":jo("load",r);break;case"video":case"audio":for(o=0;o<Mo.length;o++)jo(Mo[o],r);break;case"source":jo("error",r);break;case"img":case"image":case"link":jo("error",r),jo("load",r);break;case"details":jo("toggle",r);break;case"input":Xe(r,a),jo("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},jo("invalid",r);break;case"textarea":ot(r,a),jo("invalid",r)}for(var i in yt(n,a),o=null,a)if(a.hasOwnProperty(i)){var l=a[i];"children"===i?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Zo(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Zo(r.textContent,l,e),o=["children",""+l]):le.hasOwnProperty(i)&&null!=l&&"onScroll"===i&&jo("scroll",r)}switch(n){case"input":Ke(r),Ze(r,a,!0);break;case"textarea":Ke(r),it(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=ea)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=lt(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[pa]=t,e[ha]=r,Os(e,t,!1,!1),t.stateNode=e;e:{switch(i=bt(n,r),n){case"dialog":jo("cancel",e),jo("close",e),o=r;break;case"iframe":case"object":case"embed":jo("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mo.length;o++)jo(Mo[o],e);o=r;break;case"source":jo("error",e),o=r;break;case"img":case"image":case"link":jo("error",e),jo("load",e),o=r;break;case"details":jo("toggle",e),o=r;break;case"input":Xe(e,r),o=Ye(e,r),jo("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ie({},r,{value:void 0}),jo("invalid",e);break;case"textarea":ot(e,r),o=rt(e,r),jo("invalid",e)}for(a in yt(n,o),l=o)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?mt(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&dt(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&ft(e,s):"number"==typeof s&&ft(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(le.hasOwnProperty(a)?null!=s&&"onScroll"===a&&jo("scroll",e):null!=s&&be(e,a,s,i))}switch(n){case"input":Ke(e),Ze(e,r,!1);break;case"textarea":Ke(e),it(e);break;case"option":null!=r.value&&e.setAttribute("value",""+He(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?nt(e,!!r.multiple,a,!1):null!=r.defaultValue&&nt(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ea)}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 Ks(t),null;case 6:if(e&&null!=t.stateNode)zs(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(ae(166));if(n=Yi(qi.current),Yi(Ki.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[pa]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zo(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zo(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pa]=t,t.stateNode=r}return Ks(t),null;case 13:if(La(el),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(ae(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(ae(317));a[pa]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),a=!1}else null!==ii&&(ic(ii),ii=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&el.current?0===zu&&(zu=3):gc())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return Ji(),Ts(e,t),null===e&&Bo(t.stateNode.containerInfo),Ks(t),null;case 10:return Ri(t.type._context),Ks(t),null;case 19:if(La(el),null===(a=t.memoizedState))return Ks(t),null;if(r=!!(128&t.flags),null===(i=a.rendering))if(r)Ws(a,!1);else{if(0!==zu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=tl(e))){for(t.flags|=128,Ws(a,!1),null!==(r=i.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Na(el,1&el.current|2),t.child}e=e.sibling}null!==a.tail&&Jt()>Vu&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=tl(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!ai)return Ks(t),null}else 2*Jt()-a.renderingStartTime>Vu&&1073741824!==n&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=a.last)?n.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Jt(),t.sibling=null,n=el.current,Na(el,r?1&n|2:1&n),t):(Ks(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Tu)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(ae(156,t.tag))}function qs(e,t){switch(ni(t),t.tag){case 1:return Da(t.type)&&za(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ji(),La(Pa),La(_a),rl(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(La(el),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(ae(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return La(el),null;case 4:return Ji(),null;case 10:return Ri(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Os=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}},Ts=function(){},Ds=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Yi(Ki.current);var a,i=null;switch(n){case"input":o=Ye(e,o),r=Ye(e,r),i=[];break;case"select":o=Ie({},o,{value:void 0}),r=Ie({},r,{value:void 0}),i=[];break;case"textarea":o=rt(e,o),r=rt(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ea)}for(u in yt(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(le.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(i=i||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(le.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&jo("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},zs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Xs=!1,Js="function"==typeof WeakSet?WeakSet:Set,Gs=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cc(e,t,n)}else n.current=null}function eu(e,t,n){try{n()}catch(n){Cc(e,t,n)}}var tu=!1;function nu(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&&eu(t,n,a)}o=o.next}while(o!==r)}}function ru(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 ou(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 au(e){var t=e.alternate;null!==t&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pa],delete t[ha],delete t[ma],delete t[va],delete t[ya])),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 iu(e){return 5===e.tag||3===e.tag||4===e.tag}function lu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||iu(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=ea));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 uu(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(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}var cu=null,du=!1;function fu(e,t,n){for(n=n.child;null!==n;)pu(e,t,n),n=n.sibling}function pu(e,t,n){if(an&&"function"==typeof an.onCommitFiberUnmount)try{an.onCommitFiberUnmount(on,n)}catch(e){}switch(n.tag){case 5:Xs||Zs(n,t);case 6:var r=cu,o=du;cu=null,fu(e,t,n),du=o,null!==(cu=r)&&(du?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(du?(e=cu,n=n.stateNode,8===e.nodeType?ua(e.parentNode,n):1===e.nodeType&&ua(e,n),Bn(e)):ua(cu,n.stateNode));break;case 4:r=cu,o=du,cu=n.stateNode.containerInfo,du=!0,fu(e,t,n),cu=r,du=o;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&eu(n,t,i),o=o.next}while(o!==r)}fu(e,t,n);break;case 1:if(!Xs&&(Zs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cc(n,t,e)}fu(e,t,n);break;case 21:fu(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,fu(e,t,n),Xs=r):fu(e,t,n);break;default:fu(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 Js),t.forEach(function(t){var r=Rc.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 a=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:cu=l.stateNode,du=!1;break e;case 3:case 4:cu=l.stateNode.containerInfo,du=!0;break e}l=l.return}if(null===cu)throw Error(ae(160));pu(a,i,o),cu=null,du=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Cc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mu(t,e),t=t.sibling}function mu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gu(t,e),vu(e),4&r){try{nu(3,e,e.return),ru(3,e)}catch(t){Cc(e,e.return,t)}try{nu(5,e,e.return)}catch(t){Cc(e,e.return,t)}}break;case 1:gu(t,e),vu(e),512&r&&null!==n&&Zs(n,n.return);break;case 5:if(gu(t,e),vu(e),512&r&&null!==n&&Zs(n,n.return),32&e.flags){var o=e.stateNode;try{ft(o,"")}catch(t){Cc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==n?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===a.type&&null!=a.name&&Je(o,a),bt(l,i);var u=bt(l,a);for(i=0;i<s.length;i+=2){var c=s[i],d=s[i+1];"style"===c?mt(o,d):"dangerouslySetInnerHTML"===c?dt(o,d):"children"===c?ft(o,d):be(o,c,d,u)}switch(l){case"input":Ge(o,a);break;case"textarea":at(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?nt(o,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?nt(o,!!a.multiple,a.defaultValue,!0):nt(o,!!a.multiple,a.multiple?[]:"",!1))}o[ha]=a}catch(t){Cc(e,e.return,t)}}break;case 6:if(gu(t,e),vu(e),4&r){if(null===e.stateNode)throw Error(ae(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Cc(e,e.return,t)}}break;case 3:if(gu(t,e),vu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bn(t.containerInfo)}catch(t){Cc(e,e.return,t)}break;case 4:default:gu(t,e),vu(e);break;case 13:gu(t,e),vu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Uu=Jt())),4&r&&hu(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(u=Xs)||c,gu(t,e),Xs=u):gu(t,e),vu(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(Gs=e,c=e.child;null!==c;){for(d=Gs=c;null!==Gs;){switch(p=(f=Gs).child,f.tag){case 0:case 11:case 14:case 15:nu(4,f,f.return);break;case 1:Zs(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Cc(r,n,e)}}break;case 5:Zs(f,f.return);break;case 22:if(null!==f.memoizedState){xu(d);continue}}null!==p?(p.return=f,Gs=p):xu(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,i=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=gt("display",i))}catch(t){Cc(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){Cc(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gu(t,e),vu(e),4&r&&hu(e);case 21:}}function vu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(iu(n)){var r=n;break e}n=n.return}throw Error(ae(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(ft(o,""),r.flags&=-33),uu(e,lu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;su(e,lu(e),a);break;default:throw Error(ae(161))}}catch(t){Cc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yu(e,t,n){Gs=e,bu(e)}function bu(e,t,n){for(var r=!!(1&e.mode);null!==Gs;){var o=Gs,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Ys;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Xs;l=Ys;var u=Xs;if(Ys=i,(Xs=s)&&!u)for(Gs=o;null!==Gs;)s=(i=Gs).child,22===i.tag&&null!==i.memoizedState?Su(o):null!==s?(s.return=i,Gs=s):Su(o);for(;null!==a;)Gs=a,bu(a),a=a.sibling;Gs=o,Ys=l,Xs=u}wu(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Gs=a):wu(e)}}function wu(e){for(;null!==Gs;){var t=Gs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xs||ru(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Hi(t,a,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;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 u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Bn(d)}}}break;default:throw Error(ae(163))}Xs||512&t.flags&&ou(t)}catch(e){Cc(t,t.return,e)}}if(t===e){Gs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Gs=n;break}Gs=t.return}}function xu(e){for(;null!==Gs;){var t=Gs;if(t===e){Gs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Gs=n;break}Gs=t.return}}function Su(e){for(;null!==Gs;){var t=Gs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(e){Cc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cc(t,o,e)}}var a=t.return;try{ou(t)}catch(e){Cc(t,a,e)}break;case 5:var i=t.return;try{ou(t)}catch(e){Cc(t,i,e)}}}catch(e){Cc(t,t.return,e)}if(t===e){Gs=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Gs=l;break}Gs=t.return}}var ku,Cu=Math.ceil,Eu=we.ReactCurrentDispatcher,Lu=we.ReactCurrentOwner,Nu=we.ReactCurrentBatchConfig,Ru=0,_u=null,Pu=null,Ou=0,Tu=0,Du=Ea(0),zu=0,Au=null,Mu=0,Iu=0,Fu=0,$u=null,ju=null,Uu=0,Vu=1/0,Bu=null,Hu=!1,Wu=null,Ku=null,Qu=!1,qu=null,Yu=0,Xu=0,Ju=null,Gu=-1,Zu=0;function ec(){return 6&Ru?Jt():-1!==Gu?Gu:Gu=Jt()}function tc(e){return 1&e.mode?2&Ru&&0!==Ou?Ou&-Ou:null!==mi.transition?(0===Zu&&(Zu=mn()),Zu):0!==(e=wn)?e:e=void 0===(e=window.event)?16:Jn(e.type):1}function nc(e,t,n,r){if(50<Xu)throw Xu=0,Ju=null,Error(ae(185));yn(e,n,r),2&Ru&&e===_u||(e===_u&&(!(2&Ru)&&(Iu|=n),4===zu&&lc(e,Ou)),rc(e,r),1===n&&0===Ru&&!(1&t.mode)&&(Vu=Jt()+500,ja&&Ba()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-ln(a),l=1<<i,s=o[i];-1===s?0!==(l&n)&&0===(l&r)||(o[i]=hn(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=pn(e,e===_u?Ou:0);if(0===r)null!==n&&qt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qt(n),1===t)0===e.tag?function(e){ja=!0,Va(e)}(sc.bind(null,e)):Va(sc.bind(null,e)),la(function(){!(6&Ru)&&Ba()}),n=null;else{switch(xn(r)){case 1:n=Zt;break;case 4:n=en;break;case 16:default:n=tn;break;case 536870912:n=rn}n=_c(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Gu=-1,Zu=0,6&Ru)throw Error(ae(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pn(e,e===_u?Ou:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=mc(e,r);else{t=r;var o=Ru;Ru|=2;var a=hc();for(_u===e&&Ou===t||(Bu=null,Vu=Jt()+500,fc(e,t));;)try{yc();break}catch(t){pc(e,t)}Ni(),Eu.current=a,Ru=o,null!==Pu?t=0:(_u=null,Ou=0,t=zu)}if(0!==t){if(2===t&&(0!==(o=gn(e))&&(r=o,t=ac(e,o))),1===t)throw n=Au,fc(e,0),lc(e,r),rc(e,Jt()),n;if(6===t)lc(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!lo(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=mc(e,r),2===t&&(a=gn(e),0!==a&&(r=a,t=ac(e,a))),1!==t)))throw n=Au,fc(e,0),lc(e,r),rc(e,Jt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ae(345));case 2:case 5:xc(e,ju,Bu);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=Uu+500-Jt())){if(0!==pn(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=oa(xc.bind(null,e,ju,Bu),t);break}xc(e,ju,Bu);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-ln(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=Jt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cu(r/1960))-r)){e.timeoutHandle=oa(xc.bind(null,e,ju,Bu),r);break}xc(e,ju,Bu);break;default:throw Error(ae(329))}}}return rc(e,Jt()),e.callbackNode===n?oc.bind(null,e):null}function ac(e,t){var n=$u;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=ju,ju=n,null!==t&&ic(t)),e}function ic(e){null===ju?ju=e:ju.push.apply(ju,e)}function lc(e,t){for(t&=~Fu,t&=~Iu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ln(t),r=1<<n;e[n]=-1,t&=~r}}function sc(e){if(6&Ru)throw Error(ae(327));Sc();var t=pn(e,0);if(!(1&t))return rc(e,Jt()),null;var n=mc(e,t);if(0!==e.tag&&2===n){var r=gn(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Au,fc(e,0),lc(e,t),rc(e,Jt()),n;if(6===n)throw Error(ae(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,ju,Bu),rc(e,Jt()),null}function uc(e,t){var n=Ru;Ru|=1;try{return e(t)}finally{0===(Ru=n)&&(Vu=Jt()+500,ja&&Ba())}}function cc(e){null!==qu&&0===qu.tag&&!(6&Ru)&&Sc();var t=Ru;Ru|=1;var n=Nu.transition,r=wn;try{if(Nu.transition=null,wn=1,e)return e()}finally{wn=r,Nu.transition=n,!(6&(Ru=t))&&Ba()}}function dc(){Tu=Du.current,La(Du)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Pu)for(n=Pu.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&za();break;case 3:Ji(),La(Pa),La(_a),rl();break;case 5:Zi(r);break;case 4:Ji();break;case 13:case 19:La(el);break;case 10:Ri(r.type._context);break;case 22:case 23:dc()}n=n.return}if(_u=e,Pu=e=Dc(e.current,null),Ou=Tu=t,zu=0,Au=null,Fu=Iu=Mu=0,ju=$u=null,null!==Ti){for(t=0;t<Ti.length;t++)if(null!==(r=(n=Ti[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}Ti=null}return e}function pc(e,t){for(;;){var n=Pu;try{if(Ni(),ol.current=Gl,cl){for(var r=ll.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}cl=!1}if(il=0,ul=sl=ll=null,dl=!1,fl=0,Lu.current=null,null===n||null===n.return){zu=1,Au=t,Pu=null;break}e:{var a=e,i=n.return,l=n,s=t;if(t=Ou,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=l,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=ms(i);if(null!==p){p.flags&=-257,vs(p,i,l,0,t),1&p.mode&&gs(a,u,t),s=u;var h=(t=p).updateQueue;if(null===h){var g=new Set;g.add(s),t.updateQueue=g}else h.add(s);break e}if(!(1&t)){gs(a,u,t),gc();break e}s=Error(ae(426))}else if(ai&&1&l.mode){var m=ms(i);if(null!==m){!(65536&m.flags)&&(m.flags|=256),vs(m,i,l,0,t),gi(us(s,l));break e}}a=s=us(s,l),4!==zu&&(zu=2),null===$u?$u=[a]:$u.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Vi(a,ps(0,s,t));break e;case 1:l=s;var v=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Ku&&Ku.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Vi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(e){t=e,Pu===n&&null!==n&&(Pu=n=n.return);continue}break}}function hc(){var e=Eu.current;return Eu.current=Gl,null===e?Gl:e}function gc(){0!==zu&&3!==zu&&2!==zu||(zu=4),null===_u||!(268435455&Mu)&&!(268435455&Iu)||lc(_u,Ou)}function mc(e,t){var n=Ru;Ru|=2;var r=hc();for(_u===e&&Ou===t||(Bu=null,fc(e,t));;)try{vc();break}catch(t){pc(e,t)}if(Ni(),Ru=n,Eu.current=r,null!==Pu)throw Error(ae(261));return _u=null,Ou=0,zu}function vc(){for(;null!==Pu;)bc(Pu)}function yc(){for(;null!==Pu&&!Yt();)bc(Pu)}function bc(e){var t=ku(e.alternate,e,Tu);e.memoizedProps=e.pendingProps,null===t?wc(e):Pu=t,Lu.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=qs(n,t)))return n.flags&=32767,void(Pu=n);if(null===e)return zu=6,void(Pu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Qs(n,t,Tu)))return void(Pu=n);if(null!==(t=t.sibling))return void(Pu=t);Pu=t=e}while(null!==t);0===zu&&(zu=5)}function xc(e,t,n){var r=wn,o=Nu.transition;try{Nu.transition=null,wn=1,function(e,t,n,r){do{Sc()}while(null!==qu);if(6&Ru)throw Error(ae(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(ae(177));e.callbackNode=null,e.callbackPriority=0;var a=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-ln(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===_u&&(Pu=_u=null,Ou=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Qu||(Qu=!0,_c(tn,function(){return Sc(),null})),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=Nu.transition,Nu.transition=null;var i=wn;wn=1;var l=Ru;Ru|=4,Lu.current=null,function(e,t){if(ta=Wn,ho(e=po())){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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var i=0,l=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==o&&3!==d.nodeType||(l=i+o),d!==a||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(l=i),f===a&&++c===r&&(s=i),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(na={focusedElem:e,selectionRange:n},Wn=!1,Gs=t;null!==Gs;)if(e=(t=Gs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Gs=e;else for(;null!==Gs;){t=Gs;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,m=h.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),m);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(ae(163))}}catch(e){Cc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Gs=e;break}Gs=t.return}h=tu,tu=!1}(e,n),mu(n,e),go(na),Wn=!!ta,na=ta=null,e.current=n,yu(n),Xt(),Ru=l,wn=i,Nu.transition=a}else e.current=n;if(Qu&&(Qu=!1,qu=e,Yu=o),a=e.pendingLanes,0===a&&(Ku=null),function(e){if(an&&"function"==typeof an.onCommitFiberRoot)try{an.onCommitFiberRoot(on,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rc(e,Jt()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hu)throw Hu=!1,e=Wu,Wu=null,e;!!(1&Yu)&&0!==e.tag&&Sc(),a=e.pendingLanes,1&a?e===Ju?Xu++:(Xu=0,Ju=e):Xu=0,Ba()}(e,t,n,r)}finally{Nu.transition=o,wn=r}return null}function Sc(){if(null!==qu){var e=xn(Yu),t=Nu.transition,n=wn;try{if(Nu.transition=null,wn=16>e?16:e,null===qu)var r=!1;else{if(e=qu,qu=null,Yu=0,6&Ru)throw Error(ae(331));var o=Ru;for(Ru|=4,Gs=e.current;null!==Gs;){var a=Gs,i=a.child;if(16&Gs.flags){var l=a.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(Gs=u;null!==Gs;){var c=Gs;switch(c.tag){case 0:case 11:case 15:nu(8,c,a)}var d=c.child;if(null!==d)d.return=c,Gs=d;else for(;null!==Gs;){var f=(c=Gs).sibling,p=c.return;if(au(c),c===u){Gs=null;break}if(null!==f){f.return=p,Gs=f;break}Gs=p}}}var h=a.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}Gs=a}}if(2064&a.subtreeFlags&&null!==i)i.return=a,Gs=i;else e:for(;null!==Gs;){if(2048&(a=Gs).flags)switch(a.tag){case 0:case 11:case 15:nu(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Gs=v;break e}Gs=a.return}}var y=e.current;for(Gs=y;null!==Gs;){var b=(i=Gs).child;if(2064&i.subtreeFlags&&null!==b)b.return=i,Gs=b;else e:for(i=y;null!==Gs;){if(2048&(l=Gs).flags)try{switch(l.tag){case 0:case 11:case 15:ru(9,l)}}catch(e){Cc(l,l.return,e)}if(l===i){Gs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Gs=w;break e}Gs=l.return}}if(Ru=o,Ba(),an&&"function"==typeof an.onPostCommitFiberRoot)try{an.onPostCommitFiberRoot(on,e)}catch(e){}r=!0}return r}finally{wn=n,Nu.transition=t}}return!1}function kc(e,t,n){e=ji(e,t=ps(0,t=us(n,t),1),1),t=ec(),null!==e&&(yn(e,1,t),rc(e,t))}function Cc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ku||!Ku.has(r))){t=ji(t,e=hs(t,e=us(n,e),1),1),e=ec(),null!==t&&(yn(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,_u===e&&(Ou&n)===n&&(4===zu||3===zu&&(130023424&Ou)===Ou&&500>Jt()-Uu?fc(e,0):Fu|=n),rc(e,t)}function Lc(e,t){0===t&&(1&e.mode?(t=dn,!(130023424&(dn<<=1))&&(dn=4194304)):t=1);var n=ec();null!==(e=Ai(e,t))&&(yn(e,t,n),rc(e,n))}function Nc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Lc(e,n)}function Rc(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(ae(314))}null!==r&&r.delete(t),Lc(e,n)}function _c(e,t){return Qt(e,t)}function Pc(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 Oc(e,t,n,r){return new Pc(e,t,n,r)}function Tc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Oc(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 zc(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)Tc(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ke:return Ac(n.children,o,a,t);case Ce:i=8,o|=8;break;case Ee:return(e=Oc(12,n,t,2|o)).elementType=Ee,e.lanes=a,e;case _e:return(e=Oc(13,n,t,o)).elementType=_e,e.lanes=a,e;case Pe:return(e=Oc(19,n,t,o)).elementType=Pe,e.lanes=a,e;case De:return Mc(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Le:i=10;break e;case Ne:i=9;break e;case Re:i=11;break e;case Oe:i=14;break e;case Te:i=16,r=null;break e}throw Error(ae(130,null==e?e:typeof e,""))}return(t=Oc(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ac(e,t,n,r){return(e=Oc(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Oc(22,e,r,t)).elementType=De,e.lanes=n,e.stateNode={isHidden:!1},e}function Ic(e,t,n){return(e=Oc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Oc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $c(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=vn(0),this.expirationTimes=vn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vn(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function jc(e,t,n,r,o,a,i,l,s){return e=new $c(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Oc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ii(a),e}function Uc(e){if(!e)return Ra;e:{if(Vt(e=e._reactInternals)!==e||1!==e.tag)throw Error(ae(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Da(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ae(171))}if(1===e.tag){var n=e.type;if(Da(n))return Ma(e,n,t)}return t}function Vc(e,t,n,r,o,a,i,l,s){return(e=jc(n,r,!0,e,0,a,0,l,s)).context=Uc(null),n=e.current,(a=$i(r=ec(),o=tc(n))).callback=null!=t?t:null,ji(n,a,o),e.current.lanes=o,yn(e,o,r),rc(e,r),e}function Bc(e,t,n,r){var o=t.current,a=ec(),i=tc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=$i(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ji(o,t,i))&&(nc(e,o,i,a),Ui(e,o,i)),i}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}ku=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pa.current)bs=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:_s(t),hi();break;case 5:Gi(t);break;case 1:Da(t.type)&&Ia(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Na(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Na(el,1&el.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Is(e,t,n):(Na(el,1&el.current),null!==(e=Hs(e,t,n))?e.sibling:null);Na(el,1&el.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Vs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Na(el,el.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=!!(131072&e.flags)}else bs=!1,ai&&1048576&t.flags&&ei(t,Qa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bs(e,t),e=t.pendingProps;var o=Ta(t,_a.current);Pi(t,n),o=ml(null,t,r,e,o,n);var a=vl();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,Da(r)?(a=!0,Ia(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ii(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ss(t,r,e,n),t=Rs(null,t,r,!0,a,n)):(t.tag=0,ai&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Tc(e)?1:0;if(null!=e){if((e=e.$$typeof)===Re)return 11;if(e===Oe)return 14}return 2}(r),e=ns(r,e),o){case 0:t=Ls(null,t,r,e,n);break e;case 1:t=Ns(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ns(r.type,e),n);break e}throw Error(ae(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ls(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ns(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(_s(t),null===e)throw Error(ae(387));r=t.pendingProps,o=(a=t.memoizedState).element,Fi(e,t),Bi(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,r,n,o=us(Error(ae(423)),t));break e}if(r!==o){t=Ps(e,t,r,n,o=us(Error(ae(424)),t));break e}for(oi=ca(t.stateNode.containerInfo.firstChild),ri=t,ai=!0,ii=null,n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Gi(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,ra(r,o)?i=null:null!==a&&ra(r,a)&&(t.flags|=32),Es(e,t),ws(e,t,i,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Is(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Na(ki,r._currentValue),r._currentValue=i,null!==a)if(lo(a.value,i)){if(a.children===o.children&&!Pa.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){i=a.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=$i(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),_i(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(ae(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),_i(i,n,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Pi(t,n),r=r(o=Oi(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),Ss(e,t,r,o=ns(r.type,o),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),Bs(e,t),t.tag=1,Da(r)?(e=!0,Ia(t)):e=!1,Pi(t,n),is(t,r,o),ss(t,r,o,n),Rs(null,t,r,!0,e,n);case 19:return Vs(e,t,n);case 22:return Cs(e,t,n)}throw Error(ae(156,t.tag))};var Qc="function"==typeof reportError?reportError:function(e){console.error(e)};function qc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Gc(){}function Zc(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=Hc(i);l.call(e)}}Bc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Hc(i);a.call(e)}}var i=Vc(t,r,e,0,null,!1,0,"",Gc);return e._reactRootContainer=i,e[ga]=i.current,Bo(8===e.nodeType?e.parentNode:e),cc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Hc(s);l.call(e)}}var s=jc(e,0,!1,null,0,!1,0,"",Gc);return e._reactRootContainer=s,e[ga]=s.current,Bo(8===e.nodeType?e.parentNode:e),cc(function(){Bc(t,s,n,r)}),s}(n,t,e,o,r);return Hc(i)}Yc.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(ae(409));Bc(e,t,null,null)},Yc.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cc(function(){Bc(null,e,null,null)}),t[ga]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=En();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zn.length&&0!==t&&t<zn[n].priority;n++);zn.splice(n,0,e),0===n&&Fn(e)}},Sn=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=fn(t.pendingLanes);0!==n&&(bn(t,1|n),rc(t,Jt()),!(6&Ru)&&(Vu=Jt()+500,Ba()))}break;case 13:cc(function(){var t=Ai(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}}),Kc(e,1)}},kn=function(e){if(13===e.tag){var t=Ai(e,134217728);if(null!==t)nc(t,e,134217728,ec());Kc(e,134217728)}},Cn=function(e){if(13===e.tag){var t=tc(e),n=Ai(e,t);if(null!==n)nc(n,e,t,ec());Kc(e,t)}},En=function(){return wn},Ln=function(e,t){var n=wn;try{return wn=e,t()}finally{wn=n}},St=function(e,t,n){switch(t){case"input":if(Ge(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=Sa(r);if(!o)throw Error(ae(90));Qe(r),Ge(r,o)}}}break;case"textarea":at(e,n);break;case"select":null!=(t=n.value)&&nt(e,!!n.multiple,t,!1)}},Rt=uc,_t=cc;var ed={usingClientEntryPoint:!1,Events:[wa,xa,Sa,Lt,Nt,uc]},td={findFiberByHostInstance:ba,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nd={bundleType:td.bundleType,version:td.version,rendererPackageName:td.rendererPackageName,rendererConfig:td.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:we.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Wt(e))?null:e.stateNode},findFiberByHostInstance:td.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rd.isDisabled&&rd.supportsFiber)try{on=rd.inject(nd),an=rd}catch(ct){}}ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ed,ee.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(ae(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Se,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},ee.createRoot=function(e,t){if(!Xc(e))throw Error(ae(299));var n=!1,r="",o=Qc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=jc(e,1,!1,null,0,n,0,r,o),e[ga]=t.current,Bo(8===e.nodeType?e.parentNode:e),new qc(t)},ee.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(ae(188));throw e=Object.keys(e).join(","),Error(ae(268,e))}return e=null===(e=Wt(t))?null:e.stateNode},ee.flushSync=function(e){return cc(e)},ee.hydrate=function(e,t,n){if(!Jc(t))throw Error(ae(200));return Zc(null,e,t,!0,n)},ee.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(ae(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=Qc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=Vc(t,null,e,1,null!=n?n:null,o,0,a,i),e[ga]=t.current,Bo(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 Yc(t)},ee.render=function(e,t,n){if(!Jc(t))throw Error(ae(200));return Zc(null,e,t,!1,n)},ee.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(ae(40));return!!e._reactRootContainer&&(cc(function(){Zc(null,null,e,!1,function(){e._reactRootContainer=null,e[ga]=null})}),!0)},ee.unstable_batchedUpdates=uc,ee.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(ae(200));if(null==e||void 0===e._reactInternals)throw Error(ae(38));return Zc(e,t,n,!1,r)},ee.version="18.3.1-next-f1338f8080-20240426",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)}}(),Z.exports=ee;var od=Z.exports;function ad(e,t){return null!=e?e:t()}function id(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],a=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=a(n)):"call"!==o&&"optionalCall"!==o||(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}const ld=e=>"string"==typeof e,sd=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},ud=e=>null==e?"":""+e,cd=/###/g,dd=e=>e&&e.indexOf("###")>-1?e.replace(cd,"."):e,fd=e=>!e||ld(e),pd=(e,t,n)=>{const r=ld(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(fd(e))return{};const t=dd(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return fd(e)?{}:{obj:e,k:dd(r[o])}},hd=(e,t,n)=>{const{obj:r,k:o}=pd(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let a=t[t.length-1],i=t.slice(0,t.length-1),l=pd(e,i,Object);for(;void 0===l.obj&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=pd(e,i,Object),id([l,"optionalAccess",e=>e.obj])&&void 0!==l.obj[`${l.k}.${a}`]&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},gd=(e,t)=>{const{obj:n,k:r}=pd(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},md=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?ld(e[r])||e[r]instanceof String||ld(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):md(e[r],t[r],n):e[r]=t[r]);return e},vd=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var yd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const bd=e=>ld(e)?e.replace(/[&<>"'\/]/g,e=>yd[e]):e;const wd=[" ",",","?","!",";"],xd=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),Sd=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,a="";for(let i=e;i<r.length;++i)if(i!==e&&(a+=n),a+=r[i],t=o[a],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&i<r.length-1)continue;e+=i-e+1;break}o=t}return o},kd=e=>id([e,"optionalAccess",e=>e.replace,"call",e=>e("_","-")]),Cd={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){id([console,"optionalAccess",t=>t[e],"optionalAccess",e=>e.apply,"optionalCall",e=>e(console,t)])}};class Ed{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||Cd,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(ld(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Ed(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Ed(this.logger,e)}}var Ld=new Ed;class Nd{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n.apply(n,[e,...t])})}}}class Rd extends Nd{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],n&&(Array.isArray(n)?i.push(...n):ld(n)&&o?i.push(...n.split(o)):i.push(n)));const l=gd(this.data,i);return!l&&!t&&!n&&e.indexOf(".")>-1&&(e=i[0],t=i[1],n=i.slice(2).join(".")),!l&&a&&ld(n)?Sd(id([this,"access",e=>e.data,"optionalAccess",t=>t[e],"optionalAccess",e=>e[t]]),n,o):l}addResource(e,t,n,r,o={silent:!1}){const a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let i=[e,t];n&&(i=i.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(i=e.split("."),r=t,t=i[1]),this.addNamespaces(t),hd(this.data,i,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(ld(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,a={silent:!1,skipCopy:!1}){let i=[e,t];e.indexOf(".")>-1&&(i=e.split("."),r=n,n=t,t=i[1]),this.addNamespaces(t);let l=gd(this.data,i)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?md(l,n,o):l={...l,...n},hd(this.data,i,l),a.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var _d={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=ad(id([this,"access",e=>e.processors,"access",t=>t[e],"optionalAccess",e=>e.process,"call",e=>e(t,n,r,o)]),()=>t)}),t}};const Pd=Symbol("i18next/PATH_KEY");function Od(e,t){const{[Pd]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(id([n,"optionalAccess",e=>e.revoke,"optionalCall",e=>e()]),o===Pd?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return n.join(ad(id([t,"optionalAccess",e=>e.keySeparator]),()=>"."))}const Td={},Dd=e=>!ld(e)&&"boolean"!=typeof e&&"number"!=typeof e;class zd extends Nd{constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Ld.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===id([r,"optionalAccess",e=>e.res]))return!1;const o=Dd(r.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const a=n&&e.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=wd.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=xd.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let a=!o.test(e);if(!a){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(a=!0)}return a})(e,n,r));if(a&&!i){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:ld(o)?[o]:o};const a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return{key:e,namespaces:ld(o)?[o]:o}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=Od(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(e[e.length-1],r),s=l[l.length-1];let u=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===id([c,"optionalAccess",e=>e.toLowerCase,"call",e=>e()]))return d?o?{res:`${s}${u}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:`${s}${u}${i}`:o?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:i;const f=this.resolve(e,r);let p=id([f,"optionalAccess",e=>e.res]);const h=id([f,"optionalAccess",e=>e.usedKey])||i,g=id([f,"optionalAccess",e=>e.exactUsedKey])||i,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==r.count&&!ld(r.count),b=zd.hasDefaultValue(r),w=y?this.pluralResolver.getSuffix(c,r.count,r):"",x=r.ordinal&&y?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",S=y&&!r.ordinal&&0===r.count,k=S&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${x}`]||r.defaultValue;let C=p;v&&!p&&b&&(C=k);const E=Dd(C),L=Object.prototype.toString.apply(C);if(!(v&&C&&E&&["[object Number]","[object Function]","[object RegExp]"].indexOf(L)<0)||ld(m)&&Array.isArray(C))if(v&&ld(m)&&Array.isArray(p))p=p.join(m),p&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(p)&&b&&(t=!0,p=k),this.isValidLookup(p)||(o=!0,p=i);const l=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=b&&k!==p&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",c,s,i,d?k:p),a){const e=this.resolve(i,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=b&&n!==p?n:l;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,t,o,d,r):id([this,"access",e=>e.backendConnector,"optionalAccess",e=>e.saveMissing])&&this.backendConnector.saveMissing(e,s,t,o,d,r),this.emit("missingKey",e,s,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);S&&r[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],i+t,r[`defaultValue${t}`]||k)})}):n(e,i,k))}p=this.extendTranslation(p,e,r,f,n),o&&p===i&&this.options.appendNamespaceToMissingKey&&(p=`${s}${u}${i}`),(o||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${u}${i}`:i,t?p:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,C,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(f.res=e,f.usedParams=this.getUsedParamsDetails(r),f):e}if(a){const e=Array.isArray(C),t=e?[]:{},n=e?g:h;for(const e in C)if(Object.prototype.hasOwnProperty.call(C,e)){const o=`${n}${a}${e}`;t[e]=b&&!p?this.translate(o,{...r,defaultValue:Dd(k)?k[e]:void 0,joinArrays:!1,ns:l}):this.translate(o,{...r,joinArrays:!1,ns:l}),t[e]===o&&(t[e]=C[e])}p=t}}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(r),f):p}extendTranslation(e,t,n,r,o){if(id([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.parse]))e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a=ld(e)&&(void 0!==id([n,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.skipOnVariables])?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let i;if(a){const t=e.match(this.interpolator.nestingRegexp);i=t&&t.length}let l=n.replace&&!ld(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language||r.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);i<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>id([o,"optionalAccess",e=>e[0]])!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,i=ld(a)?[a]:a;return null!=e&&id([i,"optionalAccess",e=>e.length])&&!1!==n.applyPostProcessor&&(e=_d.handle(i,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,o,a,i;return ld(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;const l=this.extractFromKey(e,t),s=l.key;r=s;let u=l.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==t.count&&!ld(t.count),d=c&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(ld(t.context)||"number"==typeof t.context)&&""!==t.context,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(n)||(i=e,Td[`${p[0]}-${e}`]||!id([this,"access",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace])||id([this,"access",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace,"call",e=>e(i)])||(Td[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;const i=[s];if(id([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.addLookupKeys]))this.i18nFormat.addLookupKeys(i,s,r,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&0===e.indexOf(o)&&i.push(s+e.replace(o,this.options.pluralSeparator)),i.push(s+e),d&&i.push(s+n)),f){const r=`${s}${this.options.contextSeparator||"_"}${t.context}`;i.push(r),c&&(t.ordinal&&0===e.indexOf(o)&&i.push(r+e.replace(o,this.options.pluralSeparator)),i.push(r+e),d&&i.push(r+n))}}let l;for(;l=i.pop();)this.isValidLookup(n)||(o=l,n=this.getResource(r,e,l,t))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:a,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return id([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.getResource])?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!ld(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class Ad{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ld.create("languageUtils")}getScriptPartFromCode(e){if(!(e=kd(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=kd(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(ld(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),ld(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return ld(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):ld(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}}const Md={zero:0,one:1,two:2,few:3,many:4,other:5},Id={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Fd{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Ld.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=kd("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let a;try{a=new Intl.PluralRules(n,{type:r})}catch(n){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Id;if(!e.match(/-|_/))return Id;const r=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(r,t)}return this.pluralRulesCache[o]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),id([n,"optionalAccess",e=>e.resolvedOptions,"call",e=>e(),"access",e=>e.pluralCategories,"access",e=>e.length])>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Md[e]-Md[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const $d=(e,t,n,r=".",o=!0)=>{let a=((e,t,n)=>{const r=gd(e,n);return void 0!==r?r:gd(t,n)})(e,t,n);return!a&&o&&ld(n)&&(a=Sd(e,n,r),void 0===a&&(a=Sd(t,n,r))),a},jd=e=>e.replace(/\$/g,"$$$$");class Ud{constructor(e={}){this.logger=Ld.create("interpolator"),this.options=e,this.format=id([e,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.format])||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:a,suffix:i,suffixEscaped:l,formatSeparator:s,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:bd,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?vd(o):a||"{{",this.suffix=i?vd(i):l||"}}",this.formatSeparator=s||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?vd(d):f||vd("$t("),this.nestingSuffix=p?vd(p):h||vd(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>id([e,"optionalAccess",e=>e.source])===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,a,i;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=e=>{if(e.indexOf(this.formatSeparator)<0){const o=$d(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),a=o.shift().trim(),i=o.join(this.formatSeparator).trim();return this.format($d(t,l,a,this.options.keySeparator,this.options.ignoreJSONStructure),i,n,{...r,...t,interpolationkey:a})};this.resetRegExp();const u=id([r,"optionalAccess",e=>e.missingInterpolationHandler])||this.options.missingInterpolationHandler,c=void 0!==id([r,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.skipOnVariables])?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>jd(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?jd(this.escape(e)):jd(e)}].forEach(t=>{for(i=0;o=t.regex.exec(e);){const n=o[1].trim();if(a=s(n),void 0===a)if("function"==typeof u){const t=u(e,o,r);a=ld(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a="";else{if(c){a=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=""}else ld(a)||this.useRawValueToEscape||(a=ud(a));const l=t.safeValue(a);if(e=e.replace(o[0],l),c?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,o,a;const i=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,a);const i=o.match(/'/g),l=o.match(/"/g);(ad(id([i,"optionalAccess",e=>e.length]),()=>0)%2==0&&!l||l.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let l=[];a={...n},a=a.replace&&!ld(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const s=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==s&&(l=r[1].slice(s).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,s)),o=t(i.call(this,r[1].trim(),a),a),o&&r[0]===e&&!ld(o))return o;ld(o)||(o=ud(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),l.length&&(o=l.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}const Vd=e=>{const t={};return(n,r,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});const i=r+JSON.stringify(a);let l=t[i];return l||(l=e(kd(r),o),t[i]=l),l(n)}},Bd=e=>(t,n,r)=>e(kd(n),r)(t);class Hd{constructor(e={}){this.logger=Ld.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?Vd:Bd;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Vd(t)}format(e,t,n,r={}){const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const a=o.reduce((e,t)=>{const{formatName:o,formatOptions:a}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),a=t.trim();n[a]||(n[a]=o),"false"===o&&(n[a]=!1),"true"===o&&(n[a]=!0),isNaN(o)||(n[a]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const i=id([r,"optionalAccess",e=>e.formatParams,"optionalAccess",e=>e[r.interpolationkey]])||{},l=i.locale||i.lng||r.locale||r.lng||n;t=this.formats[o](e,l,{...a,...r,...i})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return a}}class Wd extends Nd{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Ld.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],id([this,"access",e=>e.backend,"optionalAccess",e=>e.init,"optionalCall",e=>e(n,r.backend,r)])}queueLoad(e,t,n,r){const o={},a={},i={},l={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const i=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[i]=2:this.state[i]<0||(1===this.state[i]?void 0===a[i]&&(a[i]=!0):(this.state[i]=1,r=!1,void 0===a[i]&&(a[i]=!0),void 0===o[i]&&(o[i]=!0),void 0===l[t]&&(l[t]=!0)))}),r||(i[e]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){const r=e.split("|"),o=r[0],a=r[1];t&&this.emit("failedLoading",o,a,t),!t&&n&&this.store.addResourceBundle(o,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const i={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=pd(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],a),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{i[e]||(i[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===i[e][t]&&(i[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,o=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:a});this.readingCalls++;const i=(i,l)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}i&&l&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,a)},o):a(i,l)},l=this.backend[n].bind(this.backend);if(2!==l.length)return l(e,t,i);try{const n=l(e,t);n&&"function"==typeof n.then?n.then(e=>i(null,e)).catch(i):i(null,n)}catch(e){i(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();ld(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ld(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,o,a={},i=()=>{}){if(!id([this,"access",e=>e.services,"optionalAccess",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace])||id([this,"access",e=>e.services,"optionalAccess",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace,"call",e=>e(t)])){if(null!=n&&""!==n){if(id([this,"access",e=>e.backend,"optionalAccess",e=>e.create])){const l={...a,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;o=5===s.length?s(e,t,n,r,l):s(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>i(null,e)).catch(i):i(null,o)}catch(e){i(e)}else s(e,t,n,r,i,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const Kd=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),ld(e[1])&&(t.defaultValue=e[1]),ld(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Qd=e=>(ld(e.ns)&&(e.ns=[e.ns]),ld(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ld(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),id([e,"access",e=>e.supportedLngs,"optionalAccess",e=>e.indexOf,"optionalCall",e=>e("cimode")])<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),qd=()=>{};class Yd extends Nd{constructor(e={},t){var n;if(super(),this.options=Qd(e),this.services={},this.logger=Ld,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(ld(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=Kd();var r;this.options={...n,...this.options,...Qd(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(id([r=this,"optionalAccess",e=>e.modules,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.name,"optionalAccess",e=>e.indexOf,"call",e=>e("Locize")])>0||id([r,"optionalAccess",e=>e.modules,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.constructor,"optionalAccess",e=>e.name,"optionalAccess",e=>e.indexOf,"call",e=>e("Locize")])>0||id([r,"optionalAccess",e=>e.options,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.backends])&&r.options.backend.backends.some(e=>id([e,"optionalAccess",e=>e.name,"access",e=>e.indexOf,"call",e=>e("Locize")])>0||id([e,"optionalAccess",e=>e.constructor,"optionalAccess",e=>e.name,"access",e=>e.indexOf,"call",e=>e("Locize")])>0))||"undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙");const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?Ld.init(o(this.modules.logger),this.options):Ld.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Hd;const t=new Ad(this.options);this.store=new Rd(this.options.resources,this.options);const r=this.services;r.logger=Ld,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new Fd(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(r.formatter=o(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new Ud(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new Wd(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(r.languageDetector=o(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=o(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new zd(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=qd),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const a=sd(),i=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),a}loadResources(e,t=qd){let n=t;const r=ld(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===id([r,"optionalAccess",e=>e.toLowerCase,"call",e=>e()])&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)t(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}id([this,"access",e=>e.options,"access",e=>e.preload,"optionalAccess",e=>e.forEach,"optionalCall",e=>e(e=>t(e))]),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=sd();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=qd),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&_d.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=sd();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n=ld(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(ld(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),id([this,"access",e=>e.services,"access",e=>e.languageDetector,"optionalAccess",e=>e.cacheUserLanguage,"optionalCall",e=>e(a)])),this.loadResources(a,e=>{o(e,a)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...o)=>{let a;a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t},a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);const i=this.options.keySeparator||".";let l;return a.keyPrefix&&Array.isArray(e)?l=e.map(e=>("function"==typeof e&&(e=Od(e,{...this.options,...t})),`${a.keyPrefix}${i}${e}`)):("function"==typeof e&&(e=Od(e,{...this.options,...t})),l=a.keyPrefix?`${a.keyPrefix}${i}${e}`:e),this.t(l,a)};return ld(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return id([this,"access",e=>e.translator,"optionalAccess",e=>e.translate,"call",t=>t(...e)])}exists(...e){return id([this,"access",e=>e.translator,"optionalAccess",e=>e.exists,"call",t=>t(...e)])}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const a=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,a);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(n,e)||r&&!a(o,e)))}loadNamespaces(e,t){const n=sd();return this.options.ns?(ld(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=sd();ld(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(id([this,"access",e=>e.languages,"optionalAccess",e=>e.length])>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=id([this,"access",e=>e.services,"optionalAccess",e=>e.languageUtils])||new Ad(Kd());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new Yd(e,t);return n.createInstance=Yd.createInstance,n}cloneInstance(e={},t=qd){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new Yd(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));if(["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});o.store=new Rd(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...Kd().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new Ud(n)}return o.translator=new zd(o.services,r),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Xd=Yd.createInstance();Xd.createInstance,Xd.dir,Xd.init,Xd.loadResources,Xd.reloadResources,Xd.use,Xd.changeLanguage,Xd.getFixedT,Xd.t,Xd.exists,Xd.setDefaultNamespace,Xd.hasLoadedNamespace,Xd.loadNamespaces,Xd.loadLanguages;Xd.init({fallbackLng:"en",lng:"en",debug:!0,resources:{en:{translation:{categorize:{limitMaxChoicesPerCategory:"You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",maxChoicesPerCategoryRestriction:"To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s]."},ebsr:{part:"Part {{index}}"},numberLine:{addElementLimit_one:"You can only add {{count}} element",addElementLimit_other:"You can only add {{count}} elements",clearAll:"Clear all"},imageClozeAssociation:{reachedLimit_one:"You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.",reachedLimit_other:"Full"},drawingResponse:{fillColor:"Fill color",outlineColor:"Outline color",noFill:"No fill",lightblue:"Light blue",lightyellow:"Light yellow",red:"Red",orange:"Orange",yellow:"Yellow",violet:"Violet",blue:"Blue",green:"Green",white:"White",black:"Black",onDoubleClick:"Double click to edit this text. Press Enter to submit."},charting:{addCategory:"Add category",actions:"Actions",add:"Add",delete:"Delete",newLabel:"New label",reachedLimit_other:"There can't be more than {{count}} categories.",keyLegend:{incorrectAnswer:"Student incorrect answer",correctAnswer:"Student correct answer",correctKeyAnswer:"Answer key correct"}},graphing:{point:"Point",circle:"Circle",line:"Line",parabola:"Parabola",absolute:"Absolute Value",exponential:"Exponential",polygon:"Polygon",ray:"Ray",segment:"Segment",sine:"Sine",vector:"Vector",label:"Label",redo:"Redo",reset:"Reset"},mathInline:{primaryCorrectWithAlternates:"Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct."},multipleChoice:{minSelections:"Select at least {{minSelections}}.",maxSelections_one:"Only {{maxSelections}} answer is allowed.",maxSelections_other:"Only {{maxSelections}} answers are allowed.",minmaxSelections_equal:"Select {{minSelections}}.",minmaxSelections_range:"Select between {{minSelections}} and {{maxSelections}}."},selectText:{correctAnswerSelected:"Correct",correctAnswerNotSelected:"Correct Answer Not Selected",incorrectSelection:"Incorrect Selection",key:"Key"}},common:{undo:"Undo",clearAll:"Clear all",correct:"Correct",incorrect:"Incorrect",showCorrectAnswer:"Show correct answer",hideCorrectAnswer:"Hide correct answer",commonCorrectAnswerWithAlternates:"Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.",warning:"Warning",showNote:"Show Note",hideNote:"Hide Note",cancel:"Cancel"}},es:{translation:{categorize:{limitMaxChoicesPerCategory:"Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",maxChoicesPerCategoryRestriction:"Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta"},ebsr:{part:"Parte {{index}}"},numberLine:{addElementLimit_one:"Solo puedes agregar {{count}} elemento",addElementLimit_other:"Solo puedes agregar {{count}} elementos",clearAll:"Borrar todo"},imageClozeAssociation:{reachedLimit_one:"Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",reachedLimit_other:"Lleno"},drawingResponse:{fillColor:"Color de relleno",outlineColor:"Color del contorno",noFill:"Sin relleno",lightblue:"Azul claro",lightyellow:"Amarillo claro",red:"Rojo",orange:"Naranja",yellow:"Amarillo",violet:"Violeta",blue:"Azul",green:"Verde",white:"Blanco",black:"Negro",onDoubleClick:"Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar"},charting:{addCategory:"Añadir categoría",actions:"Acciones",add:"Añadir",delete:"Eliminar",newLabel:"Nueva etiqueta",reachedLimit_other:"No puede haber más de {{count}} categorías.",keyLegend:{incorrectAnswer:"Respuesta incorrecta del estudiante",correctAnswer:"Respuesta correcta del estudiante",correctKeyAnswer:"Clave de respuesta correcta"}},graphing:{point:"Punto",circle:"Circulo",line:"Línea",parabola:"Parábola",absolute:"Valor absoluto",exponential:"Exponencial",polygon:"Polígono",ray:"Semirrecta",segment:"Segmento ",sine:"Seno",vector:"Vector",label:"Etiqueta",redo:"Rehacer",reset:"Reiniciar"},mathInline:{primaryCorrectWithAlternates:"Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas."},multipleChoice:{minSelections:"Seleccione al menos {{minSelections}}.",maxSelections_one:"Sólo se permite {{maxSelections}} respuesta.",maxSelections_other:"Sólo se permiten {{maxSelections}} respuestas.",minmaxSelections_equal:"Seleccione {{minSelections}}.",minmaxSelections_range:"Seleccione entre {{minSelections}} y {{maxSelections}}."},selectText:{correctAnswerSelected:"Respuesta Correcta",correctAnswerNotSelected:"Respuesta Correcta No Seleccionada",incorrectSelection:"Selección Incorrecta",key:"Clave"}},common:{undo:"Deshacer",clearAll:"Borrar todo",correct:"Correct",incorrect:"Incorrect",showCorrectAnswer:"Mostrar respuesta correcta",hideCorrectAnswer:"Ocultar respuesta correcta",commonCorrectAnswerWithAlternates:"Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.",warning:"Advertencia",showNote:"Mostrar Nota",hideNote:"Ocultar Nota",cancel:"Cancelar"}}}});var Jd={translator:{...Xd,t:(e,t)=>{const{lng:n}=t;switch(n){case"en_US":case"en-US":t.lng="en";break;case"es_ES":case"es-ES":case"es_MX":case"es-MX":t.lng="es"}return Xd.t(e,{lng:n,...t})}},languageOptions:[{value:"en_US",label:"English (US)"},{value:"es_ES",label:"Spanish"}]};const Gd="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Zd(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function ef(e){return"nodeType"in e}function tf(e){var t,n;return e?Zd(e)?e:ef(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function nf(e){const{Document:t}=tf(e);return e instanceof t}function rf(e){return!Zd(e)&&e instanceof tf(e).HTMLElement}function of(e){return e instanceof tf(e).SVGElement}function af(e){return e?Zd(e)?e.document:ef(e)?nf(e)?e:rf(e)||of(e)?e.ownerDocument:document:document:document}const lf=Gd?c.exports.useLayoutEffect:c.exports.useEffect;function sf(e){const t=c.exports.useRef(e);return lf(()=>{t.current=e}),c.exports.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function uf(e,t){void 0===t&&(t=[e]);const n=c.exports.useRef(e);return lf(()=>{n.current!==e&&(n.current=e)},t),n}function cf(e,t){const n=c.exports.useRef();return c.exports.useMemo(()=>{const t=e(n.current);return n.current=t,t},[...t])}function df(e){const t=sf(e),n=c.exports.useRef(null),r=c.exports.useCallback(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function ff(e){const t=c.exports.useRef();return c.exports.useEffect(()=>{t.current=e},[e]),t.current}let pf={};function hf(e,t){return c.exports.useMemo(()=>{if(t)return t;const n=null==pf[e]?0:pf[e]+1;return pf[e]=n,e+"-"+n},[e,t])}function gf(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t},{...t})}}const mf=gf(1),vf=gf(-1);function yf(e){if(!e)return!1;const{KeyboardEvent:t}=tf(e.target);return t&&e instanceof t}function bf(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=tf(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const wf=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[wf.Translate.toString(e),wf.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),xf="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Sf(e){return e.matches(xf)?e:e.querySelector(xf)}const kf={display:"none"};function Cf(e){let{id:t,value:n}=e;return K.createElement("div",{id:t,style:kf},n)}function Ef(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return K.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const Lf=c.exports.createContext(null);const Nf={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Rf={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function _f(e){let{announcements:t=Rf,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Nf}=e;const{announce:a,announcement:i}=function(){const[e,t]=c.exports.useState("");return{announce:c.exports.useCallback(e=>{null!=e&&t(e)},[]),announcement:e}}(),l=hf("DndLiveRegion"),[s,u]=c.exports.useState(!1);if(c.exports.useEffect(()=>{u(!0)},[]),function(e){const t=c.exports.useContext(Lf);c.exports.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}(c.exports.useMemo(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!s)return null;const d=K.createElement(K.Fragment,null,K.createElement(Cf,{id:r,value:o.draggable}),K.createElement(Ef,{id:l,announcement:i}));return n?Z.exports.createPortal(d,n):d}var Pf;function Of(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Pf||(Pf={}));const Tf=Object.freeze({x:0,y:0});function Df(e,t){const n=bf(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function zf(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Af(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),i=o-r,l=a-n;if(r<o&&n<a){const n=t.width*t.height,r=e.width*e.height,o=i*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const Mf=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,a=n.get(r);if(a){const n=Af(a,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(zf)};function If(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Tf}const Ff=($f=1,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];return n.reduce((e,t)=>({...e,top:e.top+$f*t.y,bottom:e.bottom+$f*t.y,left:e.left+$f*t.x,right:e.right+$f*t.x}),{...e})});var $f;function jf(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const Uf={ignoreTransform:!1};function Vf(e,t){void 0===t&&(t=Uf);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=tf(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=jf(t);if(!r)return e;const{scaleX:o,scaleY:a,x:i,y:l}=r,s=e.left-i-(1-o)*parseFloat(n),u=e.top-l-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),c=o?e.width/o:e.width,d=a?e.height/a:e.height;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s}}(n,t,r))}const{top:r,left:o,width:a,height:i,bottom:l,right:s}=n;return{top:r,left:o,width:a,height:i,bottom:l,right:s}}function Bf(e){return Vf(e,{ignoreTransform:!0})}function Hf(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(nf(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!rf(o)||of(o))return n;if(n.includes(o))return n;const a=tf(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=tf(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(o,a)&&n.push(o),function(e,t){return void 0===t&&(t=tf(e).getComputedStyle(e)),"fixed"===t.position}(o,a)?n:r(o.parentNode)}(e):n}function Wf(e){const[t]=Hf(e,1);return null!=t?t:null}function Kf(e){return Gd&&e?Zd(e)?e:ef(e)?nf(e)||e===af(e).scrollingElement?window:rf(e)?e:null:null:null}function Qf(e){return Zd(e)?e.scrollX:e.scrollLeft}function qf(e){return Zd(e)?e.scrollY:e.scrollTop}function Yf(e){return{x:Qf(e),y:qf(e)}}var Xf;function Jf(e){return!(!Gd||!e)&&e===document.scrollingElement}function Gf(e){const t={x:0,y:0},n=Jf(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Xf||(Xf={}));const Zf={x:.2,y:.2};function ep(e,t,n,r,o){let{top:a,left:i,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=Zf);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=Gf(e),p={x:0,y:0},h={x:0,y:0},g=t.height*o.y,m=t.width*o.x;return!u&&a<=t.top+g?(p.y=Xf.Backward,h.y=r*Math.abs((t.top+g-a)/g)):!c&&s>=t.bottom-g&&(p.y=Xf.Forward,h.y=r*Math.abs((t.bottom-g-s)/g)),!f&&l>=t.right-m?(p.x=Xf.Forward,h.x=r*Math.abs((t.right-m-l)/m)):!d&&i<=t.left+m&&(p.x=Xf.Backward,h.x=r*Math.abs((t.left+m-i)/m)),{direction:p,speed:h}}function tp(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function np(e){return e.reduce((e,t)=>mf(e,Yf(t)),Tf)}function rp(e,t){if(void 0===t&&(t=Vf),!e)return;const{top:n,left:r,bottom:o,right:a}=t(e);Wf(e)&&(o<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const op=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Qf(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+qf(t),0)}]];class ap{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=Hf(t),r=np(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of op)for(const a of t)Object.defineProperty(this,a,{get:()=>{const t=o(n),i=r[e]-t;return this.rect[a]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ip{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function lp(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var sp,up;function cp(e){e.preventDefault()}function dp(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(sp||(sp={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(up||(up={}));const fp={start:[up.Space,up.Enter],cancel:[up.Esc],end:[up.Space,up.Enter,up.Tab]},pp=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case up.Right:return{...n,x:n.x+25};case up.Left:return{...n,x:n.x-25};case up.Down:return{...n,y:n.y+25};case up.Up:return{...n,y:n.y-25}}};class hp{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new ip(af(t)),this.windowListeners=new ip(tf(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(sp.Resize,this.handleCancel),this.windowListeners.add(sp.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(sp.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&rp(n),t(Tf)}handleKeyDown(e){if(yf(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=fp,coordinateGetter:a=pp,scrollBehavior:i="smooth"}=r,{code:l}=e;if(o.end.includes(l))return void this.handleEnd(e);if(o.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:s}=n.current,u=s?{x:s.left,y:s.top}:Tf;this.referenceCoordinates||(this.referenceCoordinates=u);const c=a(e,{active:t,context:n.current,currentCoordinates:u});if(c){const t=vf(c,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:a,isRight:l,isLeft:s,isBottom:u,maxScroll:d,minScroll:f}=Gf(n),p=tp(n),h={x:Math.min(o===up.Right?p.right-p.width/2:p.right,Math.max(o===up.Right?p.left:p.left+p.width/2,c.x)),y:Math.min(o===up.Down?p.bottom-p.height/2:p.bottom,Math.max(o===up.Down?p.top:p.top+p.height/2,c.y))},g=o===up.Right&&!l||o===up.Left&&!s,m=o===up.Down&&!u||o===up.Up&&!a;if(g&&h.x!==c.x){const e=n.scrollLeft+t.x,a=o===up.Right&&e<=d.x||o===up.Left&&e>=f.x;if(a&&!t.y)return void n.scrollTo({left:e,behavior:i});r.x=a?n.scrollLeft-e:o===up.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:i});break}if(m&&h.y!==c.y){const e=n.scrollTop+t.y,a=o===up.Down&&e<=d.y||o===up.Up&&e>=f.y;if(a&&!t.x)return void n.scrollTo({top:e,behavior:i});r.y=a?n.scrollTop-e:o===up.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:i});break}}this.handleMove(e,mf(vf(c,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function gp(e){return Boolean(e&&"distance"in e)}function mp(e){return Boolean(e&&"delay"in e)}hp.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=fp,onActivation:o}=t,{active:a}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const t=a.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class vp{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=tf(e);return e instanceof t?e:af(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:a}=o;this.props=e,this.events=t,this.document=af(a),this.documentListeners=new ip(this.document),this.listeners=new ip(n),this.windowListeners=new ip(tf(a)),this.initialCoordinates=null!=(r=bf(o))?r:Tf,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(sp.Resize,this.handleCancel),this.windowListeners.add(sp.DragStart,cp),this.windowListeners.add(sp.VisibilityChange,this.handleCancel),this.windowListeners.add(sp.ContextMenu,cp),this.documentListeners.add(sp.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(mp(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(gp(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(sp.Click,dp,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(sp.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:i}}=o;if(!r)return;const l=null!=(t=bf(e))?t:Tf,s=vf(r,l);if(!n&&i){if(gp(i)){if(null!=i.tolerance&&lp(s,i.tolerance))return this.handleCancel();if(lp(s,i.distance))return this.handleStart()}return mp(i)&&lp(s,i.tolerance)?this.handleCancel():void this.handlePending(i,s)}e.cancelable&&e.preventDefault(),a(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===up.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const yp={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class bp extends vp{constructor(e){const{event:t}=e,n=af(t.target);super(e,yp,n)}}bp.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const wp={move:{name:"mousemove"},end:{name:"mouseup"}};var xp;!function(e){e[e.RightClick=2]="RightClick"}(xp||(xp={}));(class extends vp{constructor(e){super(e,wp,af(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==xp.RightClick&&(null==r||r({event:n}),!0)}}];const Sp={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var kp,Cp;function Ep(e){let{acceleration:t,activator:n=kp.Pointer,canScroll:r,draggingRect:o,enabled:a,interval:i=5,order:l=Cp.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=ff(t);return cf(e=>{if(n||!r||!e)return Lp;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Xf.Backward]:e.x[Xf.Backward]||-1===o.x,[Xf.Forward]:e.x[Xf.Forward]||1===o.x},y:{[Xf.Backward]:e.y[Xf.Backward]||-1===o.y,[Xf.Forward]:e.y[Xf.Forward]||1===o.y}}},[n,t,r])}({delta:f,disabled:!a}),[g,m]=function(){const e=c.exports.useRef(null);return[c.exports.useCallback((t,n)=>{e.current=setInterval(t,n)},[]),c.exports.useCallback(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),v=c.exports.useRef({x:0,y:0}),y=c.exports.useRef({x:0,y:0}),b=c.exports.useMemo(()=>{switch(n){case kp.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case kp.DraggableRect:return o}},[n,o,s]),w=c.exports.useRef(null),x=c.exports.useCallback(()=>{const e=w.current;if(!e)return;const t=v.current.x*y.current.x,n=v.current.y*y.current.y;e.scrollBy(t,n)},[]),S=c.exports.useMemo(()=>l===Cp.TreeOrder?[...u].reverse():u,[l,u]);c.exports.useEffect(()=>{if(a&&u.length&&b){for(const e of S){if(!1===(null==r?void 0:r(e)))continue;const n=u.indexOf(e),o=d[n];if(!o)continue;const{direction:a,speed:l}=ep(e,o,b,t,p);for(const e of["x","y"])h[e][a[e]]||(l[e]=0,a[e]=0);if(l.x>0||l.y>0)return m(),w.current=e,g(x,i),v.current=l,void(y.current=a)}v.current={x:0,y:0},y.current={x:0,y:0},m()}else m()},[t,x,r,m,a,i,JSON.stringify(b),JSON.stringify(h),g,u,S,d,JSON.stringify(p)])}(class extends vp{constructor(e){super(e,Sp)}static setup(){return window.addEventListener(Sp.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Sp.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(kp||(kp={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Cp||(Cp={}));const Lp={x:{[Xf.Backward]:!1,[Xf.Forward]:!1},y:{[Xf.Backward]:!1,[Xf.Forward]:!1}};var Np,Rp;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Np||(Np={})),function(e){e.Optimized="optimized"}(Rp||(Rp={}));const _p=new Map;function Pp(e,t){return cf(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function Op(e){let{callback:t,disabled:n}=e;const r=sf(t),o=c.exports.useMemo(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)},[n]);return c.exports.useEffect(()=>()=>null==o?void 0:o.disconnect(),[o]),o}function Tp(e){return new ap(Vf(e),e)}function Dp(e,t,n){void 0===t&&(t=Tp);const[r,o]=c.exports.useState(null);function a(){o(r=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const a=t(e);return JSON.stringify(r)===JSON.stringify(a)?r:a})}const i=function(e){let{callback:t,disabled:n}=e;const r=sf(t),o=c.exports.useMemo(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)},[r,n]);return c.exports.useEffect(()=>()=>null==o?void 0:o.disconnect(),[o]),o}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),l=Op({callback:a});return lf(()=>{a(),e?(null==l||l.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==i||i.disconnect())},[e]),r}const zp=[];function Ap(e,t){void 0===t&&(t=[]);const n=c.exports.useRef(null);return c.exports.useEffect(()=>{n.current=null},t),c.exports.useEffect(()=>{const t=e!==Tf;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?vf(e,n.current):Tf}function Mp(e){return c.exports.useMemo(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const Ip=[];function Fp(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return rf(t)?t:e}const $p=[{sensor:bp,options:{}},{sensor:hp,options:{}}],jp={current:{}},Up={draggable:{measure:Bf},droppable:{measure:Bf,strategy:Np.WhileDragging,frequency:Rp.Optimized},dragOverlay:{measure:Vf}};class Vp extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Bp={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Vp,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Of},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Up,measureDroppableContainers:Of,windowRect:null,measuringScheduled:!1},Hp={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Of,draggableNodes:new Map,over:null,measureDroppableContainers:Of},Wp=c.exports.createContext(Hp),Kp=c.exports.createContext(Bp);function Qp(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Vp}}}function qp(e,t){switch(t.type){case Pf.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Pf.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Pf.DragEnd:case Pf.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Pf.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Vp(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Pf.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const i=new Vp(e.droppable.containers);return i.set(n,{...a,disabled:o}),{...e,droppable:{...e.droppable,containers:i}}}case Pf.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new Vp(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Yp(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=c.exports.useContext(Wp),a=ff(r),i=ff(null==n?void 0:n.id);return c.exports.useEffect(()=>{if(!t&&!r&&a&&null!=i){if(!yf(a))return;if(document.activeElement===a.target)return;const e=o.get(i);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=Sf(e);if(t){t.focus();break}}})}},[r,t,o,i,a]),null}function Xp(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}const Jp=c.exports.createContext({...Tf,scaleX:1,scaleY:1});var Gp;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Gp||(Gp={})),c.exports.memo(function(e){var t,n,r,o;let{id:a,accessibility:i,autoScroll:l=!0,children:s,sensors:u=$p,collisionDetection:d=Mf,measuring:f,modifiers:p,...h}=e;const g=c.exports.useReducer(qp,void 0,Qp),[m,v]=g,[y,b]=function(){const[e]=c.exports.useState(()=>new Set),t=c.exports.useCallback(t=>(e.add(t),()=>e.delete(t)),[e]);return[c.exports.useCallback(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[w,x]=c.exports.useState(Gp.Uninitialized),S=w===Gp.Initialized,{draggable:{active:k,nodes:C,translate:E},droppable:{containers:L}}=m,N=null!=k?C.get(k):null,R=c.exports.useRef({initial:null,translated:null}),_=c.exports.useMemo(()=>{var e;return null!=k?{id:k,data:null!=(e=null==N?void 0:N.data)?e:jp,rect:R}:null},[k,N]),P=c.exports.useRef(null),[O,T]=c.exports.useState(null),[D,z]=c.exports.useState(null),A=uf(h,Object.values(h)),M=hf("DndDescribedBy",a),I=c.exports.useMemo(()=>L.getEnabled(),[L]),F=($=f,c.exports.useMemo(()=>({draggable:{...Up.draggable,...null==$?void 0:$.draggable},droppable:{...Up.droppable,...null==$?void 0:$.droppable},dragOverlay:{...Up.dragOverlay,...null==$?void 0:$.dragOverlay}}),[null==$?void 0:$.draggable,null==$?void 0:$.droppable,null==$?void 0:$.dragOverlay]));var $;const{droppableRects:j,measureDroppableContainers:U,measuringScheduled:V}=function(e,t){let{dragging:n,dependencies:r,config:o}=t;const[a,i]=c.exports.useState(null),{frequency:l,measure:s,strategy:u}=o,d=c.exports.useRef(e),f=function(){switch(u){case Np.Always:return!1;case Np.BeforeDragging:return n;default:return!n}}(),p=uf(f),h=c.exports.useCallback(function(e){void 0===e&&(e=[]),p.current||i(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[p]),g=c.exports.useRef(null),m=cf(t=>{if(f&&!n)return _p;if(!t||t===_p||d.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new ap(s(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,f,s]);return c.exports.useEffect(()=>{d.current=e},[e]),c.exports.useEffect(()=>{f||h()},[n,f]),c.exports.useEffect(()=>{a&&a.length>0&&i(null)},[JSON.stringify(a)]),c.exports.useEffect(()=>{f||"number"!=typeof l||null!==g.current||(g.current=setTimeout(()=>{h(),g.current=null},l))},[l,f,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(I,{dragging:S,dependencies:[E.x,E.y],config:F.droppable}),B=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return cf(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(C,k),H=c.exports.useMemo(()=>D?bf(D):null,[D]),W=function(){const e=!1===(null==O?void 0:O.autoScrollEnabled),t="object"==typeof l?!1===l.enabled:!1===l,n=S&&!e&&!t;if("object"==typeof l)return{...l,enabled:n};return{enabled:n}}(),Q=function(e,t){return Pp(e,t)}(B,F.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const a=c.exports.useRef(!1),{x:i,y:l}="boolean"==typeof o?{x:o,y:o}:o;lf(()=>{if(!i&&!l||!t)return void(a.current=!1);if(a.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=If(n(e),r);if(i||(o.x=0),l||(o.y=0),a.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=Wf(e);t&&t.scrollBy({top:o.y,left:o.x})}},[t,i,l,r,n])}({activeNode:null!=k?C.get(k):null,config:W.layoutShiftCompensation,initialRect:Q,measure:F.draggable.measure});const q=Dp(B,F.draggable.measure,Q),Y=Dp(B?B.parentElement:null),X=c.exports.useRef({activatorEvent:null,active:null,activeNode:B,collisionRect:null,collisions:null,droppableRects:j,draggableNodes:C,draggingNode:null,draggingNodeRect:null,droppableContainers:L,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),J=L.getNodeFor(null==(t=X.current.over)?void 0:t.id),G=function(e){let{measure:t}=e;const[n,r]=c.exports.useState(null),o=Op({callback:c.exports.useCallback(e=>{for(const{target:n}of e)if(rf(n)){r(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),a=c.exports.useCallback(e=>{const n=Fp(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),r(n?t(n):null)},[t,o]),[i,l]=df(a);return c.exports.useMemo(()=>({nodeRef:i,rect:n,setRef:l}),[n,i,l])}({measure:F.dragOverlay.measure}),ee=null!=(n=G.nodeRef.current)?n:B,te=S?null!=(r=G.rect)?r:q:null,ne=Boolean(G.nodeRef.current&&G.rect),re=If(oe=ne?null:q,Pp(oe));var oe;const ae=Mp(ee?tf(ee):null),ie=function(e){const t=c.exports.useRef(e),n=cf(n=>e?n&&n!==zp&&e&&t.current&&e.parentNode===t.current.parentNode?n:Hf(e):zp,[e]);return c.exports.useEffect(()=>{t.current=e},[e]),n}(S?null!=J?J:B:null),le=function(e,t){void 0===t&&(t=Vf);const[n]=e,r=Mp(n?tf(n):null),[o,a]=c.exports.useState(Ip);function i(){a(()=>e.length?e.map(e=>Jf(e)?r:new ap(t(e),e)):Ip)}const l=Op({callback:i});return lf(()=>{null==l||l.disconnect(),i(),e.forEach(e=>null==l?void 0:l.observe(e))},[e]),o}(ie),se=Xp(p,{transform:{x:E.x-re.x,y:E.y-re.y,scaleX:1,scaleY:1},activatorEvent:D,active:_,activeNodeRect:q,containerNodeRect:Y,draggingNodeRect:te,over:X.current.over,overlayNodeRect:G.rect,scrollableAncestors:ie,scrollableAncestorRects:le,windowRect:ae}),ue=H?mf(H,E):null,ce=function(e){const[t,n]=c.exports.useState(null),r=c.exports.useRef(e),o=c.exports.useCallback(e=>{const t=Kf(e.target);t&&n(e=>e?(e.set(t,Yf(t)),new Map(e)):null)},[]);return c.exports.useEffect(()=>{const t=r.current;if(e!==t){a(t);const i=e.map(e=>{const t=Kf(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,Yf(t)]):null}).filter(e=>null!=e);n(i.length?new Map(i):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{const t=Kf(e);null==t||t.removeEventListener("scroll",o)})}},[o,e]),c.exports.useMemo(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>mf(e,t),Tf):np(e):Tf,[e,t])}(ie),de=Ap(ce),fe=Ap(ce,[q]),pe=mf(se,de),he=te?Ff(te,se):null,ge=_&&he?d({active:_,collisionRect:he,droppableRects:j,droppableContainers:I,pointerCoordinates:ue}):null,me=function(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}(ge,"id"),[ve,ye]=c.exports.useState(null),be=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ne?se:mf(se,fe),null!=(o=null==ve?void 0:ve.rect)?o:null,q),we=c.exports.useRef(null),xe=c.exports.useCallback((e,t)=>{let{sensor:n,options:r}=t;if(null==P.current)return;const o=C.get(P.current);if(!o)return;const a=e.nativeEvent,i=new n({active:P.current,activeNode:o,event:a,options:r,context:X,onAbort(e){if(!C.get(e))return;const{onDragAbort:t}=A.current,n={id:e};null==t||t(n),y({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!C.get(e))return;const{onDragPending:o}=A.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(a),y({type:"onDragPending",event:a})},onStart(e){const t=P.current;if(null==t)return;const n=C.get(t);if(!n)return;const{onDragStart:r}=A.current,o={activatorEvent:a,active:{id:t,data:n.data,rect:R}};Z.exports.unstable_batchedUpdates(()=>{null==r||r(o),x(Gp.Initializing),v({type:Pf.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:o}),T(we.current),z(a)})},onMove(e){v({type:Pf.DragMove,coordinates:e})},onEnd:l(Pf.DragEnd),onCancel:l(Pf.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=X.current;let i=null;if(t&&o){const{cancelDrop:l}=A.current;if(i={activatorEvent:a,active:t,collisions:n,delta:o,over:r},e===Pf.DragEnd&&"function"==typeof l){await Promise.resolve(l(i))&&(e=Pf.DragCancel)}}P.current=null,Z.exports.unstable_batchedUpdates(()=>{v({type:e}),x(Gp.Uninitialized),ye(null),T(null),z(null),we.current=null;const t=e===Pf.DragEnd?"onDragEnd":"onDragCancel";if(i){const e=A.current[t];null==e||e(i),y({type:t,event:i})}})}}we.current=i},[C]),Se=c.exports.useCallback((e,t)=>(n,r)=>{const o=n.nativeEvent,a=C.get(r);if(null!==P.current||!a||o.dndKit||o.defaultPrevented)return;const i={active:a};!0===e(n,t.options,i)&&(o.dndKit={capturedBy:t.sensor},P.current=r,xe(n,t))},[C,xe]),ke=function(e,t){return c.exports.useMemo(()=>e.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(u,Se);!function(e){c.exports.useEffect(()=>{if(!Gd)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(u),lf(()=>{q&&w===Gp.Initializing&&x(Gp.Initialized)},[q,w]),c.exports.useEffect(()=>{const{onDragMove:e}=A.current,{active:t,activatorEvent:n,collisions:r,over:o}=X.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:pe.x,y:pe.y},over:o};Z.exports.unstable_batchedUpdates(()=>{null==e||e(a),y({type:"onDragMove",event:a})})},[pe.x,pe.y]),c.exports.useEffect(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=X.current;if(!e||null==P.current||!t||!o)return;const{onDragOver:a}=A.current,i=r.get(me),l=i&&i.rect.current?{id:i.id,rect:i.rect.current,data:i.data,disabled:i.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:l};Z.exports.unstable_batchedUpdates(()=>{ye(l),null==a||a(s),y({type:"onDragOver",event:s})})},[me]),lf(()=>{X.current={activatorEvent:D,active:_,activeNode:B,collisionRect:he,collisions:ge,droppableRects:j,draggableNodes:C,draggingNode:ee,draggingNodeRect:te,droppableContainers:L,over:ve,scrollableAncestors:ie,scrollAdjustedTranslate:pe},R.current={initial:te,translated:he}},[_,B,ge,he,C,ee,te,j,L,ve,ie,pe]),Ep({...W,delta:E,draggingRect:he,pointerCoordinates:ue,scrollableAncestors:ie,scrollableAncestorRects:le});const Ce=c.exports.useMemo(()=>({active:_,activeNode:B,activeNodeRect:q,activatorEvent:D,collisions:ge,containerNodeRect:Y,dragOverlay:G,draggableNodes:C,droppableContainers:L,droppableRects:j,over:ve,measureDroppableContainers:U,scrollableAncestors:ie,scrollableAncestorRects:le,measuringConfiguration:F,measuringScheduled:V,windowRect:ae}),[_,B,q,D,ge,Y,G,C,L,j,ve,U,ie,le,F,V,ae]),Ee=c.exports.useMemo(()=>({activatorEvent:D,activators:ke,active:_,activeNodeRect:q,ariaDescribedById:{draggable:M},dispatch:v,draggableNodes:C,over:ve,measureDroppableContainers:U}),[D,ke,_,q,v,M,C,ve,U]);return K.createElement(Lf.Provider,{value:b},K.createElement(Wp.Provider,{value:Ee},K.createElement(Kp.Provider,{value:Ce},K.createElement(Jp.Provider,{value:be},s)),K.createElement(Yp,{disabled:!1===(null==i?void 0:i.restoreFocus)})),K.createElement(_f,{...i,hiddenTextDescribedById:M}))});const Zp=c.exports.createContext(null),eh="button";function th(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const a=hf("Draggable"),{activators:i,activatorEvent:l,active:s,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=c.exports.useContext(Wp),{role:h=eh,roleDescription:g="draggable",tabIndex:m=0}=null!=o?o:{},v=(null==s?void 0:s.id)===t,y=c.exports.useContext(v?Jp:Zp),[b,w]=df(),[x,S]=df(),k=function(e,t){return c.exports.useMemo(()=>e.reduce((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e},{}),[e,t])}(i,t),C=uf(n);lf(()=>(f.set(t,{id:t,key:a,node:b,activatorNode:x,data:C}),()=>{const e=f.get(t);e&&e.key===a&&f.delete(t)}),[f,t]);return{active:s,activatorEvent:l,activeNodeRect:u,attributes:c.exports.useMemo(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!(!v||h!==eh)||void 0,"aria-roledescription":g,"aria-describedby":d.draggable}),[r,h,m,v,g,d.draggable]),isDragging:v,listeners:r?void 0:k,node:b,over:p,setNodeRef:w,setActivatorNodeRef:S,transform:y}}const nh={timeout:25};function rh(e){let{animation:t,children:n}=e;const[r,o]=c.exports.useState(null),[a,i]=c.exports.useState(null),l=ff(n);return n||r||!l||o(l),lf(()=>{if(!a)return;const e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null!=e&&null!=n?Promise.resolve(t(n,a)).then(()=>{o(null)}):o(null)},[t,r,a]),K.createElement(K.Fragment,null,n,r?c.exports.cloneElement(r,{ref:i}):null)}const oh={x:0,y:0,scaleX:1,scaleY:1};function ah(e){let{children:t}=e;return K.createElement(Wp.Provider,{value:Hp},K.createElement(Jp.Provider,{value:oh},t))}const ih={position:"fixed",touchAction:"none"},lh=e=>yf(e)?"transform 250ms ease":void 0,sh=c.exports.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:a,className:i,rect:l,style:s,transform:u,transition:c=lh}=e;if(!l)return null;const d=o?u:{...u,scaleX:1,scaleY:1},f={...ih,width:l.width,height:l.height,top:l.top,left:l.left,transform:wf.Transform.toString(d),transformOrigin:o&&r?Df(r,l):void 0,transition:"function"==typeof c?c(r):c,...s};return K.createElement(n,{className:i,style:f,ref:t},a)}),uh={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:wf.Transform.toString(t)},{transform:wf.Transform.toString(n)}]},sideEffects:(ch={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:n}=e;const r={},{styles:o,className:a}=ch;if(null!=o&&o.active)for(const[e,n]of Object.entries(o.active))void 0!==n&&(r[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,n));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&n.node.style.setProperty(e,t);return null!=a&&a.active&&t.node.classList.add(a.active),null!=a&&a.dragOverlay&&n.node.classList.add(a.dragOverlay),function(){for(const[e,n]of Object.entries(r))t.node.style.setProperty(e,n);null!=a&&a.active&&t.node.classList.remove(a.active)}})};var ch;function dh(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return sf((e,a)=>{if(null===t)return;const i=n.get(e);if(!i)return;const l=i.node.current;if(!l)return;const s=Fp(a);if(!s)return;const{transform:u}=tf(a).getComputedStyle(a),c=jf(u);if(!c)return;const d="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...uh,...e};return e=>{let{active:a,dragOverlay:i,transform:l,...s}=e;if(!t)return;const u={x:i.rect.left-a.rect.left,y:i.rect.top-a.rect.top},c={scaleX:1!==l.scaleX?a.rect.width*l.scaleX/i.rect.width:1,scaleY:1!==l.scaleY?a.rect.height*l.scaleY/i.rect.height:1},d={x:l.x-u.x,y:l.y-u.y,...c},f=o({...s,active:a,dragOverlay:i,transform:{initial:l,final:d}}),[p]=f,h=f[f.length-1];if(JSON.stringify(p)===JSON.stringify(h))return;const g=null==r?void 0:r({active:a,dragOverlay:i,...s}),m=i.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{m.onfinish=()=>{null==g||g(),e()}})}}(t);return rp(l,o.draggable.measure),d({active:{id:e,data:i.data,node:l,rect:o.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:a,rect:o.dragOverlay.measure(s)},droppableContainers:r,measuringConfiguration:o,transform:c})})}let fh=0;function ph(e){return c.exports.useMemo(()=>{if(null!=e)return fh++,fh},[e])}K.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:o,transition:a,modifiers:i,wrapperElement:l="div",className:s,zIndex:u=999}=e;const{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:h,draggableNodes:g,droppableContainers:m,dragOverlay:v,over:y,measuringConfiguration:b,scrollableAncestors:w,scrollableAncestorRects:x,windowRect:S}=c.exports.useContext(Kp),k=c.exports.useContext(Jp),C=ph(null==f?void 0:f.id),E=Xp(i,{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:h,draggingNodeRect:v.rect,over:y,overlayNodeRect:v.rect,scrollableAncestors:w,scrollableAncestorRects:x,transform:k,windowRect:S}),L=Pp(p),N=dh({config:r,draggableNodes:g,droppableContainers:m,measuringConfiguration:b}),R=L?v.setRef:void 0;return K.createElement(ah,null,K.createElement(rh,{animation:N},f&&C?K.createElement(sh,{key:C,id:f.id,ref:R,as:l,activatorEvent:d,adjustScale:t,className:s,transition:a,rect:L,style:{zIndex:u,...o},transform:E},n):null))});const hh=n,gh=r,{styled:mh}=o,{color:vh}=a,{PlaceHolder:yh}=u,bh=gh("pie-elements:placement-ordering:tile"),wh=mh("div")(({theme:e})=>({width:"100%",fontSize:e.typography.fontSize+4,textAlign:"center",color:`rgba(${e.palette.common.black}, 0.6)`})),xh=({type:e,index:t,isOver:n,disabled:r})=>K.createElement(yh,{type:e,isOver:n,disabled:r},"target"===e&&void 0!==t&&K.createElement(wh,null,t));xh.propTypes={type:hh.string,index:hh.number,isOver:hh.bool,disabled:hh.bool};const Sh=mh("div")(({theme:e,isDragging:t,isOver:n,disabled:r,outcome:o,label:a})=>({cursor:"pointer",width:"100%",height:"100%",padding:"10px",boxSizing:"border-box",overflow:"hidden",border:`1px solid ${e.palette.grey[400]}`,backgroundColor:vh.background(),transition:"opacity 200ms linear",pointerEvents:"none","&:hover":{backgroundColor:vh.secondary()},...n&&!r&&{opacity:.2},...t&&!r&&{opacity:.5,backgroundColor:vh.secondaryLight()},...r&&{cursor:"not-allowed","&:hover":{backgroundColor:vh.background()}},..."incorrect"===o&&{border:`1px solid ${vh.incorrect()}`},..."correct"===o&&{border:`1px solid ${vh.correct()}`},...!a&&{border:"none","&:hover":{backgroundColor:"unset"}}})),kh=e=>{const{type:t,isDragging:n,empty:r,isOver:o,label:a,disabled:i,outcome:l,guideIndex:s}=e;return r?K.createElement(xh,{type:t,index:s,isOver:o,disabled:i}):K.createElement(Sh,{isDragging:n,isOver:o,disabled:i,outcome:l,label:a,dangerouslySetInnerHTML:{__html:a}})},Ch=e=>{const{label:t,type:n,id:r,empty:o,disabled:a,outcome:i,index:l,guideIndex:s,instanceId:u,draggable:d}=e,{attributes:f,listeners:p,setNodeRef:h,transform:g,isDragging:m}=th({id:`tile-${r}-${u}`,data:{id:r,type:n,instanceId:u,value:t,index:l},disabled:!d||a}),{setNodeRef:v,isOver:y}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const a=hf("Droppable"),{active:i,dispatch:l,over:s,measureDroppableContainers:u}=c.exports.useContext(Wp),d=c.exports.useRef({disabled:n}),f=c.exports.useRef(!1),p=c.exports.useRef(null),h=c.exports.useRef(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...nh,...o},y=uf(null!=m?m:r),b=Op({callback:c.exports.useCallback(()=>{f.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},v)):f.current=!0},[v]),disabled:g||!i}),w=c.exports.useCallback((e,t)=>{b&&(t&&(b.unobserve(t),f.current=!1),e&&b.observe(e))},[b]),[x,S]=df(w),k=uf(t);return c.exports.useEffect(()=>{b&&x.current&&(b.disconnect(),f.current=!1,b.observe(x.current))},[x,b]),c.exports.useEffect(()=>(l({type:Pf.RegisterDroppable,element:{id:r,key:a,disabled:n,node:x,rect:p,data:k}}),()=>l({type:Pf.UnregisterDroppable,key:a,id:r})),[r]),c.exports.useEffect(()=>{n!==d.current.disabled&&(l({type:Pf.SetDroppableDisabled,id:r,key:a,disabled:n}),d.current.disabled=n)},[r,a,n,l]),{active:i,rect:p,isOver:(null==s?void 0:s.id)===r,node:x,over:s,setNodeRef:S}}({id:`drop-tile-${r||l}-${u}`,data:{id:r,type:n,instanceId:u,value:t,index:l}}),b=K.useRef(null);K.useEffect(()=>{const e=b.current,t=e=>{e.preventDefault()};return e&&e.addEventListener("touchstart",t,{passive:!1}),()=>{e&&e.removeEventListener("touchstart",t)}},[]);bh("[render], props: ",e);const w={transform:g?`translate3d(${g.x}px, ${g.y}px, 0)`:void 0,boxSizing:"border-box",overflow:"hidden",padding:0,margin:0,textAlign:"center"};return K.createElement("div",{ref:e=>{b.current=e,h(e),v(e)},style:w,...d&&!a?{...p,...f}:{}},K.createElement(kh,{label:t,id:r,empty:o,index:l,guideIndex:s,isOver:y,isDragging:m,disabled:a,outcome:i,type:n}))};Ch.propTypes={id:hh.any,label:hh.string,isOver:hh.bool,type:hh.string,empty:hh.bool,disabled:hh.bool,outcome:hh.string,index:hh.number,guideIndex:hh.number,instanceId:hh.any,draggable:hh.bool};const Eh=n,{styled:Lh}=o,Nh={choiceLabel:Eh.string,targetLabel:Eh.string,disabled:Eh.bool,tiles:Eh.array.isRequired,tileSize:Eh.string,addGuide:Eh.bool},Rh={tileSize:"1fr",disabled:!1,addGuide:!1},_h=e=>{const t=(t,n)=>(t.instanceId=e.instanceId,t.disabled=e.disabled,t.guideIndex=e.addGuide?t.index+1:void 0,e.includeTargets||"choice"===t.type?K.createElement(Ch,{...t,key:n}):K.createElement(Ch,{...t,label:"",key:n}));return t.propTypes={...Nh},t},Ph=Lh("div")(({theme:e,includeTargets:t})=>({display:"grid",paddingBottom:e.spacing(2),...t&&{gridGap:"10px"}})),Oh=Lh("div")({textAlign:"center"}),Th=Lh("div")({textAlign:"center",gridRow:"3/4"}),Dh=Lh("div")(({includeTargets:e})=>({gridAutoFlow:"column",display:"grid",...e&&{gridGap:"10px"}})),zh=Lh("div")({gridColumn:"1/2",textAlign:"center"}),Ah=Lh("div")({gridColumn:"2/3",textAlign:"center"});class Mh extends K.Component{static __initStatic(){this.propTypes={...Nh}}static __initStatic2(){this.defaultProps={...Rh}}render(){const{includeTargets:e,choiceLabelEnabled:t,choiceLabel:n,targetLabel:r,tiles:o,tileSize:a}=this.props,i=e?`auto ${a} auto ${a}`:`auto ${a} auto`,l=e?o.length/2:o.length,s={gridTemplateColumns:e?`repeat(${l}, ${a})`:`auto repeat(${Math.floor(l/2)-1}, ${a} 10px) ${a} auto`,gridTemplateRows:i},u={gridColumn:`1/${l+1}`};return K.createElement(Ph,{includeTargets:e,style:s},K.createElement(Oh,{style:u,dangerouslySetInnerHTML:{__html:t?n:""}}),e&&K.createElement(Th,{style:u,dangerouslySetInnerHTML:{__html:r}}),o.map(_h(this.props)))}}Mh.__initStatic(),Mh.__initStatic2();class Ih extends K.Component{static __initStatic3(){this.propTypes={...Nh}}static __initStatic4(){this.defaultProps={...Rh}}render(){const{includeTargets:e,choiceLabelEnabled:t,choiceLabel:n,targetLabel:r,tiles:o,tileSize:a}=this.props,i=e?2:1,l=e?o.length/2:o.length,s={gridTemplateColumns:`repeat(${i}, ${a})`,gridTemplateRows:e?`auto repeat(${l}, ${a})`:`auto auto repeat(${Math.floor(l/2)-1}, ${a} 10px) ${a} auto`};return K.createElement(Dh,{includeTargets:e,style:s},K.createElement(zh,{dangerouslySetInnerHTML:{__html:t?n:""}}),e&&K.createElement(Ah,{dangerouslySetInnerHTML:{__html:r}}),o.map(_h(this.props)))}}Ih.__initStatic3(),Ih.__initStatic4();const{cloneDeep:Fh}=i,{isEmpty:$h}=i,{map:jh}=i,{assign:Uh}=i,Vh=r("pie-elements:placement-ordering:ordering");function Bh(e,t,n){const{response:r,opts:o}=e,a=Fh(r);if(o.includeTargets)return"choice"===t.type&&"target"===n.type?(a[n.index]=t.id,a):"target"===t.type&&"choice"===n.type?(a[t.index]=void 0,a):"target"===t.type&&"target"===n.type?((e,t,n)=>{if(Vh("[swap]",e,t,n),!e||e.length<=1||void 0===t||void 0===n)throw new Error(`swap requires a non-empty array, fromIndex, toIndex: ${e}, ${t} ${n}`);const r=Fh(e),o=e[n];return r[n]=r[t],r[t]=o,r})(r,t.index,n.index):(Vh("do nothing to the response"),r);{const r=e.response.findIndex(e=>void 0!==e&&e===t.id),o=e.response.findIndex(e=>void 0!==e&&e===n.id);return Vh("fromIndex: ",r,"toIndex:",o),((e,t,n)=>{const r=e.find((e,n)=>n===t),o=e.filter((e,n)=>n!==t);return[...o.slice(0,n),r,...o.slice(n)]})(e.response,r,o)}}function Hh(e,t,n,r){if(r.includeTargets){const o=[];for(let r=0;r<t.length;r++){const a=t[r],i=e.find(e=>null!=a&&e.id===a),l=n[r],s=Object.assign({type:"target",index:r,empty:void 0===i},i,l,{draggable:void 0!==i});o.push(s)}const a=e.map(e=>-1===t.indexOf(e.id)||r.allowSameChoiceInTargets?Object.assign({},e,{type:"choice",droppable:!1,draggable:!0}):{type:"choice",empty:!0,droppable:!0,draggable:!1});return a.concat(o)}return t.reduce((t,r,o)=>{const a=Object.assign({type:"empty",draggable:!1,droppable:!0},e.find(e=>e.id===r),n[o]),i=Object.assign({type:"choice",draggable:!0,droppable:!0},e.find(e=>e.id===r),n[o]);return 0===o&&t.push(a),t.push(i,a),t},[])}function Wh(e,t,n,r){return r=Uh({includeTargets:!0},r),n=n||[],{choices:e,response:t=!t||$h(t)?r.includeTargets?new Array(e.length):jh(e,e=>e.id):t,opts:r,outcomes:n,tiles:Hh(e,t,n,r)}}function Kh(e,t){switch(e.type){case"move":{const{from:n,to:r}=e,o=Bh(t,n,r),a=Hh(t.choices,o,t.outcomes,t.opts);return Object.assign({},t,{response:o,tiles:a})}case"remove":{const{target:n}=e,r=function(e,t){const n=Fh(e.response);if(n[t.index]!==t.id)throw new Error(`Tried to remove from index: ${t.index}, but the id doesn't match: array: ${n}, target: ${t.id}`);return n[t.index]=void 0,n}(t,n),o=Hh(t.choices,r,t.outcomes,t.opts);return Object.assign({},t,{response:r,tiles:o})}}return t}const Qh=n,qh=r,{uniqueId:Yh}=i,{isEqual:Xh}=i,{difference:Jh}=i,{styled:Gh}=o,{Collapsible:Zh}=a,{color:eg}=a,{Feedback:tg}=a,{hasMedia:ng}=a,{hasText:rg}=a,{PreviewPrompt:og}=a,{UiLayout:ag}=a,ig=l,{renderMath:lg}=s,{DragProvider:sg}=u;const{translator:ug}=Jd,cg=qh("pie-elements:placement-ordering"),dg=Gh("div")({color:eg.text(),backgroundColor:eg.background(),display:"flex",flexDirection:"column",alignItems:"center",boxSizing:"border-box"}),fg=Gh("div")(({theme:e})=>({paddingBottom:e.spacing(1)})),pg=Gh("div")(({theme:e})=>({paddingBottom:e.spacing(2)})),hg=Gh(ig)(({theme:e})=>({paddingBottom:e.spacing(1)})),gg=Gh(Zh)(({theme:e})=>({marginBottom:e.spacing(2),alignSelf:"flex-start"})),mg=e=>{const{tiler:t,ordering:n,onDropChoice:r,onRemoveChoice:o,...a}=e;return K.createElement(t,{...a,tiles:n.tiles,onDropChoice:(e,t)=>r(e,t,n),onRemoveChoice:e=>o(e,n)})};mg.propTypes={tiler:Qh.func,ordering:Qh.any,onDropChoice:Qh.func,onRemoveChoice:Qh.func};class vg extends K.Component{static __initStatic(){this.propTypes={onSessionChange:Qh.func.isRequired,model:Qh.object.isRequired,session:Qh.oneOfType([Qh.array.isRequired,Qh.object.isRequired])}}constructor(e){super(e),vg.prototype.__init.call(this),vg.prototype.__init2.call(this),vg.prototype.__init3.call(this),vg.prototype.__init4.call(this),vg.prototype.__init5.call(this),vg.prototype.__init6.call(this),this.instanceId=Yh();const{value:t,needsReset:n}=this.validateSession(e);this.state={showingCorrect:!1};const{model:r}=e||{},{env:o}=r||{},{mode:a}=o||{};n&&"gather"===a&&this.props.onSessionChange({...e.session,value:t})}__init(){this.toggleCorrect=e=>this.setState({showingCorrect:e})}componentDidUpdate(){const e=od.findDOMNode(this);lg(e)}__init2(){this.validateSession=({model:e,session:t},n=!1)=>{const{config:r,choices:o}=e||{},{includeTargets:a}=r||{},i=o.map(e=>e.id);let l,{value:s}=t||{};if(a){s&&s.length!==i.length&&(l=!0,s=s.length<i.length?s.concat(new Array(i.length-s.length)):s.filter(e=>i.includes(e)))}else{if(!s||!s.length||n)s=i;else{const e=Jh(i,s),t=Jh(s,i);(e.length||t.length)&&(s=i)}l=!Xh(t.value,s)}return l&&console.warn("This session is not valid anymore. It will be reset."),{value:s,needsReset:l}}}UNSAFE_componentWillReceiveProps(e){const{model:t={}}=e||{},{model:n={}}=this.props||{},{correctResponse:r,config:o,choices:a=[],env:i}=t,{includeTargets:l}=o||{},s={},u=n.language&&n.language!==t.language,c=n.note&&n.note===ug.t("common:commonCorrectAnswerWithAlternates",{lng:n.language});u&&c&&(n.note=ug.t("common:commonCorrectAnswerWithAlternates",{lng:t.language})),r||(s.showingCorrect=!1);const d=((e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;const n=e=>e.map(e=>JSON.stringify(e)).sort(),r=n(e),o=n(t),a=r.every((e,t)=>e===o[t]),i=e.every((e,n)=>JSON.stringify(e)===JSON.stringify(t[n]));return a&&!i})(a,n.choices),f=this.validateSession(e,d);let{value:p,needsReset:h}=f;const g={...e.session,value:p},m=function(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],a=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=a(n)):"call"!==o&&"optionalCall"!==o||(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}([n,"access",e=>e.config,"optionalAccess",e=>e.includeTargets])!==l;l&&m&&(h=!0,delete g.value),this.setState(s,()=>{const{mode:e}=i||{};h&&"gather"===e&&this.props.onSessionChange(g)})}__init3(){this.onDropChoice=(e,t,n)=>{const{onSessionChange:r,session:o}=this.props,a=n.tiles.find(e=>e.id===t.id&&e.type===t.type),i=e;cg("[onDropChoice] ",a,i);const l=Kh({type:"move",from:a,to:i},n);r(Object.assign({},o,{value:l.response}))}}__init4(){this.onRemoveChoice=(e,t)=>{const{onSessionChange:n,session:r}=this.props;cg("[onRemoveChoice]",e);const o=Kh({type:"remove",target:e},t);n(Object.assign({},r,{value:o.response}))}}__init5(){this.createOrdering=()=>{const{model:e,session:t}=this.props,{showingCorrect:n}=this.state,r=e.config||{orientation:"vertical",includeTargets:!0},{includeTargets:o}=r;return n?Wh(e.choices,e.correctResponse,e.correctResponse.map(e=>({id:e,outcome:"correct"})),{includeTargets:o,allowSameChoiceInTargets:e.config.allowSameChoiceInTargets}):Wh(e.choices,t.value,e.outcomes,{includeTargets:o,allowSameChoiceInTargets:e.config.allowSameChoiceInTargets})}}__init6(){this.onDragEnd=e=>{const{over:t,active:n}=e,r=this.createOrdering();if(t&&n){const e=n.data.current,o=t.data.current;if(e&&o&&"target"===o.type)return void this.onDropChoice(o,e,r);e&&o&&this.onDropChoice(o,e,r)}else if(!t&&n){const e=n.data.current;e&&"target"===e.type&&this.onRemoveChoice(e,r)}}}render(){const{model:e}=this.props,{correctResponse:t,correctness:n,extraCSSRules:r,prompt:o,rationale:a,feedback:i,config:l,note:s,showNote:u,env:c,disabled:d,teacherInstructions:f,language:p}=e,h=t&&t.length>0,{showingCorrect:g}=this.state,m=l||{orientation:"vertical",includeTargets:!0},{orientation:v,includeTargets:y}=m,b="vertical"===v,w=this.createOrdering(),{mode:x,role:S}=c||{},k=b?Ih:Mh,C=(g||"view"===x&&"instructor"===S)&&u&&s,E=a&&(rg(a)||ng(a)),L=f&&(rg(f)||ng(f)),N={color:eg.text(),backgroundColor:eg.background(),display:"flex",flexDirection:"column",alignItems:"center",boxSizing:"border-box"};return K.createElement(sg,{onDragStart:()=>{},onDragEnd:this.onDragEnd},K.createElement(dg,null,K.createElement(ag,{extraCSSRules:r,style:N},L&&K.createElement(gg,{labels:{hidden:"Show Teacher Instructions",visible:"Hide Teacher Instructions"},className:"collapsible"},K.createElement(og,{prompt:f})),K.createElement(fg,null,K.createElement(og,{prompt:o})),K.createElement(hg,{className:"toggle",show:h,toggled:g,onToggle:this.toggleCorrect,language:p}),K.createElement(mg,{instanceId:this.instanceId,choiceLabel:m.choiceLabel,targetLabel:m.targetLabel,ordering:w,tiler:k,disabled:d,addGuide:m.showOrdering,tileSize:m.tileSize,includeTargets:y,choiceLabelEnabled:e.config&&e.config.choiceLabelEnabled}),C&&K.createElement(pg,{dangerouslySetInnerHTML:{__html:s}}),E&&K.createElement(gg,{labels:{hidden:"Show Rationale",visible:"Hide Rationale"},className:"collapsible"},K.createElement(og,{prompt:a})),!g&&K.createElement(tg,{correctness:n,feedback:i}))))}}vg.__initStatic();const yg=n;class bg extends K.Component{static __initStatic(){this.propTypes={model:yg.object.isRequired,session:yg.oneOfType([yg.array.isRequired,yg.object.isRequired]),onSessionChange:yg.func.isRequired}}render(){const{model:e,session:t,onSessionChange:n}=this.props;return K.createElement(vg,{model:e,session:t,onSessionChange:n})}}bg.__initStatic();const{compact:wg}=i,xg=r,{renderMath:Sg}=s,kg=xg("pie-elements:placement-ordering"),Cg=({model:e,session:t})=>{const{config:n}=e,r=(t&&wg(t.value)||[]).length===e.choices.length;return n.includeTargets||r};class Eg extends HTMLElement{constructor(){super(),Eg.prototype.__init.call(this),Eg.prototype.__init2.call(this),this._root=null}__init(){this.isComplete=e=>e&&wg(e).length===this._model.completeLength}__init2(){this.sessionChange=e=>{this._session.value=e.value,this.render(),this.dispatchEvent(new G(this.tagName.toLowerCase(),this._session&&this.isComplete(this._session.value)))}}set model(e){this._model=e,this.render(),this.dispatchEvent(new CustomEvent("model-set",{bubbles:!0,detail:{complete:!1}}))}set session(e){this._session=e,this.render()}get session(){return this._session}render(){if(this._model&&this._session){kg("[render] session: ",this._session.value),kg("[render] model: ",this._model);const e=K.createElement(bg,{model:this._model,session:this._session,onSessionChange:this.sessionChange});this._root||(this._root=Q(this)),this._root.render(e),queueMicrotask(()=>{Sg(this)})}}disconnectedCallback(){this._root&&this._root.unmount()}}export{Eg as default,Cg as isValidSession};