@pie-element/categorize 12.0.0-next.42 → 12.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_pie_lib__math_rendering as e}from"../../../@pie-lib/math-rendering-module@^4.0.5/module/index.js";import{_dll_react_dom as t,_dll_react as n,_dll_debug as r,_dll_lodash as o,_dll_prop_types as a,_dll_mui__material_styles as i,_dll_mui__material as l,_dll_pie_lib__render_ui as s,_dll_pie_lib__correct_answer_toggle as u}from"../../../@pie-lib/shared-module@^3.0.5/module/index.js";import{_dll_pie_lib__drag as c}from"../../../@pie-lib/drag-module@^3.0.5/module/index.js";import{_dll_pie_lib__config_ui as d}from"../../../@pie-lib/config-module@^3.0.0/module/index.js";var f={exports:{}},p={},h=Symbol.for("react.element"),g=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),k=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),E=Symbol.iterator;var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,L={};function P(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||_}function N(){}function O(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||_}P.prototype.isReactComponent={},P.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")},P.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},N.prototype=P.prototype;var T=O.prototype=new N;T.constructor=O,R(T,P.prototype),T.isPureReactComponent=!0;var D=Array.isArray,A=Object.prototype.hasOwnProperty,z={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function I(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)A.call(t,r)&&!M.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:h,type:e,key:a,ref:i,props:o,_owner:z.current}}function F(e){return"object"==typeof e&&null!==e&&e.$$typeof===h}var $=/\/+/g;function j(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 U(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 h:case g:i=!0}}if(i)return o=o(i=e),e=""===r?"."+j(i,0):r,D(o)?(n="",null!=e&&(n=e.replace($,"$&/")+"/"),U(o,t,n,"",function(e){return e})):null!=o&&(F(o)&&(o=function(e,t){return{$$typeof:h,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($,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",D(e))for(var l=0;l<e.length;l++){var s=r+j(a=e[l],l);i+=U(a,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=E&&e[E]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(a=e.next()).done;)i+=U(a=a.value,t,n,s=r+j(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 B(e,t,n){if(null==e)return e;var r=[],o=0;return U(e,r,"","",function(e){return t.call(n,e,o++)}),r}function V(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 H={current:null},W={transition:null},K={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:W,ReactCurrentOwner:z};function q(){throw Error("act(...) is not supported in production builds of React.")}p.Children={map:B,forEach:function(e,t,n){B(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return B(e,function(){t++}),t},toArray:function(e){return B(e,function(e){return e})||[]},only:function(e){if(!F(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},p.Component=P,p.Fragment=m,p.Profiler=y,p.PureComponent=O,p.StrictMode=v,p.Suspense=S,p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,p.act=q,p.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=R({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=z.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)A.call(t,s)&&!M.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:h,type:e.type,key:o,ref:a,props:r,_owner:i}},p.createContext=function(e){return(e={$$typeof:w,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:b,_context:e},e.Consumer=e},p.createElement=I,p.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},p.createRef=function(){return{current:null}},p.forwardRef=function(e){return{$$typeof:x,render:e}},p.isValidElement=F,p.lazy=function(e){return{$$typeof:C,_payload:{_status:-1,_result:e},_init:V}},p.memo=function(e,t){return{$$typeof:k,type:e,compare:void 0===t?null:t}},p.startTransition=function(e){var t=W.transition;W.transition={};try{e()}finally{W.transition=t}},p.unstable_act=q,p.useCallback=function(e,t){return H.current.useCallback(e,t)},p.useContext=function(e){return H.current.useContext(e)},p.useDebugValue=function(){},p.useDeferredValue=function(e){return H.current.useDeferredValue(e)},p.useEffect=function(e,t){return H.current.useEffect(e,t)},p.useId=function(){return H.current.useId()},p.useImperativeHandle=function(e,t,n){return H.current.useImperativeHandle(e,t,n)},p.useInsertionEffect=function(e,t){return H.current.useInsertionEffect(e,t)},p.useLayoutEffect=function(e,t){return H.current.useLayoutEffect(e,t)},p.useMemo=function(e,t){return H.current.useMemo(e,t)},p.useReducer=function(e,t,n){return H.current.useReducer(e,t,n)},p.useRef=function(e){return H.current.useRef(e)},p.useState=function(e){return H.current.useState(e)},p.useSyncExternalStore=function(e,t,n){return H.current.useSyncExternalStore(e,t,n)},p.useTransition=function(){return H.current.useTransition()},p.version="18.3.1",f.exports=p;var Q=f.exports;var Y,X=t;Y=X.createRoot,X.hydrateRoot;var J={};Object.defineProperty(J,"__esModule",{value:!0});class G extends CustomEvent{constructor(e,t,n){super(G.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e,hasModel:n}}),this.component=e,this.complete=t}}G.TYPE="model-set";var Z=J.ModelSetEvent=G;class ee extends CustomEvent{constructor(e,t){super(ee.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e}}),this.component=e,this.complete=t}}ee.TYPE="session-changed";var te=J.SessionChangedEvent=ee,ne={exports:{}},re={},oe={exports:{}},ae={};!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&&!L());){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,_=5,R=-1;function L(){return!(e.unstable_now()-R<_)}function P(){if(null!==C){var t=e.unstable_now();R=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(P)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,O=N.port2;N.port1.onmessage=P,S=function(){O.postMessage(null)}}else S=function(){m(P,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"):_=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=L,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(ae),oe.exports=ae;var ie=n,le=oe.exports;function se(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 ue=new Set,ce={};function de(e,t){fe(e,t),fe(e+"Capture",t)}function fe(e,t){for(ce[e]=t,e=0;e<t.length;e++)ue.add(t[e])}var pe=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),he=Object.prototype.hasOwnProperty,ge=/^[: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]*$/,me={},ve={};function ye(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 be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){be[e]=new ye(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];be[t]=new ye(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){be[e]=new ye(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){be[e]=new ye(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){be[e]=new ye(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){be[e]=new ye(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){be[e]=new ye(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){be[e]=new ye(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){be[e]=new ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var we=/[\-:]([a-z])/g;function xe(e){return e[1].toUpperCase()}function Se(e,t,n,r){var o=be.hasOwnProperty(t)?be[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!!he.call(ve,e)||!he.call(me,e)&&(ge.test(e)?ve[e]=!0:(me[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(we,xe);be[t]=new ye(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(we,xe);be[t]=new ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(we,xe);be[t]=new ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){be[e]=new ye(e,1,!1,e.toLowerCase(),null,!1,!1)}),be.xlinkHref=new ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){be[e]=new ye(e,1,!1,e.toLowerCase(),null,!0,!0)});var ke=ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ce=Symbol.for("react.element"),Ee=Symbol.for("react.portal"),_e=Symbol.for("react.fragment"),Re=Symbol.for("react.strict_mode"),Le=Symbol.for("react.profiler"),Pe=Symbol.for("react.provider"),Ne=Symbol.for("react.context"),Oe=Symbol.for("react.forward_ref"),Te=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),ze=Symbol.for("react.lazy"),Me=Symbol.for("react.offscreen"),Ie=Symbol.iterator;function Fe(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ie&&e[Ie]||e["@@iterator"])?e:null}var $e,je=Object.assign;function Ue(e){if(void 0===$e)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);$e=t&&t[1]||""}return"\n"+$e+e}var Be=!1;function Ve(e,t){if(!e||Be)return"";Be=!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{Be=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ue(e):""}function He(e){switch(e.tag){case 5:return Ue(e.type);case 16:return Ue("Lazy");case 13:return Ue("Suspense");case 19:return Ue("SuspenseList");case 0:case 2:case 15:return e=Ve(e.type,!1);case 11:return e=Ve(e.type.render,!1);case 1:return e=Ve(e.type,!0);default:return""}}function We(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 _e:return"Fragment";case Ee:return"Portal";case Le:return"Profiler";case Re:return"StrictMode";case Te:return"Suspense";case De:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ne:return(e.displayName||"Context")+".Consumer";case Pe:return(e._context.displayName||"Context")+".Provider";case Oe:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ae:return null!==(t=e.displayName||null)?t:We(e.type)||"Memo";case ze:t=e._payload,e=e._init;try{return We(e(t))}catch(e){}}return null}function Ke(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 We(t);case 8:return t===Re?"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 qe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Qe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ye(e){e._valueTracker||(e._valueTracker=function(e){var t=Qe(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 Xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qe(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Je(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 Ge(e,t){var n=t.checked;return je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ze(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=qe(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 et(e,t){null!=(t=t.checked)&&Se(e,"checked",t,!1)}function tt(e,t){et(e,t);var n=qe(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")?rt(e,t.type,n):t.hasOwnProperty("defaultValue")&&rt(e,t.type,qe(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function nt(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 rt(e,t,n){"number"===t&&Je(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ot=Array.isArray;function at(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=""+qe(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 it(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(se(91));return je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lt(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(se(92));if(ot(n)){if(1<n.length)throw Error(se(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:qe(n)}}function st(e,t){var n=qe(t.value),r=qe(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 ut(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ct(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 dt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ct(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ft,pt,ht=(pt=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ft=ft||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ft.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 pt(e,t)})}:pt);function gt(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 mt={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},vt=["Webkit","ms","Moz","O"];function yt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||mt.hasOwnProperty(e)&&mt[e]?(""+t).trim():t+"px"}function bt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=yt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(mt).forEach(function(e){vt.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mt[t]=mt[e]})});var wt=je({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 xt(e,t){if(t){if(wt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(se(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(se(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(se(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(se(62))}}function St(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 kt=null;function Ct(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Et=null,_t=null,Rt=null;function Lt(e){if(e=ka(e)){if("function"!=typeof Et)throw Error(se(280));var t=e.stateNode;t&&(t=Ea(t),Et(e.stateNode,e.type,t))}}function Pt(e){_t?Rt?Rt.push(e):Rt=[e]:_t=e}function Nt(){if(_t){var e=_t,t=Rt;if(Rt=_t=null,Lt(e),t)for(e=0;e<t.length;e++)Lt(t[e])}}function Ot(e,t){return e(t)}function Tt(){}var Dt=!1;function At(e,t,n){if(Dt)return e(t,n);Dt=!0;try{return Ot(e,t,n)}finally{Dt=!1,(null!==_t||null!==Rt)&&(Tt(),Nt())}}function zt(e,t){var n=e.stateNode;if(null===n)return null;var r=Ea(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(se(231,t,typeof n));return n}var Mt=!1;if(pe)try{var It={};Object.defineProperty(It,"passive",{get:function(){Mt=!0}}),window.addEventListener("test",It,It),window.removeEventListener("test",It,It)}catch(pt){Mt=!1}function Ft(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 $t=!1,jt=null,Ut=!1,Bt=null,Vt={onError:function(e){$t=!0,jt=e}};function Ht(e,t,n,r,o,a,i,l,s){$t=!1,jt=null,Ft.apply(Vt,arguments)}function Wt(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 Kt(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 qt(e){if(Wt(e)!==e)throw Error(se(188))}function Qt(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Wt(e)))throw Error(se(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 qt(o),e;if(a===r)return qt(o),t;a=a.sibling}throw Error(se(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(se(189))}}if(n.alternate!==r)throw Error(se(190))}if(3!==n.tag)throw Error(se(188));return n.stateNode.current===n?e:t}(e))?Yt(e):null}function Yt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Yt(e);if(null!==t)return t;e=e.sibling}return null}var Xt=le.unstable_scheduleCallback,Jt=le.unstable_cancelCallback,Gt=le.unstable_shouldYield,Zt=le.unstable_requestPaint,en=le.unstable_now,tn=le.unstable_getCurrentPriorityLevel,nn=le.unstable_ImmediatePriority,rn=le.unstable_UserBlockingPriority,on=le.unstable_NormalPriority,an=le.unstable_LowPriority,ln=le.unstable_IdlePriority,sn=null,un=null;var cn=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(dn(e)/fn|0)|0},dn=Math.log,fn=Math.LN2;var pn=64,hn=4194304;function gn(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 mn(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=gn(l):0!==(a&=i)&&(r=gn(a))}else 0!==(i=n&~o)?r=gn(i):0!==a&&(r=gn(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-cn(t)),r|=e[n],t&=~o;return r}function vn(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 yn(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function bn(){var e=pn;return!(4194240&(pn<<=1))&&(pn=64),e}function wn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function xn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-cn(t)]=n}function Sn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-cn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var kn=0;function Cn(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var En,_n,Rn,Ln,Pn,Nn=!1,On=[],Tn=null,Dn=null,An=null,zn=new Map,Mn=new Map,In=[],Fn="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 $n(e,t){switch(e){case"focusin":case"focusout":Tn=null;break;case"dragenter":case"dragleave":Dn=null;break;case"mouseover":case"mouseout":An=null;break;case"pointerover":case"pointerout":zn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mn.delete(t.pointerId)}}function jn(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=ka(t))&&_n(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Un(e){var t=Sa(e.target);if(null!==t){var n=Wt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Kt(n)))return e.blockedOn=t,void Pn(e.priority,function(){Rn(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 Bn(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ka(n))&&_n(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);kt=r,n.target.dispatchEvent(r),kt=null,t.shift()}return!0}function Vn(e,t,n){Bn(e)&&n.delete(t)}function Hn(){Nn=!1,null!==Tn&&Bn(Tn)&&(Tn=null),null!==Dn&&Bn(Dn)&&(Dn=null),null!==An&&Bn(An)&&(An=null),zn.forEach(Vn),Mn.forEach(Vn)}function Wn(e,t){e.blockedOn===t&&(e.blockedOn=null,Nn||(Nn=!0,le.unstable_scheduleCallback(le.unstable_NormalPriority,Hn)))}function Kn(e){function t(t){return Wn(t,e)}if(0<On.length){Wn(On[0],e);for(var n=1;n<On.length;n++){var r=On[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tn&&Wn(Tn,e),null!==Dn&&Wn(Dn,e),null!==An&&Wn(An,e),zn.forEach(t),Mn.forEach(t),n=0;n<In.length;n++)(r=In[n]).blockedOn===e&&(r.blockedOn=null);for(;0<In.length&&null===(n=In[0]).blockedOn;)Un(n),null===n.blockedOn&&In.shift()}var qn=ke.ReactCurrentBatchConfig,Qn=!0;function Yn(e,t,n,r){var o=kn,a=qn.transition;qn.transition=null;try{kn=1,Jn(e,t,n,r)}finally{kn=o,qn.transition=a}}function Xn(e,t,n,r){var o=kn,a=qn.transition;qn.transition=null;try{kn=4,Jn(e,t,n,r)}finally{kn=o,qn.transition=a}}function Jn(e,t,n,r){if(Qn){var o=Zn(e,t,n,r);if(null===o)Qo(e,t,r,Gn,n),$n(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tn=jn(Tn,e,t,n,r,o),!0;case"dragenter":return Dn=jn(Dn,e,t,n,r,o),!0;case"mouseover":return An=jn(An,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return zn.set(a,jn(zn.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Mn.set(a,jn(Mn.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if($n(e,r),4&t&&-1<Fn.indexOf(e)){for(;null!==o;){var a=ka(o);if(null!==a&&En(a),null===(a=Zn(e,t,n,r))&&Qo(e,t,r,Gn,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Qo(e,t,r,null,n)}}var Gn=null;function Zn(e,t,n,r){if(Gn=null,null!==(e=Sa(e=Ct(r))))if(null===(t=Wt(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Kt(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 Gn=e,null}function er(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(tn()){case nn:return 1;case rn:return 4;case on:case an:return 16;case ln:return 536870912;default:return 16}default:return 16}}var tr=null,nr=null,rr=null;function or(){if(rr)return rr;var e,t,n=nr,r=n.length,o="value"in tr?tr.value:tr.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 rr=o.slice(e,1<t?1-t:void 0)}function ar(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 ir(){return!0}function lr(){return!1}function sr(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)?ir:lr,this.isPropagationStopped=lr,this}return je(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=ir)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ir)},persist:function(){},isPersistent:ir}),t}var ur,cr,dr,fr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pr=sr(fr),hr=je({},fr,{view:0,detail:0}),gr=sr(hr),mr=je({},hr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lr,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!==dr&&(dr&&"mousemove"===e.type?(ur=e.screenX-dr.screenX,cr=e.screenY-dr.screenY):cr=ur=0,dr=e),ur)},movementY:function(e){return"movementY"in e?e.movementY:cr}}),vr=sr(mr),yr=sr(je({},mr,{dataTransfer:0})),br=sr(je({},hr,{relatedTarget:0})),wr=sr(je({},fr,{animationName:0,elapsedTime:0,pseudoElement:0})),xr=je({},fr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sr=sr(xr),kr=sr(je({},fr,{data:0})),Cr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Er={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"},_r={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_r[e])&&!!t[e]}function Lr(){return Rr}var Pr=je({},hr,{key:function(e){if(e.key){var t=Cr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ar(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Er[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lr,charCode:function(e){return"keypress"===e.type?ar(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ar(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Nr=sr(Pr),Or=sr(je({},mr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tr=sr(je({},hr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lr})),Dr=sr(je({},fr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ar=je({},mr,{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}),zr=sr(Ar),Mr=[9,13,27,32],Ir=pe&&"CompositionEvent"in window,Fr=null;pe&&"documentMode"in document&&(Fr=document.documentMode);var $r=pe&&"TextEvent"in window&&!Fr,jr=pe&&(!Ir||Fr&&8<Fr&&11>=Fr),Ur=String.fromCharCode(32),Br=!1;function Vr(e,t){switch(e){case"keyup":return-1!==Mr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wr=!1;var Kr={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 qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Kr[e.type]:"textarea"===t}function Qr(e,t,n,r){Pt(r),0<(t=Xo(t,"onChange")).length&&(n=new pr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yr=null,Xr=null;function Jr(e){Bo(e,0)}function Gr(e){if(Xe(Ca(e)))return e}function Zr(e,t){if("change"===e)return t}var eo=!1;if(pe){var to;if(pe){var no="oninput"in document;if(!no){var ro=document.createElement("div");ro.setAttribute("oninput","return;"),no="function"==typeof ro.oninput}to=no}else to=!1;eo=to&&(!document.documentMode||9<document.documentMode)}function oo(){Yr&&(Yr.detachEvent("onpropertychange",ao),Xr=Yr=null)}function ao(e){if("value"===e.propertyName&&Gr(Xr)){var t=[];Qr(t,Xr,e,Ct(e)),At(Jr,t)}}function io(e,t,n){"focusin"===e?(oo(),Xr=n,(Yr=t).attachEvent("onpropertychange",ao)):"focusout"===e&&oo()}function lo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gr(Xr)}function so(e,t){if("click"===e)return Gr(t)}function uo(e,t){if("input"===e||"change"===e)return Gr(t)}var co="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function fo(e,t){if(co(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(!he.call(t,o)||!co(e[o],t[o]))return!1}return!0}function po(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ho(e,t){var n,r=po(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=po(r)}}function go(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?go(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mo(){for(var e=window,t=Je();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Je((e=t.contentWindow).document)}return t}function vo(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 yo(e){var t=mo(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&go(n.ownerDocument.documentElement,n)){if(null!==r&&vo(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=ho(n,a);var i=ho(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 bo=pe&&"documentMode"in document&&11>=document.documentMode,wo=null,xo=null,So=null,ko=!1;function Co(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ko||null==wo||wo!==Je(r)||("selectionStart"in(r=wo)&&vo(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},So&&fo(So,r)||(So=r,0<(r=Xo(xo,"onSelect")).length&&(t=new pr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wo)))}function Eo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _o={animationend:Eo("Animation","AnimationEnd"),animationiteration:Eo("Animation","AnimationIteration"),animationstart:Eo("Animation","AnimationStart"),transitionend:Eo("Transition","TransitionEnd")},Ro={},Lo={};function Po(e){if(Ro[e])return Ro[e];if(!_o[e])return e;var t,n=_o[e];for(t in n)if(n.hasOwnProperty(t)&&t in Lo)return Ro[e]=n[t];return e}pe&&(Lo=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);var No=Po("animationend"),Oo=Po("animationiteration"),To=Po("animationstart"),Do=Po("transitionend"),Ao=new Map,zo="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 Mo(e,t){Ao.set(e,t),de(t,[e])}for(var Io=0;Io<zo.length;Io++){var Fo=zo[Io];Mo(Fo.toLowerCase(),"on"+(Fo[0].toUpperCase()+Fo.slice(1)))}Mo(No,"onAnimationEnd"),Mo(Oo,"onAnimationIteration"),Mo(To,"onAnimationStart"),Mo("dblclick","onDoubleClick"),Mo("focusin","onFocus"),Mo("focusout","onBlur"),Mo(Do,"onTransitionEnd"),fe("onMouseEnter",["mouseout","mouseover"]),fe("onMouseLeave",["mouseout","mouseover"]),fe("onPointerEnter",["pointerout","pointerover"]),fe("onPointerLeave",["pointerout","pointerover"]),de("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),de("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),de("onBeforeInput",["compositionend","keypress","textInput","paste"]),de("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),de("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),de("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $o="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(" "),jo=new Set("cancel close invalid load scroll toggle".split(" ").concat($o));function Uo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,s){if(Ht.apply(this,arguments),$t){if(!$t)throw Error(se(198));var u=jt;$t=!1,jt=null,Ut||(Ut=!0,Bt=u)}}(r,t,void 0,e),e.currentTarget=null}function Bo(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;Uo(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;Uo(o,l,u),a=s}}}if(Ut)throw e=Bt,Ut=!1,Bt=null,e}function Vo(e,t){var n=t[ba];void 0===n&&(n=t[ba]=new Set);var r=e+"__bubble";n.has(r)||(qo(t,e,2,!1),n.add(r))}function Ho(e,t,n){var r=0;t&&(r|=4),qo(n,e,r,t)}var Wo="_reactListening"+Math.random().toString(36).slice(2);function Ko(e){if(!e[Wo]){e[Wo]=!0,ue.forEach(function(t){"selectionchange"!==t&&(jo.has(t)||Ho(t,!1,e),Ho(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Wo]||(t[Wo]=!0,Ho("selectionchange",!1,t))}}function qo(e,t,n,r){switch(er(t)){case 1:var o=Yn;break;case 4:o=Xn;break;default:o=Jn}n=o.bind(null,t,n,e),o=void 0,!Mt||"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 Qo(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=Sa(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}At(function(){var r=a,o=Ct(n),i=[];e:{var l=Ao.get(e);if(void 0!==l){var s=pr,u=e;switch(e){case"keypress":if(0===ar(n))break e;case"keydown":case"keyup":s=Nr;break;case"focusin":u="focus",s=br;break;case"focusout":u="blur",s=br;break;case"beforeblur":case"afterblur":s=br;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=vr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=yr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Tr;break;case No:case Oo:case To:s=wr;break;case Do:s=Dr;break;case"scroll":s=gr;break;case"wheel":s=zr;break;case"copy":case"cut":case"paste":s=Sr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Or}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=zt(h,f))&&c.push(Yo(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===kt||!(u=n.relatedTarget||n.fromElement)||!Sa(u)&&!u[ya])&&(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)?Sa(u):null)&&(u!==(d=Wt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=vr,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Or,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:Ca(s),p=null==u?l:Ca(u),(l=new c(g,h+"leave",s,n,o)).target=d,l.relatedTarget=p,g=null,Sa(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=Jo(p))h++;for(p=0,g=f;g;g=Jo(g))p++;for(;0<h-p;)c=Jo(c),h--;for(;0<p-h;)f=Jo(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Jo(c),f=Jo(f)}c=null}else c=null;null!==s&&Go(i,l,s,c,!1),null!==u&&null!==d&&Go(i,d,u,c,!0)}if("select"===(s=(l=r?Ca(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Zr;else if(qr(l))if(eo)m=uo;else{m=lo;var v=io}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=so);switch(m&&(m=m(e,r))?Qr(i,m,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&rt(l,"number",l.value)),v=r?Ca(r):window,e){case"focusin":(qr(v)||"true"===v.contentEditable)&&(wo=v,xo=r,So=null);break;case"focusout":So=xo=wo=null;break;case"mousedown":ko=!0;break;case"contextmenu":case"mouseup":case"dragend":ko=!1,Co(i,n,o);break;case"selectionchange":if(bo)break;case"keydown":case"keyup":Co(i,n,o)}var y;if(Ir)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 Wr?Vr(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jr&&"ko"!==n.locale&&(Wr||"onCompositionStart"!==b?"onCompositionEnd"===b&&Wr&&(y=or()):(nr="value"in(tr=o)?tr.value:tr.textContent,Wr=!0)),0<(v=Xo(r,b)).length&&(b=new kr(b,e,null,n,o),i.push({event:b,listeners:v}),y?b.data=y:null!==(y=Hr(n))&&(b.data=y))),(y=$r?function(e,t){switch(e){case"compositionend":return Hr(t);case"keypress":return 32!==t.which?null:(Br=!0,Ur);case"textInput":return(e=t.data)===Ur&&Br?null:e;default:return null}}(e,n):function(e,t){if(Wr)return"compositionend"===e||!Ir&&Vr(e,t)?(e=or(),rr=nr=tr=null,Wr=!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 jr&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Xo(r,"onBeforeInput")).length&&(o=new kr("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}Bo(i,t)})}function Yo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xo(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=zt(e,n))&&r.unshift(Yo(e,a,o)),null!=(a=zt(e,t))&&r.push(Yo(e,a,o))),e=e.return}return r}function Jo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Go(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=zt(n,a))&&i.unshift(Yo(n,s,l)):o||null!=(s=zt(n,a))&&i.push(Yo(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Zo=/\r\n?/g,ea=/\u0000|\uFFFD/g;function ta(e){return("string"==typeof e?e:""+e).replace(Zo,"\n").replace(ea,"")}function na(e,t,n){if(t=ta(t),ta(e)!==t&&n)throw Error(se(425))}function ra(){}var oa=null,aa=null;function ia(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 la="function"==typeof setTimeout?setTimeout:void 0,sa="function"==typeof clearTimeout?clearTimeout:void 0,ua="function"==typeof Promise?Promise:void 0,ca="function"==typeof queueMicrotask?queueMicrotask:void 0!==ua?function(e){return ua.resolve(null).then(e).catch(da)}:la;function da(e){setTimeout(function(){throw e})}function fa(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 Kn(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Kn(t)}function pa(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 ha(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 ga=Math.random().toString(36).slice(2),ma="__reactFiber$"+ga,va="__reactProps$"+ga,ya="__reactContainer$"+ga,ba="__reactEvents$"+ga,wa="__reactListeners$"+ga,xa="__reactHandles$"+ga;function Sa(e){var t=e[ma];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ya]||n[ma]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ha(e);null!==e;){if(n=e[ma])return n;e=ha(e)}return t}n=(e=n).parentNode}return null}function ka(e){return!(e=e[ma]||e[ya])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ca(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(se(33))}function Ea(e){return e[va]||null}var _a=[],Ra=-1;function La(e){return{current:e}}function Pa(e){0>Ra||(e.current=_a[Ra],_a[Ra]=null,Ra--)}function Na(e,t){Ra++,_a[Ra]=e.current,e.current=t}var Oa={},Ta=La(Oa),Da=La(!1),Aa=Oa;function za(e,t){var n=e.type.contextTypes;if(!n)return Oa;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 Ma(e){return null!=(e=e.childContextTypes)}function Ia(){Pa(Da),Pa(Ta)}function Fa(e,t,n){if(Ta.current!==Oa)throw Error(se(168));Na(Ta,t),Na(Da,n)}function $a(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(se(108,Ke(e)||"Unknown",o));return je({},n,r)}function ja(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oa,Aa=Ta.current,Na(Ta,e),Na(Da,Da.current),!0}function Ua(e,t,n){var r=e.stateNode;if(!r)throw Error(se(169));n?(e=$a(e,t,Aa),r.__reactInternalMemoizedMergedChildContext=e,Pa(Da),Pa(Ta),Na(Ta,e)):Pa(Da),Na(Da,n)}var Ba=null,Va=!1,Ha=!1;function Wa(e){null===Ba?Ba=[e]:Ba.push(e)}function Ka(){if(!Ha&&null!==Ba){Ha=!0;var e=0,t=kn;try{var n=Ba;for(kn=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ba=null,Va=!1}catch(t){throw null!==Ba&&(Ba=Ba.slice(e+1)),Xt(nn,Ka),t}finally{kn=t,Ha=!1}}return null}var qa=[],Qa=0,Ya=null,Xa=0,Ja=[],Ga=0,Za=null,ei=1,ti="";function ni(e,t){qa[Qa++]=Xa,qa[Qa++]=Ya,Ya=e,Xa=t}function ri(e,t,n){Ja[Ga++]=ei,Ja[Ga++]=ti,Ja[Ga++]=Za,Za=e;var r=ei;e=ti;var o=32-cn(r)-1;r&=~(1<<o),n+=1;var a=32-cn(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,ei=1<<32-cn(t)+o|n<<o|r,ti=a+e}else ei=1<<a|n<<o|r,ti=e}function oi(e){null!==e.return&&(ni(e,1),ri(e,1,0))}function ai(e){for(;e===Ya;)Ya=qa[--Qa],qa[Qa]=null,Xa=qa[--Qa],qa[Qa]=null;for(;e===Za;)Za=Ja[--Ga],Ja[Ga]=null,ti=Ja[--Ga],Ja[Ga]=null,ei=Ja[--Ga],Ja[Ga]=null}var ii=null,li=null,si=!1,ui=null;function ci(e,t){var n=Ac(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 di(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,ii=e,li=pa(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ii=e,li=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Za?{id:ei,overflow:ti}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ac(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ii=e,li=null,!0);default:return!1}}function fi(e){return!(!(1&e.mode)||128&e.flags)}function pi(e){if(si){var t=li;if(t){var n=t;if(!di(e,t)){if(fi(e))throw Error(se(418));t=pa(n.nextSibling);var r=ii;t&&di(e,t)?ci(r,n):(e.flags=-4097&e.flags|2,si=!1,ii=e)}}else{if(fi(e))throw Error(se(418));e.flags=-4097&e.flags|2,si=!1,ii=e}}}function hi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ii=e}function gi(e){if(e!==ii)return!1;if(!si)return hi(e),si=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ia(e.type,e.memoizedProps)),t&&(t=li)){if(fi(e))throw mi(),Error(se(418));for(;t;)ci(e,t),t=pa(t.nextSibling)}if(hi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(se(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){li=pa(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}li=null}}else li=ii?pa(e.stateNode.nextSibling):null;return!0}function mi(){for(var e=li;e;)e=pa(e.nextSibling)}function vi(){li=ii=null,si=!1}function yi(e){null===ui?ui=[e]:ui.push(e)}var bi=ke.ReactCurrentBatchConfig;function wi(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(se(309));var r=n.stateNode}if(!r)throw Error(se(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(se(284));if(!n._owner)throw Error(se(290,e))}return e}function xi(e,t){throw e=Object.prototype.toString.call(t),Error(se(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Si(e){return(0,e._init)(e._payload)}function ki(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=Mc(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=jc(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===_e?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===ze&&Si(a)===t.type)?((r=o(t,n.props)).ref=wi(e,t,n),r.return=e,r):((r=Ic(n.type,n.key,n.props,null,e.mode,r)).ref=wi(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=Uc(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=Fc(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=jc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ce:return(n=Ic(t.type,t.key,t.props,null,e.mode,n)).ref=wi(e,null,t),n.return=e,n;case Ee:return(t=Uc(t,e.mode,n)).return=e,t;case ze:return d(e,(0,t._init)(t._payload),n)}if(ot(t)||Fe(t))return(t=Fc(t,e.mode,n,null)).return=e,t;xi(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 Ce:return n.key===o?s(e,t,n,r):null;case Ee:return n.key===o?u(e,t,n,r):null;case ze:return f(e,t,(o=n._init)(n._payload),r)}if(ot(n)||Fe(n))return null!==o?null:c(e,t,n,r,null);xi(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 Ce:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ee:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case ze:return p(e,t,n,(0,r._init)(r._payload),o)}if(ot(r)||Fe(r))return c(t,e=e.get(n)||null,r,o,null);xi(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),si&&ni(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 si&&ni(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)}),si&&ni(o,g),u}function g(o,i,l,s){var u=Fe(l);if("function"!=typeof u)throw Error(se(150));if(null==(l=u.call(l)))throw Error(se(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),si&&ni(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 si&&ni(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)}),si&&ni(o,g),u}return function e(r,a,l,s){if("object"==typeof l&&null!==l&&l.type===_e&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case Ce:e:{for(var u=l.key,c=a;null!==c;){if(c.key===u){if((u=l.type)===_e){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===ze&&Si(u)===c.type){n(r,c.sibling),(a=o(c,l.props)).ref=wi(r,c,l),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===_e?((a=Fc(l.props.children,r.mode,s,l.key)).return=r,r=a):((s=Ic(l.type,l.key,l.props,null,r.mode,s)).ref=wi(r,a,l),s.return=r,r=s)}return i(r);case Ee: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=Uc(l,r.mode,s)).return=r,r=a}return i(r);case ze:return e(r,a,(c=l._init)(l._payload),s)}if(ot(l))return h(r,a,l,s);if(Fe(l))return g(r,a,l,s);xi(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=jc(l,r.mode,s)).return=r,r=a),i(r)):n(r,a)}}var Ci=ki(!0),Ei=ki(!1),_i=La(null),Ri=null,Li=null,Pi=null;function Ni(){Pi=Li=Ri=null}function Oi(e){var t=_i.current;Pa(_i),e._currentValue=t}function Ti(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 Di(e,t){Ri=e,Pi=Li=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ss=!0),e.firstContext=null)}function Ai(e){var t=e._currentValue;if(Pi!==e)if(e={context:e,memoizedValue:t,next:null},null===Li){if(null===Ri)throw Error(se(308));Li=e,Ri.dependencies={lanes:0,firstContext:e}}else Li=Li.next=e;return t}var zi=null;function Mi(e){null===zi?zi=[e]:zi.push(e)}function Ii(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fi(e,r)}function Fi(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 $i=!1;function ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ui(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 Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ou){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fi(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fi(e,n)}function Hi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Sn(e,n)}}function Wi(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 Ki(e,t,n,r){var o=e.updateQueue;$i=!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=je({},d,f);break e;case 2:$i=!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);$u|=i,e.lanes=i,e.memoizedState=d}}function qi(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(se(191,o));o.call(r)}}}var Qi={},Yi=La(Qi),Xi=La(Qi),Ji=La(Qi);function Gi(e){if(e===Qi)throw Error(se(174));return e}function Zi(e,t){switch(Na(Ji,t),Na(Xi,e),Na(Yi,Qi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dt(null,"");break;default:t=dt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Pa(Yi),Na(Yi,t)}function el(){Pa(Yi),Pa(Xi),Pa(Ji)}function tl(e){Gi(Ji.current);var t=Gi(Yi.current),n=dt(t,e.type);t!==n&&(Na(Xi,e),Na(Yi,n))}function nl(e){Xi.current===e&&(Pa(Yi),Pa(Xi))}var rl=La(0);function ol(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 al=[];function il(){for(var e=0;e<al.length;e++)al[e]._workInProgressVersionPrimary=null;al.length=0}var ll=ke.ReactCurrentDispatcher,sl=ke.ReactCurrentBatchConfig,ul=0,cl=null,dl=null,fl=null,pl=!1,hl=!1,gl=0,ml=0;function vl(){throw Error(se(321))}function yl(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!co(e[n],t[n]))return!1;return!0}function bl(e,t,n,r,o,a){if(ul=a,cl=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ll.current=null===e||null===e.memoizedState?ns:rs,e=n(r,o),hl){a=0;do{if(hl=!1,gl=0,25<=a)throw Error(se(301));a+=1,fl=dl=null,t.updateQueue=null,ll.current=os,e=n(r,o)}while(hl)}if(ll.current=ts,t=null!==dl&&null!==dl.next,ul=0,fl=dl=cl=null,pl=!1,t)throw Error(se(300));return e}function wl(){var e=0!==gl;return gl=0,e}function xl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===fl?cl.memoizedState=fl=e:fl=fl.next=e,fl}function Sl(){if(null===dl){var e=cl.alternate;e=null!==e?e.memoizedState:null}else e=dl.next;var t=null===fl?cl.memoizedState:fl.next;if(null!==t)fl=t,dl=e;else{if(null===e)throw Error(se(310));e={memoizedState:(dl=e).memoizedState,baseState:dl.baseState,baseQueue:dl.baseQueue,queue:dl.queue,next:null},null===fl?cl.memoizedState=fl=e:fl=fl.next=e}return fl}function kl(e,t){return"function"==typeof t?t(e):t}function Cl(e){var t=Sl(),n=t.queue;if(null===n)throw Error(se(311));n.lastRenderedReducer=e;var r=dl,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((ul&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,cl.lanes|=c,$u|=c}u=u.next}while(null!==u&&u!==a);null===s?i=r:s.next=l,co(r,t.memoizedState)||(Ss=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,cl.lanes|=a,$u|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function El(e){var t=Sl(),n=t.queue;if(null===n)throw Error(se(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);co(a,t.memoizedState)||(Ss=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function _l(){}function Rl(e,t){var n=cl,r=Sl(),o=t(),a=!co(r.memoizedState,o);if(a&&(r.memoizedState=o,Ss=!0),r=r.queue,$l(Nl.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==fl&&1&fl.memoizedState.tag){if(n.flags|=2048,Al(9,Pl.bind(null,n,r,o,t),void 0,null),null===Tu)throw Error(se(349));30&ul||Ll(n,t,o)}return o}function Ll(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=cl.updateQueue)?(t={lastEffect:null,stores:null},cl.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pl(e,t,n,r){t.value=n,t.getSnapshot=r,Ol(t)&&Tl(e)}function Nl(e,t,n){return n(function(){Ol(t)&&Tl(e)})}function Ol(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!co(e,n)}catch(e){return!0}}function Tl(e){var t=Fi(e,1);null!==t&&ac(t,e,1,-1)}function Dl(e){var t=xl();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:kl,lastRenderedState:e},t.queue=e,e=e.dispatch=Jl.bind(null,cl,e),[t.memoizedState,e]}function Al(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=cl.updateQueue)?(t={lastEffect:null,stores:null},cl.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 zl(){return Sl().memoizedState}function Ml(e,t,n,r){var o=xl();cl.flags|=e,o.memoizedState=Al(1|t,n,void 0,void 0===r?null:r)}function Il(e,t,n,r){var o=Sl();r=void 0===r?null:r;var a=void 0;if(null!==dl){var i=dl.memoizedState;if(a=i.destroy,null!==r&&yl(r,i.deps))return void(o.memoizedState=Al(t,n,a,r))}cl.flags|=e,o.memoizedState=Al(1|t,n,a,r)}function Fl(e,t){return Ml(8390656,8,e,t)}function $l(e,t){return Il(2048,8,e,t)}function jl(e,t){return Il(4,2,e,t)}function Ul(e,t){return Il(4,4,e,t)}function Bl(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 Vl(e,t,n){return n=null!=n?n.concat([e]):null,Il(4,4,Bl.bind(null,t,e),n)}function Hl(){}function Wl(e,t){var n=Sl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&yl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Kl(e,t){var n=Sl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&yl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ql(e,t,n){return 21&ul?(co(n,t)||(n=bn(),cl.lanes|=n,$u|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ss=!0),e.memoizedState=n)}function Ql(e,t){var n=kn;kn=0!==n&&4>n?n:4,e(!0);var r=sl.transition;sl.transition={};try{e(!1),t()}finally{kn=n,sl.transition=r}}function Yl(){return Sl().memoizedState}function Xl(e,t,n){var r=oc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gl(e))Zl(t,n);else if(null!==(n=Ii(e,t,n,r))){ac(n,e,r,rc()),es(n,t,r)}}function Jl(e,t,n){var r=oc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gl(e))Zl(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,co(l,i)){var s=t.interleaved;return null===s?(o.next=o,Mi(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ii(e,t,o,r))&&(ac(n,e,r,o=rc()),es(n,t,r))}}function Gl(e){var t=e.alternate;return e===cl||null!==t&&t===cl}function Zl(e,t){hl=pl=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function es(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Sn(e,n)}}var ts={readContext:Ai,useCallback:vl,useContext:vl,useEffect:vl,useImperativeHandle:vl,useInsertionEffect:vl,useLayoutEffect:vl,useMemo:vl,useReducer:vl,useRef:vl,useState:vl,useDebugValue:vl,useDeferredValue:vl,useTransition:vl,useMutableSource:vl,useSyncExternalStore:vl,useId:vl,unstable_isNewReconciler:!1},ns={readContext:Ai,useCallback:function(e,t){return xl().memoizedState=[e,void 0===t?null:t],e},useContext:Ai,useEffect:Fl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ml(4194308,4,Bl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=xl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xl();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=Xl.bind(null,cl,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xl().memoizedState=e},useState:Dl,useDebugValue:Hl,useDeferredValue:function(e){return xl().memoizedState=e},useTransition:function(){var e=Dl(!1),t=e[0];return e=Ql.bind(null,e[1]),xl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=cl,o=xl();if(si){if(void 0===n)throw Error(se(407));n=n()}else{if(n=t(),null===Tu)throw Error(se(349));30&ul||Ll(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Fl(Nl.bind(null,r,a,e),[e]),r.flags|=2048,Al(9,Pl.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=xl(),t=Tu.identifierPrefix;if(si){var n=ti;t=":"+t+"R"+(n=(ei&~(1<<32-cn(ei)-1)).toString(32)+n),0<(n=gl++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ml++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rs={readContext:Ai,useCallback:Wl,useContext:Ai,useEffect:$l,useImperativeHandle:Vl,useInsertionEffect:jl,useLayoutEffect:Ul,useMemo:Kl,useReducer:Cl,useRef:zl,useState:function(){return Cl(kl)},useDebugValue:Hl,useDeferredValue:function(e){return ql(Sl(),dl.memoizedState,e)},useTransition:function(){return[Cl(kl)[0],Sl().memoizedState]},useMutableSource:_l,useSyncExternalStore:Rl,useId:Yl,unstable_isNewReconciler:!1},os={readContext:Ai,useCallback:Wl,useContext:Ai,useEffect:$l,useImperativeHandle:Vl,useInsertionEffect:jl,useLayoutEffect:Ul,useMemo:Kl,useReducer:El,useRef:zl,useState:function(){return El(kl)},useDebugValue:Hl,useDeferredValue:function(e){var t=Sl();return null===dl?t.memoizedState=e:ql(t,dl.memoizedState,e)},useTransition:function(){return[El(kl)[0],Sl().memoizedState]},useMutableSource:_l,useSyncExternalStore:Rl,useId:Yl,unstable_isNewReconciler:!1};function as(e,t){if(e&&e.defaultProps){for(var n in t=je({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function is(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:je({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ls={isMounted:function(e){return!!(e=e._reactInternals)&&Wt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rc(),o=oc(e),a=Bi(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Vi(e,a,o))&&(ac(t,e,o,r),Hi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rc(),o=oc(e),a=Bi(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Vi(e,a,o))&&(ac(t,e,o,r),Hi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rc(),r=oc(e),o=Bi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Vi(e,o,r))&&(ac(t,e,r,n),Hi(t,e,r))}};function ss(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!fo(n,r)||!fo(o,a))}function us(e,t,n){var r=!1,o=Oa,a=t.contextType;return"object"==typeof a&&null!==a?a=Ai(a):(o=Ma(t)?Aa:Ta.current,a=(r=null!=(r=t.contextTypes))?za(e,o):Oa),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ls,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function cs(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&&ls.enqueueReplaceState(t,t.state,null)}function ds(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ji(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Ai(a):(a=Ma(t)?Aa:Ta.current,o.context=za(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(is(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&&ls.enqueueReplaceState(o,o.state,null),Ki(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function fs(e,t){try{var n="",r=t;do{n+=He(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 ps(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var gs="function"==typeof WeakMap?WeakMap:Map;function ms(e,t,n){(n=Bi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qu||(qu=!0,Qu=r),hs(0,t)},n}function vs(e,t,n){(n=Bi(-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(){hs(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){hs(0,t),"function"!=typeof r&&(null===Yu?Yu=new Set([this]):Yu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ys(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new gs;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=Lc.bind(null,e,t,n),t.then(e,e))}function bs(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 ws(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=Bi(-1,1)).tag=2,Vi(n,t,1))),n.lanes|=1),e)}var xs=ke.ReactCurrentOwner,Ss=!1;function ks(e,t,n,r){t.child=null===e?Ei(t,null,n,r):Ci(t,e.child,n,r)}function Cs(e,t,n,r,o){n=n.render;var a=t.ref;return Di(t,o),r=bl(e,t,n,r,a,o),n=wl(),null===e||Ss?(si&&n&&oi(t),t.flags|=1,ks(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qs(e,t,o))}function Es(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||zc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ic(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,_s(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:fo)(i,r)&&e.ref===t.ref)return qs(e,t,o)}return t.flags|=1,(e=Mc(a,r)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(fo(a,r)&&e.ref===t.ref){if(Ss=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,qs(e,t,o);131072&e.flags&&(Ss=!0)}}return Ps(e,t,n,r,o)}function Rs(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(Mu,zu),zu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Na(Mu,zu),zu|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Na(Mu,zu),zu|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Na(Mu,zu),zu|=r;return ks(e,t,o,n),t.child}function Ls(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,n,r,o){var a=Ma(n)?Aa:Ta.current;return a=za(t,a),Di(t,o),n=bl(e,t,n,r,a,o),r=wl(),null===e||Ss?(si&&r&&oi(t),t.flags|=1,ks(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qs(e,t,o))}function Ns(e,t,n,r,o){if(Ma(n)){var a=!0;ja(t)}else a=!1;if(Di(t,o),null===t.stateNode)Ks(e,t),us(t,n,r),ds(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=Ai(u):u=za(t,u=Ma(n)?Aa:Ta.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)&&cs(t,i,r,u),$i=!1;var f=t.memoizedState;i.state=f,Ki(t,r,i,o),s=t.memoizedState,l!==r||f!==s||Da.current||$i?("function"==typeof c&&(is(t,n,c,r),s=t.memoizedState),(l=$i||ss(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,Ui(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:as(t.type,l),i.props=u,d=t.pendingProps,f=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ai(s):s=za(t,s=Ma(n)?Aa:Ta.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)&&cs(t,i,r,s),$i=!1,f=t.memoizedState,i.state=f,Ki(t,r,i,o);var h=t.memoizedState;l!==d||f!==h||Da.current||$i?("function"==typeof p&&(is(t,n,p,r),h=t.memoizedState),(u=$i||ss(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 Os(e,t,n,r,a,o)}function Os(e,t,n,r,o,a){Ls(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Ua(t,n,!1),qs(e,t,a);r=t.stateNode,xs.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ci(t,e.child,null,a),t.child=Ci(t,null,l,a)):ks(e,t,l,a),t.memoizedState=r.state,o&&Ua(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Fa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Fa(0,t.context,!1),Zi(e,t.containerInfo)}function Ds(e,t,n,r,o){return vi(),yi(o),t.flags|=256,ks(e,t,n,r),t.child}var As,zs,Ms,Is,Fs={dehydrated:null,treeContext:null,retryLane:0};function $s(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,n){var r,o=t.pendingProps,a=rl.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(rl,1&a),null===e)return pi(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=$c(l,o,0,null):(i.childLanes=0,i.pendingProps=l),e=Fc(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=$s(n),t.memoizedState=Fs,e):Us(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,Bs(e,t,i,r=ps(Error(se(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=$c({mode:"visible",children:r.children},o,0,null),(a=Fc(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&Ci(t,e.child,null,i),t.child.memoizedState=$s(i),t.memoizedState=Fs,a);if(!(1&t.mode))return Bs(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,i,r=ps(a=Error(se(419)),r,void 0))}if(l=0!==(i&e.childLanes),Ss||l){if(null!==(r=Tu)){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,Fi(e,o),ac(r,e,o,-1))}return yc(),Bs(e,t,i,r=ps(Error(se(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Nc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,li=pa(o.nextSibling),ii=t,si=!0,ui=null,null!==e&&(Ja[Ga++]=ei,Ja[Ga++]=ti,Ja[Ga++]=Za,ei=e.id,ti=e.overflow,Za=t),t=Us(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=Mc(a,s)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?i=Mc(r,i):(i=Fc(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)?$s(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Fs,o}return e=(i=e.child).sibling,o=Mc(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 Us(e,t){return(t=$c({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&yi(r),Ci(t,e.child,null,n),(e=Us(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ti(e.return,t,n)}function Hs(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 Ws(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(ks(e,t,r.children,n),2&(r=rl.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&&Vs(e,n,t);else if(19===e.tag)Vs(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(rl,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ol(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hs(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===ol(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hs(t,!0,n,null,a);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ks(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),$u|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(se(153));if(null!==t.child){for(n=Mc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Qs(e,t){if(!si)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 Ys(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 Xs(e,t,n){var r=t.pendingProps;switch(ai(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(t),null;case 1:case 17:return Ma(t.type)&&Ia(),Ys(t),null;case 3:return r=t.stateNode,el(),Pa(Da),Pa(Ta),il(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(gi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ui&&(uc(ui),ui=null))),zs(e,t),Ys(t),null;case 5:nl(t);var o=Gi(Ji.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(se(166));return Ys(t),null}if(e=Gi(Yi.current),gi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ma]=t,r[va]=a,e=!!(1&t.mode),n){case"dialog":Vo("cancel",r),Vo("close",r);break;case"iframe":case"object":case"embed":Vo("load",r);break;case"video":case"audio":for(o=0;o<$o.length;o++)Vo($o[o],r);break;case"source":Vo("error",r);break;case"img":case"image":case"link":Vo("error",r),Vo("load",r);break;case"details":Vo("toggle",r);break;case"input":Ze(r,a),Vo("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Vo("invalid",r);break;case"textarea":lt(r,a),Vo("invalid",r)}for(var i in xt(n,a),o=null,a)if(a.hasOwnProperty(i)){var l=a[i];"children"===i?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&na(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&na(r.textContent,l,e),o=["children",""+l]):ce.hasOwnProperty(i)&&null!=l&&"onScroll"===i&&Vo("scroll",r)}switch(n){case"input":Ye(r),nt(r,a,!0);break;case"textarea":Ye(r),ut(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=ra)}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=ct(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[ma]=t,e[va]=r,As(e,t,!1,!1),t.stateNode=e;e:{switch(i=St(n,r),n){case"dialog":Vo("cancel",e),Vo("close",e),o=r;break;case"iframe":case"object":case"embed":Vo("load",e),o=r;break;case"video":case"audio":for(o=0;o<$o.length;o++)Vo($o[o],e);o=r;break;case"source":Vo("error",e),o=r;break;case"img":case"image":case"link":Vo("error",e),Vo("load",e),o=r;break;case"details":Vo("toggle",e),o=r;break;case"input":Ze(e,r),o=Ge(e,r),Vo("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=je({},r,{value:void 0}),Vo("invalid",e);break;case"textarea":lt(e,r),o=it(e,r),Vo("invalid",e)}for(a in xt(n,o),l=o)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?bt(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&ht(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&gt(e,s):"number"==typeof s&&gt(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(ce.hasOwnProperty(a)?null!=s&&"onScroll"===a&&Vo("scroll",e):null!=s&&Se(e,a,s,i))}switch(n){case"input":Ye(e),nt(e,r,!1);break;case"textarea":Ye(e),ut(e);break;case"option":null!=r.value&&e.setAttribute("value",""+qe(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?at(e,!!r.multiple,a,!1):null!=r.defaultValue&&at(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ra)}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 Ys(t),null;case 6:if(e&&null!=t.stateNode)Is(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(se(166));if(n=Gi(Ji.current),Gi(Yi.current),gi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ma]=t,(a=r.nodeValue!==n)&&null!==(e=ii))switch(e.tag){case 3:na(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&na(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ma]=t,t.stateNode=r}return Ys(t),null;case 13:if(Pa(rl),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(si&&null!==li&&1&t.mode&&!(128&t.flags))mi(),vi(),t.flags|=98560,a=!1;else if(a=gi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(se(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(se(317));a[ma]=t}else vi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ys(t),a=!1}else null!==ui&&(uc(ui),ui=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&rl.current?0===Iu&&(Iu=3):yc())),null!==t.updateQueue&&(t.flags|=4),Ys(t),null);case 4:return el(),zs(e,t),null===e&&Ko(t.stateNode.containerInfo),Ys(t),null;case 10:return Oi(t.type._context),Ys(t),null;case 19:if(Pa(rl),null===(a=t.memoizedState))return Ys(t),null;if(r=!!(128&t.flags),null===(i=a.rendering))if(r)Qs(a,!1);else{if(0!==Iu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=ol(e))){for(t.flags|=128,Qs(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(rl,1&rl.current|2),t.child}e=e.sibling}null!==a.tail&&en()>Wu&&(t.flags|=128,r=!0,Qs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ol(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Qs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!si)return Ys(t),null}else 2*en()-a.renderingStartTime>Wu&&1073741824!==n&&(t.flags|=128,r=!0,Qs(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=en(),t.sibling=null,n=rl.current,Na(rl,r?1&n|2:1&n),t):(Ys(t),null);case 22:case 23:return hc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&zu)&&(Ys(t),6&t.subtreeFlags&&(t.flags|=8192)):Ys(t),null;case 24:case 25:return null}throw Error(se(156,t.tag))}function Js(e,t){switch(ai(t),t.tag){case 1:return Ma(t.type)&&Ia(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return el(),Pa(Da),Pa(Ta),il(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return nl(t),null;case 13:if(Pa(rl),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(se(340));vi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Pa(rl),null;case 4:return el(),null;case 10:return Oi(t.type._context),null;case 22:case 23:return hc(),null;default:return null}}As=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}},zs=function(){},Ms=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Gi(Yi.current);var a,i=null;switch(n){case"input":o=Ge(e,o),r=Ge(e,r),i=[];break;case"select":o=je({},o,{value:void 0}),r=je({},r,{value:void 0}),i=[];break;case"textarea":o=it(e,o),r=it(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ra)}for(u in xt(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&&(ce.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&&(ce.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Vo("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)}},Is=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gs=!1,Zs=!1,eu="function"==typeof WeakSet?WeakSet:Set,tu=null;function nu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Rc(e,t,n)}else n.current=null}function ru(e,t,n){try{n()}catch(n){Rc(e,t,n)}}var ou=!1;function au(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&&ru(t,n,a)}o=o.next}while(o!==r)}}function iu(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 lu(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 su(e){var t=e.alternate;null!==t&&(e.alternate=null,su(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ma],delete t[va],delete t[ba],delete t[wa],delete t[xa])),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 uu(e){return 5===e.tag||3===e.tag||4===e.tag}function cu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||uu(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 du(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=ra));else if(4!==r&&null!==(e=e.child))for(du(e,t,n),e=e.sibling;null!==e;)du(e,t,n),e=e.sibling}function fu(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(fu(e,t,n),e=e.sibling;null!==e;)fu(e,t,n),e=e.sibling}var pu=null,hu=!1;function gu(e,t,n){for(n=n.child;null!==n;)mu(e,t,n),n=n.sibling}function mu(e,t,n){if(un&&"function"==typeof un.onCommitFiberUnmount)try{un.onCommitFiberUnmount(sn,n)}catch(e){}switch(n.tag){case 5:Zs||nu(n,t);case 6:var r=pu,o=hu;pu=null,gu(e,t,n),hu=o,null!==(pu=r)&&(hu?(e=pu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):pu.removeChild(n.stateNode));break;case 18:null!==pu&&(hu?(e=pu,n=n.stateNode,8===e.nodeType?fa(e.parentNode,n):1===e.nodeType&&fa(e,n),Kn(e)):fa(pu,n.stateNode));break;case 4:r=pu,o=hu,pu=n.stateNode.containerInfo,hu=!0,gu(e,t,n),pu=r,hu=o;break;case 0:case 11:case 14:case 15:if(!Zs&&(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)&&ru(n,t,i),o=o.next}while(o!==r)}gu(e,t,n);break;case 1:if(!Zs&&(nu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Rc(n,t,e)}gu(e,t,n);break;case 21:gu(e,t,n);break;case 22:1&n.mode?(Zs=(r=Zs)||null!==n.memoizedState,gu(e,t,n),Zs=r):gu(e,t,n);break;default:gu(e,t,n)}}function vu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new eu),t.forEach(function(t){var r=Oc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function yu(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:pu=l.stateNode,hu=!1;break e;case 3:case 4:pu=l.stateNode.containerInfo,hu=!0;break e}l=l.return}if(null===pu)throw Error(se(160));mu(a,i,o),pu=null,hu=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Rc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bu(t,e),t=t.sibling}function bu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yu(t,e),wu(e),4&r){try{au(3,e,e.return),iu(3,e)}catch(t){Rc(e,e.return,t)}try{au(5,e,e.return)}catch(t){Rc(e,e.return,t)}}break;case 1:yu(t,e),wu(e),512&r&&null!==n&&nu(n,n.return);break;case 5:if(yu(t,e),wu(e),512&r&&null!==n&&nu(n,n.return),32&e.flags){var o=e.stateNode;try{gt(o,"")}catch(t){Rc(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&&et(o,a),St(l,i);var u=St(l,a);for(i=0;i<s.length;i+=2){var c=s[i],d=s[i+1];"style"===c?bt(o,d):"dangerouslySetInnerHTML"===c?ht(o,d):"children"===c?gt(o,d):Se(o,c,d,u)}switch(l){case"input":tt(o,a);break;case"textarea":st(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?at(o,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?at(o,!!a.multiple,a.defaultValue,!0):at(o,!!a.multiple,a.multiple?[]:"",!1))}o[va]=a}catch(t){Rc(e,e.return,t)}}break;case 6:if(yu(t,e),wu(e),4&r){if(null===e.stateNode)throw Error(se(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Rc(e,e.return,t)}}break;case 3:if(yu(t,e),wu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Kn(t.containerInfo)}catch(t){Rc(e,e.return,t)}break;case 4:default:yu(t,e),wu(e);break;case 13:yu(t,e),wu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Hu=en())),4&r&&vu(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Zs=(u=Zs)||c,yu(t,e),Zs=u):yu(t,e),wu(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(tu=e,c=e.child;null!==c;){for(d=tu=c;null!==tu;){switch(p=(f=tu).child,f.tag){case 0:case 11:case 14:case 15:au(4,f,f.return);break;case 1:nu(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){Rc(r,n,e)}}break;case 5:nu(f,f.return);break;case 22:if(null!==f.memoizedState){Cu(d);continue}}null!==p?(p.return=f,tu=p):Cu(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=yt("display",i))}catch(t){Rc(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){Rc(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:yu(t,e),wu(e),4&r&&vu(e);case 21:}}function wu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(uu(n)){var r=n;break e}n=n.return}throw Error(se(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(gt(o,""),r.flags&=-33),fu(e,cu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;du(e,cu(e),a);break;default:throw Error(se(161))}}catch(t){Rc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function xu(e,t,n){tu=e,Su(e)}function Su(e,t,n){for(var r=!!(1&e.mode);null!==tu;){var o=tu,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Gs;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Zs;l=Gs;var u=Zs;if(Gs=i,(Zs=s)&&!u)for(tu=o;null!==tu;)s=(i=tu).child,22===i.tag&&null!==i.memoizedState?Eu(o):null!==s?(s.return=i,tu=s):Eu(o);for(;null!==a;)tu=a,Su(a),a=a.sibling;tu=o,Gs=l,Zs=u}ku(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,tu=a):ku(e)}}function ku(e){for(;null!==tu;){var t=tu;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Zs||iu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:as(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&qi(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}qi(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&&Kn(d)}}}break;default:throw Error(se(163))}Zs||512&t.flags&&lu(t)}catch(e){Rc(t,t.return,e)}}if(t===e){tu=null;break}if(null!==(n=t.sibling)){n.return=t.return,tu=n;break}tu=t.return}}function Cu(e){for(;null!==tu;){var t=tu;if(t===e){tu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,tu=n;break}tu=t.return}}function Eu(e){for(;null!==tu;){var t=tu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{iu(4,t)}catch(e){Rc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Rc(t,o,e)}}var a=t.return;try{lu(t)}catch(e){Rc(t,a,e)}break;case 5:var i=t.return;try{lu(t)}catch(e){Rc(t,i,e)}}}catch(e){Rc(t,t.return,e)}if(t===e){tu=null;break}var l=t.sibling;if(null!==l){l.return=t.return,tu=l;break}tu=t.return}}var _u,Ru=Math.ceil,Lu=ke.ReactCurrentDispatcher,Pu=ke.ReactCurrentOwner,Nu=ke.ReactCurrentBatchConfig,Ou=0,Tu=null,Du=null,Au=0,zu=0,Mu=La(0),Iu=0,Fu=null,$u=0,ju=0,Uu=0,Bu=null,Vu=null,Hu=0,Wu=1/0,Ku=null,qu=!1,Qu=null,Yu=null,Xu=!1,Ju=null,Gu=0,Zu=0,ec=null,tc=-1,nc=0;function rc(){return 6&Ou?en():-1!==tc?tc:tc=en()}function oc(e){return 1&e.mode?2&Ou&&0!==Au?Au&-Au:null!==bi.transition?(0===nc&&(nc=bn()),nc):0!==(e=kn)?e:e=void 0===(e=window.event)?16:er(e.type):1}function ac(e,t,n,r){if(50<Zu)throw Zu=0,ec=null,Error(se(185));xn(e,n,r),2&Ou&&e===Tu||(e===Tu&&(!(2&Ou)&&(ju|=n),4===Iu&&cc(e,Au)),ic(e,r),1===n&&0===Ou&&!(1&t.mode)&&(Wu=en()+500,Va&&Ka()))}function ic(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-cn(a),l=1<<i,s=o[i];-1===s?0!==(l&n)&&0===(l&r)||(o[i]=vn(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=mn(e,e===Tu?Au:0);if(0===r)null!==n&&Jt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Jt(n),1===t)0===e.tag?function(e){Va=!0,Wa(e)}(dc.bind(null,e)):Wa(dc.bind(null,e)),ca(function(){!(6&Ou)&&Ka()}),n=null;else{switch(Cn(r)){case 1:n=nn;break;case 4:n=rn;break;case 16:default:n=on;break;case 536870912:n=ln}n=Tc(n,lc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function lc(e,t){if(tc=-1,nc=0,6&Ou)throw Error(se(327));var n=e.callbackNode;if(Ec()&&e.callbackNode!==n)return null;var r=mn(e,e===Tu?Au:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=bc(e,r);else{t=r;var o=Ou;Ou|=2;var a=vc();for(Tu===e&&Au===t||(Ku=null,Wu=en()+500,gc(e,t));;)try{xc();break}catch(t){mc(e,t)}Ni(),Lu.current=a,Ou=o,null!==Du?t=0:(Tu=null,Au=0,t=Iu)}if(0!==t){if(2===t&&(0!==(o=yn(e))&&(r=o,t=sc(e,o))),1===t)throw n=Fu,gc(e,0),cc(e,r),ic(e,en()),n;if(6===t)cc(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(!co(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=bc(e,r),2===t&&(a=yn(e),0!==a&&(r=a,t=sc(e,a))),1!==t)))throw n=Fu,gc(e,0),cc(e,r),ic(e,en()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(se(345));case 2:case 5:Cc(e,Vu,Ku);break;case 3:if(cc(e,r),(130023424&r)===r&&10<(t=Hu+500-en())){if(0!==mn(e,0))break;if(((o=e.suspendedLanes)&r)!==r){rc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=la(Cc.bind(null,e,Vu,Ku),t);break}Cc(e,Vu,Ku);break;case 4:if(cc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-cn(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=en()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ru(r/1960))-r)){e.timeoutHandle=la(Cc.bind(null,e,Vu,Ku),r);break}Cc(e,Vu,Ku);break;default:throw Error(se(329))}}}return ic(e,en()),e.callbackNode===n?lc.bind(null,e):null}function sc(e,t){var n=Bu;return e.current.memoizedState.isDehydrated&&(gc(e,t).flags|=256),2!==(e=bc(e,t))&&(t=Vu,Vu=n,null!==t&&uc(t)),e}function uc(e){null===Vu?Vu=e:Vu.push.apply(Vu,e)}function cc(e,t){for(t&=~Uu,t&=~ju,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-cn(t),r=1<<n;e[n]=-1,t&=~r}}function dc(e){if(6&Ou)throw Error(se(327));Ec();var t=mn(e,0);if(!(1&t))return ic(e,en()),null;var n=bc(e,t);if(0!==e.tag&&2===n){var r=yn(e);0!==r&&(t=r,n=sc(e,r))}if(1===n)throw n=Fu,gc(e,0),cc(e,t),ic(e,en()),n;if(6===n)throw Error(se(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cc(e,Vu,Ku),ic(e,en()),null}function fc(e,t){var n=Ou;Ou|=1;try{return e(t)}finally{0===(Ou=n)&&(Wu=en()+500,Va&&Ka())}}function pc(e){null!==Ju&&0===Ju.tag&&!(6&Ou)&&Ec();var t=Ou;Ou|=1;var n=Nu.transition,r=kn;try{if(Nu.transition=null,kn=1,e)return e()}finally{kn=r,Nu.transition=n,!(6&(Ou=t))&&Ka()}}function hc(){zu=Mu.current,Pa(Mu)}function gc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,sa(n)),null!==Du)for(n=Du.return;null!==n;){var r=n;switch(ai(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ia();break;case 3:el(),Pa(Da),Pa(Ta),il();break;case 5:nl(r);break;case 4:el();break;case 13:case 19:Pa(rl);break;case 10:Oi(r.type._context);break;case 22:case 23:hc()}n=n.return}if(Tu=e,Du=e=Mc(e.current,null),Au=zu=t,Iu=0,Fu=null,Uu=ju=$u=0,Vu=Bu=null,null!==zi){for(t=0;t<zi.length;t++)if(null!==(r=(n=zi[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}zi=null}return e}function mc(e,t){for(;;){var n=Du;try{if(Ni(),ll.current=ts,pl){for(var r=cl.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}pl=!1}if(ul=0,fl=dl=cl=null,hl=!1,gl=0,Pu.current=null,null===n||null===n.return){Iu=1,Fu=t,Du=null;break}e:{var a=e,i=n.return,l=n,s=t;if(t=Au,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=bs(i);if(null!==p){p.flags&=-257,ws(p,i,l,0,t),1&p.mode&&ys(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)){ys(a,u,t),yc();break e}s=Error(se(426))}else if(si&&1&l.mode){var m=bs(i);if(null!==m){!(65536&m.flags)&&(m.flags|=256),ws(m,i,l,0,t),yi(fs(s,l));break e}}a=s=fs(s,l),4!==Iu&&(Iu=2),null===Bu?Bu=[a]:Bu.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,ms(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!==Yu&&Yu.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,vs(a,l,t));break e}}a=a.return}while(null!==a)}kc(n)}catch(e){t=e,Du===n&&null!==n&&(Du=n=n.return);continue}break}}function vc(){var e=Lu.current;return Lu.current=ts,null===e?ts:e}function yc(){0!==Iu&&3!==Iu&&2!==Iu||(Iu=4),null===Tu||!(268435455&$u)&&!(268435455&ju)||cc(Tu,Au)}function bc(e,t){var n=Ou;Ou|=2;var r=vc();for(Tu===e&&Au===t||(Ku=null,gc(e,t));;)try{wc();break}catch(t){mc(e,t)}if(Ni(),Ou=n,Lu.current=r,null!==Du)throw Error(se(261));return Tu=null,Au=0,Iu}function wc(){for(;null!==Du;)Sc(Du)}function xc(){for(;null!==Du&&!Gt();)Sc(Du)}function Sc(e){var t=_u(e.alternate,e,zu);e.memoizedProps=e.pendingProps,null===t?kc(e):Du=t,Pu.current=null}function kc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Js(n,t)))return n.flags&=32767,void(Du=n);if(null===e)return Iu=6,void(Du=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Xs(n,t,zu)))return void(Du=n);if(null!==(t=t.sibling))return void(Du=t);Du=t=e}while(null!==t);0===Iu&&(Iu=5)}function Cc(e,t,n){var r=kn,o=Nu.transition;try{Nu.transition=null,kn=1,function(e,t,n,r){do{Ec()}while(null!==Ju);if(6&Ou)throw Error(se(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(se(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-cn(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===Tu&&(Du=Tu=null,Au=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Xu||(Xu=!0,Tc(on,function(){return Ec(),null})),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=Nu.transition,Nu.transition=null;var i=kn;kn=1;var l=Ou;Ou|=4,Pu.current=null,function(e,t){if(oa=Qn,vo(e=mo())){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(aa={focusedElem:e,selectionRange:n},Qn=!1,tu=t;null!==tu;)if(e=(t=tu).child,1028&t.subtreeFlags&&null!==e)e.return=t,tu=e;else for(;null!==tu;){t=tu;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:as(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(se(163))}}catch(e){Rc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,tu=e;break}tu=t.return}h=ou,ou=!1}(e,n),bu(n,e),yo(aa),Qn=!!oa,aa=oa=null,e.current=n,xu(n),Zt(),Ou=l,kn=i,Nu.transition=a}else e.current=n;if(Xu&&(Xu=!1,Ju=e,Gu=o),a=e.pendingLanes,0===a&&(Yu=null),function(e){if(un&&"function"==typeof un.onCommitFiberRoot)try{un.onCommitFiberRoot(sn,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ic(e,en()),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(qu)throw qu=!1,e=Qu,Qu=null,e;!!(1&Gu)&&0!==e.tag&&Ec(),a=e.pendingLanes,1&a?e===ec?Zu++:(Zu=0,ec=e):Zu=0,Ka()}(e,t,n,r)}finally{Nu.transition=o,kn=r}return null}function Ec(){if(null!==Ju){var e=Cn(Gu),t=Nu.transition,n=kn;try{if(Nu.transition=null,kn=16>e?16:e,null===Ju)var r=!1;else{if(e=Ju,Ju=null,Gu=0,6&Ou)throw Error(se(331));var o=Ou;for(Ou|=4,tu=e.current;null!==tu;){var a=tu,i=a.child;if(16&tu.flags){var l=a.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(tu=u;null!==tu;){var c=tu;switch(c.tag){case 0:case 11:case 15:au(8,c,a)}var d=c.child;if(null!==d)d.return=c,tu=d;else for(;null!==tu;){var f=(c=tu).sibling,p=c.return;if(su(c),c===u){tu=null;break}if(null!==f){f.return=p,tu=f;break}tu=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)}}tu=a}}if(2064&a.subtreeFlags&&null!==i)i.return=a,tu=i;else e:for(;null!==tu;){if(2048&(a=tu).flags)switch(a.tag){case 0:case 11:case 15:au(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,tu=v;break e}tu=a.return}}var y=e.current;for(tu=y;null!==tu;){var b=(i=tu).child;if(2064&i.subtreeFlags&&null!==b)b.return=i,tu=b;else e:for(i=y;null!==tu;){if(2048&(l=tu).flags)try{switch(l.tag){case 0:case 11:case 15:iu(9,l)}}catch(e){Rc(l,l.return,e)}if(l===i){tu=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,tu=w;break e}tu=l.return}}if(Ou=o,Ka(),un&&"function"==typeof un.onPostCommitFiberRoot)try{un.onPostCommitFiberRoot(sn,e)}catch(e){}r=!0}return r}finally{kn=n,Nu.transition=t}}return!1}function _c(e,t,n){e=Vi(e,t=ms(0,t=fs(n,t),1),1),t=rc(),null!==e&&(xn(e,1,t),ic(e,t))}function Rc(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Yu||!Yu.has(r))){t=Vi(t,e=vs(t,e=fs(n,e),1),1),e=rc(),null!==t&&(xn(t,1,e),ic(t,e));break}}t=t.return}}function Lc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=rc(),e.pingedLanes|=e.suspendedLanes&n,Tu===e&&(Au&n)===n&&(4===Iu||3===Iu&&(130023424&Au)===Au&&500>en()-Hu?gc(e,0):Uu|=n),ic(e,t)}function Pc(e,t){0===t&&(1&e.mode?(t=hn,!(130023424&(hn<<=1))&&(hn=4194304)):t=1);var n=rc();null!==(e=Fi(e,t))&&(xn(e,t,n),ic(e,n))}function Nc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pc(e,n)}function Oc(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(se(314))}null!==r&&r.delete(t),Pc(e,n)}function Tc(e,t){return Xt(e,t)}function Dc(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 Ac(e,t,n,r){return new Dc(e,t,n,r)}function zc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Ac(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 Ic(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)zc(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case _e:return Fc(n.children,o,a,t);case Re:i=8,o|=8;break;case Le:return(e=Ac(12,n,t,2|o)).elementType=Le,e.lanes=a,e;case Te:return(e=Ac(13,n,t,o)).elementType=Te,e.lanes=a,e;case De:return(e=Ac(19,n,t,o)).elementType=De,e.lanes=a,e;case Me:return $c(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Pe:i=10;break e;case Ne:i=9;break e;case Oe:i=11;break e;case Ae:i=14;break e;case ze:i=16,r=null;break e}throw Error(se(130,null==e?e:typeof e,""))}return(t=Ac(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Fc(e,t,n,r){return(e=Ac(7,e,r,t)).lanes=n,e}function $c(e,t,n,r){return(e=Ac(22,e,r,t)).elementType=Me,e.lanes=n,e.stateNode={isHidden:!1},e}function jc(e,t,n){return(e=Ac(6,e,null,t)).lanes=n,e}function Uc(e,t,n){return(t=Ac(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(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=wn(0),this.expirationTimes=wn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wn(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Vc(e,t,n,r,o,a,i,l,s){return e=new Bc(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ac(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ji(a),e}function Hc(e){if(!e)return Oa;e:{if(Wt(e=e._reactInternals)!==e||1!==e.tag)throw Error(se(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ma(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(se(171))}if(1===e.tag){var n=e.type;if(Ma(n))return $a(e,n,t)}return t}function Wc(e,t,n,r,o,a,i,l,s){return(e=Vc(n,r,!0,e,0,a,0,l,s)).context=Hc(null),n=e.current,(a=Bi(r=rc(),o=oc(n))).callback=null!=t?t:null,Vi(n,a,o),e.current.lanes=o,xn(e,o,r),ic(e,r),e}function Kc(e,t,n,r){var o=t.current,a=rc(),i=oc(o);return n=Hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bi(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Vi(o,t,i))&&(ac(e,o,i,a),Hi(e,o,i)),i}function qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yc(e,t){Qc(e,t),(e=e.alternate)&&Qc(e,t)}_u=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Da.current)Ss=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return Ss=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),vi();break;case 5:tl(t);break;case 1:Ma(t.type)&&ja(t);break;case 4:Zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Na(_i,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Na(rl,1&rl.current),t.flags|=128,null):0!==(n&t.child.childLanes)?js(e,t,n):(Na(rl,1&rl.current),null!==(e=qs(e,t,n))?e.sibling:null);Na(rl,1&rl.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Ws(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Na(rl,rl.current),r)break;return null;case 22:case 23:return t.lanes=0,Rs(e,t,n)}return qs(e,t,n)}(e,t,n);Ss=!!(131072&e.flags)}else Ss=!1,si&&1048576&t.flags&&ri(t,Xa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ks(e,t),e=t.pendingProps;var o=za(t,Ta.current);Di(t,n),o=bl(null,t,r,e,o,n);var a=wl();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,Ma(r)?(a=!0,ja(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ji(t),o.updater=ls,t.stateNode=o,o._reactInternals=t,ds(t,r,e,n),t=Os(null,t,r,!0,a,n)):(t.tag=0,si&&a&&oi(t),ks(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ks(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return zc(e)?1:0;if(null!=e){if((e=e.$$typeof)===Oe)return 11;if(e===Ae)return 14}return 2}(r),e=as(r,e),o){case 0:t=Ps(null,t,r,e,n);break e;case 1:t=Ns(null,t,r,e,n);break e;case 11:t=Cs(null,t,r,e,n);break e;case 14:t=Es(null,t,r,as(r.type,e),n);break e}throw Error(se(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ps(e,t,r,o=t.elementType===r?o:as(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ns(e,t,r,o=t.elementType===r?o:as(r,o),n);case 3:e:{if(Ts(t),null===e)throw Error(se(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ui(e,t),Ki(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=Ds(e,t,r,n,o=fs(Error(se(423)),t));break e}if(r!==o){t=Ds(e,t,r,n,o=fs(Error(se(424)),t));break e}for(li=pa(t.stateNode.containerInfo.firstChild),ii=t,si=!0,ui=null,n=Ei(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(vi(),r===o){t=qs(e,t,n);break e}ks(e,t,r,n)}t=t.child}return t;case 5:return tl(t),null===e&&pi(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,ia(r,o)?i=null:null!==a&&ia(r,a)&&(t.flags|=32),Ls(e,t),ks(e,t,i,n),t.child;case 6:return null===e&&pi(t),null;case 13:return js(e,t,n);case 4:return Zi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ci(t,null,r,n):ks(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Cs(e,t,r,o=t.elementType===r?o:as(r,o),n);case 7:return ks(e,t,t.pendingProps,n),t.child;case 8:case 12:return ks(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(_i,r._currentValue),r._currentValue=i,null!==a)if(co(a.value,i)){if(a.children===o.children&&!Da.current){t=qs(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=Bi(-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),Ti(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(se(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Ti(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}ks(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Di(t,n),r=r(o=Ai(o)),t.flags|=1,ks(e,t,r,n),t.child;case 14:return o=as(r=t.type,t.pendingProps),Es(e,t,r,o=as(r.type,o),n);case 15:return _s(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:as(r,o),Ks(e,t),t.tag=1,Ma(r)?(e=!0,ja(t)):e=!1,Di(t,n),us(t,r,o),ds(t,r,o,n),Os(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return Rs(e,t,n)}throw Error(se(156,t.tag))};var Xc="function"==typeof reportError?reportError:function(e){console.error(e)};function Jc(e){this._internalRoot=e}function Gc(e){this._internalRoot=e}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function ed(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function td(){}function nd(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=qc(i);l.call(e)}}Kc(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=qc(i);a.call(e)}}var i=Wc(t,r,e,0,null,!1,0,"",td);return e._reactRootContainer=i,e[ya]=i.current,Ko(8===e.nodeType?e.parentNode:e),pc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=qc(s);l.call(e)}}var s=Vc(e,0,!1,null,0,!1,0,"",td);return e._reactRootContainer=s,e[ya]=s.current,Ko(8===e.nodeType?e.parentNode:e),pc(function(){Kc(t,s,n,r)}),s}(n,t,e,o,r);return qc(i)}Gc.prototype.render=Jc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(se(409));Kc(e,t,null,null)},Gc.prototype.unmount=Jc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;pc(function(){Kc(null,e,null,null)}),t[ya]=null}},Gc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ln();e={blockedOn:null,target:e,priority:t};for(var n=0;n<In.length&&0!==t&&t<In[n].priority;n++);In.splice(n,0,e),0===n&&Un(e)}},En=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gn(t.pendingLanes);0!==n&&(Sn(t,1|n),ic(t,en()),!(6&Ou)&&(Wu=en()+500,Ka()))}break;case 13:pc(function(){var t=Fi(e,1);if(null!==t){var n=rc();ac(t,e,1,n)}}),Yc(e,1)}},_n=function(e){if(13===e.tag){var t=Fi(e,134217728);if(null!==t)ac(t,e,134217728,rc());Yc(e,134217728)}},Rn=function(e){if(13===e.tag){var t=oc(e),n=Fi(e,t);if(null!==n)ac(n,e,t,rc());Yc(e,t)}},Ln=function(){return kn},Pn=function(e,t){var n=kn;try{return kn=e,t()}finally{kn=n}},Et=function(e,t,n){switch(t){case"input":if(tt(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=Ea(r);if(!o)throw Error(se(90));Xe(r),tt(r,o)}}}break;case"textarea":st(e,n);break;case"select":null!=(t=n.value)&&at(e,!!n.multiple,t,!1)}},Ot=fc,Tt=pc;var rd={usingClientEntryPoint:!1,Events:[ka,Ca,Ea,Pt,Nt,fc]},od={findFiberByHostInstance:Sa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ad={bundleType:od.bundleType,version:od.version,rendererPackageName:od.rendererPackageName,rendererConfig:od.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ke.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qt(e))?null:e.stateNode},findFiberByHostInstance:od.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 id=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!id.isDisabled&&id.supportsFiber)try{sn=id.inject(ad),un=id}catch(pt){}}re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rd,re.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zc(t))throw Error(se(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ee,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},re.createRoot=function(e,t){if(!Zc(e))throw Error(se(299));var n=!1,r="",o=Xc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Vc(e,1,!1,null,0,n,0,r,o),e[ya]=t.current,Ko(8===e.nodeType?e.parentNode:e),new Jc(t)},re.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(se(188));throw e=Object.keys(e).join(","),Error(se(268,e))}return e=null===(e=Qt(t))?null:e.stateNode},re.flushSync=function(e){return pc(e)},re.hydrate=function(e,t,n){if(!ed(t))throw Error(se(200));return nd(null,e,t,!0,n)},re.hydrateRoot=function(e,t,n){if(!Zc(e))throw Error(se(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=Xc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,o,0,a,i),e[ya]=t.current,Ko(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 Gc(t)},re.render=function(e,t,n){if(!ed(t))throw Error(se(200));return nd(null,e,t,!1,n)},re.unmountComponentAtNode=function(e){if(!ed(e))throw Error(se(40));return!!e._reactRootContainer&&(pc(function(){nd(null,null,e,!1,function(){e._reactRootContainer=null,e[ya]=null})}),!0)},re.unstable_batchedUpdates=fc,re.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ed(n))throw Error(se(200));if(null==e||void 0===e._reactInternals)throw Error(se(38));return nd(e,t,n,!1,r)},re.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)}}(),ne.exports=re;const ld="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function sd(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function ud(e){return"nodeType"in e}function cd(e){var t,n;return e?sd(e)?e:ud(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function dd(e){const{Document:t}=cd(e);return e instanceof t}function fd(e){return!sd(e)&&e instanceof cd(e).HTMLElement}function pd(e){return e instanceof cd(e).SVGElement}function hd(e){return e?sd(e)?e.document:ud(e)?dd(e)?e:fd(e)||pd(e)?e.ownerDocument:document:document:document}const gd=ld?f.exports.useLayoutEffect:f.exports.useEffect;function md(e){const t=f.exports.useRef(e);return gd(()=>{t.current=e}),f.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 vd(e,t){void 0===t&&(t=[e]);const n=f.exports.useRef(e);return gd(()=>{n.current!==e&&(n.current=e)},t),n}function yd(e,t){const n=f.exports.useRef();return f.exports.useMemo(()=>{const t=e(n.current);return n.current=t,t},[...t])}function bd(e){const t=md(e),n=f.exports.useRef(null),r=f.exports.useCallback(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function wd(e){const t=f.exports.useRef();return f.exports.useEffect(()=>{t.current=e},[e]),t.current}let xd={};function Sd(e,t){return f.exports.useMemo(()=>{if(t)return t;const n=null==xd[e]?0:xd[e]+1;return xd[e]=n,e+"-"+n},[e,t])}function kd(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 Cd=kd(1),Ed=kd(-1);function _d(e){if(!e)return!1;const{KeyboardEvent:t}=cd(e.target);return t&&e instanceof t}function Rd(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=cd(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 Ld=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[Ld.Translate.toString(e),Ld.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Pd="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Nd(e){return e.matches(Pd)?e:e.querySelector(Pd)}const Od={display:"none"};function Td(e){let{id:t,value:n}=e;return Q.createElement("div",{id:t,style:Od},n)}function Dd(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return Q.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 Ad=f.exports.createContext(null);const zd={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 "},Md={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 Id(e){let{announcements:t=Md,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=zd}=e;const{announce:a,announcement:i}=function(){const[e,t]=f.exports.useState("");return{announce:f.exports.useCallback(e=>{null!=e&&t(e)},[]),announcement:e}}(),l=Sd("DndLiveRegion"),[s,u]=f.exports.useState(!1);if(f.exports.useEffect(()=>{u(!0)},[]),function(e){const t=f.exports.useContext(Ad);f.exports.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}(f.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 c=Q.createElement(Q.Fragment,null,Q.createElement(Td,{id:r,value:o.draggable}),Q.createElement(Dd,{id:l,announcement:i}));return n?ne.exports.createPortal(c,n):c}var Fd;function $d(){}!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"}(Fd||(Fd={}));const jd=Object.freeze({x:0,y:0});function Ud(e,t){const n=Rd(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function Bd(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Vd(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 Hd=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=Vd(a,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(Bd)};function Wd(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:jd}const Kd=(qd=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+qd*t.y,bottom:e.bottom+qd*t.y,left:e.left+qd*t.x,right:e.right+qd*t.x}),{...e})});var qd;function Qd(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 Yd={ignoreTransform:!1};function Xd(e,t){void 0===t&&(t=Yd);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=cd(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=Qd(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 Jd(e){return Xd(e,{ignoreTransform:!0})}function Gd(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(dd(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!fd(o)||pd(o))return n;if(n.includes(o))return n;const a=cd(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=cd(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=cd(e).getComputedStyle(e)),"fixed"===t.position}(o,a)?n:r(o.parentNode)}(e):n}function Zd(e){const[t]=Gd(e,1);return null!=t?t:null}function ef(e){return ld&&e?sd(e)?e:ud(e)?dd(e)||e===hd(e).scrollingElement?window:fd(e)?e:null:null:null}function tf(e){return sd(e)?e.scrollX:e.scrollLeft}function nf(e){return sd(e)?e.scrollY:e.scrollTop}function rf(e){return{x:tf(e),y:nf(e)}}var of;function af(e){return!(!ld||!e)&&e===document.scrollingElement}function lf(e){const t={x:0,y:0},n=af(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"}(of||(of={}));const sf={x:.2,y:.2};function uf(e,t,n,r,o){let{top:a,left:i,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=sf);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=lf(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=of.Backward,h.y=r*Math.abs((t.top+g-a)/g)):!c&&s>=t.bottom-g&&(p.y=of.Forward,h.y=r*Math.abs((t.bottom-g-s)/g)),!f&&l>=t.right-m?(p.x=of.Forward,h.x=r*Math.abs((t.right-m-l)/m)):!d&&i<=t.left+m&&(p.x=of.Backward,h.x=r*Math.abs((t.left+m-i)/m)),{direction:p,speed:h}}function cf(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 df(e){return e.reduce((e,t)=>Cd(e,rf(t)),jd)}function ff(e,t){if(void 0===t&&(t=Xd),!e)return;const{top:n,left:r,bottom:o,right:a}=t(e);Zd(e)&&(o<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const pf=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+tf(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+nf(t),0)}]];class hf{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=Gd(t),r=df(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of pf)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 gf{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 mf(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 vf,yf;function bf(e){e.preventDefault()}function wf(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"}(vf||(vf={})),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"}(yf||(yf={}));const xf={start:[yf.Space,yf.Enter],cancel:[yf.Esc],end:[yf.Space,yf.Enter,yf.Tab]},Sf=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case yf.Right:return{...n,x:n.x+25};case yf.Left:return{...n,x:n.x-25};case yf.Down:return{...n,y:n.y+25};case yf.Up:return{...n,y:n.y-25}}};class kf{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 gf(hd(t)),this.windowListeners=new gf(cd(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(vf.Resize,this.handleCancel),this.windowListeners.add(vf.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(vf.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&ff(n),t(jd)}handleKeyDown(e){if(_d(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=xf,coordinateGetter:a=Sf,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}:jd;this.referenceCoordinates||(this.referenceCoordinates=u);const c=a(e,{active:t,context:n.current,currentCoordinates:u});if(c){const t=Ed(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}=lf(n),p=cf(n),h={x:Math.min(o===yf.Right?p.right-p.width/2:p.right,Math.max(o===yf.Right?p.left:p.left+p.width/2,c.x)),y:Math.min(o===yf.Down?p.bottom-p.height/2:p.bottom,Math.max(o===yf.Down?p.top:p.top+p.height/2,c.y))},g=o===yf.Right&&!l||o===yf.Left&&!s,m=o===yf.Down&&!u||o===yf.Up&&!a;if(g&&h.x!==c.x){const e=n.scrollLeft+t.x,a=o===yf.Right&&e<=d.x||o===yf.Left&&e>=f.x;if(a&&!t.y)return void n.scrollTo({left:e,behavior:i});r.x=a?n.scrollLeft-e:o===yf.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===yf.Down&&e<=d.y||o===yf.Up&&e>=f.y;if(a&&!t.x)return void n.scrollTo({top:e,behavior:i});r.y=a?n.scrollTop-e:o===yf.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:i});break}}this.handleMove(e,Cd(Ed(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 Cf(e){return Boolean(e&&"distance"in e)}function Ef(e){return Boolean(e&&"delay"in e)}kf.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=xf,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 _f{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=cd(e);return e instanceof t?e:hd(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=hd(a),this.documentListeners=new gf(this.document),this.listeners=new gf(n),this.windowListeners=new gf(cd(a)),this.initialCoordinates=null!=(r=Rd(o))?r:jd,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(vf.Resize,this.handleCancel),this.windowListeners.add(vf.DragStart,bf),this.windowListeners.add(vf.VisibilityChange,this.handleCancel),this.windowListeners.add(vf.ContextMenu,bf),this.documentListeners.add(vf.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ef(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(Cf(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(vf.Click,wf,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(vf.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=Rd(e))?t:jd,s=Ed(r,l);if(!n&&i){if(Cf(i)){if(null!=i.tolerance&&mf(s,i.tolerance))return this.handleCancel();if(mf(s,i.distance))return this.handleStart()}return Ef(i)&&mf(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===yf.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Rf={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Lf extends _f{constructor(e){const{event:t}=e,n=hd(t.target);super(e,Rf,n)}}Lf.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 Pf={move:{name:"mousemove"},end:{name:"mouseup"}};var Nf;!function(e){e[e.RightClick=2]="RightClick"}(Nf||(Nf={}));(class extends _f{constructor(e){super(e,Pf,hd(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Nf.RightClick&&(null==r||r({event:n}),!0)}}];const Of={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var Tf,Df;function Af(e){let{acceleration:t,activator:n=Tf.Pointer,canScroll:r,draggingRect:o,enabled:a,interval:i=5,order:l=Df.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:p}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=wd(t);return yd(e=>{if(n||!r||!e)return zf;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[of.Backward]:e.x[of.Backward]||-1===o.x,[of.Forward]:e.x[of.Forward]||1===o.x},y:{[of.Backward]:e.y[of.Backward]||-1===o.y,[of.Forward]:e.y[of.Forward]||1===o.y}}},[n,t,r])}({delta:d,disabled:!a}),[g,m]=function(){const e=f.exports.useRef(null);return[f.exports.useCallback((t,n)=>{e.current=setInterval(t,n)},[]),f.exports.useCallback(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),v=f.exports.useRef({x:0,y:0}),y=f.exports.useRef({x:0,y:0}),b=f.exports.useMemo(()=>{switch(n){case Tf.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case Tf.DraggableRect:return o}},[n,o,s]),w=f.exports.useRef(null),x=f.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=f.exports.useMemo(()=>l===Df.TreeOrder?[...u].reverse():u,[l,u]);f.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=c[n];if(!o)continue;const{direction:a,speed:l}=uf(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,c,JSON.stringify(p)])}(class extends _f{constructor(e){super(e,Of)}static setup(){return window.addEventListener(Of.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Of.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"}(Tf||(Tf={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Df||(Df={}));const zf={x:{[of.Backward]:!1,[of.Forward]:!1},y:{[of.Backward]:!1,[of.Forward]:!1}};var Mf,If;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Mf||(Mf={})),function(e){e.Optimized="optimized"}(If||(If={}));const Ff=new Map;function $f(e,t){return yd(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function jf(e){let{callback:t,disabled:n}=e;const r=md(t),o=f.exports.useMemo(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)},[n]);return f.exports.useEffect(()=>()=>null==o?void 0:o.disconnect(),[o]),o}function Uf(e){return new hf(Xd(e),e)}function Bf(e,t,n){void 0===t&&(t=Uf);const[r,o]=f.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=md(t),o=f.exports.useMemo(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)},[r,n]);return f.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=jf({callback:a});return gd(()=>{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 Vf=[];function Hf(e,t){void 0===t&&(t=[]);const n=f.exports.useRef(null);return f.exports.useEffect(()=>{n.current=null},t),f.exports.useEffect(()=>{const t=e!==jd;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?Ed(e,n.current):jd}function Wf(e){return f.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 Kf=[];function qf(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return fd(t)?t:e}const Qf=[{sensor:Lf,options:{}},{sensor:kf,options:{}}],Yf={current:{}},Xf={draggable:{measure:Jd},droppable:{measure:Jd,strategy:Mf.WhileDragging,frequency:If.Optimized},dragOverlay:{measure:Xd}};class Jf 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 Gf={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Jf,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:$d},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Xf,measureDroppableContainers:$d,windowRect:null,measuringScheduled:!1},Zf={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:$d,draggableNodes:new Map,over:null,measureDroppableContainers:$d},ep=f.exports.createContext(Zf),tp=f.exports.createContext(Gf);function np(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Jf}}}function rp(e,t){switch(t.type){case Fd.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Fd.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 Fd.DragEnd:case Fd.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Fd.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Jf(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Fd.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 Jf(e.droppable.containers);return i.set(n,{...a,disabled:o}),{...e,droppable:{...e.droppable,containers:i}}}case Fd.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new Jf(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function op(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=f.exports.useContext(ep),a=wd(r),i=wd(null==n?void 0:n.id);return f.exports.useEffect(()=>{if(!t&&!r&&a&&null!=i){if(!_d(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=Nd(e);if(t){t.focus();break}}})}},[r,t,o,i,a]),null}function ap(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}const ip=f.exports.createContext({...jd,scaleX:1,scaleY:1});var lp;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(lp||(lp={})),f.exports.memo(function(e){var t,n,r,o;let{id:a,accessibility:i,autoScroll:l=!0,children:s,sensors:u=Qf,collisionDetection:c=Hd,measuring:d,modifiers:p,...h}=e;const g=f.exports.useReducer(rp,void 0,np),[m,v]=g,[y,b]=function(){const[e]=f.exports.useState(()=>new Set),t=f.exports.useCallback(t=>(e.add(t),()=>e.delete(t)),[e]);return[f.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]=f.exports.useState(lp.Uninitialized),S=w===lp.Initialized,{draggable:{active:k,nodes:C,translate:E},droppable:{containers:_}}=m,R=null!=k?C.get(k):null,L=f.exports.useRef({initial:null,translated:null}),P=f.exports.useMemo(()=>{var e;return null!=k?{id:k,data:null!=(e=null==R?void 0:R.data)?e:Yf,rect:L}:null},[k,R]),N=f.exports.useRef(null),[O,T]=f.exports.useState(null),[D,A]=f.exports.useState(null),z=vd(h,Object.values(h)),M=Sd("DndDescribedBy",a),I=f.exports.useMemo(()=>_.getEnabled(),[_]),F=($=d,f.exports.useMemo(()=>({draggable:{...Xf.draggable,...null==$?void 0:$.draggable},droppable:{...Xf.droppable,...null==$?void 0:$.droppable},dragOverlay:{...Xf.dragOverlay,...null==$?void 0:$.dragOverlay}}),[null==$?void 0:$.draggable,null==$?void 0:$.droppable,null==$?void 0:$.dragOverlay]));var $;const{droppableRects:j,measureDroppableContainers:U,measuringScheduled:B}=function(e,t){let{dragging:n,dependencies:r,config:o}=t;const[a,i]=f.exports.useState(null),{frequency:l,measure:s,strategy:u}=o,c=f.exports.useRef(e),d=function(){switch(u){case Mf.Always:return!1;case Mf.BeforeDragging:return n;default:return!n}}(),p=vd(d),h=f.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=f.exports.useRef(null),m=yd(t=>{if(d&&!n)return Ff;if(!t||t===Ff||c.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 hf(s(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,s]);return f.exports.useEffect(()=>{c.current=e},[e]),f.exports.useEffect(()=>{d||h()},[n,d]),f.exports.useEffect(()=>{a&&a.length>0&&i(null)},[JSON.stringify(a)]),f.exports.useEffect(()=>{d||"number"!=typeof l||null!==g.current||(g.current=setTimeout(()=>{h(),g.current=null},l))},[l,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(I,{dragging:S,dependencies:[E.x,E.y],config:F.droppable}),V=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return yd(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(C,k),H=f.exports.useMemo(()=>D?Rd(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}}(),K=function(e,t){return $f(e,t)}(V,F.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const a=f.exports.useRef(!1),{x:i,y:l}="boolean"==typeof o?{x:o,y:o}:o;gd(()=>{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=Wd(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=Zd(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:K,measure:F.draggable.measure});const q=Bf(V,F.draggable.measure,K),Y=Bf(V?V.parentElement:null),X=f.exports.useRef({activatorEvent:null,active:null,activeNode:V,collisionRect:null,collisions:null,droppableRects:j,draggableNodes:C,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),J=_.getNodeFor(null==(t=X.current.over)?void 0:t.id),G=function(e){let{measure:t}=e;const[n,r]=f.exports.useState(null),o=jf({callback:f.exports.useCallback(e=>{for(const{target:n}of e)if(fd(n)){r(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),a=f.exports.useCallback(e=>{const n=qf(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),r(n?t(n):null)},[t,o]),[i,l]=bd(a);return f.exports.useMemo(()=>({nodeRef:i,rect:n,setRef:l}),[n,i,l])}({measure:F.dragOverlay.measure}),Z=null!=(n=G.nodeRef.current)?n:V,ee=S?null!=(r=G.rect)?r:q:null,te=Boolean(G.nodeRef.current&&G.rect),re=Wd(oe=te?null:q,$f(oe));var oe;const ae=Wf(Z?cd(Z):null),ie=function(e){const t=f.exports.useRef(e),n=yd(n=>e?n&&n!==Vf&&e&&t.current&&e.parentNode===t.current.parentNode?n:Gd(e):Vf,[e]);return f.exports.useEffect(()=>{t.current=e},[e]),n}(S?null!=J?J:V:null),le=function(e,t){void 0===t&&(t=Xd);const[n]=e,r=Wf(n?cd(n):null),[o,a]=f.exports.useState(Kf);function i(){a(()=>e.length?e.map(e=>af(e)?r:new hf(t(e),e)):Kf)}const l=jf({callback:i});return gd(()=>{null==l||l.disconnect(),i(),e.forEach(e=>null==l?void 0:l.observe(e))},[e]),o}(ie),se=ap(p,{transform:{x:E.x-re.x,y:E.y-re.y,scaleX:1,scaleY:1},activatorEvent:D,active:P,activeNodeRect:q,containerNodeRect:Y,draggingNodeRect:ee,over:X.current.over,overlayNodeRect:G.rect,scrollableAncestors:ie,scrollableAncestorRects:le,windowRect:ae}),ue=H?Cd(H,E):null,ce=function(e){const[t,n]=f.exports.useState(null),r=f.exports.useRef(e),o=f.exports.useCallback(e=>{const t=ef(e.target);t&&n(e=>e?(e.set(t,rf(t)),new Map(e)):null)},[]);return f.exports.useEffect(()=>{const t=r.current;if(e!==t){a(t);const i=e.map(e=>{const t=ef(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,rf(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=ef(e);null==t||t.removeEventListener("scroll",o)})}},[o,e]),f.exports.useMemo(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>Cd(e,t),jd):df(e):jd,[e,t])}(ie),de=Hf(ce),fe=Hf(ce,[q]),pe=Cd(se,de),he=ee?Kd(ee,se):null,ge=P&&he?c({active:P,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]=f.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}}(te?se:Cd(se,fe),null!=(o=null==ve?void 0:ve.rect)?o:null,q),we=f.exports.useRef(null),xe=f.exports.useCallback((e,t)=>{let{sensor:n,options:r}=t;if(null==N.current)return;const o=C.get(N.current);if(!o)return;const a=e.nativeEvent,i=new n({active:N.current,activeNode:o,event:a,options:r,context:X,onAbort(e){if(!C.get(e))return;const{onDragAbort:t}=z.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}=z.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(a),y({type:"onDragPending",event:a})},onStart(e){const t=N.current;if(null==t)return;const n=C.get(t);if(!n)return;const{onDragStart:r}=z.current,o={activatorEvent:a,active:{id:t,data:n.data,rect:L}};ne.exports.unstable_batchedUpdates(()=>{null==r||r(o),x(lp.Initializing),v({type:Fd.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:o}),T(we.current),A(a)})},onMove(e){v({type:Fd.DragMove,coordinates:e})},onEnd:l(Fd.DragEnd),onCancel:l(Fd.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}=z.current;if(i={activatorEvent:a,active:t,collisions:n,delta:o,over:r},e===Fd.DragEnd&&"function"==typeof l){await Promise.resolve(l(i))&&(e=Fd.DragCancel)}}N.current=null,ne.exports.unstable_batchedUpdates(()=>{v({type:e}),x(lp.Uninitialized),ye(null),T(null),A(null),we.current=null;const t=e===Fd.DragEnd?"onDragEnd":"onDragCancel";if(i){const e=z.current[t];null==e||e(i),y({type:t,event:i})}})}}we.current=i},[C]),Se=f.exports.useCallback((e,t)=>(n,r)=>{const o=n.nativeEvent,a=C.get(r);if(null!==N.current||!a||o.dndKit||o.defaultPrevented)return;const i={active:a};!0===e(n,t.options,i)&&(o.dndKit={capturedBy:t.sensor},N.current=r,xe(n,t))},[C,xe]),ke=function(e,t){return f.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){f.exports.useEffect(()=>{if(!ld)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),gd(()=>{q&&w===lp.Initializing&&x(lp.Initialized)},[q,w]),f.exports.useEffect(()=>{const{onDragMove:e}=z.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};ne.exports.unstable_batchedUpdates(()=>{null==e||e(a),y({type:"onDragMove",event:a})})},[pe.x,pe.y]),f.exports.useEffect(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=X.current;if(!e||null==N.current||!t||!o)return;const{onDragOver:a}=z.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};ne.exports.unstable_batchedUpdates(()=>{ye(l),null==a||a(s),y({type:"onDragOver",event:s})})},[me]),gd(()=>{X.current={activatorEvent:D,active:P,activeNode:V,collisionRect:he,collisions:ge,droppableRects:j,draggableNodes:C,draggingNode:Z,draggingNodeRect:ee,droppableContainers:_,over:ve,scrollableAncestors:ie,scrollAdjustedTranslate:pe},L.current={initial:ee,translated:he}},[P,V,ge,he,C,Z,ee,j,_,ve,ie,pe]),Af({...W,delta:E,draggingRect:he,pointerCoordinates:ue,scrollableAncestors:ie,scrollableAncestorRects:le});const Ce=f.exports.useMemo(()=>({active:P,activeNode:V,activeNodeRect:q,activatorEvent:D,collisions:ge,containerNodeRect:Y,dragOverlay:G,draggableNodes:C,droppableContainers:_,droppableRects:j,over:ve,measureDroppableContainers:U,scrollableAncestors:ie,scrollableAncestorRects:le,measuringConfiguration:F,measuringScheduled:B,windowRect:ae}),[P,V,q,D,ge,Y,G,C,_,j,ve,U,ie,le,F,B,ae]),Ee=f.exports.useMemo(()=>({activatorEvent:D,activators:ke,active:P,activeNodeRect:q,ariaDescribedById:{draggable:M},dispatch:v,draggableNodes:C,over:ve,measureDroppableContainers:U}),[D,ke,P,q,v,M,C,ve,U]);return Q.createElement(Ad.Provider,{value:b},Q.createElement(ep.Provider,{value:Ee},Q.createElement(tp.Provider,{value:Ce},Q.createElement(ip.Provider,{value:be},s)),Q.createElement(op,{disabled:!1===(null==i?void 0:i.restoreFocus)})),Q.createElement(Id,{...i,hiddenTextDescribedById:M}))});const sp=f.exports.createContext(null),up="button";function cp(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const a=Sd("Draggable"),{activators:i,activatorEvent:l,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:p}=f.exports.useContext(ep),{role:h=up,roleDescription:g="draggable",tabIndex:m=0}=null!=o?o:{},v=(null==s?void 0:s.id)===t,y=f.exports.useContext(v?ip:sp),[b,w]=bd(),[x,S]=bd(),k=function(e,t){return f.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=vd(n);gd(()=>(d.set(t,{id:t,key:a,node:b,activatorNode:x,data:C}),()=>{const e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]);return{active:s,activatorEvent:l,activeNodeRect:u,attributes:f.exports.useMemo(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!(!v||h!==up)||void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[r,h,m,v,g,c.draggable]),isDragging:v,listeners:r?void 0:k,node:b,over:p,setNodeRef:w,setActivatorNodeRef:S,transform:y}}const dp={timeout:25};function fp(e){let{animation:t,children:n}=e;const[r,o]=f.exports.useState(null),[a,i]=f.exports.useState(null),l=wd(n);return n||r||!l||o(l),gd(()=>{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]),Q.createElement(Q.Fragment,null,n,r?f.exports.cloneElement(r,{ref:i}):null)}const pp={x:0,y:0,scaleX:1,scaleY:1};function hp(e){let{children:t}=e;return Q.createElement(ep.Provider,{value:Zf},Q.createElement(ip.Provider,{value:pp},t))}const gp={position:"fixed",touchAction:"none"},mp=e=>_d(e)?"transform 250ms ease":void 0,vp=f.exports.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:a,className:i,rect:l,style:s,transform:u,transition:c=mp}=e;if(!l)return null;const d=o?u:{...u,scaleX:1,scaleY:1},f={...gp,width:l.width,height:l.height,top:l.top,left:l.left,transform:Ld.Transform.toString(d),transformOrigin:o&&r?Ud(r,l):void 0,transition:"function"==typeof c?c(r):c,...s};return Q.createElement(n,{className:i,style:f,ref:t},a)}),yp={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Ld.Transform.toString(t)},{transform:Ld.Transform.toString(n)}]},sideEffects:(bp={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:n}=e;const r={},{styles:o,className:a}=bp;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 bp;function wp(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return md((e,a)=>{if(null===t)return;const i=n.get(e);if(!i)return;const l=i.node.current;if(!l)return;const s=qf(a);if(!s)return;const{transform:u}=cd(a).getComputedStyle(a),c=Qd(u);if(!c)return;const d="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...yp,...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 ff(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 xp=0;function Sp(e){return f.exports.useMemo(()=>{if(null!=e)return xp++,xp},[e])}const kp=Q.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:c,active:d,activeNodeRect:p,containerNodeRect:h,draggableNodes:g,droppableContainers:m,dragOverlay:v,over:y,measuringConfiguration:b,scrollableAncestors:w,scrollableAncestorRects:x,windowRect:S}=f.exports.useContext(tp),k=f.exports.useContext(ip),C=Sp(null==d?void 0:d.id),E=ap(i,{activatorEvent:c,active:d,activeNodeRect:p,containerNodeRect:h,draggingNodeRect:v.rect,over:y,overlayNodeRect:v.rect,scrollableAncestors:w,scrollableAncestorRects:x,transform:k,windowRect:S}),_=$f(p),R=wp({config:r,draggableNodes:g,droppableContainers:m,measuringConfiguration:b}),L=_?v.setRef:void 0;return Q.createElement(hp,null,Q.createElement(fp,{animation:R},d&&C?Q.createElement(vp,{key:C,id:d.id,ref:L,as:l,activatorEvent:c,adjustScale:t,className:s,transition:a,rect:_,style:{zIndex:u,...o},transform:E},n):null))});r("@pie-lib:categorize:scoring");const Cp=r,{clone:Ep}=o,_p=Cp("@pie-lib:categorize"),Rp=(e,t,n,r)=>(_p("[removeChoiceFromCategory] choiceIndex:",n),r.map(r=>{if(r.category===t){const t=Ep(r.choices),o=t.findIndex((t,r)=>t===e&&r>=n);return-1!==o&&t.splice(o,1),{...r,choices:t}}return r})),Lp=(e,t,n,r,o)=>{if(_p("[moveChoiceToCategory] choice: ",e,"from: ",t,"to: ",n,"answers: ",o),t===n)return o;t&&(o=Rp(e,t,r,o));const a=o.findIndex(e=>e.category===n);return-1===a?(o.push({category:n,choices:[e]}),o):o.map(t=>t.category===n?(t.choices=t.choices||[],t.choices.push(e),t):t)},Pp=(e,t)=>{if(e.categoryCount>0){const o=(r=t,(n=e)&&n.id&&Array.isArray(r)?r.reduce((e,t)=>e+(t.choices||[]).filter(e=>e&&e.id===n.id).length,0):0);return o<e.categoryCount}return!0;var n,r};function Np(e,t){return null!=e?e:t()}function Op(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 Tp=e=>"string"==typeof e,Dp=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Ap=e=>null==e?"":""+e,zp=/###/g,Mp=e=>e&&e.indexOf("###")>-1?e.replace(zp,"."):e,Ip=e=>!e||Tp(e),Fp=(e,t,n)=>{const r=Tp(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(Ip(e))return{};const t=Mp(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return Ip(e)?{}:{obj:e,k:Mp(r[o])}},$p=(e,t,n)=>{const{obj:r,k:o}=Fp(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=Fp(e,i,Object);for(;void 0===l.obj&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=Fp(e,i,Object),Op([l,"optionalAccess",e=>e.obj])&&void 0!==l.obj[`${l.k}.${a}`]&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},jp=(e,t)=>{const{obj:n,k:r}=Fp(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Up=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?Tp(e[r])||e[r]instanceof String||Tp(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Up(e[r],t[r],n):e[r]=t[r]);return e},Bp=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Vp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Hp=e=>Tp(e)?e.replace(/[&<>"'\/]/g,e=>Vp[e]):e;const Wp=[" ",",","?","!",";"],Kp=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),qp=(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},Qp=e=>Op([e,"optionalAccess",e=>e.replace,"call",e=>e("_","-")]),Yp={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){Op([console,"optionalAccess",t=>t[e],"optionalAccess",e=>e.apply,"optionalCall",e=>e(console,t)])}};class Xp{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||Yp,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:(Tp(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Xp(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Xp(this.logger,e)}}var Jp=new Xp;class Gp{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 Zp extends Gp{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):Tp(n)&&o?i.push(...n.split(o)):i.push(n)));const l=jp(this.data,i);return!l&&!t&&!n&&e.indexOf(".")>-1&&(e=i[0],t=i[1],n=i.slice(2).join(".")),!l&&a&&Tp(n)?qp(Op([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),$p(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)(Tp(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=jp(this.data,i)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Up(l,n,o):l={...l,...n},$p(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 eh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=Np(Op([this,"access",e=>e.processors,"access",t=>t[e],"optionalAccess",e=>e.process,"call",e=>e(t,n,r,o)]),()=>t)}),t}};const th=Symbol("i18next/PATH_KEY");function nh(e,t){const{[th]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(Op([n,"optionalAccess",e=>e.revoke,"optionalCall",e=>e()]),o===th?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return n.join(Np(Op([t,"optionalAccess",e=>e.keySeparator]),()=>"."))}const rh={},oh=e=>!Tp(e)&&"boolean"!=typeof e&&"number"!=typeof e;class ah extends Gp{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=Jp.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===Op([r,"optionalAccess",e=>e.res]))return!1;const o=oh(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=Wp.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=Kp.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:Tp(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:Tp(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=nh(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"===Op([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=Op([f,"optionalAccess",e=>e.res]);const h=Op([f,"optionalAccess",e=>e.usedKey])||i,g=Op([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&&!Tp(r.count),b=ah.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=oh(C),_=Object.prototype.toString.apply(C);if(!(v&&C&&E&&["[object Number]","[object Function]","[object RegExp]"].indexOf(_)<0)||Tp(m)&&Array.isArray(C))if(v&&Tp(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):Op([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:oh(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(Op([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=Tp(e)&&(void 0!==Op([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&&!Tp(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)=>Op([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=Tp(a)?[a]:a;return null!=e&&Op([i,"optionalAccess",e=>e.length])&&!1!==n.applyPostProcessor&&(e=eh.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 Tp(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&&!Tp(t.count),d=c&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(Tp(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,rh[`${p[0]}-${e}`]||!Op([this,"access",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace])||Op([this,"access",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace,"call",e=>e(i)])||(rh[`${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(Op([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 Op([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&&!Tp(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 ih{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jp.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Qp(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=Qp(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Tp(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)),Tp(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 Tp(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))):Tp(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}}const lh={zero:0,one:1,two:2,few:3,many:4,other:5},sh={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class uh{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Jp.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=Qp("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!"),sh;if(!e.match(/-|_/))return sh;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)),Op([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)=>lh[e]-lh[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 ch=(e,t,n,r=".",o=!0)=>{let a=((e,t,n)=>{const r=jp(e,n);return void 0!==r?r:jp(t,n)})(e,t,n);return!a&&o&&Tp(n)&&(a=qp(e,n,r),void 0===a&&(a=qp(t,n,r))),a},dh=e=>e.replace(/\$/g,"$$$$");class fh{constructor(e={}){this.logger=Jp.create("interpolator"),this.options=e,this.format=Op([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:Hp,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?Bp(o):a||"{{",this.suffix=i?Bp(i):l||"}}",this.formatSeparator=s||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?Bp(d):f||Bp("$t("),this.nestingSuffix=p?Bp(p):h||Bp(")"),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)=>Op([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=ch(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(ch(t,l,a,this.options.keySeparator,this.options.ignoreJSONStructure),i,n,{...r,...t,interpolationkey:a})};this.resetRegExp();const u=Op([r,"optionalAccess",e=>e.missingInterpolationHandler])||this.options.missingInterpolationHandler,c=void 0!==Op([r,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.skipOnVariables])?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>dh(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?dh(this.escape(e)):dh(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=Tp(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 Tp(a)||this.useRawValueToEscape||(a=Ap(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);(Np(Op([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&&!Tp(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&&!Tp(o))return o;Tp(o)||(o=Ap(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 ph=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(Qp(r),o),t[i]=l),l(n)}},hh=e=>(t,n,r)=>e(Qp(n),r)(t);class gh{constructor(e={}){this.logger=Jp.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?ph:hh;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()]=ph(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=Op([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 mh extends Gp{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Jp.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=[],Op([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}=Fp(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();Tp(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Tp(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(!Op([this,"access",e=>e.services,"optionalAccess",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace])||Op([this,"access",e=>e.services,"optionalAccess",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace,"call",e=>e(t)])){if(null!=n&&""!==n){if(Op([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 vh=()=>({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]),Tp(e[1])&&(t.defaultValue=e[1]),Tp(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}),yh=e=>(Tp(e.ns)&&(e.ns=[e.ns]),Tp(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Tp(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),Op([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),bh=()=>{};class wh extends Gp{constructor(e={},t){var n;if(super(),this.options=yh(e),this.services={},this.logger=Jp,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&&(Tp(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=vh();var r;this.options={...n,...this.options,...yh(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||(Op([r=this,"optionalAccess",e=>e.modules,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.name,"optionalAccess",e=>e.indexOf,"call",e=>e("Locize")])>0||Op([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||Op([r,"optionalAccess",e=>e.options,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.backends])&&r.options.backend.backends.some(e=>Op([e,"optionalAccess",e=>e.name,"access",e=>e.indexOf,"call",e=>e("Locize")])>0||Op([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?Jp.init(o(this.modules.logger),this.options):Jp.init(null,this.options),e=this.modules.formatter?this.modules.formatter:gh;const t=new ih(this.options);this.store=new Zp(this.options.resources,this.options);const r=this.services;r.logger=Jp,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new uh(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 fh(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new mh(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 ah(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=bh),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=Dp(),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=bh){let n=t;const r=Tp(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===Op([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))}Op([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=Dp();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=bh),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&&eh.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=Dp();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=Tp(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(Tp(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),Op([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=nh(e,{...this.options,...t})),`${a.keyPrefix}${i}${e}`)):("function"==typeof e&&(e=nh(e,{...this.options,...t})),l=a.keyPrefix?`${a.keyPrefix}${i}${e}`:e),this.t(l,a)};return Tp(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return Op([this,"access",e=>e.translator,"optionalAccess",e=>e.translate,"call",t=>t(...e)])}exists(...e){return Op([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=Dp();return this.options.ns?(Tp(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=Dp();Tp(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||(Op([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=Op([this,"access",e=>e.services,"optionalAccess",e=>e.languageUtils])||new ih(vh());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 wh(e,t);return n.createInstance=wh.createInstance,n}cloneInstance(e={},t=bh){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new wh(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 Zp(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...vh().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new fh(n)}return o.translator=new ah(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 xh=wh.createInstance();xh.createInstance,xh.dir,xh.init,xh.loadResources,xh.reloadResources,xh.use,xh.changeLanguage,xh.getFixedT,xh.t,xh.exists,xh.setDefaultNamespace,xh.hasLoadedNamespace,xh.loadNamespaces,xh.loadLanguages;xh.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 Sh={translator:{...xh,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 xh.t(e,{lng:n,...t})}},languageOptions:[{value:"en_US",label:"English (US)"},{value:"es_ES",label:"Spanish"}]};const kh=a,Ch=r,{styled:Eh}=i,{Card:_h}=l,{CardContent:Rh}=l,{color:Lh}=s,{uid:Ph}=c;Ch("@pie-ui:categorize:choice");const Nh={content:kh.string.isRequired,id:kh.string},Oh=Eh("div",{shouldForwardProp:e=>!["isDragging","disabled","correct"].includes(e)})(({isDragging:e,disabled:t,correct:n})=>({direction:"initial",cursor:t?"not-allowed":e?"move":"pointer",width:"100%",borderRadius:"6px",...!0===n&&{border:`solid 2px ${Lh.correct()}`},...!1===n&&{border:`solid 2px ${Lh.incorrect()}`}})),Th=Eh(_h)({color:Lh.text(),backgroundColor:Lh.background(),width:"100%"}),Dh=Eh(Rh)(({theme:e})=>({color:Lh.text(),backgroundColor:Lh.white(),"&:last-child":{paddingBottom:e.spacing(2)},borderRadius:"4px",border:"1px solid"}));class Ah extends Q.Component{static __initStatic(){this.propTypes={...Nh,disabled:kh.bool,correct:kh.bool,isDragging:kh.bool}}static __initStatic2(){this.defaultProps={}}render(){const{content:e,isDragging:t,disabled:n,correct:r}=this.props;return Q.createElement(Oh,{isDragging:t,disabled:n,correct:r},Q.createElement(Th,null,Q.createElement(Dh,{dangerouslySetInnerHTML:{__html:e}})))}}Ah.__initStatic(),Ah.__initStatic2();const zh=({id:e,content:t,disabled:n,correct:r,extraStyle:o,categoryId:a,choiceIndex:i})=>{const l=void 0!==a?`choice-${e}-${a}-${i}`:`choice-${e}-board`,{attributes:s,listeners:u,setNodeRef:c,isDragging:d}=cp({id:l,data:{id:e,categoryId:a,choiceIndex:i,value:t,itemType:"categorize",type:"choice"},disabled:n});return Q.createElement("div",{ref:c,style:{margin:"4px",...o},...u,...s},Q.createElement(Ah,{id:e,content:t,disabled:n,correct:r,isDragging:d}))};zh.propTypes={...Nh,extraStyle:kh.object,categoryId:kh.string,choiceIndex:kh.number,onRemoveChoice:kh.func};var Mh=Ph.withUid(zh);const Ih=a,Fh=r,{useTheme:$h}=i,{color:jh}=s,{PlaceHolder:Uh}=c;Fh("@pie-ui:categorize:droppable-placeholder");const Bh=({children:e,grid:t,disabled:n,choiceBoard:r,minRowHeight:o,id:a,correct:i})=>{const l=$h(),{setNodeRef:s,isOver:u}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const a=Sd("Droppable"),{active:i,dispatch:l,over:s,measureDroppableContainers:u}=f.exports.useContext(ep),c=f.exports.useRef({disabled:n}),d=f.exports.useRef(!1),p=f.exports.useRef(null),h=f.exports.useRef(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...dp,...o},y=vd(null!=m?m:r),b=jf({callback:f.exports.useCallback(()=>{d.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},v)):d.current=!0},[v]),disabled:g||!i}),w=f.exports.useCallback((e,t)=>{b&&(t&&(b.unobserve(t),d.current=!1),e&&b.observe(e))},[b]),[x,S]=bd(w),k=vd(t);return f.exports.useEffect(()=>{b&&x.current&&(b.disconnect(),d.current=!1,b.observe(x.current))},[x,b]),f.exports.useEffect(()=>(l({type:Fd.RegisterDroppable,element:{id:r,key:a,disabled:n,node:x,rect:p,data:k}}),()=>l({type:Fd.UnregisterDroppable,key:a,id:r})),[r]),f.exports.useEffect(()=>{n!==c.current.disabled&&(l({type:Fd.SetDroppableDisabled,id:r,key:a,disabled:n}),c.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:a,data:{itemType:"categorize",categoryId:a},disabled:n}),c={padding:l.spacing(.5),borderRadius:l.spacing(.5),gridColumnGap:0,gridRowGap:0,display:"flex",flexWrap:"wrap",justifyContent:"center",alignItems:"center",alignContent:"flex-start",width:"100%",height:"100%",...!1===i&&{border:`solid 2px ${jh.incorrect()}`},...!0===i&&{border:`solid 2px ${jh.correct()}`}};return Q.createElement("div",{ref:s,style:{flex:1,minHeight:o||"80px",position:"relative"}},Q.createElement(Uh,{isOver:u,grid:t,disabled:n,choiceBoard:r,isCategorize:!0,extraStyles:c},e))};Bh.propTypes={choiceBoard:Ih.bool,children:Ih.node.isRequired,grid:Ih.object,disabled:Ih.bool,minRowHeight:Ih.string,onDropChoice:Ih.func,id:Ih.string.isRequired,correct:Ih.bool};const Vh=a,{styled:Hh}=i,Wh=Hh("div")({flex:1,touchAction:"none"}),Kh=Hh("div")(({theme:e})=>({margin:"0 auto",textAlign:"center",paddingTop:e.spacing(1)}));class qh extends Q.Component{static __initStatic(){this.propTypes={choices:Vh.arrayOf(Vh.oneOfType([Vh.shape(Nh),Vh.shape({empty:Vh.bool})])),model:Vh.shape({categoriesPerRow:Vh.number,choicesLabel:Vh.string}),disabled:Vh.bool,choicePosition:Vh.string,onDropChoice:Vh.func,onRemoveChoice:Vh.func}}static __initStatic2(){this.defaultProps={model:{categoriesPerRow:1,choicesLabel:""}}}render(){const{choices:e=[],model:t,disabled:n,onDropChoice:r,onRemoveChoice:o,choicePosition:a}=this.props;return Q.createElement(Wh,null,Q.createElement(Bh,{id:"choices-board",onDropChoice:r,onRemoveChoice:o,disabled:n,style:{background:"none"},choiceBoard:!0},t.choicesLabel&&""!==t.choicesLabel&&Q.createElement(Kh,{dangerouslySetInnerHTML:{__html:t.choicesLabel}}),e.map((e,r)=>e.empty?Q.createElement("div",{key:r}):Q.createElement(Mh,{disabled:n,key:r,extraStyle:{maxWidth:95/t.categoriesPerRow+"%"},...e}))))}}qh.__initStatic(),qh.__initStatic2();const Qh=a,{styled:Yh}=i;class Xh extends Q.Component{static __initStatic(){this.propTypes={className:Qh.string,children:Qh.oneOfType([Qh.arrayOf(Qh.node),Qh.node]).isRequired,columns:Qh.number,rows:Qh.number,extraStyle:Qh.object}}static __initStatic2(){this.defaultProps={columns:2,rows:2}}render(){const{className:e,children:t,columns:n,extraStyle:r,rows:o}=this.props,a={gridTemplateColumns:`repeat(${n}, 1fr)`,gridTemplateRows:2===o?"auto 1fr":`repeat(${o}, auto)`,...r};return Q.createElement(Jh,{style:a,className:e},t)}}Xh.__initStatic(),Xh.__initStatic2();const Jh=Yh("div")(({theme:e})=>({display:"grid",columnGap:e.spacing(1),gridColumnGap:e.spacing(1),rowGap:e.spacing(1),gridRowGap:e.spacing(1),gridAutoRows:"1fr"})),Gh=a,{styled:Zh}=i,eg={id:Gh.string.isRequired,categoryId:Gh.string};class tg extends Q.Component{static __initStatic(){this.propTypes={...eg,className:Gh.string,disabled:Gh.bool,onDropChoice:Gh.func,onRemoveChoice:Gh.func,minRowHeight:Gh.string}}static __initStatic2(){this.defaultProps={}}render(){const{className:e,choices:t=[],disabled:n,onDropChoice:r,onRemoveChoice:o,id:a,correct:i,minRowHeight:l}=this.props;return Q.createElement(ng,{className:e,id:a},Q.createElement(Bh,{id:a,onDropChoice:r,disabled:n,correct:i,minRowHeight:l},t.map((e,t)=>Q.createElement(Mh,{onRemoveChoice:o,disabled:n,key:t,choiceIndex:t,categoryId:a,...e}))))}}tg.__initStatic(),tg.__initStatic2();const ng=Zh("div")(({theme:e})=>({display:"flex",flexDirection:"column",flex:2})),rg=a,{styled:og}=i,{color:ag}=s;class ig extends Q.Component{static __initStatic(){this.propTypes={categories:rg.arrayOf(rg.shape(eg)),model:rg.shape({categoriesPerRow:rg.number}),disabled:rg.bool,onDropChoice:rg.func.isRequired,onRemoveChoice:rg.func.isRequired,rowLabels:rg.array}}static __initStatic2(){this.defaultProps={model:{categoriesPerRow:1}}}render(){const{categories:e,model:t,disabled:n,onDropChoice:r,onRemoveChoice:o,rowLabels:a}=this.props,{categoriesPerRow:i,minRowHeight:l}=t,s=[],u=e||[];for(let e=0;e<u.length;e+=i)s.push(u.slice(e,e+i));return Q.createElement(Xh,{columns:i,rows:2*Math.ceil(e.length/i),extraStyle:{flex:1}},s.map((e,t)=>{let s=[];return e.forEach((e,i)=>{s.push(Q.createElement("div",{style:{display:"flex"}},0===i&&(e=>{let t=!1;return(e||[]).forEach(e=>{"string"==typeof e&&""!==e.trim()&&"<div></div>"!==e.trim()&&(t=!0)}),t})(a)?Q.createElement(sg,{key:t,dangerouslySetInnerHTML:{__html:a[t]||""}}):null,Q.createElement(ug,null,Q.createElement(lg,{key:`category-label-${t}-${i}`,dangerouslySetInnerHTML:{__html:e.label}}),Q.createElement(tg,{minRowHeight:l,onDropChoice:t=>r(e.id,t),onRemoveChoice:o,disabled:n,key:`category-element-${t}-${i}`,...e}))))}),s=s.concat(Array(i-e.length).fill(Q.createElement("div",null)).map((e,t)=>Q.createElement("div",{key:`fill-space-final-${t}`}))),s}))}}ig.__initStatic(),ig.__initStatic2();const lg=og("div")(({theme:e})=>({color:ag.text(),backgroundColor:ag.background(),textAlign:"center",paddingTop:e.spacing(1)})),sg=og("div")({alignItems:"center",display:"flex",justifyContent:"center",flex:.5,marginRight:"12px"}),ug=og("div")({display:"flex",flex:"2",flexDirection:"column"}),cg=a,dg=r,{styled:fg}=i,pg=u,{color:hg}=s,{Feedback:gg}=s,{Collapsible:mg}=s,{hasText:vg}=s,{hasMedia:yg}=s,{PreviewPrompt:bg}=s,{UiLayout:wg}=s,{DragProvider:xg}=c,{uid:Sg}=c,{renderMath:kg}=e,{AlertDialog:Cg}=d;function Eg(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{translator:_g}=Sh,Rg=dg("@pie-ui:categorize");class Lg extends Q.Component{constructor(...e){super(...e),Lg.prototype.__init.call(this)}__init(){this.containerRef=Q.createRef()}componentDidMount(){this.containerRef.current&&kg(this.containerRef.current)}render(){return Q.createElement("div",{ref:this.containerRef},this.props.children)}}class Pg extends Q.Component{static __initStatic(){this.propTypes={model:cg.object,session:cg.shape({answers:cg.arrayOf(cg.shape({choice:cg.string,category:cg.string}))}),onAnswersChange:cg.func.isRequired,onShowCorrectToggle:cg.func.isRequired,pauseMathObserver:cg.func,resumeMathObserver:cg.func}}static __initStatic2(){this.defaultProps={disabled:!1}}constructor(e){super(e),Pg.prototype.__init2.call(this),Pg.prototype.__init3.call(this),Pg.prototype.__init4.call(this),Pg.prototype.__init5.call(this),Pg.prototype.__init6.call(this),this.state={showCorrect:!1,showMaxChoiceAlert:!1}}__init2(){this.removeChoice=e=>{Rg("[removeChoice]: ",e);const{onAnswersChange:t,session:n}=this.props;t(Rp(e.id,e.categoryId,e.choiceIndex,n.answers))}}__init3(){this.dropChoice=(e,t)=>{const{session:n,onAnswersChange:r,model:o}=this.props,{maxChoicesPerCategory:a=0}=o||{},{answers:i=[]}=n||{};let l;t?Rg("[dropChoice] category: ",t.categoryId,"choice: ",t):Rg("[dropChoice] category: ",void 0,"choice: ",void 0);const s=i.find(t=>t.category===e);t&&1===a&&s&&s.choices&&1===s.choices.length?(l=Lp(t.id,t.categoryId,e,t.choiceIndex,i),l=Rp(s.choices[0],e,0,l)):t&&a>1&&s&&s.choices&&s.choices.length===a?(l=t.categoryId?Lp(t.id,t.categoryId,t.categoryId,t.choiceIndex,i):Rp(t.id,t.categoryId,t.choiceIndex,i),this.setState({showMaxChoiceAlert:!0})):0!==a&&s&&s.choices&&s.choices.length>a?(l=i,this.setState({showMaxChoiceAlert:!0})):l=t?Lp(t.id,t.categoryId,e,t.choiceIndex,i):this.removeChoice(e),t&&r(l)}}UNSAFE_componentWillReceiveProps(e){const{model:t}=this.props,{model:n}=e;t.note&&t.language&&t.language!==n.language&&t.note===_g.t("common:commonCorrectAnswerWithAlternates",{lng:t.language})&&(t.note=_g.t("common:commonCorrectAnswerWithAlternates",{lng:n.language})),this.setState({showCorrect:!1})}__init4(){this.toggleShowCorrect=()=>this.setState({showCorrect:!this.state.showCorrect},()=>{this.props.onShowCorrectToggle()})}__init5(){this.getPositionDirection=e=>{let t;switch(e){case"left":t="row-reverse";break;case"right":t="row";break;case"below":t="column";break;default:t="column-reverse"}return t}}__init6(){this.existAlternateResponse=e=>Eg([e,"optionalAccess",e=>e.some,"call",e=>e(e=>Eg([e,"access",e=>e.alternateResponses,"optionalAccess",e=>e.length])>0)])}render(){const{model:e,session:t}=this.props,{showCorrect:n,showMaxChoiceAlert:r}=this.state,{choicesPosition:o,extraCSSRules:a,note:i,showNote:l,env:s,language:u,maxChoicesPerCategory:c,autoplayAudioEnabled:d,customAudioButton:f}=e,{mode:p,role:h}=s||{},g=o||"above",m={flexDirection:this.getPositionDirection(g),gap:"8px"},{categories:v,choices:y,correct:b}=((e,t,n,r)=>{e=e||[],t=t||[],n=n||[];const o=(e=>e?e.reduce((e,t)=>(e[0]?e[0][t.category]=t.choices:e.push({[t.category]:t.choices}),t.alternateResponses&&t.alternateResponses.forEach((n,r)=>{e[r+1]?e[r+1][t.category]=n:e.push({[t.category]:n})}),e),[]):[])(r)||[];let a,i,l=((e,t,n)=>(n=n||[],t=t||[],(e=e||[]).map(e=>{const r=n.find(t=>t.category===e.id),{choices:o=[]}=r||{};return{...e,choices:o.map(e=>t.find(t=>t.id===e))}})))(e,t,n);if(o.length){const e=o.reduce((e,t)=>{const{builtCategories:n,correct:r}=((e,t)=>t.reduce((t,n)=>{const r=e[n.id]||[],o=n.choices||[],{builtChoices:a,allChoicesAreCorrect:i}=((e,t)=>t.reduce((e,t)=>{const n=e.copyOfPossibleResponse.findIndex(e=>t&&e===t.id);return n>=0?(e.builtChoices.push({...t,correct:!0}),e.copyOfPossibleResponse=[...e.copyOfPossibleResponse.slice(0,n),...e.copyOfPossibleResponse.slice(n+1)]):(e.builtChoices.push({...t,correct:!1}),e.allChoicesAreCorrect=!1),e},{builtChoices:[],copyOfPossibleResponse:[...e],allChoicesAreCorrect:!0}))(r,o),l=o.length===r.length;return t.builtCategories.push({...n,correct:i&&l,choices:a}),t.correct=t.correct&&i&&l,t},{builtCategories:[],correct:!0}))(t,l);return null===e.bestResponse||!e.entirelyCorrect&&r?{bestResponse:t,builtCategories:n,entirelyCorrect:r}:e},{bestResponse:null,builtCategories:[],entirelyCorrect:!1});l=e.builtCategories,a=e.bestResponse,i=e.entirelyCorrect}const s=t.map(e=>Pp(e,l)?e:{empty:!0});return{choices:s,categories:l,correct:i,bestResponse:a}})(e.categories,e.choices,n?e.correctResponse:t.answers,e.correctResponse);Rg("[render] disabled: ",e.disabled);const{rowLabels:w,categoriesPerRow:x,correctResponse:S,fontSizeFactor:k}=e,C=v&&Math.ceil(v.length/x)||0,E=this.existAlternateResponse(S)||!1,_=(n||"view"===p&&"instructor"===h)&&l&&i&&E,R=_g.t("translation:categorize:limitMaxChoicesPerCategory",{lng:e.language,maxChoicesPerCategory:c}),L=_g.t("common:warning",{lng:e.language}),P=_g.t("common:cancel",{lng:e.language}),N=e.rationale&&(vg(e.rationale)||yg(e.rationale)),O=e.teacherInstructions&&(vg(e.teacherInstructions)||yg(e.teacherInstructions));return Q.createElement(Og,{extraCSSRules:a,id:"main-container",fontSizeFactor:k},O&&Q.createElement(Q.Fragment,null,Q.createElement(Ag,{labels:{hidden:"Show Teacher Instructions",visible:"Hide Teacher Instructions"}},Q.createElement(bg,{prompt:e.teacherInstructions}))),e.prompt&&Q.createElement(bg,{prompt:e.prompt,autoplayAudioEnabled:d,customAudioButton:f}),Q.createElement(pg,{show:n||!1===b,toggled:n,onToggle:this.toggleShowCorrect,language:u}),Q.createElement(Dg,{style:m},Q.createElement("div",{style:{display:"flex",flex:1}},Q.createElement(ig,{model:e,disabled:e.disabled,categories:v,onDropChoice:this.dropChoice,onRemoveChoice:this.removeChoice,rowLabels:(w||[]).slice(0,C)})),Q.createElement(qh,{disabled:e.disabled,model:e,choices:y,choicePosition:g,onDropChoice:this.dropChoice,onRemoveChoice:this.removeChoice})),_&&Q.createElement(Tg,{dangerouslySetInnerHTML:{__html:i}}),N&&Q.createElement(Ag,{labels:{hidden:"Show Rationale",visible:"Hide Rationale"}},Q.createElement(bg,{prompt:e.rationale})),e.correctness&&e.feedback&&!n&&Q.createElement(gg,{correctness:e.correctness,feedback:e.feedback}),Q.createElement(Cg,{title:L,text:R,open:r,onCloseText:P,onClose:()=>this.setState({showMaxChoiceAlert:!1})}))}}Pg.__initStatic(),Pg.__initStatic2();class Ng extends Q.Component{constructor(e){super(e),Ng.prototype.__init7.call(this),Ng.prototype.__init8.call(this),Ng.prototype.__init9.call(this),this.uid=Sg.generateId(),this.state={activeDragItem:null}}__init7(){this.onDragStart=e=>{const{active:t}=e,{pauseMathObserver:n}=this.props;n&&n(),Eg([t,"optionalAccess",e=>e.data,"optionalAccess",e=>e.current])&&this.setState({activeDragItem:t.data.current})}}__init8(){this.onDragEnd=e=>{const{active:t,over:n}=e,{resumeMathObserver:r}=this.props;if(this.setState({activeDragItem:null}),r&&r(),!n||!t)return;const o=t.data.current;if(o&&"choice"===o.type){const e={id:o.id,categoryId:o.categoryId,choiceIndex:o.choiceIndex,value:o.value,itemType:o.itemType};if("choices-board"===n.id)this.categorizeRef&&this.categorizeRef.removeChoice&&o.categoryId&&this.categorizeRef.removeChoice(e);else{const t=n.id;this.categorizeRef&&this.categorizeRef.dropChoice&&this.categorizeRef.dropChoice(t,e)}}}}__init9(){this.renderDragOverlay=()=>{const{activeDragItem:e}=this.state,{model:t}=this.props;if(!e)return null;if("choice"===e.type){const n=Eg([t,"access",e=>e.choices,"optionalAccess",e=>e.find,"call",t=>t(t=>t.id===e.id)]);if(n)return Q.createElement(Mh,{key:n.id,id:n.id,...n})}return null}}render(){return Q.createElement(xg,{onDragStart:this.onDragStart,onDragEnd:this.onDragEnd},Q.createElement(Sg.Provider,{value:this.uid},Q.createElement(Pg,{ref:e=>this.categorizeRef=e,...this.props}),Q.createElement(kp,null,Q.createElement(Lg,null,this.renderDragOverlay()))))}}const Og=fg(wg)({color:hg.text(),backgroundColor:hg.background(),position:"relative"}),Tg=fg("div")(({theme:e})=>({marginBottom:e.spacing(2)})),Dg=fg("div")(({theme:e})=>({marginBottom:e.spacing(1),display:"flex",flexDirection:"column"})),Ag=fg(mg)(({theme:e})=>({paddingBottom:e.spacing(2)})),{renderMath:zg}=e,{EnableAudioAutoplayImage:Mg}=s;class Ig extends HTMLElement{constructor(){super(),Ig.prototype.__init.call(this),Ig.prototype.__init2.call(this),Ig.prototype.__init3.call(this),this._root=null,this._mathObserver=null,this._mathRenderPending=!1}__init(){this._scheduleMathRender=()=>{this._mathRenderPending||(this._mathRenderPending=!0,requestAnimationFrame(()=>{this._mathObserver&&!this._mathObserverPaused&&this._mathObserver.disconnect(),zg(this),this._mathRenderPending=!1,setTimeout(()=>{this._mathObserver&&!this._mathObserverPaused&&this._mathObserver.observe(this,{childList:!0,subtree:!0,characterData:!1})},50)}))}}_initMathObserver(){this._mathObserver||(this._mathObserver=new MutationObserver(()=>{this._scheduleMathRender()}),this._mathObserver.observe(this,{childList:!0,subtree:!0,characterData:!1}))}_disconnectMathObserver(){this._mathObserver&&(this._mathObserver.disconnect(),this._mathObserver=null)}__init2(){this.pauseMathObserver=()=>{this._mathObserver&&(this._mathObserver.disconnect(),this._mathObserverPaused=!0)}}__init3(){this.resumeMathObserver=()=>{this._mathObserverPaused&&(this._mathObserverPaused=!1,this._mathObserver&&this._mathObserver.observe(this,{childList:!0,subtree:!0,characterData:!1}))}}set model(e){this._model=e,this.eliminateBlindAnswersFromSession(),this.dispatchEvent(new Z(this.tagName.toLowerCase(),this.isComplete(),!!this._model)),this._audioInitialized=!1,this.render()}isComplete(){const{autoplayAudioEnabled:e,choices:t,completeAudioEnabled:n,hasUnplacedChoices:r,possibleResponses:o,responseAreasToBeFilled:a}=this._model||{},i=this;if(e&&n&&!this.audioComplete&&i){const e=i.querySelector("audio"),t=e&&e.closest("#preview-prompt");if(e&&t)return!1}if(!this._session||!this._session.answers)return!1;const{answers:l}=this._session;if(!Array.isArray(l))return!1;const s=l.filter(e=>e.choices.length).length>=a;if((t||[]).some(e=>0===e.categoryCount))return s;if(r)return s;const u=l.map(e=>e.choices).flat();return(o||[]).some(e=>e.every(e=>u.includes(e)))}set session(e){e&&!e.answers&&(e.answers=[]),this._session=e,this.render()}get session(){return this._session}eliminateBlindAnswersFromSession(){const{answers:e=[]}=this._session||{},{choices:t=[]}=this._model||{},n=t.map(e=>e.id)||[],r=e.map(e=>{const t=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}([e,"optionalAccess",e=>e.choices])||[];return e.choices=t.filter(e=>n.includes(e)),e});r.length>0&&this.changeAnswers(r)}changeAnswers(e){this._session.answers=e,this._session.selector="Mouse",this.dispatchEvent(new te(this.tagName.toLowerCase(),this.isComplete())),this.render()}onShowCorrectToggle(){zg(this)}_createAudioInfoToast(){const e=document.createElement("div");e.id="play-audio-info",Object.assign(e.style,{position:"absolute",top:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",background:"white",zIndex:"1000",cursor:"pointer"});const t=document.createElement("img");return t.src=Mg,t.alt="Click anywhere to enable audio autoplay",t.width=500,t.height=300,e.appendChild(t),e}connectedCallback(){this._initMathObserver();new MutationObserver((e,t)=>{e.forEach(e=>{if("childList"===e.type){if(this._audioInitialized)return;const e=this.querySelector("audio"),n=e&&e.closest("#preview-prompt");if(!this._model)return;if(!this._model.autoplayAudioEnabled)return;if(e&&!n)return;if(!e)return;const r=this._createAudioInfoToast(),o=this.querySelector("#main-container"),a=()=>{this.querySelector("#play-audio-info")&&(e.play(),o.removeChild(r)),document.removeEventListener("click",a)};setTimeout(()=>{e.paused&&!this.querySelector("#play-audio-info")?(o.appendChild(r),document.addEventListener("click",a)):document.removeEventListener("click",a)},500);const i=()=>{this._session.audioStartTime=this._session.audioStartTime||(new Date).getTime();const t=this.querySelector("#play-audio-info");t&&o.removeChild(t),e.removeEventListener("playing",i)};e.addEventListener("playing",i);const l=()=>{this._session.audioEndTime=this._session.audioEndTime||(new Date).getTime();let{audioStartTime:t,audioEndTime:n,waitTime:r}=this._session;!r&&t&&n&&(this._session.waitTime=n-t),this.audioComplete=!0,this.dispatchEvent(new te(this.tagName.toLowerCase(),this.isComplete())),e.removeEventListener("ended",l)};e.addEventListener("ended",l),this._audio=e,this._handlePlaying=i,this._handleEnded=l,this._enableAudio=a,this._audioInitialized=!0,t.disconnect()}})}).observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){this._disconnectMathObserver(),document.removeEventListener("click",this._enableAudio),this._audio&&(this._audio.removeEventListener("playing",this._handlePlaying),this._audio.removeEventListener("ended",this._handleEnded),this._audio=null),this._root&&this._root.unmount()}render(){if(this._model&&this._session){const e=Q.createElement(Ng,{model:this._model,session:this._session,onAnswersChange:this.changeAnswers.bind(this),onShowCorrectToggle:this.onShowCorrectToggle.bind(this),pauseMathObserver:this.pauseMathObserver,resumeMathObserver:this.resumeMathObserver});this._root||(this._root=Y(this)),this._root.render(e)}}}export{Ig as default};